configure revision 0c6340ca
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXft 2.3.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/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
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || 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/lib/libXft/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='libXft'
624PACKAGE_TARNAME='libXft'
625PACKAGE_VERSION='2.3.8'
626PACKAGE_STRING='libXft 2.3.8'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/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
667FONTCONFIG_LIBS
668FONTCONFIG_CFLAGS
669FREETYPE_LIBS
670FREETYPE_CFLAGS
671XRENDER_LIBS
672XRENDER_CFLAGS
673XFT_LT_VERSION
674MAN_SUBSTS
675XORG_MAN_PAGE
676ADMIN_MAN_DIR
677DRIVER_MAN_DIR
678MISC_MAN_DIR
679FILE_MAN_DIR
680LIB_MAN_DIR
681APP_MAN_DIR
682ADMIN_MAN_SUFFIX
683DRIVER_MAN_SUFFIX
684MISC_MAN_SUFFIX
685FILE_MAN_SUFFIX
686LIB_MAN_SUFFIX
687APP_MAN_SUFFIX
688INSTALL_CMD
689PKG_CONFIG_LIBDIR
690PKG_CONFIG_PATH
691PKG_CONFIG
692CHANGELOG_CMD
693STRICT_CFLAGS
694CWARNFLAGS
695BASE_CFLAGS
696LT_SYS_LIBRARY_PATH
697OTOOL64
698OTOOL
699LIPO
700NMEDIT
701DSYMUTIL
702MANIFEST_TOOL
703RANLIB
704ac_ct_AR
705AR
706DLLTOOL
707OBJDUMP
708FILECMD
709LN_S
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LD
714FGREP
715EGREP
716GREP
717SED
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721am__nodep
722AMDEPBACKSLASH
723AMDEP_FALSE
724AMDEP_TRUE
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742LIBTOOL
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747CSCOPE
748ETAGS
749CTAGS
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792runstatedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL
812am__quote'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
816enable_silent_rules
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821with_aix_soname
822enable_dependency_tracking
823with_gnu_ld
824with_sysroot
825enable_libtool_lock
826enable_selective_werror
827enable_strict_compilation
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837LT_SYS_LIBRARY_PATH
838PKG_CONFIG
839PKG_CONFIG_PATH
840PKG_CONFIG_LIBDIR
841XRENDER_CFLAGS
842XRENDER_LIBS
843FREETYPE_CFLAGS
844FREETYPE_LIBS
845FONTCONFIG_CFLAGS
846FONTCONFIG_LIBS'
847
848
849# Initialize some variables set by options.
850ac_init_help=
851ac_init_version=false
852ac_unrecognized_opts=
853ac_unrecognized_sep=
854# The variables have the same names as the options, with
855# dashes changed to underlines.
856cache_file=/dev/null
857exec_prefix=NONE
858no_create=
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
867verbose=
868x_includes=NONE
869x_libraries=NONE
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
876# (The list follows the same order as the GNU Coding Standards.)
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
885runstatedir='${localstatedir}/run'
886includedir='${prefix}/include'
887oldincludedir='/usr/include'
888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889infodir='${datarootdir}/info'
890htmldir='${docdir}'
891dvidir='${docdir}'
892pdfdir='${docdir}'
893psdir='${docdir}'
894libdir='${exec_prefix}/lib'
895localedir='${datarootdir}/locale'
896mandir='${datarootdir}/man'
897
898ac_prev=
899ac_dashdash=
900for ac_option
901do
902  # If the previous option needs an argument, assign it.
903  if test -n "$ac_prev"; then
904    eval $ac_prev=\$ac_option
905    ac_prev=
906    continue
907  fi
908
909  case $ac_option in
910  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911  *=)   ac_optarg= ;;
912  *)    ac_optarg=yes ;;
913  esac
914
915  case $ac_dashdash$ac_option in
916  --)
917    ac_dashdash=yes ;;
918
919  -bindir | --bindir | --bindi | --bind | --bin | --bi)
920    ac_prev=bindir ;;
921  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922    bindir=$ac_optarg ;;
923
924  -build | --build | --buil | --bui | --bu)
925    ac_prev=build_alias ;;
926  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927    build_alias=$ac_optarg ;;
928
929  -cache-file | --cache-file | --cache-fil | --cache-fi \
930  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931    ac_prev=cache_file ;;
932  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934    cache_file=$ac_optarg ;;
935
936  --config-cache | -C)
937    cache_file=config.cache ;;
938
939  -datadir | --datadir | --datadi | --datad)
940    ac_prev=datadir ;;
941  -datadir=* | --datadir=* | --datadi=* | --datad=*)
942    datadir=$ac_optarg ;;
943
944  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945  | --dataroo | --dataro | --datar)
946    ac_prev=datarootdir ;;
947  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949    datarootdir=$ac_optarg ;;
950
951  -disable-* | --disable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: \`$ac_useropt'"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=no ;;
966
967  -docdir | --docdir | --docdi | --doc | --do)
968    ac_prev=docdir ;;
969  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970    docdir=$ac_optarg ;;
971
972  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973    ac_prev=dvidir ;;
974  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975    dvidir=$ac_optarg ;;
976
977  -enable-* | --enable-*)
978    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979    # Reject names that are not valid shell variable names.
980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981      as_fn_error $? "invalid feature name: \`$ac_useropt'"
982    ac_useropt_orig=$ac_useropt
983    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
984    case $ac_user_opts in
985      *"
986"enable_$ac_useropt"
987"*) ;;
988      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989	 ac_unrecognized_sep=', ';;
990    esac
991    eval enable_$ac_useropt=\$ac_optarg ;;
992
993  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995  | --exec | --exe | --ex)
996    ac_prev=exec_prefix ;;
997  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999  | --exec=* | --exe=* | --ex=*)
1000    exec_prefix=$ac_optarg ;;
1001
1002  -gas | --gas | --ga | --g)
1003    # Obsolete; use --with-gas.
1004    with_gas=yes ;;
1005
1006  -help | --help | --hel | --he | -h)
1007    ac_init_help=long ;;
1008  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009    ac_init_help=recursive ;;
1010  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011    ac_init_help=short ;;
1012
1013  -host | --host | --hos | --ho)
1014    ac_prev=host_alias ;;
1015  -host=* | --host=* | --hos=* | --ho=*)
1016    host_alias=$ac_optarg ;;
1017
1018  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019    ac_prev=htmldir ;;
1020  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021  | --ht=*)
1022    htmldir=$ac_optarg ;;
1023
1024  -includedir | --includedir | --includedi | --included | --include \
1025  | --includ | --inclu | --incl | --inc)
1026    ac_prev=includedir ;;
1027  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028  | --includ=* | --inclu=* | --incl=* | --inc=*)
1029    includedir=$ac_optarg ;;
1030
1031  -infodir | --infodir | --infodi | --infod | --info | --inf)
1032    ac_prev=infodir ;;
1033  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034    infodir=$ac_optarg ;;
1035
1036  -libdir | --libdir | --libdi | --libd)
1037    ac_prev=libdir ;;
1038  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039    libdir=$ac_optarg ;;
1040
1041  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042  | --libexe | --libex | --libe)
1043    ac_prev=libexecdir ;;
1044  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045  | --libexe=* | --libex=* | --libe=*)
1046    libexecdir=$ac_optarg ;;
1047
1048  -localedir | --localedir | --localedi | --localed | --locale)
1049    ac_prev=localedir ;;
1050  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051    localedir=$ac_optarg ;;
1052
1053  -localstatedir | --localstatedir | --localstatedi | --localstated \
1054  | --localstate | --localstat | --localsta | --localst | --locals)
1055    ac_prev=localstatedir ;;
1056  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058    localstatedir=$ac_optarg ;;
1059
1060  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061    ac_prev=mandir ;;
1062  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063    mandir=$ac_optarg ;;
1064
1065  -nfp | --nfp | --nf)
1066    # Obsolete; use --without-fp.
1067    with_fp=no ;;
1068
1069  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070  | --no-cr | --no-c | -n)
1071    no_create=yes ;;
1072
1073  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075    no_recursion=yes ;;
1076
1077  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079  | --oldin | --oldi | --old | --ol | --o)
1080    ac_prev=oldincludedir ;;
1081  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084    oldincludedir=$ac_optarg ;;
1085
1086  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087    ac_prev=prefix ;;
1088  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089    prefix=$ac_optarg ;;
1090
1091  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092  | --program-pre | --program-pr | --program-p)
1093    ac_prev=program_prefix ;;
1094  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096    program_prefix=$ac_optarg ;;
1097
1098  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099  | --program-suf | --program-su | --program-s)
1100    ac_prev=program_suffix ;;
1101  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103    program_suffix=$ac_optarg ;;
1104
1105  -program-transform-name | --program-transform-name \
1106  | --program-transform-nam | --program-transform-na \
1107  | --program-transform-n | --program-transform- \
1108  | --program-transform | --program-transfor \
1109  | --program-transfo | --program-transf \
1110  | --program-trans | --program-tran \
1111  | --progr-tra | --program-tr | --program-t)
1112    ac_prev=program_transform_name ;;
1113  -program-transform-name=* | --program-transform-name=* \
1114  | --program-transform-nam=* | --program-transform-na=* \
1115  | --program-transform-n=* | --program-transform-=* \
1116  | --program-transform=* | --program-transfor=* \
1117  | --program-transfo=* | --program-transf=* \
1118  | --program-trans=* | --program-tran=* \
1119  | --progr-tra=* | --program-tr=* | --program-t=*)
1120    program_transform_name=$ac_optarg ;;
1121
1122  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123    ac_prev=pdfdir ;;
1124  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125    pdfdir=$ac_optarg ;;
1126
1127  -psdir | --psdir | --psdi | --psd | --ps)
1128    ac_prev=psdir ;;
1129  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130    psdir=$ac_optarg ;;
1131
1132  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133  | -silent | --silent | --silen | --sile | --sil)
1134    silent=yes ;;
1135
1136  -runstatedir | --runstatedir | --runstatedi | --runstated \
1137  | --runstate | --runstat | --runsta | --runst | --runs \
1138  | --run | --ru | --r)
1139    ac_prev=runstatedir ;;
1140  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1141  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1142  | --run=* | --ru=* | --r=*)
1143    runstatedir=$ac_optarg ;;
1144
1145  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146    ac_prev=sbindir ;;
1147  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148  | --sbi=* | --sb=*)
1149    sbindir=$ac_optarg ;;
1150
1151  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153  | --sharedst | --shareds | --shared | --share | --shar \
1154  | --sha | --sh)
1155    ac_prev=sharedstatedir ;;
1156  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159  | --sha=* | --sh=*)
1160    sharedstatedir=$ac_optarg ;;
1161
1162  -site | --site | --sit)
1163    ac_prev=site ;;
1164  -site=* | --site=* | --sit=*)
1165    site=$ac_optarg ;;
1166
1167  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168    ac_prev=srcdir ;;
1169  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170    srcdir=$ac_optarg ;;
1171
1172  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173  | --syscon | --sysco | --sysc | --sys | --sy)
1174    ac_prev=sysconfdir ;;
1175  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177    sysconfdir=$ac_optarg ;;
1178
1179  -target | --target | --targe | --targ | --tar | --ta | --t)
1180    ac_prev=target_alias ;;
1181  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182    target_alias=$ac_optarg ;;
1183
1184  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185    verbose=yes ;;
1186
1187  -version | --version | --versio | --versi | --vers | -V)
1188    ac_init_version=: ;;
1189
1190  -with-* | --with-*)
1191    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192    # Reject names that are not valid shell variable names.
1193    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194      as_fn_error $? "invalid package name: \`$ac_useropt'"
1195    ac_useropt_orig=$ac_useropt
1196    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197    case $ac_user_opts in
1198      *"
1199"with_$ac_useropt"
1200"*) ;;
1201      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202	 ac_unrecognized_sep=', ';;
1203    esac
1204    eval with_$ac_useropt=\$ac_optarg ;;
1205
1206  -without-* | --without-*)
1207    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208    # Reject names that are not valid shell variable names.
1209    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210      as_fn_error $? "invalid package name: \`$ac_useropt'"
1211    ac_useropt_orig=$ac_useropt
1212    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213    case $ac_user_opts in
1214      *"
1215"with_$ac_useropt"
1216"*) ;;
1217      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218	 ac_unrecognized_sep=', ';;
1219    esac
1220    eval with_$ac_useropt=no ;;
1221
1222  --x)
1223    # Obsolete; use --with-x.
1224    with_x=yes ;;
1225
1226  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227  | --x-incl | --x-inc | --x-in | --x-i)
1228    ac_prev=x_includes ;;
1229  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231    x_includes=$ac_optarg ;;
1232
1233  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235    ac_prev=x_libraries ;;
1236  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238    x_libraries=$ac_optarg ;;
1239
1240  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241Try \`$0 --help' for more information"
1242    ;;
1243
1244  *=*)
1245    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246    # Reject names that are not valid shell variable names.
1247    case $ac_envvar in #(
1248      '' | [0-9]* | *[!_$as_cr_alnum]* )
1249      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250    esac
1251    eval $ac_envvar=\$ac_optarg
1252    export $ac_envvar ;;
1253
1254  *)
1255    # FIXME: should be removed in autoconf 3.0.
1256    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1257    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1259    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260    ;;
1261
1262  esac
1263done
1264
1265if test -n "$ac_prev"; then
1266  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267  as_fn_error $? "missing argument to $ac_option"
1268fi
1269
1270if test -n "$ac_unrecognized_opts"; then
1271  case $enable_option_checking in
1272    no) ;;
1273    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275  esac
1276fi
1277
1278# Check all directory arguments for consistency.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir runstatedir
1283do
1284  eval ac_val=\$$ac_var
1285  # Remove trailing slashes.
1286  case $ac_val in
1287    */ )
1288      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289      eval $ac_var=\$ac_val;;
1290  esac
1291  # Be sure to have absolute directory names.
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308  if test "x$build_alias" = x; then
1309    cross_compiling=maybe
1310  elif test "x$build_alias" != "x$host_alias"; then
1311    cross_compiling=yes
1312  fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324  as_fn_error $? "working directory cannot be determined"
1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326  as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331  ac_srcdir_defaulted=yes
1332  # Try the directory containing this script, then the parent directory.
1333  ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335	 X"$as_myself" : 'X\(//\)[^/]' \| \
1336	 X"$as_myself" : 'X\(//\)$' \| \
1337	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338printf "%s\n" X"$as_myself" |
1339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)[^/].*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\).*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  s/.*/./; q'`
1356  srcdir=$ac_confdir
1357  if test ! -r "$srcdir/$ac_unique_file"; then
1358    srcdir=..
1359  fi
1360else
1361  ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures libXft 2.3.8 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking ...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417                          [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                          [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR            user executables [EPREFIX/bin]
1430  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR        program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1435  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1436  --libdir=DIR            object code libraries [EPREFIX/lib]
1437  --includedir=DIR        C header files [PREFIX/include]
1438  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1439  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1440  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1441  --infodir=DIR           info documentation [DATAROOTDIR/info]
1442  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1443  --mandir=DIR            man documentation [DATAROOTDIR/man]
1444  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXft]
1445  --htmldir=DIR           html documentation [DOCDIR]
1446  --dvidir=DIR            dvi documentation [DOCDIR]
1447  --pdfdir=DIR            pdf documentation [DOCDIR]
1448  --psdir=DIR             ps documentation [DOCDIR]
1449_ACEOF
1450
1451  cat <<\_ACEOF
1452
1453Program names:
1454  --program-prefix=PREFIX            prepend PREFIX to installed program names
1455  --program-suffix=SUFFIX            append SUFFIX to installed program names
1456  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458System types:
1459  --build=BUILD     configure for building on BUILD [guessed]
1460  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465  case $ac_init_help in
1466     short | recursive ) echo "Configuration of libXft 2.3.8:";;
1467   esac
1468  cat <<\_ACEOF
1469
1470Optional Features:
1471  --disable-option-checking  ignore unrecognized --enable/--with options
1472  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474  --enable-silent-rules   less verbose build output (undo: "make V=1")
1475  --disable-silent-rules  verbose build output (undo: "make V=0")
1476  --enable-shared[=PKGS]  build shared libraries [default=yes]
1477  --enable-static[=PKGS]  build static libraries [default=yes]
1478  --enable-fast-install[=PKGS]
1479                          optimize for fast installation [default=yes]
1480  --enable-dependency-tracking
1481                          do not reject slow dependency extractors
1482  --disable-dependency-tracking
1483                          speeds up one-time build
1484  --disable-libtool-lock  avoid locking (might break parallel builds)
1485  --disable-selective-werror
1486                          Turn off selective compiler errors. (default:
1487                          enabled)
1488  --enable-strict-compilation
1489                          Enable all warnings from compiler and make them
1490                          errors (default: disabled)
1491
1492Optional Packages:
1493  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1494  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1495  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1496                          both]
1497  --with-aix-soname=aix|svr4|both
1498                          shared library versioning (aka "SONAME") variant to
1499                          provide on AIX, [default=aix].
1500  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1502                          compiler's sysroot if not specified).
1503
1504Some influential environment variables:
1505  CC          C compiler command
1506  CFLAGS      C compiler flags
1507  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508              nonstandard directory <lib dir>
1509  LIBS        libraries to pass to the linker, e.g. -l<library>
1510  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511              you have headers in a nonstandard directory <include dir>
1512  LT_SYS_LIBRARY_PATH
1513              User-defined run-time library search path.
1514  PKG_CONFIG  path to pkg-config utility
1515  PKG_CONFIG_PATH
1516              directories to add to pkg-config's search path
1517  PKG_CONFIG_LIBDIR
1518              path overriding pkg-config's built-in search path
1519  XRENDER_CFLAGS
1520              C compiler flags for XRENDER, overriding pkg-config
1521  XRENDER_LIBS
1522              linker flags for XRENDER, overriding pkg-config
1523  FREETYPE_CFLAGS
1524              C compiler flags for FREETYPE, overriding pkg-config
1525  FREETYPE_LIBS
1526              linker flags for FREETYPE, overriding pkg-config
1527  FONTCONFIG_CFLAGS
1528              C compiler flags for FONTCONFIG, overriding pkg-config
1529  FONTCONFIG_LIBS
1530              linker flags for FONTCONFIG, overriding pkg-config
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541  # If there are subdirs, report their specific --help.
1542  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543    test -d "$ac_dir" ||
1544      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545      continue
1546    ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552  # A ".." for each directory in $ac_dir_suffix.
1553  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554  case $ac_top_builddir_sub in
1555  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557  esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565  .)  # We are building in place.
1566    ac_srcdir=.
1567    ac_top_srcdir=$ac_top_builddir_sub
1568    ac_abs_top_srcdir=$ac_pwd ;;
1569  [\\/]* | ?:[\\/]* )  # Absolute name.
1570    ac_srcdir=$srcdir$ac_dir_suffix;
1571    ac_top_srcdir=$srcdir
1572    ac_abs_top_srcdir=$srcdir ;;
1573  *) # Relative name.
1574    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575    ac_top_srcdir=$ac_top_build_prefix$srcdir
1576    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580    cd "$ac_dir" || { ac_status=$?; continue; }
1581    # Check for configure.gnu first; this name is used for a wrapper for
1582    # Metaconfig's "Configure" on case-insensitive file systems.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599libXft configure 2.3.8
1600generated by GNU Autoconf 2.71
1601
1602Copyright (C) 2021 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext conftest.beam
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626printf "%s\n" "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext
1639then :
1640  ac_retval=0
1641else $as_nop
1642  printf "%s\n" "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_compile
1651
1652# ac_fn_c_try_link LINENO
1653# -----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_link ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659  if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665printf "%s\n" "$ac_try_echo"; } >&5
1666  (eval "$ac_link") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest$ac_exeext && {
1678	 test "$cross_compiling" = yes ||
1679	 test -x conftest$ac_exeext
1680       }
1681then :
1682  ac_retval=0
1683else $as_nop
1684  printf "%s\n" "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691  # interfere with the next link command; also delete a directory that is
1692  # left behind by Apple's compiler.  We do this before executing the actions.
1693  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707printf %s "checking for $2... " >&6; }
1708if eval test \${$3+y}
1709then :
1710  printf %s "(cached) " >&6
1711else $as_nop
1712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"
1718then :
1719  eval "$3=yes"
1720else $as_nop
1721  eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727printf "%s\n" "$ac_res" >&6; }
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739printf %s "checking for $2... " >&6; }
1740if eval test \${$3+y}
1741then :
1742  printf %s "(cached) " >&6
1743else $as_nop
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748#define $2 innocuous_$2
1749
1750/* System header to define __stub macros and hopefully few prototypes,
1751   which can conflict with char $2 (void); below.  */
1752
1753#include <limits.h>
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 (void);
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main (void)
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"
1779then :
1780  eval "$3=yes"
1781else $as_nop
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789printf "%s\n" "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1795# ------------------------------------------------------------------
1796# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1798ac_fn_check_decl ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  as_decl_name=`echo $2|sed 's/ *(.*//'`
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1803printf %s "checking whether $as_decl_name is declared... " >&6; }
1804if eval test \${$3+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809  eval ac_save_FLAGS=\$$6
1810  as_fn_append $6 " $5"
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814int
1815main (void)
1816{
1817#ifndef $as_decl_name
1818#ifdef __cplusplus
1819  (void) $as_decl_use;
1820#else
1821  (void) $as_decl_name;
1822#endif
1823#endif
1824
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"
1830then :
1831  eval "$3=yes"
1832else $as_nop
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836  eval $6=\$ac_save_FLAGS
1837
1838fi
1839eval ac_res=\$$3
1840	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841printf "%s\n" "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_check_decl
1845ac_configure_args_raw=
1846for ac_arg
1847do
1848  case $ac_arg in
1849  *\'*)
1850    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851  esac
1852  as_fn_append ac_configure_args_raw " '$ac_arg'"
1853done
1854
1855case $ac_configure_args_raw in
1856  *$as_nl*)
1857    ac_safe_unquote= ;;
1858  *)
1859    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1860    ac_unsafe_a="$ac_unsafe_z#~"
1861    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1862    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1863esac
1864
1865cat >config.log <<_ACEOF
1866This file contains any messages produced by compilers while
1867running configure, to aid debugging if configure makes a mistake.
1868
1869It was created by libXft $as_me 2.3.8, which was
1870generated by GNU Autoconf 2.71.  Invocation command line was
1871
1872  $ $0$ac_configure_args_raw
1873
1874_ACEOF
1875exec 5>>config.log
1876{
1877cat <<_ASUNAME
1878## --------- ##
1879## Platform. ##
1880## --------- ##
1881
1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1890
1891/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1892/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1895/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1896/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1897/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1898
1899_ASUNAME
1900
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  case $as_dir in #(((
1906    '') as_dir=./ ;;
1907    */) ;;
1908    *) as_dir=$as_dir/ ;;
1909  esac
1910    printf "%s\n" "PATH: $as_dir"
1911  done
1912IFS=$as_save_IFS
1913
1914} >&5
1915
1916cat >&5 <<_ACEOF
1917
1918
1919## ----------- ##
1920## Core tests. ##
1921## ----------- ##
1922
1923_ACEOF
1924
1925
1926# Keep a trace of the command line.
1927# Strip out --no-create and --no-recursion so they do not pile up.
1928# Strip out --silent because we don't want to record it for future runs.
1929# Also quote any args containing shell meta-characters.
1930# Make two passes to allow for proper duplicate-argument suppression.
1931ac_configure_args=
1932ac_configure_args0=
1933ac_configure_args1=
1934ac_must_keep_next=false
1935for ac_pass in 1 2
1936do
1937  for ac_arg
1938  do
1939    case $ac_arg in
1940    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942    | -silent | --silent | --silen | --sile | --sil)
1943      continue ;;
1944    *\'*)
1945      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946    esac
1947    case $ac_pass in
1948    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949    2)
1950      as_fn_append ac_configure_args1 " '$ac_arg'"
1951      if test $ac_must_keep_next = true; then
1952	ac_must_keep_next=false # Got value, back to normal.
1953      else
1954	case $ac_arg in
1955	  *=* | --config-cache | -C | -disable-* | --disable-* \
1956	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958	  | -with-* | --with-* | -without-* | --without-* | --x)
1959	    case "$ac_configure_args0 " in
1960	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961	    esac
1962	    ;;
1963	  -* ) ac_must_keep_next=true ;;
1964	esac
1965      fi
1966      as_fn_append ac_configure_args " '$ac_arg'"
1967      ;;
1968    esac
1969  done
1970done
1971{ ac_configure_args0=; unset ac_configure_args0;}
1972{ ac_configure_args1=; unset ac_configure_args1;}
1973
1974# When interrupted or exit'd, cleanup temporary files, and complete
1975# config.log.  We remove comments because anyway the quotes in there
1976# would cause problems or look ugly.
1977# WARNING: Use '\'' to represent an apostrophe within the trap.
1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979trap 'exit_status=$?
1980  # Sanitize IFS.
1981  IFS=" ""	$as_nl"
1982  # Save into config.log some information that might help in debugging.
1983  {
1984    echo
1985
1986    printf "%s\n" "## ---------------- ##
1987## Cache variables. ##
1988## ---------------- ##"
1989    echo
1990    # The following way of writing the cache mishandles newlines in values,
1991(
1992  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993    eval ac_val=\$$ac_var
1994    case $ac_val in #(
1995    *${as_nl}*)
1996      case $ac_var in #(
1997      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999      esac
2000      case $ac_var in #(
2001      _ | IFS | as_nl) ;; #(
2002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003      *) { eval $ac_var=; unset $ac_var;} ;;
2004      esac ;;
2005    esac
2006  done
2007  (set) 2>&1 |
2008    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009    *${as_nl}ac_space=\ *)
2010      sed -n \
2011	"s/'\''/'\''\\\\'\'''\''/g;
2012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013      ;; #(
2014    *)
2015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016      ;;
2017    esac |
2018    sort
2019)
2020    echo
2021
2022    printf "%s\n" "## ----------------- ##
2023## Output variables. ##
2024## ----------------- ##"
2025    echo
2026    for ac_var in $ac_subst_vars
2027    do
2028      eval ac_val=\$$ac_var
2029      case $ac_val in
2030      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031      esac
2032      printf "%s\n" "$ac_var='\''$ac_val'\''"
2033    done | sort
2034    echo
2035
2036    if test -n "$ac_subst_files"; then
2037      printf "%s\n" "## ------------------- ##
2038## File substitutions. ##
2039## ------------------- ##"
2040      echo
2041      for ac_var in $ac_subst_files
2042      do
2043	eval ac_val=\$$ac_var
2044	case $ac_val in
2045	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046	esac
2047	printf "%s\n" "$ac_var='\''$ac_val'\''"
2048      done | sort
2049      echo
2050    fi
2051
2052    if test -s confdefs.h; then
2053      printf "%s\n" "## ----------- ##
2054## confdefs.h. ##
2055## ----------- ##"
2056      echo
2057      cat confdefs.h
2058      echo
2059    fi
2060    test "$ac_signal" != 0 &&
2061      printf "%s\n" "$as_me: caught signal $ac_signal"
2062    printf "%s\n" "$as_me: exit $exit_status"
2063  } >&5
2064  rm -f core *.core core.conftest.* &&
2065    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066    exit $exit_status
2067' 0
2068for ac_signal in 1 2 13 15; do
2069  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070done
2071ac_signal=0
2072
2073# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074rm -f -r conftest* confdefs.h
2075
2076printf "%s\n" "/* confdefs.h */" > confdefs.h
2077
2078# Predefined preprocessor variables.
2079
2080printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2081
2082printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2083
2084printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2085
2086printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2087
2088printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2089
2090printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2091
2092
2093# Let the site file select an alternate cache file if it wants to.
2094# Prefer an explicitly selected file to automatically selected ones.
2095if test -n "$CONFIG_SITE"; then
2096  ac_site_files="$CONFIG_SITE"
2097elif test "x$prefix" != xNONE; then
2098  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2099else
2100  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2101fi
2102
2103for ac_site_file in $ac_site_files
2104do
2105  case $ac_site_file in #(
2106  */*) :
2107     ;; #(
2108  *) :
2109    ac_site_file=./$ac_site_file ;;
2110esac
2111  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2113printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2114    sed 's/^/| /' "$ac_site_file" >&5
2115    . "$ac_site_file" \
2116      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2118as_fn_error $? "failed to load site script $ac_site_file
2119See \`config.log' for more details" "$LINENO" 5; }
2120  fi
2121done
2122
2123if test -r "$cache_file"; then
2124  # Some versions of bash will fail to source /dev/null (special files
2125  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2126  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2129    case $cache_file in
2130      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131      *)                      . "./$cache_file";;
2132    esac
2133  fi
2134else
2135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2137  >$cache_file
2138fi
2139
2140# Test code for whether the C compiler supports C89 (global declarations)
2141ac_c_conftest_c89_globals='
2142/* Does the compiler advertise C89 conformance?
2143   Do not test the value of __STDC__, because some compilers set it to 0
2144   while being otherwise adequately conformant. */
2145#if !defined __STDC__
2146# error "Compiler does not advertise C89 conformance"
2147#endif
2148
2149#include <stddef.h>
2150#include <stdarg.h>
2151struct stat;
2152/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2153struct buf { int x; };
2154struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2155static char *e (char **p, int i)
2156{
2157  return p[i];
2158}
2159static char *f (char * (*g) (char **, int), char **p, ...)
2160{
2161  char *s;
2162  va_list v;
2163  va_start (v,p);
2164  s = g (p, va_arg (v,int));
2165  va_end (v);
2166  return s;
2167}
2168
2169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2170   function prototypes and stuff, but not \xHH hex character constants.
2171   These do not provoke an error unfortunately, instead are silently treated
2172   as an "x".  The following induces an error, until -std is added to get
2173   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2174   array size at least.  It is necessary to write \x00 == 0 to get something
2175   that is true only with -std.  */
2176int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2177
2178/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2179   inside strings and character constants.  */
2180#define FOO(x) '\''x'\''
2181int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2182
2183int test (int i, double x);
2184struct s1 {int (*f) (int a);};
2185struct s2 {int (*f) (double a);};
2186int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2187               int, int);'
2188
2189# Test code for whether the C compiler supports C89 (body of main).
2190ac_c_conftest_c89_main='
2191ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2192'
2193
2194# Test code for whether the C compiler supports C99 (global declarations)
2195ac_c_conftest_c99_globals='
2196// Does the compiler advertise C99 conformance?
2197#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2198# error "Compiler does not advertise C99 conformance"
2199#endif
2200
2201#include <stdbool.h>
2202extern int puts (const char *);
2203extern int printf (const char *, ...);
2204extern int dprintf (int, const char *, ...);
2205extern void *malloc (size_t);
2206extern void free (void *);
2207
2208// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2209// dprintf is used instead of fprintf to avoid needing to declare
2210// FILE and stderr.
2211#define debug(...) dprintf (2, __VA_ARGS__)
2212#define showlist(...) puts (#__VA_ARGS__)
2213#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2214static void
2215test_varargs_macros (void)
2216{
2217  int x = 1234;
2218  int y = 5678;
2219  debug ("Flag");
2220  debug ("X = %d\n", x);
2221  showlist (The first, second, and third items.);
2222  report (x>y, "x is %d but y is %d", x, y);
2223}
2224
2225// Check long long types.
2226#define BIG64 18446744073709551615ull
2227#define BIG32 4294967295ul
2228#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2229#if !BIG_OK
2230  #error "your preprocessor is broken"
2231#endif
2232#if BIG_OK
2233#else
2234  #error "your preprocessor is broken"
2235#endif
2236static long long int bignum = -9223372036854775807LL;
2237static unsigned long long int ubignum = BIG64;
2238
2239struct incomplete_array
2240{
2241  int datasize;
2242  double data[];
2243};
2244
2245struct named_init {
2246  int number;
2247  const wchar_t *name;
2248  double average;
2249};
2250
2251typedef const char *ccp;
2252
2253static inline int
2254test_restrict (ccp restrict text)
2255{
2256  // See if C++-style comments work.
2257  // Iterate through items via the restricted pointer.
2258  // Also check for declarations in for loops.
2259  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2260    continue;
2261  return 0;
2262}
2263
2264// Check varargs and va_copy.
2265static bool
2266test_varargs (const char *format, ...)
2267{
2268  va_list args;
2269  va_start (args, format);
2270  va_list args_copy;
2271  va_copy (args_copy, args);
2272
2273  const char *str = "";
2274  int number = 0;
2275  float fnumber = 0;
2276
2277  while (*format)
2278    {
2279      switch (*format++)
2280	{
2281	case '\''s'\'': // string
2282	  str = va_arg (args_copy, const char *);
2283	  break;
2284	case '\''d'\'': // int
2285	  number = va_arg (args_copy, int);
2286	  break;
2287	case '\''f'\'': // float
2288	  fnumber = va_arg (args_copy, double);
2289	  break;
2290	default:
2291	  break;
2292	}
2293    }
2294  va_end (args_copy);
2295  va_end (args);
2296
2297  return *str && number && fnumber;
2298}
2299'
2300
2301# Test code for whether the C compiler supports C99 (body of main).
2302ac_c_conftest_c99_main='
2303  // Check bool.
2304  _Bool success = false;
2305  success |= (argc != 0);
2306
2307  // Check restrict.
2308  if (test_restrict ("String literal") == 0)
2309    success = true;
2310  char *restrict newvar = "Another string";
2311
2312  // Check varargs.
2313  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2314  test_varargs_macros ();
2315
2316  // Check flexible array members.
2317  struct incomplete_array *ia =
2318    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2319  ia->datasize = 10;
2320  for (int i = 0; i < ia->datasize; ++i)
2321    ia->data[i] = i * 1.234;
2322
2323  // Check named initializers.
2324  struct named_init ni = {
2325    .number = 34,
2326    .name = L"Test wide string",
2327    .average = 543.34343,
2328  };
2329
2330  ni.number = 58;
2331
2332  int dynamic_array[ni.number];
2333  dynamic_array[0] = argv[0][0];
2334  dynamic_array[ni.number - 1] = 543;
2335
2336  // work around unused variable warnings
2337  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2338	 || dynamic_array[ni.number - 1] != 543);
2339'
2340
2341# Test code for whether the C compiler supports C11 (global declarations)
2342ac_c_conftest_c11_globals='
2343// Does the compiler advertise C11 conformance?
2344#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2345# error "Compiler does not advertise C11 conformance"
2346#endif
2347
2348// Check _Alignas.
2349char _Alignas (double) aligned_as_double;
2350char _Alignas (0) no_special_alignment;
2351extern char aligned_as_int;
2352char _Alignas (0) _Alignas (int) aligned_as_int;
2353
2354// Check _Alignof.
2355enum
2356{
2357  int_alignment = _Alignof (int),
2358  int_array_alignment = _Alignof (int[100]),
2359  char_alignment = _Alignof (char)
2360};
2361_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362
2363// Check _Noreturn.
2364int _Noreturn does_not_return (void) { for (;;) continue; }
2365
2366// Check _Static_assert.
2367struct test_static_assert
2368{
2369  int x;
2370  _Static_assert (sizeof (int) <= sizeof (long int),
2371                  "_Static_assert does not work in struct");
2372  long int y;
2373};
2374
2375// Check UTF-8 literals.
2376#define u8 syntax error!
2377char const utf8_literal[] = u8"happens to be ASCII" "another string";
2378
2379// Check duplicate typedefs.
2380typedef long *long_ptr;
2381typedef long int *long_ptr;
2382typedef long_ptr long_ptr;
2383
2384// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2385struct anonymous
2386{
2387  union {
2388    struct { int i; int j; };
2389    struct { int k; long int l; } w;
2390  };
2391  int m;
2392} v1;
2393'
2394
2395# Test code for whether the C compiler supports C11 (body of main).
2396ac_c_conftest_c11_main='
2397  _Static_assert ((offsetof (struct anonymous, i)
2398		   == offsetof (struct anonymous, w.k)),
2399		  "Anonymous union alignment botch");
2400  v1.i = 2;
2401  v1.w.k = 5;
2402  ok |= v1.i != 5;
2403'
2404
2405# Test code for whether the C compiler supports C11 (complete).
2406ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2407${ac_c_conftest_c99_globals}
2408${ac_c_conftest_c11_globals}
2409
2410int
2411main (int argc, char **argv)
2412{
2413  int ok = 0;
2414  ${ac_c_conftest_c89_main}
2415  ${ac_c_conftest_c99_main}
2416  ${ac_c_conftest_c11_main}
2417  return ok;
2418}
2419"
2420
2421# Test code for whether the C compiler supports C99 (complete).
2422ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2423${ac_c_conftest_c99_globals}
2424
2425int
2426main (int argc, char **argv)
2427{
2428  int ok = 0;
2429  ${ac_c_conftest_c89_main}
2430  ${ac_c_conftest_c99_main}
2431  return ok;
2432}
2433"
2434
2435# Test code for whether the C compiler supports C89 (complete).
2436ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2437
2438int
2439main (int argc, char **argv)
2440{
2441  int ok = 0;
2442  ${ac_c_conftest_c89_main}
2443  return ok;
2444}
2445"
2446
2447as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2448as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2449as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2450as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2451as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2452as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2453as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2454as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2455as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2456
2457# Auxiliary files required by this configure script.
2458ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2459
2460# Locations in which to look for auxiliary files.
2461ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2462
2463# Search for a directory containing all of the required auxiliary files,
2464# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2465# If we don't find one directory that contains all the files we need,
2466# we report the set of missing files from the *first* directory in
2467# $ac_aux_dir_candidates and give up.
2468ac_missing_aux_files=""
2469ac_first_candidate=:
2470printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472as_found=false
2473for as_dir in $ac_aux_dir_candidates
2474do
2475  IFS=$as_save_IFS
2476  case $as_dir in #(((
2477    '') as_dir=./ ;;
2478    */) ;;
2479    *) as_dir=$as_dir/ ;;
2480  esac
2481  as_found=:
2482
2483  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2484  ac_aux_dir_found=yes
2485  ac_install_sh=
2486  for ac_aux in $ac_aux_files
2487  do
2488    # As a special case, if "install-sh" is required, that requirement
2489    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2490    # and $ac_install_sh is set appropriately for whichever one is found.
2491    if test x"$ac_aux" = x"install-sh"
2492    then
2493      if test -f "${as_dir}install-sh"; then
2494        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2495        ac_install_sh="${as_dir}install-sh -c"
2496      elif test -f "${as_dir}install.sh"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2498        ac_install_sh="${as_dir}install.sh -c"
2499      elif test -f "${as_dir}shtool"; then
2500        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2501        ac_install_sh="${as_dir}shtool install -c"
2502      else
2503        ac_aux_dir_found=no
2504        if $ac_first_candidate; then
2505          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2506        else
2507          break
2508        fi
2509      fi
2510    else
2511      if test -f "${as_dir}${ac_aux}"; then
2512        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2513      else
2514        ac_aux_dir_found=no
2515        if $ac_first_candidate; then
2516          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2517        else
2518          break
2519        fi
2520      fi
2521    fi
2522  done
2523  if test "$ac_aux_dir_found" = yes; then
2524    ac_aux_dir="$as_dir"
2525    break
2526  fi
2527  ac_first_candidate=false
2528
2529  as_found=false
2530done
2531IFS=$as_save_IFS
2532if $as_found
2533then :
2534
2535else $as_nop
2536  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2537fi
2538
2539
2540# These three variables are undocumented and unsupported,
2541# and are intended to be withdrawn in a future Autoconf release.
2542# They can cause serious problems if a builder's source tree is in a directory
2543# whose full name contains unusual characters.
2544if test -f "${ac_aux_dir}config.guess"; then
2545  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2546fi
2547if test -f "${ac_aux_dir}config.sub"; then
2548  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2549fi
2550if test -f "$ac_aux_dir/configure"; then
2551  ac_configure="$SHELL ${ac_aux_dir}configure"
2552fi
2553
2554# Check that the precious variables saved in the cache have kept the same
2555# value.
2556ac_cache_corrupted=false
2557for ac_var in $ac_precious_vars; do
2558  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559  eval ac_new_set=\$ac_env_${ac_var}_set
2560  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561  eval ac_new_val=\$ac_env_${ac_var}_value
2562  case $ac_old_set,$ac_new_set in
2563    set,)
2564      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566      ac_cache_corrupted=: ;;
2567    ,set)
2568      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570      ac_cache_corrupted=: ;;
2571    ,);;
2572    *)
2573      if test "x$ac_old_val" != "x$ac_new_val"; then
2574	# differences in whitespace do not lead to failure.
2575	ac_old_val_w=`echo x $ac_old_val`
2576	ac_new_val_w=`echo x $ac_new_val`
2577	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580	  ac_cache_corrupted=:
2581	else
2582	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584	  eval $ac_var=\$ac_old_val
2585	fi
2586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2587printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2589printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2590      fi;;
2591  esac
2592  # Pass precious variables to config.status.
2593  if test "$ac_new_set" = set; then
2594    case $ac_new_val in
2595    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596    *) ac_arg=$ac_var=$ac_new_val ;;
2597    esac
2598    case " $ac_configure_args " in
2599      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2600      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601    esac
2602  fi
2603done
2604if $ac_cache_corrupted; then
2605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2609  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2610	    and start over" "$LINENO" 5
2611fi
2612## -------------------- ##
2613## Main body of script. ##
2614## -------------------- ##
2615
2616ac_ext=c
2617ac_cpp='$CPP $CPPFLAGS'
2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622
2623
2624ac_config_headers="$ac_config_headers config.h"
2625
2626
2627
2628# Initialize Automake
2629am__api_version='1.16'
2630
2631
2632
2633  # Find a good install program.  We prefer a C program (faster),
2634# so one script is as good as another.  But avoid the broken or
2635# incompatible versions:
2636# SysV /etc/install, /usr/sbin/install
2637# SunOS /usr/etc/install
2638# IRIX /sbin/install
2639# AIX /bin/install
2640# AmigaOS /C/install, which installs bootblocks on floppy discs
2641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644# OS/2's system install, which has a completely different semantic
2645# ./install, which can be erroneously created by make from ./install.sh.
2646# Reject install programs that cannot install multiple files.
2647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648printf %s "checking for a BSD-compatible install... " >&6; }
2649if test -z "$INSTALL"; then
2650if test ${ac_cv_path_install+y}
2651then :
2652  printf %s "(cached) " >&6
2653else $as_nop
2654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657  IFS=$as_save_IFS
2658  case $as_dir in #(((
2659    '') as_dir=./ ;;
2660    */) ;;
2661    *) as_dir=$as_dir/ ;;
2662  esac
2663    # Account for fact that we put trailing slashes in our PATH walk.
2664case $as_dir in #((
2665  ./ | /[cC]/* | \
2666  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2667  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2668  /usr/ucb/* ) ;;
2669  *)
2670    # OSF1 and SCO ODT 3.0 have their own names for install.
2671    # Don't use installbsd from OSF since it installs stuff as root
2672    # by default.
2673    for ac_prog in ginstall scoinst install; do
2674      for ac_exec_ext in '' $ac_executable_extensions; do
2675	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2676	  if test $ac_prog = install &&
2677	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678	    # AIX install.  It has an incompatible calling convention.
2679	    :
2680	  elif test $ac_prog = install &&
2681	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682	    # program-specific install script used by HP pwplus--don't use.
2683	    :
2684	  else
2685	    rm -rf conftest.one conftest.two conftest.dir
2686	    echo one > conftest.one
2687	    echo two > conftest.two
2688	    mkdir conftest.dir
2689	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2690	      test -s conftest.one && test -s conftest.two &&
2691	      test -s conftest.dir/conftest.one &&
2692	      test -s conftest.dir/conftest.two
2693	    then
2694	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2695	      break 3
2696	    fi
2697	  fi
2698	fi
2699      done
2700    done
2701    ;;
2702esac
2703
2704  done
2705IFS=$as_save_IFS
2706
2707rm -rf conftest.one conftest.two conftest.dir
2708
2709fi
2710  if test ${ac_cv_path_install+y}; then
2711    INSTALL=$ac_cv_path_install
2712  else
2713    # As a last resort, use the slow shell script.  Don't cache a
2714    # value for INSTALL within a source directory, because that will
2715    # break other packages using the cache if that directory is
2716    # removed, or if the value is a relative name.
2717    INSTALL=$ac_install_sh
2718  fi
2719fi
2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2721printf "%s\n" "$INSTALL" >&6; }
2722
2723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724# It thinks the first close brace ends the variable substitution.
2725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
2727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2728
2729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
2731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2732printf %s "checking whether build environment is sane... " >&6; }
2733# Reject unsafe characters in $srcdir or the absolute working directory
2734# name.  Accept space and tab only in the latter.
2735am_lf='
2736'
2737case `pwd` in
2738  *[\\\"\#\$\&\'\`$am_lf]*)
2739    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2740esac
2741case $srcdir in
2742  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2743    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2744esac
2745
2746# Do 'set' in a subshell so we don't clobber the current shell's
2747# arguments.  Must try -L first in case configure is actually a
2748# symlink; some systems play weird games with the mod time of symlinks
2749# (eg FreeBSD returns the mod time of the symlink's containing
2750# directory).
2751if (
2752   am_has_slept=no
2753   for am_try in 1 2; do
2754     echo "timestamp, slept: $am_has_slept" > conftest.file
2755     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2756     if test "$*" = "X"; then
2757	# -L didn't work.
2758	set X `ls -t "$srcdir/configure" conftest.file`
2759     fi
2760     if test "$*" != "X $srcdir/configure conftest.file" \
2761	&& test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763	# If neither matched, then we have a broken ls.  This can happen
2764	# if, for instance, CONFIG_SHELL is bash and it inherits a
2765	# broken ls alias from the environment.  This has actually
2766	# happened.  Such a system could not be considered "sane".
2767	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2768  alias in your environment" "$LINENO" 5
2769     fi
2770     if test "$2" = conftest.file || test $am_try -eq 2; then
2771       break
2772     fi
2773     # Just in case.
2774     sleep 1
2775     am_has_slept=yes
2776   done
2777   test "$2" = conftest.file
2778   )
2779then
2780   # Ok.
2781   :
2782else
2783   as_fn_error $? "newly created file is older than distributed files!
2784Check your system clock" "$LINENO" 5
2785fi
2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787printf "%s\n" "yes" >&6; }
2788# If we didn't sleep, we still need to ensure time stamps of config.status and
2789# generated files are strictly newer.
2790am_sleep_pid=
2791if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2792  ( sleep 1 ) &
2793  am_sleep_pid=$!
2794fi
2795
2796rm -f conftest.file
2797
2798test "$program_prefix" != NONE &&
2799  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2800# Use a double $ so make ignores it.
2801test "$program_suffix" != NONE &&
2802  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2803# Double any \ or $.
2804# By default was `s,x,x', remove it if useless.
2805ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2806program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2807
2808
2809# Expand $ac_aux_dir to an absolute path.
2810am_aux_dir=`cd "$ac_aux_dir" && pwd`
2811
2812
2813  if test x"${MISSING+set}" != xset; then
2814  MISSING="\${SHELL} '$am_aux_dir/missing'"
2815fi
2816# Use eval to expand $SHELL
2817if eval "$MISSING --is-lightweight"; then
2818  am_missing_run="$MISSING "
2819else
2820  am_missing_run=
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2822printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823fi
2824
2825if test x"${install_sh+set}" != xset; then
2826  case $am_aux_dir in
2827  *\ * | *\	*)
2828    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2829  *)
2830    install_sh="\${SHELL} $am_aux_dir/install-sh"
2831  esac
2832fi
2833
2834# Installed binaries are usually stripped using 'strip' when the user
2835# run "make install-strip".  However 'strip' might not be the right
2836# tool to use in cross-compilation environments, therefore Automake
2837# will honor the 'STRIP' environment variable to overrule this program.
2838if test "$cross_compiling" != no; then
2839  if test -n "$ac_tool_prefix"; then
2840  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2841set dummy ${ac_tool_prefix}strip; ac_word=$2
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843printf %s "checking for $ac_word... " >&6; }
2844if test ${ac_cv_prog_STRIP+y}
2845then :
2846  printf %s "(cached) " >&6
2847else $as_nop
2848  if test -n "$STRIP"; then
2849  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  case $as_dir in #(((
2856    '') as_dir=./ ;;
2857    */) ;;
2858    *) as_dir=$as_dir/ ;;
2859  esac
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872STRIP=$ac_cv_prog_STRIP
2873if test -n "$STRIP"; then
2874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2875printf "%s\n" "$STRIP" >&6; }
2876else
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878printf "%s\n" "no" >&6; }
2879fi
2880
2881
2882fi
2883if test -z "$ac_cv_prog_STRIP"; then
2884  ac_ct_STRIP=$STRIP
2885  # Extract the first word of "strip", so it can be a program name with args.
2886set dummy strip; ac_word=$2
2887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888printf %s "checking for $ac_word... " >&6; }
2889if test ${ac_cv_prog_ac_ct_STRIP+y}
2890then :
2891  printf %s "(cached) " >&6
2892else $as_nop
2893  if test -n "$ac_ct_STRIP"; then
2894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895else
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  case $as_dir in #(((
2901    '') as_dir=./ ;;
2902    */) ;;
2903    *) as_dir=$as_dir/ ;;
2904  esac
2905    for ac_exec_ext in '' $ac_executable_extensions; do
2906  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2907    ac_cv_prog_ac_ct_STRIP="strip"
2908    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916fi
2917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2918if test -n "$ac_ct_STRIP"; then
2919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2920printf "%s\n" "$ac_ct_STRIP" >&6; }
2921else
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923printf "%s\n" "no" >&6; }
2924fi
2925
2926  if test "x$ac_ct_STRIP" = x; then
2927    STRIP=":"
2928  else
2929    case $cross_compiling:$ac_tool_warned in
2930yes:)
2931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933ac_tool_warned=yes ;;
2934esac
2935    STRIP=$ac_ct_STRIP
2936  fi
2937else
2938  STRIP="$ac_cv_prog_STRIP"
2939fi
2940
2941fi
2942INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2943
2944
2945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2946printf %s "checking for a race-free mkdir -p... " >&6; }
2947if test -z "$MKDIR_P"; then
2948  if test ${ac_cv_path_mkdir+y}
2949then :
2950  printf %s "(cached) " >&6
2951else $as_nop
2952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_prog in mkdir gmkdir; do
2962	 for ac_exec_ext in '' $ac_executable_extensions; do
2963	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2964	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2965	     'mkdir ('*'coreutils) '* | \
2966	     'BusyBox '* | \
2967	     'mkdir (fileutils) '4.1*)
2968	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2969	       break 3;;
2970	   esac
2971	 done
2972       done
2973  done
2974IFS=$as_save_IFS
2975
2976fi
2977
2978  test -d ./--version && rmdir ./--version
2979  if test ${ac_cv_path_mkdir+y}; then
2980    MKDIR_P="$ac_cv_path_mkdir -p"
2981  else
2982    # As a last resort, use the slow shell script.  Don't cache a
2983    # value for MKDIR_P within a source directory, because that will
2984    # break other packages using the cache if that directory is
2985    # removed, or if the value is a relative name.
2986    MKDIR_P="$ac_install_sh -d"
2987  fi
2988fi
2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2990printf "%s\n" "$MKDIR_P" >&6; }
2991
2992for ac_prog in gawk mawk nawk awk
2993do
2994  # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997printf %s "checking for $ac_word... " >&6; }
2998if test ${ac_cv_prog_AWK+y}
2999then :
3000  printf %s "(cached) " >&6
3001else $as_nop
3002  if test -n "$AWK"; then
3003  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  case $as_dir in #(((
3010    '') as_dir=./ ;;
3011    */) ;;
3012    *) as_dir=$as_dir/ ;;
3013  esac
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3016    ac_cv_prog_AWK="$ac_prog"
3017    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026AWK=$ac_cv_prog_AWK
3027if test -n "$AWK"; then
3028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3029printf "%s\n" "$AWK" >&6; }
3030else
3031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032printf "%s\n" "no" >&6; }
3033fi
3034
3035
3036  test -n "$AWK" && break
3037done
3038
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3040printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3041set x ${MAKE-make}
3042ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3043if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3044then :
3045  printf %s "(cached) " >&6
3046else $as_nop
3047  cat >conftest.make <<\_ACEOF
3048SHELL = /bin/sh
3049all:
3050	@echo '@@@%%%=$(MAKE)=@@@%%%'
3051_ACEOF
3052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054  *@@@%%%=?*=@@@%%%*)
3055    eval ac_cv_prog_make_${ac_make}_set=yes;;
3056  *)
3057    eval ac_cv_prog_make_${ac_make}_set=no;;
3058esac
3059rm -f conftest.make
3060fi
3061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063printf "%s\n" "yes" >&6; }
3064  SET_MAKE=
3065else
3066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067printf "%s\n" "no" >&6; }
3068  SET_MAKE="MAKE=${MAKE-make}"
3069fi
3070
3071rm -rf .tst 2>/dev/null
3072mkdir .tst 2>/dev/null
3073if test -d .tst; then
3074  am__leading_dot=.
3075else
3076  am__leading_dot=_
3077fi
3078rmdir .tst 2>/dev/null
3079
3080# Check whether --enable-silent-rules was given.
3081if test ${enable_silent_rules+y}
3082then :
3083  enableval=$enable_silent_rules;
3084fi
3085
3086case $enable_silent_rules in # (((
3087  yes) AM_DEFAULT_VERBOSITY=0;;
3088   no) AM_DEFAULT_VERBOSITY=1;;
3089    *) AM_DEFAULT_VERBOSITY=1;;
3090esac
3091am_make=${MAKE-make}
3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3093printf %s "checking whether $am_make supports nested variables... " >&6; }
3094if test ${am_cv_make_support_nested_variables+y}
3095then :
3096  printf %s "(cached) " >&6
3097else $as_nop
3098  if printf "%s\n" 'TRUE=$(BAR$(V))
3099BAR0=false
3100BAR1=true
3101V=1
3102am__doit:
3103	@$(TRUE)
3104.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3105  am_cv_make_support_nested_variables=yes
3106else
3107  am_cv_make_support_nested_variables=no
3108fi
3109fi
3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3111printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3112if test $am_cv_make_support_nested_variables = yes; then
3113    AM_V='$(V)'
3114  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3115else
3116  AM_V=$AM_DEFAULT_VERBOSITY
3117  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3118fi
3119AM_BACKSLASH='\'
3120
3121if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123  # is not polluted with repeated "-I."
3124  am__isrc=' -I$(srcdir)'
3125  # test to see if srcdir already configured
3126  if test -f $srcdir/config.status; then
3127    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3128  fi
3129fi
3130
3131# test whether we have cygpath
3132if test -z "$CYGPATH_W"; then
3133  if (cygpath --version) >/dev/null 2>/dev/null; then
3134    CYGPATH_W='cygpath -w'
3135  else
3136    CYGPATH_W=echo
3137  fi
3138fi
3139
3140
3141# Define the identity of the package.
3142 PACKAGE='libXft'
3143 VERSION='2.3.8'
3144
3145
3146printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3147
3148
3149printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3150
3151# Some tools Automake needs.
3152
3153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3154
3155
3156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3157
3158
3159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3160
3161
3162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3163
3164
3165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3166
3167# For better backward compatibility.  To be removed once Automake 1.9.x
3168# dies out for good.  For more background, see:
3169# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3170# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3171mkdir_p='$(MKDIR_P)'
3172
3173# We need awk for the "check" target (and possibly the TAP driver).  The
3174# system "awk" is bad on some platforms.
3175# Always define AMTAR for backward compatibility.  Yes, it's still used
3176# in the wild :-(  We should find a proper way to deprecate it ...
3177AMTAR='$${TAR-tar}'
3178
3179
3180# We'll loop over all known methods to create a tar archive until one works.
3181_am_tools='gnutar  pax cpio none'
3182
3183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3184
3185
3186
3187
3188
3189# Variables for tags utilities; see am/tags.am
3190if test -z "$CTAGS"; then
3191  CTAGS=ctags
3192fi
3193
3194if test -z "$ETAGS"; then
3195  ETAGS=etags
3196fi
3197
3198if test -z "$CSCOPE"; then
3199  CSCOPE=cscope
3200fi
3201
3202
3203
3204# POSIX will say in a future version that running "rm -f" with no argument
3205# is OK; and we want to be able to make that assumption in our Makefile
3206# recipes.  So use an aggressive probe to check that the usage we want is
3207# actually supported "in the wild" to an acceptable degree.
3208# See automake bug#10828.
3209# To make any issue more visible, cause the running configure to be aborted
3210# by default if the 'rm' program in use doesn't match our expectations; the
3211# user can still override this though.
3212if rm -f && rm -fr && rm -rf; then : OK; else
3213  cat >&2 <<'END'
3214Oops!
3215
3216Your 'rm' program seems unable to run without file operands specified
3217on the command line, even when the '-f' option is present.  This is contrary
3218to the behaviour of most rm programs out there, and not conforming with
3219the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3220
3221Please tell bug-automake@gnu.org about your system, including the value
3222of your $PATH and any error possibly output before this message.  This
3223can help us improve future automake versions.
3224
3225END
3226  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3227    echo 'Configuration will proceed anyway, since you have set the' >&2
3228    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3229    echo >&2
3230  else
3231    cat >&2 <<'END'
3232Aborting the configuration process, to ensure you take notice of the issue.
3233
3234You can download and install GNU coreutils to get an 'rm' implementation
3235that behaves properly: <https://www.gnu.org/software/coreutils/>.
3236
3237If you want to complete the configuration process using your problematic
3238'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3239to "yes", and re-run configure.
3240
3241END
3242    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3243  fi
3244fi
3245
3246
3247# Initialize libtool
3248case `pwd` in
3249  *\ * | *\	*)
3250    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3251printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3252esac
3253
3254
3255
3256macro_version='2.4.7'
3257macro_revision='2.4.7'
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272ltmain=$ac_aux_dir/ltmain.sh
3273
3274
3275
3276  # Make sure we can run config.sub.
3277$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3278  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3279
3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3281printf %s "checking build system type... " >&6; }
3282if test ${ac_cv_build+y}
3283then :
3284  printf %s "(cached) " >&6
3285else $as_nop
3286  ac_build_alias=$build_alias
3287test "x$ac_build_alias" = x &&
3288  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3289test "x$ac_build_alias" = x &&
3290  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3291ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3292  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3293
3294fi
3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3296printf "%s\n" "$ac_cv_build" >&6; }
3297case $ac_cv_build in
3298*-*-*) ;;
3299*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3300esac
3301build=$ac_cv_build
3302ac_save_IFS=$IFS; IFS='-'
3303set x $ac_cv_build
3304shift
3305build_cpu=$1
3306build_vendor=$2
3307shift; shift
3308# Remember, the first character of IFS is used to create $*,
3309# except with old shells:
3310build_os=$*
3311IFS=$ac_save_IFS
3312case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3313
3314
3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3316printf %s "checking host system type... " >&6; }
3317if test ${ac_cv_host+y}
3318then :
3319  printf %s "(cached) " >&6
3320else $as_nop
3321  if test "x$host_alias" = x; then
3322  ac_cv_host=$ac_cv_build
3323else
3324  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3325    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3326fi
3327
3328fi
3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3330printf "%s\n" "$ac_cv_host" >&6; }
3331case $ac_cv_host in
3332*-*-*) ;;
3333*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3334esac
3335host=$ac_cv_host
3336ac_save_IFS=$IFS; IFS='-'
3337set x $ac_cv_host
3338shift
3339host_cpu=$1
3340host_vendor=$2
3341shift; shift
3342# Remember, the first character of IFS is used to create $*,
3343# except with old shells:
3344host_os=$*
3345IFS=$ac_save_IFS
3346case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3347
3348
3349# Backslashify metacharacters that are still active within
3350# double-quoted strings.
3351sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3352
3353# Same as above, but do not quote variable references.
3354double_quote_subst='s/\(["`\\]\)/\\\1/g'
3355
3356# Sed substitution to delay expansion of an escaped shell variable in a
3357# double_quote_subst'ed string.
3358delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3359
3360# Sed substitution to delay expansion of an escaped single quote.
3361delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3362
3363# Sed substitution to avoid accidental globbing in evaled expressions
3364no_glob_subst='s/\*/\\\*/g'
3365
3366ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3367ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3368ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3369
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3371printf %s "checking how to print strings... " >&6; }
3372# Test print first, because it will be a builtin if present.
3373if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3374   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3375  ECHO='print -r --'
3376elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3377  ECHO='printf %s\n'
3378else
3379  # Use this function as a fallback that always works.
3380  func_fallback_echo ()
3381  {
3382    eval 'cat <<_LTECHO_EOF
3383$1
3384_LTECHO_EOF'
3385  }
3386  ECHO='func_fallback_echo'
3387fi
3388
3389# func_echo_all arg...
3390# Invoke $ECHO with all args, space-separated.
3391func_echo_all ()
3392{
3393    $ECHO ""
3394}
3395
3396case $ECHO in
3397  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3398printf "%s\n" "printf" >&6; } ;;
3399  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3400printf "%s\n" "print -r" >&6; } ;;
3401  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3402printf "%s\n" "cat" >&6; } ;;
3403esac
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427DEPDIR="${am__leading_dot}deps"
3428
3429ac_config_commands="$ac_config_commands depfiles"
3430
3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3432printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3433cat > confinc.mk << 'END'
3434am__doit:
3435	@echo this is the am__doit target >confinc.out
3436.PHONY: am__doit
3437END
3438am__include="#"
3439am__quote=
3440# BSD make does it like this.
3441echo '.include "confinc.mk" # ignored' > confmf.BSD
3442# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3443echo 'include confinc.mk # ignored' > confmf.GNU
3444_am_result=no
3445for s in GNU BSD; do
3446  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3447   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }
3451  case $?:`cat confinc.out 2>/dev/null` in #(
3452  '0:this is the am__doit target') :
3453    case $s in #(
3454  BSD) :
3455    am__include='.include' am__quote='"' ;; #(
3456  *) :
3457    am__include='include' am__quote='' ;;
3458esac ;; #(
3459  *) :
3460     ;;
3461esac
3462  if test "$am__include" != "#"; then
3463    _am_result="yes ($s style)"
3464    break
3465  fi
3466done
3467rm -f confinc.* confmf.*
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3469printf "%s\n" "${_am_result}" >&6; }
3470
3471# Check whether --enable-dependency-tracking was given.
3472if test ${enable_dependency_tracking+y}
3473then :
3474  enableval=$enable_dependency_tracking;
3475fi
3476
3477if test "x$enable_dependency_tracking" != xno; then
3478  am_depcomp="$ac_aux_dir/depcomp"
3479  AMDEPBACKSLASH='\'
3480  am__nodep='_no'
3481fi
3482 if test "x$enable_dependency_tracking" != xno; then
3483  AMDEP_TRUE=
3484  AMDEP_FALSE='#'
3485else
3486  AMDEP_TRUE='#'
3487  AMDEP_FALSE=
3488fi
3489
3490
3491ac_ext=c
3492ac_cpp='$CPP $CPPFLAGS'
3493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496if test -n "$ac_tool_prefix"; then
3497  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500printf %s "checking for $ac_word... " >&6; }
3501if test ${ac_cv_prog_CC+y}
3502then :
3503  printf %s "(cached) " >&6
3504else $as_nop
3505  if test -n "$CC"; then
3506  ac_cv_prog_CC="$CC" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511  IFS=$as_save_IFS
3512  case $as_dir in #(((
3513    '') as_dir=./ ;;
3514    */) ;;
3515    *) as_dir=$as_dir/ ;;
3516  esac
3517    for ac_exec_ext in '' $ac_executable_extensions; do
3518  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521    break 2
3522  fi
3523done
3524  done
3525IFS=$as_save_IFS
3526
3527fi
3528fi
3529CC=$ac_cv_prog_CC
3530if test -n "$CC"; then
3531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532printf "%s\n" "$CC" >&6; }
3533else
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535printf "%s\n" "no" >&6; }
3536fi
3537
3538
3539fi
3540if test -z "$ac_cv_prog_CC"; then
3541  ac_ct_CC=$CC
3542  # Extract the first word of "gcc", so it can be a program name with args.
3543set dummy gcc; ac_word=$2
3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545printf %s "checking for $ac_word... " >&6; }
3546if test ${ac_cv_prog_ac_ct_CC+y}
3547then :
3548  printf %s "(cached) " >&6
3549else $as_nop
3550  if test -n "$ac_ct_CC"; then
3551  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556  IFS=$as_save_IFS
3557  case $as_dir in #(((
3558    '') as_dir=./ ;;
3559    */) ;;
3560    *) as_dir=$as_dir/ ;;
3561  esac
3562    for ac_exec_ext in '' $ac_executable_extensions; do
3563  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564    ac_cv_prog_ac_ct_CC="gcc"
3565    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566    break 2
3567  fi
3568done
3569  done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575if test -n "$ac_ct_CC"; then
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577printf "%s\n" "$ac_ct_CC" >&6; }
3578else
3579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580printf "%s\n" "no" >&6; }
3581fi
3582
3583  if test "x$ac_ct_CC" = x; then
3584    CC=""
3585  else
3586    case $cross_compiling:$ac_tool_warned in
3587yes:)
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590ac_tool_warned=yes ;;
3591esac
3592    CC=$ac_ct_CC
3593  fi
3594else
3595  CC="$ac_cv_prog_CC"
3596fi
3597
3598if test -z "$CC"; then
3599          if test -n "$ac_tool_prefix"; then
3600    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601set dummy ${ac_tool_prefix}cc; ac_word=$2
3602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603printf %s "checking for $ac_word... " >&6; }
3604if test ${ac_cv_prog_CC+y}
3605then :
3606  printf %s "(cached) " >&6
3607else $as_nop
3608  if test -n "$CC"; then
3609  ac_cv_prog_CC="$CC" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  case $as_dir in #(((
3616    '') as_dir=./ ;;
3617    */) ;;
3618    *) as_dir=$as_dir/ ;;
3619  esac
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622    ac_cv_prog_CC="${ac_tool_prefix}cc"
3623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632CC=$ac_cv_prog_CC
3633if test -n "$CC"; then
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635printf "%s\n" "$CC" >&6; }
3636else
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638printf "%s\n" "no" >&6; }
3639fi
3640
3641
3642  fi
3643fi
3644if test -z "$CC"; then
3645  # Extract the first word of "cc", so it can be a program name with args.
3646set dummy cc; ac_word=$2
3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648printf %s "checking for $ac_word... " >&6; }
3649if test ${ac_cv_prog_CC+y}
3650then :
3651  printf %s "(cached) " >&6
3652else $as_nop
3653  if test -n "$CC"; then
3654  ac_cv_prog_CC="$CC" # Let the user override the test.
3655else
3656  ac_prog_rejected=no
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660  IFS=$as_save_IFS
3661  case $as_dir in #(((
3662    '') as_dir=./ ;;
3663    */) ;;
3664    *) as_dir=$as_dir/ ;;
3665  esac
3666    for ac_exec_ext in '' $ac_executable_extensions; do
3667  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3669       ac_prog_rejected=yes
3670       continue
3671     fi
3672    ac_cv_prog_CC="cc"
3673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674    break 2
3675  fi
3676done
3677  done
3678IFS=$as_save_IFS
3679
3680if test $ac_prog_rejected = yes; then
3681  # We found a bogon in the path, so make sure we never use it.
3682  set dummy $ac_cv_prog_CC
3683  shift
3684  if test $# != 0; then
3685    # We chose a different compiler from the bogus one.
3686    # However, it has the same basename, so the bogon will be chosen
3687    # first if we set CC to just the basename; use the full file name.
3688    shift
3689    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3690  fi
3691fi
3692fi
3693fi
3694CC=$ac_cv_prog_CC
3695if test -n "$CC"; then
3696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697printf "%s\n" "$CC" >&6; }
3698else
3699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700printf "%s\n" "no" >&6; }
3701fi
3702
3703
3704fi
3705if test -z "$CC"; then
3706  if test -n "$ac_tool_prefix"; then
3707  for ac_prog in cl.exe
3708  do
3709    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712printf %s "checking for $ac_word... " >&6; }
3713if test ${ac_cv_prog_CC+y}
3714then :
3715  printf %s "(cached) " >&6
3716else $as_nop
3717  if test -n "$CC"; then
3718  ac_cv_prog_CC="$CC" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  case $as_dir in #(((
3725    '') as_dir=./ ;;
3726    */) ;;
3727    *) as_dir=$as_dir/ ;;
3728  esac
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733    break 2
3734  fi
3735done
3736  done
3737IFS=$as_save_IFS
3738
3739fi
3740fi
3741CC=$ac_cv_prog_CC
3742if test -n "$CC"; then
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744printf "%s\n" "$CC" >&6; }
3745else
3746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747printf "%s\n" "no" >&6; }
3748fi
3749
3750
3751    test -n "$CC" && break
3752  done
3753fi
3754if test -z "$CC"; then
3755  ac_ct_CC=$CC
3756  for ac_prog in cl.exe
3757do
3758  # Extract the first word of "$ac_prog", so it can be a program name with args.
3759set dummy $ac_prog; ac_word=$2
3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761printf %s "checking for $ac_word... " >&6; }
3762if test ${ac_cv_prog_ac_ct_CC+y}
3763then :
3764  printf %s "(cached) " >&6
3765else $as_nop
3766  if test -n "$ac_ct_CC"; then
3767  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772  IFS=$as_save_IFS
3773  case $as_dir in #(((
3774    '') as_dir=./ ;;
3775    */) ;;
3776    *) as_dir=$as_dir/ ;;
3777  esac
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780    ac_cv_prog_ac_ct_CC="$ac_prog"
3781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi
3789fi
3790ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791if test -n "$ac_ct_CC"; then
3792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793printf "%s\n" "$ac_ct_CC" >&6; }
3794else
3795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796printf "%s\n" "no" >&6; }
3797fi
3798
3799
3800  test -n "$ac_ct_CC" && break
3801done
3802
3803  if test "x$ac_ct_CC" = x; then
3804    CC=""
3805  else
3806    case $cross_compiling:$ac_tool_warned in
3807yes:)
3808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810ac_tool_warned=yes ;;
3811esac
3812    CC=$ac_ct_CC
3813  fi
3814fi
3815
3816fi
3817if test -z "$CC"; then
3818  if test -n "$ac_tool_prefix"; then
3819  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3820set dummy ${ac_tool_prefix}clang; ac_word=$2
3821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822printf %s "checking for $ac_word... " >&6; }
3823if test ${ac_cv_prog_CC+y}
3824then :
3825  printf %s "(cached) " >&6
3826else $as_nop
3827  if test -n "$CC"; then
3828  ac_cv_prog_CC="$CC" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833  IFS=$as_save_IFS
3834  case $as_dir in #(((
3835    '') as_dir=./ ;;
3836    */) ;;
3837    *) as_dir=$as_dir/ ;;
3838  esac
3839    for ac_exec_ext in '' $ac_executable_extensions; do
3840  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3841    ac_cv_prog_CC="${ac_tool_prefix}clang"
3842    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3843    break 2
3844  fi
3845done
3846  done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851CC=$ac_cv_prog_CC
3852if test -n "$CC"; then
3853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854printf "%s\n" "$CC" >&6; }
3855else
3856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857printf "%s\n" "no" >&6; }
3858fi
3859
3860
3861fi
3862if test -z "$ac_cv_prog_CC"; then
3863  ac_ct_CC=$CC
3864  # Extract the first word of "clang", so it can be a program name with args.
3865set dummy clang; ac_word=$2
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867printf %s "checking for $ac_word... " >&6; }
3868if test ${ac_cv_prog_ac_ct_CC+y}
3869then :
3870  printf %s "(cached) " >&6
3871else $as_nop
3872  if test -n "$ac_ct_CC"; then
3873  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  case $as_dir in #(((
3880    '') as_dir=./ ;;
3881    */) ;;
3882    *) as_dir=$as_dir/ ;;
3883  esac
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_ac_ct_CC="clang"
3887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897if test -n "$ac_ct_CC"; then
3898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899printf "%s\n" "$ac_ct_CC" >&6; }
3900else
3901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902printf "%s\n" "no" >&6; }
3903fi
3904
3905  if test "x$ac_ct_CC" = x; then
3906    CC=""
3907  else
3908    case $cross_compiling:$ac_tool_warned in
3909yes:)
3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912ac_tool_warned=yes ;;
3913esac
3914    CC=$ac_ct_CC
3915  fi
3916else
3917  CC="$ac_cv_prog_CC"
3918fi
3919
3920fi
3921
3922
3923test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error $? "no acceptable C compiler found in \$PATH
3926See \`config.log' for more details" "$LINENO" 5; }
3927
3928# Provide some information about the compiler.
3929printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3930set X $ac_compile
3931ac_compiler=$2
3932for ac_option in --version -v -V -qversion -version; do
3933  { { ac_try="$ac_compiler $ac_option >&5"
3934case "(($ac_try" in
3935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936  *) ac_try_echo=$ac_try;;
3937esac
3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939printf "%s\n" "$ac_try_echo"; } >&5
3940  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3941  ac_status=$?
3942  if test -s conftest.err; then
3943    sed '10a\
3944... rest of stderr output deleted ...
3945         10q' conftest.err >conftest.er1
3946    cat conftest.er1 >&5
3947  fi
3948  rm -f conftest.er1 conftest.err
3949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950  test $ac_status = 0; }
3951done
3952
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955
3956int
3957main (void)
3958{
3959
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964ac_clean_files_save=$ac_clean_files
3965ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3966# Try to create an executable without -o first, disregard a.out.
3967# It will help us diagnose broken compilers, and finding out an intuition
3968# of exeext.
3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3970printf %s "checking whether the C compiler works... " >&6; }
3971ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3972
3973# The possible output files:
3974ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3975
3976ac_rmfiles=
3977for ac_file in $ac_files
3978do
3979  case $ac_file in
3980    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3982  esac
3983done
3984rm -f $ac_rmfiles
3985
3986if { { ac_try="$ac_link_default"
3987case "(($ac_try" in
3988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989  *) ac_try_echo=$ac_try;;
3990esac
3991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992printf "%s\n" "$ac_try_echo"; } >&5
3993  (eval "$ac_link_default") 2>&5
3994  ac_status=$?
3995  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996  test $ac_status = 0; }
3997then :
3998  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3999# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4000# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4001# so that the user can short-circuit this test for compilers unknown to
4002# Autoconf.
4003for ac_file in $ac_files ''
4004do
4005  test -f "$ac_file" || continue
4006  case $ac_file in
4007    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4008	;;
4009    [ab].out )
4010	# We found the default executable, but exeext='' is most
4011	# certainly right.
4012	break;;
4013    *.* )
4014	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4015	then :; else
4016	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017	fi
4018	# We set ac_cv_exeext here because the later test for it is not
4019	# safe: cross compilers may not add the suffix if given an `-o'
4020	# argument, so we may need to know it at that point already.
4021	# Even if this section looks crufty: it has the advantage of
4022	# actually working.
4023	break;;
4024    * )
4025	break;;
4026  esac
4027done
4028test "$ac_cv_exeext" = no && ac_cv_exeext=
4029
4030else $as_nop
4031  ac_file=''
4032fi
4033if test -z "$ac_file"
4034then :
4035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036printf "%s\n" "no" >&6; }
4037printf "%s\n" "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4042as_fn_error 77 "C compiler cannot create executables
4043See \`config.log' for more details" "$LINENO" 5; }
4044else $as_nop
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4046printf "%s\n" "yes" >&6; }
4047fi
4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4049printf %s "checking for C compiler default output file name... " >&6; }
4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4051printf "%s\n" "$ac_file" >&6; }
4052ac_exeext=$ac_cv_exeext
4053
4054rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4055ac_clean_files=$ac_clean_files_save
4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4057printf %s "checking for suffix of executables... " >&6; }
4058if { { ac_try="$ac_link"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064printf "%s\n" "$ac_try_echo"; } >&5
4065  (eval "$ac_link") 2>&5
4066  ac_status=$?
4067  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068  test $ac_status = 0; }
4069then :
4070  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4071# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4072# work properly (i.e., refer to `conftest.exe'), while it won't with
4073# `rm'.
4074for ac_file in conftest.exe conftest conftest.*; do
4075  test -f "$ac_file" || continue
4076  case $ac_file in
4077    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4078    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4079	  break;;
4080    * ) break;;
4081  esac
4082done
4083else $as_nop
4084  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4086as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4087See \`config.log' for more details" "$LINENO" 5; }
4088fi
4089rm -f conftest conftest$ac_cv_exeext
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4091printf "%s\n" "$ac_cv_exeext" >&6; }
4092
4093rm -f conftest.$ac_ext
4094EXEEXT=$ac_cv_exeext
4095ac_exeext=$EXEEXT
4096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098#include <stdio.h>
4099int
4100main (void)
4101{
4102FILE *f = fopen ("conftest.out", "w");
4103 return ferror (f) || fclose (f) != 0;
4104
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109ac_clean_files="$ac_clean_files conftest.out"
4110# Check that the compiler produces executables we can run.  If not, either
4111# the compiler is broken, or we cross compile.
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4113printf %s "checking whether we are cross compiling... " >&6; }
4114if test "$cross_compiling" != yes; then
4115  { { ac_try="$ac_link"
4116case "(($ac_try" in
4117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118  *) ac_try_echo=$ac_try;;
4119esac
4120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121printf "%s\n" "$ac_try_echo"; } >&5
4122  (eval "$ac_link") 2>&5
4123  ac_status=$?
4124  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125  test $ac_status = 0; }
4126  if { ac_try='./conftest$ac_cv_exeext'
4127  { { case "(($ac_try" in
4128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129  *) ac_try_echo=$ac_try;;
4130esac
4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132printf "%s\n" "$ac_try_echo"; } >&5
4133  (eval "$ac_try") 2>&5
4134  ac_status=$?
4135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }; }; then
4137    cross_compiling=no
4138  else
4139    if test "$cross_compiling" = maybe; then
4140	cross_compiling=yes
4141    else
4142	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4144as_fn_error 77 "cannot run C compiled programs.
4145If you meant to cross compile, use \`--host'.
4146See \`config.log' for more details" "$LINENO" 5; }
4147    fi
4148  fi
4149fi
4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4151printf "%s\n" "$cross_compiling" >&6; }
4152
4153rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4154ac_clean_files=$ac_clean_files_save
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4156printf %s "checking for suffix of object files... " >&6; }
4157if test ${ac_cv_objext+y}
4158then :
4159  printf %s "(cached) " >&6
4160else $as_nop
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163
4164int
4165main (void)
4166{
4167
4168  ;
4169  return 0;
4170}
4171_ACEOF
4172rm -f conftest.o conftest.obj
4173if { { ac_try="$ac_compile"
4174case "(($ac_try" in
4175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176  *) ac_try_echo=$ac_try;;
4177esac
4178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179printf "%s\n" "$ac_try_echo"; } >&5
4180  (eval "$ac_compile") 2>&5
4181  ac_status=$?
4182  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183  test $ac_status = 0; }
4184then :
4185  for ac_file in conftest.o conftest.obj conftest.*; do
4186  test -f "$ac_file" || continue;
4187  case $ac_file in
4188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4189    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4190       break;;
4191  esac
4192done
4193else $as_nop
4194  printf "%s\n" "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4199as_fn_error $? "cannot compute suffix of object files: cannot compile
4200See \`config.log' for more details" "$LINENO" 5; }
4201fi
4202rm -f conftest.$ac_cv_objext conftest.$ac_ext
4203fi
4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4205printf "%s\n" "$ac_cv_objext" >&6; }
4206OBJEXT=$ac_cv_objext
4207ac_objext=$OBJEXT
4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4209printf %s "checking whether the compiler supports GNU C... " >&6; }
4210if test ${ac_cv_c_compiler_gnu+y}
4211then :
4212  printf %s "(cached) " >&6
4213else $as_nop
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216
4217int
4218main (void)
4219{
4220#ifndef __GNUC__
4221       choke me
4222#endif
4223
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228if ac_fn_c_try_compile "$LINENO"
4229then :
4230  ac_compiler_gnu=yes
4231else $as_nop
4232  ac_compiler_gnu=no
4233fi
4234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4235ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236
4237fi
4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242if test $ac_compiler_gnu = yes; then
4243  GCC=yes
4244else
4245  GCC=
4246fi
4247ac_test_CFLAGS=${CFLAGS+y}
4248ac_save_CFLAGS=$CFLAGS
4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4250printf %s "checking whether $CC accepts -g... " >&6; }
4251if test ${ac_cv_prog_cc_g+y}
4252then :
4253  printf %s "(cached) " >&6
4254else $as_nop
4255  ac_save_c_werror_flag=$ac_c_werror_flag
4256   ac_c_werror_flag=yes
4257   ac_cv_prog_cc_g=no
4258   CFLAGS="-g"
4259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262int
4263main (void)
4264{
4265
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270if ac_fn_c_try_compile "$LINENO"
4271then :
4272  ac_cv_prog_cc_g=yes
4273else $as_nop
4274  CFLAGS=""
4275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277
4278int
4279main (void)
4280{
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"
4287then :
4288
4289else $as_nop
4290  ac_c_werror_flag=$ac_save_c_werror_flag
4291	 CFLAGS="-g"
4292	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294
4295int
4296main (void)
4297{
4298
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303if ac_fn_c_try_compile "$LINENO"
4304then :
4305  ac_cv_prog_cc_g=yes
4306fi
4307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4308fi
4309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4310fi
4311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4312   ac_c_werror_flag=$ac_save_c_werror_flag
4313fi
4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4315printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4316if test $ac_test_CFLAGS; then
4317  CFLAGS=$ac_save_CFLAGS
4318elif test $ac_cv_prog_cc_g = yes; then
4319  if test "$GCC" = yes; then
4320    CFLAGS="-g -O2"
4321  else
4322    CFLAGS="-g"
4323  fi
4324else
4325  if test "$GCC" = yes; then
4326    CFLAGS="-O2"
4327  else
4328    CFLAGS=
4329  fi
4330fi
4331ac_prog_cc_stdc=no
4332if test x$ac_prog_cc_stdc = xno
4333then :
4334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4335printf %s "checking for $CC option to enable C11 features... " >&6; }
4336if test ${ac_cv_prog_cc_c11+y}
4337then :
4338  printf %s "(cached) " >&6
4339else $as_nop
4340  ac_cv_prog_cc_c11=no
4341ac_save_CC=$CC
4342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344$ac_c_conftest_c11_program
4345_ACEOF
4346for ac_arg in '' -std=gnu11
4347do
4348  CC="$ac_save_CC $ac_arg"
4349  if ac_fn_c_try_compile "$LINENO"
4350then :
4351  ac_cv_prog_cc_c11=$ac_arg
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.beam
4354  test "x$ac_cv_prog_cc_c11" != "xno" && break
4355done
4356rm -f conftest.$ac_ext
4357CC=$ac_save_CC
4358fi
4359
4360if test "x$ac_cv_prog_cc_c11" = xno
4361then :
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4363printf "%s\n" "unsupported" >&6; }
4364else $as_nop
4365  if test "x$ac_cv_prog_cc_c11" = x
4366then :
4367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4368printf "%s\n" "none needed" >&6; }
4369else $as_nop
4370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4371printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4372     CC="$CC $ac_cv_prog_cc_c11"
4373fi
4374  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4375  ac_prog_cc_stdc=c11
4376fi
4377fi
4378if test x$ac_prog_cc_stdc = xno
4379then :
4380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4381printf %s "checking for $CC option to enable C99 features... " >&6; }
4382if test ${ac_cv_prog_cc_c99+y}
4383then :
4384  printf %s "(cached) " >&6
4385else $as_nop
4386  ac_cv_prog_cc_c99=no
4387ac_save_CC=$CC
4388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390$ac_c_conftest_c99_program
4391_ACEOF
4392for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4393do
4394  CC="$ac_save_CC $ac_arg"
4395  if ac_fn_c_try_compile "$LINENO"
4396then :
4397  ac_cv_prog_cc_c99=$ac_arg
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.beam
4400  test "x$ac_cv_prog_cc_c99" != "xno" && break
4401done
4402rm -f conftest.$ac_ext
4403CC=$ac_save_CC
4404fi
4405
4406if test "x$ac_cv_prog_cc_c99" = xno
4407then :
4408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409printf "%s\n" "unsupported" >&6; }
4410else $as_nop
4411  if test "x$ac_cv_prog_cc_c99" = x
4412then :
4413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414printf "%s\n" "none needed" >&6; }
4415else $as_nop
4416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4417printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4418     CC="$CC $ac_cv_prog_cc_c99"
4419fi
4420  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4421  ac_prog_cc_stdc=c99
4422fi
4423fi
4424if test x$ac_prog_cc_stdc = xno
4425then :
4426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4427printf %s "checking for $CC option to enable C89 features... " >&6; }
4428if test ${ac_cv_prog_cc_c89+y}
4429then :
4430  printf %s "(cached) " >&6
4431else $as_nop
4432  ac_cv_prog_cc_c89=no
4433ac_save_CC=$CC
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436$ac_c_conftest_c89_program
4437_ACEOF
4438for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4439do
4440  CC="$ac_save_CC $ac_arg"
4441  if ac_fn_c_try_compile "$LINENO"
4442then :
4443  ac_cv_prog_cc_c89=$ac_arg
4444fi
4445rm -f core conftest.err conftest.$ac_objext conftest.beam
4446  test "x$ac_cv_prog_cc_c89" != "xno" && break
4447done
4448rm -f conftest.$ac_ext
4449CC=$ac_save_CC
4450fi
4451
4452if test "x$ac_cv_prog_cc_c89" = xno
4453then :
4454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4455printf "%s\n" "unsupported" >&6; }
4456else $as_nop
4457  if test "x$ac_cv_prog_cc_c89" = x
4458then :
4459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460printf "%s\n" "none needed" >&6; }
4461else $as_nop
4462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4463printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4464     CC="$CC $ac_cv_prog_cc_c89"
4465fi
4466  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4467  ac_prog_cc_stdc=c89
4468fi
4469fi
4470
4471ac_ext=c
4472ac_cpp='$CPP $CPPFLAGS'
4473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476
4477
4478  ac_ext=c
4479ac_cpp='$CPP $CPPFLAGS'
4480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4484printf %s "checking whether $CC understands -c and -o together... " >&6; }
4485if test ${am_cv_prog_cc_c_o+y}
4486then :
4487  printf %s "(cached) " >&6
4488else $as_nop
4489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h.  */
4491
4492int
4493main (void)
4494{
4495
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500  # Make sure it works both with $CC and with simple cc.
4501  # Following AC_PROG_CC_C_O, we do the test twice because some
4502  # compilers refuse to overwrite an existing .o file with -o,
4503  # though they will create one.
4504  am_cv_prog_cc_c_o=yes
4505  for am_i in 1 2; do
4506    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4507   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } \
4511         && test -f conftest2.$ac_objext; then
4512      : OK
4513    else
4514      am_cv_prog_cc_c_o=no
4515      break
4516    fi
4517  done
4518  rm -f core conftest*
4519  unset am_i
4520fi
4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4522printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4523if test "$am_cv_prog_cc_c_o" != yes; then
4524   # Losing compiler, so override with the script.
4525   # FIXME: It is wrong to rewrite CC.
4526   # But if we don't then we get into trouble of one sort or another.
4527   # A longer-term fix would be to have automake use am__CC in this case,
4528   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4529   CC="$am_aux_dir/compile $CC"
4530fi
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537
4538depcc="$CC"   am_compiler_list=
4539
4540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4541printf %s "checking dependency style of $depcc... " >&6; }
4542if test ${am_cv_CC_dependencies_compiler_type+y}
4543then :
4544  printf %s "(cached) " >&6
4545else $as_nop
4546  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547  # We make a subdir and do the tests there.  Otherwise we can end up
4548  # making bogus files that we don't know about and never remove.  For
4549  # instance it was reported that on HP-UX the gcc test will end up
4550  # making a dummy file named 'D' -- because '-MD' means "put the output
4551  # in D".
4552  rm -rf conftest.dir
4553  mkdir conftest.dir
4554  # Copy depcomp to subdir because otherwise we won't find it if we're
4555  # using a relative directory.
4556  cp "$am_depcomp" conftest.dir
4557  cd conftest.dir
4558  # We will build objects and dependencies in a subdirectory because
4559  # it helps to detect inapplicable dependency modes.  For instance
4560  # both Tru64's cc and ICC support -MD to output dependencies as a
4561  # side effect of compilation, but ICC will put the dependencies in
4562  # the current directory while Tru64 will put them in the object
4563  # directory.
4564  mkdir sub
4565
4566  am_cv_CC_dependencies_compiler_type=none
4567  if test "$am_compiler_list" = ""; then
4568     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4569  fi
4570  am__universal=false
4571  case " $depcc " in #(
4572     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4573     esac
4574
4575  for depmode in $am_compiler_list; do
4576    # Setup a source with many dependencies, because some compilers
4577    # like to wrap large dependency lists on column 80 (with \), and
4578    # we should not choose a depcomp mode which is confused by this.
4579    #
4580    # We need to recreate these files for each test, as the compiler may
4581    # overwrite some of them when testing with obscure command lines.
4582    # This happens at least with the AIX C compiler.
4583    : > sub/conftest.c
4584    for i in 1 2 3 4 5 6; do
4585      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4586      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4587      # Solaris 10 /bin/sh.
4588      echo '/* dummy */' > sub/conftst$i.h
4589    done
4590    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4591
4592    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4593    # mode.  It turns out that the SunPro C++ compiler does not properly
4594    # handle '-M -o', and we need to detect this.  Also, some Intel
4595    # versions had trouble with output in subdirs.
4596    am__obj=sub/conftest.${OBJEXT-o}
4597    am__minus_obj="-o $am__obj"
4598    case $depmode in
4599    gcc)
4600      # This depmode causes a compiler race in universal mode.
4601      test "$am__universal" = false || continue
4602      ;;
4603    nosideeffect)
4604      # After this tag, mechanisms are not by side-effect, so they'll
4605      # only be used when explicitly requested.
4606      if test "x$enable_dependency_tracking" = xyes; then
4607	continue
4608      else
4609	break
4610      fi
4611      ;;
4612    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4613      # This compiler won't grok '-c -o', but also, the minuso test has
4614      # not run yet.  These depmodes are late enough in the game, and
4615      # so weak that their functioning should not be impacted.
4616      am__obj=conftest.${OBJEXT-o}
4617      am__minus_obj=
4618      ;;
4619    none) break ;;
4620    esac
4621    if depmode=$depmode \
4622       source=sub/conftest.c object=$am__obj \
4623       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4624       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4625         >/dev/null 2>conftest.err &&
4626       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4627       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4629       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630      # icc doesn't choke on unknown options, it will just issue warnings
4631      # or remarks (even with -Werror).  So we grep stderr for any message
4632      # that says an option was ignored or not supported.
4633      # When given -MP, icc 7.0 and 7.1 complain thusly:
4634      #   icc: Command line warning: ignoring option '-M'; no argument required
4635      # The diagnosis changed in icc 8.0:
4636      #   icc: Command line remark: option '-MP' not supported
4637      if (grep 'ignoring option' conftest.err ||
4638          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639        am_cv_CC_dependencies_compiler_type=$depmode
4640        break
4641      fi
4642    fi
4643  done
4644
4645  cd ..
4646  rm -rf conftest.dir
4647else
4648  am_cv_CC_dependencies_compiler_type=none
4649fi
4650
4651fi
4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4653printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4654CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4655
4656 if
4657  test "x$enable_dependency_tracking" != xno \
4658  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4659  am__fastdepCC_TRUE=
4660  am__fastdepCC_FALSE='#'
4661else
4662  am__fastdepCC_TRUE='#'
4663  am__fastdepCC_FALSE=
4664fi
4665
4666
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4668printf %s "checking for a sed that does not truncate output... " >&6; }
4669if test ${ac_cv_path_SED+y}
4670then :
4671  printf %s "(cached) " >&6
4672else $as_nop
4673            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4674     for ac_i in 1 2 3 4 5 6 7; do
4675       ac_script="$ac_script$as_nl$ac_script"
4676     done
4677     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4678     { ac_script=; unset ac_script;}
4679     if test -z "$SED"; then
4680  ac_path_SED_found=false
4681  # Loop through the user's path and test for each of PROGNAME-LIST
4682  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685  IFS=$as_save_IFS
4686  case $as_dir in #(((
4687    '') as_dir=./ ;;
4688    */) ;;
4689    *) as_dir=$as_dir/ ;;
4690  esac
4691    for ac_prog in sed gsed
4692   do
4693    for ac_exec_ext in '' $ac_executable_extensions; do
4694      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4695      as_fn_executable_p "$ac_path_SED" || continue
4696# Check for GNU ac_path_SED and select it if it is found.
4697  # Check for GNU $ac_path_SED
4698case `"$ac_path_SED" --version 2>&1` in
4699*GNU*)
4700  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4701*)
4702  ac_count=0
4703  printf %s 0123456789 >"conftest.in"
4704  while :
4705  do
4706    cat "conftest.in" "conftest.in" >"conftest.tmp"
4707    mv "conftest.tmp" "conftest.in"
4708    cp "conftest.in" "conftest.nl"
4709    printf "%s\n" '' >> "conftest.nl"
4710    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712    as_fn_arith $ac_count + 1 && ac_count=$as_val
4713    if test $ac_count -gt ${ac_path_SED_max-0}; then
4714      # Best one so far, save it but keep looking for a better one
4715      ac_cv_path_SED="$ac_path_SED"
4716      ac_path_SED_max=$ac_count
4717    fi
4718    # 10*(2^10) chars as input seems more than enough
4719    test $ac_count -gt 10 && break
4720  done
4721  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722esac
4723
4724      $ac_path_SED_found && break 3
4725    done
4726  done
4727  done
4728IFS=$as_save_IFS
4729  if test -z "$ac_cv_path_SED"; then
4730    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4731  fi
4732else
4733  ac_cv_path_SED=$SED
4734fi
4735
4736fi
4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4738printf "%s\n" "$ac_cv_path_SED" >&6; }
4739 SED="$ac_cv_path_SED"
4740  rm -f conftest.sed
4741
4742test -z "$SED" && SED=sed
4743Xsed="$SED -e 1s/^X//"
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756printf %s "checking for grep that handles long lines and -e... " >&6; }
4757if test ${ac_cv_path_GREP+y}
4758then :
4759  printf %s "(cached) " >&6
4760else $as_nop
4761  if test -z "$GREP"; then
4762  ac_path_GREP_found=false
4763  # Loop through the user's path and test for each of PROGNAME-LIST
4764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766do
4767  IFS=$as_save_IFS
4768  case $as_dir in #(((
4769    '') as_dir=./ ;;
4770    */) ;;
4771    *) as_dir=$as_dir/ ;;
4772  esac
4773    for ac_prog in grep ggrep
4774   do
4775    for ac_exec_ext in '' $ac_executable_extensions; do
4776      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4777      as_fn_executable_p "$ac_path_GREP" || continue
4778# Check for GNU ac_path_GREP and select it if it is found.
4779  # Check for GNU $ac_path_GREP
4780case `"$ac_path_GREP" --version 2>&1` in
4781*GNU*)
4782  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4783*)
4784  ac_count=0
4785  printf %s 0123456789 >"conftest.in"
4786  while :
4787  do
4788    cat "conftest.in" "conftest.in" >"conftest.tmp"
4789    mv "conftest.tmp" "conftest.in"
4790    cp "conftest.in" "conftest.nl"
4791    printf "%s\n" 'GREP' >> "conftest.nl"
4792    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794    as_fn_arith $ac_count + 1 && ac_count=$as_val
4795    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4796      # Best one so far, save it but keep looking for a better one
4797      ac_cv_path_GREP="$ac_path_GREP"
4798      ac_path_GREP_max=$ac_count
4799    fi
4800    # 10*(2^10) chars as input seems more than enough
4801    test $ac_count -gt 10 && break
4802  done
4803  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804esac
4805
4806      $ac_path_GREP_found && break 3
4807    done
4808  done
4809  done
4810IFS=$as_save_IFS
4811  if test -z "$ac_cv_path_GREP"; then
4812    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813  fi
4814else
4815  ac_cv_path_GREP=$GREP
4816fi
4817
4818fi
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4820printf "%s\n" "$ac_cv_path_GREP" >&6; }
4821 GREP="$ac_cv_path_GREP"
4822
4823
4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4825printf %s "checking for egrep... " >&6; }
4826if test ${ac_cv_path_EGREP+y}
4827then :
4828  printf %s "(cached) " >&6
4829else $as_nop
4830  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831   then ac_cv_path_EGREP="$GREP -E"
4832   else
4833     if test -z "$EGREP"; then
4834  ac_path_EGREP_found=false
4835  # Loop through the user's path and test for each of PROGNAME-LIST
4836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838do
4839  IFS=$as_save_IFS
4840  case $as_dir in #(((
4841    '') as_dir=./ ;;
4842    */) ;;
4843    *) as_dir=$as_dir/ ;;
4844  esac
4845    for ac_prog in egrep
4846   do
4847    for ac_exec_ext in '' $ac_executable_extensions; do
4848      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4849      as_fn_executable_p "$ac_path_EGREP" || continue
4850# Check for GNU ac_path_EGREP and select it if it is found.
4851  # Check for GNU $ac_path_EGREP
4852case `"$ac_path_EGREP" --version 2>&1` in
4853*GNU*)
4854  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4855*)
4856  ac_count=0
4857  printf %s 0123456789 >"conftest.in"
4858  while :
4859  do
4860    cat "conftest.in" "conftest.in" >"conftest.tmp"
4861    mv "conftest.tmp" "conftest.in"
4862    cp "conftest.in" "conftest.nl"
4863    printf "%s\n" 'EGREP' >> "conftest.nl"
4864    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866    as_fn_arith $ac_count + 1 && ac_count=$as_val
4867    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4868      # Best one so far, save it but keep looking for a better one
4869      ac_cv_path_EGREP="$ac_path_EGREP"
4870      ac_path_EGREP_max=$ac_count
4871    fi
4872    # 10*(2^10) chars as input seems more than enough
4873    test $ac_count -gt 10 && break
4874  done
4875  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876esac
4877
4878      $ac_path_EGREP_found && break 3
4879    done
4880  done
4881  done
4882IFS=$as_save_IFS
4883  if test -z "$ac_cv_path_EGREP"; then
4884    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4885  fi
4886else
4887  ac_cv_path_EGREP=$EGREP
4888fi
4889
4890   fi
4891fi
4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4893printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4894 EGREP="$ac_cv_path_EGREP"
4895
4896
4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4898printf %s "checking for fgrep... " >&6; }
4899if test ${ac_cv_path_FGREP+y}
4900then :
4901  printf %s "(cached) " >&6
4902else $as_nop
4903  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4904   then ac_cv_path_FGREP="$GREP -F"
4905   else
4906     if test -z "$FGREP"; then
4907  ac_path_FGREP_found=false
4908  # Loop through the user's path and test for each of PROGNAME-LIST
4909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4911do
4912  IFS=$as_save_IFS
4913  case $as_dir in #(((
4914    '') as_dir=./ ;;
4915    */) ;;
4916    *) as_dir=$as_dir/ ;;
4917  esac
4918    for ac_prog in fgrep
4919   do
4920    for ac_exec_ext in '' $ac_executable_extensions; do
4921      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4922      as_fn_executable_p "$ac_path_FGREP" || continue
4923# Check for GNU ac_path_FGREP and select it if it is found.
4924  # Check for GNU $ac_path_FGREP
4925case `"$ac_path_FGREP" --version 2>&1` in
4926*GNU*)
4927  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4928*)
4929  ac_count=0
4930  printf %s 0123456789 >"conftest.in"
4931  while :
4932  do
4933    cat "conftest.in" "conftest.in" >"conftest.tmp"
4934    mv "conftest.tmp" "conftest.in"
4935    cp "conftest.in" "conftest.nl"
4936    printf "%s\n" 'FGREP' >> "conftest.nl"
4937    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939    as_fn_arith $ac_count + 1 && ac_count=$as_val
4940    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4941      # Best one so far, save it but keep looking for a better one
4942      ac_cv_path_FGREP="$ac_path_FGREP"
4943      ac_path_FGREP_max=$ac_count
4944    fi
4945    # 10*(2^10) chars as input seems more than enough
4946    test $ac_count -gt 10 && break
4947  done
4948  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949esac
4950
4951      $ac_path_FGREP_found && break 3
4952    done
4953  done
4954  done
4955IFS=$as_save_IFS
4956  if test -z "$ac_cv_path_FGREP"; then
4957    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4958  fi
4959else
4960  ac_cv_path_FGREP=$FGREP
4961fi
4962
4963   fi
4964fi
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4966printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4967 FGREP="$ac_cv_path_FGREP"
4968
4969
4970test -z "$GREP" && GREP=grep
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990# Check whether --with-gnu-ld was given.
4991if test ${with_gnu_ld+y}
4992then :
4993  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4994else $as_nop
4995  with_gnu_ld=no
4996fi
4997
4998ac_prog=ld
4999if test yes = "$GCC"; then
5000  # Check if gcc -print-prog-name=ld gives a path.
5001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5002printf %s "checking for ld used by $CC... " >&6; }
5003  case $host in
5004  *-*-mingw*)
5005    # gcc leaves a trailing carriage return, which upsets mingw
5006    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5007  *)
5008    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5009  esac
5010  case $ac_prog in
5011    # Accept absolute paths.
5012    [\\/]* | ?:[\\/]*)
5013      re_direlt='/[^/][^/]*/\.\./'
5014      # Canonicalize the pathname of ld
5015      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5016      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5017	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5018      done
5019      test -z "$LD" && LD=$ac_prog
5020      ;;
5021  "")
5022    # If it fails, then pretend we aren't using GCC.
5023    ac_prog=ld
5024    ;;
5025  *)
5026    # If it is relative, then search for the first ld in PATH.
5027    with_gnu_ld=unknown
5028    ;;
5029  esac
5030elif test yes = "$with_gnu_ld"; then
5031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5032printf %s "checking for GNU ld... " >&6; }
5033else
5034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5035printf %s "checking for non-GNU ld... " >&6; }
5036fi
5037if test ${lt_cv_path_LD+y}
5038then :
5039  printf %s "(cached) " >&6
5040else $as_nop
5041  if test -z "$LD"; then
5042  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5043  for ac_dir in $PATH; do
5044    IFS=$lt_save_ifs
5045    test -z "$ac_dir" && ac_dir=.
5046    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5047      lt_cv_path_LD=$ac_dir/$ac_prog
5048      # Check to see if the program is GNU ld.  I'd rather use --version,
5049      # but apparently some variants of GNU ld only accept -v.
5050      # Break only if it was the GNU/non-GNU ld that we prefer.
5051      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5052      *GNU* | *'with BFD'*)
5053	test no != "$with_gnu_ld" && break
5054	;;
5055      *)
5056	test yes != "$with_gnu_ld" && break
5057	;;
5058      esac
5059    fi
5060  done
5061  IFS=$lt_save_ifs
5062else
5063  lt_cv_path_LD=$LD # Let the user override the test with a path.
5064fi
5065fi
5066
5067LD=$lt_cv_path_LD
5068if test -n "$LD"; then
5069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5070printf "%s\n" "$LD" >&6; }
5071else
5072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073printf "%s\n" "no" >&6; }
5074fi
5075test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5077printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5078if test ${lt_cv_prog_gnu_ld+y}
5079then :
5080  printf %s "(cached) " >&6
5081else $as_nop
5082  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5083case `$LD -v 2>&1 </dev/null` in
5084*GNU* | *'with BFD'*)
5085  lt_cv_prog_gnu_ld=yes
5086  ;;
5087*)
5088  lt_cv_prog_gnu_ld=no
5089  ;;
5090esac
5091fi
5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5093printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5094with_gnu_ld=$lt_cv_prog_gnu_ld
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5105printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5106if test ${lt_cv_path_NM+y}
5107then :
5108  printf %s "(cached) " >&6
5109else $as_nop
5110  if test -n "$NM"; then
5111  # Let the user override the test.
5112  lt_cv_path_NM=$NM
5113else
5114  lt_nm_to_check=${ac_tool_prefix}nm
5115  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5116    lt_nm_to_check="$lt_nm_to_check nm"
5117  fi
5118  for lt_tmp_nm in $lt_nm_to_check; do
5119    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5120    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5121      IFS=$lt_save_ifs
5122      test -z "$ac_dir" && ac_dir=.
5123      tmp_nm=$ac_dir/$lt_tmp_nm
5124      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5125	# Check to see if the nm accepts a BSD-compat flag.
5126	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5127	#   nm: unknown option "B" ignored
5128	# Tru64's nm complains that /dev/null is an invalid object file
5129	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5130	case $build_os in
5131	mingw*) lt_bad_file=conftest.nm/nofile ;;
5132	*) lt_bad_file=/dev/null ;;
5133	esac
5134	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5135	*$lt_bad_file* | *'Invalid file or object type'*)
5136	  lt_cv_path_NM="$tmp_nm -B"
5137	  break 2
5138	  ;;
5139	*)
5140	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5141	  */dev/null*)
5142	    lt_cv_path_NM="$tmp_nm -p"
5143	    break 2
5144	    ;;
5145	  *)
5146	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5147	    continue # so that we can try to find one that supports BSD flags
5148	    ;;
5149	  esac
5150	  ;;
5151	esac
5152      fi
5153    done
5154    IFS=$lt_save_ifs
5155  done
5156  : ${lt_cv_path_NM=no}
5157fi
5158fi
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5160printf "%s\n" "$lt_cv_path_NM" >&6; }
5161if test no != "$lt_cv_path_NM"; then
5162  NM=$lt_cv_path_NM
5163else
5164  # Didn't find any BSD compatible name lister, look for dumpbin.
5165  if test -n "$DUMPBIN"; then :
5166    # Let the user override the test.
5167  else
5168    if test -n "$ac_tool_prefix"; then
5169  for ac_prog in dumpbin "link -dump"
5170  do
5171    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174printf %s "checking for $ac_word... " >&6; }
5175if test ${ac_cv_prog_DUMPBIN+y}
5176then :
5177  printf %s "(cached) " >&6
5178else $as_nop
5179  if test -n "$DUMPBIN"; then
5180  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  case $as_dir in #(((
5187    '') as_dir=./ ;;
5188    */) ;;
5189    *) as_dir=$as_dir/ ;;
5190  esac
5191    for ac_exec_ext in '' $ac_executable_extensions; do
5192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5193    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198  done
5199IFS=$as_save_IFS
5200
5201fi
5202fi
5203DUMPBIN=$ac_cv_prog_DUMPBIN
5204if test -n "$DUMPBIN"; then
5205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5206printf "%s\n" "$DUMPBIN" >&6; }
5207else
5208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209printf "%s\n" "no" >&6; }
5210fi
5211
5212
5213    test -n "$DUMPBIN" && break
5214  done
5215fi
5216if test -z "$DUMPBIN"; then
5217  ac_ct_DUMPBIN=$DUMPBIN
5218  for ac_prog in dumpbin "link -dump"
5219do
5220  # Extract the first word of "$ac_prog", so it can be a program name with args.
5221set dummy $ac_prog; ac_word=$2
5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223printf %s "checking for $ac_word... " >&6; }
5224if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5225then :
5226  printf %s "(cached) " >&6
5227else $as_nop
5228  if test -n "$ac_ct_DUMPBIN"; then
5229  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  case $as_dir in #(((
5236    '') as_dir=./ ;;
5237    */) ;;
5238    *) as_dir=$as_dir/ ;;
5239  esac
5240    for ac_exec_ext in '' $ac_executable_extensions; do
5241  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5242    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5243    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5244    break 2
5245  fi
5246done
5247  done
5248IFS=$as_save_IFS
5249
5250fi
5251fi
5252ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5253if test -n "$ac_ct_DUMPBIN"; then
5254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5255printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5256else
5257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258printf "%s\n" "no" >&6; }
5259fi
5260
5261
5262  test -n "$ac_ct_DUMPBIN" && break
5263done
5264
5265  if test "x$ac_ct_DUMPBIN" = x; then
5266    DUMPBIN=":"
5267  else
5268    case $cross_compiling:$ac_tool_warned in
5269yes:)
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272ac_tool_warned=yes ;;
5273esac
5274    DUMPBIN=$ac_ct_DUMPBIN
5275  fi
5276fi
5277
5278    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5279    *COFF*)
5280      DUMPBIN="$DUMPBIN -symbols -headers"
5281      ;;
5282    *)
5283      DUMPBIN=:
5284      ;;
5285    esac
5286  fi
5287
5288  if test : != "$DUMPBIN"; then
5289    NM=$DUMPBIN
5290  fi
5291fi
5292test -z "$NM" && NM=nm
5293
5294
5295
5296
5297
5298
5299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5300printf %s "checking the name lister ($NM) interface... " >&6; }
5301if test ${lt_cv_nm_interface+y}
5302then :
5303  printf %s "(cached) " >&6
5304else $as_nop
5305  lt_cv_nm_interface="BSD nm"
5306  echo "int some_variable = 0;" > conftest.$ac_ext
5307  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5308  (eval "$ac_compile" 2>conftest.err)
5309  cat conftest.err >&5
5310  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5311  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5312  cat conftest.err >&5
5313  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5314  cat conftest.out >&5
5315  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5316    lt_cv_nm_interface="MS dumpbin"
5317  fi
5318  rm -f conftest*
5319fi
5320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5321printf "%s\n" "$lt_cv_nm_interface" >&6; }
5322
5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5324printf %s "checking whether ln -s works... " >&6; }
5325LN_S=$as_ln_s
5326if test "$LN_S" = "ln -s"; then
5327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328printf "%s\n" "yes" >&6; }
5329else
5330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5331printf "%s\n" "no, using $LN_S" >&6; }
5332fi
5333
5334# find the maximum length of command line arguments
5335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5336printf %s "checking the maximum length of command line arguments... " >&6; }
5337if test ${lt_cv_sys_max_cmd_len+y}
5338then :
5339  printf %s "(cached) " >&6
5340else $as_nop
5341    i=0
5342  teststring=ABCD
5343
5344  case $build_os in
5345  msdosdjgpp*)
5346    # On DJGPP, this test can blow up pretty badly due to problems in libc
5347    # (any single argument exceeding 2000 bytes causes a buffer overrun
5348    # during glob expansion).  Even if it were fixed, the result of this
5349    # check would be larger than it should be.
5350    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5351    ;;
5352
5353  gnu*)
5354    # Under GNU Hurd, this test is not required because there is
5355    # no limit to the length of command line arguments.
5356    # Libtool will interpret -1 as no limit whatsoever
5357    lt_cv_sys_max_cmd_len=-1;
5358    ;;
5359
5360  cygwin* | mingw* | cegcc*)
5361    # On Win9x/ME, this test blows up -- it succeeds, but takes
5362    # about 5 minutes as the teststring grows exponentially.
5363    # Worse, since 9x/ME are not pre-emptively multitasking,
5364    # you end up with a "frozen" computer, even though with patience
5365    # the test eventually succeeds (with a max line length of 256k).
5366    # Instead, let's just punt: use the minimum linelength reported by
5367    # all of the supported platforms: 8192 (on NT/2K/XP).
5368    lt_cv_sys_max_cmd_len=8192;
5369    ;;
5370
5371  mint*)
5372    # On MiNT this can take a long time and run out of memory.
5373    lt_cv_sys_max_cmd_len=8192;
5374    ;;
5375
5376  mint*)
5377    # On MiNT this can take a long time and run out of memory.
5378    lt_cv_sys_max_cmd_len=8192;
5379    ;;
5380
5381  amigaos*)
5382    # On AmigaOS with pdksh, this test takes hours, literally.
5383    # So we just punt and use a minimum line length of 8192.
5384    lt_cv_sys_max_cmd_len=8192;
5385    ;;
5386
5387  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5388    # This has been around since 386BSD, at least.  Likely further.
5389    if test -x /sbin/sysctl; then
5390      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5391    elif test -x /usr/sbin/sysctl; then
5392      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5393    else
5394      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5395    fi
5396    # And add a safety zone
5397    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5398    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5399    ;;
5400
5401  interix*)
5402    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5403    lt_cv_sys_max_cmd_len=196608
5404    ;;
5405
5406  os2*)
5407    # The test takes a long time on OS/2.
5408    lt_cv_sys_max_cmd_len=8192
5409    ;;
5410
5411  osf*)
5412    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5413    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5414    # nice to cause kernel panics so lets avoid the loop below.
5415    # First set a reasonable default.
5416    lt_cv_sys_max_cmd_len=16384
5417    #
5418    if test -x /sbin/sysconfig; then
5419      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5420        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5421      esac
5422    fi
5423    ;;
5424  sco3.2v5*)
5425    lt_cv_sys_max_cmd_len=102400
5426    ;;
5427  sysv5* | sco5v6* | sysv4.2uw2*)
5428    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5429    if test -n "$kargmax"; then
5430      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5431    else
5432      lt_cv_sys_max_cmd_len=32768
5433    fi
5434    ;;
5435  *)
5436    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5437    if test -n "$lt_cv_sys_max_cmd_len" && \
5438       test undefined != "$lt_cv_sys_max_cmd_len"; then
5439      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441    else
5442      # Make teststring a little bigger before we do anything with it.
5443      # a 1K string should be a reasonable start.
5444      for i in 1 2 3 4 5 6 7 8; do
5445        teststring=$teststring$teststring
5446      done
5447      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448      # If test is not a shell built-in, we'll probably end up computing a
5449      # maximum length that is only half of the actual maximum length, but
5450      # we can't tell.
5451      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5452	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5453	      test 17 != "$i" # 1/2 MB should be enough
5454      do
5455        i=`expr $i + 1`
5456        teststring=$teststring$teststring
5457      done
5458      # Only check the string length outside the loop.
5459      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5460      teststring=
5461      # Add a significant safety factor because C++ compilers can tack on
5462      # massive amounts of additional arguments before passing them to the
5463      # linker.  It appears as though 1/2 is a usable value.
5464      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5465    fi
5466    ;;
5467  esac
5468
5469fi
5470
5471if test -n "$lt_cv_sys_max_cmd_len"; then
5472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5473printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5474else
5475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5476printf "%s\n" "none" >&6; }
5477fi
5478max_cmd_len=$lt_cv_sys_max_cmd_len
5479
5480
5481
5482
5483
5484
5485: ${CP="cp -f"}
5486: ${MV="mv -f"}
5487: ${RM="rm -f"}
5488
5489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5490  lt_unset=unset
5491else
5492  lt_unset=false
5493fi
5494
5495
5496
5497
5498
5499# test EBCDIC or ASCII
5500case `echo X|tr X '\101'` in
5501 A) # ASCII based system
5502    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5503  lt_SP2NL='tr \040 \012'
5504  lt_NL2SP='tr \015\012 \040\040'
5505  ;;
5506 *) # EBCDIC based system
5507  lt_SP2NL='tr \100 \n'
5508  lt_NL2SP='tr \r\n \100\100'
5509  ;;
5510esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5521printf %s "checking how to convert $build file names to $host format... " >&6; }
5522if test ${lt_cv_to_host_file_cmd+y}
5523then :
5524  printf %s "(cached) " >&6
5525else $as_nop
5526  case $host in
5527  *-*-mingw* )
5528    case $build in
5529      *-*-mingw* ) # actually msys
5530        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5531        ;;
5532      *-*-cygwin* )
5533        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5534        ;;
5535      * ) # otherwise, assume *nix
5536        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5537        ;;
5538    esac
5539    ;;
5540  *-*-cygwin* )
5541    case $build in
5542      *-*-mingw* ) # actually msys
5543        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5544        ;;
5545      *-*-cygwin* )
5546        lt_cv_to_host_file_cmd=func_convert_file_noop
5547        ;;
5548      * ) # otherwise, assume *nix
5549        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5550        ;;
5551    esac
5552    ;;
5553  * ) # unhandled hosts (and "normal" native builds)
5554    lt_cv_to_host_file_cmd=func_convert_file_noop
5555    ;;
5556esac
5557
5558fi
5559
5560to_host_file_cmd=$lt_cv_to_host_file_cmd
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5562printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5563
5564
5565
5566
5567
5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5569printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5570if test ${lt_cv_to_tool_file_cmd+y}
5571then :
5572  printf %s "(cached) " >&6
5573else $as_nop
5574  #assume ordinary cross tools, or native build.
5575lt_cv_to_tool_file_cmd=func_convert_file_noop
5576case $host in
5577  *-*-mingw* )
5578    case $build in
5579      *-*-mingw* ) # actually msys
5580        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5581        ;;
5582    esac
5583    ;;
5584esac
5585
5586fi
5587
5588to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5590printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5591
5592
5593
5594
5595
5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5597printf %s "checking for $LD option to reload object files... " >&6; }
5598if test ${lt_cv_ld_reload_flag+y}
5599then :
5600  printf %s "(cached) " >&6
5601else $as_nop
5602  lt_cv_ld_reload_flag='-r'
5603fi
5604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5605printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5606reload_flag=$lt_cv_ld_reload_flag
5607case $reload_flag in
5608"" | " "*) ;;
5609*) reload_flag=" $reload_flag" ;;
5610esac
5611reload_cmds='$LD$reload_flag -o $output$reload_objs'
5612case $host_os in
5613  cygwin* | mingw* | pw32* | cegcc*)
5614    if test yes != "$GCC"; then
5615      reload_cmds=false
5616    fi
5617    ;;
5618  darwin*)
5619    if test yes = "$GCC"; then
5620      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5621    else
5622      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623    fi
5624    ;;
5625esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635if test -n "$ac_tool_prefix"; then
5636  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5637set dummy ${ac_tool_prefix}file; ac_word=$2
5638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639printf %s "checking for $ac_word... " >&6; }
5640if test ${ac_cv_prog_FILECMD+y}
5641then :
5642  printf %s "(cached) " >&6
5643else $as_nop
5644  if test -n "$FILECMD"; then
5645  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  case $as_dir in #(((
5652    '') as_dir=./ ;;
5653    */) ;;
5654    *) as_dir=$as_dir/ ;;
5655  esac
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668FILECMD=$ac_cv_prog_FILECMD
5669if test -n "$FILECMD"; then
5670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5671printf "%s\n" "$FILECMD" >&6; }
5672else
5673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674printf "%s\n" "no" >&6; }
5675fi
5676
5677
5678fi
5679if test -z "$ac_cv_prog_FILECMD"; then
5680  ac_ct_FILECMD=$FILECMD
5681  # Extract the first word of "file", so it can be a program name with args.
5682set dummy file; ac_word=$2
5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684printf %s "checking for $ac_word... " >&6; }
5685if test ${ac_cv_prog_ac_ct_FILECMD+y}
5686then :
5687  printf %s "(cached) " >&6
5688else $as_nop
5689  if test -n "$ac_ct_FILECMD"; then
5690  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  case $as_dir in #(((
5697    '') as_dir=./ ;;
5698    */) ;;
5699    *) as_dir=$as_dir/ ;;
5700  esac
5701    for ac_exec_ext in '' $ac_executable_extensions; do
5702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5703    ac_cv_prog_ac_ct_FILECMD="file"
5704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5705    break 2
5706  fi
5707done
5708  done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5714if test -n "$ac_ct_FILECMD"; then
5715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5716printf "%s\n" "$ac_ct_FILECMD" >&6; }
5717else
5718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719printf "%s\n" "no" >&6; }
5720fi
5721
5722  if test "x$ac_ct_FILECMD" = x; then
5723    FILECMD=":"
5724  else
5725    case $cross_compiling:$ac_tool_warned in
5726yes:)
5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729ac_tool_warned=yes ;;
5730esac
5731    FILECMD=$ac_ct_FILECMD
5732  fi
5733else
5734  FILECMD="$ac_cv_prog_FILECMD"
5735fi
5736
5737
5738
5739
5740
5741
5742
5743if test -n "$ac_tool_prefix"; then
5744  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}objdump; ac_word=$2
5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747printf %s "checking for $ac_word... " >&6; }
5748if test ${ac_cv_prog_OBJDUMP+y}
5749then :
5750  printf %s "(cached) " >&6
5751else $as_nop
5752  if test -n "$OBJDUMP"; then
5753  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758  IFS=$as_save_IFS
5759  case $as_dir in #(((
5760    '') as_dir=./ ;;
5761    */) ;;
5762    *) as_dir=$as_dir/ ;;
5763  esac
5764    for ac_exec_ext in '' $ac_executable_extensions; do
5765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5766    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771  done
5772IFS=$as_save_IFS
5773
5774fi
5775fi
5776OBJDUMP=$ac_cv_prog_OBJDUMP
5777if test -n "$OBJDUMP"; then
5778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779printf "%s\n" "$OBJDUMP" >&6; }
5780else
5781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782printf "%s\n" "no" >&6; }
5783fi
5784
5785
5786fi
5787if test -z "$ac_cv_prog_OBJDUMP"; then
5788  ac_ct_OBJDUMP=$OBJDUMP
5789  # Extract the first word of "objdump", so it can be a program name with args.
5790set dummy objdump; ac_word=$2
5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792printf %s "checking for $ac_word... " >&6; }
5793if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5794then :
5795  printf %s "(cached) " >&6
5796else $as_nop
5797  if test -n "$ac_ct_OBJDUMP"; then
5798  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  case $as_dir in #(((
5805    '') as_dir=./ ;;
5806    */) ;;
5807    *) as_dir=$as_dir/ ;;
5808  esac
5809    for ac_exec_ext in '' $ac_executable_extensions; do
5810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5811    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816  done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5822if test -n "$ac_ct_OBJDUMP"; then
5823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5824printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5825else
5826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827printf "%s\n" "no" >&6; }
5828fi
5829
5830  if test "x$ac_ct_OBJDUMP" = x; then
5831    OBJDUMP="false"
5832  else
5833    case $cross_compiling:$ac_tool_warned in
5834yes:)
5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837ac_tool_warned=yes ;;
5838esac
5839    OBJDUMP=$ac_ct_OBJDUMP
5840  fi
5841else
5842  OBJDUMP="$ac_cv_prog_OBJDUMP"
5843fi
5844
5845test -z "$OBJDUMP" && OBJDUMP=objdump
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5856printf %s "checking how to recognize dependent libraries... " >&6; }
5857if test ${lt_cv_deplibs_check_method+y}
5858then :
5859  printf %s "(cached) " >&6
5860else $as_nop
5861  lt_cv_file_magic_cmd='$MAGIC_CMD'
5862lt_cv_file_magic_test_file=
5863lt_cv_deplibs_check_method='unknown'
5864# Need to set the preceding variable on all platforms that support
5865# interlibrary dependencies.
5866# 'none' -- dependencies not supported.
5867# 'unknown' -- same as none, but documents that we really don't know.
5868# 'pass_all' -- all dependencies passed with no checks.
5869# 'test_compile' -- check by making test program.
5870# 'file_magic [[regex]]' -- check by looking for files in library path
5871# that responds to the $file_magic_cmd with a given extended regex.
5872# If you have 'file' or equivalent on your system and you're not sure
5873# whether 'pass_all' will *always* work, you probably want this one.
5874
5875case $host_os in
5876aix[4-9]*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879
5880beos*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884bsdi[45]*)
5885  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5886  lt_cv_file_magic_cmd='$FILECMD -L'
5887  lt_cv_file_magic_test_file=/shlib/libc.so
5888  ;;
5889
5890cygwin*)
5891  # func_win32_libid is a shell function defined in ltmain.sh
5892  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5893  lt_cv_file_magic_cmd='func_win32_libid'
5894  ;;
5895
5896mingw* | pw32*)
5897  # Base MSYS/MinGW do not provide the 'file' command needed by
5898  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5899  # unless we find 'file', for example because we are cross-compiling.
5900  if ( file / ) >/dev/null 2>&1; then
5901    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5902    lt_cv_file_magic_cmd='func_win32_libid'
5903  else
5904    # Keep this pattern in sync with the one in func_win32_libid.
5905    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5906    lt_cv_file_magic_cmd='$OBJDUMP -f'
5907  fi
5908  ;;
5909
5910cegcc*)
5911  # use the weaker test based on 'objdump'. See mingw*.
5912  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5913  lt_cv_file_magic_cmd='$OBJDUMP -f'
5914  ;;
5915
5916darwin* | rhapsody*)
5917  lt_cv_deplibs_check_method=pass_all
5918  ;;
5919
5920freebsd* | dragonfly* | midnightbsd*)
5921  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922    case $host_cpu in
5923    i*86 )
5924      # Not sure whether the presence of OpenBSD here was a mistake.
5925      # Let's accept both of them until this is cleared up.
5926      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5927      lt_cv_file_magic_cmd=$FILECMD
5928      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5929      ;;
5930    esac
5931  else
5932    lt_cv_deplibs_check_method=pass_all
5933  fi
5934  ;;
5935
5936haiku*)
5937  lt_cv_deplibs_check_method=pass_all
5938  ;;
5939
5940hpux10.20* | hpux11*)
5941  lt_cv_file_magic_cmd=$FILECMD
5942  case $host_cpu in
5943  ia64*)
5944    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5945    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5946    ;;
5947  hppa*64*)
5948    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]'
5949    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5950    ;;
5951  *)
5952    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5953    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5954    ;;
5955  esac
5956  ;;
5957
5958interix[3-9]*)
5959  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5960  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5961  ;;
5962
5963irix5* | irix6* | nonstopux*)
5964  case $LD in
5965  *-32|*"-32 ") libmagic=32-bit;;
5966  *-n32|*"-n32 ") libmagic=N32;;
5967  *-64|*"-64 ") libmagic=64-bit;;
5968  *) libmagic=never-match;;
5969  esac
5970  lt_cv_deplibs_check_method=pass_all
5971  ;;
5972
5973# This must be glibc/ELF.
5974linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978netbsd*)
5979  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5980    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981  else
5982    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5983  fi
5984  ;;
5985
5986newos6*)
5987  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5988  lt_cv_file_magic_cmd=$FILECMD
5989  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5990  ;;
5991
5992*nto* | *qnx*)
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995
5996openbsd* | bitrig*)
5997  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5999  else
6000    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001  fi
6002  ;;
6003
6004osf3* | osf4* | osf5*)
6005  lt_cv_deplibs_check_method=pass_all
6006  ;;
6007
6008rdos*)
6009  lt_cv_deplibs_check_method=pass_all
6010  ;;
6011
6012solaris*)
6013  lt_cv_deplibs_check_method=pass_all
6014  ;;
6015
6016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6017  lt_cv_deplibs_check_method=pass_all
6018  ;;
6019
6020sysv4 | sysv4.3*)
6021  case $host_vendor in
6022  motorola)
6023    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]'
6024    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6025    ;;
6026  ncr)
6027    lt_cv_deplibs_check_method=pass_all
6028    ;;
6029  sequent)
6030    lt_cv_file_magic_cmd='/bin/file'
6031    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6032    ;;
6033  sni)
6034    lt_cv_file_magic_cmd='/bin/file'
6035    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6036    lt_cv_file_magic_test_file=/lib/libc.so
6037    ;;
6038  siemens)
6039    lt_cv_deplibs_check_method=pass_all
6040    ;;
6041  pc)
6042    lt_cv_deplibs_check_method=pass_all
6043    ;;
6044  esac
6045  ;;
6046
6047tpf*)
6048  lt_cv_deplibs_check_method=pass_all
6049  ;;
6050os2*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053esac
6054
6055fi
6056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6057printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6058
6059file_magic_glob=
6060want_nocaseglob=no
6061if test "$build" = "$host"; then
6062  case $host_os in
6063  mingw* | pw32*)
6064    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6065      want_nocaseglob=yes
6066    else
6067      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6068    fi
6069    ;;
6070  esac
6071fi
6072
6073file_magic_cmd=$lt_cv_file_magic_cmd
6074deplibs_check_method=$lt_cv_deplibs_check_method
6075test -z "$deplibs_check_method" && deplibs_check_method=unknown
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098if test -n "$ac_tool_prefix"; then
6099  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102printf %s "checking for $ac_word... " >&6; }
6103if test ${ac_cv_prog_DLLTOOL+y}
6104then :
6105  printf %s "(cached) " >&6
6106else $as_nop
6107  if test -n "$DLLTOOL"; then
6108  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  case $as_dir in #(((
6115    '') as_dir=./ ;;
6116    */) ;;
6117    *) as_dir=$as_dir/ ;;
6118  esac
6119    for ac_exec_ext in '' $ac_executable_extensions; do
6120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6121    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126  done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131DLLTOOL=$ac_cv_prog_DLLTOOL
6132if test -n "$DLLTOOL"; then
6133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6134printf "%s\n" "$DLLTOOL" >&6; }
6135else
6136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137printf "%s\n" "no" >&6; }
6138fi
6139
6140
6141fi
6142if test -z "$ac_cv_prog_DLLTOOL"; then
6143  ac_ct_DLLTOOL=$DLLTOOL
6144  # Extract the first word of "dlltool", so it can be a program name with args.
6145set dummy dlltool; ac_word=$2
6146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147printf %s "checking for $ac_word... " >&6; }
6148if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6149then :
6150  printf %s "(cached) " >&6
6151else $as_nop
6152  if test -n "$ac_ct_DLLTOOL"; then
6153  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158  IFS=$as_save_IFS
6159  case $as_dir in #(((
6160    '') as_dir=./ ;;
6161    */) ;;
6162    *) as_dir=$as_dir/ ;;
6163  esac
6164    for ac_exec_ext in '' $ac_executable_extensions; do
6165  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6166    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6167    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6168    break 2
6169  fi
6170done
6171  done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6177if test -n "$ac_ct_DLLTOOL"; then
6178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6179printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6180else
6181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182printf "%s\n" "no" >&6; }
6183fi
6184
6185  if test "x$ac_ct_DLLTOOL" = x; then
6186    DLLTOOL="false"
6187  else
6188    case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192ac_tool_warned=yes ;;
6193esac
6194    DLLTOOL=$ac_ct_DLLTOOL
6195  fi
6196else
6197  DLLTOOL="$ac_cv_prog_DLLTOOL"
6198fi
6199
6200test -z "$DLLTOOL" && DLLTOOL=dlltool
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6212printf %s "checking how to associate runtime and link libraries... " >&6; }
6213if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6214then :
6215  printf %s "(cached) " >&6
6216else $as_nop
6217  lt_cv_sharedlib_from_linklib_cmd='unknown'
6218
6219case $host_os in
6220cygwin* | mingw* | pw32* | cegcc*)
6221  # two different shell functions defined in ltmain.sh;
6222  # decide which one to use based on capabilities of $DLLTOOL
6223  case `$DLLTOOL --help 2>&1` in
6224  *--identify-strict*)
6225    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6226    ;;
6227  *)
6228    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6229    ;;
6230  esac
6231  ;;
6232*)
6233  # fallback: assume linklib IS sharedlib
6234  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6235  ;;
6236esac
6237
6238fi
6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6240printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6241sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6242test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6243
6244
6245
6246
6247
6248
6249
6250
6251if test -n "$ac_tool_prefix"; then
6252  for ac_prog in ar
6253  do
6254    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257printf %s "checking for $ac_word... " >&6; }
6258if test ${ac_cv_prog_AR+y}
6259then :
6260  printf %s "(cached) " >&6
6261else $as_nop
6262  if test -n "$AR"; then
6263  ac_cv_prog_AR="$AR" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268  IFS=$as_save_IFS
6269  case $as_dir in #(((
6270    '') as_dir=./ ;;
6271    */) ;;
6272    *) as_dir=$as_dir/ ;;
6273  esac
6274    for ac_exec_ext in '' $ac_executable_extensions; do
6275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6276    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6278    break 2
6279  fi
6280done
6281  done
6282IFS=$as_save_IFS
6283
6284fi
6285fi
6286AR=$ac_cv_prog_AR
6287if test -n "$AR"; then
6288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6289printf "%s\n" "$AR" >&6; }
6290else
6291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292printf "%s\n" "no" >&6; }
6293fi
6294
6295
6296    test -n "$AR" && break
6297  done
6298fi
6299if test -z "$AR"; then
6300  ac_ct_AR=$AR
6301  for ac_prog in ar
6302do
6303  # Extract the first word of "$ac_prog", so it can be a program name with args.
6304set dummy $ac_prog; ac_word=$2
6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306printf %s "checking for $ac_word... " >&6; }
6307if test ${ac_cv_prog_ac_ct_AR+y}
6308then :
6309  printf %s "(cached) " >&6
6310else $as_nop
6311  if test -n "$ac_ct_AR"; then
6312  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317  IFS=$as_save_IFS
6318  case $as_dir in #(((
6319    '') as_dir=./ ;;
6320    */) ;;
6321    *) as_dir=$as_dir/ ;;
6322  esac
6323    for ac_exec_ext in '' $ac_executable_extensions; do
6324  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325    ac_cv_prog_ac_ct_AR="$ac_prog"
6326    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327    break 2
6328  fi
6329done
6330  done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
6335ac_ct_AR=$ac_cv_prog_ac_ct_AR
6336if test -n "$ac_ct_AR"; then
6337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6338printf "%s\n" "$ac_ct_AR" >&6; }
6339else
6340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341printf "%s\n" "no" >&6; }
6342fi
6343
6344
6345  test -n "$ac_ct_AR" && break
6346done
6347
6348  if test "x$ac_ct_AR" = x; then
6349    AR="false"
6350  else
6351    case $cross_compiling:$ac_tool_warned in
6352yes:)
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355ac_tool_warned=yes ;;
6356esac
6357    AR=$ac_ct_AR
6358  fi
6359fi
6360
6361: ${AR=ar}
6362
6363
6364
6365
6366
6367
6368# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6369# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6370# higher priority because thats what people were doing historically (setting
6371# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6372# variable obsoleted/removed.
6373
6374test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6375lt_ar_flags=$AR_FLAGS
6376
6377
6378
6379
6380
6381
6382# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6383# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6384
6385
6386
6387
6388
6389
6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6391printf %s "checking for archiver @FILE support... " >&6; }
6392if test ${lt_cv_ar_at_file+y}
6393then :
6394  printf %s "(cached) " >&6
6395else $as_nop
6396  lt_cv_ar_at_file=no
6397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h.  */
6399
6400int
6401main (void)
6402{
6403
6404  ;
6405  return 0;
6406}
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"
6409then :
6410  echo conftest.$ac_objext > conftest.lst
6411      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6412      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6413  (eval $lt_ar_try) 2>&5
6414  ac_status=$?
6415  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416  test $ac_status = 0; }
6417      if test 0 -eq "$ac_status"; then
6418	# Ensure the archiver fails upon bogus file names.
6419	rm -f conftest.$ac_objext libconftest.a
6420	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6421  (eval $lt_ar_try) 2>&5
6422  ac_status=$?
6423  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424  test $ac_status = 0; }
6425	if test 0 -ne "$ac_status"; then
6426          lt_cv_ar_at_file=@
6427        fi
6428      fi
6429      rm -f conftest.* libconftest.a
6430
6431fi
6432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6433
6434fi
6435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6436printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6437
6438if test no = "$lt_cv_ar_at_file"; then
6439  archiver_list_spec=
6440else
6441  archiver_list_spec=$lt_cv_ar_at_file
6442fi
6443
6444
6445
6446
6447
6448
6449
6450if test -n "$ac_tool_prefix"; then
6451  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}strip; ac_word=$2
6453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454printf %s "checking for $ac_word... " >&6; }
6455if test ${ac_cv_prog_STRIP+y}
6456then :
6457  printf %s "(cached) " >&6
6458else $as_nop
6459  if test -n "$STRIP"; then
6460  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  case $as_dir in #(((
6467    '') as_dir=./ ;;
6468    */) ;;
6469    *) as_dir=$as_dir/ ;;
6470  esac
6471    for ac_exec_ext in '' $ac_executable_extensions; do
6472  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6473    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478  done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483STRIP=$ac_cv_prog_STRIP
6484if test -n "$STRIP"; then
6485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486printf "%s\n" "$STRIP" >&6; }
6487else
6488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489printf "%s\n" "no" >&6; }
6490fi
6491
6492
6493fi
6494if test -z "$ac_cv_prog_STRIP"; then
6495  ac_ct_STRIP=$STRIP
6496  # Extract the first word of "strip", so it can be a program name with args.
6497set dummy strip; ac_word=$2
6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499printf %s "checking for $ac_word... " >&6; }
6500if test ${ac_cv_prog_ac_ct_STRIP+y}
6501then :
6502  printf %s "(cached) " >&6
6503else $as_nop
6504  if test -n "$ac_ct_STRIP"; then
6505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510  IFS=$as_save_IFS
6511  case $as_dir in #(((
6512    '') as_dir=./ ;;
6513    */) ;;
6514    *) as_dir=$as_dir/ ;;
6515  esac
6516    for ac_exec_ext in '' $ac_executable_extensions; do
6517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518    ac_cv_prog_ac_ct_STRIP="strip"
6519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6520    break 2
6521  fi
6522done
6523  done
6524IFS=$as_save_IFS
6525
6526fi
6527fi
6528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6529if test -n "$ac_ct_STRIP"; then
6530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6531printf "%s\n" "$ac_ct_STRIP" >&6; }
6532else
6533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534printf "%s\n" "no" >&6; }
6535fi
6536
6537  if test "x$ac_ct_STRIP" = x; then
6538    STRIP=":"
6539  else
6540    case $cross_compiling:$ac_tool_warned in
6541yes:)
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544ac_tool_warned=yes ;;
6545esac
6546    STRIP=$ac_ct_STRIP
6547  fi
6548else
6549  STRIP="$ac_cv_prog_STRIP"
6550fi
6551
6552test -z "$STRIP" && STRIP=:
6553
6554
6555
6556
6557
6558
6559if test -n "$ac_tool_prefix"; then
6560  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6561set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563printf %s "checking for $ac_word... " >&6; }
6564if test ${ac_cv_prog_RANLIB+y}
6565then :
6566  printf %s "(cached) " >&6
6567else $as_nop
6568  if test -n "$RANLIB"; then
6569  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  case $as_dir in #(((
6576    '') as_dir=./ ;;
6577    */) ;;
6578    *) as_dir=$as_dir/ ;;
6579  esac
6580    for ac_exec_ext in '' $ac_executable_extensions; do
6581  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6582    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6583    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587  done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592RANLIB=$ac_cv_prog_RANLIB
6593if test -n "$RANLIB"; then
6594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6595printf "%s\n" "$RANLIB" >&6; }
6596else
6597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598printf "%s\n" "no" >&6; }
6599fi
6600
6601
6602fi
6603if test -z "$ac_cv_prog_RANLIB"; then
6604  ac_ct_RANLIB=$RANLIB
6605  # Extract the first word of "ranlib", so it can be a program name with args.
6606set dummy ranlib; ac_word=$2
6607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608printf %s "checking for $ac_word... " >&6; }
6609if test ${ac_cv_prog_ac_ct_RANLIB+y}
6610then :
6611  printf %s "(cached) " >&6
6612else $as_nop
6613  if test -n "$ac_ct_RANLIB"; then
6614  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6615else
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  case $as_dir in #(((
6621    '') as_dir=./ ;;
6622    */) ;;
6623    *) as_dir=$as_dir/ ;;
6624  esac
6625    for ac_exec_ext in '' $ac_executable_extensions; do
6626  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6627    ac_cv_prog_ac_ct_RANLIB="ranlib"
6628    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632  done
6633IFS=$as_save_IFS
6634
6635fi
6636fi
6637ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638if test -n "$ac_ct_RANLIB"; then
6639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6640printf "%s\n" "$ac_ct_RANLIB" >&6; }
6641else
6642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643printf "%s\n" "no" >&6; }
6644fi
6645
6646  if test "x$ac_ct_RANLIB" = x; then
6647    RANLIB=":"
6648  else
6649    case $cross_compiling:$ac_tool_warned in
6650yes:)
6651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653ac_tool_warned=yes ;;
6654esac
6655    RANLIB=$ac_ct_RANLIB
6656  fi
6657else
6658  RANLIB="$ac_cv_prog_RANLIB"
6659fi
6660
6661test -z "$RANLIB" && RANLIB=:
6662
6663
6664
6665
6666
6667
6668# Determine commands to create old-style static archives.
6669old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6670old_postinstall_cmds='chmod 644 $oldlib'
6671old_postuninstall_cmds=
6672
6673if test -n "$RANLIB"; then
6674  case $host_os in
6675  bitrig* | openbsd*)
6676    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6677    ;;
6678  *)
6679    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6680    ;;
6681  esac
6682  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6683fi
6684
6685case $host_os in
6686  darwin*)
6687    lock_old_archive_extraction=yes ;;
6688  *)
6689    lock_old_archive_extraction=no ;;
6690esac
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730# If no C compiler was specified, use CC.
6731LTCC=${LTCC-"$CC"}
6732
6733# If no C compiler flags were specified, use CFLAGS.
6734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6735
6736# Allow CC to be a program name with arguments.
6737compiler=$CC
6738
6739
6740# Check for command to grab the raw symbol name followed by C symbol from nm.
6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6742printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6743if test ${lt_cv_sys_global_symbol_pipe+y}
6744then :
6745  printf %s "(cached) " >&6
6746else $as_nop
6747
6748# These are sane defaults that work on at least a few old systems.
6749# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6750
6751# Character class describing NM global symbol codes.
6752symcode='[BCDEGRST]'
6753
6754# Regexp to match symbols that can be accessed directly from C.
6755sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6756
6757# Define system-specific variables.
6758case $host_os in
6759aix*)
6760  symcode='[BCDT]'
6761  ;;
6762cygwin* | mingw* | pw32* | cegcc*)
6763  symcode='[ABCDGISTW]'
6764  ;;
6765hpux*)
6766  if test ia64 = "$host_cpu"; then
6767    symcode='[ABCDEGRST]'
6768  fi
6769  ;;
6770irix* | nonstopux*)
6771  symcode='[BCDEGRST]'
6772  ;;
6773osf*)
6774  symcode='[BCDEGQRST]'
6775  ;;
6776solaris*)
6777  symcode='[BDRT]'
6778  ;;
6779sco3.2v5*)
6780  symcode='[DT]'
6781  ;;
6782sysv4.2uw2*)
6783  symcode='[DT]'
6784  ;;
6785sysv5* | sco5v6* | unixware* | OpenUNIX*)
6786  symcode='[ABDT]'
6787  ;;
6788sysv4)
6789  symcode='[DFNSTU]'
6790  ;;
6791esac
6792
6793# If we're using GNU nm, then use its standard symbol codes.
6794case `$NM -V 2>&1` in
6795*GNU* | *'with BFD'*)
6796  symcode='[ABCDGIRSTW]' ;;
6797esac
6798
6799if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6800  # Gets list of data symbols to import.
6801  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6802  # Adjust the below global symbol transforms to fixup imported variables.
6803  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6804  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6805  lt_c_name_lib_hook="\
6806  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6807  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6808else
6809  # Disable hooks by default.
6810  lt_cv_sys_global_symbol_to_import=
6811  lt_cdecl_hook=
6812  lt_c_name_hook=
6813  lt_c_name_lib_hook=
6814fi
6815
6816# Transform an extracted symbol line into a proper C declaration.
6817# Some systems (esp. on ia64) link data and code symbols differently,
6818# so use this general approach.
6819lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6820$lt_cdecl_hook\
6821" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6822" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6823
6824# Transform an extracted symbol line into symbol name and symbol address
6825lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6826$lt_c_name_hook\
6827" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6828" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6829
6830# Transform an extracted symbol line into symbol name with lib prefix and
6831# symbol address.
6832lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6833$lt_c_name_lib_hook\
6834" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6835" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6836" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6837
6838# Handle CRLF in mingw tool chain
6839opt_cr=
6840case $build_os in
6841mingw*)
6842  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6843  ;;
6844esac
6845
6846# Try without a prefix underscore, then with it.
6847for ac_symprfx in "" "_"; do
6848
6849  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850  symxfrm="\\1 $ac_symprfx\\2 \\2"
6851
6852  # Write the raw and C identifiers.
6853  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854    # Fake it for dumpbin and say T for any non-static function,
6855    # D for any global variable and I for any imported variable.
6856    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6857    # which start with @ or ?.
6858    lt_cv_sys_global_symbol_pipe="$AWK '"\
6859"     {last_section=section; section=\$ 3};"\
6860"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6863"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6864"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6865"     \$ 0!~/External *\|/{next};"\
6866"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6867"     {if(hide[section]) next};"\
6868"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6869"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6870"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6871"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6872"     ' prfx=^$ac_symprfx"
6873  else
6874    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6875  fi
6876  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6877
6878  # Check to see that the pipe works correctly.
6879  pipe_works=no
6880
6881  rm -f conftest*
6882  cat > conftest.$ac_ext <<_LT_EOF
6883#ifdef __cplusplus
6884extern "C" {
6885#endif
6886char nm_test_var;
6887void nm_test_func(void);
6888void nm_test_func(void){}
6889#ifdef __cplusplus
6890}
6891#endif
6892int main(){nm_test_var='a';nm_test_func();return(0);}
6893_LT_EOF
6894
6895  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896  (eval $ac_compile) 2>&5
6897  ac_status=$?
6898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899  test $ac_status = 0; }; then
6900    # Now try to grab the symbols.
6901    nlist=conftest.nm
6902    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6903  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6904  ac_status=$?
6905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906  test $ac_status = 0; } && test -s "$nlist"; then
6907      # Try sorting and uniquifying the output.
6908      if sort "$nlist" | uniq > "$nlist"T; then
6909	mv -f "$nlist"T "$nlist"
6910      else
6911	rm -f "$nlist"T
6912      fi
6913
6914      # Make sure that we snagged all the symbols we need.
6915      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6916	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6917	  cat <<_LT_EOF > conftest.$ac_ext
6918/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6919#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6920/* DATA imports from DLLs on WIN32 can't be const, because runtime
6921   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6922# define LT_DLSYM_CONST
6923#elif defined __osf__
6924/* This system does not cope well with relocations in const data.  */
6925# define LT_DLSYM_CONST
6926#else
6927# define LT_DLSYM_CONST const
6928#endif
6929
6930#ifdef __cplusplus
6931extern "C" {
6932#endif
6933
6934_LT_EOF
6935	  # Now generate the symbol file.
6936	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6937
6938	  cat <<_LT_EOF >> conftest.$ac_ext
6939
6940/* The mapping between symbol names and symbols.  */
6941LT_DLSYM_CONST struct {
6942  const char *name;
6943  void       *address;
6944}
6945lt__PROGRAM__LTX_preloaded_symbols[] =
6946{
6947  { "@PROGRAM@", (void *) 0 },
6948_LT_EOF
6949	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6950	  cat <<\_LT_EOF >> conftest.$ac_ext
6951  {0, (void *) 0}
6952};
6953
6954/* This works around a problem in FreeBSD linker */
6955#ifdef FREEBSD_WORKAROUND
6956static const void *lt_preloaded_setup() {
6957  return lt__PROGRAM__LTX_preloaded_symbols;
6958}
6959#endif
6960
6961#ifdef __cplusplus
6962}
6963#endif
6964_LT_EOF
6965	  # Now try linking the two files.
6966	  mv conftest.$ac_objext conftstm.$ac_objext
6967	  lt_globsym_save_LIBS=$LIBS
6968	  lt_globsym_save_CFLAGS=$CFLAGS
6969	  LIBS=conftstm.$ac_objext
6970	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6971	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6972  (eval $ac_link) 2>&5
6973  ac_status=$?
6974  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6976	    pipe_works=yes
6977	  fi
6978	  LIBS=$lt_globsym_save_LIBS
6979	  CFLAGS=$lt_globsym_save_CFLAGS
6980	else
6981	  echo "cannot find nm_test_func in $nlist" >&5
6982	fi
6983      else
6984	echo "cannot find nm_test_var in $nlist" >&5
6985      fi
6986    else
6987      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6988    fi
6989  else
6990    echo "$progname: failed program was:" >&5
6991    cat conftest.$ac_ext >&5
6992  fi
6993  rm -rf conftest* conftst*
6994
6995  # Do not use the global_symbol_pipe unless it works.
6996  if test yes = "$pipe_works"; then
6997    break
6998  else
6999    lt_cv_sys_global_symbol_pipe=
7000  fi
7001done
7002
7003fi
7004
7005if test -z "$lt_cv_sys_global_symbol_pipe"; then
7006  lt_cv_sys_global_symbol_to_cdecl=
7007fi
7008if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7010printf "%s\n" "failed" >&6; }
7011else
7012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7013printf "%s\n" "ok" >&6; }
7014fi
7015
7016# Response file support.
7017if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7018  nm_file_list_spec='@'
7019elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7020  nm_file_list_spec='@'
7021fi
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7060printf %s "checking for sysroot... " >&6; }
7061
7062# Check whether --with-sysroot was given.
7063if test ${with_sysroot+y}
7064then :
7065  withval=$with_sysroot;
7066else $as_nop
7067  with_sysroot=no
7068fi
7069
7070
7071lt_sysroot=
7072case $with_sysroot in #(
7073 yes)
7074   if test yes = "$GCC"; then
7075     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7076   fi
7077   ;; #(
7078 /*)
7079   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7080   ;; #(
7081 no|'')
7082   ;; #(
7083 *)
7084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7085printf "%s\n" "$with_sysroot" >&6; }
7086   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7087   ;;
7088esac
7089
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7091printf "%s\n" "${lt_sysroot:-no}" >&6; }
7092
7093
7094
7095
7096
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7098printf %s "checking for a working dd... " >&6; }
7099if test ${ac_cv_path_lt_DD+y}
7100then :
7101  printf %s "(cached) " >&6
7102else $as_nop
7103  printf 0123456789abcdef0123456789abcdef >conftest.i
7104cat conftest.i conftest.i >conftest2.i
7105: ${lt_DD:=$DD}
7106if test -z "$lt_DD"; then
7107  ac_path_lt_DD_found=false
7108  # Loop through the user's path and test for each of PROGNAME-LIST
7109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  case $as_dir in #(((
7114    '') as_dir=./ ;;
7115    */) ;;
7116    *) as_dir=$as_dir/ ;;
7117  esac
7118    for ac_prog in dd
7119   do
7120    for ac_exec_ext in '' $ac_executable_extensions; do
7121      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7122      as_fn_executable_p "$ac_path_lt_DD" || continue
7123if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7124  cmp -s conftest.i conftest.out \
7125  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7126fi
7127      $ac_path_lt_DD_found && break 3
7128    done
7129  done
7130  done
7131IFS=$as_save_IFS
7132  if test -z "$ac_cv_path_lt_DD"; then
7133    :
7134  fi
7135else
7136  ac_cv_path_lt_DD=$lt_DD
7137fi
7138
7139rm -f conftest.i conftest2.i conftest.out
7140fi
7141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7142printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7143
7144
7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7146printf %s "checking how to truncate binary pipes... " >&6; }
7147if test ${lt_cv_truncate_bin+y}
7148then :
7149  printf %s "(cached) " >&6
7150else $as_nop
7151  printf 0123456789abcdef0123456789abcdef >conftest.i
7152cat conftest.i conftest.i >conftest2.i
7153lt_cv_truncate_bin=
7154if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7155  cmp -s conftest.i conftest.out \
7156  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7157fi
7158rm -f conftest.i conftest2.i conftest.out
7159test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7160fi
7161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7162printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7163
7164
7165
7166
7167
7168
7169
7170# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7171func_cc_basename ()
7172{
7173    for cc_temp in $*""; do
7174      case $cc_temp in
7175        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7176        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7177        \-*) ;;
7178        *) break;;
7179      esac
7180    done
7181    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7182}
7183
7184# Check whether --enable-libtool-lock was given.
7185if test ${enable_libtool_lock+y}
7186then :
7187  enableval=$enable_libtool_lock;
7188fi
7189
7190test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7191
7192# Some flags need to be propagated to the compiler or linker for good
7193# libtool support.
7194case $host in
7195ia64-*-hpux*)
7196  # Find out what ABI is being produced by ac_compile, and set mode
7197  # options accordingly.
7198  echo 'int i;' > conftest.$ac_ext
7199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200  (eval $ac_compile) 2>&5
7201  ac_status=$?
7202  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203  test $ac_status = 0; }; then
7204    case `$FILECMD conftest.$ac_objext` in
7205      *ELF-32*)
7206	HPUX_IA64_MODE=32
7207	;;
7208      *ELF-64*)
7209	HPUX_IA64_MODE=64
7210	;;
7211    esac
7212  fi
7213  rm -rf conftest*
7214  ;;
7215*-*-irix6*)
7216  # Find out what ABI is being produced by ac_compile, and set linker
7217  # options accordingly.
7218  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220  (eval $ac_compile) 2>&5
7221  ac_status=$?
7222  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223  test $ac_status = 0; }; then
7224    if test yes = "$lt_cv_prog_gnu_ld"; then
7225      case `$FILECMD conftest.$ac_objext` in
7226	*32-bit*)
7227	  LD="${LD-ld} -melf32bsmip"
7228	  ;;
7229	*N32*)
7230	  LD="${LD-ld} -melf32bmipn32"
7231	  ;;
7232	*64-bit*)
7233	  LD="${LD-ld} -melf64bmip"
7234	;;
7235      esac
7236    else
7237      case `$FILECMD conftest.$ac_objext` in
7238	*32-bit*)
7239	  LD="${LD-ld} -32"
7240	  ;;
7241	*N32*)
7242	  LD="${LD-ld} -n32"
7243	  ;;
7244	*64-bit*)
7245	  LD="${LD-ld} -64"
7246	  ;;
7247      esac
7248    fi
7249  fi
7250  rm -rf conftest*
7251  ;;
7252
7253mips64*-*linux*)
7254  # Find out what ABI is being produced by ac_compile, and set linker
7255  # options accordingly.
7256  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7257  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258  (eval $ac_compile) 2>&5
7259  ac_status=$?
7260  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261  test $ac_status = 0; }; then
7262    emul=elf
7263    case `$FILECMD conftest.$ac_objext` in
7264      *32-bit*)
7265	emul="${emul}32"
7266	;;
7267      *64-bit*)
7268	emul="${emul}64"
7269	;;
7270    esac
7271    case `$FILECMD conftest.$ac_objext` in
7272      *MSB*)
7273	emul="${emul}btsmip"
7274	;;
7275      *LSB*)
7276	emul="${emul}ltsmip"
7277	;;
7278    esac
7279    case `$FILECMD conftest.$ac_objext` in
7280      *N32*)
7281	emul="${emul}n32"
7282	;;
7283    esac
7284    LD="${LD-ld} -m $emul"
7285  fi
7286  rm -rf conftest*
7287  ;;
7288
7289x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7290s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7291  # Find out what ABI is being produced by ac_compile, and set linker
7292  # options accordingly.  Note that the listed cases only cover the
7293  # situations where additional linker options are needed (such as when
7294  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7295  # vice versa); the common cases where no linker options are needed do
7296  # not appear in the list.
7297  echo 'int i;' > conftest.$ac_ext
7298  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299  (eval $ac_compile) 2>&5
7300  ac_status=$?
7301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302  test $ac_status = 0; }; then
7303    case `$FILECMD conftest.o` in
7304      *32-bit*)
7305	case $host in
7306	  x86_64-*kfreebsd*-gnu)
7307	    LD="${LD-ld} -m elf_i386_fbsd"
7308	    ;;
7309	  x86_64-*linux*)
7310	    case `$FILECMD conftest.o` in
7311	      *x86-64*)
7312		LD="${LD-ld} -m elf32_x86_64"
7313		;;
7314	      *)
7315		LD="${LD-ld} -m elf_i386"
7316		;;
7317	    esac
7318	    ;;
7319	  powerpc64le-*linux*)
7320	    LD="${LD-ld} -m elf32lppclinux"
7321	    ;;
7322	  powerpc64-*linux*)
7323	    LD="${LD-ld} -m elf32ppclinux"
7324	    ;;
7325	  s390x-*linux*)
7326	    LD="${LD-ld} -m elf_s390"
7327	    ;;
7328	  sparc64-*linux*)
7329	    LD="${LD-ld} -m elf32_sparc"
7330	    ;;
7331	esac
7332	;;
7333      *64-bit*)
7334	case $host in
7335	  x86_64-*kfreebsd*-gnu)
7336	    LD="${LD-ld} -m elf_x86_64_fbsd"
7337	    ;;
7338	  x86_64-*linux*)
7339	    LD="${LD-ld} -m elf_x86_64"
7340	    ;;
7341	  powerpcle-*linux*|powerpc64le-*linux*)
7342	    LD="${LD-ld} -m elf64lppc"
7343	    ;;
7344	  powerpc-*linux*|powerpc64-*linux*)
7345	    LD="${LD-ld} -m elf64ppc"
7346	    ;;
7347	  s390*-*linux*|s390*-*tpf*)
7348	    LD="${LD-ld} -m elf64_s390"
7349	    ;;
7350	  sparc*-*linux*)
7351	    LD="${LD-ld} -m elf64_sparc"
7352	    ;;
7353	esac
7354	;;
7355    esac
7356  fi
7357  rm -rf conftest*
7358  ;;
7359
7360*-*-sco3.2v5*)
7361  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7362  SAVE_CFLAGS=$CFLAGS
7363  CFLAGS="$CFLAGS -belf"
7364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7365printf %s "checking whether the C compiler needs -belf... " >&6; }
7366if test ${lt_cv_cc_needs_belf+y}
7367then :
7368  printf %s "(cached) " >&6
7369else $as_nop
7370  ac_ext=c
7371ac_cpp='$CPP $CPPFLAGS'
7372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378
7379int
7380main (void)
7381{
7382
7383  ;
7384  return 0;
7385}
7386_ACEOF
7387if ac_fn_c_try_link "$LINENO"
7388then :
7389  lt_cv_cc_needs_belf=yes
7390else $as_nop
7391  lt_cv_cc_needs_belf=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.beam \
7394    conftest$ac_exeext conftest.$ac_ext
7395     ac_ext=c
7396ac_cpp='$CPP $CPPFLAGS'
7397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401fi
7402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7403printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7404  if test yes != "$lt_cv_cc_needs_belf"; then
7405    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7406    CFLAGS=$SAVE_CFLAGS
7407  fi
7408  ;;
7409*-*solaris*)
7410  # Find out what ABI is being produced by ac_compile, and set linker
7411  # options accordingly.
7412  echo 'int i;' > conftest.$ac_ext
7413  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7414  (eval $ac_compile) 2>&5
7415  ac_status=$?
7416  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417  test $ac_status = 0; }; then
7418    case `$FILECMD conftest.o` in
7419    *64-bit*)
7420      case $lt_cv_prog_gnu_ld in
7421      yes*)
7422        case $host in
7423        i?86-*-solaris*|x86_64-*-solaris*)
7424          LD="${LD-ld} -m elf_x86_64"
7425          ;;
7426        sparc*-*-solaris*)
7427          LD="${LD-ld} -m elf64_sparc"
7428          ;;
7429        esac
7430        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7431        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7432          LD=${LD-ld}_sol2
7433        fi
7434        ;;
7435      *)
7436	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7437	  LD="${LD-ld} -64"
7438	fi
7439	;;
7440      esac
7441      ;;
7442    esac
7443  fi
7444  rm -rf conftest*
7445  ;;
7446esac
7447
7448need_locks=$enable_libtool_lock
7449
7450if test -n "$ac_tool_prefix"; then
7451  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7452set dummy ${ac_tool_prefix}mt; ac_word=$2
7453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454printf %s "checking for $ac_word... " >&6; }
7455if test ${ac_cv_prog_MANIFEST_TOOL+y}
7456then :
7457  printf %s "(cached) " >&6
7458else $as_nop
7459  if test -n "$MANIFEST_TOOL"; then
7460  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7461else
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  case $as_dir in #(((
7467    '') as_dir=./ ;;
7468    */) ;;
7469    *) as_dir=$as_dir/ ;;
7470  esac
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7473    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7474    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7484if test -n "$MANIFEST_TOOL"; then
7485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7486printf "%s\n" "$MANIFEST_TOOL" >&6; }
7487else
7488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489printf "%s\n" "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7495  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7496  # Extract the first word of "mt", so it can be a program name with args.
7497set dummy mt; ac_word=$2
7498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499printf %s "checking for $ac_word... " >&6; }
7500if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7501then :
7502  printf %s "(cached) " >&6
7503else $as_nop
7504  if test -n "$ac_ct_MANIFEST_TOOL"; then
7505  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510  IFS=$as_save_IFS
7511  case $as_dir in #(((
7512    '') as_dir=./ ;;
7513    */) ;;
7514    *) as_dir=$as_dir/ ;;
7515  esac
7516    for ac_exec_ext in '' $ac_executable_extensions; do
7517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7518    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7520    break 2
7521  fi
7522done
7523  done
7524IFS=$as_save_IFS
7525
7526fi
7527fi
7528ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7529if test -n "$ac_ct_MANIFEST_TOOL"; then
7530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7531printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7532else
7533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534printf "%s\n" "no" >&6; }
7535fi
7536
7537  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7538    MANIFEST_TOOL=":"
7539  else
7540    case $cross_compiling:$ac_tool_warned in
7541yes:)
7542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544ac_tool_warned=yes ;;
7545esac
7546    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7547  fi
7548else
7549  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7550fi
7551
7552test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7554printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7555if test ${lt_cv_path_mainfest_tool+y}
7556then :
7557  printf %s "(cached) " >&6
7558else $as_nop
7559  lt_cv_path_mainfest_tool=no
7560  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7561  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7562  cat conftest.err >&5
7563  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7564    lt_cv_path_mainfest_tool=yes
7565  fi
7566  rm -f conftest*
7567fi
7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7569printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7570if test yes != "$lt_cv_path_mainfest_tool"; then
7571  MANIFEST_TOOL=:
7572fi
7573
7574
7575
7576
7577
7578
7579  case $host_os in
7580    rhapsody* | darwin*)
7581    if test -n "$ac_tool_prefix"; then
7582  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7583set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585printf %s "checking for $ac_word... " >&6; }
7586if test ${ac_cv_prog_DSYMUTIL+y}
7587then :
7588  printf %s "(cached) " >&6
7589else $as_nop
7590  if test -n "$DSYMUTIL"; then
7591  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  case $as_dir in #(((
7598    '') as_dir=./ ;;
7599    */) ;;
7600    *) as_dir=$as_dir/ ;;
7601  esac
7602    for ac_exec_ext in '' $ac_executable_extensions; do
7603  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7604    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7605    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7606    break 2
7607  fi
7608done
7609  done
7610IFS=$as_save_IFS
7611
7612fi
7613fi
7614DSYMUTIL=$ac_cv_prog_DSYMUTIL
7615if test -n "$DSYMUTIL"; then
7616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7617printf "%s\n" "$DSYMUTIL" >&6; }
7618else
7619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620printf "%s\n" "no" >&6; }
7621fi
7622
7623
7624fi
7625if test -z "$ac_cv_prog_DSYMUTIL"; then
7626  ac_ct_DSYMUTIL=$DSYMUTIL
7627  # Extract the first word of "dsymutil", so it can be a program name with args.
7628set dummy dsymutil; ac_word=$2
7629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630printf %s "checking for $ac_word... " >&6; }
7631if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7632then :
7633  printf %s "(cached) " >&6
7634else $as_nop
7635  if test -n "$ac_ct_DSYMUTIL"; then
7636  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  case $as_dir in #(((
7643    '') as_dir=./ ;;
7644    */) ;;
7645    *) as_dir=$as_dir/ ;;
7646  esac
7647    for ac_exec_ext in '' $ac_executable_extensions; do
7648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7649    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7651    break 2
7652  fi
7653done
7654  done
7655IFS=$as_save_IFS
7656
7657fi
7658fi
7659ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7660if test -n "$ac_ct_DSYMUTIL"; then
7661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7662printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7663else
7664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665printf "%s\n" "no" >&6; }
7666fi
7667
7668  if test "x$ac_ct_DSYMUTIL" = x; then
7669    DSYMUTIL=":"
7670  else
7671    case $cross_compiling:$ac_tool_warned in
7672yes:)
7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675ac_tool_warned=yes ;;
7676esac
7677    DSYMUTIL=$ac_ct_DSYMUTIL
7678  fi
7679else
7680  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7681fi
7682
7683    if test -n "$ac_tool_prefix"; then
7684  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7685set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687printf %s "checking for $ac_word... " >&6; }
7688if test ${ac_cv_prog_NMEDIT+y}
7689then :
7690  printf %s "(cached) " >&6
7691else $as_nop
7692  if test -n "$NMEDIT"; then
7693  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698  IFS=$as_save_IFS
7699  case $as_dir in #(((
7700    '') as_dir=./ ;;
7701    */) ;;
7702    *) as_dir=$as_dir/ ;;
7703  esac
7704    for ac_exec_ext in '' $ac_executable_extensions; do
7705  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7706    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7707    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7708    break 2
7709  fi
7710done
7711  done
7712IFS=$as_save_IFS
7713
7714fi
7715fi
7716NMEDIT=$ac_cv_prog_NMEDIT
7717if test -n "$NMEDIT"; then
7718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7719printf "%s\n" "$NMEDIT" >&6; }
7720else
7721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722printf "%s\n" "no" >&6; }
7723fi
7724
7725
7726fi
7727if test -z "$ac_cv_prog_NMEDIT"; then
7728  ac_ct_NMEDIT=$NMEDIT
7729  # Extract the first word of "nmedit", so it can be a program name with args.
7730set dummy nmedit; ac_word=$2
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732printf %s "checking for $ac_word... " >&6; }
7733if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7734then :
7735  printf %s "(cached) " >&6
7736else $as_nop
7737  if test -n "$ac_ct_NMEDIT"; then
7738  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743  IFS=$as_save_IFS
7744  case $as_dir in #(((
7745    '') as_dir=./ ;;
7746    */) ;;
7747    *) as_dir=$as_dir/ ;;
7748  esac
7749    for ac_exec_ext in '' $ac_executable_extensions; do
7750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7751    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7753    break 2
7754  fi
7755done
7756  done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7762if test -n "$ac_ct_NMEDIT"; then
7763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7764printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7765else
7766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767printf "%s\n" "no" >&6; }
7768fi
7769
7770  if test "x$ac_ct_NMEDIT" = x; then
7771    NMEDIT=":"
7772  else
7773    case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777ac_tool_warned=yes ;;
7778esac
7779    NMEDIT=$ac_ct_NMEDIT
7780  fi
7781else
7782  NMEDIT="$ac_cv_prog_NMEDIT"
7783fi
7784
7785    if test -n "$ac_tool_prefix"; then
7786  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7787set dummy ${ac_tool_prefix}lipo; ac_word=$2
7788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789printf %s "checking for $ac_word... " >&6; }
7790if test ${ac_cv_prog_LIPO+y}
7791then :
7792  printf %s "(cached) " >&6
7793else $as_nop
7794  if test -n "$LIPO"; then
7795  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  case $as_dir in #(((
7802    '') as_dir=./ ;;
7803    */) ;;
7804    *) as_dir=$as_dir/ ;;
7805  esac
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7809    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818LIPO=$ac_cv_prog_LIPO
7819if test -n "$LIPO"; then
7820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7821printf "%s\n" "$LIPO" >&6; }
7822else
7823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824printf "%s\n" "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_prog_LIPO"; then
7830  ac_ct_LIPO=$LIPO
7831  # Extract the first word of "lipo", so it can be a program name with args.
7832set dummy lipo; ac_word=$2
7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834printf %s "checking for $ac_word... " >&6; }
7835if test ${ac_cv_prog_ac_ct_LIPO+y}
7836then :
7837  printf %s "(cached) " >&6
7838else $as_nop
7839  if test -n "$ac_ct_LIPO"; then
7840  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  case $as_dir in #(((
7847    '') as_dir=./ ;;
7848    */) ;;
7849    *) as_dir=$as_dir/ ;;
7850  esac
7851    for ac_exec_ext in '' $ac_executable_extensions; do
7852  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853    ac_cv_prog_ac_ct_LIPO="lipo"
7854    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855    break 2
7856  fi
7857done
7858  done
7859IFS=$as_save_IFS
7860
7861fi
7862fi
7863ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864if test -n "$ac_ct_LIPO"; then
7865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866printf "%s\n" "$ac_ct_LIPO" >&6; }
7867else
7868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869printf "%s\n" "no" >&6; }
7870fi
7871
7872  if test "x$ac_ct_LIPO" = x; then
7873    LIPO=":"
7874  else
7875    case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881    LIPO=$ac_ct_LIPO
7882  fi
7883else
7884  LIPO="$ac_cv_prog_LIPO"
7885fi
7886
7887    if test -n "$ac_tool_prefix"; then
7888  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}otool; ac_word=$2
7890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891printf %s "checking for $ac_word... " >&6; }
7892if test ${ac_cv_prog_OTOOL+y}
7893then :
7894  printf %s "(cached) " >&6
7895else $as_nop
7896  if test -n "$OTOOL"; then
7897  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  case $as_dir in #(((
7904    '') as_dir=./ ;;
7905    */) ;;
7906    *) as_dir=$as_dir/ ;;
7907  esac
7908    for ac_exec_ext in '' $ac_executable_extensions; do
7909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7910    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7912    break 2
7913  fi
7914done
7915  done
7916IFS=$as_save_IFS
7917
7918fi
7919fi
7920OTOOL=$ac_cv_prog_OTOOL
7921if test -n "$OTOOL"; then
7922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7923printf "%s\n" "$OTOOL" >&6; }
7924else
7925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926printf "%s\n" "no" >&6; }
7927fi
7928
7929
7930fi
7931if test -z "$ac_cv_prog_OTOOL"; then
7932  ac_ct_OTOOL=$OTOOL
7933  # Extract the first word of "otool", so it can be a program name with args.
7934set dummy otool; ac_word=$2
7935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936printf %s "checking for $ac_word... " >&6; }
7937if test ${ac_cv_prog_ac_ct_OTOOL+y}
7938then :
7939  printf %s "(cached) " >&6
7940else $as_nop
7941  if test -n "$ac_ct_OTOOL"; then
7942  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7943else
7944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947  IFS=$as_save_IFS
7948  case $as_dir in #(((
7949    '') as_dir=./ ;;
7950    */) ;;
7951    *) as_dir=$as_dir/ ;;
7952  esac
7953    for ac_exec_ext in '' $ac_executable_extensions; do
7954  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_ac_ct_OTOOL="otool"
7956    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960  done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7966if test -n "$ac_ct_OTOOL"; then
7967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7968printf "%s\n" "$ac_ct_OTOOL" >&6; }
7969else
7970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971printf "%s\n" "no" >&6; }
7972fi
7973
7974  if test "x$ac_ct_OTOOL" = x; then
7975    OTOOL=":"
7976  else
7977    case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983    OTOOL=$ac_ct_OTOOL
7984  fi
7985else
7986  OTOOL="$ac_cv_prog_OTOOL"
7987fi
7988
7989    if test -n "$ac_tool_prefix"; then
7990  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7991set dummy ${ac_tool_prefix}otool64; ac_word=$2
7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993printf %s "checking for $ac_word... " >&6; }
7994if test ${ac_cv_prog_OTOOL64+y}
7995then :
7996  printf %s "(cached) " >&6
7997else $as_nop
7998  if test -n "$OTOOL64"; then
7999  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004  IFS=$as_save_IFS
8005  case $as_dir in #(((
8006    '') as_dir=./ ;;
8007    */) ;;
8008    *) as_dir=$as_dir/ ;;
8009  esac
8010    for ac_exec_ext in '' $ac_executable_extensions; do
8011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014    break 2
8015  fi
8016done
8017  done
8018IFS=$as_save_IFS
8019
8020fi
8021fi
8022OTOOL64=$ac_cv_prog_OTOOL64
8023if test -n "$OTOOL64"; then
8024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8025printf "%s\n" "$OTOOL64" >&6; }
8026else
8027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028printf "%s\n" "no" >&6; }
8029fi
8030
8031
8032fi
8033if test -z "$ac_cv_prog_OTOOL64"; then
8034  ac_ct_OTOOL64=$OTOOL64
8035  # Extract the first word of "otool64", so it can be a program name with args.
8036set dummy otool64; ac_word=$2
8037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038printf %s "checking for $ac_word... " >&6; }
8039if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8040then :
8041  printf %s "(cached) " >&6
8042else $as_nop
8043  if test -n "$ac_ct_OTOOL64"; then
8044  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049  IFS=$as_save_IFS
8050  case $as_dir in #(((
8051    '') as_dir=./ ;;
8052    */) ;;
8053    *) as_dir=$as_dir/ ;;
8054  esac
8055    for ac_exec_ext in '' $ac_executable_extensions; do
8056  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8057    ac_cv_prog_ac_ct_OTOOL64="otool64"
8058    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8059    break 2
8060  fi
8061done
8062  done
8063IFS=$as_save_IFS
8064
8065fi
8066fi
8067ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8068if test -n "$ac_ct_OTOOL64"; then
8069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8070printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8071else
8072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073printf "%s\n" "no" >&6; }
8074fi
8075
8076  if test "x$ac_ct_OTOOL64" = x; then
8077    OTOOL64=":"
8078  else
8079    case $cross_compiling:$ac_tool_warned in
8080yes:)
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083ac_tool_warned=yes ;;
8084esac
8085    OTOOL64=$ac_ct_OTOOL64
8086  fi
8087else
8088  OTOOL64="$ac_cv_prog_OTOOL64"
8089fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8118printf %s "checking for -single_module linker flag... " >&6; }
8119if test ${lt_cv_apple_cc_single_mod+y}
8120then :
8121  printf %s "(cached) " >&6
8122else $as_nop
8123  lt_cv_apple_cc_single_mod=no
8124      if test -z "$LT_MULTI_MODULE"; then
8125	# By default we will add the -single_module flag. You can override
8126	# by either setting the environment variable LT_MULTI_MODULE
8127	# non-empty at configure time, or by adding -multi_module to the
8128	# link flags.
8129	rm -rf libconftest.dylib*
8130	echo "int foo(void){return 1;}" > conftest.c
8131	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8132-dynamiclib -Wl,-single_module conftest.c" >&5
8133	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8134	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8135        _lt_result=$?
8136	# If there is a non-empty error log, and "single_module"
8137	# appears in it, assume the flag caused a linker warning
8138        if test -s conftest.err && $GREP single_module conftest.err; then
8139	  cat conftest.err >&5
8140	# Otherwise, if the output was created with a 0 exit code from
8141	# the compiler, it worked.
8142	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8143	  lt_cv_apple_cc_single_mod=yes
8144	else
8145	  cat conftest.err >&5
8146	fi
8147	rm -rf libconftest.dylib*
8148	rm -f conftest.*
8149      fi
8150fi
8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8152printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8153
8154    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8155printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8156if test ${lt_cv_ld_exported_symbols_list+y}
8157then :
8158  printf %s "(cached) " >&6
8159else $as_nop
8160  lt_cv_ld_exported_symbols_list=no
8161      save_LDFLAGS=$LDFLAGS
8162      echo "_main" > conftest.sym
8163      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166
8167int
8168main (void)
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"
8176then :
8177  lt_cv_ld_exported_symbols_list=yes
8178else $as_nop
8179  lt_cv_ld_exported_symbols_list=no
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.beam \
8182    conftest$ac_exeext conftest.$ac_ext
8183	LDFLAGS=$save_LDFLAGS
8184
8185fi
8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8187printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8188
8189    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8190printf %s "checking for -force_load linker flag... " >&6; }
8191if test ${lt_cv_ld_force_load+y}
8192then :
8193  printf %s "(cached) " >&6
8194else $as_nop
8195  lt_cv_ld_force_load=no
8196      cat > conftest.c << _LT_EOF
8197int forced_loaded() { return 2;}
8198_LT_EOF
8199      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8200      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8201      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8202      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8203      echo "$RANLIB libconftest.a" >&5
8204      $RANLIB libconftest.a 2>&5
8205      cat > conftest.c << _LT_EOF
8206int main() { return 0;}
8207_LT_EOF
8208      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8209      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8210      _lt_result=$?
8211      if test -s conftest.err && $GREP force_load conftest.err; then
8212	cat conftest.err >&5
8213      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8214	lt_cv_ld_force_load=yes
8215      else
8216	cat conftest.err >&5
8217      fi
8218        rm -f conftest.err libconftest.a conftest conftest.c
8219        rm -rf conftest.dSYM
8220
8221fi
8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8223printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8224    case $host_os in
8225    rhapsody* | darwin1.[012])
8226      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8227    darwin1.*)
8228      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8229    darwin*)
8230      case $MACOSX_DEPLOYMENT_TARGET,$host in
8231        10.[012],*|,*powerpc*-darwin[5-8]*)
8232          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8233        *)
8234          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8235      esac
8236    ;;
8237  esac
8238    if test yes = "$lt_cv_apple_cc_single_mod"; then
8239      _lt_dar_single_mod='$single_module'
8240    fi
8241    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8242      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8243    else
8244      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8245    fi
8246    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8247      _lt_dsymutil='~$DSYMUTIL $lib || :'
8248    else
8249      _lt_dsymutil=
8250    fi
8251    ;;
8252  esac
8253
8254# func_munge_path_list VARIABLE PATH
8255# -----------------------------------
8256# VARIABLE is name of variable containing _space_ separated list of
8257# directories to be munged by the contents of PATH, which is string
8258# having a format:
8259# "DIR[:DIR]:"
8260#       string "DIR[ DIR]" will be prepended to VARIABLE
8261# ":DIR[:DIR]"
8262#       string "DIR[ DIR]" will be appended to VARIABLE
8263# "DIRP[:DIRP]::[DIRA:]DIRA"
8264#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8265#       "DIRA[ DIRA]" will be appended to VARIABLE
8266# "DIR[:DIR]"
8267#       VARIABLE will be replaced by "DIR[ DIR]"
8268func_munge_path_list ()
8269{
8270    case x$2 in
8271    x)
8272        ;;
8273    *:)
8274        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8275        ;;
8276    x:*)
8277        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8278        ;;
8279    *::*)
8280        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8281        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8282        ;;
8283    *)
8284        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8285        ;;
8286    esac
8287}
8288
8289ac_header= ac_cache=
8290for ac_item in $ac_header_c_list
8291do
8292  if test $ac_cache; then
8293    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8294    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8295      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8296    fi
8297    ac_header= ac_cache=
8298  elif test $ac_header; then
8299    ac_cache=$ac_item
8300  else
8301    ac_header=$ac_item
8302  fi
8303done
8304
8305
8306
8307
8308
8309
8310
8311
8312if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8313then :
8314
8315printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8316
8317fi
8318ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8319"
8320if test "x$ac_cv_header_dlfcn_h" = xyes
8321then :
8322  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8323
8324fi
8325
8326
8327
8328
8329
8330# Set options
8331
8332
8333
8334        enable_dlopen=no
8335
8336
8337  enable_win32_dll=no
8338
8339
8340            # Check whether --enable-shared was given.
8341if test ${enable_shared+y}
8342then :
8343  enableval=$enable_shared; p=${PACKAGE-default}
8344    case $enableval in
8345    yes) enable_shared=yes ;;
8346    no) enable_shared=no ;;
8347    *)
8348      enable_shared=no
8349      # Look at the argument we got.  We use all the common list separators.
8350      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8351      for pkg in $enableval; do
8352	IFS=$lt_save_ifs
8353	if test "X$pkg" = "X$p"; then
8354	  enable_shared=yes
8355	fi
8356      done
8357      IFS=$lt_save_ifs
8358      ;;
8359    esac
8360else $as_nop
8361  enable_shared=yes
8362fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372  # Check whether --enable-static was given.
8373if test ${enable_static+y}
8374then :
8375  enableval=$enable_static; p=${PACKAGE-default}
8376    case $enableval in
8377    yes) enable_static=yes ;;
8378    no) enable_static=no ;;
8379    *)
8380     enable_static=no
8381      # Look at the argument we got.  We use all the common list separators.
8382      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8383      for pkg in $enableval; do
8384	IFS=$lt_save_ifs
8385	if test "X$pkg" = "X$p"; then
8386	  enable_static=yes
8387	fi
8388      done
8389      IFS=$lt_save_ifs
8390      ;;
8391    esac
8392else $as_nop
8393  enable_static=yes
8394fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405# Check whether --with-pic was given.
8406if test ${with_pic+y}
8407then :
8408  withval=$with_pic; lt_p=${PACKAGE-default}
8409    case $withval in
8410    yes|no) pic_mode=$withval ;;
8411    *)
8412      pic_mode=default
8413      # Look at the argument we got.  We use all the common list separators.
8414      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8415      for lt_pkg in $withval; do
8416	IFS=$lt_save_ifs
8417	if test "X$lt_pkg" = "X$lt_p"; then
8418	  pic_mode=yes
8419	fi
8420      done
8421      IFS=$lt_save_ifs
8422      ;;
8423    esac
8424else $as_nop
8425  pic_mode=default
8426fi
8427
8428
8429
8430
8431
8432
8433
8434
8435  # Check whether --enable-fast-install was given.
8436if test ${enable_fast_install+y}
8437then :
8438  enableval=$enable_fast_install; p=${PACKAGE-default}
8439    case $enableval in
8440    yes) enable_fast_install=yes ;;
8441    no) enable_fast_install=no ;;
8442    *)
8443      enable_fast_install=no
8444      # Look at the argument we got.  We use all the common list separators.
8445      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8446      for pkg in $enableval; do
8447	IFS=$lt_save_ifs
8448	if test "X$pkg" = "X$p"; then
8449	  enable_fast_install=yes
8450	fi
8451      done
8452      IFS=$lt_save_ifs
8453      ;;
8454    esac
8455else $as_nop
8456  enable_fast_install=yes
8457fi
8458
8459
8460
8461
8462
8463
8464
8465
8466  shared_archive_member_spec=
8467case $host,$enable_shared in
8468power*-*-aix[5-9]*,yes)
8469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8470printf %s "checking which variant of shared library versioning to provide... " >&6; }
8471
8472# Check whether --with-aix-soname was given.
8473if test ${with_aix_soname+y}
8474then :
8475  withval=$with_aix_soname; case $withval in
8476    aix|svr4|both)
8477      ;;
8478    *)
8479      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8480      ;;
8481    esac
8482    lt_cv_with_aix_soname=$with_aix_soname
8483else $as_nop
8484  if test ${lt_cv_with_aix_soname+y}
8485then :
8486  printf %s "(cached) " >&6
8487else $as_nop
8488  lt_cv_with_aix_soname=aix
8489fi
8490
8491    with_aix_soname=$lt_cv_with_aix_soname
8492fi
8493
8494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8495printf "%s\n" "$with_aix_soname" >&6; }
8496  if test aix != "$with_aix_soname"; then
8497    # For the AIX way of multilib, we name the shared archive member
8498    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8499    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8500    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8501    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8502    if test 64 = "${OBJECT_MODE-32}"; then
8503      shared_archive_member_spec=shr_64
8504    else
8505      shared_archive_member_spec=shr
8506    fi
8507  fi
8508  ;;
8509*)
8510  with_aix_soname=aix
8511  ;;
8512esac
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523# This can be used to rebuild libtool when needed
8524LIBTOOL_DEPS=$ltmain
8525
8526# Always use our own libtool.
8527LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558test -z "$LN_S" && LN_S="ln -s"
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573if test -n "${ZSH_VERSION+set}"; then
8574   setopt NO_GLOB_SUBST
8575fi
8576
8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8578printf %s "checking for objdir... " >&6; }
8579if test ${lt_cv_objdir+y}
8580then :
8581  printf %s "(cached) " >&6
8582else $as_nop
8583  rm -f .libs 2>/dev/null
8584mkdir .libs 2>/dev/null
8585if test -d .libs; then
8586  lt_cv_objdir=.libs
8587else
8588  # MS-DOS does not allow filenames that begin with a dot.
8589  lt_cv_objdir=_libs
8590fi
8591rmdir .libs 2>/dev/null
8592fi
8593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8594printf "%s\n" "$lt_cv_objdir" >&6; }
8595objdir=$lt_cv_objdir
8596
8597
8598
8599
8600
8601printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8602
8603
8604
8605
8606case $host_os in
8607aix3*)
8608  # AIX sometimes has problems with the GCC collect2 program.  For some
8609  # reason, if we set the COLLECT_NAMES environment variable, the problems
8610  # vanish in a puff of smoke.
8611  if test set != "${COLLECT_NAMES+set}"; then
8612    COLLECT_NAMES=
8613    export COLLECT_NAMES
8614  fi
8615  ;;
8616esac
8617
8618# Global variables:
8619ofile=libtool
8620can_build_shared=yes
8621
8622# All known linkers require a '.a' archive for static linking (except MSVC and
8623# ICC, which need '.lib').
8624libext=a
8625
8626with_gnu_ld=$lt_cv_prog_gnu_ld
8627
8628old_CC=$CC
8629old_CFLAGS=$CFLAGS
8630
8631# Set sane defaults for various variables
8632test -z "$CC" && CC=cc
8633test -z "$LTCC" && LTCC=$CC
8634test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8635test -z "$LD" && LD=ld
8636test -z "$ac_objext" && ac_objext=o
8637
8638func_cc_basename $compiler
8639cc_basename=$func_cc_basename_result
8640
8641
8642# Only perform the check for file, if the check method requires it
8643test -z "$MAGIC_CMD" && MAGIC_CMD=file
8644case $deplibs_check_method in
8645file_magic*)
8646  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8647    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8648printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8649if test ${lt_cv_path_MAGIC_CMD+y}
8650then :
8651  printf %s "(cached) " >&6
8652else $as_nop
8653  case $MAGIC_CMD in
8654[\\/*] |  ?:[\\/]*)
8655  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8656  ;;
8657*)
8658  lt_save_MAGIC_CMD=$MAGIC_CMD
8659  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8660  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8661  for ac_dir in $ac_dummy; do
8662    IFS=$lt_save_ifs
8663    test -z "$ac_dir" && ac_dir=.
8664    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8665      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8666      if test -n "$file_magic_test_file"; then
8667	case $deplibs_check_method in
8668	"file_magic "*)
8669	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8670	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8671	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8672	    $EGREP "$file_magic_regex" > /dev/null; then
8673	    :
8674	  else
8675	    cat <<_LT_EOF 1>&2
8676
8677*** Warning: the command libtool uses to detect shared libraries,
8678*** $file_magic_cmd, produces output that libtool cannot recognize.
8679*** The result is that libtool may fail to recognize shared libraries
8680*** as such.  This will affect the creation of libtool libraries that
8681*** depend on shared libraries, but programs linked with such libtool
8682*** libraries will work regardless of this problem.  Nevertheless, you
8683*** may want to report the problem to your system manager and/or to
8684*** bug-libtool@gnu.org
8685
8686_LT_EOF
8687	  fi ;;
8688	esac
8689      fi
8690      break
8691    fi
8692  done
8693  IFS=$lt_save_ifs
8694  MAGIC_CMD=$lt_save_MAGIC_CMD
8695  ;;
8696esac
8697fi
8698
8699MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8700if test -n "$MAGIC_CMD"; then
8701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8702printf "%s\n" "$MAGIC_CMD" >&6; }
8703else
8704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705printf "%s\n" "no" >&6; }
8706fi
8707
8708
8709
8710
8711
8712if test -z "$lt_cv_path_MAGIC_CMD"; then
8713  if test -n "$ac_tool_prefix"; then
8714    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8715printf %s "checking for file... " >&6; }
8716if test ${lt_cv_path_MAGIC_CMD+y}
8717then :
8718  printf %s "(cached) " >&6
8719else $as_nop
8720  case $MAGIC_CMD in
8721[\\/*] |  ?:[\\/]*)
8722  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8723  ;;
8724*)
8725  lt_save_MAGIC_CMD=$MAGIC_CMD
8726  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8727  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8728  for ac_dir in $ac_dummy; do
8729    IFS=$lt_save_ifs
8730    test -z "$ac_dir" && ac_dir=.
8731    if test -f "$ac_dir/file"; then
8732      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8733      if test -n "$file_magic_test_file"; then
8734	case $deplibs_check_method in
8735	"file_magic "*)
8736	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8737	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8738	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8739	    $EGREP "$file_magic_regex" > /dev/null; then
8740	    :
8741	  else
8742	    cat <<_LT_EOF 1>&2
8743
8744*** Warning: the command libtool uses to detect shared libraries,
8745*** $file_magic_cmd, produces output that libtool cannot recognize.
8746*** The result is that libtool may fail to recognize shared libraries
8747*** as such.  This will affect the creation of libtool libraries that
8748*** depend on shared libraries, but programs linked with such libtool
8749*** libraries will work regardless of this problem.  Nevertheless, you
8750*** may want to report the problem to your system manager and/or to
8751*** bug-libtool@gnu.org
8752
8753_LT_EOF
8754	  fi ;;
8755	esac
8756      fi
8757      break
8758    fi
8759  done
8760  IFS=$lt_save_ifs
8761  MAGIC_CMD=$lt_save_MAGIC_CMD
8762  ;;
8763esac
8764fi
8765
8766MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8767if test -n "$MAGIC_CMD"; then
8768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8769printf "%s\n" "$MAGIC_CMD" >&6; }
8770else
8771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772printf "%s\n" "no" >&6; }
8773fi
8774
8775
8776  else
8777    MAGIC_CMD=:
8778  fi
8779fi
8780
8781  fi
8782  ;;
8783esac
8784
8785# Use C for the default configuration in the libtool script
8786
8787lt_save_CC=$CC
8788ac_ext=c
8789ac_cpp='$CPP $CPPFLAGS'
8790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795# Source file extension for C test sources.
8796ac_ext=c
8797
8798# Object file extension for compiled C test sources.
8799objext=o
8800objext=$objext
8801
8802# Code to be used in simple compile tests
8803lt_simple_compile_test_code="int some_variable = 0;"
8804
8805# Code to be used in simple link tests
8806lt_simple_link_test_code='int main(){return(0);}'
8807
8808
8809
8810
8811
8812
8813
8814# If no C compiler was specified, use CC.
8815LTCC=${LTCC-"$CC"}
8816
8817# If no C compiler flags were specified, use CFLAGS.
8818LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8819
8820# Allow CC to be a program name with arguments.
8821compiler=$CC
8822
8823# Save the default compiler, since it gets overwritten when the other
8824# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8825compiler_DEFAULT=$CC
8826
8827# save warnings/boilerplate of simple test code
8828ac_outfile=conftest.$ac_objext
8829echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8830eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8831_lt_compiler_boilerplate=`cat conftest.err`
8832$RM conftest*
8833
8834ac_outfile=conftest.$ac_objext
8835echo "$lt_simple_link_test_code" >conftest.$ac_ext
8836eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837_lt_linker_boilerplate=`cat conftest.err`
8838$RM -r conftest*
8839
8840
8841## CAVEAT EMPTOR:
8842## There is no encapsulation within the following macros, do not change
8843## the running order or otherwise move them around unless you know exactly
8844## what you are doing...
8845if test -n "$compiler"; then
8846
8847lt_prog_compiler_no_builtin_flag=
8848
8849if test yes = "$GCC"; then
8850  case $cc_basename in
8851  nvcc*)
8852    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8853  *)
8854    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8855  esac
8856
8857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8858printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8859if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8860then :
8861  printf %s "(cached) " >&6
8862else $as_nop
8863  lt_cv_prog_compiler_rtti_exceptions=no
8864   ac_outfile=conftest.$ac_objext
8865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8866   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8867   # Insert the option either (1) after the last *FLAGS variable, or
8868   # (2) before a word containing "conftest.", or (3) at the end.
8869   # Note that $ac_compile itself does not contain backslashes and begins
8870   # with a dollar sign (not a hyphen), so the echo should work correctly.
8871   # The option is referenced via a variable to avoid confusing sed.
8872   lt_compile=`echo "$ac_compile" | $SED \
8873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875   -e 's:$: $lt_compiler_flag:'`
8876   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877   (eval "$lt_compile" 2>conftest.err)
8878   ac_status=$?
8879   cat conftest.err >&5
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   if (exit $ac_status) && test -s "$ac_outfile"; then
8882     # The compiler can only warn and ignore the option if not recognized
8883     # So say no if there are warnings other than the usual output.
8884     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8885     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8887       lt_cv_prog_compiler_rtti_exceptions=yes
8888     fi
8889   fi
8890   $RM conftest*
8891
8892fi
8893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8894printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8895
8896if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8897    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8898else
8899    :
8900fi
8901
8902fi
8903
8904
8905
8906
8907
8908
8909  lt_prog_compiler_wl=
8910lt_prog_compiler_pic=
8911lt_prog_compiler_static=
8912
8913
8914  if test yes = "$GCC"; then
8915    lt_prog_compiler_wl='-Wl,'
8916    lt_prog_compiler_static='-static'
8917
8918    case $host_os in
8919      aix*)
8920      # All AIX code is PIC.
8921      if test ia64 = "$host_cpu"; then
8922	# AIX 5 now supports IA64 processor
8923	lt_prog_compiler_static='-Bstatic'
8924      fi
8925      lt_prog_compiler_pic='-fPIC'
8926      ;;
8927
8928    amigaos*)
8929      case $host_cpu in
8930      powerpc)
8931            # see comment about AmigaOS4 .so support
8932            lt_prog_compiler_pic='-fPIC'
8933        ;;
8934      m68k)
8935            # FIXME: we need at least 68020 code to build shared libraries, but
8936            # adding the '-m68020' flag to GCC prevents building anything better,
8937            # like '-m68040'.
8938            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8939        ;;
8940      esac
8941      ;;
8942
8943    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8944      # PIC is the default for these OSes.
8945      ;;
8946
8947    mingw* | cygwin* | pw32* | os2* | cegcc*)
8948      # This hack is so that the source file can tell whether it is being
8949      # built for inclusion in a dll (and should export symbols for example).
8950      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8951      # (--disable-auto-import) libraries
8952      lt_prog_compiler_pic='-DDLL_EXPORT'
8953      case $host_os in
8954      os2*)
8955	lt_prog_compiler_static='$wl-static'
8956	;;
8957      esac
8958      ;;
8959
8960    darwin* | rhapsody*)
8961      # PIC is the default on this platform
8962      # Common symbols not allowed in MH_DYLIB files
8963      lt_prog_compiler_pic='-fno-common'
8964      ;;
8965
8966    haiku*)
8967      # PIC is the default for Haiku.
8968      # The "-static" flag exists, but is broken.
8969      lt_prog_compiler_static=
8970      ;;
8971
8972    hpux*)
8973      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8974      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8975      # sets the default TLS model and affects inlining.
8976      case $host_cpu in
8977      hppa*64*)
8978	# +Z the default
8979	;;
8980      *)
8981	lt_prog_compiler_pic='-fPIC'
8982	;;
8983      esac
8984      ;;
8985
8986    interix[3-9]*)
8987      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8988      # Instead, we relocate shared libraries at runtime.
8989      ;;
8990
8991    msdosdjgpp*)
8992      # Just because we use GCC doesn't mean we suddenly get shared libraries
8993      # on systems that don't support them.
8994      lt_prog_compiler_can_build_shared=no
8995      enable_shared=no
8996      ;;
8997
8998    *nto* | *qnx*)
8999      # QNX uses GNU C++, but need to define -shared option too, otherwise
9000      # it will coredump.
9001      lt_prog_compiler_pic='-fPIC -shared'
9002      ;;
9003
9004    sysv4*MP*)
9005      if test -d /usr/nec; then
9006	lt_prog_compiler_pic=-Kconform_pic
9007      fi
9008      ;;
9009
9010    *)
9011      lt_prog_compiler_pic='-fPIC'
9012      ;;
9013    esac
9014
9015    case $cc_basename in
9016    nvcc*) # Cuda Compiler Driver 2.2
9017      lt_prog_compiler_wl='-Xlinker '
9018      if test -n "$lt_prog_compiler_pic"; then
9019        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9020      fi
9021      ;;
9022    esac
9023  else
9024    # PORTME Check for flag to pass linker flags through the system compiler.
9025    case $host_os in
9026    aix*)
9027      lt_prog_compiler_wl='-Wl,'
9028      if test ia64 = "$host_cpu"; then
9029	# AIX 5 now supports IA64 processor
9030	lt_prog_compiler_static='-Bstatic'
9031      else
9032	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9033      fi
9034      ;;
9035
9036    darwin* | rhapsody*)
9037      # PIC is the default on this platform
9038      # Common symbols not allowed in MH_DYLIB files
9039      lt_prog_compiler_pic='-fno-common'
9040      case $cc_basename in
9041      nagfor*)
9042        # NAG Fortran compiler
9043        lt_prog_compiler_wl='-Wl,-Wl,,'
9044        lt_prog_compiler_pic='-PIC'
9045        lt_prog_compiler_static='-Bstatic'
9046        ;;
9047      esac
9048      ;;
9049
9050    mingw* | cygwin* | pw32* | os2* | cegcc*)
9051      # This hack is so that the source file can tell whether it is being
9052      # built for inclusion in a dll (and should export symbols for example).
9053      lt_prog_compiler_pic='-DDLL_EXPORT'
9054      case $host_os in
9055      os2*)
9056	lt_prog_compiler_static='$wl-static'
9057	;;
9058      esac
9059      ;;
9060
9061    hpux9* | hpux10* | hpux11*)
9062      lt_prog_compiler_wl='-Wl,'
9063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9064      # not for PA HP-UX.
9065      case $host_cpu in
9066      hppa*64*|ia64*)
9067	# +Z the default
9068	;;
9069      *)
9070	lt_prog_compiler_pic='+Z'
9071	;;
9072      esac
9073      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9074      lt_prog_compiler_static='$wl-a ${wl}archive'
9075      ;;
9076
9077    irix5* | irix6* | nonstopux*)
9078      lt_prog_compiler_wl='-Wl,'
9079      # PIC (with -KPIC) is the default.
9080      lt_prog_compiler_static='-non_shared'
9081      ;;
9082
9083    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9084      case $cc_basename in
9085      # old Intel for x86_64, which still supported -KPIC.
9086      ecc*)
9087	lt_prog_compiler_wl='-Wl,'
9088	lt_prog_compiler_pic='-KPIC'
9089	lt_prog_compiler_static='-static'
9090        ;;
9091      # icc used to be incompatible with GCC.
9092      # ICC 10 doesn't accept -KPIC any more.
9093      icc* | ifort*)
9094	lt_prog_compiler_wl='-Wl,'
9095	lt_prog_compiler_pic='-fPIC'
9096	lt_prog_compiler_static='-static'
9097        ;;
9098      # Lahey Fortran 8.1.
9099      lf95*)
9100	lt_prog_compiler_wl='-Wl,'
9101	lt_prog_compiler_pic='--shared'
9102	lt_prog_compiler_static='--static'
9103	;;
9104      nagfor*)
9105	# NAG Fortran compiler
9106	lt_prog_compiler_wl='-Wl,-Wl,,'
9107	lt_prog_compiler_pic='-PIC'
9108	lt_prog_compiler_static='-Bstatic'
9109	;;
9110      tcc*)
9111	# Fabrice Bellard et al's Tiny C Compiler
9112	lt_prog_compiler_wl='-Wl,'
9113	lt_prog_compiler_pic='-fPIC'
9114	lt_prog_compiler_static='-static'
9115	;;
9116      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9117        # Portland Group compilers (*not* the Pentium gcc compiler,
9118	# which looks to be a dead project)
9119	lt_prog_compiler_wl='-Wl,'
9120	lt_prog_compiler_pic='-fpic'
9121	lt_prog_compiler_static='-Bstatic'
9122        ;;
9123      ccc*)
9124        lt_prog_compiler_wl='-Wl,'
9125        # All Alpha code is PIC.
9126        lt_prog_compiler_static='-non_shared'
9127        ;;
9128      xl* | bgxl* | bgf* | mpixl*)
9129	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9130	lt_prog_compiler_wl='-Wl,'
9131	lt_prog_compiler_pic='-qpic'
9132	lt_prog_compiler_static='-qstaticlink'
9133	;;
9134      *)
9135	case `$CC -V 2>&1 | $SED 5q` in
9136	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9137	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9138	  lt_prog_compiler_pic='-KPIC'
9139	  lt_prog_compiler_static='-Bstatic'
9140	  lt_prog_compiler_wl=''
9141	  ;;
9142	*Sun\ F* | *Sun*Fortran*)
9143	  lt_prog_compiler_pic='-KPIC'
9144	  lt_prog_compiler_static='-Bstatic'
9145	  lt_prog_compiler_wl='-Qoption ld '
9146	  ;;
9147	*Sun\ C*)
9148	  # Sun C 5.9
9149	  lt_prog_compiler_pic='-KPIC'
9150	  lt_prog_compiler_static='-Bstatic'
9151	  lt_prog_compiler_wl='-Wl,'
9152	  ;;
9153        *Intel*\ [CF]*Compiler*)
9154	  lt_prog_compiler_wl='-Wl,'
9155	  lt_prog_compiler_pic='-fPIC'
9156	  lt_prog_compiler_static='-static'
9157	  ;;
9158	*Portland\ Group*)
9159	  lt_prog_compiler_wl='-Wl,'
9160	  lt_prog_compiler_pic='-fpic'
9161	  lt_prog_compiler_static='-Bstatic'
9162	  ;;
9163	esac
9164	;;
9165      esac
9166      ;;
9167
9168    newsos6)
9169      lt_prog_compiler_pic='-KPIC'
9170      lt_prog_compiler_static='-Bstatic'
9171      ;;
9172
9173    *nto* | *qnx*)
9174      # QNX uses GNU C++, but need to define -shared option too, otherwise
9175      # it will coredump.
9176      lt_prog_compiler_pic='-fPIC -shared'
9177      ;;
9178
9179    osf3* | osf4* | osf5*)
9180      lt_prog_compiler_wl='-Wl,'
9181      # All OSF/1 code is PIC.
9182      lt_prog_compiler_static='-non_shared'
9183      ;;
9184
9185    rdos*)
9186      lt_prog_compiler_static='-non_shared'
9187      ;;
9188
9189    solaris*)
9190      lt_prog_compiler_pic='-KPIC'
9191      lt_prog_compiler_static='-Bstatic'
9192      case $cc_basename in
9193      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9194	lt_prog_compiler_wl='-Qoption ld ';;
9195      *)
9196	lt_prog_compiler_wl='-Wl,';;
9197      esac
9198      ;;
9199
9200    sunos4*)
9201      lt_prog_compiler_wl='-Qoption ld '
9202      lt_prog_compiler_pic='-PIC'
9203      lt_prog_compiler_static='-Bstatic'
9204      ;;
9205
9206    sysv4 | sysv4.2uw2* | sysv4.3*)
9207      lt_prog_compiler_wl='-Wl,'
9208      lt_prog_compiler_pic='-KPIC'
9209      lt_prog_compiler_static='-Bstatic'
9210      ;;
9211
9212    sysv4*MP*)
9213      if test -d /usr/nec; then
9214	lt_prog_compiler_pic='-Kconform_pic'
9215	lt_prog_compiler_static='-Bstatic'
9216      fi
9217      ;;
9218
9219    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9220      lt_prog_compiler_wl='-Wl,'
9221      lt_prog_compiler_pic='-KPIC'
9222      lt_prog_compiler_static='-Bstatic'
9223      ;;
9224
9225    unicos*)
9226      lt_prog_compiler_wl='-Wl,'
9227      lt_prog_compiler_can_build_shared=no
9228      ;;
9229
9230    uts4*)
9231      lt_prog_compiler_pic='-pic'
9232      lt_prog_compiler_static='-Bstatic'
9233      ;;
9234
9235    *)
9236      lt_prog_compiler_can_build_shared=no
9237      ;;
9238    esac
9239  fi
9240
9241case $host_os in
9242  # For platforms that do not support PIC, -DPIC is meaningless:
9243  *djgpp*)
9244    lt_prog_compiler_pic=
9245    ;;
9246  *)
9247    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9248    ;;
9249esac
9250
9251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9252printf %s "checking for $compiler option to produce PIC... " >&6; }
9253if test ${lt_cv_prog_compiler_pic+y}
9254then :
9255  printf %s "(cached) " >&6
9256else $as_nop
9257  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9258fi
9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9260printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9261lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9262
9263#
9264# Check to make sure the PIC flag actually works.
9265#
9266if test -n "$lt_prog_compiler_pic"; then
9267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9268printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9269if test ${lt_cv_prog_compiler_pic_works+y}
9270then :
9271  printf %s "(cached) " >&6
9272else $as_nop
9273  lt_cv_prog_compiler_pic_works=no
9274   ac_outfile=conftest.$ac_objext
9275   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9276   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9277   # Insert the option either (1) after the last *FLAGS variable, or
9278   # (2) before a word containing "conftest.", or (3) at the end.
9279   # Note that $ac_compile itself does not contain backslashes and begins
9280   # with a dollar sign (not a hyphen), so the echo should work correctly.
9281   # The option is referenced via a variable to avoid confusing sed.
9282   lt_compile=`echo "$ac_compile" | $SED \
9283   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9284   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9285   -e 's:$: $lt_compiler_flag:'`
9286   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9287   (eval "$lt_compile" 2>conftest.err)
9288   ac_status=$?
9289   cat conftest.err >&5
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   if (exit $ac_status) && test -s "$ac_outfile"; then
9292     # The compiler can only warn and ignore the option if not recognized
9293     # So say no if there are warnings other than the usual output.
9294     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9295     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9296     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9297       lt_cv_prog_compiler_pic_works=yes
9298     fi
9299   fi
9300   $RM conftest*
9301
9302fi
9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9304printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9305
9306if test yes = "$lt_cv_prog_compiler_pic_works"; then
9307    case $lt_prog_compiler_pic in
9308     "" | " "*) ;;
9309     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9310     esac
9311else
9312    lt_prog_compiler_pic=
9313     lt_prog_compiler_can_build_shared=no
9314fi
9315
9316fi
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328#
9329# Check to make sure the static flag actually works.
9330#
9331wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9333printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9334if test ${lt_cv_prog_compiler_static_works+y}
9335then :
9336  printf %s "(cached) " >&6
9337else $as_nop
9338  lt_cv_prog_compiler_static_works=no
9339   save_LDFLAGS=$LDFLAGS
9340   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9341   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9342   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9343     # The linker can only warn and ignore the option if not recognized
9344     # So say no if there are warnings
9345     if test -s conftest.err; then
9346       # Append any errors to the config.log.
9347       cat conftest.err 1>&5
9348       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9349       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9350       if diff conftest.exp conftest.er2 >/dev/null; then
9351         lt_cv_prog_compiler_static_works=yes
9352       fi
9353     else
9354       lt_cv_prog_compiler_static_works=yes
9355     fi
9356   fi
9357   $RM -r conftest*
9358   LDFLAGS=$save_LDFLAGS
9359
9360fi
9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9362printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9363
9364if test yes = "$lt_cv_prog_compiler_static_works"; then
9365    :
9366else
9367    lt_prog_compiler_static=
9368fi
9369
9370
9371
9372
9373
9374
9375
9376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378if test ${lt_cv_prog_compiler_c_o+y}
9379then :
9380  printf %s "(cached) " >&6
9381else $as_nop
9382  lt_cv_prog_compiler_c_o=no
9383   $RM -r conftest 2>/dev/null
9384   mkdir conftest
9385   cd conftest
9386   mkdir out
9387   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388
9389   lt_compiler_flag="-o out/conftest2.$ac_objext"
9390   # Insert the option either (1) after the last *FLAGS variable, or
9391   # (2) before a word containing "conftest.", or (3) at the end.
9392   # Note that $ac_compile itself does not contain backslashes and begins
9393   # with a dollar sign (not a hyphen), so the echo should work correctly.
9394   lt_compile=`echo "$ac_compile" | $SED \
9395   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9396   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9397   -e 's:$: $lt_compiler_flag:'`
9398   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9399   (eval "$lt_compile" 2>out/conftest.err)
9400   ac_status=$?
9401   cat out/conftest.err >&5
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9404   then
9405     # The compiler can only warn and ignore the option if not recognized
9406     # So say no if there are warnings
9407     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9408     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9409     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9410       lt_cv_prog_compiler_c_o=yes
9411     fi
9412   fi
9413   chmod u+w . 2>&5
9414   $RM conftest*
9415   # SGI C++ compiler will create directory out/ii_files/ for
9416   # template instantiation
9417   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9418   $RM out/* && rmdir out
9419   cd ..
9420   $RM -r conftest
9421   $RM conftest*
9422
9423fi
9424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9425printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9426
9427
9428
9429
9430
9431
9432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9433printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9434if test ${lt_cv_prog_compiler_c_o+y}
9435then :
9436  printf %s "(cached) " >&6
9437else $as_nop
9438  lt_cv_prog_compiler_c_o=no
9439   $RM -r conftest 2>/dev/null
9440   mkdir conftest
9441   cd conftest
9442   mkdir out
9443   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444
9445   lt_compiler_flag="-o out/conftest2.$ac_objext"
9446   # Insert the option either (1) after the last *FLAGS variable, or
9447   # (2) before a word containing "conftest.", or (3) at the end.
9448   # Note that $ac_compile itself does not contain backslashes and begins
9449   # with a dollar sign (not a hyphen), so the echo should work correctly.
9450   lt_compile=`echo "$ac_compile" | $SED \
9451   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453   -e 's:$: $lt_compiler_flag:'`
9454   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455   (eval "$lt_compile" 2>out/conftest.err)
9456   ac_status=$?
9457   cat out/conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9460   then
9461     # The compiler can only warn and ignore the option if not recognized
9462     # So say no if there are warnings
9463     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9464     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9465     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9466       lt_cv_prog_compiler_c_o=yes
9467     fi
9468   fi
9469   chmod u+w . 2>&5
9470   $RM conftest*
9471   # SGI C++ compiler will create directory out/ii_files/ for
9472   # template instantiation
9473   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9474   $RM out/* && rmdir out
9475   cd ..
9476   $RM -r conftest
9477   $RM conftest*
9478
9479fi
9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9481printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9482
9483
9484
9485
9486hard_links=nottested
9487if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9488  # do not overwrite the value of need_locks provided by the user
9489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9490printf %s "checking if we can lock with hard links... " >&6; }
9491  hard_links=yes
9492  $RM conftest*
9493  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9494  touch conftest.a
9495  ln conftest.a conftest.b 2>&5 || hard_links=no
9496  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9498printf "%s\n" "$hard_links" >&6; }
9499  if test no = "$hard_links"; then
9500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9501printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9502    need_locks=warn
9503  fi
9504else
9505  need_locks=no
9506fi
9507
9508
9509
9510
9511
9512
9513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9514printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9515
9516  runpath_var=
9517  allow_undefined_flag=
9518  always_export_symbols=no
9519  archive_cmds=
9520  archive_expsym_cmds=
9521  compiler_needs_object=no
9522  enable_shared_with_static_runtimes=no
9523  export_dynamic_flag_spec=
9524  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9525  hardcode_automatic=no
9526  hardcode_direct=no
9527  hardcode_direct_absolute=no
9528  hardcode_libdir_flag_spec=
9529  hardcode_libdir_separator=
9530  hardcode_minus_L=no
9531  hardcode_shlibpath_var=unsupported
9532  inherit_rpath=no
9533  link_all_deplibs=unknown
9534  module_cmds=
9535  module_expsym_cmds=
9536  old_archive_from_new_cmds=
9537  old_archive_from_expsyms_cmds=
9538  thread_safe_flag_spec=
9539  whole_archive_flag_spec=
9540  # include_expsyms should be a list of space-separated symbols to be *always*
9541  # included in the symbol list
9542  include_expsyms=
9543  # exclude_expsyms can be an extended regexp of symbols to exclude
9544  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9545  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9546  # as well as any symbol that contains 'd'.
9547  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9548  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9549  # platforms (ab)use it in PIC code, but their linkers get confused if
9550  # the symbol is explicitly referenced.  Since portable code cannot
9551  # rely on this symbol name, it's probably fine to never include it in
9552  # preloaded symbol tables.
9553  # Exclude shared library initialization/finalization symbols.
9554  extract_expsyms_cmds=
9555
9556  case $host_os in
9557  cygwin* | mingw* | pw32* | cegcc*)
9558    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9559    # When not using gcc, we currently assume that we are using
9560    # Microsoft Visual C++ or Intel C++ Compiler.
9561    if test yes != "$GCC"; then
9562      with_gnu_ld=no
9563    fi
9564    ;;
9565  interix*)
9566    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9567    with_gnu_ld=yes
9568    ;;
9569  openbsd* | bitrig*)
9570    with_gnu_ld=no
9571    ;;
9572  esac
9573
9574  ld_shlibs=yes
9575
9576  # On some targets, GNU ld is compatible enough with the native linker
9577  # that we're better off using the native interface for both.
9578  lt_use_gnu_ld_interface=no
9579  if test yes = "$with_gnu_ld"; then
9580    case $host_os in
9581      aix*)
9582	# The AIX port of GNU ld has always aspired to compatibility
9583	# with the native linker.  However, as the warning in the GNU ld
9584	# block says, versions before 2.19.5* couldn't really create working
9585	# shared libraries, regardless of the interface used.
9586	case `$LD -v 2>&1` in
9587	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9588	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9589	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9590	  *)
9591	    lt_use_gnu_ld_interface=yes
9592	    ;;
9593	esac
9594	;;
9595      *)
9596	lt_use_gnu_ld_interface=yes
9597	;;
9598    esac
9599  fi
9600
9601  if test yes = "$lt_use_gnu_ld_interface"; then
9602    # If archive_cmds runs LD, not CC, wlarc should be empty
9603    wlarc='$wl'
9604
9605    # Set some defaults for GNU ld with shared library support. These
9606    # are reset later if shared libraries are not supported. Putting them
9607    # here allows them to be overridden if necessary.
9608    runpath_var=LD_RUN_PATH
9609    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9610    export_dynamic_flag_spec='$wl--export-dynamic'
9611    # ancient GNU ld didn't support --whole-archive et. al.
9612    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9613      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9614    else
9615      whole_archive_flag_spec=
9616    fi
9617    supports_anon_versioning=no
9618    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9619      *GNU\ gold*) supports_anon_versioning=yes ;;
9620      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9621      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9622      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9623      *\ 2.11.*) ;; # other 2.11 versions
9624      *) supports_anon_versioning=yes ;;
9625    esac
9626
9627    # See if GNU ld supports shared libraries.
9628    case $host_os in
9629    aix[3-9]*)
9630      # On AIX/PPC, the GNU linker is very broken
9631      if test ia64 != "$host_cpu"; then
9632	ld_shlibs=no
9633	cat <<_LT_EOF 1>&2
9634
9635*** Warning: the GNU linker, at least up to release 2.19, is reported
9636*** to be unable to reliably create shared libraries on AIX.
9637*** Therefore, libtool is disabling shared libraries support.  If you
9638*** really care for shared libraries, you may want to install binutils
9639*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9640*** You will then need to restart the configuration process.
9641
9642_LT_EOF
9643      fi
9644      ;;
9645
9646    amigaos*)
9647      case $host_cpu in
9648      powerpc)
9649            # see comment about AmigaOS4 .so support
9650            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9651            archive_expsym_cmds=''
9652        ;;
9653      m68k)
9654            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)'
9655            hardcode_libdir_flag_spec='-L$libdir'
9656            hardcode_minus_L=yes
9657        ;;
9658      esac
9659      ;;
9660
9661    beos*)
9662      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9663	allow_undefined_flag=unsupported
9664	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9665	# support --undefined.  This deserves some investigation.  FIXME
9666	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667      else
9668	ld_shlibs=no
9669      fi
9670      ;;
9671
9672    cygwin* | mingw* | pw32* | cegcc*)
9673      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9674      # as there is no search path for DLLs.
9675      hardcode_libdir_flag_spec='-L$libdir'
9676      export_dynamic_flag_spec='$wl--export-all-symbols'
9677      allow_undefined_flag=unsupported
9678      always_export_symbols=no
9679      enable_shared_with_static_runtimes=yes
9680      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'
9681      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9682
9683      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9684        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9685	# If the export-symbols file already is a .def file, use it as
9686	# is; otherwise, prepend EXPORTS...
9687	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9688          cp $export_symbols $output_objdir/$soname.def;
9689        else
9690          echo EXPORTS > $output_objdir/$soname.def;
9691          cat $export_symbols >> $output_objdir/$soname.def;
9692        fi~
9693        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9694      else
9695	ld_shlibs=no
9696      fi
9697      ;;
9698
9699    haiku*)
9700      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701      link_all_deplibs=yes
9702      ;;
9703
9704    os2*)
9705      hardcode_libdir_flag_spec='-L$libdir'
9706      hardcode_minus_L=yes
9707      allow_undefined_flag=unsupported
9708      shrext_cmds=.dll
9709      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9710	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9711	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9712	$ECHO EXPORTS >> $output_objdir/$libname.def~
9713	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9714	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9715	emximp -o $lib $output_objdir/$libname.def'
9716      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9717	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9718	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9719	$ECHO EXPORTS >> $output_objdir/$libname.def~
9720	prefix_cmds="$SED"~
9721	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9722	  prefix_cmds="$prefix_cmds -e 1d";
9723	fi~
9724	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9725	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9726	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9727	emximp -o $lib $output_objdir/$libname.def'
9728      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9729      enable_shared_with_static_runtimes=yes
9730      file_list_spec='@'
9731      ;;
9732
9733    interix[3-9]*)
9734      hardcode_direct=no
9735      hardcode_shlibpath_var=no
9736      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9737      export_dynamic_flag_spec='$wl-E'
9738      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9739      # Instead, shared libraries are loaded at an image base (0x10000000 by
9740      # default) and relocated if they conflict, which is a slow very memory
9741      # consuming and fragmenting process.  To avoid this, we pick a random,
9742      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9743      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9744      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9745      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'
9746      ;;
9747
9748    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9749      tmp_diet=no
9750      if test linux-dietlibc = "$host_os"; then
9751	case $cc_basename in
9752	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9753	esac
9754      fi
9755      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9756	 && test no = "$tmp_diet"
9757      then
9758	tmp_addflag=' $pic_flag'
9759	tmp_sharedflag='-shared'
9760	case $cc_basename,$host_cpu in
9761        pgcc*)				# Portland Group C compiler
9762	  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'
9763	  tmp_addflag=' $pic_flag'
9764	  ;;
9765	pgf77* | pgf90* | pgf95* | pgfortran*)
9766					# Portland Group f77 and f90 compilers
9767	  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'
9768	  tmp_addflag=' $pic_flag -Mnomain' ;;
9769	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9770	  tmp_addflag=' -i_dynamic' ;;
9771	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9772	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9773	ifc* | ifort*)			# Intel Fortran compiler
9774	  tmp_addflag=' -nofor_main' ;;
9775	lf95*)				# Lahey Fortran 8.1
9776	  whole_archive_flag_spec=
9777	  tmp_sharedflag='--shared' ;;
9778        nagfor*)                        # NAGFOR 5.3
9779          tmp_sharedflag='-Wl,-shared' ;;
9780	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9781	  tmp_sharedflag='-qmkshrobj'
9782	  tmp_addflag= ;;
9783	nvcc*)	# Cuda Compiler Driver 2.2
9784	  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'
9785	  compiler_needs_object=yes
9786	  ;;
9787	esac
9788	case `$CC -V 2>&1 | $SED 5q` in
9789	*Sun\ C*)			# Sun C 5.9
9790	  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'
9791	  compiler_needs_object=yes
9792	  tmp_sharedflag='-G' ;;
9793	*Sun\ F*)			# Sun Fortran 8.3
9794	  tmp_sharedflag='-G' ;;
9795	esac
9796	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9797
9798        if test yes = "$supports_anon_versioning"; then
9799          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9800            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9801            echo "local: *; };" >> $output_objdir/$libname.ver~
9802            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9803        fi
9804
9805	case $cc_basename in
9806	tcc*)
9807	  export_dynamic_flag_spec='-rdynamic'
9808	  ;;
9809	xlf* | bgf* | bgxlf* | mpixlf*)
9810	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9811	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9812	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9813	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9814	  if test yes = "$supports_anon_versioning"; then
9815	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9816              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9817              echo "local: *; };" >> $output_objdir/$libname.ver~
9818              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9819	  fi
9820	  ;;
9821	esac
9822      else
9823        ld_shlibs=no
9824      fi
9825      ;;
9826
9827    netbsd*)
9828      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9829	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9830	wlarc=
9831      else
9832	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9834      fi
9835      ;;
9836
9837    solaris*)
9838      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9839	ld_shlibs=no
9840	cat <<_LT_EOF 1>&2
9841
9842*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9843*** create shared libraries on Solaris systems.  Therefore, libtool
9844*** is disabling shared libraries support.  We urge you to upgrade GNU
9845*** binutils to release 2.9.1 or newer.  Another option is to modify
9846*** your PATH or compiler configuration so that the native linker is
9847*** used, and then restart.
9848
9849_LT_EOF
9850      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9852	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9853      else
9854	ld_shlibs=no
9855      fi
9856      ;;
9857
9858    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9859      case `$LD -v 2>&1` in
9860        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9861	ld_shlibs=no
9862	cat <<_LT_EOF 1>&2
9863
9864*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9865*** reliably create shared libraries on SCO systems.  Therefore, libtool
9866*** is disabling shared libraries support.  We urge you to upgrade GNU
9867*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9868*** your PATH or compiler configuration so that the native linker is
9869*** used, and then restart.
9870
9871_LT_EOF
9872	;;
9873	*)
9874	  # For security reasons, it is highly recommended that you always
9875	  # use absolute paths for naming shared libraries, and exclude the
9876	  # DT_RUNPATH tag from executables and libraries.  But doing so
9877	  # requires that you compile everything twice, which is a pain.
9878	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9879	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9881	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9882	  else
9883	    ld_shlibs=no
9884	  fi
9885	;;
9886      esac
9887      ;;
9888
9889    sunos4*)
9890      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9891      wlarc=
9892      hardcode_direct=yes
9893      hardcode_shlibpath_var=no
9894      ;;
9895
9896    *)
9897      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9898	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9900      else
9901	ld_shlibs=no
9902      fi
9903      ;;
9904    esac
9905
9906    if test no = "$ld_shlibs"; then
9907      runpath_var=
9908      hardcode_libdir_flag_spec=
9909      export_dynamic_flag_spec=
9910      whole_archive_flag_spec=
9911    fi
9912  else
9913    # PORTME fill in a description of your system's linker (not GNU ld)
9914    case $host_os in
9915    aix3*)
9916      allow_undefined_flag=unsupported
9917      always_export_symbols=yes
9918      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'
9919      # Note: this linker hardcodes the directories in LIBPATH if there
9920      # are no directories specified by -L.
9921      hardcode_minus_L=yes
9922      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9923	# Neither direct hardcoding nor static linking is supported with a
9924	# broken collect2.
9925	hardcode_direct=unsupported
9926      fi
9927      ;;
9928
9929    aix[4-9]*)
9930      if test ia64 = "$host_cpu"; then
9931	# On IA64, the linker does run time linking by default, so we don't
9932	# have to do anything special.
9933	aix_use_runtimelinking=no
9934	exp_sym_flag='-Bexport'
9935	no_entry_flag=
9936      else
9937	# If we're using GNU nm, then we don't want the "-C" option.
9938	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9939	# Without the "-l" option, or with the "-B" option, AIX nm treats
9940	# weak defined symbols like other global defined symbols, whereas
9941	# GNU nm marks them as "W".
9942	# While the 'weak' keyword is ignored in the Export File, we need
9943	# it in the Import File for the 'aix-soname' feature, so we have
9944	# to replace the "-B" option with "-P" for AIX nm.
9945	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9946	  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'
9947	else
9948	  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'
9949	fi
9950	aix_use_runtimelinking=no
9951
9952	# Test if we are trying to use run time linking or normal
9953	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9954	# have runtime linking enabled, and use it for executables.
9955	# For shared libraries, we enable/disable runtime linking
9956	# depending on the kind of the shared library created -
9957	# when "with_aix_soname,aix_use_runtimelinking" is:
9958	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9959	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9960	#            lib.a           static archive
9961	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9962	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9963	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9964	#            lib.a(lib.so.V) shared, rtl:no
9965	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9966	#            lib.a           static archive
9967	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9968	  for ld_flag in $LDFLAGS; do
9969	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9970	    aix_use_runtimelinking=yes
9971	    break
9972	  fi
9973	  done
9974	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9975	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9976	    # so we don't have lib.a shared libs to link our executables.
9977	    # We have to force runtime linking in this case.
9978	    aix_use_runtimelinking=yes
9979	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9980	  fi
9981	  ;;
9982	esac
9983
9984	exp_sym_flag='-bexport'
9985	no_entry_flag='-bnoentry'
9986      fi
9987
9988      # When large executables or shared objects are built, AIX ld can
9989      # have problems creating the table of contents.  If linking a library
9990      # or program results in "error TOC overflow" add -mminimal-toc to
9991      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9992      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9993
9994      archive_cmds=''
9995      hardcode_direct=yes
9996      hardcode_direct_absolute=yes
9997      hardcode_libdir_separator=':'
9998      link_all_deplibs=yes
9999      file_list_spec='$wl-f,'
10000      case $with_aix_soname,$aix_use_runtimelinking in
10001      aix,*) ;; # traditional, no import file
10002      svr4,* | *,yes) # use import file
10003	# The Import File defines what to hardcode.
10004	hardcode_direct=no
10005	hardcode_direct_absolute=no
10006	;;
10007      esac
10008
10009      if test yes = "$GCC"; then
10010	case $host_os in aix4.[012]|aix4.[012].*)
10011	# We only want to do this on AIX 4.2 and lower, the check
10012	# below for broken collect2 doesn't work under 4.3+
10013	  collect2name=`$CC -print-prog-name=collect2`
10014	  if test -f "$collect2name" &&
10015	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10016	  then
10017	  # We have reworked collect2
10018	  :
10019	  else
10020	  # We have old collect2
10021	  hardcode_direct=unsupported
10022	  # It fails to find uninstalled libraries when the uninstalled
10023	  # path is not listed in the libpath.  Setting hardcode_minus_L
10024	  # to unsupported forces relinking
10025	  hardcode_minus_L=yes
10026	  hardcode_libdir_flag_spec='-L$libdir'
10027	  hardcode_libdir_separator=
10028	  fi
10029	  ;;
10030	esac
10031	shared_flag='-shared'
10032	if test yes = "$aix_use_runtimelinking"; then
10033	  shared_flag="$shared_flag "'$wl-G'
10034	fi
10035	# Need to ensure runtime linking is disabled for the traditional
10036	# shared library, or the linker may eventually find shared libraries
10037	# /with/ Import File - we do not want to mix them.
10038	shared_flag_aix='-shared'
10039	shared_flag_svr4='-shared $wl-G'
10040      else
10041	# not using gcc
10042	if test ia64 = "$host_cpu"; then
10043	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10044	# chokes on -Wl,-G. The following line is correct:
10045	  shared_flag='-G'
10046	else
10047	  if test yes = "$aix_use_runtimelinking"; then
10048	    shared_flag='$wl-G'
10049	  else
10050	    shared_flag='$wl-bM:SRE'
10051	  fi
10052	  shared_flag_aix='$wl-bM:SRE'
10053	  shared_flag_svr4='$wl-G'
10054	fi
10055      fi
10056
10057      export_dynamic_flag_spec='$wl-bexpall'
10058      # It seems that -bexpall does not export symbols beginning with
10059      # underscore (_), so it is better to generate a list of symbols to export.
10060      always_export_symbols=yes
10061      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10062	# Warning - without using the other runtime loading flags (-brtl),
10063	# -berok will link without error, but may produce a broken library.
10064	allow_undefined_flag='-berok'
10065        # Determine the default libpath from the value encoded in an
10066        # empty executable.
10067        if test set = "${lt_cv_aix_libpath+set}"; then
10068  aix_libpath=$lt_cv_aix_libpath
10069else
10070  if test ${lt_cv_aix_libpath_+y}
10071then :
10072  printf %s "(cached) " >&6
10073else $as_nop
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076
10077int
10078main (void)
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"
10086then :
10087
10088  lt_aix_libpath_sed='
10089      /Import File Strings/,/^$/ {
10090	  /^0/ {
10091	      s/^0  *\([^ ]*\) *$/\1/
10092	      p
10093	  }
10094      }'
10095  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096  # Check for a 64-bit object if we didn't find anything.
10097  if test -z "$lt_cv_aix_libpath_"; then
10098    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099  fi
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.beam \
10102    conftest$ac_exeext conftest.$ac_ext
10103  if test -z "$lt_cv_aix_libpath_"; then
10104    lt_cv_aix_libpath_=/usr/lib:/lib
10105  fi
10106
10107fi
10108
10109  aix_libpath=$lt_cv_aix_libpath_
10110fi
10111
10112        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10113        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
10114      else
10115	if test ia64 = "$host_cpu"; then
10116	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10117	  allow_undefined_flag="-z nodefs"
10118	  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"
10119	else
10120	 # Determine the default libpath from the value encoded in an
10121	 # empty executable.
10122	 if test set = "${lt_cv_aix_libpath+set}"; then
10123  aix_libpath=$lt_cv_aix_libpath
10124else
10125  if test ${lt_cv_aix_libpath_+y}
10126then :
10127  printf %s "(cached) " >&6
10128else $as_nop
10129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130/* end confdefs.h.  */
10131
10132int
10133main (void)
10134{
10135
10136  ;
10137  return 0;
10138}
10139_ACEOF
10140if ac_fn_c_try_link "$LINENO"
10141then :
10142
10143  lt_aix_libpath_sed='
10144      /Import File Strings/,/^$/ {
10145	  /^0/ {
10146	      s/^0  *\([^ ]*\) *$/\1/
10147	      p
10148	  }
10149      }'
10150  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151  # Check for a 64-bit object if we didn't find anything.
10152  if test -z "$lt_cv_aix_libpath_"; then
10153    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154  fi
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.beam \
10157    conftest$ac_exeext conftest.$ac_ext
10158  if test -z "$lt_cv_aix_libpath_"; then
10159    lt_cv_aix_libpath_=/usr/lib:/lib
10160  fi
10161
10162fi
10163
10164  aix_libpath=$lt_cv_aix_libpath_
10165fi
10166
10167	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10168	  # Warning - without using the other run time loading flags,
10169	  # -berok will link without error, but may produce a broken library.
10170	  no_undefined_flag=' $wl-bernotok'
10171	  allow_undefined_flag=' $wl-berok'
10172	  if test yes = "$with_gnu_ld"; then
10173	    # We only use this code for GNU lds that support --whole-archive.
10174	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10175	  else
10176	    # Exported symbols can be pulled into shared objects from archives
10177	    whole_archive_flag_spec='$convenience'
10178	  fi
10179	  archive_cmds_need_lc=yes
10180	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10181	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10182	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10183	  if test svr4 != "$with_aix_soname"; then
10184	    # This is similar to how AIX traditionally builds its shared libraries.
10185	    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'
10186	  fi
10187	  if test aix != "$with_aix_soname"; then
10188	    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'
10189	  else
10190	    # used by -dlpreopen to get the symbols
10191	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10192	  fi
10193	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10194	fi
10195      fi
10196      ;;
10197
10198    amigaos*)
10199      case $host_cpu in
10200      powerpc)
10201            # see comment about AmigaOS4 .so support
10202            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10203            archive_expsym_cmds=''
10204        ;;
10205      m68k)
10206            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)'
10207            hardcode_libdir_flag_spec='-L$libdir'
10208            hardcode_minus_L=yes
10209        ;;
10210      esac
10211      ;;
10212
10213    bsdi[45]*)
10214      export_dynamic_flag_spec=-rdynamic
10215      ;;
10216
10217    cygwin* | mingw* | pw32* | cegcc*)
10218      # When not using gcc, we currently assume that we are using
10219      # Microsoft Visual C++ or Intel C++ Compiler.
10220      # hardcode_libdir_flag_spec is actually meaningless, as there is
10221      # no search path for DLLs.
10222      case $cc_basename in
10223      cl* | icl*)
10224	# Native MSVC or ICC
10225	hardcode_libdir_flag_spec=' '
10226	allow_undefined_flag=unsupported
10227	always_export_symbols=yes
10228	file_list_spec='@'
10229	# Tell ltmain to make .lib files, not .a files.
10230	libext=lib
10231	# Tell ltmain to make .dll files, not .so files.
10232	shrext_cmds=.dll
10233	# FIXME: Setting linknames here is a bad hack.
10234	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10235	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10236            cp "$export_symbols" "$output_objdir/$soname.def";
10237            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10238          else
10239            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10240          fi~
10241          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10242          linknames='
10243	# The linker will not automatically build a static lib if we build a DLL.
10244	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10245	enable_shared_with_static_runtimes=yes
10246	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10247	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10248	# Don't use ranlib
10249	old_postinstall_cmds='chmod 644 $oldlib'
10250	postlink_cmds='lt_outputfile="@OUTPUT@"~
10251          lt_tool_outputfile="@TOOL_OUTPUT@"~
10252          case $lt_outputfile in
10253            *.exe|*.EXE) ;;
10254            *)
10255              lt_outputfile=$lt_outputfile.exe
10256              lt_tool_outputfile=$lt_tool_outputfile.exe
10257              ;;
10258          esac~
10259          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10260            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10261            $RM "$lt_outputfile.manifest";
10262          fi'
10263	;;
10264      *)
10265	# Assume MSVC and ICC wrapper
10266	hardcode_libdir_flag_spec=' '
10267	allow_undefined_flag=unsupported
10268	# Tell ltmain to make .lib files, not .a files.
10269	libext=lib
10270	# Tell ltmain to make .dll files, not .so files.
10271	shrext_cmds=.dll
10272	# FIXME: Setting linknames here is a bad hack.
10273	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10274	# The linker will automatically build a .lib file if we build a DLL.
10275	old_archive_from_new_cmds='true'
10276	# FIXME: Should let the user specify the lib program.
10277	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10278	enable_shared_with_static_runtimes=yes
10279	;;
10280      esac
10281      ;;
10282
10283    darwin* | rhapsody*)
10284
10285
10286  archive_cmds_need_lc=no
10287  hardcode_direct=no
10288  hardcode_automatic=yes
10289  hardcode_shlibpath_var=unsupported
10290  if test yes = "$lt_cv_ld_force_load"; then
10291    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\"`'
10292
10293  else
10294    whole_archive_flag_spec=''
10295  fi
10296  link_all_deplibs=yes
10297  allow_undefined_flag=$_lt_dar_allow_undefined
10298  case $cc_basename in
10299     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10300     *) _lt_dar_can_shared=$GCC ;;
10301  esac
10302  if test yes = "$_lt_dar_can_shared"; then
10303    output_verbose_link_cmd=func_echo_all
10304    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10305    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10306    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"
10307    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"
10308
10309  else
10310  ld_shlibs=no
10311  fi
10312
10313      ;;
10314
10315    dgux*)
10316      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10317      hardcode_libdir_flag_spec='-L$libdir'
10318      hardcode_shlibpath_var=no
10319      ;;
10320
10321    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10322    # support.  Future versions do this automatically, but an explicit c++rt0.o
10323    # does not break anything, and helps significantly (at the cost of a little
10324    # extra space).
10325    freebsd2.2*)
10326      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10327      hardcode_libdir_flag_spec='-R$libdir'
10328      hardcode_direct=yes
10329      hardcode_shlibpath_var=no
10330      ;;
10331
10332    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10333    freebsd2.*)
10334      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10335      hardcode_direct=yes
10336      hardcode_minus_L=yes
10337      hardcode_shlibpath_var=no
10338      ;;
10339
10340    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10341    freebsd* | dragonfly* | midnightbsd*)
10342      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10343      hardcode_libdir_flag_spec='-R$libdir'
10344      hardcode_direct=yes
10345      hardcode_shlibpath_var=no
10346      ;;
10347
10348    hpux9*)
10349      if test yes = "$GCC"; then
10350	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'
10351      else
10352	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'
10353      fi
10354      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10355      hardcode_libdir_separator=:
10356      hardcode_direct=yes
10357
10358      # hardcode_minus_L: Not really in the search PATH,
10359      # but as the default location of the library.
10360      hardcode_minus_L=yes
10361      export_dynamic_flag_spec='$wl-E'
10362      ;;
10363
10364    hpux10*)
10365      if test yes,no = "$GCC,$with_gnu_ld"; then
10366	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10367      else
10368	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10369      fi
10370      if test no = "$with_gnu_ld"; then
10371	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10372	hardcode_libdir_separator=:
10373	hardcode_direct=yes
10374	hardcode_direct_absolute=yes
10375	export_dynamic_flag_spec='$wl-E'
10376	# hardcode_minus_L: Not really in the search PATH,
10377	# but as the default location of the library.
10378	hardcode_minus_L=yes
10379      fi
10380      ;;
10381
10382    hpux11*)
10383      if test yes,no = "$GCC,$with_gnu_ld"; then
10384	case $host_cpu in
10385	hppa*64*)
10386	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387	  ;;
10388	ia64*)
10389	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390	  ;;
10391	*)
10392	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10393	  ;;
10394	esac
10395      else
10396	case $host_cpu in
10397	hppa*64*)
10398	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10399	  ;;
10400	ia64*)
10401	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10402	  ;;
10403	*)
10404
10405	  # Older versions of the 11.00 compiler do not understand -b yet
10406	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10407	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10408printf %s "checking if $CC understands -b... " >&6; }
10409if test ${lt_cv_prog_compiler__b+y}
10410then :
10411  printf %s "(cached) " >&6
10412else $as_nop
10413  lt_cv_prog_compiler__b=no
10414   save_LDFLAGS=$LDFLAGS
10415   LDFLAGS="$LDFLAGS -b"
10416   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10417   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10418     # The linker can only warn and ignore the option if not recognized
10419     # So say no if there are warnings
10420     if test -s conftest.err; then
10421       # Append any errors to the config.log.
10422       cat conftest.err 1>&5
10423       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10424       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10425       if diff conftest.exp conftest.er2 >/dev/null; then
10426         lt_cv_prog_compiler__b=yes
10427       fi
10428     else
10429       lt_cv_prog_compiler__b=yes
10430     fi
10431   fi
10432   $RM -r conftest*
10433   LDFLAGS=$save_LDFLAGS
10434
10435fi
10436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10437printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10438
10439if test yes = "$lt_cv_prog_compiler__b"; then
10440    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10441else
10442    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10443fi
10444
10445	  ;;
10446	esac
10447      fi
10448      if test no = "$with_gnu_ld"; then
10449	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10450	hardcode_libdir_separator=:
10451
10452	case $host_cpu in
10453	hppa*64*|ia64*)
10454	  hardcode_direct=no
10455	  hardcode_shlibpath_var=no
10456	  ;;
10457	*)
10458	  hardcode_direct=yes
10459	  hardcode_direct_absolute=yes
10460	  export_dynamic_flag_spec='$wl-E'
10461
10462	  # hardcode_minus_L: Not really in the search PATH,
10463	  # but as the default location of the library.
10464	  hardcode_minus_L=yes
10465	  ;;
10466	esac
10467      fi
10468      ;;
10469
10470    irix5* | irix6* | nonstopux*)
10471      if test yes = "$GCC"; then
10472	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'
10473	# Try to use the -exported_symbol ld option, if it does not
10474	# work, assume that -exports_file does not work either and
10475	# implicitly export all symbols.
10476	# This should be the same for all languages, so no per-tag cache variable.
10477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10478printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10479if test ${lt_cv_irix_exported_symbol+y}
10480then :
10481  printf %s "(cached) " >&6
10482else $as_nop
10483  save_LDFLAGS=$LDFLAGS
10484	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10485	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int foo (void) { return 0; }
10488_ACEOF
10489if ac_fn_c_try_link "$LINENO"
10490then :
10491  lt_cv_irix_exported_symbol=yes
10492else $as_nop
10493  lt_cv_irix_exported_symbol=no
10494fi
10495rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496    conftest$ac_exeext conftest.$ac_ext
10497           LDFLAGS=$save_LDFLAGS
10498fi
10499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10500printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10501	if test yes = "$lt_cv_irix_exported_symbol"; then
10502          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'
10503	fi
10504      else
10505	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'
10506	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'
10507      fi
10508      archive_cmds_need_lc='no'
10509      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10510      hardcode_libdir_separator=:
10511      inherit_rpath=yes
10512      link_all_deplibs=yes
10513      ;;
10514
10515    linux*)
10516      case $cc_basename in
10517      tcc*)
10518	# Fabrice Bellard et al's Tiny C Compiler
10519	ld_shlibs=yes
10520	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521	;;
10522      esac
10523      ;;
10524
10525    netbsd*)
10526      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10527	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10528      else
10529	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10530      fi
10531      hardcode_libdir_flag_spec='-R$libdir'
10532      hardcode_direct=yes
10533      hardcode_shlibpath_var=no
10534      ;;
10535
10536    newsos6)
10537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_direct=yes
10539      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10540      hardcode_libdir_separator=:
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    *nto* | *qnx*)
10545      ;;
10546
10547    openbsd* | bitrig*)
10548      if test -f /usr/libexec/ld.so; then
10549	hardcode_direct=yes
10550	hardcode_shlibpath_var=no
10551	hardcode_direct_absolute=yes
10552	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10553	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10554	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10555	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556	  export_dynamic_flag_spec='$wl-E'
10557	else
10558	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560	fi
10561      else
10562	ld_shlibs=no
10563      fi
10564      ;;
10565
10566    os2*)
10567      hardcode_libdir_flag_spec='-L$libdir'
10568      hardcode_minus_L=yes
10569      allow_undefined_flag=unsupported
10570      shrext_cmds=.dll
10571      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10572	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10573	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10574	$ECHO EXPORTS >> $output_objdir/$libname.def~
10575	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10576	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10577	emximp -o $lib $output_objdir/$libname.def'
10578      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10579	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10580	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10581	$ECHO EXPORTS >> $output_objdir/$libname.def~
10582	prefix_cmds="$SED"~
10583	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10584	  prefix_cmds="$prefix_cmds -e 1d";
10585	fi~
10586	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10587	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10589	emximp -o $lib $output_objdir/$libname.def'
10590      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10591      enable_shared_with_static_runtimes=yes
10592      file_list_spec='@'
10593      ;;
10594
10595    osf3*)
10596      if test yes = "$GCC"; then
10597	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10598	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'
10599      else
10600	allow_undefined_flag=' -expect_unresolved \*'
10601	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'
10602      fi
10603      archive_cmds_need_lc='no'
10604      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10605      hardcode_libdir_separator=:
10606      ;;
10607
10608    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10609      if test yes = "$GCC"; then
10610	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10611	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'
10612	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10613      else
10614	allow_undefined_flag=' -expect_unresolved \*'
10615	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'
10616	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~
10617          $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'
10618
10619	# Both c and cxx compiler support -rpath directly
10620	hardcode_libdir_flag_spec='-rpath $libdir'
10621      fi
10622      archive_cmds_need_lc='no'
10623      hardcode_libdir_separator=:
10624      ;;
10625
10626    solaris*)
10627      no_undefined_flag=' -z defs'
10628      if test yes = "$GCC"; then
10629	wlarc='$wl'
10630	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10631	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10632          $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'
10633      else
10634	case `$CC -V 2>&1` in
10635	*"Compilers 5.0"*)
10636	  wlarc=''
10637	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10639            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10640	  ;;
10641	*)
10642	  wlarc='$wl'
10643	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10644	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10645            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10646	  ;;
10647	esac
10648      fi
10649      hardcode_libdir_flag_spec='-R$libdir'
10650      hardcode_shlibpath_var=no
10651      case $host_os in
10652      solaris2.[0-5] | solaris2.[0-5].*) ;;
10653      *)
10654	# The compiler driver will combine and reorder linker options,
10655	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10656	# but is careful enough not to reorder.
10657	# Supported since Solaris 2.6 (maybe 2.5.1?)
10658	if test yes = "$GCC"; then
10659	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10660	else
10661	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10662	fi
10663	;;
10664      esac
10665      link_all_deplibs=yes
10666      ;;
10667
10668    sunos4*)
10669      if test sequent = "$host_vendor"; then
10670	# Use $CC to link under sequent, because it throws in some extra .o
10671	# files that make .init and .fini sections work.
10672	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10673      else
10674	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10675      fi
10676      hardcode_libdir_flag_spec='-L$libdir'
10677      hardcode_direct=yes
10678      hardcode_minus_L=yes
10679      hardcode_shlibpath_var=no
10680      ;;
10681
10682    sysv4)
10683      case $host_vendor in
10684	sni)
10685	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686	  hardcode_direct=yes # is this really true???
10687	;;
10688	siemens)
10689	  ## LD is ld it makes a PLAMLIB
10690	  ## CC just makes a GrossModule.
10691	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10692	  reload_cmds='$CC -r -o $output$reload_objs'
10693	  hardcode_direct=no
10694        ;;
10695	motorola)
10696	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10698	;;
10699      esac
10700      runpath_var='LD_RUN_PATH'
10701      hardcode_shlibpath_var=no
10702      ;;
10703
10704    sysv4.3*)
10705      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706      hardcode_shlibpath_var=no
10707      export_dynamic_flag_spec='-Bexport'
10708      ;;
10709
10710    sysv4*MP*)
10711      if test -d /usr/nec; then
10712	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713	hardcode_shlibpath_var=no
10714	runpath_var=LD_RUN_PATH
10715	hardcode_runpath_var=yes
10716	ld_shlibs=yes
10717      fi
10718      ;;
10719
10720    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10721      no_undefined_flag='$wl-z,text'
10722      archive_cmds_need_lc=no
10723      hardcode_shlibpath_var=no
10724      runpath_var='LD_RUN_PATH'
10725
10726      if test yes = "$GCC"; then
10727	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729      else
10730	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732      fi
10733      ;;
10734
10735    sysv5* | sco3.2v5* | sco5v6*)
10736      # Note: We CANNOT use -z defs as we might desire, because we do not
10737      # link with -lc, and that would cause any symbols used from libc to
10738      # always be unresolved, which means just about no library would
10739      # ever link correctly.  If we're not using GNU ld we use -z text
10740      # though, which does catch some bad symbols but isn't as heavy-handed
10741      # as -z defs.
10742      no_undefined_flag='$wl-z,text'
10743      allow_undefined_flag='$wl-z,nodefs'
10744      archive_cmds_need_lc=no
10745      hardcode_shlibpath_var=no
10746      hardcode_libdir_flag_spec='$wl-R,$libdir'
10747      hardcode_libdir_separator=':'
10748      link_all_deplibs=yes
10749      export_dynamic_flag_spec='$wl-Bexport'
10750      runpath_var='LD_RUN_PATH'
10751
10752      if test yes = "$GCC"; then
10753	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755      else
10756	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758      fi
10759      ;;
10760
10761    uts4*)
10762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763      hardcode_libdir_flag_spec='-L$libdir'
10764      hardcode_shlibpath_var=no
10765      ;;
10766
10767    *)
10768      ld_shlibs=no
10769      ;;
10770    esac
10771
10772    if test sni = "$host_vendor"; then
10773      case $host in
10774      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10775	export_dynamic_flag_spec='$wl-Blargedynsym'
10776	;;
10777      esac
10778    fi
10779  fi
10780
10781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10782printf "%s\n" "$ld_shlibs" >&6; }
10783test no = "$ld_shlibs" && can_build_shared=no
10784
10785with_gnu_ld=$with_gnu_ld
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801#
10802# Do we need to explicitly link libc?
10803#
10804case "x$archive_cmds_need_lc" in
10805x|xyes)
10806  # Assume -lc should be added
10807  archive_cmds_need_lc=yes
10808
10809  if test yes,yes = "$GCC,$enable_shared"; then
10810    case $archive_cmds in
10811    *'~'*)
10812      # FIXME: we may have to deal with multi-command sequences.
10813      ;;
10814    '$CC '*)
10815      # Test whether the compiler implicitly links with -lc since on some
10816      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10817      # to ld, don't add -lc before -lgcc.
10818      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10819printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10820if test ${lt_cv_archive_cmds_need_lc+y}
10821then :
10822  printf %s "(cached) " >&6
10823else $as_nop
10824  $RM conftest*
10825	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10826
10827	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10828  (eval $ac_compile) 2>&5
10829  ac_status=$?
10830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831  test $ac_status = 0; } 2>conftest.err; then
10832	  soname=conftest
10833	  lib=conftest
10834	  libobjs=conftest.$ac_objext
10835	  deplibs=
10836	  wl=$lt_prog_compiler_wl
10837	  pic_flag=$lt_prog_compiler_pic
10838	  compiler_flags=-v
10839	  linker_flags=-v
10840	  verstring=
10841	  output_objdir=.
10842	  libname=conftest
10843	  lt_save_allow_undefined_flag=$allow_undefined_flag
10844	  allow_undefined_flag=
10845	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10846  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10847  ac_status=$?
10848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849  test $ac_status = 0; }
10850	  then
10851	    lt_cv_archive_cmds_need_lc=no
10852	  else
10853	    lt_cv_archive_cmds_need_lc=yes
10854	  fi
10855	  allow_undefined_flag=$lt_save_allow_undefined_flag
10856	else
10857	  cat conftest.err 1>&5
10858	fi
10859	$RM conftest*
10860
10861fi
10862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10863printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10864      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10865      ;;
10866    esac
10867  fi
10868  ;;
10869esac
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11023printf %s "checking dynamic linker characteristics... " >&6; }
11024
11025if test yes = "$GCC"; then
11026  case $host_os in
11027    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11028    *) lt_awk_arg='/^libraries:/' ;;
11029  esac
11030  case $host_os in
11031    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11032    *) lt_sed_strip_eq='s|=/|/|g' ;;
11033  esac
11034  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11035  case $lt_search_path_spec in
11036  *\;*)
11037    # if the path contains ";" then we assume it to be the separator
11038    # otherwise default to the standard path separator (i.e. ":") - it is
11039    # assumed that no part of a normal pathname contains ";" but that should
11040    # okay in the real world where ";" in dirpaths is itself problematic.
11041    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11042    ;;
11043  *)
11044    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11045    ;;
11046  esac
11047  # Ok, now we have the path, separated by spaces, we can step through it
11048  # and add multilib dir if necessary...
11049  lt_tmp_lt_search_path_spec=
11050  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11051  # ...but if some path component already ends with the multilib dir we assume
11052  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11053  case "$lt_multi_os_dir; $lt_search_path_spec " in
11054  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11055    lt_multi_os_dir=
11056    ;;
11057  esac
11058  for lt_sys_path in $lt_search_path_spec; do
11059    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11060      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11061    elif test -n "$lt_multi_os_dir"; then
11062      test -d "$lt_sys_path" && \
11063	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11064    fi
11065  done
11066  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11067BEGIN {RS = " "; FS = "/|\n";} {
11068  lt_foo = "";
11069  lt_count = 0;
11070  for (lt_i = NF; lt_i > 0; lt_i--) {
11071    if ($lt_i != "" && $lt_i != ".") {
11072      if ($lt_i == "..") {
11073        lt_count++;
11074      } else {
11075        if (lt_count == 0) {
11076          lt_foo = "/" $lt_i lt_foo;
11077        } else {
11078          lt_count--;
11079        }
11080      }
11081    }
11082  }
11083  if (lt_foo != "") { lt_freq[lt_foo]++; }
11084  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11085}'`
11086  # AWK program above erroneously prepends '/' to C:/dos/paths
11087  # for these hosts.
11088  case $host_os in
11089    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11090      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11091  esac
11092  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11093else
11094  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095fi
11096library_names_spec=
11097libname_spec='lib$name'
11098soname_spec=
11099shrext_cmds=.so
11100postinstall_cmds=
11101postuninstall_cmds=
11102finish_cmds=
11103finish_eval=
11104shlibpath_var=
11105shlibpath_overrides_runpath=unknown
11106version_type=none
11107dynamic_linker="$host_os ld.so"
11108sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109need_lib_prefix=unknown
11110hardcode_into_libs=no
11111
11112# when you set need_version to no, make sure it does not cause -set_version
11113# flags to be left without arguments
11114need_version=unknown
11115
11116
11117
11118case $host_os in
11119aix3*)
11120  version_type=linux # correct to gnu/linux during the next big refactor
11121  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11122  shlibpath_var=LIBPATH
11123
11124  # AIX 3 has no versioning support, so we append a major version to the name.
11125  soname_spec='$libname$release$shared_ext$major'
11126  ;;
11127
11128aix[4-9]*)
11129  version_type=linux # correct to gnu/linux during the next big refactor
11130  need_lib_prefix=no
11131  need_version=no
11132  hardcode_into_libs=yes
11133  if test ia64 = "$host_cpu"; then
11134    # AIX 5 supports IA64
11135    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11136    shlibpath_var=LD_LIBRARY_PATH
11137  else
11138    # With GCC up to 2.95.x, collect2 would create an import file
11139    # for dependence libraries.  The import file would start with
11140    # the line '#! .'.  This would cause the generated library to
11141    # depend on '.', always an invalid library.  This was fixed in
11142    # development snapshots of GCC prior to 3.0.
11143    case $host_os in
11144      aix4 | aix4.[01] | aix4.[01].*)
11145      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146	   echo ' yes '
11147	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11148	:
11149      else
11150	can_build_shared=no
11151      fi
11152      ;;
11153    esac
11154    # Using Import Files as archive members, it is possible to support
11155    # filename-based versioning of shared library archives on AIX. While
11156    # this would work for both with and without runtime linking, it will
11157    # prevent static linking of such archives. So we do filename-based
11158    # shared library versioning with .so extension only, which is used
11159    # when both runtime linking and shared linking is enabled.
11160    # Unfortunately, runtime linking may impact performance, so we do
11161    # not want this to be the default eventually. Also, we use the
11162    # versioned .so libs for executables only if there is the -brtl
11163    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11164    # To allow for filename-based versioning support, we need to create
11165    # libNAME.so.V as an archive file, containing:
11166    # *) an Import File, referring to the versioned filename of the
11167    #    archive as well as the shared archive member, telling the
11168    #    bitwidth (32 or 64) of that shared object, and providing the
11169    #    list of exported symbols of that shared object, eventually
11170    #    decorated with the 'weak' keyword
11171    # *) the shared object with the F_LOADONLY flag set, to really avoid
11172    #    it being seen by the linker.
11173    # At run time we better use the real file rather than another symlink,
11174    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11175
11176    case $with_aix_soname,$aix_use_runtimelinking in
11177    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11178    # soname into executable. Probably we can add versioning support to
11179    # collect2, so additional links can be useful in future.
11180    aix,yes) # traditional libtool
11181      dynamic_linker='AIX unversionable lib.so'
11182      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11183      # instead of lib<name>.a to let people know that these are not
11184      # typical AIX shared libraries.
11185      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186      ;;
11187    aix,no) # traditional AIX only
11188      dynamic_linker='AIX lib.a(lib.so.V)'
11189      # We preserve .a as extension for shared libraries through AIX4.2
11190      # and later when we are not doing run time linking.
11191      library_names_spec='$libname$release.a $libname.a'
11192      soname_spec='$libname$release$shared_ext$major'
11193      ;;
11194    svr4,*) # full svr4 only
11195      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11196      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11197      # We do not specify a path in Import Files, so LIBPATH fires.
11198      shlibpath_overrides_runpath=yes
11199      ;;
11200    *,yes) # both, prefer svr4
11201      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11202      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11203      # unpreferred sharedlib libNAME.a needs extra handling
11204      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"'
11205      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"'
11206      # We do not specify a path in Import Files, so LIBPATH fires.
11207      shlibpath_overrides_runpath=yes
11208      ;;
11209    *,no) # both, prefer aix
11210      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11211      library_names_spec='$libname$release.a $libname.a'
11212      soname_spec='$libname$release$shared_ext$major'
11213      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11214      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)'
11215      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"'
11216      ;;
11217    esac
11218    shlibpath_var=LIBPATH
11219  fi
11220  ;;
11221
11222amigaos*)
11223  case $host_cpu in
11224  powerpc)
11225    # Since July 2007 AmigaOS4 officially supports .so libraries.
11226    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11227    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228    ;;
11229  m68k)
11230    library_names_spec='$libname.ixlibrary $libname.a'
11231    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11232    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'
11233    ;;
11234  esac
11235  ;;
11236
11237beos*)
11238  library_names_spec='$libname$shared_ext'
11239  dynamic_linker="$host_os ld.so"
11240  shlibpath_var=LIBRARY_PATH
11241  ;;
11242
11243bsdi[45]*)
11244  version_type=linux # correct to gnu/linux during the next big refactor
11245  need_version=no
11246  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247  soname_spec='$libname$release$shared_ext$major'
11248  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11251  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11252  # the default ld.so.conf also contains /usr/contrib/lib and
11253  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11254  # libtool to hard-code these into programs
11255  ;;
11256
11257cygwin* | mingw* | pw32* | cegcc*)
11258  version_type=windows
11259  shrext_cmds=.dll
11260  need_version=no
11261  need_lib_prefix=no
11262
11263  case $GCC,$cc_basename in
11264  yes,*)
11265    # gcc
11266    library_names_spec='$libname.dll.a'
11267    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11268    postinstall_cmds='base_file=`basename \$file`~
11269      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11270      dldir=$destdir/`dirname \$dlpath`~
11271      test -d \$dldir || mkdir -p \$dldir~
11272      $install_prog $dir/$dlname \$dldir/$dlname~
11273      chmod a+x \$dldir/$dlname~
11274      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11275        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11276      fi'
11277    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11278      dlpath=$dir/\$dldll~
11279       $RM \$dlpath'
11280    shlibpath_overrides_runpath=yes
11281
11282    case $host_os in
11283    cygwin*)
11284      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11285      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11286
11287      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11288      ;;
11289    mingw* | cegcc*)
11290      # MinGW DLLs use traditional 'lib' prefix
11291      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11292      ;;
11293    pw32*)
11294      # pw32 DLLs use 'pw' prefix rather than 'lib'
11295      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11296      ;;
11297    esac
11298    dynamic_linker='Win32 ld.exe'
11299    ;;
11300
11301  *,cl* | *,icl*)
11302    # Native MSVC or ICC
11303    libname_spec='$name'
11304    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11305    library_names_spec='$libname.dll.lib'
11306
11307    case $build_os in
11308    mingw*)
11309      sys_lib_search_path_spec=
11310      lt_save_ifs=$IFS
11311      IFS=';'
11312      for lt_path in $LIB
11313      do
11314        IFS=$lt_save_ifs
11315        # Let DOS variable expansion print the short 8.3 style file name.
11316        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11317        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11318      done
11319      IFS=$lt_save_ifs
11320      # Convert to MSYS style.
11321      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11322      ;;
11323    cygwin*)
11324      # Convert to unix form, then to dos form, then back to unix form
11325      # but this time dos style (no spaces!) so that the unix form looks
11326      # like /cygdrive/c/PROGRA~1:/cygdr...
11327      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11328      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11329      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11330      ;;
11331    *)
11332      sys_lib_search_path_spec=$LIB
11333      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11334        # It is most probably a Windows format PATH.
11335        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11336      else
11337        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11338      fi
11339      # FIXME: find the short name or the path components, as spaces are
11340      # common. (e.g. "Program Files" -> "PROGRA~1")
11341      ;;
11342    esac
11343
11344    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11345    postinstall_cmds='base_file=`basename \$file`~
11346      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11347      dldir=$destdir/`dirname \$dlpath`~
11348      test -d \$dldir || mkdir -p \$dldir~
11349      $install_prog $dir/$dlname \$dldir/$dlname'
11350    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11351      dlpath=$dir/\$dldll~
11352       $RM \$dlpath'
11353    shlibpath_overrides_runpath=yes
11354    dynamic_linker='Win32 link.exe'
11355    ;;
11356
11357  *)
11358    # Assume MSVC and ICC wrapper
11359    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11360    dynamic_linker='Win32 ld.exe'
11361    ;;
11362  esac
11363  # FIXME: first we should search . and the directory the executable is in
11364  shlibpath_var=PATH
11365  ;;
11366
11367darwin* | rhapsody*)
11368  dynamic_linker="$host_os dyld"
11369  version_type=darwin
11370  need_lib_prefix=no
11371  need_version=no
11372  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11373  soname_spec='$libname$release$major$shared_ext'
11374  shlibpath_overrides_runpath=yes
11375  shlibpath_var=DYLD_LIBRARY_PATH
11376  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11377
11378  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11379  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11380  ;;
11381
11382dgux*)
11383  version_type=linux # correct to gnu/linux during the next big refactor
11384  need_lib_prefix=no
11385  need_version=no
11386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387  soname_spec='$libname$release$shared_ext$major'
11388  shlibpath_var=LD_LIBRARY_PATH
11389  ;;
11390
11391freebsd* | dragonfly* | midnightbsd*)
11392  # DragonFly does not have aout.  When/if they implement a new
11393  # versioning mechanism, adjust this.
11394  if test -x /usr/bin/objformat; then
11395    objformat=`/usr/bin/objformat`
11396  else
11397    case $host_os in
11398    freebsd[23].*) objformat=aout ;;
11399    *) objformat=elf ;;
11400    esac
11401  fi
11402  # Handle Gentoo/FreeBSD as it was Linux
11403  case $host_vendor in
11404    gentoo)
11405      version_type=linux ;;
11406    *)
11407      version_type=freebsd-$objformat ;;
11408  esac
11409
11410  case $version_type in
11411    freebsd-elf*)
11412      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11413      soname_spec='$libname$release$shared_ext$major'
11414      need_version=no
11415      need_lib_prefix=no
11416      ;;
11417    freebsd-*)
11418      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11419      need_version=yes
11420      ;;
11421    linux)
11422      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11423      soname_spec='${libname}${release}${shared_ext}$major'
11424      need_lib_prefix=no
11425      need_version=no
11426      ;;
11427  esac
11428  shlibpath_var=LD_LIBRARY_PATH
11429  case $host_os in
11430  freebsd2.*)
11431    shlibpath_overrides_runpath=yes
11432    ;;
11433  freebsd3.[01]* | freebsdelf3.[01]*)
11434    shlibpath_overrides_runpath=yes
11435    hardcode_into_libs=yes
11436    ;;
11437  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11438  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11439    shlibpath_overrides_runpath=no
11440    hardcode_into_libs=yes
11441    ;;
11442  *) # from 4.6 on, and DragonFly
11443    shlibpath_overrides_runpath=yes
11444    hardcode_into_libs=yes
11445    ;;
11446  esac
11447  ;;
11448
11449haiku*)
11450  version_type=linux # correct to gnu/linux during the next big refactor
11451  need_lib_prefix=no
11452  need_version=no
11453  dynamic_linker="$host_os runtime_loader"
11454  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455  soname_spec='$libname$release$shared_ext$major'
11456  shlibpath_var=LIBRARY_PATH
11457  shlibpath_overrides_runpath=no
11458  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11459  hardcode_into_libs=yes
11460  ;;
11461
11462hpux9* | hpux10* | hpux11*)
11463  # Give a soname corresponding to the major version so that dld.sl refuses to
11464  # link against other versions.
11465  version_type=sunos
11466  need_lib_prefix=no
11467  need_version=no
11468  case $host_cpu in
11469  ia64*)
11470    shrext_cmds='.so'
11471    hardcode_into_libs=yes
11472    dynamic_linker="$host_os dld.so"
11473    shlibpath_var=LD_LIBRARY_PATH
11474    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11475    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476    soname_spec='$libname$release$shared_ext$major'
11477    if test 32 = "$HPUX_IA64_MODE"; then
11478      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11479      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11480    else
11481      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11482      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11483    fi
11484    ;;
11485  hppa*64*)
11486    shrext_cmds='.sl'
11487    hardcode_into_libs=yes
11488    dynamic_linker="$host_os dld.sl"
11489    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11490    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11491    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492    soname_spec='$libname$release$shared_ext$major'
11493    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11494    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11495    ;;
11496  *)
11497    shrext_cmds='.sl'
11498    dynamic_linker="$host_os dld.sl"
11499    shlibpath_var=SHLIB_PATH
11500    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11501    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502    soname_spec='$libname$release$shared_ext$major'
11503    ;;
11504  esac
11505  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11506  postinstall_cmds='chmod 555 $lib'
11507  # or fails outright, so override atomically:
11508  install_override_mode=555
11509  ;;
11510
11511interix[3-9]*)
11512  version_type=linux # correct to gnu/linux during the next big refactor
11513  need_lib_prefix=no
11514  need_version=no
11515  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516  soname_spec='$libname$release$shared_ext$major'
11517  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11518  shlibpath_var=LD_LIBRARY_PATH
11519  shlibpath_overrides_runpath=no
11520  hardcode_into_libs=yes
11521  ;;
11522
11523irix5* | irix6* | nonstopux*)
11524  case $host_os in
11525    nonstopux*) version_type=nonstopux ;;
11526    *)
11527	if test yes = "$lt_cv_prog_gnu_ld"; then
11528		version_type=linux # correct to gnu/linux during the next big refactor
11529	else
11530		version_type=irix
11531	fi ;;
11532  esac
11533  need_lib_prefix=no
11534  need_version=no
11535  soname_spec='$libname$release$shared_ext$major'
11536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11537  case $host_os in
11538  irix5* | nonstopux*)
11539    libsuff= shlibsuff=
11540    ;;
11541  *)
11542    case $LD in # libtool.m4 will add one of these switches to LD
11543    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11544      libsuff= shlibsuff= libmagic=32-bit;;
11545    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11546      libsuff=32 shlibsuff=N32 libmagic=N32;;
11547    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11548      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11549    *) libsuff= shlibsuff= libmagic=never-match;;
11550    esac
11551    ;;
11552  esac
11553  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11554  shlibpath_overrides_runpath=no
11555  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11556  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11557  hardcode_into_libs=yes
11558  ;;
11559
11560# No shared lib support for Linux oldld, aout, or coff.
11561linux*oldld* | linux*aout* | linux*coff*)
11562  dynamic_linker=no
11563  ;;
11564
11565linux*android*)
11566  version_type=none # Android doesn't support versioned libraries.
11567  need_lib_prefix=no
11568  need_version=no
11569  library_names_spec='$libname$release$shared_ext'
11570  soname_spec='$libname$release$shared_ext'
11571  finish_cmds=
11572  shlibpath_var=LD_LIBRARY_PATH
11573  shlibpath_overrides_runpath=yes
11574
11575  # This implies no fast_install, which is unacceptable.
11576  # Some rework will be needed to allow for fast_install
11577  # before this can be enabled.
11578  hardcode_into_libs=yes
11579
11580  dynamic_linker='Android linker'
11581  # Don't embed -rpath directories since the linker doesn't support them.
11582  hardcode_libdir_flag_spec='-L$libdir'
11583  ;;
11584
11585# This must be glibc/ELF.
11586linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11587  version_type=linux # correct to gnu/linux during the next big refactor
11588  need_lib_prefix=no
11589  need_version=no
11590  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591  soname_spec='$libname$release$shared_ext$major'
11592  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11593  shlibpath_var=LD_LIBRARY_PATH
11594  shlibpath_overrides_runpath=no
11595
11596  # Some binutils ld are patched to set DT_RUNPATH
11597  if test ${lt_cv_shlibpath_overrides_runpath+y}
11598then :
11599  printf %s "(cached) " >&6
11600else $as_nop
11601  lt_cv_shlibpath_overrides_runpath=no
11602    save_LDFLAGS=$LDFLAGS
11603    save_libdir=$libdir
11604    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11605	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11606    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607/* end confdefs.h.  */
11608
11609int
11610main (void)
11611{
11612
11613  ;
11614  return 0;
11615}
11616_ACEOF
11617if ac_fn_c_try_link "$LINENO"
11618then :
11619  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11620then :
11621  lt_cv_shlibpath_overrides_runpath=yes
11622fi
11623fi
11624rm -f core conftest.err conftest.$ac_objext conftest.beam \
11625    conftest$ac_exeext conftest.$ac_ext
11626    LDFLAGS=$save_LDFLAGS
11627    libdir=$save_libdir
11628
11629fi
11630
11631  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11632
11633  # This implies no fast_install, which is unacceptable.
11634  # Some rework will be needed to allow for fast_install
11635  # before this can be enabled.
11636  hardcode_into_libs=yes
11637
11638  # Ideally, we could use ldconfig to report *all* directores which are
11639  # searched for libraries, however this is still not possible.  Aside from not
11640  # being certain /sbin/ldconfig is available, command
11641  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11642  # even though it is searched at run-time.  Try to do the best guess by
11643  # appending ld.so.conf contents (and includes) to the search path.
11644  if test -f /etc/ld.so.conf; then
11645    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' ' '`
11646    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11647  fi
11648
11649  # We used to test for /lib/ld.so.1 and disable shared libraries on
11650  # powerpc, because MkLinux only supported shared libraries with the
11651  # GNU dynamic linker.  Since this was broken with cross compilers,
11652  # most powerpc-linux boxes support dynamic linking these days and
11653  # people can always --disable-shared, the test was removed, and we
11654  # assume the GNU/Linux dynamic linker is in use.
11655  dynamic_linker='GNU/Linux ld.so'
11656  ;;
11657
11658netbsd*)
11659  version_type=sunos
11660  need_lib_prefix=no
11661  need_version=no
11662  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11663    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11664    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11665    dynamic_linker='NetBSD (a.out) ld.so'
11666  else
11667    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668    soname_spec='$libname$release$shared_ext$major'
11669    dynamic_linker='NetBSD ld.elf_so'
11670  fi
11671  shlibpath_var=LD_LIBRARY_PATH
11672  shlibpath_overrides_runpath=yes
11673  hardcode_into_libs=yes
11674  ;;
11675
11676newsos6)
11677  version_type=linux # correct to gnu/linux during the next big refactor
11678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679  shlibpath_var=LD_LIBRARY_PATH
11680  shlibpath_overrides_runpath=yes
11681  ;;
11682
11683*nto* | *qnx*)
11684  version_type=qnx
11685  need_lib_prefix=no
11686  need_version=no
11687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11688  soname_spec='$libname$release$shared_ext$major'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  shlibpath_overrides_runpath=no
11691  hardcode_into_libs=yes
11692  dynamic_linker='ldqnx.so'
11693  ;;
11694
11695openbsd* | bitrig*)
11696  version_type=sunos
11697  sys_lib_dlsearch_path_spec=/usr/lib
11698  need_lib_prefix=no
11699  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11700    need_version=no
11701  else
11702    need_version=yes
11703  fi
11704  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11705  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706  shlibpath_var=LD_LIBRARY_PATH
11707  shlibpath_overrides_runpath=yes
11708  ;;
11709
11710os2*)
11711  libname_spec='$name'
11712  version_type=windows
11713  shrext_cmds=.dll
11714  need_version=no
11715  need_lib_prefix=no
11716  # OS/2 can only load a DLL with a base name of 8 characters or less.
11717  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11718    v=$($ECHO $release$versuffix | tr -d .-);
11719    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11720    $ECHO $n$v`$shared_ext'
11721  library_names_spec='${libname}_dll.$libext'
11722  dynamic_linker='OS/2 ld.exe'
11723  shlibpath_var=BEGINLIBPATH
11724  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11725  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11726  postinstall_cmds='base_file=`basename \$file`~
11727    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11728    dldir=$destdir/`dirname \$dlpath`~
11729    test -d \$dldir || mkdir -p \$dldir~
11730    $install_prog $dir/$dlname \$dldir/$dlname~
11731    chmod a+x \$dldir/$dlname~
11732    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11733      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11734    fi'
11735  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11736    dlpath=$dir/\$dldll~
11737    $RM \$dlpath'
11738  ;;
11739
11740osf3* | osf4* | osf5*)
11741  version_type=osf
11742  need_lib_prefix=no
11743  need_version=no
11744  soname_spec='$libname$release$shared_ext$major'
11745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746  shlibpath_var=LD_LIBRARY_PATH
11747  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11748  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749  ;;
11750
11751rdos*)
11752  dynamic_linker=no
11753  ;;
11754
11755solaris*)
11756  version_type=linux # correct to gnu/linux during the next big refactor
11757  need_lib_prefix=no
11758  need_version=no
11759  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760  soname_spec='$libname$release$shared_ext$major'
11761  shlibpath_var=LD_LIBRARY_PATH
11762  shlibpath_overrides_runpath=yes
11763  hardcode_into_libs=yes
11764  # ldd complains unless libraries are executable
11765  postinstall_cmds='chmod +x $lib'
11766  ;;
11767
11768sunos4*)
11769  version_type=sunos
11770  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11771  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  shlibpath_overrides_runpath=yes
11774  if test yes = "$with_gnu_ld"; then
11775    need_lib_prefix=no
11776  fi
11777  need_version=yes
11778  ;;
11779
11780sysv4 | sysv4.3*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783  soname_spec='$libname$release$shared_ext$major'
11784  shlibpath_var=LD_LIBRARY_PATH
11785  case $host_vendor in
11786    sni)
11787      shlibpath_overrides_runpath=no
11788      need_lib_prefix=no
11789      runpath_var=LD_RUN_PATH
11790      ;;
11791    siemens)
11792      need_lib_prefix=no
11793      ;;
11794    motorola)
11795      need_lib_prefix=no
11796      need_version=no
11797      shlibpath_overrides_runpath=no
11798      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11799      ;;
11800  esac
11801  ;;
11802
11803sysv4*MP*)
11804  if test -d /usr/nec; then
11805    version_type=linux # correct to gnu/linux during the next big refactor
11806    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11807    soname_spec='$libname$shared_ext.$major'
11808    shlibpath_var=LD_LIBRARY_PATH
11809  fi
11810  ;;
11811
11812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11813  version_type=sco
11814  need_lib_prefix=no
11815  need_version=no
11816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11817  soname_spec='$libname$release$shared_ext$major'
11818  shlibpath_var=LD_LIBRARY_PATH
11819  shlibpath_overrides_runpath=yes
11820  hardcode_into_libs=yes
11821  if test yes = "$with_gnu_ld"; then
11822    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11823  else
11824    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11825    case $host_os in
11826      sco3.2v5*)
11827        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11828	;;
11829    esac
11830  fi
11831  sys_lib_dlsearch_path_spec='/usr/lib'
11832  ;;
11833
11834tpf*)
11835  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11836  version_type=linux # correct to gnu/linux during the next big refactor
11837  need_lib_prefix=no
11838  need_version=no
11839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11840  shlibpath_var=LD_LIBRARY_PATH
11841  shlibpath_overrides_runpath=no
11842  hardcode_into_libs=yes
11843  ;;
11844
11845uts4*)
11846  version_type=linux # correct to gnu/linux during the next big refactor
11847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848  soname_spec='$libname$release$shared_ext$major'
11849  shlibpath_var=LD_LIBRARY_PATH
11850  ;;
11851
11852*)
11853  dynamic_linker=no
11854  ;;
11855esac
11856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11857printf "%s\n" "$dynamic_linker" >&6; }
11858test no = "$dynamic_linker" && can_build_shared=no
11859
11860variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11861if test yes = "$GCC"; then
11862  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11863fi
11864
11865if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11866  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11867fi
11868
11869if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11870  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11871fi
11872
11873# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11874configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11875
11876# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11877func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11878
11879# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11880configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11979printf %s "checking how to hardcode library paths into programs... " >&6; }
11980hardcode_action=
11981if test -n "$hardcode_libdir_flag_spec" ||
11982   test -n "$runpath_var" ||
11983   test yes = "$hardcode_automatic"; then
11984
11985  # We can hardcode non-existent directories.
11986  if test no != "$hardcode_direct" &&
11987     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11988     # have to relink, otherwise we might link with an installed library
11989     # when we should be linking with a yet-to-be-installed one
11990     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11991     test no != "$hardcode_minus_L"; then
11992    # Linking always hardcodes the temporary library directory.
11993    hardcode_action=relink
11994  else
11995    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11996    hardcode_action=immediate
11997  fi
11998else
11999  # We cannot hardcode anything, or else we can only hardcode existing
12000  # directories.
12001  hardcode_action=unsupported
12002fi
12003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12004printf "%s\n" "$hardcode_action" >&6; }
12005
12006if test relink = "$hardcode_action" ||
12007   test yes = "$inherit_rpath"; then
12008  # Fast installation is not supported
12009  enable_fast_install=no
12010elif test yes = "$shlibpath_overrides_runpath" ||
12011     test no = "$enable_shared"; then
12012  # Fast installation is not necessary
12013  enable_fast_install=needless
12014fi
12015
12016
12017
12018
12019
12020
12021  if test yes != "$enable_dlopen"; then
12022  enable_dlopen=unknown
12023  enable_dlopen_self=unknown
12024  enable_dlopen_self_static=unknown
12025else
12026  lt_cv_dlopen=no
12027  lt_cv_dlopen_libs=
12028
12029  case $host_os in
12030  beos*)
12031    lt_cv_dlopen=load_add_on
12032    lt_cv_dlopen_libs=
12033    lt_cv_dlopen_self=yes
12034    ;;
12035
12036  mingw* | pw32* | cegcc*)
12037    lt_cv_dlopen=LoadLibrary
12038    lt_cv_dlopen_libs=
12039    ;;
12040
12041  cygwin*)
12042    lt_cv_dlopen=dlopen
12043    lt_cv_dlopen_libs=
12044    ;;
12045
12046  darwin*)
12047    # if libdl is installed we need to link against it
12048    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12049printf %s "checking for dlopen in -ldl... " >&6; }
12050if test ${ac_cv_lib_dl_dlopen+y}
12051then :
12052  printf %s "(cached) " >&6
12053else $as_nop
12054  ac_check_lib_save_LIBS=$LIBS
12055LIBS="-ldl  $LIBS"
12056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h.  */
12058
12059/* Override any GCC internal prototype to avoid an error.
12060   Use char because int might match the return type of a GCC
12061   builtin and then its argument prototype would still apply.
12062   The 'extern "C"' is for builds by C++ compilers;
12063   although this is not generally supported in C code supporting it here
12064   has little cost and some practical benefit (sr 110532).  */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068char dlopen (void);
12069int
12070main (void)
12071{
12072return dlopen ();
12073  ;
12074  return 0;
12075}
12076_ACEOF
12077if ac_fn_c_try_link "$LINENO"
12078then :
12079  ac_cv_lib_dl_dlopen=yes
12080else $as_nop
12081  ac_cv_lib_dl_dlopen=no
12082fi
12083rm -f core conftest.err conftest.$ac_objext conftest.beam \
12084    conftest$ac_exeext conftest.$ac_ext
12085LIBS=$ac_check_lib_save_LIBS
12086fi
12087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12088printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12089if test "x$ac_cv_lib_dl_dlopen" = xyes
12090then :
12091  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12092else $as_nop
12093
12094    lt_cv_dlopen=dyld
12095    lt_cv_dlopen_libs=
12096    lt_cv_dlopen_self=yes
12097
12098fi
12099
12100    ;;
12101
12102  tpf*)
12103    # Don't try to run any link tests for TPF.  We know it's impossible
12104    # because TPF is a cross-compiler, and we know how we open DSOs.
12105    lt_cv_dlopen=dlopen
12106    lt_cv_dlopen_libs=
12107    lt_cv_dlopen_self=no
12108    ;;
12109
12110  *)
12111    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12112if test "x$ac_cv_func_shl_load" = xyes
12113then :
12114  lt_cv_dlopen=shl_load
12115else $as_nop
12116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12117printf %s "checking for shl_load in -ldld... " >&6; }
12118if test ${ac_cv_lib_dld_shl_load+y}
12119then :
12120  printf %s "(cached) " >&6
12121else $as_nop
12122  ac_check_lib_save_LIBS=$LIBS
12123LIBS="-ldld  $LIBS"
12124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h.  */
12126
12127/* Override any GCC internal prototype to avoid an error.
12128   Use char because int might match the return type of a GCC
12129   builtin and then its argument prototype would still apply.
12130   The 'extern "C"' is for builds by C++ compilers;
12131   although this is not generally supported in C code supporting it here
12132   has little cost and some practical benefit (sr 110532).  */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char shl_load (void);
12137int
12138main (void)
12139{
12140return shl_load ();
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145if ac_fn_c_try_link "$LINENO"
12146then :
12147  ac_cv_lib_dld_shl_load=yes
12148else $as_nop
12149  ac_cv_lib_dld_shl_load=no
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152    conftest$ac_exeext conftest.$ac_ext
12153LIBS=$ac_check_lib_save_LIBS
12154fi
12155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12156printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12157if test "x$ac_cv_lib_dld_shl_load" = xyes
12158then :
12159  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12160else $as_nop
12161  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12162if test "x$ac_cv_func_dlopen" = xyes
12163then :
12164  lt_cv_dlopen=dlopen
12165else $as_nop
12166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12167printf %s "checking for dlopen in -ldl... " >&6; }
12168if test ${ac_cv_lib_dl_dlopen+y}
12169then :
12170  printf %s "(cached) " >&6
12171else $as_nop
12172  ac_check_lib_save_LIBS=$LIBS
12173LIBS="-ldl  $LIBS"
12174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h.  */
12176
12177/* Override any GCC internal prototype to avoid an error.
12178   Use char because int might match the return type of a GCC
12179   builtin and then its argument prototype would still apply.
12180   The 'extern "C"' is for builds by C++ compilers;
12181   although this is not generally supported in C code supporting it here
12182   has little cost and some practical benefit (sr 110532).  */
12183#ifdef __cplusplus
12184extern "C"
12185#endif
12186char dlopen (void);
12187int
12188main (void)
12189{
12190return dlopen ();
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195if ac_fn_c_try_link "$LINENO"
12196then :
12197  ac_cv_lib_dl_dlopen=yes
12198else $as_nop
12199  ac_cv_lib_dl_dlopen=no
12200fi
12201rm -f core conftest.err conftest.$ac_objext conftest.beam \
12202    conftest$ac_exeext conftest.$ac_ext
12203LIBS=$ac_check_lib_save_LIBS
12204fi
12205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12206printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12207if test "x$ac_cv_lib_dl_dlopen" = xyes
12208then :
12209  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12210else $as_nop
12211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12212printf %s "checking for dlopen in -lsvld... " >&6; }
12213if test ${ac_cv_lib_svld_dlopen+y}
12214then :
12215  printf %s "(cached) " >&6
12216else $as_nop
12217  ac_check_lib_save_LIBS=$LIBS
12218LIBS="-lsvld  $LIBS"
12219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221
12222/* Override any GCC internal prototype to avoid an error.
12223   Use char because int might match the return type of a GCC
12224   builtin and then its argument prototype would still apply.
12225   The 'extern "C"' is for builds by C++ compilers;
12226   although this is not generally supported in C code supporting it here
12227   has little cost and some practical benefit (sr 110532).  */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char dlopen (void);
12232int
12233main (void)
12234{
12235return dlopen ();
12236  ;
12237  return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"
12241then :
12242  ac_cv_lib_svld_dlopen=yes
12243else $as_nop
12244  ac_cv_lib_svld_dlopen=no
12245fi
12246rm -f core conftest.err conftest.$ac_objext conftest.beam \
12247    conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12251printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12252if test "x$ac_cv_lib_svld_dlopen" = xyes
12253then :
12254  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12255else $as_nop
12256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12257printf %s "checking for dld_link in -ldld... " >&6; }
12258if test ${ac_cv_lib_dld_dld_link+y}
12259then :
12260  printf %s "(cached) " >&6
12261else $as_nop
12262  ac_check_lib_save_LIBS=$LIBS
12263LIBS="-ldld  $LIBS"
12264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h.  */
12266
12267/* Override any GCC internal prototype to avoid an error.
12268   Use char because int might match the return type of a GCC
12269   builtin and then its argument prototype would still apply.
12270   The 'extern "C"' is for builds by C++ compilers;
12271   although this is not generally supported in C code supporting it here
12272   has little cost and some practical benefit (sr 110532).  */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276char dld_link (void);
12277int
12278main (void)
12279{
12280return dld_link ();
12281  ;
12282  return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_link "$LINENO"
12286then :
12287  ac_cv_lib_dld_dld_link=yes
12288else $as_nop
12289  ac_cv_lib_dld_dld_link=no
12290fi
12291rm -f core conftest.err conftest.$ac_objext conftest.beam \
12292    conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12296printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12297if test "x$ac_cv_lib_dld_dld_link" = xyes
12298then :
12299  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12300fi
12301
12302
12303fi
12304
12305
12306fi
12307
12308
12309fi
12310
12311
12312fi
12313
12314
12315fi
12316
12317    ;;
12318  esac
12319
12320  if test no = "$lt_cv_dlopen"; then
12321    enable_dlopen=no
12322  else
12323    enable_dlopen=yes
12324  fi
12325
12326  case $lt_cv_dlopen in
12327  dlopen)
12328    save_CPPFLAGS=$CPPFLAGS
12329    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12330
12331    save_LDFLAGS=$LDFLAGS
12332    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12333
12334    save_LIBS=$LIBS
12335    LIBS="$lt_cv_dlopen_libs $LIBS"
12336
12337    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12338printf %s "checking whether a program can dlopen itself... " >&6; }
12339if test ${lt_cv_dlopen_self+y}
12340then :
12341  printf %s "(cached) " >&6
12342else $as_nop
12343  	  if test yes = "$cross_compiling"; then :
12344  lt_cv_dlopen_self=cross
12345else
12346  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12347  lt_status=$lt_dlunknown
12348  cat > conftest.$ac_ext <<_LT_EOF
12349#line $LINENO "configure"
12350#include "confdefs.h"
12351
12352#if HAVE_DLFCN_H
12353#include <dlfcn.h>
12354#endif
12355
12356#include <stdio.h>
12357
12358#ifdef RTLD_GLOBAL
12359#  define LT_DLGLOBAL		RTLD_GLOBAL
12360#else
12361#  ifdef DL_GLOBAL
12362#    define LT_DLGLOBAL		DL_GLOBAL
12363#  else
12364#    define LT_DLGLOBAL		0
12365#  endif
12366#endif
12367
12368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12369   find out it does not work in some platform. */
12370#ifndef LT_DLLAZY_OR_NOW
12371#  ifdef RTLD_LAZY
12372#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12373#  else
12374#    ifdef DL_LAZY
12375#      define LT_DLLAZY_OR_NOW		DL_LAZY
12376#    else
12377#      ifdef RTLD_NOW
12378#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12379#      else
12380#        ifdef DL_NOW
12381#          define LT_DLLAZY_OR_NOW	DL_NOW
12382#        else
12383#          define LT_DLLAZY_OR_NOW	0
12384#        endif
12385#      endif
12386#    endif
12387#  endif
12388#endif
12389
12390/* When -fvisibility=hidden is used, assume the code has been annotated
12391   correspondingly for the symbols needed.  */
12392#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12393int fnord () __attribute__((visibility("default")));
12394#endif
12395
12396int fnord () { return 42; }
12397int main ()
12398{
12399  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12400  int status = $lt_dlunknown;
12401
12402  if (self)
12403    {
12404      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12405      else
12406        {
12407	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12408          else puts (dlerror ());
12409	}
12410      /* dlclose (self); */
12411    }
12412  else
12413    puts (dlerror ());
12414
12415  return status;
12416}
12417_LT_EOF
12418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12419  (eval $ac_link) 2>&5
12420  ac_status=$?
12421  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12423    (./conftest; exit; ) >&5 2>/dev/null
12424    lt_status=$?
12425    case x$lt_status in
12426      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12427      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12428      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12429    esac
12430  else :
12431    # compilation failed
12432    lt_cv_dlopen_self=no
12433  fi
12434fi
12435rm -fr conftest*
12436
12437
12438fi
12439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12440printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12441
12442    if test yes = "$lt_cv_dlopen_self"; then
12443      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12445printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12446if test ${lt_cv_dlopen_self_static+y}
12447then :
12448  printf %s "(cached) " >&6
12449else $as_nop
12450  	  if test yes = "$cross_compiling"; then :
12451  lt_cv_dlopen_self_static=cross
12452else
12453  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12454  lt_status=$lt_dlunknown
12455  cat > conftest.$ac_ext <<_LT_EOF
12456#line $LINENO "configure"
12457#include "confdefs.h"
12458
12459#if HAVE_DLFCN_H
12460#include <dlfcn.h>
12461#endif
12462
12463#include <stdio.h>
12464
12465#ifdef RTLD_GLOBAL
12466#  define LT_DLGLOBAL		RTLD_GLOBAL
12467#else
12468#  ifdef DL_GLOBAL
12469#    define LT_DLGLOBAL		DL_GLOBAL
12470#  else
12471#    define LT_DLGLOBAL		0
12472#  endif
12473#endif
12474
12475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12476   find out it does not work in some platform. */
12477#ifndef LT_DLLAZY_OR_NOW
12478#  ifdef RTLD_LAZY
12479#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12480#  else
12481#    ifdef DL_LAZY
12482#      define LT_DLLAZY_OR_NOW		DL_LAZY
12483#    else
12484#      ifdef RTLD_NOW
12485#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12486#      else
12487#        ifdef DL_NOW
12488#          define LT_DLLAZY_OR_NOW	DL_NOW
12489#        else
12490#          define LT_DLLAZY_OR_NOW	0
12491#        endif
12492#      endif
12493#    endif
12494#  endif
12495#endif
12496
12497/* When -fvisibility=hidden is used, assume the code has been annotated
12498   correspondingly for the symbols needed.  */
12499#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12500int fnord () __attribute__((visibility("default")));
12501#endif
12502
12503int fnord () { return 42; }
12504int main ()
12505{
12506  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12507  int status = $lt_dlunknown;
12508
12509  if (self)
12510    {
12511      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12512      else
12513        {
12514	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12515          else puts (dlerror ());
12516	}
12517      /* dlclose (self); */
12518    }
12519  else
12520    puts (dlerror ());
12521
12522  return status;
12523}
12524_LT_EOF
12525  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12526  (eval $ac_link) 2>&5
12527  ac_status=$?
12528  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12530    (./conftest; exit; ) >&5 2>/dev/null
12531    lt_status=$?
12532    case x$lt_status in
12533      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12534      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12535      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12536    esac
12537  else :
12538    # compilation failed
12539    lt_cv_dlopen_self_static=no
12540  fi
12541fi
12542rm -fr conftest*
12543
12544
12545fi
12546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12547printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12548    fi
12549
12550    CPPFLAGS=$save_CPPFLAGS
12551    LDFLAGS=$save_LDFLAGS
12552    LIBS=$save_LIBS
12553    ;;
12554  esac
12555
12556  case $lt_cv_dlopen_self in
12557  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12558  *) enable_dlopen_self=unknown ;;
12559  esac
12560
12561  case $lt_cv_dlopen_self_static in
12562  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12563  *) enable_dlopen_self_static=unknown ;;
12564  esac
12565fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583striplib=
12584old_striplib=
12585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12586printf %s "checking whether stripping libraries is possible... " >&6; }
12587if test -z "$STRIP"; then
12588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589printf "%s\n" "no" >&6; }
12590else
12591  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12592    old_striplib="$STRIP --strip-debug"
12593    striplib="$STRIP --strip-unneeded"
12594    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595printf "%s\n" "yes" >&6; }
12596  else
12597    case $host_os in
12598    darwin*)
12599      # FIXME - insert some real tests, host_os isn't really good enough
12600      striplib="$STRIP -x"
12601      old_striplib="$STRIP -S"
12602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603printf "%s\n" "yes" >&6; }
12604      ;;
12605    freebsd*)
12606      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12607        old_striplib="$STRIP --strip-debug"
12608        striplib="$STRIP --strip-unneeded"
12609        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610printf "%s\n" "yes" >&6; }
12611      else
12612        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613printf "%s\n" "no" >&6; }
12614      fi
12615      ;;
12616    *)
12617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618printf "%s\n" "no" >&6; }
12619      ;;
12620    esac
12621  fi
12622fi
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635  # Report what library types will actually be built
12636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12637printf %s "checking if libtool supports shared libraries... " >&6; }
12638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12639printf "%s\n" "$can_build_shared" >&6; }
12640
12641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12642printf %s "checking whether to build shared libraries... " >&6; }
12643  test no = "$can_build_shared" && enable_shared=no
12644
12645  # On AIX, shared libraries and static libraries use the same namespace, and
12646  # are all built from PIC.
12647  case $host_os in
12648  aix3*)
12649    test yes = "$enable_shared" && enable_static=no
12650    if test -n "$RANLIB"; then
12651      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12652      postinstall_cmds='$RANLIB $lib'
12653    fi
12654    ;;
12655
12656  aix[4-9]*)
12657    if test ia64 != "$host_cpu"; then
12658      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12659      yes,aix,yes) ;;			# shared object as lib.so file only
12660      yes,svr4,*) ;;			# shared object as lib.so archive member only
12661      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12662      esac
12663    fi
12664    ;;
12665  esac
12666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12667printf "%s\n" "$enable_shared" >&6; }
12668
12669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12670printf %s "checking whether to build static libraries... " >&6; }
12671  # Make sure either enable_shared or enable_static is yes.
12672  test yes = "$enable_shared" || enable_static=yes
12673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12674printf "%s\n" "$enable_static" >&6; }
12675
12676
12677
12678
12679fi
12680ac_ext=c
12681ac_cpp='$CPP $CPPFLAGS'
12682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12684ac_compiler_gnu=$ac_cv_c_compiler_gnu
12685
12686CC=$lt_save_CC
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702        ac_config_commands="$ac_config_commands libtool"
12703
12704
12705
12706
12707# Only expand once:
12708
12709
12710
12711# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12724printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12725if test ${ac_cv_c_undeclared_builtin_options+y}
12726then :
12727  printf %s "(cached) " >&6
12728else $as_nop
12729  ac_save_CFLAGS=$CFLAGS
12730   ac_cv_c_undeclared_builtin_options='cannot detect'
12731   for ac_arg in '' -fno-builtin; do
12732     CFLAGS="$ac_save_CFLAGS $ac_arg"
12733     # This test program should *not* compile successfully.
12734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h.  */
12736
12737int
12738main (void)
12739{
12740(void) strchr;
12741  ;
12742  return 0;
12743}
12744_ACEOF
12745if ac_fn_c_try_compile "$LINENO"
12746then :
12747
12748else $as_nop
12749  # This test program should compile successfully.
12750        # No library function is consistently available on
12751        # freestanding implementations, so test against a dummy
12752        # declaration.  Include always-available headers on the
12753        # off chance that they somehow elicit warnings.
12754        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756#include <float.h>
12757#include <limits.h>
12758#include <stdarg.h>
12759#include <stddef.h>
12760extern void ac_decl (int, char *);
12761
12762int
12763main (void)
12764{
12765(void) ac_decl (0, (char *) 0);
12766  (void) ac_decl;
12767
12768  ;
12769  return 0;
12770}
12771_ACEOF
12772if ac_fn_c_try_compile "$LINENO"
12773then :
12774  if test x"$ac_arg" = x
12775then :
12776  ac_cv_c_undeclared_builtin_options='none needed'
12777else $as_nop
12778  ac_cv_c_undeclared_builtin_options=$ac_arg
12779fi
12780          break
12781fi
12782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12783fi
12784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12785    done
12786    CFLAGS=$ac_save_CFLAGS
12787
12788fi
12789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12790printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12791  case $ac_cv_c_undeclared_builtin_options in #(
12792  'cannot detect') :
12793    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12794printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12795as_fn_error $? "cannot make $CC report undeclared builtins
12796See \`config.log' for more details" "$LINENO" 5; } ;; #(
12797  'none needed') :
12798    ac_c_undeclared_builtin_options='' ;; #(
12799  *) :
12800    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12801esac
12802
12803
12804
12805
12806
12807ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12808if test "x$ac_cv_have_decl___clang__" = xyes
12809then :
12810  CLANGCC="yes"
12811else $as_nop
12812  CLANGCC="no"
12813fi
12814ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12815if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12816then :
12817  INTELCC="yes"
12818else $as_nop
12819  INTELCC="no"
12820fi
12821ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12822if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12823then :
12824  SUNCC="yes"
12825else $as_nop
12826  SUNCC="no"
12827fi
12828
12829
12830
12831
12832
12833
12834
12835
12836if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12837	if test -n "$ac_tool_prefix"; then
12838  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12839set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841printf %s "checking for $ac_word... " >&6; }
12842if test ${ac_cv_path_PKG_CONFIG+y}
12843then :
12844  printf %s "(cached) " >&6
12845else $as_nop
12846  case $PKG_CONFIG in
12847  [\\/]* | ?:[\\/]*)
12848  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12849  ;;
12850  *)
12851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854  IFS=$as_save_IFS
12855  case $as_dir in #(((
12856    '') as_dir=./ ;;
12857    */) ;;
12858    *) as_dir=$as_dir/ ;;
12859  esac
12860    for ac_exec_ext in '' $ac_executable_extensions; do
12861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12862    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12864    break 2
12865  fi
12866done
12867  done
12868IFS=$as_save_IFS
12869
12870  ;;
12871esac
12872fi
12873PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12874if test -n "$PKG_CONFIG"; then
12875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12876printf "%s\n" "$PKG_CONFIG" >&6; }
12877else
12878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879printf "%s\n" "no" >&6; }
12880fi
12881
12882
12883fi
12884if test -z "$ac_cv_path_PKG_CONFIG"; then
12885  ac_pt_PKG_CONFIG=$PKG_CONFIG
12886  # Extract the first word of "pkg-config", so it can be a program name with args.
12887set dummy pkg-config; ac_word=$2
12888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889printf %s "checking for $ac_word... " >&6; }
12890if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12891then :
12892  printf %s "(cached) " >&6
12893else $as_nop
12894  case $ac_pt_PKG_CONFIG in
12895  [\\/]* | ?:[\\/]*)
12896  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12897  ;;
12898  *)
12899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902  IFS=$as_save_IFS
12903  case $as_dir in #(((
12904    '') as_dir=./ ;;
12905    */) ;;
12906    *) as_dir=$as_dir/ ;;
12907  esac
12908    for ac_exec_ext in '' $ac_executable_extensions; do
12909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12910    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12912    break 2
12913  fi
12914done
12915  done
12916IFS=$as_save_IFS
12917
12918  ;;
12919esac
12920fi
12921ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12922if test -n "$ac_pt_PKG_CONFIG"; then
12923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12924printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12925else
12926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927printf "%s\n" "no" >&6; }
12928fi
12929
12930  if test "x$ac_pt_PKG_CONFIG" = x; then
12931    PKG_CONFIG=""
12932  else
12933    case $cross_compiling:$ac_tool_warned in
12934yes:)
12935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12937ac_tool_warned=yes ;;
12938esac
12939    PKG_CONFIG=$ac_pt_PKG_CONFIG
12940  fi
12941else
12942  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12943fi
12944
12945fi
12946if test -n "$PKG_CONFIG"; then
12947	_pkg_min_version=0.9.0
12948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12949printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12950	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952printf "%s\n" "yes" >&6; }
12953	else
12954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955printf "%s\n" "no" >&6; }
12956		PKG_CONFIG=""
12957	fi
12958fi
12959
12960
12961
12962
12963
12964# Check whether --enable-selective-werror was given.
12965if test ${enable_selective_werror+y}
12966then :
12967  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12968else $as_nop
12969  SELECTIVE_WERROR=yes
12970fi
12971
12972
12973
12974
12975
12976# -v is too short to test reliably with XORG_TESTSET_CFLAG
12977if test "x$SUNCC" = "xyes"; then
12978    BASE_CFLAGS="-v"
12979else
12980    BASE_CFLAGS=""
12981fi
12982
12983# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997xorg_testset_save_CFLAGS="$CFLAGS"
12998
12999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13004then :
13005  printf %s "(cached) " >&6
13006else $as_nop
13007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h.  */
13009int i;
13010_ACEOF
13011if ac_fn_c_try_compile "$LINENO"
13012then :
13013  xorg_cv_cc_flag_unknown_warning_option=yes
13014else $as_nop
13015  xorg_cv_cc_flag_unknown_warning_option=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13018fi
13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13022	CFLAGS="$xorg_testset_save_CFLAGS"
13023fi
13024
13025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13028	fi
13029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13033then :
13034  printf %s "(cached) " >&6
13035else $as_nop
13036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037/* end confdefs.h.  */
13038int i;
13039_ACEOF
13040if ac_fn_c_try_compile "$LINENO"
13041then :
13042  xorg_cv_cc_flag_unused_command_line_argument=yes
13043else $as_nop
13044  xorg_cv_cc_flag_unused_command_line_argument=no
13045fi
13046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13047fi
13048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13051	CFLAGS="$xorg_testset_save_CFLAGS"
13052fi
13053
13054found="no"
13055
13056	if test $found = "no" ; then
13057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13059		fi
13060
13061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063		fi
13064
13065		CFLAGS="$CFLAGS -Wall"
13066
13067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13068printf %s "checking if $CC supports -Wall... " >&6; }
13069		cacheid=xorg_cv_cc_flag__Wall
13070		if eval test \${$cacheid+y}
13071then :
13072  printf %s "(cached) " >&6
13073else $as_nop
13074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076int i;
13077int
13078main (void)
13079{
13080
13081  ;
13082  return 0;
13083}
13084_ACEOF
13085if ac_fn_c_try_link "$LINENO"
13086then :
13087  eval $cacheid=yes
13088else $as_nop
13089  eval $cacheid=no
13090fi
13091rm -f core conftest.err conftest.$ac_objext conftest.beam \
13092    conftest$ac_exeext conftest.$ac_ext
13093fi
13094
13095
13096		CFLAGS="$xorg_testset_save_CFLAGS"
13097
13098		eval supported=\$$cacheid
13099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13100printf "%s\n" "$supported" >&6; }
13101		if test "$supported" = "yes" ; then
13102			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13103			found="yes"
13104		fi
13105	fi
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121xorg_testset_save_CFLAGS="$CFLAGS"
13122
13123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13127if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13128then :
13129  printf %s "(cached) " >&6
13130else $as_nop
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133int i;
13134_ACEOF
13135if ac_fn_c_try_compile "$LINENO"
13136then :
13137  xorg_cv_cc_flag_unknown_warning_option=yes
13138else $as_nop
13139  xorg_cv_cc_flag_unknown_warning_option=no
13140fi
13141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13142fi
13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13146	CFLAGS="$xorg_testset_save_CFLAGS"
13147fi
13148
13149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13152	fi
13153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13156if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13157then :
13158  printf %s "(cached) " >&6
13159else $as_nop
13160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161/* end confdefs.h.  */
13162int i;
13163_ACEOF
13164if ac_fn_c_try_compile "$LINENO"
13165then :
13166  xorg_cv_cc_flag_unused_command_line_argument=yes
13167else $as_nop
13168  xorg_cv_cc_flag_unused_command_line_argument=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13171fi
13172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13175	CFLAGS="$xorg_testset_save_CFLAGS"
13176fi
13177
13178found="no"
13179
13180	if test $found = "no" ; then
13181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183		fi
13184
13185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187		fi
13188
13189		CFLAGS="$CFLAGS -Wpointer-arith"
13190
13191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13192printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13193		cacheid=xorg_cv_cc_flag__Wpointer_arith
13194		if eval test \${$cacheid+y}
13195then :
13196  printf %s "(cached) " >&6
13197else $as_nop
13198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h.  */
13200int i;
13201int
13202main (void)
13203{
13204
13205  ;
13206  return 0;
13207}
13208_ACEOF
13209if ac_fn_c_try_link "$LINENO"
13210then :
13211  eval $cacheid=yes
13212else $as_nop
13213  eval $cacheid=no
13214fi
13215rm -f core conftest.err conftest.$ac_objext conftest.beam \
13216    conftest$ac_exeext conftest.$ac_ext
13217fi
13218
13219
13220		CFLAGS="$xorg_testset_save_CFLAGS"
13221
13222		eval supported=\$$cacheid
13223		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13224printf "%s\n" "$supported" >&6; }
13225		if test "$supported" = "yes" ; then
13226			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13227			found="yes"
13228		fi
13229	fi
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245xorg_testset_save_CFLAGS="$CFLAGS"
13246
13247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13251if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13252then :
13253  printf %s "(cached) " >&6
13254else $as_nop
13255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h.  */
13257int i;
13258_ACEOF
13259if ac_fn_c_try_compile "$LINENO"
13260then :
13261  xorg_cv_cc_flag_unknown_warning_option=yes
13262else $as_nop
13263  xorg_cv_cc_flag_unknown_warning_option=no
13264fi
13265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13266fi
13267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13270	CFLAGS="$xorg_testset_save_CFLAGS"
13271fi
13272
13273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276	fi
13277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13280if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13281then :
13282  printf %s "(cached) " >&6
13283else $as_nop
13284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285/* end confdefs.h.  */
13286int i;
13287_ACEOF
13288if ac_fn_c_try_compile "$LINENO"
13289then :
13290  xorg_cv_cc_flag_unused_command_line_argument=yes
13291else $as_nop
13292  xorg_cv_cc_flag_unused_command_line_argument=no
13293fi
13294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13295fi
13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13299	CFLAGS="$xorg_testset_save_CFLAGS"
13300fi
13301
13302found="no"
13303
13304	if test $found = "no" ; then
13305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13307		fi
13308
13309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13311		fi
13312
13313		CFLAGS="$CFLAGS -Wmissing-declarations"
13314
13315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13316printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13317		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13318		if eval test \${$cacheid+y}
13319then :
13320  printf %s "(cached) " >&6
13321else $as_nop
13322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324int i;
13325int
13326main (void)
13327{
13328
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333if ac_fn_c_try_link "$LINENO"
13334then :
13335  eval $cacheid=yes
13336else $as_nop
13337  eval $cacheid=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.beam \
13340    conftest$ac_exeext conftest.$ac_ext
13341fi
13342
13343
13344		CFLAGS="$xorg_testset_save_CFLAGS"
13345
13346		eval supported=\$$cacheid
13347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13348printf "%s\n" "$supported" >&6; }
13349		if test "$supported" = "yes" ; then
13350			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13351			found="yes"
13352		fi
13353	fi
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369xorg_testset_save_CFLAGS="$CFLAGS"
13370
13371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13376then :
13377  printf %s "(cached) " >&6
13378else $as_nop
13379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h.  */
13381int i;
13382_ACEOF
13383if ac_fn_c_try_compile "$LINENO"
13384then :
13385  xorg_cv_cc_flag_unknown_warning_option=yes
13386else $as_nop
13387  xorg_cv_cc_flag_unknown_warning_option=no
13388fi
13389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13390fi
13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13394	CFLAGS="$xorg_testset_save_CFLAGS"
13395fi
13396
13397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13400	fi
13401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13405then :
13406  printf %s "(cached) " >&6
13407else $as_nop
13408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409/* end confdefs.h.  */
13410int i;
13411_ACEOF
13412if ac_fn_c_try_compile "$LINENO"
13413then :
13414  xorg_cv_cc_flag_unused_command_line_argument=yes
13415else $as_nop
13416  xorg_cv_cc_flag_unused_command_line_argument=no
13417fi
13418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13419fi
13420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13423	CFLAGS="$xorg_testset_save_CFLAGS"
13424fi
13425
13426found="no"
13427
13428	if test $found = "no" ; then
13429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13431		fi
13432
13433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13435		fi
13436
13437		CFLAGS="$CFLAGS -Wformat=2"
13438
13439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13440printf %s "checking if $CC supports -Wformat=2... " >&6; }
13441		cacheid=xorg_cv_cc_flag__Wformat_2
13442		if eval test \${$cacheid+y}
13443then :
13444  printf %s "(cached) " >&6
13445else $as_nop
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448int i;
13449int
13450main (void)
13451{
13452
13453  ;
13454  return 0;
13455}
13456_ACEOF
13457if ac_fn_c_try_link "$LINENO"
13458then :
13459  eval $cacheid=yes
13460else $as_nop
13461  eval $cacheid=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.beam \
13464    conftest$ac_exeext conftest.$ac_ext
13465fi
13466
13467
13468		CFLAGS="$xorg_testset_save_CFLAGS"
13469
13470		eval supported=\$$cacheid
13471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13472printf "%s\n" "$supported" >&6; }
13473		if test "$supported" = "yes" ; then
13474			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13475			found="yes"
13476		fi
13477	fi
13478
13479	if test $found = "no" ; then
13480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13482		fi
13483
13484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13486		fi
13487
13488		CFLAGS="$CFLAGS -Wformat"
13489
13490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13491printf %s "checking if $CC supports -Wformat... " >&6; }
13492		cacheid=xorg_cv_cc_flag__Wformat
13493		if eval test \${$cacheid+y}
13494then :
13495  printf %s "(cached) " >&6
13496else $as_nop
13497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499int i;
13500int
13501main (void)
13502{
13503
13504  ;
13505  return 0;
13506}
13507_ACEOF
13508if ac_fn_c_try_link "$LINENO"
13509then :
13510  eval $cacheid=yes
13511else $as_nop
13512  eval $cacheid=no
13513fi
13514rm -f core conftest.err conftest.$ac_objext conftest.beam \
13515    conftest$ac_exeext conftest.$ac_ext
13516fi
13517
13518
13519		CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521		eval supported=\$$cacheid
13522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13523printf "%s\n" "$supported" >&6; }
13524		if test "$supported" = "yes" ; then
13525			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13526			found="yes"
13527		fi
13528	fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546xorg_testset_save_CFLAGS="$CFLAGS"
13547
13548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13552if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13553then :
13554  printf %s "(cached) " >&6
13555else $as_nop
13556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h.  */
13558int i;
13559_ACEOF
13560if ac_fn_c_try_compile "$LINENO"
13561then :
13562  xorg_cv_cc_flag_unknown_warning_option=yes
13563else $as_nop
13564  xorg_cv_cc_flag_unknown_warning_option=no
13565fi
13566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13567fi
13568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13571	CFLAGS="$xorg_testset_save_CFLAGS"
13572fi
13573
13574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13577	fi
13578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13581if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13582then :
13583  printf %s "(cached) " >&6
13584else $as_nop
13585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586/* end confdefs.h.  */
13587int i;
13588_ACEOF
13589if ac_fn_c_try_compile "$LINENO"
13590then :
13591  xorg_cv_cc_flag_unused_command_line_argument=yes
13592else $as_nop
13593  xorg_cv_cc_flag_unused_command_line_argument=no
13594fi
13595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13596fi
13597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13598printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13600	CFLAGS="$xorg_testset_save_CFLAGS"
13601fi
13602
13603found="no"
13604
13605	if test $found = "no" ; then
13606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13608		fi
13609
13610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13612		fi
13613
13614		CFLAGS="$CFLAGS -Wstrict-prototypes"
13615
13616		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13617printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13618		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13619		if eval test \${$cacheid+y}
13620then :
13621  printf %s "(cached) " >&6
13622else $as_nop
13623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624/* end confdefs.h.  */
13625int i;
13626int
13627main (void)
13628{
13629
13630  ;
13631  return 0;
13632}
13633_ACEOF
13634if ac_fn_c_try_link "$LINENO"
13635then :
13636  eval $cacheid=yes
13637else $as_nop
13638  eval $cacheid=no
13639fi
13640rm -f core conftest.err conftest.$ac_objext conftest.beam \
13641    conftest$ac_exeext conftest.$ac_ext
13642fi
13643
13644
13645		CFLAGS="$xorg_testset_save_CFLAGS"
13646
13647		eval supported=\$$cacheid
13648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13649printf "%s\n" "$supported" >&6; }
13650		if test "$supported" = "yes" ; then
13651			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13652			found="yes"
13653		fi
13654	fi
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670xorg_testset_save_CFLAGS="$CFLAGS"
13671
13672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13676if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13677then :
13678  printf %s "(cached) " >&6
13679else $as_nop
13680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h.  */
13682int i;
13683_ACEOF
13684if ac_fn_c_try_compile "$LINENO"
13685then :
13686  xorg_cv_cc_flag_unknown_warning_option=yes
13687else $as_nop
13688  xorg_cv_cc_flag_unknown_warning_option=no
13689fi
13690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13691fi
13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13695	CFLAGS="$xorg_testset_save_CFLAGS"
13696fi
13697
13698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13701	fi
13702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13705if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13706then :
13707  printf %s "(cached) " >&6
13708else $as_nop
13709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710/* end confdefs.h.  */
13711int i;
13712_ACEOF
13713if ac_fn_c_try_compile "$LINENO"
13714then :
13715  xorg_cv_cc_flag_unused_command_line_argument=yes
13716else $as_nop
13717  xorg_cv_cc_flag_unused_command_line_argument=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13720fi
13721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13724	CFLAGS="$xorg_testset_save_CFLAGS"
13725fi
13726
13727found="no"
13728
13729	if test $found = "no" ; then
13730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732		fi
13733
13734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13736		fi
13737
13738		CFLAGS="$CFLAGS -Wmissing-prototypes"
13739
13740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13741printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13742		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13743		if eval test \${$cacheid+y}
13744then :
13745  printf %s "(cached) " >&6
13746else $as_nop
13747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748/* end confdefs.h.  */
13749int i;
13750int
13751main (void)
13752{
13753
13754  ;
13755  return 0;
13756}
13757_ACEOF
13758if ac_fn_c_try_link "$LINENO"
13759then :
13760  eval $cacheid=yes
13761else $as_nop
13762  eval $cacheid=no
13763fi
13764rm -f core conftest.err conftest.$ac_objext conftest.beam \
13765    conftest$ac_exeext conftest.$ac_ext
13766fi
13767
13768
13769		CFLAGS="$xorg_testset_save_CFLAGS"
13770
13771		eval supported=\$$cacheid
13772		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13773printf "%s\n" "$supported" >&6; }
13774		if test "$supported" = "yes" ; then
13775			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13776			found="yes"
13777		fi
13778	fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794xorg_testset_save_CFLAGS="$CFLAGS"
13795
13796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13800if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13801then :
13802  printf %s "(cached) " >&6
13803else $as_nop
13804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805/* end confdefs.h.  */
13806int i;
13807_ACEOF
13808if ac_fn_c_try_compile "$LINENO"
13809then :
13810  xorg_cv_cc_flag_unknown_warning_option=yes
13811else $as_nop
13812  xorg_cv_cc_flag_unknown_warning_option=no
13813fi
13814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13815fi
13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13819	CFLAGS="$xorg_testset_save_CFLAGS"
13820fi
13821
13822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825	fi
13826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13829if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13830then :
13831  printf %s "(cached) " >&6
13832else $as_nop
13833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h.  */
13835int i;
13836_ACEOF
13837if ac_fn_c_try_compile "$LINENO"
13838then :
13839  xorg_cv_cc_flag_unused_command_line_argument=yes
13840else $as_nop
13841  xorg_cv_cc_flag_unused_command_line_argument=no
13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13844fi
13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13848	CFLAGS="$xorg_testset_save_CFLAGS"
13849fi
13850
13851found="no"
13852
13853	if test $found = "no" ; then
13854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856		fi
13857
13858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13860		fi
13861
13862		CFLAGS="$CFLAGS -Wnested-externs"
13863
13864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13865printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13866		cacheid=xorg_cv_cc_flag__Wnested_externs
13867		if eval test \${$cacheid+y}
13868then :
13869  printf %s "(cached) " >&6
13870else $as_nop
13871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873int i;
13874int
13875main (void)
13876{
13877
13878  ;
13879  return 0;
13880}
13881_ACEOF
13882if ac_fn_c_try_link "$LINENO"
13883then :
13884  eval $cacheid=yes
13885else $as_nop
13886  eval $cacheid=no
13887fi
13888rm -f core conftest.err conftest.$ac_objext conftest.beam \
13889    conftest$ac_exeext conftest.$ac_ext
13890fi
13891
13892
13893		CFLAGS="$xorg_testset_save_CFLAGS"
13894
13895		eval supported=\$$cacheid
13896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13897printf "%s\n" "$supported" >&6; }
13898		if test "$supported" = "yes" ; then
13899			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13900			found="yes"
13901		fi
13902	fi
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918xorg_testset_save_CFLAGS="$CFLAGS"
13919
13920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13925then :
13926  printf %s "(cached) " >&6
13927else $as_nop
13928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930int i;
13931_ACEOF
13932if ac_fn_c_try_compile "$LINENO"
13933then :
13934  xorg_cv_cc_flag_unknown_warning_option=yes
13935else $as_nop
13936  xorg_cv_cc_flag_unknown_warning_option=no
13937fi
13938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13939fi
13940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13943	CFLAGS="$xorg_testset_save_CFLAGS"
13944fi
13945
13946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13949	fi
13950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13953if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13954then :
13955  printf %s "(cached) " >&6
13956else $as_nop
13957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958/* end confdefs.h.  */
13959int i;
13960_ACEOF
13961if ac_fn_c_try_compile "$LINENO"
13962then :
13963  xorg_cv_cc_flag_unused_command_line_argument=yes
13964else $as_nop
13965  xorg_cv_cc_flag_unused_command_line_argument=no
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13968fi
13969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13972	CFLAGS="$xorg_testset_save_CFLAGS"
13973fi
13974
13975found="no"
13976
13977	if test $found = "no" ; then
13978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980		fi
13981
13982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984		fi
13985
13986		CFLAGS="$CFLAGS -Wbad-function-cast"
13987
13988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13989printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13990		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13991		if eval test \${$cacheid+y}
13992then :
13993  printf %s "(cached) " >&6
13994else $as_nop
13995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996/* end confdefs.h.  */
13997int i;
13998int
13999main (void)
14000{
14001
14002  ;
14003  return 0;
14004}
14005_ACEOF
14006if ac_fn_c_try_link "$LINENO"
14007then :
14008  eval $cacheid=yes
14009else $as_nop
14010  eval $cacheid=no
14011fi
14012rm -f core conftest.err conftest.$ac_objext conftest.beam \
14013    conftest$ac_exeext conftest.$ac_ext
14014fi
14015
14016
14017		CFLAGS="$xorg_testset_save_CFLAGS"
14018
14019		eval supported=\$$cacheid
14020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14021printf "%s\n" "$supported" >&6; }
14022		if test "$supported" = "yes" ; then
14023			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14024			found="yes"
14025		fi
14026	fi
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042xorg_testset_save_CFLAGS="$CFLAGS"
14043
14044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14049then :
14050  printf %s "(cached) " >&6
14051else $as_nop
14052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053/* end confdefs.h.  */
14054int i;
14055_ACEOF
14056if ac_fn_c_try_compile "$LINENO"
14057then :
14058  xorg_cv_cc_flag_unknown_warning_option=yes
14059else $as_nop
14060  xorg_cv_cc_flag_unknown_warning_option=no
14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14063fi
14064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14067	CFLAGS="$xorg_testset_save_CFLAGS"
14068fi
14069
14070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073	fi
14074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14078then :
14079  printf %s "(cached) " >&6
14080else $as_nop
14081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082/* end confdefs.h.  */
14083int i;
14084_ACEOF
14085if ac_fn_c_try_compile "$LINENO"
14086then :
14087  xorg_cv_cc_flag_unused_command_line_argument=yes
14088else $as_nop
14089  xorg_cv_cc_flag_unused_command_line_argument=no
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14092fi
14093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14096	CFLAGS="$xorg_testset_save_CFLAGS"
14097fi
14098
14099found="no"
14100
14101	if test $found = "no" ; then
14102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104		fi
14105
14106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14108		fi
14109
14110		CFLAGS="$CFLAGS -Wold-style-definition"
14111
14112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14113printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14114		cacheid=xorg_cv_cc_flag__Wold_style_definition
14115		if eval test \${$cacheid+y}
14116then :
14117  printf %s "(cached) " >&6
14118else $as_nop
14119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120/* end confdefs.h.  */
14121int i;
14122int
14123main (void)
14124{
14125
14126  ;
14127  return 0;
14128}
14129_ACEOF
14130if ac_fn_c_try_link "$LINENO"
14131then :
14132  eval $cacheid=yes
14133else $as_nop
14134  eval $cacheid=no
14135fi
14136rm -f core conftest.err conftest.$ac_objext conftest.beam \
14137    conftest$ac_exeext conftest.$ac_ext
14138fi
14139
14140
14141		CFLAGS="$xorg_testset_save_CFLAGS"
14142
14143		eval supported=\$$cacheid
14144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14145printf "%s\n" "$supported" >&6; }
14146		if test "$supported" = "yes" ; then
14147			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14148			found="yes"
14149		fi
14150	fi
14151
14152	if test $found = "no" ; then
14153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155		fi
14156
14157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14159		fi
14160
14161		CFLAGS="$CFLAGS -fd"
14162
14163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14164printf %s "checking if $CC supports -fd... " >&6; }
14165		cacheid=xorg_cv_cc_flag__fd
14166		if eval test \${$cacheid+y}
14167then :
14168  printf %s "(cached) " >&6
14169else $as_nop
14170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171/* end confdefs.h.  */
14172int i;
14173int
14174main (void)
14175{
14176
14177  ;
14178  return 0;
14179}
14180_ACEOF
14181if ac_fn_c_try_link "$LINENO"
14182then :
14183  eval $cacheid=yes
14184else $as_nop
14185  eval $cacheid=no
14186fi
14187rm -f core conftest.err conftest.$ac_objext conftest.beam \
14188    conftest$ac_exeext conftest.$ac_ext
14189fi
14190
14191
14192		CFLAGS="$xorg_testset_save_CFLAGS"
14193
14194		eval supported=\$$cacheid
14195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14196printf "%s\n" "$supported" >&6; }
14197		if test "$supported" = "yes" ; then
14198			BASE_CFLAGS="$BASE_CFLAGS -fd"
14199			found="yes"
14200		fi
14201	fi
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217xorg_testset_save_CFLAGS="$CFLAGS"
14218
14219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14223if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14224then :
14225  printf %s "(cached) " >&6
14226else $as_nop
14227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228/* end confdefs.h.  */
14229int i;
14230_ACEOF
14231if ac_fn_c_try_compile "$LINENO"
14232then :
14233  xorg_cv_cc_flag_unknown_warning_option=yes
14234else $as_nop
14235  xorg_cv_cc_flag_unknown_warning_option=no
14236fi
14237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14238fi
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14242	CFLAGS="$xorg_testset_save_CFLAGS"
14243fi
14244
14245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248	fi
14249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14252if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14253then :
14254  printf %s "(cached) " >&6
14255else $as_nop
14256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h.  */
14258int i;
14259_ACEOF
14260if ac_fn_c_try_compile "$LINENO"
14261then :
14262  xorg_cv_cc_flag_unused_command_line_argument=yes
14263else $as_nop
14264  xorg_cv_cc_flag_unused_command_line_argument=no
14265fi
14266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14267fi
14268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14271	CFLAGS="$xorg_testset_save_CFLAGS"
14272fi
14273
14274found="no"
14275
14276	if test $found = "no" ; then
14277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14279		fi
14280
14281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283		fi
14284
14285		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14286
14287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14288printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14289		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14290		if eval test \${$cacheid+y}
14291then :
14292  printf %s "(cached) " >&6
14293else $as_nop
14294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h.  */
14296int i;
14297int
14298main (void)
14299{
14300
14301  ;
14302  return 0;
14303}
14304_ACEOF
14305if ac_fn_c_try_link "$LINENO"
14306then :
14307  eval $cacheid=yes
14308else $as_nop
14309  eval $cacheid=no
14310fi
14311rm -f core conftest.err conftest.$ac_objext conftest.beam \
14312    conftest$ac_exeext conftest.$ac_ext
14313fi
14314
14315
14316		CFLAGS="$xorg_testset_save_CFLAGS"
14317
14318		eval supported=\$$cacheid
14319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14320printf "%s\n" "$supported" >&6; }
14321		if test "$supported" = "yes" ; then
14322			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14323			found="yes"
14324		fi
14325	fi
14326
14327
14328
14329
14330
14331# This chunk adds additional warnings that could catch undesired effects.
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345xorg_testset_save_CFLAGS="$CFLAGS"
14346
14347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14351if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14352then :
14353  printf %s "(cached) " >&6
14354else $as_nop
14355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356/* end confdefs.h.  */
14357int i;
14358_ACEOF
14359if ac_fn_c_try_compile "$LINENO"
14360then :
14361  xorg_cv_cc_flag_unknown_warning_option=yes
14362else $as_nop
14363  xorg_cv_cc_flag_unknown_warning_option=no
14364fi
14365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14366fi
14367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14370	CFLAGS="$xorg_testset_save_CFLAGS"
14371fi
14372
14373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376	fi
14377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14381then :
14382  printf %s "(cached) " >&6
14383else $as_nop
14384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h.  */
14386int i;
14387_ACEOF
14388if ac_fn_c_try_compile "$LINENO"
14389then :
14390  xorg_cv_cc_flag_unused_command_line_argument=yes
14391else $as_nop
14392  xorg_cv_cc_flag_unused_command_line_argument=no
14393fi
14394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14395fi
14396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14399	CFLAGS="$xorg_testset_save_CFLAGS"
14400fi
14401
14402found="no"
14403
14404	if test $found = "no" ; then
14405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14407		fi
14408
14409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14411		fi
14412
14413		CFLAGS="$CFLAGS -Wunused"
14414
14415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14416printf %s "checking if $CC supports -Wunused... " >&6; }
14417		cacheid=xorg_cv_cc_flag__Wunused
14418		if eval test \${$cacheid+y}
14419then :
14420  printf %s "(cached) " >&6
14421else $as_nop
14422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423/* end confdefs.h.  */
14424int i;
14425int
14426main (void)
14427{
14428
14429  ;
14430  return 0;
14431}
14432_ACEOF
14433if ac_fn_c_try_link "$LINENO"
14434then :
14435  eval $cacheid=yes
14436else $as_nop
14437  eval $cacheid=no
14438fi
14439rm -f core conftest.err conftest.$ac_objext conftest.beam \
14440    conftest$ac_exeext conftest.$ac_ext
14441fi
14442
14443
14444		CFLAGS="$xorg_testset_save_CFLAGS"
14445
14446		eval supported=\$$cacheid
14447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14448printf "%s\n" "$supported" >&6; }
14449		if test "$supported" = "yes" ; then
14450			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14451			found="yes"
14452		fi
14453	fi
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469xorg_testset_save_CFLAGS="$CFLAGS"
14470
14471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14476then :
14477  printf %s "(cached) " >&6
14478else $as_nop
14479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h.  */
14481int i;
14482_ACEOF
14483if ac_fn_c_try_compile "$LINENO"
14484then :
14485  xorg_cv_cc_flag_unknown_warning_option=yes
14486else $as_nop
14487  xorg_cv_cc_flag_unknown_warning_option=no
14488fi
14489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14490fi
14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14494	CFLAGS="$xorg_testset_save_CFLAGS"
14495fi
14496
14497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14500	fi
14501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14504if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14505then :
14506  printf %s "(cached) " >&6
14507else $as_nop
14508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510int i;
14511_ACEOF
14512if ac_fn_c_try_compile "$LINENO"
14513then :
14514  xorg_cv_cc_flag_unused_command_line_argument=yes
14515else $as_nop
14516  xorg_cv_cc_flag_unused_command_line_argument=no
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14519fi
14520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14523	CFLAGS="$xorg_testset_save_CFLAGS"
14524fi
14525
14526found="no"
14527
14528	if test $found = "no" ; then
14529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14531		fi
14532
14533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14535		fi
14536
14537		CFLAGS="$CFLAGS -Wuninitialized"
14538
14539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14540printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14541		cacheid=xorg_cv_cc_flag__Wuninitialized
14542		if eval test \${$cacheid+y}
14543then :
14544  printf %s "(cached) " >&6
14545else $as_nop
14546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547/* end confdefs.h.  */
14548int i;
14549int
14550main (void)
14551{
14552
14553  ;
14554  return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_link "$LINENO"
14558then :
14559  eval $cacheid=yes
14560else $as_nop
14561  eval $cacheid=no
14562fi
14563rm -f core conftest.err conftest.$ac_objext conftest.beam \
14564    conftest$ac_exeext conftest.$ac_ext
14565fi
14566
14567
14568		CFLAGS="$xorg_testset_save_CFLAGS"
14569
14570		eval supported=\$$cacheid
14571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14572printf "%s\n" "$supported" >&6; }
14573		if test "$supported" = "yes" ; then
14574			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14575			found="yes"
14576		fi
14577	fi
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593xorg_testset_save_CFLAGS="$CFLAGS"
14594
14595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14599if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14600then :
14601  printf %s "(cached) " >&6
14602else $as_nop
14603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604/* end confdefs.h.  */
14605int i;
14606_ACEOF
14607if ac_fn_c_try_compile "$LINENO"
14608then :
14609  xorg_cv_cc_flag_unknown_warning_option=yes
14610else $as_nop
14611  xorg_cv_cc_flag_unknown_warning_option=no
14612fi
14613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14614fi
14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14618	CFLAGS="$xorg_testset_save_CFLAGS"
14619fi
14620
14621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14624	fi
14625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14628if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14629then :
14630  printf %s "(cached) " >&6
14631else $as_nop
14632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h.  */
14634int i;
14635_ACEOF
14636if ac_fn_c_try_compile "$LINENO"
14637then :
14638  xorg_cv_cc_flag_unused_command_line_argument=yes
14639else $as_nop
14640  xorg_cv_cc_flag_unused_command_line_argument=no
14641fi
14642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643fi
14644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14647	CFLAGS="$xorg_testset_save_CFLAGS"
14648fi
14649
14650found="no"
14651
14652	if test $found = "no" ; then
14653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14655		fi
14656
14657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14659		fi
14660
14661		CFLAGS="$CFLAGS -Wshadow"
14662
14663		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14664printf %s "checking if $CC supports -Wshadow... " >&6; }
14665		cacheid=xorg_cv_cc_flag__Wshadow
14666		if eval test \${$cacheid+y}
14667then :
14668  printf %s "(cached) " >&6
14669else $as_nop
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673int
14674main (void)
14675{
14676
14677  ;
14678  return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_link "$LINENO"
14682then :
14683  eval $cacheid=yes
14684else $as_nop
14685  eval $cacheid=no
14686fi
14687rm -f core conftest.err conftest.$ac_objext conftest.beam \
14688    conftest$ac_exeext conftest.$ac_ext
14689fi
14690
14691
14692		CFLAGS="$xorg_testset_save_CFLAGS"
14693
14694		eval supported=\$$cacheid
14695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14696printf "%s\n" "$supported" >&6; }
14697		if test "$supported" = "yes" ; then
14698			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14699			found="yes"
14700		fi
14701	fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717xorg_testset_save_CFLAGS="$CFLAGS"
14718
14719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14723if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14724then :
14725  printf %s "(cached) " >&6
14726else $as_nop
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"
14732then :
14733  xorg_cv_cc_flag_unknown_warning_option=yes
14734else $as_nop
14735  xorg_cv_cc_flag_unknown_warning_option=no
14736fi
14737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14738fi
14739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14742	CFLAGS="$xorg_testset_save_CFLAGS"
14743fi
14744
14745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14748	fi
14749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14752if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14753then :
14754  printf %s "(cached) " >&6
14755else $as_nop
14756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758int i;
14759_ACEOF
14760if ac_fn_c_try_compile "$LINENO"
14761then :
14762  xorg_cv_cc_flag_unused_command_line_argument=yes
14763else $as_nop
14764  xorg_cv_cc_flag_unused_command_line_argument=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14767fi
14768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771	CFLAGS="$xorg_testset_save_CFLAGS"
14772fi
14773
14774found="no"
14775
14776	if test $found = "no" ; then
14777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779		fi
14780
14781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783		fi
14784
14785		CFLAGS="$CFLAGS -Wmissing-noreturn"
14786
14787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14788printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14789		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14790		if eval test \${$cacheid+y}
14791then :
14792  printf %s "(cached) " >&6
14793else $as_nop
14794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795/* end confdefs.h.  */
14796int i;
14797int
14798main (void)
14799{
14800
14801  ;
14802  return 0;
14803}
14804_ACEOF
14805if ac_fn_c_try_link "$LINENO"
14806then :
14807  eval $cacheid=yes
14808else $as_nop
14809  eval $cacheid=no
14810fi
14811rm -f core conftest.err conftest.$ac_objext conftest.beam \
14812    conftest$ac_exeext conftest.$ac_ext
14813fi
14814
14815
14816		CFLAGS="$xorg_testset_save_CFLAGS"
14817
14818		eval supported=\$$cacheid
14819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14820printf "%s\n" "$supported" >&6; }
14821		if test "$supported" = "yes" ; then
14822			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14823			found="yes"
14824		fi
14825	fi
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841xorg_testset_save_CFLAGS="$CFLAGS"
14842
14843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14847if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14848then :
14849  printf %s "(cached) " >&6
14850else $as_nop
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854_ACEOF
14855if ac_fn_c_try_compile "$LINENO"
14856then :
14857  xorg_cv_cc_flag_unknown_warning_option=yes
14858else $as_nop
14859  xorg_cv_cc_flag_unknown_warning_option=no
14860fi
14861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14862fi
14863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14866	CFLAGS="$xorg_testset_save_CFLAGS"
14867fi
14868
14869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14872	fi
14873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14877then :
14878  printf %s "(cached) " >&6
14879else $as_nop
14880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881/* end confdefs.h.  */
14882int i;
14883_ACEOF
14884if ac_fn_c_try_compile "$LINENO"
14885then :
14886  xorg_cv_cc_flag_unused_command_line_argument=yes
14887else $as_nop
14888  xorg_cv_cc_flag_unused_command_line_argument=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14891fi
14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14895	CFLAGS="$xorg_testset_save_CFLAGS"
14896fi
14897
14898found="no"
14899
14900	if test $found = "no" ; then
14901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14903		fi
14904
14905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14907		fi
14908
14909		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14910
14911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14912printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14913		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14914		if eval test \${$cacheid+y}
14915then :
14916  printf %s "(cached) " >&6
14917else $as_nop
14918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h.  */
14920int i;
14921int
14922main (void)
14923{
14924
14925  ;
14926  return 0;
14927}
14928_ACEOF
14929if ac_fn_c_try_link "$LINENO"
14930then :
14931  eval $cacheid=yes
14932else $as_nop
14933  eval $cacheid=no
14934fi
14935rm -f core conftest.err conftest.$ac_objext conftest.beam \
14936    conftest$ac_exeext conftest.$ac_ext
14937fi
14938
14939
14940		CFLAGS="$xorg_testset_save_CFLAGS"
14941
14942		eval supported=\$$cacheid
14943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14944printf "%s\n" "$supported" >&6; }
14945		if test "$supported" = "yes" ; then
14946			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14947			found="yes"
14948		fi
14949	fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965xorg_testset_save_CFLAGS="$CFLAGS"
14966
14967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14972then :
14973  printf %s "(cached) " >&6
14974else $as_nop
14975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h.  */
14977int i;
14978_ACEOF
14979if ac_fn_c_try_compile "$LINENO"
14980then :
14981  xorg_cv_cc_flag_unknown_warning_option=yes
14982else $as_nop
14983  xorg_cv_cc_flag_unknown_warning_option=no
14984fi
14985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14986fi
14987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14990	CFLAGS="$xorg_testset_save_CFLAGS"
14991fi
14992
14993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14996	fi
14997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15001then :
15002  printf %s "(cached) " >&6
15003else $as_nop
15004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005/* end confdefs.h.  */
15006int i;
15007_ACEOF
15008if ac_fn_c_try_compile "$LINENO"
15009then :
15010  xorg_cv_cc_flag_unused_command_line_argument=yes
15011else $as_nop
15012  xorg_cv_cc_flag_unused_command_line_argument=no
15013fi
15014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15015fi
15016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15019	CFLAGS="$xorg_testset_save_CFLAGS"
15020fi
15021
15022found="no"
15023
15024	if test $found = "no" ; then
15025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15027		fi
15028
15029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15031		fi
15032
15033		CFLAGS="$CFLAGS -Wredundant-decls"
15034
15035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15036printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15037		cacheid=xorg_cv_cc_flag__Wredundant_decls
15038		if eval test \${$cacheid+y}
15039then :
15040  printf %s "(cached) " >&6
15041else $as_nop
15042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043/* end confdefs.h.  */
15044int i;
15045int
15046main (void)
15047{
15048
15049  ;
15050  return 0;
15051}
15052_ACEOF
15053if ac_fn_c_try_link "$LINENO"
15054then :
15055  eval $cacheid=yes
15056else $as_nop
15057  eval $cacheid=no
15058fi
15059rm -f core conftest.err conftest.$ac_objext conftest.beam \
15060    conftest$ac_exeext conftest.$ac_ext
15061fi
15062
15063
15064		CFLAGS="$xorg_testset_save_CFLAGS"
15065
15066		eval supported=\$$cacheid
15067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15068printf "%s\n" "$supported" >&6; }
15069		if test "$supported" = "yes" ; then
15070			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15071			found="yes"
15072		fi
15073	fi
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089xorg_testset_save_CFLAGS="$CFLAGS"
15090
15091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15093	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15095if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15096then :
15097  printf %s "(cached) " >&6
15098else $as_nop
15099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h.  */
15101int i;
15102_ACEOF
15103if ac_fn_c_try_compile "$LINENO"
15104then :
15105  xorg_cv_cc_flag_unknown_warning_option=yes
15106else $as_nop
15107  xorg_cv_cc_flag_unknown_warning_option=no
15108fi
15109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15110fi
15111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15114	CFLAGS="$xorg_testset_save_CFLAGS"
15115fi
15116
15117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15120	fi
15121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15124if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15125then :
15126  printf %s "(cached) " >&6
15127else $as_nop
15128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130int i;
15131_ACEOF
15132if ac_fn_c_try_compile "$LINENO"
15133then :
15134  xorg_cv_cc_flag_unused_command_line_argument=yes
15135else $as_nop
15136  xorg_cv_cc_flag_unused_command_line_argument=no
15137fi
15138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15139fi
15140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15143	CFLAGS="$xorg_testset_save_CFLAGS"
15144fi
15145
15146found="no"
15147
15148	if test $found = "no" ; then
15149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15151		fi
15152
15153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155		fi
15156
15157		CFLAGS="$CFLAGS -Wlogical-op"
15158
15159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15160printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15161		cacheid=xorg_cv_cc_flag__Wlogical_op
15162		if eval test \${$cacheid+y}
15163then :
15164  printf %s "(cached) " >&6
15165else $as_nop
15166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h.  */
15168int i;
15169int
15170main (void)
15171{
15172
15173  ;
15174  return 0;
15175}
15176_ACEOF
15177if ac_fn_c_try_link "$LINENO"
15178then :
15179  eval $cacheid=yes
15180else $as_nop
15181  eval $cacheid=no
15182fi
15183rm -f core conftest.err conftest.$ac_objext conftest.beam \
15184    conftest$ac_exeext conftest.$ac_ext
15185fi
15186
15187
15188		CFLAGS="$xorg_testset_save_CFLAGS"
15189
15190		eval supported=\$$cacheid
15191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15192printf "%s\n" "$supported" >&6; }
15193		if test "$supported" = "yes" ; then
15194			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15195			found="yes"
15196		fi
15197	fi
15198
15199
15200
15201# These are currently disabled because they are noisy.  They will be enabled
15202# in the future once the codebase is sufficiently modernized to silence
15203# them.  For now, I don't want them to drown out the other warnings.
15204# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15206# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15207
15208# Turn some warnings into errors, so we don't accidentally get successful builds
15209# when there are problems that should be fixed.
15210
15211if test "x$SELECTIVE_WERROR" = "xyes" ; then
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225xorg_testset_save_CFLAGS="$CFLAGS"
15226
15227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15232then :
15233  printf %s "(cached) " >&6
15234else $as_nop
15235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236/* end confdefs.h.  */
15237int i;
15238_ACEOF
15239if ac_fn_c_try_compile "$LINENO"
15240then :
15241  xorg_cv_cc_flag_unknown_warning_option=yes
15242else $as_nop
15243  xorg_cv_cc_flag_unknown_warning_option=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15246fi
15247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15250	CFLAGS="$xorg_testset_save_CFLAGS"
15251fi
15252
15253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15256	fi
15257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15261then :
15262  printf %s "(cached) " >&6
15263else $as_nop
15264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265/* end confdefs.h.  */
15266int i;
15267_ACEOF
15268if ac_fn_c_try_compile "$LINENO"
15269then :
15270  xorg_cv_cc_flag_unused_command_line_argument=yes
15271else $as_nop
15272  xorg_cv_cc_flag_unused_command_line_argument=no
15273fi
15274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15275fi
15276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15279	CFLAGS="$xorg_testset_save_CFLAGS"
15280fi
15281
15282found="no"
15283
15284	if test $found = "no" ; then
15285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287		fi
15288
15289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291		fi
15292
15293		CFLAGS="$CFLAGS -Werror=implicit"
15294
15295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15296printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15297		cacheid=xorg_cv_cc_flag__Werror_implicit
15298		if eval test \${$cacheid+y}
15299then :
15300  printf %s "(cached) " >&6
15301else $as_nop
15302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303/* end confdefs.h.  */
15304int i;
15305int
15306main (void)
15307{
15308
15309  ;
15310  return 0;
15311}
15312_ACEOF
15313if ac_fn_c_try_link "$LINENO"
15314then :
15315  eval $cacheid=yes
15316else $as_nop
15317  eval $cacheid=no
15318fi
15319rm -f core conftest.err conftest.$ac_objext conftest.beam \
15320    conftest$ac_exeext conftest.$ac_ext
15321fi
15322
15323
15324		CFLAGS="$xorg_testset_save_CFLAGS"
15325
15326		eval supported=\$$cacheid
15327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15328printf "%s\n" "$supported" >&6; }
15329		if test "$supported" = "yes" ; then
15330			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15331			found="yes"
15332		fi
15333	fi
15334
15335	if test $found = "no" ; then
15336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15338		fi
15339
15340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15342		fi
15343
15344		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15345
15346		{ 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
15347printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15348		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15349		if eval test \${$cacheid+y}
15350then :
15351  printf %s "(cached) " >&6
15352else $as_nop
15353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h.  */
15355int i;
15356int
15357main (void)
15358{
15359
15360  ;
15361  return 0;
15362}
15363_ACEOF
15364if ac_fn_c_try_link "$LINENO"
15365then :
15366  eval $cacheid=yes
15367else $as_nop
15368  eval $cacheid=no
15369fi
15370rm -f core conftest.err conftest.$ac_objext conftest.beam \
15371    conftest$ac_exeext conftest.$ac_ext
15372fi
15373
15374
15375		CFLAGS="$xorg_testset_save_CFLAGS"
15376
15377		eval supported=\$$cacheid
15378		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15379printf "%s\n" "$supported" >&6; }
15380		if test "$supported" = "yes" ; then
15381			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15382			found="yes"
15383		fi
15384	fi
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400xorg_testset_save_CFLAGS="$CFLAGS"
15401
15402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15406if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15407then :
15408  printf %s "(cached) " >&6
15409else $as_nop
15410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411/* end confdefs.h.  */
15412int i;
15413_ACEOF
15414if ac_fn_c_try_compile "$LINENO"
15415then :
15416  xorg_cv_cc_flag_unknown_warning_option=yes
15417else $as_nop
15418  xorg_cv_cc_flag_unknown_warning_option=no
15419fi
15420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15421fi
15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15425	CFLAGS="$xorg_testset_save_CFLAGS"
15426fi
15427
15428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431	fi
15432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15435if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15436then :
15437  printf %s "(cached) " >&6
15438else $as_nop
15439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h.  */
15441int i;
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"
15444then :
15445  xorg_cv_cc_flag_unused_command_line_argument=yes
15446else $as_nop
15447  xorg_cv_cc_flag_unused_command_line_argument=no
15448fi
15449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15450fi
15451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15454	CFLAGS="$xorg_testset_save_CFLAGS"
15455fi
15456
15457found="no"
15458
15459	if test $found = "no" ; then
15460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462		fi
15463
15464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15466		fi
15467
15468		CFLAGS="$CFLAGS -Werror=nonnull"
15469
15470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15471printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15472		cacheid=xorg_cv_cc_flag__Werror_nonnull
15473		if eval test \${$cacheid+y}
15474then :
15475  printf %s "(cached) " >&6
15476else $as_nop
15477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478/* end confdefs.h.  */
15479int i;
15480int
15481main (void)
15482{
15483
15484  ;
15485  return 0;
15486}
15487_ACEOF
15488if ac_fn_c_try_link "$LINENO"
15489then :
15490  eval $cacheid=yes
15491else $as_nop
15492  eval $cacheid=no
15493fi
15494rm -f core conftest.err conftest.$ac_objext conftest.beam \
15495    conftest$ac_exeext conftest.$ac_ext
15496fi
15497
15498
15499		CFLAGS="$xorg_testset_save_CFLAGS"
15500
15501		eval supported=\$$cacheid
15502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503printf "%s\n" "$supported" >&6; }
15504		if test "$supported" = "yes" ; then
15505			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15506			found="yes"
15507		fi
15508	fi
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524xorg_testset_save_CFLAGS="$CFLAGS"
15525
15526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15530if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15531then :
15532  printf %s "(cached) " >&6
15533else $as_nop
15534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h.  */
15536int i;
15537_ACEOF
15538if ac_fn_c_try_compile "$LINENO"
15539then :
15540  xorg_cv_cc_flag_unknown_warning_option=yes
15541else $as_nop
15542  xorg_cv_cc_flag_unknown_warning_option=no
15543fi
15544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15545fi
15546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15547printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15549	CFLAGS="$xorg_testset_save_CFLAGS"
15550fi
15551
15552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555	fi
15556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15558printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15559if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15560then :
15561  printf %s "(cached) " >&6
15562else $as_nop
15563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564/* end confdefs.h.  */
15565int i;
15566_ACEOF
15567if ac_fn_c_try_compile "$LINENO"
15568then :
15569  xorg_cv_cc_flag_unused_command_line_argument=yes
15570else $as_nop
15571  xorg_cv_cc_flag_unused_command_line_argument=no
15572fi
15573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15574fi
15575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15578	CFLAGS="$xorg_testset_save_CFLAGS"
15579fi
15580
15581found="no"
15582
15583	if test $found = "no" ; then
15584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15586		fi
15587
15588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15590		fi
15591
15592		CFLAGS="$CFLAGS -Werror=init-self"
15593
15594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15595printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15596		cacheid=xorg_cv_cc_flag__Werror_init_self
15597		if eval test \${$cacheid+y}
15598then :
15599  printf %s "(cached) " >&6
15600else $as_nop
15601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602/* end confdefs.h.  */
15603int i;
15604int
15605main (void)
15606{
15607
15608  ;
15609  return 0;
15610}
15611_ACEOF
15612if ac_fn_c_try_link "$LINENO"
15613then :
15614  eval $cacheid=yes
15615else $as_nop
15616  eval $cacheid=no
15617fi
15618rm -f core conftest.err conftest.$ac_objext conftest.beam \
15619    conftest$ac_exeext conftest.$ac_ext
15620fi
15621
15622
15623		CFLAGS="$xorg_testset_save_CFLAGS"
15624
15625		eval supported=\$$cacheid
15626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15627printf "%s\n" "$supported" >&6; }
15628		if test "$supported" = "yes" ; then
15629			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15630			found="yes"
15631		fi
15632	fi
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648xorg_testset_save_CFLAGS="$CFLAGS"
15649
15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15654if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15655then :
15656  printf %s "(cached) " >&6
15657else $as_nop
15658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h.  */
15660int i;
15661_ACEOF
15662if ac_fn_c_try_compile "$LINENO"
15663then :
15664  xorg_cv_cc_flag_unknown_warning_option=yes
15665else $as_nop
15666  xorg_cv_cc_flag_unknown_warning_option=no
15667fi
15668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15669fi
15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15673	CFLAGS="$xorg_testset_save_CFLAGS"
15674fi
15675
15676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679	fi
15680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15683if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15684then :
15685  printf %s "(cached) " >&6
15686else $as_nop
15687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688/* end confdefs.h.  */
15689int i;
15690_ACEOF
15691if ac_fn_c_try_compile "$LINENO"
15692then :
15693  xorg_cv_cc_flag_unused_command_line_argument=yes
15694else $as_nop
15695  xorg_cv_cc_flag_unused_command_line_argument=no
15696fi
15697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15698fi
15699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15700printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15702	CFLAGS="$xorg_testset_save_CFLAGS"
15703fi
15704
15705found="no"
15706
15707	if test $found = "no" ; then
15708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710		fi
15711
15712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15714		fi
15715
15716		CFLAGS="$CFLAGS -Werror=main"
15717
15718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15719printf %s "checking if $CC supports -Werror=main... " >&6; }
15720		cacheid=xorg_cv_cc_flag__Werror_main
15721		if eval test \${$cacheid+y}
15722then :
15723  printf %s "(cached) " >&6
15724else $as_nop
15725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726/* end confdefs.h.  */
15727int i;
15728int
15729main (void)
15730{
15731
15732  ;
15733  return 0;
15734}
15735_ACEOF
15736if ac_fn_c_try_link "$LINENO"
15737then :
15738  eval $cacheid=yes
15739else $as_nop
15740  eval $cacheid=no
15741fi
15742rm -f core conftest.err conftest.$ac_objext conftest.beam \
15743    conftest$ac_exeext conftest.$ac_ext
15744fi
15745
15746
15747		CFLAGS="$xorg_testset_save_CFLAGS"
15748
15749		eval supported=\$$cacheid
15750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751printf "%s\n" "$supported" >&6; }
15752		if test "$supported" = "yes" ; then
15753			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15754			found="yes"
15755		fi
15756	fi
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772xorg_testset_save_CFLAGS="$CFLAGS"
15773
15774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15779then :
15780  printf %s "(cached) " >&6
15781else $as_nop
15782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783/* end confdefs.h.  */
15784int i;
15785_ACEOF
15786if ac_fn_c_try_compile "$LINENO"
15787then :
15788  xorg_cv_cc_flag_unknown_warning_option=yes
15789else $as_nop
15790  xorg_cv_cc_flag_unknown_warning_option=no
15791fi
15792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15793fi
15794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15797	CFLAGS="$xorg_testset_save_CFLAGS"
15798fi
15799
15800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15803	fi
15804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15807if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15808then :
15809  printf %s "(cached) " >&6
15810else $as_nop
15811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812/* end confdefs.h.  */
15813int i;
15814_ACEOF
15815if ac_fn_c_try_compile "$LINENO"
15816then :
15817  xorg_cv_cc_flag_unused_command_line_argument=yes
15818else $as_nop
15819  xorg_cv_cc_flag_unused_command_line_argument=no
15820fi
15821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15822fi
15823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15825	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15826	CFLAGS="$xorg_testset_save_CFLAGS"
15827fi
15828
15829found="no"
15830
15831	if test $found = "no" ; then
15832		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15834		fi
15835
15836		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15838		fi
15839
15840		CFLAGS="$CFLAGS -Werror=missing-braces"
15841
15842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15843printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15844		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15845		if eval test \${$cacheid+y}
15846then :
15847  printf %s "(cached) " >&6
15848else $as_nop
15849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851int i;
15852int
15853main (void)
15854{
15855
15856  ;
15857  return 0;
15858}
15859_ACEOF
15860if ac_fn_c_try_link "$LINENO"
15861then :
15862  eval $cacheid=yes
15863else $as_nop
15864  eval $cacheid=no
15865fi
15866rm -f core conftest.err conftest.$ac_objext conftest.beam \
15867    conftest$ac_exeext conftest.$ac_ext
15868fi
15869
15870
15871		CFLAGS="$xorg_testset_save_CFLAGS"
15872
15873		eval supported=\$$cacheid
15874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15875printf "%s\n" "$supported" >&6; }
15876		if test "$supported" = "yes" ; then
15877			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15878			found="yes"
15879		fi
15880	fi
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896xorg_testset_save_CFLAGS="$CFLAGS"
15897
15898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15903then :
15904  printf %s "(cached) " >&6
15905else $as_nop
15906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h.  */
15908int i;
15909_ACEOF
15910if ac_fn_c_try_compile "$LINENO"
15911then :
15912  xorg_cv_cc_flag_unknown_warning_option=yes
15913else $as_nop
15914  xorg_cv_cc_flag_unknown_warning_option=no
15915fi
15916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15917fi
15918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15921	CFLAGS="$xorg_testset_save_CFLAGS"
15922fi
15923
15924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927	fi
15928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15932then :
15933  printf %s "(cached) " >&6
15934else $as_nop
15935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936/* end confdefs.h.  */
15937int i;
15938_ACEOF
15939if ac_fn_c_try_compile "$LINENO"
15940then :
15941  xorg_cv_cc_flag_unused_command_line_argument=yes
15942else $as_nop
15943  xorg_cv_cc_flag_unused_command_line_argument=no
15944fi
15945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15946fi
15947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15950	CFLAGS="$xorg_testset_save_CFLAGS"
15951fi
15952
15953found="no"
15954
15955	if test $found = "no" ; then
15956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15958		fi
15959
15960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962		fi
15963
15964		CFLAGS="$CFLAGS -Werror=sequence-point"
15965
15966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15967printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15968		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15969		if eval test \${$cacheid+y}
15970then :
15971  printf %s "(cached) " >&6
15972else $as_nop
15973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974/* end confdefs.h.  */
15975int i;
15976int
15977main (void)
15978{
15979
15980  ;
15981  return 0;
15982}
15983_ACEOF
15984if ac_fn_c_try_link "$LINENO"
15985then :
15986  eval $cacheid=yes
15987else $as_nop
15988  eval $cacheid=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.beam \
15991    conftest$ac_exeext conftest.$ac_ext
15992fi
15993
15994
15995		CFLAGS="$xorg_testset_save_CFLAGS"
15996
15997		eval supported=\$$cacheid
15998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15999printf "%s\n" "$supported" >&6; }
16000		if test "$supported" = "yes" ; then
16001			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16002			found="yes"
16003		fi
16004	fi
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020xorg_testset_save_CFLAGS="$CFLAGS"
16021
16022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16026if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16027then :
16028  printf %s "(cached) " >&6
16029else $as_nop
16030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032int i;
16033_ACEOF
16034if ac_fn_c_try_compile "$LINENO"
16035then :
16036  xorg_cv_cc_flag_unknown_warning_option=yes
16037else $as_nop
16038  xorg_cv_cc_flag_unknown_warning_option=no
16039fi
16040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16041fi
16042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16045	CFLAGS="$xorg_testset_save_CFLAGS"
16046fi
16047
16048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16051	fi
16052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16055if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16056then :
16057  printf %s "(cached) " >&6
16058else $as_nop
16059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060/* end confdefs.h.  */
16061int i;
16062_ACEOF
16063if ac_fn_c_try_compile "$LINENO"
16064then :
16065  xorg_cv_cc_flag_unused_command_line_argument=yes
16066else $as_nop
16067  xorg_cv_cc_flag_unused_command_line_argument=no
16068fi
16069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16070fi
16071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16074	CFLAGS="$xorg_testset_save_CFLAGS"
16075fi
16076
16077found="no"
16078
16079	if test $found = "no" ; then
16080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082		fi
16083
16084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16086		fi
16087
16088		CFLAGS="$CFLAGS -Werror=return-type"
16089
16090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16091printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16092		cacheid=xorg_cv_cc_flag__Werror_return_type
16093		if eval test \${$cacheid+y}
16094then :
16095  printf %s "(cached) " >&6
16096else $as_nop
16097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h.  */
16099int i;
16100int
16101main (void)
16102{
16103
16104  ;
16105  return 0;
16106}
16107_ACEOF
16108if ac_fn_c_try_link "$LINENO"
16109then :
16110  eval $cacheid=yes
16111else $as_nop
16112  eval $cacheid=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.beam \
16115    conftest$ac_exeext conftest.$ac_ext
16116fi
16117
16118
16119		CFLAGS="$xorg_testset_save_CFLAGS"
16120
16121		eval supported=\$$cacheid
16122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16123printf "%s\n" "$supported" >&6; }
16124		if test "$supported" = "yes" ; then
16125			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16126			found="yes"
16127		fi
16128	fi
16129
16130	if test $found = "no" ; then
16131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133		fi
16134
16135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16137		fi
16138
16139		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16140
16141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16142printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16143		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16144		if eval test \${$cacheid+y}
16145then :
16146  printf %s "(cached) " >&6
16147else $as_nop
16148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h.  */
16150int i;
16151int
16152main (void)
16153{
16154
16155  ;
16156  return 0;
16157}
16158_ACEOF
16159if ac_fn_c_try_link "$LINENO"
16160then :
16161  eval $cacheid=yes
16162else $as_nop
16163  eval $cacheid=no
16164fi
16165rm -f core conftest.err conftest.$ac_objext conftest.beam \
16166    conftest$ac_exeext conftest.$ac_ext
16167fi
16168
16169
16170		CFLAGS="$xorg_testset_save_CFLAGS"
16171
16172		eval supported=\$$cacheid
16173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16174printf "%s\n" "$supported" >&6; }
16175		if test "$supported" = "yes" ; then
16176			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16177			found="yes"
16178		fi
16179	fi
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195xorg_testset_save_CFLAGS="$CFLAGS"
16196
16197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16202then :
16203  printf %s "(cached) " >&6
16204else $as_nop
16205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207int i;
16208_ACEOF
16209if ac_fn_c_try_compile "$LINENO"
16210then :
16211  xorg_cv_cc_flag_unknown_warning_option=yes
16212else $as_nop
16213  xorg_cv_cc_flag_unknown_warning_option=no
16214fi
16215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16216fi
16217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220	CFLAGS="$xorg_testset_save_CFLAGS"
16221fi
16222
16223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226	fi
16227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16231then :
16232  printf %s "(cached) " >&6
16233else $as_nop
16234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235/* end confdefs.h.  */
16236int i;
16237_ACEOF
16238if ac_fn_c_try_compile "$LINENO"
16239then :
16240  xorg_cv_cc_flag_unused_command_line_argument=yes
16241else $as_nop
16242  xorg_cv_cc_flag_unused_command_line_argument=no
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16245fi
16246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16249	CFLAGS="$xorg_testset_save_CFLAGS"
16250fi
16251
16252found="no"
16253
16254	if test $found = "no" ; then
16255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16257		fi
16258
16259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261		fi
16262
16263		CFLAGS="$CFLAGS -Werror=trigraphs"
16264
16265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16266printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16267		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16268		if eval test \${$cacheid+y}
16269then :
16270  printf %s "(cached) " >&6
16271else $as_nop
16272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273/* end confdefs.h.  */
16274int i;
16275int
16276main (void)
16277{
16278
16279  ;
16280  return 0;
16281}
16282_ACEOF
16283if ac_fn_c_try_link "$LINENO"
16284then :
16285  eval $cacheid=yes
16286else $as_nop
16287  eval $cacheid=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.beam \
16290    conftest$ac_exeext conftest.$ac_ext
16291fi
16292
16293
16294		CFLAGS="$xorg_testset_save_CFLAGS"
16295
16296		eval supported=\$$cacheid
16297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16298printf "%s\n" "$supported" >&6; }
16299		if test "$supported" = "yes" ; then
16300			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16301			found="yes"
16302		fi
16303	fi
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319xorg_testset_save_CFLAGS="$CFLAGS"
16320
16321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16326then :
16327  printf %s "(cached) " >&6
16328else $as_nop
16329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330/* end confdefs.h.  */
16331int i;
16332_ACEOF
16333if ac_fn_c_try_compile "$LINENO"
16334then :
16335  xorg_cv_cc_flag_unknown_warning_option=yes
16336else $as_nop
16337  xorg_cv_cc_flag_unknown_warning_option=no
16338fi
16339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16340fi
16341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16344	CFLAGS="$xorg_testset_save_CFLAGS"
16345fi
16346
16347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350	fi
16351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16354if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16355then :
16356  printf %s "(cached) " >&6
16357else $as_nop
16358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359/* end confdefs.h.  */
16360int i;
16361_ACEOF
16362if ac_fn_c_try_compile "$LINENO"
16363then :
16364  xorg_cv_cc_flag_unused_command_line_argument=yes
16365else $as_nop
16366  xorg_cv_cc_flag_unused_command_line_argument=no
16367fi
16368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16369fi
16370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16373	CFLAGS="$xorg_testset_save_CFLAGS"
16374fi
16375
16376found="no"
16377
16378	if test $found = "no" ; then
16379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16381		fi
16382
16383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16385		fi
16386
16387		CFLAGS="$CFLAGS -Werror=array-bounds"
16388
16389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16390printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16391		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16392		if eval test \${$cacheid+y}
16393then :
16394  printf %s "(cached) " >&6
16395else $as_nop
16396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397/* end confdefs.h.  */
16398int i;
16399int
16400main (void)
16401{
16402
16403  ;
16404  return 0;
16405}
16406_ACEOF
16407if ac_fn_c_try_link "$LINENO"
16408then :
16409  eval $cacheid=yes
16410else $as_nop
16411  eval $cacheid=no
16412fi
16413rm -f core conftest.err conftest.$ac_objext conftest.beam \
16414    conftest$ac_exeext conftest.$ac_ext
16415fi
16416
16417
16418		CFLAGS="$xorg_testset_save_CFLAGS"
16419
16420		eval supported=\$$cacheid
16421		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16422printf "%s\n" "$supported" >&6; }
16423		if test "$supported" = "yes" ; then
16424			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16425			found="yes"
16426		fi
16427	fi
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443xorg_testset_save_CFLAGS="$CFLAGS"
16444
16445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16449if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16450then :
16451  printf %s "(cached) " >&6
16452else $as_nop
16453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h.  */
16455int i;
16456_ACEOF
16457if ac_fn_c_try_compile "$LINENO"
16458then :
16459  xorg_cv_cc_flag_unknown_warning_option=yes
16460else $as_nop
16461  xorg_cv_cc_flag_unknown_warning_option=no
16462fi
16463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16464fi
16465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16468	CFLAGS="$xorg_testset_save_CFLAGS"
16469fi
16470
16471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16474	fi
16475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16478if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16479then :
16480  printf %s "(cached) " >&6
16481else $as_nop
16482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484int i;
16485_ACEOF
16486if ac_fn_c_try_compile "$LINENO"
16487then :
16488  xorg_cv_cc_flag_unused_command_line_argument=yes
16489else $as_nop
16490  xorg_cv_cc_flag_unused_command_line_argument=no
16491fi
16492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16493fi
16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16497	CFLAGS="$xorg_testset_save_CFLAGS"
16498fi
16499
16500found="no"
16501
16502	if test $found = "no" ; then
16503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505		fi
16506
16507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16509		fi
16510
16511		CFLAGS="$CFLAGS -Werror=write-strings"
16512
16513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16514printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16515		cacheid=xorg_cv_cc_flag__Werror_write_strings
16516		if eval test \${$cacheid+y}
16517then :
16518  printf %s "(cached) " >&6
16519else $as_nop
16520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522int i;
16523int
16524main (void)
16525{
16526
16527  ;
16528  return 0;
16529}
16530_ACEOF
16531if ac_fn_c_try_link "$LINENO"
16532then :
16533  eval $cacheid=yes
16534else $as_nop
16535  eval $cacheid=no
16536fi
16537rm -f core conftest.err conftest.$ac_objext conftest.beam \
16538    conftest$ac_exeext conftest.$ac_ext
16539fi
16540
16541
16542		CFLAGS="$xorg_testset_save_CFLAGS"
16543
16544		eval supported=\$$cacheid
16545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16546printf "%s\n" "$supported" >&6; }
16547		if test "$supported" = "yes" ; then
16548			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16549			found="yes"
16550		fi
16551	fi
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567xorg_testset_save_CFLAGS="$CFLAGS"
16568
16569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16573if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16574then :
16575  printf %s "(cached) " >&6
16576else $as_nop
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579int i;
16580_ACEOF
16581if ac_fn_c_try_compile "$LINENO"
16582then :
16583  xorg_cv_cc_flag_unknown_warning_option=yes
16584else $as_nop
16585  xorg_cv_cc_flag_unknown_warning_option=no
16586fi
16587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16588fi
16589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16592	CFLAGS="$xorg_testset_save_CFLAGS"
16593fi
16594
16595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16598	fi
16599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16603then :
16604  printf %s "(cached) " >&6
16605else $as_nop
16606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h.  */
16608int i;
16609_ACEOF
16610if ac_fn_c_try_compile "$LINENO"
16611then :
16612  xorg_cv_cc_flag_unused_command_line_argument=yes
16613else $as_nop
16614  xorg_cv_cc_flag_unused_command_line_argument=no
16615fi
16616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16617fi
16618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16621	CFLAGS="$xorg_testset_save_CFLAGS"
16622fi
16623
16624found="no"
16625
16626	if test $found = "no" ; then
16627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16629		fi
16630
16631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633		fi
16634
16635		CFLAGS="$CFLAGS -Werror=address"
16636
16637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16638printf %s "checking if $CC supports -Werror=address... " >&6; }
16639		cacheid=xorg_cv_cc_flag__Werror_address
16640		if eval test \${$cacheid+y}
16641then :
16642  printf %s "(cached) " >&6
16643else $as_nop
16644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646int i;
16647int
16648main (void)
16649{
16650
16651  ;
16652  return 0;
16653}
16654_ACEOF
16655if ac_fn_c_try_link "$LINENO"
16656then :
16657  eval $cacheid=yes
16658else $as_nop
16659  eval $cacheid=no
16660fi
16661rm -f core conftest.err conftest.$ac_objext conftest.beam \
16662    conftest$ac_exeext conftest.$ac_ext
16663fi
16664
16665
16666		CFLAGS="$xorg_testset_save_CFLAGS"
16667
16668		eval supported=\$$cacheid
16669		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16670printf "%s\n" "$supported" >&6; }
16671		if test "$supported" = "yes" ; then
16672			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16673			found="yes"
16674		fi
16675	fi
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691xorg_testset_save_CFLAGS="$CFLAGS"
16692
16693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16698then :
16699  printf %s "(cached) " >&6
16700else $as_nop
16701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703int i;
16704_ACEOF
16705if ac_fn_c_try_compile "$LINENO"
16706then :
16707  xorg_cv_cc_flag_unknown_warning_option=yes
16708else $as_nop
16709  xorg_cv_cc_flag_unknown_warning_option=no
16710fi
16711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16712fi
16713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16716	CFLAGS="$xorg_testset_save_CFLAGS"
16717fi
16718
16719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16722	fi
16723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16724	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16726if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16727then :
16728  printf %s "(cached) " >&6
16729else $as_nop
16730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731/* end confdefs.h.  */
16732int i;
16733_ACEOF
16734if ac_fn_c_try_compile "$LINENO"
16735then :
16736  xorg_cv_cc_flag_unused_command_line_argument=yes
16737else $as_nop
16738  xorg_cv_cc_flag_unused_command_line_argument=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16741fi
16742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16745	CFLAGS="$xorg_testset_save_CFLAGS"
16746fi
16747
16748found="no"
16749
16750	if test $found = "no" ; then
16751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753		fi
16754
16755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757		fi
16758
16759		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16760
16761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16762printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16763		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16764		if eval test \${$cacheid+y}
16765then :
16766  printf %s "(cached) " >&6
16767else $as_nop
16768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769/* end confdefs.h.  */
16770int i;
16771int
16772main (void)
16773{
16774
16775  ;
16776  return 0;
16777}
16778_ACEOF
16779if ac_fn_c_try_link "$LINENO"
16780then :
16781  eval $cacheid=yes
16782else $as_nop
16783  eval $cacheid=no
16784fi
16785rm -f core conftest.err conftest.$ac_objext conftest.beam \
16786    conftest$ac_exeext conftest.$ac_ext
16787fi
16788
16789
16790		CFLAGS="$xorg_testset_save_CFLAGS"
16791
16792		eval supported=\$$cacheid
16793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16794printf "%s\n" "$supported" >&6; }
16795		if test "$supported" = "yes" ; then
16796			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16797			found="yes"
16798		fi
16799	fi
16800
16801	if test $found = "no" ; then
16802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16804		fi
16805
16806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16808		fi
16809
16810		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16811
16812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16813printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16814		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16815		if eval test \${$cacheid+y}
16816then :
16817  printf %s "(cached) " >&6
16818else $as_nop
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821int i;
16822int
16823main (void)
16824{
16825
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"
16831then :
16832  eval $cacheid=yes
16833else $as_nop
16834  eval $cacheid=no
16835fi
16836rm -f core conftest.err conftest.$ac_objext conftest.beam \
16837    conftest$ac_exeext conftest.$ac_ext
16838fi
16839
16840
16841		CFLAGS="$xorg_testset_save_CFLAGS"
16842
16843		eval supported=\$$cacheid
16844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16845printf "%s\n" "$supported" >&6; }
16846		if test "$supported" = "yes" ; then
16847			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16848			found="yes"
16849		fi
16850	fi
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866xorg_testset_save_CFLAGS="$CFLAGS"
16867
16868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16872if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16873then :
16874  printf %s "(cached) " >&6
16875else $as_nop
16876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877/* end confdefs.h.  */
16878int i;
16879_ACEOF
16880if ac_fn_c_try_compile "$LINENO"
16881then :
16882  xorg_cv_cc_flag_unknown_warning_option=yes
16883else $as_nop
16884  xorg_cv_cc_flag_unknown_warning_option=no
16885fi
16886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16887fi
16888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16891	CFLAGS="$xorg_testset_save_CFLAGS"
16892fi
16893
16894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897	fi
16898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16901if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16902then :
16903  printf %s "(cached) " >&6
16904else $as_nop
16905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h.  */
16907int i;
16908_ACEOF
16909if ac_fn_c_try_compile "$LINENO"
16910then :
16911  xorg_cv_cc_flag_unused_command_line_argument=yes
16912else $as_nop
16913  xorg_cv_cc_flag_unused_command_line_argument=no
16914fi
16915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16916fi
16917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16920	CFLAGS="$xorg_testset_save_CFLAGS"
16921fi
16922
16923found="no"
16924
16925	if test $found = "no" ; then
16926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16928		fi
16929
16930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16932		fi
16933
16934		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16935
16936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16937printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16938		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16939		if eval test \${$cacheid+y}
16940then :
16941  printf %s "(cached) " >&6
16942else $as_nop
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945int i;
16946int
16947main (void)
16948{
16949
16950  ;
16951  return 0;
16952}
16953_ACEOF
16954if ac_fn_c_try_link "$LINENO"
16955then :
16956  eval $cacheid=yes
16957else $as_nop
16958  eval $cacheid=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext conftest.beam \
16961    conftest$ac_exeext conftest.$ac_ext
16962fi
16963
16964
16965		CFLAGS="$xorg_testset_save_CFLAGS"
16966
16967		eval supported=\$$cacheid
16968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16969printf "%s\n" "$supported" >&6; }
16970		if test "$supported" = "yes" ; then
16971			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16972			found="yes"
16973		fi
16974	fi
16975
16976 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16977else
16978{ 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
16979printf "%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;}
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993xorg_testset_save_CFLAGS="$CFLAGS"
16994
16995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16997	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16999if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17000then :
17001  printf %s "(cached) " >&6
17002else $as_nop
17003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h.  */
17005int i;
17006_ACEOF
17007if ac_fn_c_try_compile "$LINENO"
17008then :
17009  xorg_cv_cc_flag_unknown_warning_option=yes
17010else $as_nop
17011  xorg_cv_cc_flag_unknown_warning_option=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17014fi
17015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018	CFLAGS="$xorg_testset_save_CFLAGS"
17019fi
17020
17021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024	fi
17025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17029then :
17030  printf %s "(cached) " >&6
17031else $as_nop
17032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034int i;
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"
17037then :
17038  xorg_cv_cc_flag_unused_command_line_argument=yes
17039else $as_nop
17040  xorg_cv_cc_flag_unused_command_line_argument=no
17041fi
17042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17043fi
17044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17047	CFLAGS="$xorg_testset_save_CFLAGS"
17048fi
17049
17050found="no"
17051
17052	if test $found = "no" ; then
17053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055		fi
17056
17057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17059		fi
17060
17061		CFLAGS="$CFLAGS -Wimplicit"
17062
17063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17064printf %s "checking if $CC supports -Wimplicit... " >&6; }
17065		cacheid=xorg_cv_cc_flag__Wimplicit
17066		if eval test \${$cacheid+y}
17067then :
17068  printf %s "(cached) " >&6
17069else $as_nop
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072int i;
17073int
17074main (void)
17075{
17076
17077  ;
17078  return 0;
17079}
17080_ACEOF
17081if ac_fn_c_try_link "$LINENO"
17082then :
17083  eval $cacheid=yes
17084else $as_nop
17085  eval $cacheid=no
17086fi
17087rm -f core conftest.err conftest.$ac_objext conftest.beam \
17088    conftest$ac_exeext conftest.$ac_ext
17089fi
17090
17091
17092		CFLAGS="$xorg_testset_save_CFLAGS"
17093
17094		eval supported=\$$cacheid
17095		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17096printf "%s\n" "$supported" >&6; }
17097		if test "$supported" = "yes" ; then
17098			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17099			found="yes"
17100		fi
17101	fi
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117xorg_testset_save_CFLAGS="$CFLAGS"
17118
17119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17122printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17123if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17124then :
17125  printf %s "(cached) " >&6
17126else $as_nop
17127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h.  */
17129int i;
17130_ACEOF
17131if ac_fn_c_try_compile "$LINENO"
17132then :
17133  xorg_cv_cc_flag_unknown_warning_option=yes
17134else $as_nop
17135  xorg_cv_cc_flag_unknown_warning_option=no
17136fi
17137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17138fi
17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17140printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17142	CFLAGS="$xorg_testset_save_CFLAGS"
17143fi
17144
17145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17148	fi
17149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17151printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17152if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17153then :
17154  printf %s "(cached) " >&6
17155else $as_nop
17156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157/* end confdefs.h.  */
17158int i;
17159_ACEOF
17160if ac_fn_c_try_compile "$LINENO"
17161then :
17162  xorg_cv_cc_flag_unused_command_line_argument=yes
17163else $as_nop
17164  xorg_cv_cc_flag_unused_command_line_argument=no
17165fi
17166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17167fi
17168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17169printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17171	CFLAGS="$xorg_testset_save_CFLAGS"
17172fi
17173
17174found="no"
17175
17176	if test $found = "no" ; then
17177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17179		fi
17180
17181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17183		fi
17184
17185		CFLAGS="$CFLAGS -Wnonnull"
17186
17187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17188printf %s "checking if $CC supports -Wnonnull... " >&6; }
17189		cacheid=xorg_cv_cc_flag__Wnonnull
17190		if eval test \${$cacheid+y}
17191then :
17192  printf %s "(cached) " >&6
17193else $as_nop
17194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195/* end confdefs.h.  */
17196int i;
17197int
17198main (void)
17199{
17200
17201  ;
17202  return 0;
17203}
17204_ACEOF
17205if ac_fn_c_try_link "$LINENO"
17206then :
17207  eval $cacheid=yes
17208else $as_nop
17209  eval $cacheid=no
17210fi
17211rm -f core conftest.err conftest.$ac_objext conftest.beam \
17212    conftest$ac_exeext conftest.$ac_ext
17213fi
17214
17215
17216		CFLAGS="$xorg_testset_save_CFLAGS"
17217
17218		eval supported=\$$cacheid
17219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17220printf "%s\n" "$supported" >&6; }
17221		if test "$supported" = "yes" ; then
17222			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17223			found="yes"
17224		fi
17225	fi
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241xorg_testset_save_CFLAGS="$CFLAGS"
17242
17243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17247if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17248then :
17249  printf %s "(cached) " >&6
17250else $as_nop
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253int i;
17254_ACEOF
17255if ac_fn_c_try_compile "$LINENO"
17256then :
17257  xorg_cv_cc_flag_unknown_warning_option=yes
17258else $as_nop
17259  xorg_cv_cc_flag_unknown_warning_option=no
17260fi
17261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17262fi
17263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17266	CFLAGS="$xorg_testset_save_CFLAGS"
17267fi
17268
17269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17272	fi
17273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17277then :
17278  printf %s "(cached) " >&6
17279else $as_nop
17280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281/* end confdefs.h.  */
17282int i;
17283_ACEOF
17284if ac_fn_c_try_compile "$LINENO"
17285then :
17286  xorg_cv_cc_flag_unused_command_line_argument=yes
17287else $as_nop
17288  xorg_cv_cc_flag_unused_command_line_argument=no
17289fi
17290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17291fi
17292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17295	CFLAGS="$xorg_testset_save_CFLAGS"
17296fi
17297
17298found="no"
17299
17300	if test $found = "no" ; then
17301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17303		fi
17304
17305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17307		fi
17308
17309		CFLAGS="$CFLAGS -Winit-self"
17310
17311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17312printf %s "checking if $CC supports -Winit-self... " >&6; }
17313		cacheid=xorg_cv_cc_flag__Winit_self
17314		if eval test \${$cacheid+y}
17315then :
17316  printf %s "(cached) " >&6
17317else $as_nop
17318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h.  */
17320int i;
17321int
17322main (void)
17323{
17324
17325  ;
17326  return 0;
17327}
17328_ACEOF
17329if ac_fn_c_try_link "$LINENO"
17330then :
17331  eval $cacheid=yes
17332else $as_nop
17333  eval $cacheid=no
17334fi
17335rm -f core conftest.err conftest.$ac_objext conftest.beam \
17336    conftest$ac_exeext conftest.$ac_ext
17337fi
17338
17339
17340		CFLAGS="$xorg_testset_save_CFLAGS"
17341
17342		eval supported=\$$cacheid
17343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17344printf "%s\n" "$supported" >&6; }
17345		if test "$supported" = "yes" ; then
17346			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17347			found="yes"
17348		fi
17349	fi
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365xorg_testset_save_CFLAGS="$CFLAGS"
17366
17367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17372then :
17373  printf %s "(cached) " >&6
17374else $as_nop
17375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376/* end confdefs.h.  */
17377int i;
17378_ACEOF
17379if ac_fn_c_try_compile "$LINENO"
17380then :
17381  xorg_cv_cc_flag_unknown_warning_option=yes
17382else $as_nop
17383  xorg_cv_cc_flag_unknown_warning_option=no
17384fi
17385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17386fi
17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17390	CFLAGS="$xorg_testset_save_CFLAGS"
17391fi
17392
17393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17396	fi
17397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17401then :
17402  printf %s "(cached) " >&6
17403else $as_nop
17404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405/* end confdefs.h.  */
17406int i;
17407_ACEOF
17408if ac_fn_c_try_compile "$LINENO"
17409then :
17410  xorg_cv_cc_flag_unused_command_line_argument=yes
17411else $as_nop
17412  xorg_cv_cc_flag_unused_command_line_argument=no
17413fi
17414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17415fi
17416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17419	CFLAGS="$xorg_testset_save_CFLAGS"
17420fi
17421
17422found="no"
17423
17424	if test $found = "no" ; then
17425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17427		fi
17428
17429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17431		fi
17432
17433		CFLAGS="$CFLAGS -Wmain"
17434
17435		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17436printf %s "checking if $CC supports -Wmain... " >&6; }
17437		cacheid=xorg_cv_cc_flag__Wmain
17438		if eval test \${$cacheid+y}
17439then :
17440  printf %s "(cached) " >&6
17441else $as_nop
17442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444int i;
17445int
17446main (void)
17447{
17448
17449  ;
17450  return 0;
17451}
17452_ACEOF
17453if ac_fn_c_try_link "$LINENO"
17454then :
17455  eval $cacheid=yes
17456else $as_nop
17457  eval $cacheid=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext conftest.beam \
17460    conftest$ac_exeext conftest.$ac_ext
17461fi
17462
17463
17464		CFLAGS="$xorg_testset_save_CFLAGS"
17465
17466		eval supported=\$$cacheid
17467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17468printf "%s\n" "$supported" >&6; }
17469		if test "$supported" = "yes" ; then
17470			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17471			found="yes"
17472		fi
17473	fi
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489xorg_testset_save_CFLAGS="$CFLAGS"
17490
17491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17493	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17495if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17496then :
17497  printf %s "(cached) " >&6
17498else $as_nop
17499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h.  */
17501int i;
17502_ACEOF
17503if ac_fn_c_try_compile "$LINENO"
17504then :
17505  xorg_cv_cc_flag_unknown_warning_option=yes
17506else $as_nop
17507  xorg_cv_cc_flag_unknown_warning_option=no
17508fi
17509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17510fi
17511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17513	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17514	CFLAGS="$xorg_testset_save_CFLAGS"
17515fi
17516
17517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17518	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17519		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17520	fi
17521	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17524if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17525then :
17526  printf %s "(cached) " >&6
17527else $as_nop
17528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h.  */
17530int i;
17531_ACEOF
17532if ac_fn_c_try_compile "$LINENO"
17533then :
17534  xorg_cv_cc_flag_unused_command_line_argument=yes
17535else $as_nop
17536  xorg_cv_cc_flag_unused_command_line_argument=no
17537fi
17538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17539fi
17540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17543	CFLAGS="$xorg_testset_save_CFLAGS"
17544fi
17545
17546found="no"
17547
17548	if test $found = "no" ; then
17549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17551		fi
17552
17553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17555		fi
17556
17557		CFLAGS="$CFLAGS -Wmissing-braces"
17558
17559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17560printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17561		cacheid=xorg_cv_cc_flag__Wmissing_braces
17562		if eval test \${$cacheid+y}
17563then :
17564  printf %s "(cached) " >&6
17565else $as_nop
17566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567/* end confdefs.h.  */
17568int i;
17569int
17570main (void)
17571{
17572
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_link "$LINENO"
17578then :
17579  eval $cacheid=yes
17580else $as_nop
17581  eval $cacheid=no
17582fi
17583rm -f core conftest.err conftest.$ac_objext conftest.beam \
17584    conftest$ac_exeext conftest.$ac_ext
17585fi
17586
17587
17588		CFLAGS="$xorg_testset_save_CFLAGS"
17589
17590		eval supported=\$$cacheid
17591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592printf "%s\n" "$supported" >&6; }
17593		if test "$supported" = "yes" ; then
17594			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17595			found="yes"
17596		fi
17597	fi
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613xorg_testset_save_CFLAGS="$CFLAGS"
17614
17615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17619if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17620then :
17621  printf %s "(cached) " >&6
17622else $as_nop
17623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624/* end confdefs.h.  */
17625int i;
17626_ACEOF
17627if ac_fn_c_try_compile "$LINENO"
17628then :
17629  xorg_cv_cc_flag_unknown_warning_option=yes
17630else $as_nop
17631  xorg_cv_cc_flag_unknown_warning_option=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17634fi
17635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17638	CFLAGS="$xorg_testset_save_CFLAGS"
17639fi
17640
17641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17644	fi
17645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17648if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17649then :
17650  printf %s "(cached) " >&6
17651else $as_nop
17652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654int i;
17655_ACEOF
17656if ac_fn_c_try_compile "$LINENO"
17657then :
17658  xorg_cv_cc_flag_unused_command_line_argument=yes
17659else $as_nop
17660  xorg_cv_cc_flag_unused_command_line_argument=no
17661fi
17662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17663fi
17664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17667	CFLAGS="$xorg_testset_save_CFLAGS"
17668fi
17669
17670found="no"
17671
17672	if test $found = "no" ; then
17673		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17675		fi
17676
17677		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17679		fi
17680
17681		CFLAGS="$CFLAGS -Wsequence-point"
17682
17683		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17684printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17685		cacheid=xorg_cv_cc_flag__Wsequence_point
17686		if eval test \${$cacheid+y}
17687then :
17688  printf %s "(cached) " >&6
17689else $as_nop
17690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691/* end confdefs.h.  */
17692int i;
17693int
17694main (void)
17695{
17696
17697  ;
17698  return 0;
17699}
17700_ACEOF
17701if ac_fn_c_try_link "$LINENO"
17702then :
17703  eval $cacheid=yes
17704else $as_nop
17705  eval $cacheid=no
17706fi
17707rm -f core conftest.err conftest.$ac_objext conftest.beam \
17708    conftest$ac_exeext conftest.$ac_ext
17709fi
17710
17711
17712		CFLAGS="$xorg_testset_save_CFLAGS"
17713
17714		eval supported=\$$cacheid
17715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17716printf "%s\n" "$supported" >&6; }
17717		if test "$supported" = "yes" ; then
17718			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17719			found="yes"
17720		fi
17721	fi
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737xorg_testset_save_CFLAGS="$CFLAGS"
17738
17739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17743if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17744then :
17745  printf %s "(cached) " >&6
17746else $as_nop
17747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748/* end confdefs.h.  */
17749int i;
17750_ACEOF
17751if ac_fn_c_try_compile "$LINENO"
17752then :
17753  xorg_cv_cc_flag_unknown_warning_option=yes
17754else $as_nop
17755  xorg_cv_cc_flag_unknown_warning_option=no
17756fi
17757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17758fi
17759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17762	CFLAGS="$xorg_testset_save_CFLAGS"
17763fi
17764
17765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768	fi
17769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17772if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17773then :
17774  printf %s "(cached) " >&6
17775else $as_nop
17776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777/* end confdefs.h.  */
17778int i;
17779_ACEOF
17780if ac_fn_c_try_compile "$LINENO"
17781then :
17782  xorg_cv_cc_flag_unused_command_line_argument=yes
17783else $as_nop
17784  xorg_cv_cc_flag_unused_command_line_argument=no
17785fi
17786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17787fi
17788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17791	CFLAGS="$xorg_testset_save_CFLAGS"
17792fi
17793
17794found="no"
17795
17796	if test $found = "no" ; then
17797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17799		fi
17800
17801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17803		fi
17804
17805		CFLAGS="$CFLAGS -Wreturn-type"
17806
17807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17808printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17809		cacheid=xorg_cv_cc_flag__Wreturn_type
17810		if eval test \${$cacheid+y}
17811then :
17812  printf %s "(cached) " >&6
17813else $as_nop
17814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h.  */
17816int i;
17817int
17818main (void)
17819{
17820
17821  ;
17822  return 0;
17823}
17824_ACEOF
17825if ac_fn_c_try_link "$LINENO"
17826then :
17827  eval $cacheid=yes
17828else $as_nop
17829  eval $cacheid=no
17830fi
17831rm -f core conftest.err conftest.$ac_objext conftest.beam \
17832    conftest$ac_exeext conftest.$ac_ext
17833fi
17834
17835
17836		CFLAGS="$xorg_testset_save_CFLAGS"
17837
17838		eval supported=\$$cacheid
17839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17840printf "%s\n" "$supported" >&6; }
17841		if test "$supported" = "yes" ; then
17842			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17843			found="yes"
17844		fi
17845	fi
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861xorg_testset_save_CFLAGS="$CFLAGS"
17862
17863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17868then :
17869  printf %s "(cached) " >&6
17870else $as_nop
17871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872/* end confdefs.h.  */
17873int i;
17874_ACEOF
17875if ac_fn_c_try_compile "$LINENO"
17876then :
17877  xorg_cv_cc_flag_unknown_warning_option=yes
17878else $as_nop
17879  xorg_cv_cc_flag_unknown_warning_option=no
17880fi
17881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17882fi
17883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17886	CFLAGS="$xorg_testset_save_CFLAGS"
17887fi
17888
17889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17892	fi
17893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17897then :
17898  printf %s "(cached) " >&6
17899else $as_nop
17900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901/* end confdefs.h.  */
17902int i;
17903_ACEOF
17904if ac_fn_c_try_compile "$LINENO"
17905then :
17906  xorg_cv_cc_flag_unused_command_line_argument=yes
17907else $as_nop
17908  xorg_cv_cc_flag_unused_command_line_argument=no
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17911fi
17912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17915	CFLAGS="$xorg_testset_save_CFLAGS"
17916fi
17917
17918found="no"
17919
17920	if test $found = "no" ; then
17921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17923		fi
17924
17925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17927		fi
17928
17929		CFLAGS="$CFLAGS -Wtrigraphs"
17930
17931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17932printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17933		cacheid=xorg_cv_cc_flag__Wtrigraphs
17934		if eval test \${$cacheid+y}
17935then :
17936  printf %s "(cached) " >&6
17937else $as_nop
17938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940int i;
17941int
17942main (void)
17943{
17944
17945  ;
17946  return 0;
17947}
17948_ACEOF
17949if ac_fn_c_try_link "$LINENO"
17950then :
17951  eval $cacheid=yes
17952else $as_nop
17953  eval $cacheid=no
17954fi
17955rm -f core conftest.err conftest.$ac_objext conftest.beam \
17956    conftest$ac_exeext conftest.$ac_ext
17957fi
17958
17959
17960		CFLAGS="$xorg_testset_save_CFLAGS"
17961
17962		eval supported=\$$cacheid
17963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17964printf "%s\n" "$supported" >&6; }
17965		if test "$supported" = "yes" ; then
17966			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17967			found="yes"
17968		fi
17969	fi
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985xorg_testset_save_CFLAGS="$CFLAGS"
17986
17987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17992then :
17993  printf %s "(cached) " >&6
17994else $as_nop
17995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996/* end confdefs.h.  */
17997int i;
17998_ACEOF
17999if ac_fn_c_try_compile "$LINENO"
18000then :
18001  xorg_cv_cc_flag_unknown_warning_option=yes
18002else $as_nop
18003  xorg_cv_cc_flag_unknown_warning_option=no
18004fi
18005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18006fi
18007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18010	CFLAGS="$xorg_testset_save_CFLAGS"
18011fi
18012
18013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18016	fi
18017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18020if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18021then :
18022  printf %s "(cached) " >&6
18023else $as_nop
18024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025/* end confdefs.h.  */
18026int i;
18027_ACEOF
18028if ac_fn_c_try_compile "$LINENO"
18029then :
18030  xorg_cv_cc_flag_unused_command_line_argument=yes
18031else $as_nop
18032  xorg_cv_cc_flag_unused_command_line_argument=no
18033fi
18034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18035fi
18036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18039	CFLAGS="$xorg_testset_save_CFLAGS"
18040fi
18041
18042found="no"
18043
18044	if test $found = "no" ; then
18045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18047		fi
18048
18049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18051		fi
18052
18053		CFLAGS="$CFLAGS -Warray-bounds"
18054
18055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18056printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18057		cacheid=xorg_cv_cc_flag__Warray_bounds
18058		if eval test \${$cacheid+y}
18059then :
18060  printf %s "(cached) " >&6
18061else $as_nop
18062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063/* end confdefs.h.  */
18064int i;
18065int
18066main (void)
18067{
18068
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"
18074then :
18075  eval $cacheid=yes
18076else $as_nop
18077  eval $cacheid=no
18078fi
18079rm -f core conftest.err conftest.$ac_objext conftest.beam \
18080    conftest$ac_exeext conftest.$ac_ext
18081fi
18082
18083
18084		CFLAGS="$xorg_testset_save_CFLAGS"
18085
18086		eval supported=\$$cacheid
18087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18088printf "%s\n" "$supported" >&6; }
18089		if test "$supported" = "yes" ; then
18090			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18091			found="yes"
18092		fi
18093	fi
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109xorg_testset_save_CFLAGS="$CFLAGS"
18110
18111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18116then :
18117  printf %s "(cached) " >&6
18118else $as_nop
18119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120/* end confdefs.h.  */
18121int i;
18122_ACEOF
18123if ac_fn_c_try_compile "$LINENO"
18124then :
18125  xorg_cv_cc_flag_unknown_warning_option=yes
18126else $as_nop
18127  xorg_cv_cc_flag_unknown_warning_option=no
18128fi
18129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18130fi
18131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18134	CFLAGS="$xorg_testset_save_CFLAGS"
18135fi
18136
18137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18140	fi
18141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18145then :
18146  printf %s "(cached) " >&6
18147else $as_nop
18148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149/* end confdefs.h.  */
18150int i;
18151_ACEOF
18152if ac_fn_c_try_compile "$LINENO"
18153then :
18154  xorg_cv_cc_flag_unused_command_line_argument=yes
18155else $as_nop
18156  xorg_cv_cc_flag_unused_command_line_argument=no
18157fi
18158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18159fi
18160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18163	CFLAGS="$xorg_testset_save_CFLAGS"
18164fi
18165
18166found="no"
18167
18168	if test $found = "no" ; then
18169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171		fi
18172
18173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175		fi
18176
18177		CFLAGS="$CFLAGS -Wwrite-strings"
18178
18179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18180printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18181		cacheid=xorg_cv_cc_flag__Wwrite_strings
18182		if eval test \${$cacheid+y}
18183then :
18184  printf %s "(cached) " >&6
18185else $as_nop
18186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h.  */
18188int i;
18189int
18190main (void)
18191{
18192
18193  ;
18194  return 0;
18195}
18196_ACEOF
18197if ac_fn_c_try_link "$LINENO"
18198then :
18199  eval $cacheid=yes
18200else $as_nop
18201  eval $cacheid=no
18202fi
18203rm -f core conftest.err conftest.$ac_objext conftest.beam \
18204    conftest$ac_exeext conftest.$ac_ext
18205fi
18206
18207
18208		CFLAGS="$xorg_testset_save_CFLAGS"
18209
18210		eval supported=\$$cacheid
18211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18212printf "%s\n" "$supported" >&6; }
18213		if test "$supported" = "yes" ; then
18214			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18215			found="yes"
18216		fi
18217	fi
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233xorg_testset_save_CFLAGS="$CFLAGS"
18234
18235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18240then :
18241  printf %s "(cached) " >&6
18242else $as_nop
18243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244/* end confdefs.h.  */
18245int i;
18246_ACEOF
18247if ac_fn_c_try_compile "$LINENO"
18248then :
18249  xorg_cv_cc_flag_unknown_warning_option=yes
18250else $as_nop
18251  xorg_cv_cc_flag_unknown_warning_option=no
18252fi
18253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18254fi
18255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18258	CFLAGS="$xorg_testset_save_CFLAGS"
18259fi
18260
18261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18264	fi
18265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18269then :
18270  printf %s "(cached) " >&6
18271else $as_nop
18272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273/* end confdefs.h.  */
18274int i;
18275_ACEOF
18276if ac_fn_c_try_compile "$LINENO"
18277then :
18278  xorg_cv_cc_flag_unused_command_line_argument=yes
18279else $as_nop
18280  xorg_cv_cc_flag_unused_command_line_argument=no
18281fi
18282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18283fi
18284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18287	CFLAGS="$xorg_testset_save_CFLAGS"
18288fi
18289
18290found="no"
18291
18292	if test $found = "no" ; then
18293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18295		fi
18296
18297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18299		fi
18300
18301		CFLAGS="$CFLAGS -Waddress"
18302
18303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18304printf %s "checking if $CC supports -Waddress... " >&6; }
18305		cacheid=xorg_cv_cc_flag__Waddress
18306		if eval test \${$cacheid+y}
18307then :
18308  printf %s "(cached) " >&6
18309else $as_nop
18310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312int i;
18313int
18314main (void)
18315{
18316
18317  ;
18318  return 0;
18319}
18320_ACEOF
18321if ac_fn_c_try_link "$LINENO"
18322then :
18323  eval $cacheid=yes
18324else $as_nop
18325  eval $cacheid=no
18326fi
18327rm -f core conftest.err conftest.$ac_objext conftest.beam \
18328    conftest$ac_exeext conftest.$ac_ext
18329fi
18330
18331
18332		CFLAGS="$xorg_testset_save_CFLAGS"
18333
18334		eval supported=\$$cacheid
18335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18336printf "%s\n" "$supported" >&6; }
18337		if test "$supported" = "yes" ; then
18338			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18339			found="yes"
18340		fi
18341	fi
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357xorg_testset_save_CFLAGS="$CFLAGS"
18358
18359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18364then :
18365  printf %s "(cached) " >&6
18366else $as_nop
18367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368/* end confdefs.h.  */
18369int i;
18370_ACEOF
18371if ac_fn_c_try_compile "$LINENO"
18372then :
18373  xorg_cv_cc_flag_unknown_warning_option=yes
18374else $as_nop
18375  xorg_cv_cc_flag_unknown_warning_option=no
18376fi
18377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18378fi
18379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18382	CFLAGS="$xorg_testset_save_CFLAGS"
18383fi
18384
18385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18388	fi
18389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18393then :
18394  printf %s "(cached) " >&6
18395else $as_nop
18396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397/* end confdefs.h.  */
18398int i;
18399_ACEOF
18400if ac_fn_c_try_compile "$LINENO"
18401then :
18402  xorg_cv_cc_flag_unused_command_line_argument=yes
18403else $as_nop
18404  xorg_cv_cc_flag_unused_command_line_argument=no
18405fi
18406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18407fi
18408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18411	CFLAGS="$xorg_testset_save_CFLAGS"
18412fi
18413
18414found="no"
18415
18416	if test $found = "no" ; then
18417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18419		fi
18420
18421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18423		fi
18424
18425		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18426
18427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18428printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18429		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18430		if eval test \${$cacheid+y}
18431then :
18432  printf %s "(cached) " >&6
18433else $as_nop
18434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435/* end confdefs.h.  */
18436int i;
18437int
18438main (void)
18439{
18440
18441  ;
18442  return 0;
18443}
18444_ACEOF
18445if ac_fn_c_try_link "$LINENO"
18446then :
18447  eval $cacheid=yes
18448else $as_nop
18449  eval $cacheid=no
18450fi
18451rm -f core conftest.err conftest.$ac_objext conftest.beam \
18452    conftest$ac_exeext conftest.$ac_ext
18453fi
18454
18455
18456		CFLAGS="$xorg_testset_save_CFLAGS"
18457
18458		eval supported=\$$cacheid
18459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18460printf "%s\n" "$supported" >&6; }
18461		if test "$supported" = "yes" ; then
18462			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18463			found="yes"
18464		fi
18465	fi
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481xorg_testset_save_CFLAGS="$CFLAGS"
18482
18483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18488then :
18489  printf %s "(cached) " >&6
18490else $as_nop
18491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492/* end confdefs.h.  */
18493int i;
18494_ACEOF
18495if ac_fn_c_try_compile "$LINENO"
18496then :
18497  xorg_cv_cc_flag_unknown_warning_option=yes
18498else $as_nop
18499  xorg_cv_cc_flag_unknown_warning_option=no
18500fi
18501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18502fi
18503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18506	CFLAGS="$xorg_testset_save_CFLAGS"
18507fi
18508
18509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18512	fi
18513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18516if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18517then :
18518  printf %s "(cached) " >&6
18519else $as_nop
18520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521/* end confdefs.h.  */
18522int i;
18523_ACEOF
18524if ac_fn_c_try_compile "$LINENO"
18525then :
18526  xorg_cv_cc_flag_unused_command_line_argument=yes
18527else $as_nop
18528  xorg_cv_cc_flag_unused_command_line_argument=no
18529fi
18530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18531fi
18532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18535	CFLAGS="$xorg_testset_save_CFLAGS"
18536fi
18537
18538found="no"
18539
18540	if test $found = "no" ; then
18541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543		fi
18544
18545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18547		fi
18548
18549		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18550
18551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18552printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18553		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18554		if eval test \${$cacheid+y}
18555then :
18556  printf %s "(cached) " >&6
18557else $as_nop
18558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560int i;
18561int
18562main (void)
18563{
18564
18565  ;
18566  return 0;
18567}
18568_ACEOF
18569if ac_fn_c_try_link "$LINENO"
18570then :
18571  eval $cacheid=yes
18572else $as_nop
18573  eval $cacheid=no
18574fi
18575rm -f core conftest.err conftest.$ac_objext conftest.beam \
18576    conftest$ac_exeext conftest.$ac_ext
18577fi
18578
18579
18580		CFLAGS="$xorg_testset_save_CFLAGS"
18581
18582		eval supported=\$$cacheid
18583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18584printf "%s\n" "$supported" >&6; }
18585		if test "$supported" = "yes" ; then
18586			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18587			found="yes"
18588		fi
18589	fi
18590
18591
18592fi
18593
18594
18595
18596
18597
18598
18599
18600		CWARNFLAGS="$BASE_CFLAGS"
18601		if  test "x$GCC" = xyes ; then
18602		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18603		fi
18604
18605
18606
18607
18608
18609
18610
18611
18612# Check whether --enable-strict-compilation was given.
18613if test ${enable_strict_compilation+y}
18614then :
18615  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18616else $as_nop
18617  STRICT_COMPILE=no
18618fi
18619
18620
18621
18622
18623
18624
18625STRICT_CFLAGS=""
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639xorg_testset_save_CFLAGS="$CFLAGS"
18640
18641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18645if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18646then :
18647  printf %s "(cached) " >&6
18648else $as_nop
18649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650/* end confdefs.h.  */
18651int i;
18652_ACEOF
18653if ac_fn_c_try_compile "$LINENO"
18654then :
18655  xorg_cv_cc_flag_unknown_warning_option=yes
18656else $as_nop
18657  xorg_cv_cc_flag_unknown_warning_option=no
18658fi
18659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18660fi
18661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18664	CFLAGS="$xorg_testset_save_CFLAGS"
18665fi
18666
18667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18670	fi
18671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18674if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18675then :
18676  printf %s "(cached) " >&6
18677else $as_nop
18678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680int i;
18681_ACEOF
18682if ac_fn_c_try_compile "$LINENO"
18683then :
18684  xorg_cv_cc_flag_unused_command_line_argument=yes
18685else $as_nop
18686  xorg_cv_cc_flag_unused_command_line_argument=no
18687fi
18688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18689fi
18690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18693	CFLAGS="$xorg_testset_save_CFLAGS"
18694fi
18695
18696found="no"
18697
18698	if test $found = "no" ; then
18699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18701		fi
18702
18703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18705		fi
18706
18707		CFLAGS="$CFLAGS -pedantic"
18708
18709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18710printf %s "checking if $CC supports -pedantic... " >&6; }
18711		cacheid=xorg_cv_cc_flag__pedantic
18712		if eval test \${$cacheid+y}
18713then :
18714  printf %s "(cached) " >&6
18715else $as_nop
18716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718int i;
18719int
18720main (void)
18721{
18722
18723  ;
18724  return 0;
18725}
18726_ACEOF
18727if ac_fn_c_try_link "$LINENO"
18728then :
18729  eval $cacheid=yes
18730else $as_nop
18731  eval $cacheid=no
18732fi
18733rm -f core conftest.err conftest.$ac_objext conftest.beam \
18734    conftest$ac_exeext conftest.$ac_ext
18735fi
18736
18737
18738		CFLAGS="$xorg_testset_save_CFLAGS"
18739
18740		eval supported=\$$cacheid
18741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18742printf "%s\n" "$supported" >&6; }
18743		if test "$supported" = "yes" ; then
18744			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18745			found="yes"
18746		fi
18747	fi
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763xorg_testset_save_CFLAGS="$CFLAGS"
18764
18765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18769if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18770then :
18771  printf %s "(cached) " >&6
18772else $as_nop
18773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775int i;
18776_ACEOF
18777if ac_fn_c_try_compile "$LINENO"
18778then :
18779  xorg_cv_cc_flag_unknown_warning_option=yes
18780else $as_nop
18781  xorg_cv_cc_flag_unknown_warning_option=no
18782fi
18783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18784fi
18785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18788	CFLAGS="$xorg_testset_save_CFLAGS"
18789fi
18790
18791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18794	fi
18795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18798if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18799then :
18800  printf %s "(cached) " >&6
18801else $as_nop
18802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803/* end confdefs.h.  */
18804int i;
18805_ACEOF
18806if ac_fn_c_try_compile "$LINENO"
18807then :
18808  xorg_cv_cc_flag_unused_command_line_argument=yes
18809else $as_nop
18810  xorg_cv_cc_flag_unused_command_line_argument=no
18811fi
18812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18813fi
18814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18817	CFLAGS="$xorg_testset_save_CFLAGS"
18818fi
18819
18820found="no"
18821
18822	if test $found = "no" ; then
18823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18825		fi
18826
18827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18829		fi
18830
18831		CFLAGS="$CFLAGS -Werror"
18832
18833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18834printf %s "checking if $CC supports -Werror... " >&6; }
18835		cacheid=xorg_cv_cc_flag__Werror
18836		if eval test \${$cacheid+y}
18837then :
18838  printf %s "(cached) " >&6
18839else $as_nop
18840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841/* end confdefs.h.  */
18842int i;
18843int
18844main (void)
18845{
18846
18847  ;
18848  return 0;
18849}
18850_ACEOF
18851if ac_fn_c_try_link "$LINENO"
18852then :
18853  eval $cacheid=yes
18854else $as_nop
18855  eval $cacheid=no
18856fi
18857rm -f core conftest.err conftest.$ac_objext conftest.beam \
18858    conftest$ac_exeext conftest.$ac_ext
18859fi
18860
18861
18862		CFLAGS="$xorg_testset_save_CFLAGS"
18863
18864		eval supported=\$$cacheid
18865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18866printf "%s\n" "$supported" >&6; }
18867		if test "$supported" = "yes" ; then
18868			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18869			found="yes"
18870		fi
18871	fi
18872
18873	if test $found = "no" ; then
18874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18876		fi
18877
18878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18880		fi
18881
18882		CFLAGS="$CFLAGS -errwarn"
18883
18884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18885printf %s "checking if $CC supports -errwarn... " >&6; }
18886		cacheid=xorg_cv_cc_flag__errwarn
18887		if eval test \${$cacheid+y}
18888then :
18889  printf %s "(cached) " >&6
18890else $as_nop
18891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892/* end confdefs.h.  */
18893int i;
18894int
18895main (void)
18896{
18897
18898  ;
18899  return 0;
18900}
18901_ACEOF
18902if ac_fn_c_try_link "$LINENO"
18903then :
18904  eval $cacheid=yes
18905else $as_nop
18906  eval $cacheid=no
18907fi
18908rm -f core conftest.err conftest.$ac_objext conftest.beam \
18909    conftest$ac_exeext conftest.$ac_ext
18910fi
18911
18912
18913		CFLAGS="$xorg_testset_save_CFLAGS"
18914
18915		eval supported=\$$cacheid
18916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18917printf "%s\n" "$supported" >&6; }
18918		if test "$supported" = "yes" ; then
18919			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18920			found="yes"
18921		fi
18922	fi
18923
18924
18925
18926# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18927# activate it with -Werror, so we add it here explicitly.
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941xorg_testset_save_CFLAGS="$CFLAGS"
18942
18943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18947if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18948then :
18949  printf %s "(cached) " >&6
18950else $as_nop
18951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952/* end confdefs.h.  */
18953int i;
18954_ACEOF
18955if ac_fn_c_try_compile "$LINENO"
18956then :
18957  xorg_cv_cc_flag_unknown_warning_option=yes
18958else $as_nop
18959  xorg_cv_cc_flag_unknown_warning_option=no
18960fi
18961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18962fi
18963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18966	CFLAGS="$xorg_testset_save_CFLAGS"
18967fi
18968
18969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18972	fi
18973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18976if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18977then :
18978  printf %s "(cached) " >&6
18979else $as_nop
18980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981/* end confdefs.h.  */
18982int i;
18983_ACEOF
18984if ac_fn_c_try_compile "$LINENO"
18985then :
18986  xorg_cv_cc_flag_unused_command_line_argument=yes
18987else $as_nop
18988  xorg_cv_cc_flag_unused_command_line_argument=no
18989fi
18990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18991fi
18992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18995	CFLAGS="$xorg_testset_save_CFLAGS"
18996fi
18997
18998found="no"
18999
19000	if test $found = "no" ; then
19001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19003		fi
19004
19005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19007		fi
19008
19009		CFLAGS="$CFLAGS -Werror=attributes"
19010
19011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19012printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19013		cacheid=xorg_cv_cc_flag__Werror_attributes
19014		if eval test \${$cacheid+y}
19015then :
19016  printf %s "(cached) " >&6
19017else $as_nop
19018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019/* end confdefs.h.  */
19020int i;
19021int
19022main (void)
19023{
19024
19025  ;
19026  return 0;
19027}
19028_ACEOF
19029if ac_fn_c_try_link "$LINENO"
19030then :
19031  eval $cacheid=yes
19032else $as_nop
19033  eval $cacheid=no
19034fi
19035rm -f core conftest.err conftest.$ac_objext conftest.beam \
19036    conftest$ac_exeext conftest.$ac_ext
19037fi
19038
19039
19040		CFLAGS="$xorg_testset_save_CFLAGS"
19041
19042		eval supported=\$$cacheid
19043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19044printf "%s\n" "$supported" >&6; }
19045		if test "$supported" = "yes" ; then
19046			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19047			found="yes"
19048		fi
19049	fi
19050
19051
19052
19053if test "x$STRICT_COMPILE" = "xyes"; then
19054    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19055    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19056fi
19057
19058
19059
19060
19061
19062
19063
19064
19065cat >>confdefs.h <<_ACEOF
19066#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19067_ACEOF
19068
19069	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19070	if test "x$PVM" = "x"; then
19071		PVM="0"
19072	fi
19073
19074printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19075
19076	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19077	if test "x$PVP" = "x"; then
19078		PVP="0"
19079	fi
19080
19081printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19082
19083
19084
19085CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19086mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19087|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19088touch \$(top_srcdir)/ChangeLog; \
19089echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19090
19091
19092
19093
19094macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19095INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19096mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19097|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19098touch \$(top_srcdir)/INSTALL; \
19099echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19100
19101
19102
19103
19104
19105
19106case $host_os in
19107    solaris*)
19108        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19109        # check for a man page file found in later versions that use
19110        # traditional section numbers instead
19111        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19112printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19113if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19114then :
19115  printf %s "(cached) " >&6
19116else $as_nop
19117  test "$cross_compiling" = yes &&
19118  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19119if test -r "/usr/share/man/man7/attributes.7"; then
19120  ac_cv_file__usr_share_man_man7_attributes_7=yes
19121else
19122  ac_cv_file__usr_share_man_man7_attributes_7=no
19123fi
19124fi
19125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19126printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19127if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19128then :
19129  SYSV_MAN_SECTIONS=false
19130else $as_nop
19131  SYSV_MAN_SECTIONS=true
19132fi
19133
19134        ;;
19135    *) SYSV_MAN_SECTIONS=false ;;
19136esac
19137
19138if test x$APP_MAN_SUFFIX = x    ; then
19139    APP_MAN_SUFFIX=1
19140fi
19141if test x$APP_MAN_DIR = x    ; then
19142    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19143fi
19144
19145if test x$LIB_MAN_SUFFIX = x    ; then
19146    LIB_MAN_SUFFIX=3
19147fi
19148if test x$LIB_MAN_DIR = x    ; then
19149    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19150fi
19151
19152if test x$FILE_MAN_SUFFIX = x    ; then
19153    case $SYSV_MAN_SECTIONS in
19154	true)				FILE_MAN_SUFFIX=4  ;;
19155	*)				FILE_MAN_SUFFIX=5  ;;
19156    esac
19157fi
19158if test x$FILE_MAN_DIR = x    ; then
19159    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19160fi
19161
19162if test x$MISC_MAN_SUFFIX = x    ; then
19163    case $SYSV_MAN_SECTIONS in
19164	true)				MISC_MAN_SUFFIX=5  ;;
19165	*)				MISC_MAN_SUFFIX=7  ;;
19166    esac
19167fi
19168if test x$MISC_MAN_DIR = x    ; then
19169    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19170fi
19171
19172if test x$DRIVER_MAN_SUFFIX = x    ; then
19173    case $SYSV_MAN_SECTIONS in
19174	true)				DRIVER_MAN_SUFFIX=7  ;;
19175	*)				DRIVER_MAN_SUFFIX=4  ;;
19176    esac
19177fi
19178if test x$DRIVER_MAN_DIR = x    ; then
19179    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19180fi
19181
19182if test x$ADMIN_MAN_SUFFIX = x    ; then
19183    case $SYSV_MAN_SECTIONS in
19184	true)				ADMIN_MAN_SUFFIX=1m ;;
19185	*)				ADMIN_MAN_SUFFIX=8  ;;
19186    esac
19187fi
19188if test x$ADMIN_MAN_DIR = x    ; then
19189    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19190fi
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206XORG_MAN_PAGE="X Version 11"
19207
19208MAN_SUBSTS="\
19209	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19210	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19211	-e 's|__xservername__|Xorg|g' \
19212	-e 's|__xconfigfile__|xorg.conf|g' \
19213	-e 's|__projectroot__|\$(prefix)|g' \
19214	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19215	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19216	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19217	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19218	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19219	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19220	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19221
19222
19223
19224# Check whether --enable-silent-rules was given.
19225if test ${enable_silent_rules+y}
19226then :
19227  enableval=$enable_silent_rules;
19228fi
19229
19230case $enable_silent_rules in # (((
19231  yes) AM_DEFAULT_VERBOSITY=0;;
19232   no) AM_DEFAULT_VERBOSITY=1;;
19233    *) AM_DEFAULT_VERBOSITY=0;;
19234esac
19235am_make=${MAKE-make}
19236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19237printf %s "checking whether $am_make supports nested variables... " >&6; }
19238if test ${am_cv_make_support_nested_variables+y}
19239then :
19240  printf %s "(cached) " >&6
19241else $as_nop
19242  if printf "%s\n" 'TRUE=$(BAR$(V))
19243BAR0=false
19244BAR1=true
19245V=1
19246am__doit:
19247	@$(TRUE)
19248.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19249  am_cv_make_support_nested_variables=yes
19250else
19251  am_cv_make_support_nested_variables=no
19252fi
19253fi
19254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19255printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19256if test $am_cv_make_support_nested_variables = yes; then
19257    AM_V='$(V)'
19258  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19259else
19260  AM_V=$AM_DEFAULT_VERBOSITY
19261  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19262fi
19263AM_BACKSLASH='\'
19264
19265
19266
19267
19268# Set library version for Xft.h from package version set in AC_INIT
19269# copied from PACKAGE_VERSION_* settings in XORG_VERSION
19270ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
19271
19272
19273cat >>confdefs.h <<_ACEOF
19274#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19275_ACEOF
19276
19277
19278cat >>confdefs.h <<_ACEOF
19279#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19280_ACEOF
19281
19282
19283cat >>confdefs.h <<_ACEOF
19284#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19285_ACEOF
19286
19287
19288XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
19289
19290
19291#
19292# Check for Xrender
19293#
19294
19295pkg_failed=no
19296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
19297printf %s "checking for XRENDER... " >&6; }
19298
19299if test -n "$XRENDER_CFLAGS"; then
19300    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
19301 elif test -n "$PKG_CONFIG"; then
19302    if test -n "$PKG_CONFIG" && \
19303    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19304  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19305  ac_status=$?
19306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19307  test $ac_status = 0; }; then
19308  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
19309		      test "x$?" != "x0" && pkg_failed=yes
19310else
19311  pkg_failed=yes
19312fi
19313 else
19314    pkg_failed=untried
19315fi
19316if test -n "$XRENDER_LIBS"; then
19317    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
19318 elif test -n "$PKG_CONFIG"; then
19319    if test -n "$PKG_CONFIG" && \
19320    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19321  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19322  ac_status=$?
19323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19324  test $ac_status = 0; }; then
19325  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
19326		      test "x$?" != "x0" && pkg_failed=yes
19327else
19328  pkg_failed=yes
19329fi
19330 else
19331    pkg_failed=untried
19332fi
19333
19334
19335
19336if test $pkg_failed = yes; then
19337   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338printf "%s\n" "no" >&6; }
19339
19340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19341        _pkg_short_errors_supported=yes
19342else
19343        _pkg_short_errors_supported=no
19344fi
19345        if test $_pkg_short_errors_supported = yes; then
19346	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19347        else
19348	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19349        fi
19350	# Put the nasty error message in config.log where it belongs
19351	echo "$XRENDER_PKG_ERRORS" >&5
19352
19353	as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
19354
19355$XRENDER_PKG_ERRORS
19356
19357Consider adjusting the PKG_CONFIG_PATH environment variable if you
19358installed software in a non-standard prefix.
19359
19360Alternatively, you may set the environment variables XRENDER_CFLAGS
19361and XRENDER_LIBS to avoid the need to call pkg-config.
19362See the pkg-config man page for more details." "$LINENO" 5
19363elif test $pkg_failed = untried; then
19364     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365printf "%s\n" "no" >&6; }
19366	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19367printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19368as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19369is in your PATH or set the PKG_CONFIG environment variable to the full
19370path to pkg-config.
19371
19372Alternatively, you may set the environment variables XRENDER_CFLAGS
19373and XRENDER_LIBS to avoid the need to call pkg-config.
19374See the pkg-config man page for more details.
19375
19376To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19377See \`config.log' for more details" "$LINENO" 5; }
19378else
19379	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19380	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19381        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382printf "%s\n" "yes" >&6; }
19383
19384fi
19385
19386# Check freetype configuration
19387
19388pkg_failed=no
19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19390printf %s "checking for FREETYPE... " >&6; }
19391
19392if test -n "$FREETYPE_CFLAGS"; then
19393    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19394 elif test -n "$PKG_CONFIG"; then
19395    if test -n "$PKG_CONFIG" && \
19396    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19397  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19398  ac_status=$?
19399  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400  test $ac_status = 0; }; then
19401  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
19402		      test "x$?" != "x0" && pkg_failed=yes
19403else
19404  pkg_failed=yes
19405fi
19406 else
19407    pkg_failed=untried
19408fi
19409if test -n "$FREETYPE_LIBS"; then
19410    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19411 elif test -n "$PKG_CONFIG"; then
19412    if test -n "$PKG_CONFIG" && \
19413    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19414  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19415  ac_status=$?
19416  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19417  test $ac_status = 0; }; then
19418  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
19419		      test "x$?" != "x0" && pkg_failed=yes
19420else
19421  pkg_failed=yes
19422fi
19423 else
19424    pkg_failed=untried
19425fi
19426
19427
19428
19429if test $pkg_failed = yes; then
19430   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431printf "%s\n" "no" >&6; }
19432
19433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19434        _pkg_short_errors_supported=yes
19435else
19436        _pkg_short_errors_supported=no
19437fi
19438        if test $_pkg_short_errors_supported = yes; then
19439	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19440        else
19441	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19442        fi
19443	# Put the nasty error message in config.log where it belongs
19444	echo "$FREETYPE_PKG_ERRORS" >&5
19445
19446	as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
19447
19448$FREETYPE_PKG_ERRORS
19449
19450Consider adjusting the PKG_CONFIG_PATH environment variable if you
19451installed software in a non-standard prefix.
19452
19453Alternatively, you may set the environment variables FREETYPE_CFLAGS
19454and FREETYPE_LIBS to avoid the need to call pkg-config.
19455See the pkg-config man page for more details." "$LINENO" 5
19456elif test $pkg_failed = untried; then
19457     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458printf "%s\n" "no" >&6; }
19459	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19460printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19461as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19462is in your PATH or set the PKG_CONFIG environment variable to the full
19463path to pkg-config.
19464
19465Alternatively, you may set the environment variables FREETYPE_CFLAGS
19466and FREETYPE_LIBS to avoid the need to call pkg-config.
19467See the pkg-config man page for more details.
19468
19469To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19470See \`config.log' for more details" "$LINENO" 5; }
19471else
19472	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19473	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19474        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19475printf "%s\n" "yes" >&6; }
19476
19477fi
19478
19479# Check fontconfig configuration
19480
19481pkg_failed=no
19482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
19483printf %s "checking for FONTCONFIG... " >&6; }
19484
19485if test -n "$FONTCONFIG_CFLAGS"; then
19486    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
19487 elif test -n "$PKG_CONFIG"; then
19488    if test -n "$PKG_CONFIG" && \
19489    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19490  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19491  ac_status=$?
19492  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19493  test $ac_status = 0; }; then
19494  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
19495		      test "x$?" != "x0" && pkg_failed=yes
19496else
19497  pkg_failed=yes
19498fi
19499 else
19500    pkg_failed=untried
19501fi
19502if test -n "$FONTCONFIG_LIBS"; then
19503    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
19504 elif test -n "$PKG_CONFIG"; then
19505    if test -n "$PKG_CONFIG" && \
19506    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19507  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19508  ac_status=$?
19509  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19510  test $ac_status = 0; }; then
19511  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
19512		      test "x$?" != "x0" && pkg_failed=yes
19513else
19514  pkg_failed=yes
19515fi
19516 else
19517    pkg_failed=untried
19518fi
19519
19520
19521
19522if test $pkg_failed = yes; then
19523   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524printf "%s\n" "no" >&6; }
19525
19526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19527        _pkg_short_errors_supported=yes
19528else
19529        _pkg_short_errors_supported=no
19530fi
19531        if test $_pkg_short_errors_supported = yes; then
19532	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19533        else
19534	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19535        fi
19536	# Put the nasty error message in config.log where it belongs
19537	echo "$FONTCONFIG_PKG_ERRORS" >&5
19538
19539	as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
19540
19541$FONTCONFIG_PKG_ERRORS
19542
19543Consider adjusting the PKG_CONFIG_PATH environment variable if you
19544installed software in a non-standard prefix.
19545
19546Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19547and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19548See the pkg-config man page for more details." "$LINENO" 5
19549elif test $pkg_failed = untried; then
19550     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551printf "%s\n" "no" >&6; }
19552	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19553printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19554as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19555is in your PATH or set the PKG_CONFIG environment variable to the full
19556path to pkg-config.
19557
19558Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19559and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19560See the pkg-config man page for more details.
19561
19562To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19563See \`config.log' for more details" "$LINENO" 5; }
19564else
19565	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
19566	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
19567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568printf "%s\n" "yes" >&6; }
19569
19570fi
19571
19572
19573
19574
19575
19576
19577
19578
19579if test "$VERSION" = "" ; then
19580       VERSION=$PACKAGE_VERSION;
19581fi
19582
19583ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
19584
19585cat >confcache <<\_ACEOF
19586# This file is a shell script that caches the results of configure
19587# tests run on this system so they can be shared between configure
19588# scripts and configure runs, see configure's option --config-cache.
19589# It is not useful on other systems.  If it contains results you don't
19590# want to keep, you may remove or edit it.
19591#
19592# config.status only pays attention to the cache file if you give it
19593# the --recheck option to rerun configure.
19594#
19595# `ac_cv_env_foo' variables (set or unset) will be overridden when
19596# loading this file, other *unset* `ac_cv_foo' will be assigned the
19597# following values.
19598
19599_ACEOF
19600
19601# The following way of writing the cache mishandles newlines in values,
19602# but we know of no workaround that is simple, portable, and efficient.
19603# So, we kill variables containing newlines.
19604# Ultrix sh set writes to stderr and can't be redirected directly,
19605# and sets the high bit in the cache file unless we assign to the vars.
19606(
19607  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19608    eval ac_val=\$$ac_var
19609    case $ac_val in #(
19610    *${as_nl}*)
19611      case $ac_var in #(
19612      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19613printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19614      esac
19615      case $ac_var in #(
19616      _ | IFS | as_nl) ;; #(
19617      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19618      *) { eval $ac_var=; unset $ac_var;} ;;
19619      esac ;;
19620    esac
19621  done
19622
19623  (set) 2>&1 |
19624    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19625    *${as_nl}ac_space=\ *)
19626      # `set' does not quote correctly, so add quotes: double-quote
19627      # substitution turns \\\\ into \\, and sed turns \\ into \.
19628      sed -n \
19629	"s/'/'\\\\''/g;
19630	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19631      ;; #(
19632    *)
19633      # `set' quotes correctly as required by POSIX, so do not add quotes.
19634      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19635      ;;
19636    esac |
19637    sort
19638) |
19639  sed '
19640     /^ac_cv_env_/b end
19641     t clear
19642     :clear
19643     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19644     t end
19645     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19646     :end' >>confcache
19647if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19648  if test -w "$cache_file"; then
19649    if test "x$cache_file" != "x/dev/null"; then
19650      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19651printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19652      if test ! -f "$cache_file" || test -h "$cache_file"; then
19653	cat confcache >"$cache_file"
19654      else
19655        case $cache_file in #(
19656        */* | ?:*)
19657	  mv -f confcache "$cache_file"$$ &&
19658	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19659        *)
19660	  mv -f confcache "$cache_file" ;;
19661	esac
19662      fi
19663    fi
19664  else
19665    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19666printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19667  fi
19668fi
19669rm -f confcache
19670
19671test "x$prefix" = xNONE && prefix=$ac_default_prefix
19672# Let make expand exec_prefix.
19673test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19674
19675DEFS=-DHAVE_CONFIG_H
19676
19677ac_libobjs=
19678ac_ltlibobjs=
19679U=
19680for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19681  # 1. Remove the extension, and $U if already installed.
19682  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19683  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19684  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19685  #    will be set to the directory where LIBOBJS objects are built.
19686  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19687  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19688done
19689LIBOBJS=$ac_libobjs
19690
19691LTLIBOBJS=$ac_ltlibobjs
19692
19693
19694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19695printf %s "checking that generated files are newer than configure... " >&6; }
19696   if test -n "$am_sleep_pid"; then
19697     # Hide warnings about reused PIDs.
19698     wait $am_sleep_pid 2>/dev/null
19699   fi
19700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19701printf "%s\n" "done" >&6; }
19702 if test -n "$EXEEXT"; then
19703  am__EXEEXT_TRUE=
19704  am__EXEEXT_FALSE='#'
19705else
19706  am__EXEEXT_TRUE='#'
19707  am__EXEEXT_FALSE=
19708fi
19709
19710if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19711  as_fn_error $? "conditional \"AMDEP\" was never defined.
19712Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713fi
19714if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19715  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19716Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717fi
19718
19719: "${CONFIG_STATUS=./config.status}"
19720ac_write_fail=0
19721ac_clean_files_save=$ac_clean_files
19722ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19724printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19725as_write_fail=0
19726cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19727#! $SHELL
19728# Generated by $as_me.
19729# Run this file to recreate the current configuration.
19730# Compiler output produced by configure, useful for debugging
19731# configure, is in config.log if it exists.
19732
19733debug=false
19734ac_cs_recheck=false
19735ac_cs_silent=false
19736
19737SHELL=\${CONFIG_SHELL-$SHELL}
19738export SHELL
19739_ASEOF
19740cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19741## -------------------- ##
19742## M4sh Initialization. ##
19743## -------------------- ##
19744
19745# Be more Bourne compatible
19746DUALCASE=1; export DUALCASE # for MKS sh
19747as_nop=:
19748if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19749then :
19750  emulate sh
19751  NULLCMD=:
19752  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19753  # is contrary to our usage.  Disable this feature.
19754  alias -g '${1+"$@"}'='"$@"'
19755  setopt NO_GLOB_SUBST
19756else $as_nop
19757  case `(set -o) 2>/dev/null` in #(
19758  *posix*) :
19759    set -o posix ;; #(
19760  *) :
19761     ;;
19762esac
19763fi
19764
19765
19766
19767# Reset variables that may have inherited troublesome values from
19768# the environment.
19769
19770# IFS needs to be set, to space, tab, and newline, in precisely that order.
19771# (If _AS_PATH_WALK were called with IFS unset, it would have the
19772# side effect of setting IFS to empty, thus disabling word splitting.)
19773# Quoting is to prevent editors from complaining about space-tab.
19774as_nl='
19775'
19776export as_nl
19777IFS=" ""	$as_nl"
19778
19779PS1='$ '
19780PS2='> '
19781PS4='+ '
19782
19783# Ensure predictable behavior from utilities with locale-dependent output.
19784LC_ALL=C
19785export LC_ALL
19786LANGUAGE=C
19787export LANGUAGE
19788
19789# We cannot yet rely on "unset" to work, but we need these variables
19790# to be unset--not just set to an empty or harmless value--now, to
19791# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19792# also avoids known problems related to "unset" and subshell syntax
19793# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19794for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19795do eval test \${$as_var+y} \
19796  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19797done
19798
19799# Ensure that fds 0, 1, and 2 are open.
19800if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19801if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19802if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19803
19804# The user is always right.
19805if ${PATH_SEPARATOR+false} :; then
19806  PATH_SEPARATOR=:
19807  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19808    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19809      PATH_SEPARATOR=';'
19810  }
19811fi
19812
19813
19814# Find who we are.  Look in the path if we contain no directory separator.
19815as_myself=
19816case $0 in #((
19817  *[\\/]* ) as_myself=$0 ;;
19818  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819for as_dir in $PATH
19820do
19821  IFS=$as_save_IFS
19822  case $as_dir in #(((
19823    '') as_dir=./ ;;
19824    */) ;;
19825    *) as_dir=$as_dir/ ;;
19826  esac
19827    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19828  done
19829IFS=$as_save_IFS
19830
19831     ;;
19832esac
19833# We did not find ourselves, most probably we were run as `sh COMMAND'
19834# in which case we are not to be found in the path.
19835if test "x$as_myself" = x; then
19836  as_myself=$0
19837fi
19838if test ! -f "$as_myself"; then
19839  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19840  exit 1
19841fi
19842
19843
19844
19845# as_fn_error STATUS ERROR [LINENO LOG_FD]
19846# ----------------------------------------
19847# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19848# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19849# script with STATUS, using 1 if that was 0.
19850as_fn_error ()
19851{
19852  as_status=$1; test $as_status -eq 0 && as_status=1
19853  if test "$4"; then
19854    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19855    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19856  fi
19857  printf "%s\n" "$as_me: error: $2" >&2
19858  as_fn_exit $as_status
19859} # as_fn_error
19860
19861
19862
19863# as_fn_set_status STATUS
19864# -----------------------
19865# Set $? to STATUS, without forking.
19866as_fn_set_status ()
19867{
19868  return $1
19869} # as_fn_set_status
19870
19871# as_fn_exit STATUS
19872# -----------------
19873# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19874as_fn_exit ()
19875{
19876  set +e
19877  as_fn_set_status $1
19878  exit $1
19879} # as_fn_exit
19880
19881# as_fn_unset VAR
19882# ---------------
19883# Portably unset VAR.
19884as_fn_unset ()
19885{
19886  { eval $1=; unset $1;}
19887}
19888as_unset=as_fn_unset
19889
19890# as_fn_append VAR VALUE
19891# ----------------------
19892# Append the text in VALUE to the end of the definition contained in VAR. Take
19893# advantage of any shell optimizations that allow amortized linear growth over
19894# repeated appends, instead of the typical quadratic growth present in naive
19895# implementations.
19896if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19897then :
19898  eval 'as_fn_append ()
19899  {
19900    eval $1+=\$2
19901  }'
19902else $as_nop
19903  as_fn_append ()
19904  {
19905    eval $1=\$$1\$2
19906  }
19907fi # as_fn_append
19908
19909# as_fn_arith ARG...
19910# ------------------
19911# Perform arithmetic evaluation on the ARGs, and store the result in the
19912# global $as_val. Take advantage of shells that can avoid forks. The arguments
19913# must be portable across $(()) and expr.
19914if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19915then :
19916  eval 'as_fn_arith ()
19917  {
19918    as_val=$(( $* ))
19919  }'
19920else $as_nop
19921  as_fn_arith ()
19922  {
19923    as_val=`expr "$@" || test $? -eq 1`
19924  }
19925fi # as_fn_arith
19926
19927
19928if expr a : '\(a\)' >/dev/null 2>&1 &&
19929   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19930  as_expr=expr
19931else
19932  as_expr=false
19933fi
19934
19935if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19936  as_basename=basename
19937else
19938  as_basename=false
19939fi
19940
19941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19942  as_dirname=dirname
19943else
19944  as_dirname=false
19945fi
19946
19947as_me=`$as_basename -- "$0" ||
19948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19949	 X"$0" : 'X\(//\)$' \| \
19950	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19951printf "%s\n" X/"$0" |
19952    sed '/^.*\/\([^/][^/]*\)\/*$/{
19953	    s//\1/
19954	    q
19955	  }
19956	  /^X\/\(\/\/\)$/{
19957	    s//\1/
19958	    q
19959	  }
19960	  /^X\/\(\/\).*/{
19961	    s//\1/
19962	    q
19963	  }
19964	  s/.*/./; q'`
19965
19966# Avoid depending upon Character Ranges.
19967as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19968as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19969as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19970as_cr_digits='0123456789'
19971as_cr_alnum=$as_cr_Letters$as_cr_digits
19972
19973
19974# Determine whether it's possible to make 'echo' print without a newline.
19975# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19976# for compatibility with existing Makefiles.
19977ECHO_C= ECHO_N= ECHO_T=
19978case `echo -n x` in #(((((
19979-n*)
19980  case `echo 'xy\c'` in
19981  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19982  xy)  ECHO_C='\c';;
19983  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19984       ECHO_T='	';;
19985  esac;;
19986*)
19987  ECHO_N='-n';;
19988esac
19989
19990# For backward compatibility with old third-party macros, we provide
19991# the shell variables $as_echo and $as_echo_n.  New code should use
19992# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19993as_echo='printf %s\n'
19994as_echo_n='printf %s'
19995
19996rm -f conf$$ conf$$.exe conf$$.file
19997if test -d conf$$.dir; then
19998  rm -f conf$$.dir/conf$$.file
19999else
20000  rm -f conf$$.dir
20001  mkdir conf$$.dir 2>/dev/null
20002fi
20003if (echo >conf$$.file) 2>/dev/null; then
20004  if ln -s conf$$.file conf$$ 2>/dev/null; then
20005    as_ln_s='ln -s'
20006    # ... but there are two gotchas:
20007    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20008    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20009    # In both cases, we have to default to `cp -pR'.
20010    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20011      as_ln_s='cp -pR'
20012  elif ln conf$$.file conf$$ 2>/dev/null; then
20013    as_ln_s=ln
20014  else
20015    as_ln_s='cp -pR'
20016  fi
20017else
20018  as_ln_s='cp -pR'
20019fi
20020rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20021rmdir conf$$.dir 2>/dev/null
20022
20023
20024# as_fn_mkdir_p
20025# -------------
20026# Create "$as_dir" as a directory, including parents if necessary.
20027as_fn_mkdir_p ()
20028{
20029
20030  case $as_dir in #(
20031  -*) as_dir=./$as_dir;;
20032  esac
20033  test -d "$as_dir" || eval $as_mkdir_p || {
20034    as_dirs=
20035    while :; do
20036      case $as_dir in #(
20037      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20038      *) as_qdir=$as_dir;;
20039      esac
20040      as_dirs="'$as_qdir' $as_dirs"
20041      as_dir=`$as_dirname -- "$as_dir" ||
20042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20043	 X"$as_dir" : 'X\(//\)[^/]' \| \
20044	 X"$as_dir" : 'X\(//\)$' \| \
20045	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20046printf "%s\n" X"$as_dir" |
20047    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20048	    s//\1/
20049	    q
20050	  }
20051	  /^X\(\/\/\)[^/].*/{
20052	    s//\1/
20053	    q
20054	  }
20055	  /^X\(\/\/\)$/{
20056	    s//\1/
20057	    q
20058	  }
20059	  /^X\(\/\).*/{
20060	    s//\1/
20061	    q
20062	  }
20063	  s/.*/./; q'`
20064      test -d "$as_dir" && break
20065    done
20066    test -z "$as_dirs" || eval "mkdir $as_dirs"
20067  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20068
20069
20070} # as_fn_mkdir_p
20071if mkdir -p . 2>/dev/null; then
20072  as_mkdir_p='mkdir -p "$as_dir"'
20073else
20074  test -d ./-p && rmdir ./-p
20075  as_mkdir_p=false
20076fi
20077
20078
20079# as_fn_executable_p FILE
20080# -----------------------
20081# Test if FILE is an executable regular file.
20082as_fn_executable_p ()
20083{
20084  test -f "$1" && test -x "$1"
20085} # as_fn_executable_p
20086as_test_x='test -x'
20087as_executable_p=as_fn_executable_p
20088
20089# Sed expression to map a string onto a valid CPP name.
20090as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20091
20092# Sed expression to map a string onto a valid variable name.
20093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20094
20095
20096exec 6>&1
20097## ----------------------------------- ##
20098## Main body of $CONFIG_STATUS script. ##
20099## ----------------------------------- ##
20100_ASEOF
20101test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20102
20103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20104# Save the log message, to keep $0 and so on meaningful, and to
20105# report actual input values of CONFIG_FILES etc. instead of their
20106# values after options handling.
20107ac_log="
20108This file was extended by libXft $as_me 2.3.8, which was
20109generated by GNU Autoconf 2.71.  Invocation command line was
20110
20111  CONFIG_FILES    = $CONFIG_FILES
20112  CONFIG_HEADERS  = $CONFIG_HEADERS
20113  CONFIG_LINKS    = $CONFIG_LINKS
20114  CONFIG_COMMANDS = $CONFIG_COMMANDS
20115  $ $0 $@
20116
20117on `(hostname || uname -n) 2>/dev/null | sed 1q`
20118"
20119
20120_ACEOF
20121
20122case $ac_config_files in *"
20123"*) set x $ac_config_files; shift; ac_config_files=$*;;
20124esac
20125
20126case $ac_config_headers in *"
20127"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20128esac
20129
20130
20131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20132# Files that config.status was made for.
20133config_files="$ac_config_files"
20134config_headers="$ac_config_headers"
20135config_commands="$ac_config_commands"
20136
20137_ACEOF
20138
20139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20140ac_cs_usage="\
20141\`$as_me' instantiates files and other configuration actions
20142from templates according to the current configuration.  Unless the files
20143and actions are specified as TAGs, all are instantiated by default.
20144
20145Usage: $0 [OPTION]... [TAG]...
20146
20147  -h, --help       print this help, then exit
20148  -V, --version    print version number and configuration settings, then exit
20149      --config     print configuration, then exit
20150  -q, --quiet, --silent
20151                   do not print progress messages
20152  -d, --debug      don't remove temporary files
20153      --recheck    update $as_me by reconfiguring in the same conditions
20154      --file=FILE[:TEMPLATE]
20155                   instantiate the configuration file FILE
20156      --header=FILE[:TEMPLATE]
20157                   instantiate the configuration header FILE
20158
20159Configuration files:
20160$config_files
20161
20162Configuration headers:
20163$config_headers
20164
20165Configuration commands:
20166$config_commands
20167
20168Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
20169
20170_ACEOF
20171ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20172ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174ac_cs_config='$ac_cs_config_escaped'
20175ac_cs_version="\\
20176libXft config.status 2.3.8
20177configured by $0, generated by GNU Autoconf 2.71,
20178  with options \\"\$ac_cs_config\\"
20179
20180Copyright (C) 2021 Free Software Foundation, Inc.
20181This config.status script is free software; the Free Software Foundation
20182gives unlimited permission to copy, distribute and modify it."
20183
20184ac_pwd='$ac_pwd'
20185srcdir='$srcdir'
20186INSTALL='$INSTALL'
20187MKDIR_P='$MKDIR_P'
20188AWK='$AWK'
20189test -n "\$AWK" || AWK=awk
20190_ACEOF
20191
20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193# The default lists apply if the user does not specify any file.
20194ac_need_defaults=:
20195while test $# != 0
20196do
20197  case $1 in
20198  --*=?*)
20199    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20200    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20201    ac_shift=:
20202    ;;
20203  --*=)
20204    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20205    ac_optarg=
20206    ac_shift=:
20207    ;;
20208  *)
20209    ac_option=$1
20210    ac_optarg=$2
20211    ac_shift=shift
20212    ;;
20213  esac
20214
20215  case $ac_option in
20216  # Handling of the options.
20217  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20218    ac_cs_recheck=: ;;
20219  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20220    printf "%s\n" "$ac_cs_version"; exit ;;
20221  --config | --confi | --conf | --con | --co | --c )
20222    printf "%s\n" "$ac_cs_config"; exit ;;
20223  --debug | --debu | --deb | --de | --d | -d )
20224    debug=: ;;
20225  --file | --fil | --fi | --f )
20226    $ac_shift
20227    case $ac_optarg in
20228    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20229    '') as_fn_error $? "missing file argument" ;;
20230    esac
20231    as_fn_append CONFIG_FILES " '$ac_optarg'"
20232    ac_need_defaults=false;;
20233  --header | --heade | --head | --hea )
20234    $ac_shift
20235    case $ac_optarg in
20236    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20237    esac
20238    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20239    ac_need_defaults=false;;
20240  --he | --h)
20241    # Conflict between --help and --header
20242    as_fn_error $? "ambiguous option: \`$1'
20243Try \`$0 --help' for more information.";;
20244  --help | --hel | -h )
20245    printf "%s\n" "$ac_cs_usage"; exit ;;
20246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20247  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20248    ac_cs_silent=: ;;
20249
20250  # This is an error.
20251  -*) as_fn_error $? "unrecognized option: \`$1'
20252Try \`$0 --help' for more information." ;;
20253
20254  *) as_fn_append ac_config_targets " $1"
20255     ac_need_defaults=false ;;
20256
20257  esac
20258  shift
20259done
20260
20261ac_configure_extra_args=
20262
20263if $ac_cs_silent; then
20264  exec 6>/dev/null
20265  ac_configure_extra_args="$ac_configure_extra_args --silent"
20266fi
20267
20268_ACEOF
20269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270if \$ac_cs_recheck; then
20271  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20272  shift
20273  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20274  CONFIG_SHELL='$SHELL'
20275  export CONFIG_SHELL
20276  exec "\$@"
20277fi
20278
20279_ACEOF
20280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281exec 5>>config.log
20282{
20283  echo
20284  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20285## Running $as_me. ##
20286_ASBOX
20287  printf "%s\n" "$ac_log"
20288} >&5
20289
20290_ACEOF
20291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292#
20293# INIT-COMMANDS
20294#
20295AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20296
20297
20298# The HP-UX ksh and POSIX shell print the target directory to stdout
20299# if CDPATH is set.
20300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20301
20302sed_quote_subst='$sed_quote_subst'
20303double_quote_subst='$double_quote_subst'
20304delay_variable_subst='$delay_variable_subst'
20305macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20306macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20307enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20308enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20309pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20310enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20311shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20312SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20313ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20314PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20315host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20316host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20317host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20318build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20319build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20320build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20321SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20322Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20323GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20324EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20325FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20326LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20327NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20328LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20329max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20330ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20331exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20332lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20333lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20334lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20335lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20336lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20337reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20338reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20339FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20340OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20341deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20342file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20343file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20344want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20345DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20346sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20347AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20348lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20349AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20350archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20351STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20352RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20353old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20354old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20355old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20356lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20357CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20358CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20359compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20360GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20361lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20362lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20363lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20364lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20365lt_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"`'
20366lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20367nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20368lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20369lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20370objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20371MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20372lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20373lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20374lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20375lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20376lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20377need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20378MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20379DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20380NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20381LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20382OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20383OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20384libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20385shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20386extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20387archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20388enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20389export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20390whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20391compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20392old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20393old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20394archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20395archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20396module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20397module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20398with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20399allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20400no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20401hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20402hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20403hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20404hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20405hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20406hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20407hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20408inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20409link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20410always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20411export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20412exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20413include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20414prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20415postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20416file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20417variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20418need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20419need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20420version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20421runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20422shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20423shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20424libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20425library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20426soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20427install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20428postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20429postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20430finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20431finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20432hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20433sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20434configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20435configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20436hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20437enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20438enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20439enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20440old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20441striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20442
20443LTCC='$LTCC'
20444LTCFLAGS='$LTCFLAGS'
20445compiler='$compiler_DEFAULT'
20446
20447# A function that is used when there is no print builtin or printf.
20448func_fallback_echo ()
20449{
20450  eval 'cat <<_LTECHO_EOF
20451\$1
20452_LTECHO_EOF'
20453}
20454
20455# Quote evaled strings.
20456for var in SHELL \
20457ECHO \
20458PATH_SEPARATOR \
20459SED \
20460GREP \
20461EGREP \
20462FGREP \
20463LD \
20464NM \
20465LN_S \
20466lt_SP2NL \
20467lt_NL2SP \
20468reload_flag \
20469FILECMD \
20470OBJDUMP \
20471deplibs_check_method \
20472file_magic_cmd \
20473file_magic_glob \
20474want_nocaseglob \
20475DLLTOOL \
20476sharedlib_from_linklib_cmd \
20477AR \
20478archiver_list_spec \
20479STRIP \
20480RANLIB \
20481CC \
20482CFLAGS \
20483compiler \
20484lt_cv_sys_global_symbol_pipe \
20485lt_cv_sys_global_symbol_to_cdecl \
20486lt_cv_sys_global_symbol_to_import \
20487lt_cv_sys_global_symbol_to_c_name_address \
20488lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20489lt_cv_nm_interface \
20490nm_file_list_spec \
20491lt_cv_truncate_bin \
20492lt_prog_compiler_no_builtin_flag \
20493lt_prog_compiler_pic \
20494lt_prog_compiler_wl \
20495lt_prog_compiler_static \
20496lt_cv_prog_compiler_c_o \
20497need_locks \
20498MANIFEST_TOOL \
20499DSYMUTIL \
20500NMEDIT \
20501LIPO \
20502OTOOL \
20503OTOOL64 \
20504shrext_cmds \
20505export_dynamic_flag_spec \
20506whole_archive_flag_spec \
20507compiler_needs_object \
20508with_gnu_ld \
20509allow_undefined_flag \
20510no_undefined_flag \
20511hardcode_libdir_flag_spec \
20512hardcode_libdir_separator \
20513exclude_expsyms \
20514include_expsyms \
20515file_list_spec \
20516variables_saved_for_relink \
20517libname_spec \
20518library_names_spec \
20519soname_spec \
20520install_override_mode \
20521finish_eval \
20522old_striplib \
20523striplib; do
20524    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20525    *[\\\\\\\`\\"\\\$]*)
20526      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20527      ;;
20528    *)
20529      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20530      ;;
20531    esac
20532done
20533
20534# Double-quote double-evaled strings.
20535for var in reload_cmds \
20536old_postinstall_cmds \
20537old_postuninstall_cmds \
20538old_archive_cmds \
20539extract_expsyms_cmds \
20540old_archive_from_new_cmds \
20541old_archive_from_expsyms_cmds \
20542archive_cmds \
20543archive_expsym_cmds \
20544module_cmds \
20545module_expsym_cmds \
20546export_symbols_cmds \
20547prelink_cmds \
20548postlink_cmds \
20549postinstall_cmds \
20550postuninstall_cmds \
20551finish_cmds \
20552sys_lib_search_path_spec \
20553configure_time_dlsearch_path \
20554configure_time_lt_sys_library_path; do
20555    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20556    *[\\\\\\\`\\"\\\$]*)
20557      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20558      ;;
20559    *)
20560      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20561      ;;
20562    esac
20563done
20564
20565ac_aux_dir='$ac_aux_dir'
20566
20567# See if we are running on zsh, and set the options that allow our
20568# commands through without removal of \ escapes INIT.
20569if test -n "\${ZSH_VERSION+set}"; then
20570   setopt NO_GLOB_SUBST
20571fi
20572
20573
20574    PACKAGE='$PACKAGE'
20575    VERSION='$VERSION'
20576    RM='$RM'
20577    ofile='$ofile'
20578
20579
20580
20581
20582_ACEOF
20583
20584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20585
20586# Handling of arguments.
20587for ac_config_target in $ac_config_targets
20588do
20589  case $ac_config_target in
20590    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20591    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20592    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20593    "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
20594    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20595    "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
20596    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20597    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20598
20599  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20600  esac
20601done
20602
20603
20604# If the user did not use the arguments to specify the items to instantiate,
20605# then the envvar interface is used.  Set only those that are not.
20606# We use the long form for the default assignment because of an extremely
20607# bizarre bug on SunOS 4.1.3.
20608if $ac_need_defaults; then
20609  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20610  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20611  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20612fi
20613
20614# Have a temporary directory for convenience.  Make it in the build tree
20615# simply because there is no reason against having it here, and in addition,
20616# creating and moving files from /tmp can sometimes cause problems.
20617# Hook for its removal unless debugging.
20618# Note that there is a small window in which the directory will not be cleaned:
20619# after its creation but before its name has been assigned to `$tmp'.
20620$debug ||
20621{
20622  tmp= ac_tmp=
20623  trap 'exit_status=$?
20624  : "${ac_tmp:=$tmp}"
20625  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20626' 0
20627  trap 'as_fn_exit 1' 1 2 13 15
20628}
20629# Create a (secure) tmp directory for tmp files.
20630
20631{
20632  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20633  test -d "$tmp"
20634}  ||
20635{
20636  tmp=./conf$$-$RANDOM
20637  (umask 077 && mkdir "$tmp")
20638} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20639ac_tmp=$tmp
20640
20641# Set up the scripts for CONFIG_FILES section.
20642# No need to generate them if there are no CONFIG_FILES.
20643# This happens for instance with `./config.status config.h'.
20644if test -n "$CONFIG_FILES"; then
20645
20646
20647ac_cr=`echo X | tr X '\015'`
20648# On cygwin, bash can eat \r inside `` if the user requested igncr.
20649# But we know of no other shell where ac_cr would be empty at this
20650# point, so we can use a bashism as a fallback.
20651if test "x$ac_cr" = x; then
20652  eval ac_cr=\$\'\\r\'
20653fi
20654ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20655if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20656  ac_cs_awk_cr='\\r'
20657else
20658  ac_cs_awk_cr=$ac_cr
20659fi
20660
20661echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20662_ACEOF
20663
20664
20665{
20666  echo "cat >conf$$subs.awk <<_ACEOF" &&
20667  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20668  echo "_ACEOF"
20669} >conf$$subs.sh ||
20670  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20671ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20672ac_delim='%!_!# '
20673for ac_last_try in false false false false false :; do
20674  . ./conf$$subs.sh ||
20675    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20676
20677  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20678  if test $ac_delim_n = $ac_delim_num; then
20679    break
20680  elif $ac_last_try; then
20681    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20682  else
20683    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20684  fi
20685done
20686rm -f conf$$subs.sh
20687
20688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20690_ACEOF
20691sed -n '
20692h
20693s/^/S["/; s/!.*/"]=/
20694p
20695g
20696s/^[^!]*!//
20697:repl
20698t repl
20699s/'"$ac_delim"'$//
20700t delim
20701:nl
20702h
20703s/\(.\{148\}\)..*/\1/
20704t more1
20705s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20706p
20707n
20708b repl
20709:more1
20710s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20711p
20712g
20713s/.\{148\}//
20714t nl
20715:delim
20716h
20717s/\(.\{148\}\)..*/\1/
20718t more2
20719s/["\\]/\\&/g; s/^/"/; s/$/"/
20720p
20721b
20722:more2
20723s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20724p
20725g
20726s/.\{148\}//
20727t delim
20728' <conf$$subs.awk | sed '
20729/^[^""]/{
20730  N
20731  s/\n//
20732}
20733' >>$CONFIG_STATUS || ac_write_fail=1
20734rm -f conf$$subs.awk
20735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736_ACAWK
20737cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20738  for (key in S) S_is_set[key] = 1
20739  FS = ""
20740
20741}
20742{
20743  line = $ 0
20744  nfields = split(line, field, "@")
20745  substed = 0
20746  len = length(field[1])
20747  for (i = 2; i < nfields; i++) {
20748    key = field[i]
20749    keylen = length(key)
20750    if (S_is_set[key]) {
20751      value = S[key]
20752      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20753      len += length(value) + length(field[++i])
20754      substed = 1
20755    } else
20756      len += 1 + keylen
20757  }
20758
20759  print line
20760}
20761
20762_ACAWK
20763_ACEOF
20764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20766  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20767else
20768  cat
20769fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20770  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20771_ACEOF
20772
20773# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20774# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20775# trailing colons and then remove the whole line if VPATH becomes empty
20776# (actually we leave an empty line to preserve line numbers).
20777if test "x$srcdir" = x.; then
20778  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20779h
20780s///
20781s/^/:/
20782s/[	 ]*$/:/
20783s/:\$(srcdir):/:/g
20784s/:\${srcdir}:/:/g
20785s/:@srcdir@:/:/g
20786s/^:*//
20787s/:*$//
20788x
20789s/\(=[	 ]*\).*/\1/
20790G
20791s/\n//
20792s/^[^=]*=[	 ]*$//
20793}'
20794fi
20795
20796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797fi # test -n "$CONFIG_FILES"
20798
20799# Set up the scripts for CONFIG_HEADERS section.
20800# No need to generate them if there are no CONFIG_HEADERS.
20801# This happens for instance with `./config.status Makefile'.
20802if test -n "$CONFIG_HEADERS"; then
20803cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20804BEGIN {
20805_ACEOF
20806
20807# Transform confdefs.h into an awk script `defines.awk', embedded as
20808# here-document in config.status, that substitutes the proper values into
20809# config.h.in to produce config.h.
20810
20811# Create a delimiter string that does not exist in confdefs.h, to ease
20812# handling of long lines.
20813ac_delim='%!_!# '
20814for ac_last_try in false false :; do
20815  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20816  if test -z "$ac_tt"; then
20817    break
20818  elif $ac_last_try; then
20819    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20820  else
20821    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20822  fi
20823done
20824
20825# For the awk script, D is an array of macro values keyed by name,
20826# likewise P contains macro parameters if any.  Preserve backslash
20827# newline sequences.
20828
20829ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20830sed -n '
20831s/.\{148\}/&'"$ac_delim"'/g
20832t rset
20833:rset
20834s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20835t def
20836d
20837:def
20838s/\\$//
20839t bsnl
20840s/["\\]/\\&/g
20841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20842D["\1"]=" \3"/p
20843s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20844d
20845:bsnl
20846s/["\\]/\\&/g
20847s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20848D["\1"]=" \3\\\\\\n"\\/p
20849t cont
20850s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20851t cont
20852d
20853:cont
20854n
20855s/.\{148\}/&'"$ac_delim"'/g
20856t clear
20857:clear
20858s/\\$//
20859t bsnlc
20860s/["\\]/\\&/g; s/^/"/; s/$/"/p
20861d
20862:bsnlc
20863s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20864b cont
20865' <confdefs.h | sed '
20866s/'"$ac_delim"'/"\\\
20867"/g' >>$CONFIG_STATUS || ac_write_fail=1
20868
20869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20870  for (key in D) D_is_set[key] = 1
20871  FS = ""
20872}
20873/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20874  line = \$ 0
20875  split(line, arg, " ")
20876  if (arg[1] == "#") {
20877    defundef = arg[2]
20878    mac1 = arg[3]
20879  } else {
20880    defundef = substr(arg[1], 2)
20881    mac1 = arg[2]
20882  }
20883  split(mac1, mac2, "(") #)
20884  macro = mac2[1]
20885  prefix = substr(line, 1, index(line, defundef) - 1)
20886  if (D_is_set[macro]) {
20887    # Preserve the white space surrounding the "#".
20888    print prefix "define", macro P[macro] D[macro]
20889    next
20890  } else {
20891    # Replace #undef with comments.  This is necessary, for example,
20892    # in the case of _POSIX_SOURCE, which is predefined and required
20893    # on some systems where configure will not decide to define it.
20894    if (defundef == "undef") {
20895      print "/*", prefix defundef, macro, "*/"
20896      next
20897    }
20898  }
20899}
20900{ print }
20901_ACAWK
20902_ACEOF
20903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20905fi # test -n "$CONFIG_HEADERS"
20906
20907
20908eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20909shift
20910for ac_tag
20911do
20912  case $ac_tag in
20913  :[FHLC]) ac_mode=$ac_tag; continue;;
20914  esac
20915  case $ac_mode$ac_tag in
20916  :[FHL]*:*);;
20917  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20918  :[FH]-) ac_tag=-:-;;
20919  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20920  esac
20921  ac_save_IFS=$IFS
20922  IFS=:
20923  set x $ac_tag
20924  IFS=$ac_save_IFS
20925  shift
20926  ac_file=$1
20927  shift
20928
20929  case $ac_mode in
20930  :L) ac_source=$1;;
20931  :[FH])
20932    ac_file_inputs=
20933    for ac_f
20934    do
20935      case $ac_f in
20936      -) ac_f="$ac_tmp/stdin";;
20937      *) # Look for the file first in the build tree, then in the source tree
20938	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20939	 # because $ac_f cannot contain `:'.
20940	 test -f "$ac_f" ||
20941	   case $ac_f in
20942	   [\\/$]*) false;;
20943	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20944	   esac ||
20945	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20946      esac
20947      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20948      as_fn_append ac_file_inputs " '$ac_f'"
20949    done
20950
20951    # Let's still pretend it is `configure' which instantiates (i.e., don't
20952    # use $as_me), people would be surprised to read:
20953    #    /* config.h.  Generated by config.status.  */
20954    configure_input='Generated from '`
20955	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20956	`' by configure.'
20957    if test x"$ac_file" != x-; then
20958      configure_input="$ac_file.  $configure_input"
20959      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20960printf "%s\n" "$as_me: creating $ac_file" >&6;}
20961    fi
20962    # Neutralize special characters interpreted by sed in replacement strings.
20963    case $configure_input in #(
20964    *\&* | *\|* | *\\* )
20965       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20966       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20967    *) ac_sed_conf_input=$configure_input;;
20968    esac
20969
20970    case $ac_tag in
20971    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20972      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20973    esac
20974    ;;
20975  esac
20976
20977  ac_dir=`$as_dirname -- "$ac_file" ||
20978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979	 X"$ac_file" : 'X\(//\)[^/]' \| \
20980	 X"$ac_file" : 'X\(//\)$' \| \
20981	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20982printf "%s\n" X"$ac_file" |
20983    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20984	    s//\1/
20985	    q
20986	  }
20987	  /^X\(\/\/\)[^/].*/{
20988	    s//\1/
20989	    q
20990	  }
20991	  /^X\(\/\/\)$/{
20992	    s//\1/
20993	    q
20994	  }
20995	  /^X\(\/\).*/{
20996	    s//\1/
20997	    q
20998	  }
20999	  s/.*/./; q'`
21000  as_dir="$ac_dir"; as_fn_mkdir_p
21001  ac_builddir=.
21002
21003case "$ac_dir" in
21004.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21005*)
21006  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21007  # A ".." for each directory in $ac_dir_suffix.
21008  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21009  case $ac_top_builddir_sub in
21010  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21011  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21012  esac ;;
21013esac
21014ac_abs_top_builddir=$ac_pwd
21015ac_abs_builddir=$ac_pwd$ac_dir_suffix
21016# for backward compatibility:
21017ac_top_builddir=$ac_top_build_prefix
21018
21019case $srcdir in
21020  .)  # We are building in place.
21021    ac_srcdir=.
21022    ac_top_srcdir=$ac_top_builddir_sub
21023    ac_abs_top_srcdir=$ac_pwd ;;
21024  [\\/]* | ?:[\\/]* )  # Absolute name.
21025    ac_srcdir=$srcdir$ac_dir_suffix;
21026    ac_top_srcdir=$srcdir
21027    ac_abs_top_srcdir=$srcdir ;;
21028  *) # Relative name.
21029    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21030    ac_top_srcdir=$ac_top_build_prefix$srcdir
21031    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21032esac
21033ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21034
21035
21036  case $ac_mode in
21037  :F)
21038  #
21039  # CONFIG_FILE
21040  #
21041
21042  case $INSTALL in
21043  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21044  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21045  esac
21046  ac_MKDIR_P=$MKDIR_P
21047  case $MKDIR_P in
21048  [\\/$]* | ?:[\\/]* ) ;;
21049  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21050  esac
21051_ACEOF
21052
21053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054# If the template does not know about datarootdir, expand it.
21055# FIXME: This hack should be removed a few years after 2.60.
21056ac_datarootdir_hack=; ac_datarootdir_seen=
21057ac_sed_dataroot='
21058/datarootdir/ {
21059  p
21060  q
21061}
21062/@datadir@/p
21063/@docdir@/p
21064/@infodir@/p
21065/@localedir@/p
21066/@mandir@/p'
21067case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21068*datarootdir*) ac_datarootdir_seen=yes;;
21069*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21071printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21072_ACEOF
21073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074  ac_datarootdir_hack='
21075  s&@datadir@&$datadir&g
21076  s&@docdir@&$docdir&g
21077  s&@infodir@&$infodir&g
21078  s&@localedir@&$localedir&g
21079  s&@mandir@&$mandir&g
21080  s&\\\${datarootdir}&$datarootdir&g' ;;
21081esac
21082_ACEOF
21083
21084# Neutralize VPATH when `$srcdir' = `.'.
21085# Shell code in configure.ac might set extrasub.
21086# FIXME: do we really want to maintain this feature?
21087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21088ac_sed_extra="$ac_vpsub
21089$extrasub
21090_ACEOF
21091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21092:t
21093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21094s|@configure_input@|$ac_sed_conf_input|;t t
21095s&@top_builddir@&$ac_top_builddir_sub&;t t
21096s&@top_build_prefix@&$ac_top_build_prefix&;t t
21097s&@srcdir@&$ac_srcdir&;t t
21098s&@abs_srcdir@&$ac_abs_srcdir&;t t
21099s&@top_srcdir@&$ac_top_srcdir&;t t
21100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21101s&@builddir@&$ac_builddir&;t t
21102s&@abs_builddir@&$ac_abs_builddir&;t t
21103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21104s&@INSTALL@&$ac_INSTALL&;t t
21105s&@MKDIR_P@&$ac_MKDIR_P&;t t
21106$ac_datarootdir_hack
21107"
21108eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21109  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21110
21111test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21112  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21113  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21114      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21116which seems to be undefined.  Please make sure it is defined" >&5
21117printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21118which seems to be undefined.  Please make sure it is defined" >&2;}
21119
21120  rm -f "$ac_tmp/stdin"
21121  case $ac_file in
21122  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21123  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21124  esac \
21125  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21126 ;;
21127  :H)
21128  #
21129  # CONFIG_HEADER
21130  #
21131  if test x"$ac_file" != x-; then
21132    {
21133      printf "%s\n" "/* $configure_input  */" >&1 \
21134      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21135    } >"$ac_tmp/config.h" \
21136      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21137    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21138      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21139printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21140    else
21141      rm -f "$ac_file"
21142      mv "$ac_tmp/config.h" "$ac_file" \
21143	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21144    fi
21145  else
21146    printf "%s\n" "/* $configure_input  */" >&1 \
21147      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21148      || as_fn_error $? "could not create -" "$LINENO" 5
21149  fi
21150# Compute "$ac_file"'s index in $config_headers.
21151_am_arg="$ac_file"
21152_am_stamp_count=1
21153for _am_header in $config_headers :; do
21154  case $_am_header in
21155    $_am_arg | $_am_arg:* )
21156      break ;;
21157    * )
21158      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21159  esac
21160done
21161echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21162$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21163	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21164	 X"$_am_arg" : 'X\(//\)$' \| \
21165	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21166printf "%s\n" X"$_am_arg" |
21167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21168	    s//\1/
21169	    q
21170	  }
21171	  /^X\(\/\/\)[^/].*/{
21172	    s//\1/
21173	    q
21174	  }
21175	  /^X\(\/\/\)$/{
21176	    s//\1/
21177	    q
21178	  }
21179	  /^X\(\/\).*/{
21180	    s//\1/
21181	    q
21182	  }
21183	  s/.*/./; q'`/stamp-h$_am_stamp_count
21184 ;;
21185
21186  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21187printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21188 ;;
21189  esac
21190
21191
21192  case $ac_file$ac_mode in
21193    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21194  # Older Autoconf quotes --file arguments for eval, but not when files
21195  # are listed without --file.  Let's play safe and only enable the eval
21196  # if we detect the quoting.
21197  # TODO: see whether this extra hack can be removed once we start
21198  # requiring Autoconf 2.70 or later.
21199  case $CONFIG_FILES in #(
21200  *\'*) :
21201    eval set x "$CONFIG_FILES" ;; #(
21202  *) :
21203    set x $CONFIG_FILES ;; #(
21204  *) :
21205     ;;
21206esac
21207  shift
21208  # Used to flag and report bootstrapping failures.
21209  am_rc=0
21210  for am_mf
21211  do
21212    # Strip MF so we end up with the name of the file.
21213    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21214    # Check whether this is an Automake generated Makefile which includes
21215    # dependency-tracking related rules and includes.
21216    # Grep'ing the whole file directly is not great: AIX grep has a line
21217    # limit of 2048, but all sed's we know have understand at least 4000.
21218    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21219      || continue
21220    am_dirpart=`$as_dirname -- "$am_mf" ||
21221$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222	 X"$am_mf" : 'X\(//\)[^/]' \| \
21223	 X"$am_mf" : 'X\(//\)$' \| \
21224	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21225printf "%s\n" X"$am_mf" |
21226    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227	    s//\1/
21228	    q
21229	  }
21230	  /^X\(\/\/\)[^/].*/{
21231	    s//\1/
21232	    q
21233	  }
21234	  /^X\(\/\/\)$/{
21235	    s//\1/
21236	    q
21237	  }
21238	  /^X\(\/\).*/{
21239	    s//\1/
21240	    q
21241	  }
21242	  s/.*/./; q'`
21243    am_filepart=`$as_basename -- "$am_mf" ||
21244$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21245	 X"$am_mf" : 'X\(//\)$' \| \
21246	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21247printf "%s\n" X/"$am_mf" |
21248    sed '/^.*\/\([^/][^/]*\)\/*$/{
21249	    s//\1/
21250	    q
21251	  }
21252	  /^X\/\(\/\/\)$/{
21253	    s//\1/
21254	    q
21255	  }
21256	  /^X\/\(\/\).*/{
21257	    s//\1/
21258	    q
21259	  }
21260	  s/.*/./; q'`
21261    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21262      && sed -e '/# am--include-marker/d' "$am_filepart" \
21263        | $MAKE -f - am--depfiles" >&5
21264   (cd "$am_dirpart" \
21265      && sed -e '/# am--include-marker/d' "$am_filepart" \
21266        | $MAKE -f - am--depfiles) >&5 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } || am_rc=$?
21270  done
21271  if test $am_rc -ne 0; then
21272    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21273printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21274as_fn_error $? "Something went wrong bootstrapping makefile fragments
21275    for automatic dependency tracking.  If GNU make was not used, consider
21276    re-running the configure script with MAKE=\"gmake\" (or whatever is
21277    necessary).  You can also try re-running configure with the
21278    '--disable-dependency-tracking' option to at least be able to build
21279    the package (albeit without support for automatic dependency tracking).
21280See \`config.log' for more details" "$LINENO" 5; }
21281  fi
21282  { am_dirpart=; unset am_dirpart;}
21283  { am_filepart=; unset am_filepart;}
21284  { am_mf=; unset am_mf;}
21285  { am_rc=; unset am_rc;}
21286  rm -f conftest-deps.mk
21287}
21288 ;;
21289    "libtool":C)
21290
21291    # See if we are running on zsh, and set the options that allow our
21292    # commands through without removal of \ escapes.
21293    if test -n "${ZSH_VERSION+set}"; then
21294      setopt NO_GLOB_SUBST
21295    fi
21296
21297    cfgfile=${ofile}T
21298    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21299    $RM "$cfgfile"
21300
21301    cat <<_LT_EOF >> "$cfgfile"
21302#! $SHELL
21303# Generated automatically by $as_me ($PACKAGE) $VERSION
21304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21305# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21306
21307# Provide generalized library-building support services.
21308# Written by Gordon Matzigkeit, 1996
21309
21310# Copyright (C) 2014 Free Software Foundation, Inc.
21311# This is free software; see the source for copying conditions.  There is NO
21312# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21313
21314# GNU Libtool is free software; you can redistribute it and/or modify
21315# it under the terms of the GNU General Public License as published by
21316# the Free Software Foundation; either version 2 of of the License, or
21317# (at your option) any later version.
21318#
21319# As a special exception to the GNU General Public License, if you
21320# distribute this file as part of a program or library that is built
21321# using GNU Libtool, you may include this file under the  same
21322# distribution terms that you use for the rest of that program.
21323#
21324# GNU Libtool is distributed in the hope that it will be useful, but
21325# WITHOUT ANY WARRANTY; without even the implied warranty of
21326# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21327# GNU General Public License for more details.
21328#
21329# You should have received a copy of the GNU General Public License
21330# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21331
21332
21333# The names of the tagged configurations supported by this script.
21334available_tags=''
21335
21336# Configured defaults for sys_lib_dlsearch_path munging.
21337: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21338
21339# ### BEGIN LIBTOOL CONFIG
21340
21341# Which release of libtool.m4 was used?
21342macro_version=$macro_version
21343macro_revision=$macro_revision
21344
21345# Whether or not to build shared libraries.
21346build_libtool_libs=$enable_shared
21347
21348# Whether or not to build static libraries.
21349build_old_libs=$enable_static
21350
21351# What type of objects to build.
21352pic_mode=$pic_mode
21353
21354# Whether or not to optimize for fast installation.
21355fast_install=$enable_fast_install
21356
21357# Shared archive member basename,for filename based shared library versioning on AIX.
21358shared_archive_member_spec=$shared_archive_member_spec
21359
21360# Shell to use when invoking shell scripts.
21361SHELL=$lt_SHELL
21362
21363# An echo program that protects backslashes.
21364ECHO=$lt_ECHO
21365
21366# The PATH separator for the build system.
21367PATH_SEPARATOR=$lt_PATH_SEPARATOR
21368
21369# The host system.
21370host_alias=$host_alias
21371host=$host
21372host_os=$host_os
21373
21374# The build system.
21375build_alias=$build_alias
21376build=$build
21377build_os=$build_os
21378
21379# A sed program that does not truncate output.
21380SED=$lt_SED
21381
21382# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21383Xsed="\$SED -e 1s/^X//"
21384
21385# A grep program that handles long lines.
21386GREP=$lt_GREP
21387
21388# An ERE matcher.
21389EGREP=$lt_EGREP
21390
21391# A literal string matcher.
21392FGREP=$lt_FGREP
21393
21394# A BSD- or MS-compatible name lister.
21395NM=$lt_NM
21396
21397# Whether we need soft or hard links.
21398LN_S=$lt_LN_S
21399
21400# What is the maximum length of a command?
21401max_cmd_len=$max_cmd_len
21402
21403# Object file suffix (normally "o").
21404objext=$ac_objext
21405
21406# Executable file suffix (normally "").
21407exeext=$exeext
21408
21409# whether the shell understands "unset".
21410lt_unset=$lt_unset
21411
21412# turn spaces into newlines.
21413SP2NL=$lt_lt_SP2NL
21414
21415# turn newlines into spaces.
21416NL2SP=$lt_lt_NL2SP
21417
21418# convert \$build file names to \$host format.
21419to_host_file_cmd=$lt_cv_to_host_file_cmd
21420
21421# convert \$build files to toolchain format.
21422to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21423
21424# A file(cmd) program that detects file types.
21425FILECMD=$lt_FILECMD
21426
21427# An object symbol dumper.
21428OBJDUMP=$lt_OBJDUMP
21429
21430# Method to check whether dependent libraries are shared objects.
21431deplibs_check_method=$lt_deplibs_check_method
21432
21433# Command to use when deplibs_check_method = "file_magic".
21434file_magic_cmd=$lt_file_magic_cmd
21435
21436# How to find potential files when deplibs_check_method = "file_magic".
21437file_magic_glob=$lt_file_magic_glob
21438
21439# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21440want_nocaseglob=$lt_want_nocaseglob
21441
21442# DLL creation program.
21443DLLTOOL=$lt_DLLTOOL
21444
21445# Command to associate shared and link libraries.
21446sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21447
21448# The archiver.
21449AR=$lt_AR
21450
21451# Flags to create an archive (by configure).
21452lt_ar_flags=$lt_ar_flags
21453
21454# Flags to create an archive.
21455AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21456
21457# How to feed a file listing to the archiver.
21458archiver_list_spec=$lt_archiver_list_spec
21459
21460# A symbol stripping program.
21461STRIP=$lt_STRIP
21462
21463# Commands used to install an old-style archive.
21464RANLIB=$lt_RANLIB
21465old_postinstall_cmds=$lt_old_postinstall_cmds
21466old_postuninstall_cmds=$lt_old_postuninstall_cmds
21467
21468# Whether to use a lock for old archive extraction.
21469lock_old_archive_extraction=$lock_old_archive_extraction
21470
21471# A C compiler.
21472LTCC=$lt_CC
21473
21474# LTCC compiler flags.
21475LTCFLAGS=$lt_CFLAGS
21476
21477# Take the output of nm and produce a listing of raw symbols and C names.
21478global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21479
21480# Transform the output of nm in a proper C declaration.
21481global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21482
21483# Transform the output of nm into a list of symbols to manually relocate.
21484global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21485
21486# Transform the output of nm in a C name address pair.
21487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21488
21489# Transform the output of nm in a C name address pair when lib prefix is needed.
21490global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21491
21492# The name lister interface.
21493nm_interface=$lt_lt_cv_nm_interface
21494
21495# Specify filename containing input files for \$NM.
21496nm_file_list_spec=$lt_nm_file_list_spec
21497
21498# The root where to search for dependent libraries,and where our libraries should be installed.
21499lt_sysroot=$lt_sysroot
21500
21501# Command to truncate a binary pipe.
21502lt_truncate_bin=$lt_lt_cv_truncate_bin
21503
21504# The name of the directory that contains temporary libtool files.
21505objdir=$objdir
21506
21507# Used to examine libraries when file_magic_cmd begins with "file".
21508MAGIC_CMD=$MAGIC_CMD
21509
21510# Must we lock files when doing compilation?
21511need_locks=$lt_need_locks
21512
21513# Manifest tool.
21514MANIFEST_TOOL=$lt_MANIFEST_TOOL
21515
21516# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21517DSYMUTIL=$lt_DSYMUTIL
21518
21519# Tool to change global to local symbols on Mac OS X.
21520NMEDIT=$lt_NMEDIT
21521
21522# Tool to manipulate fat objects and archives on Mac OS X.
21523LIPO=$lt_LIPO
21524
21525# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21526OTOOL=$lt_OTOOL
21527
21528# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21529OTOOL64=$lt_OTOOL64
21530
21531# Old archive suffix (normally "a").
21532libext=$libext
21533
21534# Shared library suffix (normally ".so").
21535shrext_cmds=$lt_shrext_cmds
21536
21537# The commands to extract the exported symbol list from a shared archive.
21538extract_expsyms_cmds=$lt_extract_expsyms_cmds
21539
21540# Variables whose values should be saved in libtool wrapper scripts and
21541# restored at link time.
21542variables_saved_for_relink=$lt_variables_saved_for_relink
21543
21544# Do we need the "lib" prefix for modules?
21545need_lib_prefix=$need_lib_prefix
21546
21547# Do we need a version for libraries?
21548need_version=$need_version
21549
21550# Library versioning type.
21551version_type=$version_type
21552
21553# Shared library runtime path variable.
21554runpath_var=$runpath_var
21555
21556# Shared library path variable.
21557shlibpath_var=$shlibpath_var
21558
21559# Is shlibpath searched before the hard-coded library search path?
21560shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21561
21562# Format of library name prefix.
21563libname_spec=$lt_libname_spec
21564
21565# List of archive names.  First name is the real one, the rest are links.
21566# The last name is the one that the linker finds with -lNAME
21567library_names_spec=$lt_library_names_spec
21568
21569# The coded name of the library, if different from the real name.
21570soname_spec=$lt_soname_spec
21571
21572# Permission mode override for installation of shared libraries.
21573install_override_mode=$lt_install_override_mode
21574
21575# Command to use after installation of a shared archive.
21576postinstall_cmds=$lt_postinstall_cmds
21577
21578# Command to use after uninstallation of a shared archive.
21579postuninstall_cmds=$lt_postuninstall_cmds
21580
21581# Commands used to finish a libtool library installation in a directory.
21582finish_cmds=$lt_finish_cmds
21583
21584# As "finish_cmds", except a single script fragment to be evaled but
21585# not shown.
21586finish_eval=$lt_finish_eval
21587
21588# Whether we should hardcode library paths into libraries.
21589hardcode_into_libs=$hardcode_into_libs
21590
21591# Compile-time system search path for libraries.
21592sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21593
21594# Detected run-time system search path for libraries.
21595sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21596
21597# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21598configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21599
21600# Whether dlopen is supported.
21601dlopen_support=$enable_dlopen
21602
21603# Whether dlopen of programs is supported.
21604dlopen_self=$enable_dlopen_self
21605
21606# Whether dlopen of statically linked programs is supported.
21607dlopen_self_static=$enable_dlopen_self_static
21608
21609# Commands to strip libraries.
21610old_striplib=$lt_old_striplib
21611striplib=$lt_striplib
21612
21613
21614# The linker used to build libraries.
21615LD=$lt_LD
21616
21617# How to create reloadable object files.
21618reload_flag=$lt_reload_flag
21619reload_cmds=$lt_reload_cmds
21620
21621# Commands used to build an old-style archive.
21622old_archive_cmds=$lt_old_archive_cmds
21623
21624# A language specific compiler.
21625CC=$lt_compiler
21626
21627# Is the compiler the GNU compiler?
21628with_gcc=$GCC
21629
21630# Compiler flag to turn off builtin functions.
21631no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21632
21633# Additional compiler flags for building library objects.
21634pic_flag=$lt_lt_prog_compiler_pic
21635
21636# How to pass a linker flag through the compiler.
21637wl=$lt_lt_prog_compiler_wl
21638
21639# Compiler flag to prevent dynamic linking.
21640link_static_flag=$lt_lt_prog_compiler_static
21641
21642# Does compiler simultaneously support -c and -o options?
21643compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21644
21645# Whether or not to add -lc for building shared libraries.
21646build_libtool_need_lc=$archive_cmds_need_lc
21647
21648# Whether or not to disallow shared libs when runtime libs are static.
21649allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21650
21651# Compiler flag to allow reflexive dlopens.
21652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21653
21654# Compiler flag to generate shared objects directly from archives.
21655whole_archive_flag_spec=$lt_whole_archive_flag_spec
21656
21657# Whether the compiler copes with passing no objects directly.
21658compiler_needs_object=$lt_compiler_needs_object
21659
21660# Create an old-style archive from a shared archive.
21661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21662
21663# Create a temporary old-style archive to link instead of a shared archive.
21664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21665
21666# Commands used to build a shared archive.
21667archive_cmds=$lt_archive_cmds
21668archive_expsym_cmds=$lt_archive_expsym_cmds
21669
21670# Commands used to build a loadable module if different from building
21671# a shared archive.
21672module_cmds=$lt_module_cmds
21673module_expsym_cmds=$lt_module_expsym_cmds
21674
21675# Whether we are building with GNU ld or not.
21676with_gnu_ld=$lt_with_gnu_ld
21677
21678# Flag that allows shared libraries with undefined symbols to be built.
21679allow_undefined_flag=$lt_allow_undefined_flag
21680
21681# Flag that enforces no undefined symbols.
21682no_undefined_flag=$lt_no_undefined_flag
21683
21684# Flag to hardcode \$libdir into a binary during linking.
21685# This must work even if \$libdir does not exist
21686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21687
21688# Whether we need a single "-rpath" flag with a separated argument.
21689hardcode_libdir_separator=$lt_hardcode_libdir_separator
21690
21691# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21692# DIR into the resulting binary.
21693hardcode_direct=$hardcode_direct
21694
21695# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21696# DIR into the resulting binary and the resulting library dependency is
21697# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21698# library is relocated.
21699hardcode_direct_absolute=$hardcode_direct_absolute
21700
21701# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21702# into the resulting binary.
21703hardcode_minus_L=$hardcode_minus_L
21704
21705# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21706# into the resulting binary.
21707hardcode_shlibpath_var=$hardcode_shlibpath_var
21708
21709# Set to "yes" if building a shared library automatically hardcodes DIR
21710# into the library and all subsequent libraries and executables linked
21711# against it.
21712hardcode_automatic=$hardcode_automatic
21713
21714# Set to yes if linker adds runtime paths of dependent libraries
21715# to runtime path list.
21716inherit_rpath=$inherit_rpath
21717
21718# Whether libtool must link a program against all its dependency libraries.
21719link_all_deplibs=$link_all_deplibs
21720
21721# Set to "yes" if exported symbols are required.
21722always_export_symbols=$always_export_symbols
21723
21724# The commands to list exported symbols.
21725export_symbols_cmds=$lt_export_symbols_cmds
21726
21727# Symbols that should not be listed in the preloaded symbols.
21728exclude_expsyms=$lt_exclude_expsyms
21729
21730# Symbols that must always be exported.
21731include_expsyms=$lt_include_expsyms
21732
21733# Commands necessary for linking programs (against libraries) with templates.
21734prelink_cmds=$lt_prelink_cmds
21735
21736# Commands necessary for finishing linking programs.
21737postlink_cmds=$lt_postlink_cmds
21738
21739# Specify filename containing input files.
21740file_list_spec=$lt_file_list_spec
21741
21742# How to hardcode a shared library path into an executable.
21743hardcode_action=$hardcode_action
21744
21745# ### END LIBTOOL CONFIG
21746
21747_LT_EOF
21748
21749    cat <<'_LT_EOF' >> "$cfgfile"
21750
21751# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21752
21753# func_munge_path_list VARIABLE PATH
21754# -----------------------------------
21755# VARIABLE is name of variable containing _space_ separated list of
21756# directories to be munged by the contents of PATH, which is string
21757# having a format:
21758# "DIR[:DIR]:"
21759#       string "DIR[ DIR]" will be prepended to VARIABLE
21760# ":DIR[:DIR]"
21761#       string "DIR[ DIR]" will be appended to VARIABLE
21762# "DIRP[:DIRP]::[DIRA:]DIRA"
21763#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21764#       "DIRA[ DIRA]" will be appended to VARIABLE
21765# "DIR[:DIR]"
21766#       VARIABLE will be replaced by "DIR[ DIR]"
21767func_munge_path_list ()
21768{
21769    case x$2 in
21770    x)
21771        ;;
21772    *:)
21773        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21774        ;;
21775    x:*)
21776        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21777        ;;
21778    *::*)
21779        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21780        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21781        ;;
21782    *)
21783        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21784        ;;
21785    esac
21786}
21787
21788
21789# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21790func_cc_basename ()
21791{
21792    for cc_temp in $*""; do
21793      case $cc_temp in
21794        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21795        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21796        \-*) ;;
21797        *) break;;
21798      esac
21799    done
21800    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21801}
21802
21803
21804# ### END FUNCTIONS SHARED WITH CONFIGURE
21805
21806_LT_EOF
21807
21808  case $host_os in
21809  aix3*)
21810    cat <<\_LT_EOF >> "$cfgfile"
21811# AIX sometimes has problems with the GCC collect2 program.  For some
21812# reason, if we set the COLLECT_NAMES environment variable, the problems
21813# vanish in a puff of smoke.
21814if test set != "${COLLECT_NAMES+set}"; then
21815  COLLECT_NAMES=
21816  export COLLECT_NAMES
21817fi
21818_LT_EOF
21819    ;;
21820  esac
21821
21822
21823
21824ltmain=$ac_aux_dir/ltmain.sh
21825
21826
21827  # We use sed instead of cat because bash on DJGPP gets confused if
21828  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21829  # text mode, it properly converts lines to CR/LF.  This bash problem
21830  # is reportedly fixed, but why not run on old versions too?
21831  $SED '$q' "$ltmain" >> "$cfgfile" \
21832     || (rm -f "$cfgfile"; exit 1)
21833
21834   mv -f "$cfgfile" "$ofile" ||
21835    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21836  chmod +x "$ofile"
21837
21838 ;;
21839
21840  esac
21841done # for ac_tag
21842
21843
21844as_fn_exit 0
21845_ACEOF
21846ac_clean_files=$ac_clean_files_save
21847
21848test $ac_write_fail = 0 ||
21849  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21850
21851
21852# configure is writing to config.log, and then calls config.status.
21853# config.status does its own redirection, appending to config.log.
21854# Unfortunately, on DOS this fails, as config.log is still kept open
21855# by configure, so config.status won't be able to write to it; its
21856# output is simply discarded.  So we exec the FD to /dev/null,
21857# effectively closing config.log, so it can be properly (re)opened and
21858# appended to by config.status.  When coming back to configure, we
21859# need to make the FD available again.
21860if test "$no_create" != yes; then
21861  ac_cs_success=:
21862  ac_config_status_args=
21863  test "$silent" = yes &&
21864    ac_config_status_args="$ac_config_status_args --quiet"
21865  exec 5>/dev/null
21866  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21867  exec 5>>config.log
21868  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21869  # would make configure fail if this is the last instruction.
21870  $ac_cs_success || as_fn_exit 1
21871fi
21872if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21874printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21875fi
21876
21877
21878