configure revision 25420f97
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXft 2.3.7.
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.7'
626PACKAGE_STRING='libXft 2.3.7'
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.7 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.7:";;
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.7
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 (); 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 ();
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.7, 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 (p, i)
2156     char **p;
2157     int i;
2158{
2159  return p[i];
2160}
2161static char *f (char * (*g) (char **, int), char **p, ...)
2162{
2163  char *s;
2164  va_list v;
2165  va_start (v,p);
2166  s = g (p, va_arg (v,int));
2167  va_end (v);
2168  return s;
2169}
2170
2171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2172   function prototypes and stuff, but not \xHH hex character constants.
2173   These do not provoke an error unfortunately, instead are silently treated
2174   as an "x".  The following induces an error, until -std is added to get
2175   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2176   array size at least.  It is necessary to write \x00 == 0 to get something
2177   that is true only with -std.  */
2178int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2179
2180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2181   inside strings and character constants.  */
2182#define FOO(x) '\''x'\''
2183int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2184
2185int test (int i, double x);
2186struct s1 {int (*f) (int a);};
2187struct s2 {int (*f) (double a);};
2188int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2189               int, int);'
2190
2191# Test code for whether the C compiler supports C89 (body of main).
2192ac_c_conftest_c89_main='
2193ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2194'
2195
2196# Test code for whether the C compiler supports C99 (global declarations)
2197ac_c_conftest_c99_globals='
2198// Does the compiler advertise C99 conformance?
2199#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2200# error "Compiler does not advertise C99 conformance"
2201#endif
2202
2203#include <stdbool.h>
2204extern int puts (const char *);
2205extern int printf (const char *, ...);
2206extern int dprintf (int, const char *, ...);
2207extern void *malloc (size_t);
2208
2209// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2210// dprintf is used instead of fprintf to avoid needing to declare
2211// FILE and stderr.
2212#define debug(...) dprintf (2, __VA_ARGS__)
2213#define showlist(...) puts (#__VA_ARGS__)
2214#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2215static void
2216test_varargs_macros (void)
2217{
2218  int x = 1234;
2219  int y = 5678;
2220  debug ("Flag");
2221  debug ("X = %d\n", x);
2222  showlist (The first, second, and third items.);
2223  report (x>y, "x is %d but y is %d", x, y);
2224}
2225
2226// Check long long types.
2227#define BIG64 18446744073709551615ull
2228#define BIG32 4294967295ul
2229#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2230#if !BIG_OK
2231  #error "your preprocessor is broken"
2232#endif
2233#if BIG_OK
2234#else
2235  #error "your preprocessor is broken"
2236#endif
2237static long long int bignum = -9223372036854775807LL;
2238static unsigned long long int ubignum = BIG64;
2239
2240struct incomplete_array
2241{
2242  int datasize;
2243  double data[];
2244};
2245
2246struct named_init {
2247  int number;
2248  const wchar_t *name;
2249  double average;
2250};
2251
2252typedef const char *ccp;
2253
2254static inline int
2255test_restrict (ccp restrict text)
2256{
2257  // See if C++-style comments work.
2258  // Iterate through items via the restricted pointer.
2259  // Also check for declarations in for loops.
2260  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2261    continue;
2262  return 0;
2263}
2264
2265// Check varargs and va_copy.
2266static bool
2267test_varargs (const char *format, ...)
2268{
2269  va_list args;
2270  va_start (args, format);
2271  va_list args_copy;
2272  va_copy (args_copy, args);
2273
2274  const char *str = "";
2275  int number = 0;
2276  float fnumber = 0;
2277
2278  while (*format)
2279    {
2280      switch (*format++)
2281	{
2282	case '\''s'\'': // string
2283	  str = va_arg (args_copy, const char *);
2284	  break;
2285	case '\''d'\'': // int
2286	  number = va_arg (args_copy, int);
2287	  break;
2288	case '\''f'\'': // float
2289	  fnumber = va_arg (args_copy, double);
2290	  break;
2291	default:
2292	  break;
2293	}
2294    }
2295  va_end (args_copy);
2296  va_end (args);
2297
2298  return *str && number && fnumber;
2299}
2300'
2301
2302# Test code for whether the C compiler supports C99 (body of main).
2303ac_c_conftest_c99_main='
2304  // Check bool.
2305  _Bool success = false;
2306  success |= (argc != 0);
2307
2308  // Check restrict.
2309  if (test_restrict ("String literal") == 0)
2310    success = true;
2311  char *restrict newvar = "Another string";
2312
2313  // Check varargs.
2314  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2315  test_varargs_macros ();
2316
2317  // Check flexible array members.
2318  struct incomplete_array *ia =
2319    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2320  ia->datasize = 10;
2321  for (int i = 0; i < ia->datasize; ++i)
2322    ia->data[i] = i * 1.234;
2323
2324  // Check named initializers.
2325  struct named_init ni = {
2326    .number = 34,
2327    .name = L"Test wide string",
2328    .average = 543.34343,
2329  };
2330
2331  ni.number = 58;
2332
2333  int dynamic_array[ni.number];
2334  dynamic_array[0] = argv[0][0];
2335  dynamic_array[ni.number - 1] = 543;
2336
2337  // work around unused variable warnings
2338  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2339	 || dynamic_array[ni.number - 1] != 543);
2340'
2341
2342# Test code for whether the C compiler supports C11 (global declarations)
2343ac_c_conftest_c11_globals='
2344// Does the compiler advertise C11 conformance?
2345#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2346# error "Compiler does not advertise C11 conformance"
2347#endif
2348
2349// Check _Alignas.
2350char _Alignas (double) aligned_as_double;
2351char _Alignas (0) no_special_alignment;
2352extern char aligned_as_int;
2353char _Alignas (0) _Alignas (int) aligned_as_int;
2354
2355// Check _Alignof.
2356enum
2357{
2358  int_alignment = _Alignof (int),
2359  int_array_alignment = _Alignof (int[100]),
2360  char_alignment = _Alignof (char)
2361};
2362_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2363
2364// Check _Noreturn.
2365int _Noreturn does_not_return (void) { for (;;) continue; }
2366
2367// Check _Static_assert.
2368struct test_static_assert
2369{
2370  int x;
2371  _Static_assert (sizeof (int) <= sizeof (long int),
2372                  "_Static_assert does not work in struct");
2373  long int y;
2374};
2375
2376// Check UTF-8 literals.
2377#define u8 syntax error!
2378char const utf8_literal[] = u8"happens to be ASCII" "another string";
2379
2380// Check duplicate typedefs.
2381typedef long *long_ptr;
2382typedef long int *long_ptr;
2383typedef long_ptr long_ptr;
2384
2385// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2386struct anonymous
2387{
2388  union {
2389    struct { int i; int j; };
2390    struct { int k; long int l; } w;
2391  };
2392  int m;
2393} v1;
2394'
2395
2396# Test code for whether the C compiler supports C11 (body of main).
2397ac_c_conftest_c11_main='
2398  _Static_assert ((offsetof (struct anonymous, i)
2399		   == offsetof (struct anonymous, w.k)),
2400		  "Anonymous union alignment botch");
2401  v1.i = 2;
2402  v1.w.k = 5;
2403  ok |= v1.i != 5;
2404'
2405
2406# Test code for whether the C compiler supports C11 (complete).
2407ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2408${ac_c_conftest_c99_globals}
2409${ac_c_conftest_c11_globals}
2410
2411int
2412main (int argc, char **argv)
2413{
2414  int ok = 0;
2415  ${ac_c_conftest_c89_main}
2416  ${ac_c_conftest_c99_main}
2417  ${ac_c_conftest_c11_main}
2418  return ok;
2419}
2420"
2421
2422# Test code for whether the C compiler supports C99 (complete).
2423ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2424${ac_c_conftest_c99_globals}
2425
2426int
2427main (int argc, char **argv)
2428{
2429  int ok = 0;
2430  ${ac_c_conftest_c89_main}
2431  ${ac_c_conftest_c99_main}
2432  return ok;
2433}
2434"
2435
2436# Test code for whether the C compiler supports C89 (complete).
2437ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2438
2439int
2440main (int argc, char **argv)
2441{
2442  int ok = 0;
2443  ${ac_c_conftest_c89_main}
2444  return ok;
2445}
2446"
2447
2448as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2449as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2450as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2451as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2452as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2453as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2454as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2455as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2456as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2457
2458# Auxiliary files required by this configure script.
2459ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2460
2461# Locations in which to look for auxiliary files.
2462ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2463
2464# Search for a directory containing all of the required auxiliary files,
2465# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2466# If we don't find one directory that contains all the files we need,
2467# we report the set of missing files from the *first* directory in
2468# $ac_aux_dir_candidates and give up.
2469ac_missing_aux_files=""
2470ac_first_candidate=:
2471printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473as_found=false
2474for as_dir in $ac_aux_dir_candidates
2475do
2476  IFS=$as_save_IFS
2477  case $as_dir in #(((
2478    '') as_dir=./ ;;
2479    */) ;;
2480    *) as_dir=$as_dir/ ;;
2481  esac
2482  as_found=:
2483
2484  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2485  ac_aux_dir_found=yes
2486  ac_install_sh=
2487  for ac_aux in $ac_aux_files
2488  do
2489    # As a special case, if "install-sh" is required, that requirement
2490    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2491    # and $ac_install_sh is set appropriately for whichever one is found.
2492    if test x"$ac_aux" = x"install-sh"
2493    then
2494      if test -f "${as_dir}install-sh"; then
2495        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2496        ac_install_sh="${as_dir}install-sh -c"
2497      elif test -f "${as_dir}install.sh"; then
2498        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2499        ac_install_sh="${as_dir}install.sh -c"
2500      elif test -f "${as_dir}shtool"; then
2501        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2502        ac_install_sh="${as_dir}shtool install -c"
2503      else
2504        ac_aux_dir_found=no
2505        if $ac_first_candidate; then
2506          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2507        else
2508          break
2509        fi
2510      fi
2511    else
2512      if test -f "${as_dir}${ac_aux}"; then
2513        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2514      else
2515        ac_aux_dir_found=no
2516        if $ac_first_candidate; then
2517          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2518        else
2519          break
2520        fi
2521      fi
2522    fi
2523  done
2524  if test "$ac_aux_dir_found" = yes; then
2525    ac_aux_dir="$as_dir"
2526    break
2527  fi
2528  ac_first_candidate=false
2529
2530  as_found=false
2531done
2532IFS=$as_save_IFS
2533if $as_found
2534then :
2535
2536else $as_nop
2537  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2538fi
2539
2540
2541# These three variables are undocumented and unsupported,
2542# and are intended to be withdrawn in a future Autoconf release.
2543# They can cause serious problems if a builder's source tree is in a directory
2544# whose full name contains unusual characters.
2545if test -f "${ac_aux_dir}config.guess"; then
2546  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2547fi
2548if test -f "${ac_aux_dir}config.sub"; then
2549  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2550fi
2551if test -f "$ac_aux_dir/configure"; then
2552  ac_configure="$SHELL ${ac_aux_dir}configure"
2553fi
2554
2555# Check that the precious variables saved in the cache have kept the same
2556# value.
2557ac_cache_corrupted=false
2558for ac_var in $ac_precious_vars; do
2559  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2560  eval ac_new_set=\$ac_env_${ac_var}_set
2561  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2562  eval ac_new_val=\$ac_env_${ac_var}_value
2563  case $ac_old_set,$ac_new_set in
2564    set,)
2565      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2566printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2567      ac_cache_corrupted=: ;;
2568    ,set)
2569      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2570printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2571      ac_cache_corrupted=: ;;
2572    ,);;
2573    *)
2574      if test "x$ac_old_val" != "x$ac_new_val"; then
2575	# differences in whitespace do not lead to failure.
2576	ac_old_val_w=`echo x $ac_old_val`
2577	ac_new_val_w=`echo x $ac_new_val`
2578	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2579	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2580printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2581	  ac_cache_corrupted=:
2582	else
2583	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2584printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2585	  eval $ac_var=\$ac_old_val
2586	fi
2587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2588printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2590printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2591      fi;;
2592  esac
2593  # Pass precious variables to config.status.
2594  if test "$ac_new_set" = set; then
2595    case $ac_new_val in
2596    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2597    *) ac_arg=$ac_var=$ac_new_val ;;
2598    esac
2599    case " $ac_configure_args " in
2600      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2601      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2602    esac
2603  fi
2604done
2605if $ac_cache_corrupted; then
2606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2609printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2610  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2611	    and start over" "$LINENO" 5
2612fi
2613## -------------------- ##
2614## Main body of script. ##
2615## -------------------- ##
2616
2617ac_ext=c
2618ac_cpp='$CPP $CPPFLAGS'
2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
2624
2625ac_config_headers="$ac_config_headers config.h"
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.7'
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  amigaos*)
5377    # On AmigaOS with pdksh, this test takes hours, literally.
5378    # So we just punt and use a minimum line length of 8192.
5379    lt_cv_sys_max_cmd_len=8192;
5380    ;;
5381
5382  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5383    # This has been around since 386BSD, at least.  Likely further.
5384    if test -x /sbin/sysctl; then
5385      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386    elif test -x /usr/sbin/sysctl; then
5387      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388    else
5389      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5390    fi
5391    # And add a safety zone
5392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394    ;;
5395
5396  interix*)
5397    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398    lt_cv_sys_max_cmd_len=196608
5399    ;;
5400
5401  os2*)
5402    # The test takes a long time on OS/2.
5403    lt_cv_sys_max_cmd_len=8192
5404    ;;
5405
5406  osf*)
5407    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5408    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5409    # nice to cause kernel panics so lets avoid the loop below.
5410    # First set a reasonable default.
5411    lt_cv_sys_max_cmd_len=16384
5412    #
5413    if test -x /sbin/sysconfig; then
5414      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5415        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5416      esac
5417    fi
5418    ;;
5419  sco3.2v5*)
5420    lt_cv_sys_max_cmd_len=102400
5421    ;;
5422  sysv5* | sco5v6* | sysv4.2uw2*)
5423    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5424    if test -n "$kargmax"; then
5425      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5426    else
5427      lt_cv_sys_max_cmd_len=32768
5428    fi
5429    ;;
5430  *)
5431    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5432    if test -n "$lt_cv_sys_max_cmd_len" && \
5433       test undefined != "$lt_cv_sys_max_cmd_len"; then
5434      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5435      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5436    else
5437      # Make teststring a little bigger before we do anything with it.
5438      # a 1K string should be a reasonable start.
5439      for i in 1 2 3 4 5 6 7 8; do
5440        teststring=$teststring$teststring
5441      done
5442      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443      # If test is not a shell built-in, we'll probably end up computing a
5444      # maximum length that is only half of the actual maximum length, but
5445      # we can't tell.
5446      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5447	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5448	      test 17 != "$i" # 1/2 MB should be enough
5449      do
5450        i=`expr $i + 1`
5451        teststring=$teststring$teststring
5452      done
5453      # Only check the string length outside the loop.
5454      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5455      teststring=
5456      # Add a significant safety factor because C++ compilers can tack on
5457      # massive amounts of additional arguments before passing them to the
5458      # linker.  It appears as though 1/2 is a usable value.
5459      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5460    fi
5461    ;;
5462  esac
5463
5464fi
5465
5466if test -n "$lt_cv_sys_max_cmd_len"; then
5467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5468printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5469else
5470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5471printf "%s\n" "none" >&6; }
5472fi
5473max_cmd_len=$lt_cv_sys_max_cmd_len
5474
5475
5476
5477
5478
5479
5480: ${CP="cp -f"}
5481: ${MV="mv -f"}
5482: ${RM="rm -f"}
5483
5484if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5485  lt_unset=unset
5486else
5487  lt_unset=false
5488fi
5489
5490
5491
5492
5493
5494# test EBCDIC or ASCII
5495case `echo X|tr X '\101'` in
5496 A) # ASCII based system
5497    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5498  lt_SP2NL='tr \040 \012'
5499  lt_NL2SP='tr \015\012 \040\040'
5500  ;;
5501 *) # EBCDIC based system
5502  lt_SP2NL='tr \100 \n'
5503  lt_NL2SP='tr \r\n \100\100'
5504  ;;
5505esac
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5516printf %s "checking how to convert $build file names to $host format... " >&6; }
5517if test ${lt_cv_to_host_file_cmd+y}
5518then :
5519  printf %s "(cached) " >&6
5520else $as_nop
5521  case $host in
5522  *-*-mingw* )
5523    case $build in
5524      *-*-mingw* ) # actually msys
5525        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5526        ;;
5527      *-*-cygwin* )
5528        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5529        ;;
5530      * ) # otherwise, assume *nix
5531        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5532        ;;
5533    esac
5534    ;;
5535  *-*-cygwin* )
5536    case $build in
5537      *-*-mingw* ) # actually msys
5538        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5539        ;;
5540      *-*-cygwin* )
5541        lt_cv_to_host_file_cmd=func_convert_file_noop
5542        ;;
5543      * ) # otherwise, assume *nix
5544        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5545        ;;
5546    esac
5547    ;;
5548  * ) # unhandled hosts (and "normal" native builds)
5549    lt_cv_to_host_file_cmd=func_convert_file_noop
5550    ;;
5551esac
5552
5553fi
5554
5555to_host_file_cmd=$lt_cv_to_host_file_cmd
5556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5557printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5558
5559
5560
5561
5562
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5564printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5565if test ${lt_cv_to_tool_file_cmd+y}
5566then :
5567  printf %s "(cached) " >&6
5568else $as_nop
5569  #assume ordinary cross tools, or native build.
5570lt_cv_to_tool_file_cmd=func_convert_file_noop
5571case $host in
5572  *-*-mingw* )
5573    case $build in
5574      *-*-mingw* ) # actually msys
5575        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5576        ;;
5577    esac
5578    ;;
5579esac
5580
5581fi
5582
5583to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5585printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5586
5587
5588
5589
5590
5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5592printf %s "checking for $LD option to reload object files... " >&6; }
5593if test ${lt_cv_ld_reload_flag+y}
5594then :
5595  printf %s "(cached) " >&6
5596else $as_nop
5597  lt_cv_ld_reload_flag='-r'
5598fi
5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5600printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5601reload_flag=$lt_cv_ld_reload_flag
5602case $reload_flag in
5603"" | " "*) ;;
5604*) reload_flag=" $reload_flag" ;;
5605esac
5606reload_cmds='$LD$reload_flag -o $output$reload_objs'
5607case $host_os in
5608  cygwin* | mingw* | pw32* | cegcc*)
5609    if test yes != "$GCC"; then
5610      reload_cmds=false
5611    fi
5612    ;;
5613  darwin*)
5614    if test yes = "$GCC"; then
5615      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5616    else
5617      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5618    fi
5619    ;;
5620esac
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630if test -n "$ac_tool_prefix"; then
5631  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5632set dummy ${ac_tool_prefix}file; ac_word=$2
5633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634printf %s "checking for $ac_word... " >&6; }
5635if test ${ac_cv_prog_FILECMD+y}
5636then :
5637  printf %s "(cached) " >&6
5638else $as_nop
5639  if test -n "$FILECMD"; then
5640  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645  IFS=$as_save_IFS
5646  case $as_dir in #(((
5647    '') as_dir=./ ;;
5648    */) ;;
5649    *) as_dir=$as_dir/ ;;
5650  esac
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5654    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663FILECMD=$ac_cv_prog_FILECMD
5664if test -n "$FILECMD"; then
5665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5666printf "%s\n" "$FILECMD" >&6; }
5667else
5668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669printf "%s\n" "no" >&6; }
5670fi
5671
5672
5673fi
5674if test -z "$ac_cv_prog_FILECMD"; then
5675  ac_ct_FILECMD=$FILECMD
5676  # Extract the first word of "file", so it can be a program name with args.
5677set dummy file; ac_word=$2
5678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679printf %s "checking for $ac_word... " >&6; }
5680if test ${ac_cv_prog_ac_ct_FILECMD+y}
5681then :
5682  printf %s "(cached) " >&6
5683else $as_nop
5684  if test -n "$ac_ct_FILECMD"; then
5685  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  case $as_dir in #(((
5692    '') as_dir=./ ;;
5693    */) ;;
5694    *) as_dir=$as_dir/ ;;
5695  esac
5696    for ac_exec_ext in '' $ac_executable_extensions; do
5697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5698    ac_cv_prog_ac_ct_FILECMD="file"
5699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703  done
5704IFS=$as_save_IFS
5705
5706fi
5707fi
5708ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5709if test -n "$ac_ct_FILECMD"; then
5710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5711printf "%s\n" "$ac_ct_FILECMD" >&6; }
5712else
5713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714printf "%s\n" "no" >&6; }
5715fi
5716
5717  if test "x$ac_ct_FILECMD" = x; then
5718    FILECMD=":"
5719  else
5720    case $cross_compiling:$ac_tool_warned in
5721yes:)
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724ac_tool_warned=yes ;;
5725esac
5726    FILECMD=$ac_ct_FILECMD
5727  fi
5728else
5729  FILECMD="$ac_cv_prog_FILECMD"
5730fi
5731
5732
5733
5734
5735
5736
5737
5738if test -n "$ac_tool_prefix"; then
5739  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}objdump; ac_word=$2
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742printf %s "checking for $ac_word... " >&6; }
5743if test ${ac_cv_prog_OBJDUMP+y}
5744then :
5745  printf %s "(cached) " >&6
5746else $as_nop
5747  if test -n "$OBJDUMP"; then
5748  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  case $as_dir in #(((
5755    '') as_dir=./ ;;
5756    */) ;;
5757    *) as_dir=$as_dir/ ;;
5758  esac
5759    for ac_exec_ext in '' $ac_executable_extensions; do
5760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5761    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5762    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5763    break 2
5764  fi
5765done
5766  done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771OBJDUMP=$ac_cv_prog_OBJDUMP
5772if test -n "$OBJDUMP"; then
5773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5774printf "%s\n" "$OBJDUMP" >&6; }
5775else
5776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777printf "%s\n" "no" >&6; }
5778fi
5779
5780
5781fi
5782if test -z "$ac_cv_prog_OBJDUMP"; then
5783  ac_ct_OBJDUMP=$OBJDUMP
5784  # Extract the first word of "objdump", so it can be a program name with args.
5785set dummy objdump; ac_word=$2
5786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787printf %s "checking for $ac_word... " >&6; }
5788if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5789then :
5790  printf %s "(cached) " >&6
5791else $as_nop
5792  if test -n "$ac_ct_OBJDUMP"; then
5793  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5794else
5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796for as_dir in $PATH
5797do
5798  IFS=$as_save_IFS
5799  case $as_dir in #(((
5800    '') as_dir=./ ;;
5801    */) ;;
5802    *) as_dir=$as_dir/ ;;
5803  esac
5804    for ac_exec_ext in '' $ac_executable_extensions; do
5805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5806    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5808    break 2
5809  fi
5810done
5811  done
5812IFS=$as_save_IFS
5813
5814fi
5815fi
5816ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5817if test -n "$ac_ct_OBJDUMP"; then
5818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5819printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5820else
5821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822printf "%s\n" "no" >&6; }
5823fi
5824
5825  if test "x$ac_ct_OBJDUMP" = x; then
5826    OBJDUMP="false"
5827  else
5828    case $cross_compiling:$ac_tool_warned in
5829yes:)
5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832ac_tool_warned=yes ;;
5833esac
5834    OBJDUMP=$ac_ct_OBJDUMP
5835  fi
5836else
5837  OBJDUMP="$ac_cv_prog_OBJDUMP"
5838fi
5839
5840test -z "$OBJDUMP" && OBJDUMP=objdump
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5851printf %s "checking how to recognize dependent libraries... " >&6; }
5852if test ${lt_cv_deplibs_check_method+y}
5853then :
5854  printf %s "(cached) " >&6
5855else $as_nop
5856  lt_cv_file_magic_cmd='$MAGIC_CMD'
5857lt_cv_file_magic_test_file=
5858lt_cv_deplibs_check_method='unknown'
5859# Need to set the preceding variable on all platforms that support
5860# interlibrary dependencies.
5861# 'none' -- dependencies not supported.
5862# 'unknown' -- same as none, but documents that we really don't know.
5863# 'pass_all' -- all dependencies passed with no checks.
5864# 'test_compile' -- check by making test program.
5865# 'file_magic [[regex]]' -- check by looking for files in library path
5866# that responds to the $file_magic_cmd with a given extended regex.
5867# If you have 'file' or equivalent on your system and you're not sure
5868# whether 'pass_all' will *always* work, you probably want this one.
5869
5870case $host_os in
5871aix[4-9]*)
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874
5875beos*)
5876  lt_cv_deplibs_check_method=pass_all
5877  ;;
5878
5879bsdi[45]*)
5880  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5881  lt_cv_file_magic_cmd='$FILECMD -L'
5882  lt_cv_file_magic_test_file=/shlib/libc.so
5883  ;;
5884
5885cygwin*)
5886  # func_win32_libid is a shell function defined in ltmain.sh
5887  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5888  lt_cv_file_magic_cmd='func_win32_libid'
5889  ;;
5890
5891mingw* | pw32*)
5892  # Base MSYS/MinGW do not provide the 'file' command needed by
5893  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5894  # unless we find 'file', for example because we are cross-compiling.
5895  if ( file / ) >/dev/null 2>&1; then
5896    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897    lt_cv_file_magic_cmd='func_win32_libid'
5898  else
5899    # Keep this pattern in sync with the one in func_win32_libid.
5900    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5901    lt_cv_file_magic_cmd='$OBJDUMP -f'
5902  fi
5903  ;;
5904
5905cegcc*)
5906  # use the weaker test based on 'objdump'. See mingw*.
5907  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5908  lt_cv_file_magic_cmd='$OBJDUMP -f'
5909  ;;
5910
5911darwin* | rhapsody*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915freebsd* | dragonfly* | midnightbsd*)
5916  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917    case $host_cpu in
5918    i*86 )
5919      # Not sure whether the presence of OpenBSD here was a mistake.
5920      # Let's accept both of them until this is cleared up.
5921      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5922      lt_cv_file_magic_cmd=$FILECMD
5923      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5924      ;;
5925    esac
5926  else
5927    lt_cv_deplibs_check_method=pass_all
5928  fi
5929  ;;
5930
5931haiku*)
5932  lt_cv_deplibs_check_method=pass_all
5933  ;;
5934
5935hpux10.20* | hpux11*)
5936  lt_cv_file_magic_cmd=$FILECMD
5937  case $host_cpu in
5938  ia64*)
5939    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941    ;;
5942  hppa*64*)
5943    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]'
5944    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945    ;;
5946  *)
5947    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5948    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5949    ;;
5950  esac
5951  ;;
5952
5953interix[3-9]*)
5954  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956  ;;
5957
5958irix5* | irix6* | nonstopux*)
5959  case $LD in
5960  *-32|*"-32 ") libmagic=32-bit;;
5961  *-n32|*"-n32 ") libmagic=N32;;
5962  *-64|*"-64 ") libmagic=64-bit;;
5963  *) libmagic=never-match;;
5964  esac
5965  lt_cv_deplibs_check_method=pass_all
5966  ;;
5967
5968# This must be glibc/ELF.
5969linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5970  lt_cv_deplibs_check_method=pass_all
5971  ;;
5972
5973netbsd* | netbsdelf*-gnu)
5974  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976  else
5977    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5978  fi
5979  ;;
5980
5981newos6*)
5982  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983  lt_cv_file_magic_cmd=$FILECMD
5984  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5985  ;;
5986
5987*nto* | *qnx*)
5988  lt_cv_deplibs_check_method=pass_all
5989  ;;
5990
5991openbsd* | bitrig*)
5992  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5993    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5994  else
5995    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5996  fi
5997  ;;
5998
5999osf3* | osf4* | osf5*)
6000  lt_cv_deplibs_check_method=pass_all
6001  ;;
6002
6003rdos*)
6004  lt_cv_deplibs_check_method=pass_all
6005  ;;
6006
6007solaris*)
6008  lt_cv_deplibs_check_method=pass_all
6009  ;;
6010
6011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012  lt_cv_deplibs_check_method=pass_all
6013  ;;
6014
6015sysv4 | sysv4.3*)
6016  case $host_vendor in
6017  motorola)
6018    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]'
6019    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020    ;;
6021  ncr)
6022    lt_cv_deplibs_check_method=pass_all
6023    ;;
6024  sequent)
6025    lt_cv_file_magic_cmd='/bin/file'
6026    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027    ;;
6028  sni)
6029    lt_cv_file_magic_cmd='/bin/file'
6030    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031    lt_cv_file_magic_test_file=/lib/libc.so
6032    ;;
6033  siemens)
6034    lt_cv_deplibs_check_method=pass_all
6035    ;;
6036  pc)
6037    lt_cv_deplibs_check_method=pass_all
6038    ;;
6039  esac
6040  ;;
6041
6042tpf*)
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045os2*)
6046  lt_cv_deplibs_check_method=pass_all
6047  ;;
6048esac
6049
6050fi
6051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6052printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6053
6054file_magic_glob=
6055want_nocaseglob=no
6056if test "$build" = "$host"; then
6057  case $host_os in
6058  mingw* | pw32*)
6059    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6060      want_nocaseglob=yes
6061    else
6062      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6063    fi
6064    ;;
6065  esac
6066fi
6067
6068file_magic_cmd=$lt_cv_file_magic_cmd
6069deplibs_check_method=$lt_cv_deplibs_check_method
6070test -z "$deplibs_check_method" && deplibs_check_method=unknown
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093if test -n "$ac_tool_prefix"; then
6094  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6095set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097printf %s "checking for $ac_word... " >&6; }
6098if test ${ac_cv_prog_DLLTOOL+y}
6099then :
6100  printf %s "(cached) " >&6
6101else $as_nop
6102  if test -n "$DLLTOOL"; then
6103  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108  IFS=$as_save_IFS
6109  case $as_dir in #(((
6110    '') as_dir=./ ;;
6111    */) ;;
6112    *) as_dir=$as_dir/ ;;
6113  esac
6114    for ac_exec_ext in '' $ac_executable_extensions; do
6115  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6116    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6117    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121  done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126DLLTOOL=$ac_cv_prog_DLLTOOL
6127if test -n "$DLLTOOL"; then
6128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6129printf "%s\n" "$DLLTOOL" >&6; }
6130else
6131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132printf "%s\n" "no" >&6; }
6133fi
6134
6135
6136fi
6137if test -z "$ac_cv_prog_DLLTOOL"; then
6138  ac_ct_DLLTOOL=$DLLTOOL
6139  # Extract the first word of "dlltool", so it can be a program name with args.
6140set dummy dlltool; ac_word=$2
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142printf %s "checking for $ac_word... " >&6; }
6143if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6144then :
6145  printf %s "(cached) " >&6
6146else $as_nop
6147  if test -n "$ac_ct_DLLTOOL"; then
6148  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153  IFS=$as_save_IFS
6154  case $as_dir in #(((
6155    '') as_dir=./ ;;
6156    */) ;;
6157    *) as_dir=$as_dir/ ;;
6158  esac
6159    for ac_exec_ext in '' $ac_executable_extensions; do
6160  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6161    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6162    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6163    break 2
6164  fi
6165done
6166  done
6167IFS=$as_save_IFS
6168
6169fi
6170fi
6171ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6172if test -n "$ac_ct_DLLTOOL"; then
6173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6174printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6175else
6176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177printf "%s\n" "no" >&6; }
6178fi
6179
6180  if test "x$ac_ct_DLLTOOL" = x; then
6181    DLLTOOL="false"
6182  else
6183    case $cross_compiling:$ac_tool_warned in
6184yes:)
6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187ac_tool_warned=yes ;;
6188esac
6189    DLLTOOL=$ac_ct_DLLTOOL
6190  fi
6191else
6192  DLLTOOL="$ac_cv_prog_DLLTOOL"
6193fi
6194
6195test -z "$DLLTOOL" && DLLTOOL=dlltool
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6207printf %s "checking how to associate runtime and link libraries... " >&6; }
6208if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6209then :
6210  printf %s "(cached) " >&6
6211else $as_nop
6212  lt_cv_sharedlib_from_linklib_cmd='unknown'
6213
6214case $host_os in
6215cygwin* | mingw* | pw32* | cegcc*)
6216  # two different shell functions defined in ltmain.sh;
6217  # decide which one to use based on capabilities of $DLLTOOL
6218  case `$DLLTOOL --help 2>&1` in
6219  *--identify-strict*)
6220    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6221    ;;
6222  *)
6223    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6224    ;;
6225  esac
6226  ;;
6227*)
6228  # fallback: assume linklib IS sharedlib
6229  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6230  ;;
6231esac
6232
6233fi
6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6235printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6236sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6237test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6238
6239
6240
6241
6242
6243
6244
6245
6246if test -n "$ac_tool_prefix"; then
6247  for ac_prog in ar
6248  do
6249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252printf %s "checking for $ac_word... " >&6; }
6253if test ${ac_cv_prog_AR+y}
6254then :
6255  printf %s "(cached) " >&6
6256else $as_nop
6257  if test -n "$AR"; then
6258  ac_cv_prog_AR="$AR" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263  IFS=$as_save_IFS
6264  case $as_dir in #(((
6265    '') as_dir=./ ;;
6266    */) ;;
6267    *) as_dir=$as_dir/ ;;
6268  esac
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6271    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6272    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276  done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281AR=$ac_cv_prog_AR
6282if test -n "$AR"; then
6283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6284printf "%s\n" "$AR" >&6; }
6285else
6286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287printf "%s\n" "no" >&6; }
6288fi
6289
6290
6291    test -n "$AR" && break
6292  done
6293fi
6294if test -z "$AR"; then
6295  ac_ct_AR=$AR
6296  for ac_prog in ar
6297do
6298  # Extract the first word of "$ac_prog", so it can be a program name with args.
6299set dummy $ac_prog; ac_word=$2
6300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301printf %s "checking for $ac_word... " >&6; }
6302if test ${ac_cv_prog_ac_ct_AR+y}
6303then :
6304  printf %s "(cached) " >&6
6305else $as_nop
6306  if test -n "$ac_ct_AR"; then
6307  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312  IFS=$as_save_IFS
6313  case $as_dir in #(((
6314    '') as_dir=./ ;;
6315    */) ;;
6316    *) as_dir=$as_dir/ ;;
6317  esac
6318    for ac_exec_ext in '' $ac_executable_extensions; do
6319  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6320    ac_cv_prog_ac_ct_AR="$ac_prog"
6321    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325  done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331if test -n "$ac_ct_AR"; then
6332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6333printf "%s\n" "$ac_ct_AR" >&6; }
6334else
6335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336printf "%s\n" "no" >&6; }
6337fi
6338
6339
6340  test -n "$ac_ct_AR" && break
6341done
6342
6343  if test "x$ac_ct_AR" = x; then
6344    AR="false"
6345  else
6346    case $cross_compiling:$ac_tool_warned in
6347yes:)
6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352    AR=$ac_ct_AR
6353  fi
6354fi
6355
6356: ${AR=ar}
6357
6358
6359
6360
6361
6362
6363# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6364# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6365# higher priority because thats what people were doing historically (setting
6366# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6367# variable obsoleted/removed.
6368
6369test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6370lt_ar_flags=$AR_FLAGS
6371
6372
6373
6374
6375
6376
6377# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6378# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6379
6380
6381
6382
6383
6384
6385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6386printf %s "checking for archiver @FILE support... " >&6; }
6387if test ${lt_cv_ar_at_file+y}
6388then :
6389  printf %s "(cached) " >&6
6390else $as_nop
6391  lt_cv_ar_at_file=no
6392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h.  */
6394
6395int
6396main (void)
6397{
6398
6399  ;
6400  return 0;
6401}
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"
6404then :
6405  echo conftest.$ac_objext > conftest.lst
6406      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6407      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6408  (eval $lt_ar_try) 2>&5
6409  ac_status=$?
6410  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411  test $ac_status = 0; }
6412      if test 0 -eq "$ac_status"; then
6413	# Ensure the archiver fails upon bogus file names.
6414	rm -f conftest.$ac_objext libconftest.a
6415	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6416  (eval $lt_ar_try) 2>&5
6417  ac_status=$?
6418  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419  test $ac_status = 0; }
6420	if test 0 -ne "$ac_status"; then
6421          lt_cv_ar_at_file=@
6422        fi
6423      fi
6424      rm -f conftest.* libconftest.a
6425
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6428
6429fi
6430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6431printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6432
6433if test no = "$lt_cv_ar_at_file"; then
6434  archiver_list_spec=
6435else
6436  archiver_list_spec=$lt_cv_ar_at_file
6437fi
6438
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}strip; ac_word=$2
6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449printf %s "checking for $ac_word... " >&6; }
6450if test ${ac_cv_prog_STRIP+y}
6451then :
6452  printf %s "(cached) " >&6
6453else $as_nop
6454  if test -n "$STRIP"; then
6455  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460  IFS=$as_save_IFS
6461  case $as_dir in #(((
6462    '') as_dir=./ ;;
6463    */) ;;
6464    *) as_dir=$as_dir/ ;;
6465  esac
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6468    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6470    break 2
6471  fi
6472done
6473  done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478STRIP=$ac_cv_prog_STRIP
6479if test -n "$STRIP"; then
6480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6481printf "%s\n" "$STRIP" >&6; }
6482else
6483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484printf "%s\n" "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_STRIP"; then
6490  ac_ct_STRIP=$STRIP
6491  # Extract the first word of "strip", so it can be a program name with args.
6492set dummy strip; ac_word=$2
6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494printf %s "checking for $ac_word... " >&6; }
6495if test ${ac_cv_prog_ac_ct_STRIP+y}
6496then :
6497  printf %s "(cached) " >&6
6498else $as_nop
6499  if test -n "$ac_ct_STRIP"; then
6500  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  case $as_dir in #(((
6507    '') as_dir=./ ;;
6508    */) ;;
6509    *) as_dir=$as_dir/ ;;
6510  esac
6511    for ac_exec_ext in '' $ac_executable_extensions; do
6512  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6513    ac_cv_prog_ac_ct_STRIP="strip"
6514    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6515    break 2
6516  fi
6517done
6518  done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6524if test -n "$ac_ct_STRIP"; then
6525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6526printf "%s\n" "$ac_ct_STRIP" >&6; }
6527else
6528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529printf "%s\n" "no" >&6; }
6530fi
6531
6532  if test "x$ac_ct_STRIP" = x; then
6533    STRIP=":"
6534  else
6535    case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539ac_tool_warned=yes ;;
6540esac
6541    STRIP=$ac_ct_STRIP
6542  fi
6543else
6544  STRIP="$ac_cv_prog_STRIP"
6545fi
6546
6547test -z "$STRIP" && STRIP=:
6548
6549
6550
6551
6552
6553
6554if test -n "$ac_tool_prefix"; then
6555  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558printf %s "checking for $ac_word... " >&6; }
6559if test ${ac_cv_prog_RANLIB+y}
6560then :
6561  printf %s "(cached) " >&6
6562else $as_nop
6563  if test -n "$RANLIB"; then
6564  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569  IFS=$as_save_IFS
6570  case $as_dir in #(((
6571    '') as_dir=./ ;;
6572    */) ;;
6573    *) as_dir=$as_dir/ ;;
6574  esac
6575    for ac_exec_ext in '' $ac_executable_extensions; do
6576  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6577    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6578    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6579    break 2
6580  fi
6581done
6582  done
6583IFS=$as_save_IFS
6584
6585fi
6586fi
6587RANLIB=$ac_cv_prog_RANLIB
6588if test -n "$RANLIB"; then
6589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6590printf "%s\n" "$RANLIB" >&6; }
6591else
6592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593printf "%s\n" "no" >&6; }
6594fi
6595
6596
6597fi
6598if test -z "$ac_cv_prog_RANLIB"; then
6599  ac_ct_RANLIB=$RANLIB
6600  # Extract the first word of "ranlib", so it can be a program name with args.
6601set dummy ranlib; ac_word=$2
6602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603printf %s "checking for $ac_word... " >&6; }
6604if test ${ac_cv_prog_ac_ct_RANLIB+y}
6605then :
6606  printf %s "(cached) " >&6
6607else $as_nop
6608  if test -n "$ac_ct_RANLIB"; then
6609  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  case $as_dir in #(((
6616    '') as_dir=./ ;;
6617    */) ;;
6618    *) as_dir=$as_dir/ ;;
6619  esac
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6622    ac_cv_prog_ac_ct_RANLIB="ranlib"
6623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6633if test -n "$ac_ct_RANLIB"; then
6634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6635printf "%s\n" "$ac_ct_RANLIB" >&6; }
6636else
6637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638printf "%s\n" "no" >&6; }
6639fi
6640
6641  if test "x$ac_ct_RANLIB" = x; then
6642    RANLIB=":"
6643  else
6644    case $cross_compiling:$ac_tool_warned in
6645yes:)
6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650    RANLIB=$ac_ct_RANLIB
6651  fi
6652else
6653  RANLIB="$ac_cv_prog_RANLIB"
6654fi
6655
6656test -z "$RANLIB" && RANLIB=:
6657
6658
6659
6660
6661
6662
6663# Determine commands to create old-style static archives.
6664old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6665old_postinstall_cmds='chmod 644 $oldlib'
6666old_postuninstall_cmds=
6667
6668if test -n "$RANLIB"; then
6669  case $host_os in
6670  bitrig* | openbsd*)
6671    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6672    ;;
6673  *)
6674    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6675    ;;
6676  esac
6677  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6678fi
6679
6680case $host_os in
6681  darwin*)
6682    lock_old_archive_extraction=yes ;;
6683  *)
6684    lock_old_archive_extraction=no ;;
6685esac
6686
6687
6688
6689
6690
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# If no C compiler was specified, use CC.
6726LTCC=${LTCC-"$CC"}
6727
6728# If no C compiler flags were specified, use CFLAGS.
6729LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6730
6731# Allow CC to be a program name with arguments.
6732compiler=$CC
6733
6734
6735# Check for command to grab the raw symbol name followed by C symbol from nm.
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6737printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6738if test ${lt_cv_sys_global_symbol_pipe+y}
6739then :
6740  printf %s "(cached) " >&6
6741else $as_nop
6742
6743# These are sane defaults that work on at least a few old systems.
6744# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6745
6746# Character class describing NM global symbol codes.
6747symcode='[BCDEGRST]'
6748
6749# Regexp to match symbols that can be accessed directly from C.
6750sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6751
6752# Define system-specific variables.
6753case $host_os in
6754aix*)
6755  symcode='[BCDT]'
6756  ;;
6757cygwin* | mingw* | pw32* | cegcc*)
6758  symcode='[ABCDGISTW]'
6759  ;;
6760hpux*)
6761  if test ia64 = "$host_cpu"; then
6762    symcode='[ABCDEGRST]'
6763  fi
6764  ;;
6765irix* | nonstopux*)
6766  symcode='[BCDEGRST]'
6767  ;;
6768osf*)
6769  symcode='[BCDEGQRST]'
6770  ;;
6771solaris*)
6772  symcode='[BDRT]'
6773  ;;
6774sco3.2v5*)
6775  symcode='[DT]'
6776  ;;
6777sysv4.2uw2*)
6778  symcode='[DT]'
6779  ;;
6780sysv5* | sco5v6* | unixware* | OpenUNIX*)
6781  symcode='[ABDT]'
6782  ;;
6783sysv4)
6784  symcode='[DFNSTU]'
6785  ;;
6786esac
6787
6788# If we're using GNU nm, then use its standard symbol codes.
6789case `$NM -V 2>&1` in
6790*GNU* | *'with BFD'*)
6791  symcode='[ABCDGIRSTW]' ;;
6792esac
6793
6794if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6795  # Gets list of data symbols to import.
6796  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6797  # Adjust the below global symbol transforms to fixup imported variables.
6798  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6799  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6800  lt_c_name_lib_hook="\
6801  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6802  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6803else
6804  # Disable hooks by default.
6805  lt_cv_sys_global_symbol_to_import=
6806  lt_cdecl_hook=
6807  lt_c_name_hook=
6808  lt_c_name_lib_hook=
6809fi
6810
6811# Transform an extracted symbol line into a proper C declaration.
6812# Some systems (esp. on ia64) link data and code symbols differently,
6813# so use this general approach.
6814lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6815$lt_cdecl_hook\
6816" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6817" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6818
6819# Transform an extracted symbol line into symbol name and symbol address
6820lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6821$lt_c_name_hook\
6822" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6823" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6824
6825# Transform an extracted symbol line into symbol name with lib prefix and
6826# symbol address.
6827lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6828$lt_c_name_lib_hook\
6829" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6830" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6831" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6832
6833# Handle CRLF in mingw tool chain
6834opt_cr=
6835case $build_os in
6836mingw*)
6837  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6838  ;;
6839esac
6840
6841# Try without a prefix underscore, then with it.
6842for ac_symprfx in "" "_"; do
6843
6844  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6845  symxfrm="\\1 $ac_symprfx\\2 \\2"
6846
6847  # Write the raw and C identifiers.
6848  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6849    # Fake it for dumpbin and say T for any non-static function,
6850    # D for any global variable and I for any imported variable.
6851    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6852    # which start with @ or ?.
6853    lt_cv_sys_global_symbol_pipe="$AWK '"\
6854"     {last_section=section; section=\$ 3};"\
6855"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6856"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6857"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6858"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6859"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6860"     \$ 0!~/External *\|/{next};"\
6861"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6862"     {if(hide[section]) next};"\
6863"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6864"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6865"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6866"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6867"     ' prfx=^$ac_symprfx"
6868  else
6869    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6870  fi
6871  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6872
6873  # Check to see that the pipe works correctly.
6874  pipe_works=no
6875
6876  rm -f conftest*
6877  cat > conftest.$ac_ext <<_LT_EOF
6878#ifdef __cplusplus
6879extern "C" {
6880#endif
6881char nm_test_var;
6882void nm_test_func(void);
6883void nm_test_func(void){}
6884#ifdef __cplusplus
6885}
6886#endif
6887int main(){nm_test_var='a';nm_test_func();return(0);}
6888_LT_EOF
6889
6890  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891  (eval $ac_compile) 2>&5
6892  ac_status=$?
6893  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894  test $ac_status = 0; }; then
6895    # Now try to grab the symbols.
6896    nlist=conftest.nm
6897    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6898    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6899      # Try sorting and uniquifying the output.
6900      if sort "$nlist" | uniq > "$nlist"T; then
6901	mv -f "$nlist"T "$nlist"
6902      else
6903	rm -f "$nlist"T
6904      fi
6905
6906      # Make sure that we snagged all the symbols we need.
6907      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6908	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6909	  cat <<_LT_EOF > conftest.$ac_ext
6910/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6911#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6912/* DATA imports from DLLs on WIN32 can't be const, because runtime
6913   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6914# define LT_DLSYM_CONST
6915#elif defined __osf__
6916/* This system does not cope well with relocations in const data.  */
6917# define LT_DLSYM_CONST
6918#else
6919# define LT_DLSYM_CONST const
6920#endif
6921
6922#ifdef __cplusplus
6923extern "C" {
6924#endif
6925
6926_LT_EOF
6927	  # Now generate the symbol file.
6928	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6929
6930	  cat <<_LT_EOF >> conftest.$ac_ext
6931
6932/* The mapping between symbol names and symbols.  */
6933LT_DLSYM_CONST struct {
6934  const char *name;
6935  void       *address;
6936}
6937lt__PROGRAM__LTX_preloaded_symbols[] =
6938{
6939  { "@PROGRAM@", (void *) 0 },
6940_LT_EOF
6941	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942	  cat <<\_LT_EOF >> conftest.$ac_ext
6943  {0, (void *) 0}
6944};
6945
6946/* This works around a problem in FreeBSD linker */
6947#ifdef FREEBSD_WORKAROUND
6948static const void *lt_preloaded_setup() {
6949  return lt__PROGRAM__LTX_preloaded_symbols;
6950}
6951#endif
6952
6953#ifdef __cplusplus
6954}
6955#endif
6956_LT_EOF
6957	  # Now try linking the two files.
6958	  mv conftest.$ac_objext conftstm.$ac_objext
6959	  lt_globsym_save_LIBS=$LIBS
6960	  lt_globsym_save_CFLAGS=$CFLAGS
6961	  LIBS=conftstm.$ac_objext
6962	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6964  (eval $ac_link) 2>&5
6965  ac_status=$?
6966  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6968	    pipe_works=yes
6969	  fi
6970	  LIBS=$lt_globsym_save_LIBS
6971	  CFLAGS=$lt_globsym_save_CFLAGS
6972	else
6973	  echo "cannot find nm_test_func in $nlist" >&5
6974	fi
6975      else
6976	echo "cannot find nm_test_var in $nlist" >&5
6977      fi
6978    else
6979      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6980    fi
6981  else
6982    echo "$progname: failed program was:" >&5
6983    cat conftest.$ac_ext >&5
6984  fi
6985  rm -rf conftest* conftst*
6986
6987  # Do not use the global_symbol_pipe unless it works.
6988  if test yes = "$pipe_works"; then
6989    break
6990  else
6991    lt_cv_sys_global_symbol_pipe=
6992  fi
6993done
6994
6995fi
6996
6997if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998  lt_cv_sys_global_symbol_to_cdecl=
6999fi
7000if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7002printf "%s\n" "failed" >&6; }
7003else
7004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7005printf "%s\n" "ok" >&6; }
7006fi
7007
7008# Response file support.
7009if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010  nm_file_list_spec='@'
7011elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7012  nm_file_list_spec='@'
7013fi
7014
7015
7016
7017
7018
7019
7020
7021
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7052printf %s "checking for sysroot... " >&6; }
7053
7054# Check whether --with-sysroot was given.
7055if test ${with_sysroot+y}
7056then :
7057  withval=$with_sysroot;
7058else $as_nop
7059  with_sysroot=no
7060fi
7061
7062
7063lt_sysroot=
7064case $with_sysroot in #(
7065 yes)
7066   if test yes = "$GCC"; then
7067     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7068   fi
7069   ;; #(
7070 /*)
7071   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7072   ;; #(
7073 no|'')
7074   ;; #(
7075 *)
7076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7077printf "%s\n" "$with_sysroot" >&6; }
7078   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7079   ;;
7080esac
7081
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7083printf "%s\n" "${lt_sysroot:-no}" >&6; }
7084
7085
7086
7087
7088
7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7090printf %s "checking for a working dd... " >&6; }
7091if test ${ac_cv_path_lt_DD+y}
7092then :
7093  printf %s "(cached) " >&6
7094else $as_nop
7095  printf 0123456789abcdef0123456789abcdef >conftest.i
7096cat conftest.i conftest.i >conftest2.i
7097: ${lt_DD:=$DD}
7098if test -z "$lt_DD"; then
7099  ac_path_lt_DD_found=false
7100  # Loop through the user's path and test for each of PROGNAME-LIST
7101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  case $as_dir in #(((
7106    '') as_dir=./ ;;
7107    */) ;;
7108    *) as_dir=$as_dir/ ;;
7109  esac
7110    for ac_prog in dd
7111   do
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7114      as_fn_executable_p "$ac_path_lt_DD" || continue
7115if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7116  cmp -s conftest.i conftest.out \
7117  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7118fi
7119      $ac_path_lt_DD_found && break 3
7120    done
7121  done
7122  done
7123IFS=$as_save_IFS
7124  if test -z "$ac_cv_path_lt_DD"; then
7125    :
7126  fi
7127else
7128  ac_cv_path_lt_DD=$lt_DD
7129fi
7130
7131rm -f conftest.i conftest2.i conftest.out
7132fi
7133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7134printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7135
7136
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7138printf %s "checking how to truncate binary pipes... " >&6; }
7139if test ${lt_cv_truncate_bin+y}
7140then :
7141  printf %s "(cached) " >&6
7142else $as_nop
7143  printf 0123456789abcdef0123456789abcdef >conftest.i
7144cat conftest.i conftest.i >conftest2.i
7145lt_cv_truncate_bin=
7146if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7147  cmp -s conftest.i conftest.out \
7148  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7149fi
7150rm -f conftest.i conftest2.i conftest.out
7151test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7154printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7155
7156
7157
7158
7159
7160
7161
7162# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7163func_cc_basename ()
7164{
7165    for cc_temp in $*""; do
7166      case $cc_temp in
7167        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7168        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7169        \-*) ;;
7170        *) break;;
7171      esac
7172    done
7173    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7174}
7175
7176# Check whether --enable-libtool-lock was given.
7177if test ${enable_libtool_lock+y}
7178then :
7179  enableval=$enable_libtool_lock;
7180fi
7181
7182test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7183
7184# Some flags need to be propagated to the compiler or linker for good
7185# libtool support.
7186case $host in
7187ia64-*-hpux*)
7188  # Find out what ABI is being produced by ac_compile, and set mode
7189  # options accordingly.
7190  echo 'int i;' > conftest.$ac_ext
7191  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7192  (eval $ac_compile) 2>&5
7193  ac_status=$?
7194  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195  test $ac_status = 0; }; then
7196    case `$FILECMD conftest.$ac_objext` in
7197      *ELF-32*)
7198	HPUX_IA64_MODE=32
7199	;;
7200      *ELF-64*)
7201	HPUX_IA64_MODE=64
7202	;;
7203    esac
7204  fi
7205  rm -rf conftest*
7206  ;;
7207*-*-irix6*)
7208  # Find out what ABI is being produced by ac_compile, and set linker
7209  # options accordingly.
7210  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7211  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212  (eval $ac_compile) 2>&5
7213  ac_status=$?
7214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215  test $ac_status = 0; }; then
7216    if test yes = "$lt_cv_prog_gnu_ld"; then
7217      case `$FILECMD conftest.$ac_objext` in
7218	*32-bit*)
7219	  LD="${LD-ld} -melf32bsmip"
7220	  ;;
7221	*N32*)
7222	  LD="${LD-ld} -melf32bmipn32"
7223	  ;;
7224	*64-bit*)
7225	  LD="${LD-ld} -melf64bmip"
7226	;;
7227      esac
7228    else
7229      case `$FILECMD conftest.$ac_objext` in
7230	*32-bit*)
7231	  LD="${LD-ld} -32"
7232	  ;;
7233	*N32*)
7234	  LD="${LD-ld} -n32"
7235	  ;;
7236	*64-bit*)
7237	  LD="${LD-ld} -64"
7238	  ;;
7239      esac
7240    fi
7241  fi
7242  rm -rf conftest*
7243  ;;
7244
7245mips64*-*linux*)
7246  # Find out what ABI is being produced by ac_compile, and set linker
7247  # options accordingly.
7248  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7249  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7250  (eval $ac_compile) 2>&5
7251  ac_status=$?
7252  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253  test $ac_status = 0; }; then
7254    emul=elf
7255    case `$FILECMD conftest.$ac_objext` in
7256      *32-bit*)
7257	emul="${emul}32"
7258	;;
7259      *64-bit*)
7260	emul="${emul}64"
7261	;;
7262    esac
7263    case `$FILECMD conftest.$ac_objext` in
7264      *MSB*)
7265	emul="${emul}btsmip"
7266	;;
7267      *LSB*)
7268	emul="${emul}ltsmip"
7269	;;
7270    esac
7271    case `$FILECMD conftest.$ac_objext` in
7272      *N32*)
7273	emul="${emul}n32"
7274	;;
7275    esac
7276    LD="${LD-ld} -m $emul"
7277  fi
7278  rm -rf conftest*
7279  ;;
7280
7281x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7282s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7283  # Find out what ABI is being produced by ac_compile, and set linker
7284  # options accordingly.  Note that the listed cases only cover the
7285  # situations where additional linker options are needed (such as when
7286  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7287  # vice versa); the common cases where no linker options are needed do
7288  # not appear in the list.
7289  echo 'int i;' > conftest.$ac_ext
7290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291  (eval $ac_compile) 2>&5
7292  ac_status=$?
7293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294  test $ac_status = 0; }; then
7295    case `$FILECMD conftest.o` in
7296      *32-bit*)
7297	case $host in
7298	  x86_64-*kfreebsd*-gnu)
7299	    LD="${LD-ld} -m elf_i386_fbsd"
7300	    ;;
7301	  x86_64-*linux*)
7302	    case `$FILECMD conftest.o` in
7303	      *x86-64*)
7304		LD="${LD-ld} -m elf32_x86_64"
7305		;;
7306	      *)
7307		LD="${LD-ld} -m elf_i386"
7308		;;
7309	    esac
7310	    ;;
7311	  powerpc64le-*linux*)
7312	    LD="${LD-ld} -m elf32lppclinux"
7313	    ;;
7314	  powerpc64-*linux*)
7315	    LD="${LD-ld} -m elf32ppclinux"
7316	    ;;
7317	  s390x-*linux*)
7318	    LD="${LD-ld} -m elf_s390"
7319	    ;;
7320	  sparc64-*linux*)
7321	    LD="${LD-ld} -m elf32_sparc"
7322	    ;;
7323	esac
7324	;;
7325      *64-bit*)
7326	case $host in
7327	  x86_64-*kfreebsd*-gnu)
7328	    LD="${LD-ld} -m elf_x86_64_fbsd"
7329	    ;;
7330	  x86_64-*linux*)
7331	    LD="${LD-ld} -m elf_x86_64"
7332	    ;;
7333	  powerpcle-*linux*)
7334	    LD="${LD-ld} -m elf64lppc"
7335	    ;;
7336	  powerpc-*linux*)
7337	    LD="${LD-ld} -m elf64ppc"
7338	    ;;
7339	  s390*-*linux*|s390*-*tpf*)
7340	    LD="${LD-ld} -m elf64_s390"
7341	    ;;
7342	  sparc*-*linux*)
7343	    LD="${LD-ld} -m elf64_sparc"
7344	    ;;
7345	esac
7346	;;
7347    esac
7348  fi
7349  rm -rf conftest*
7350  ;;
7351
7352*-*-sco3.2v5*)
7353  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7354  SAVE_CFLAGS=$CFLAGS
7355  CFLAGS="$CFLAGS -belf"
7356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7357printf %s "checking whether the C compiler needs -belf... " >&6; }
7358if test ${lt_cv_cc_needs_belf+y}
7359then :
7360  printf %s "(cached) " >&6
7361else $as_nop
7362  ac_ext=c
7363ac_cpp='$CPP $CPPFLAGS'
7364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367
7368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370
7371int
7372main (void)
7373{
7374
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"
7380then :
7381  lt_cv_cc_needs_belf=yes
7382else $as_nop
7383  lt_cv_cc_needs_belf=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.beam \
7386    conftest$ac_exeext conftest.$ac_ext
7387     ac_ext=c
7388ac_cpp='$CPP $CPPFLAGS'
7389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393fi
7394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7395printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7396  if test yes != "$lt_cv_cc_needs_belf"; then
7397    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7398    CFLAGS=$SAVE_CFLAGS
7399  fi
7400  ;;
7401*-*solaris*)
7402  # Find out what ABI is being produced by ac_compile, and set linker
7403  # options accordingly.
7404  echo 'int i;' > conftest.$ac_ext
7405  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7406  (eval $ac_compile) 2>&5
7407  ac_status=$?
7408  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409  test $ac_status = 0; }; then
7410    case `$FILECMD conftest.o` in
7411    *64-bit*)
7412      case $lt_cv_prog_gnu_ld in
7413      yes*)
7414        case $host in
7415        i?86-*-solaris*|x86_64-*-solaris*)
7416          LD="${LD-ld} -m elf_x86_64"
7417          ;;
7418        sparc*-*-solaris*)
7419          LD="${LD-ld} -m elf64_sparc"
7420          ;;
7421        esac
7422        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7423        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7424          LD=${LD-ld}_sol2
7425        fi
7426        ;;
7427      *)
7428	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7429	  LD="${LD-ld} -64"
7430	fi
7431	;;
7432      esac
7433      ;;
7434    esac
7435  fi
7436  rm -rf conftest*
7437  ;;
7438esac
7439
7440need_locks=$enable_libtool_lock
7441
7442if test -n "$ac_tool_prefix"; then
7443  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7444set dummy ${ac_tool_prefix}mt; ac_word=$2
7445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446printf %s "checking for $ac_word... " >&6; }
7447if test ${ac_cv_prog_MANIFEST_TOOL+y}
7448then :
7449  printf %s "(cached) " >&6
7450else $as_nop
7451  if test -n "$MANIFEST_TOOL"; then
7452  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  case $as_dir in #(((
7459    '') as_dir=./ ;;
7460    */) ;;
7461    *) as_dir=$as_dir/ ;;
7462  esac
7463    for ac_exec_ext in '' $ac_executable_extensions; do
7464  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7465    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470  done
7471IFS=$as_save_IFS
7472
7473fi
7474fi
7475MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7476if test -n "$MANIFEST_TOOL"; then
7477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7478printf "%s\n" "$MANIFEST_TOOL" >&6; }
7479else
7480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481printf "%s\n" "no" >&6; }
7482fi
7483
7484
7485fi
7486if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7487  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7488  # Extract the first word of "mt", so it can be a program name with args.
7489set dummy mt; ac_word=$2
7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491printf %s "checking for $ac_word... " >&6; }
7492if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7493then :
7494  printf %s "(cached) " >&6
7495else $as_nop
7496  if test -n "$ac_ct_MANIFEST_TOOL"; then
7497  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502  IFS=$as_save_IFS
7503  case $as_dir in #(((
7504    '') as_dir=./ ;;
7505    */) ;;
7506    *) as_dir=$as_dir/ ;;
7507  esac
7508    for ac_exec_ext in '' $ac_executable_extensions; do
7509  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7511    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515  done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
7520ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7521if test -n "$ac_ct_MANIFEST_TOOL"; then
7522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7523printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7524else
7525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526printf "%s\n" "no" >&6; }
7527fi
7528
7529  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7530    MANIFEST_TOOL=":"
7531  else
7532    case $cross_compiling:$ac_tool_warned in
7533yes:)
7534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536ac_tool_warned=yes ;;
7537esac
7538    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7539  fi
7540else
7541  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7542fi
7543
7544test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7546printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7547if test ${lt_cv_path_mainfest_tool+y}
7548then :
7549  printf %s "(cached) " >&6
7550else $as_nop
7551  lt_cv_path_mainfest_tool=no
7552  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7553  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7554  cat conftest.err >&5
7555  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7556    lt_cv_path_mainfest_tool=yes
7557  fi
7558  rm -f conftest*
7559fi
7560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7561printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7562if test yes != "$lt_cv_path_mainfest_tool"; then
7563  MANIFEST_TOOL=:
7564fi
7565
7566
7567
7568
7569
7570
7571  case $host_os in
7572    rhapsody* | darwin*)
7573    if test -n "$ac_tool_prefix"; then
7574  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577printf %s "checking for $ac_word... " >&6; }
7578if test ${ac_cv_prog_DSYMUTIL+y}
7579then :
7580  printf %s "(cached) " >&6
7581else $as_nop
7582  if test -n "$DSYMUTIL"; then
7583  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588  IFS=$as_save_IFS
7589  case $as_dir in #(((
7590    '') as_dir=./ ;;
7591    */) ;;
7592    *) as_dir=$as_dir/ ;;
7593  esac
7594    for ac_exec_ext in '' $ac_executable_extensions; do
7595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601  done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606DSYMUTIL=$ac_cv_prog_DSYMUTIL
7607if test -n "$DSYMUTIL"; then
7608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7609printf "%s\n" "$DSYMUTIL" >&6; }
7610else
7611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612printf "%s\n" "no" >&6; }
7613fi
7614
7615
7616fi
7617if test -z "$ac_cv_prog_DSYMUTIL"; then
7618  ac_ct_DSYMUTIL=$DSYMUTIL
7619  # Extract the first word of "dsymutil", so it can be a program name with args.
7620set dummy dsymutil; ac_word=$2
7621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622printf %s "checking for $ac_word... " >&6; }
7623if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7624then :
7625  printf %s "(cached) " >&6
7626else $as_nop
7627  if test -n "$ac_ct_DSYMUTIL"; then
7628  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633  IFS=$as_save_IFS
7634  case $as_dir in #(((
7635    '') as_dir=./ ;;
7636    */) ;;
7637    *) as_dir=$as_dir/ ;;
7638  esac
7639    for ac_exec_ext in '' $ac_executable_extensions; do
7640  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7641    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646  done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7652if test -n "$ac_ct_DSYMUTIL"; then
7653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7654printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7655else
7656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657printf "%s\n" "no" >&6; }
7658fi
7659
7660  if test "x$ac_ct_DSYMUTIL" = x; then
7661    DSYMUTIL=":"
7662  else
7663    case $cross_compiling:$ac_tool_warned in
7664yes:)
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667ac_tool_warned=yes ;;
7668esac
7669    DSYMUTIL=$ac_ct_DSYMUTIL
7670  fi
7671else
7672  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7673fi
7674
7675    if test -n "$ac_tool_prefix"; then
7676  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7677set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679printf %s "checking for $ac_word... " >&6; }
7680if test ${ac_cv_prog_NMEDIT+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  if test -n "$NMEDIT"; then
7685  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7686else
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690  IFS=$as_save_IFS
7691  case $as_dir in #(((
7692    '') as_dir=./ ;;
7693    */) ;;
7694    *) as_dir=$as_dir/ ;;
7695  esac
7696    for ac_exec_ext in '' $ac_executable_extensions; do
7697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7698    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7700    break 2
7701  fi
7702done
7703  done
7704IFS=$as_save_IFS
7705
7706fi
7707fi
7708NMEDIT=$ac_cv_prog_NMEDIT
7709if test -n "$NMEDIT"; then
7710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7711printf "%s\n" "$NMEDIT" >&6; }
7712else
7713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714printf "%s\n" "no" >&6; }
7715fi
7716
7717
7718fi
7719if test -z "$ac_cv_prog_NMEDIT"; then
7720  ac_ct_NMEDIT=$NMEDIT
7721  # Extract the first word of "nmedit", so it can be a program name with args.
7722set dummy nmedit; ac_word=$2
7723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724printf %s "checking for $ac_word... " >&6; }
7725if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7726then :
7727  printf %s "(cached) " >&6
7728else $as_nop
7729  if test -n "$ac_ct_NMEDIT"; then
7730  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  case $as_dir in #(((
7737    '') as_dir=./ ;;
7738    */) ;;
7739    *) as_dir=$as_dir/ ;;
7740  esac
7741    for ac_exec_ext in '' $ac_executable_extensions; do
7742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748  done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7754if test -n "$ac_ct_NMEDIT"; then
7755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7756printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7757else
7758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759printf "%s\n" "no" >&6; }
7760fi
7761
7762  if test "x$ac_ct_NMEDIT" = x; then
7763    NMEDIT=":"
7764  else
7765    case $cross_compiling:$ac_tool_warned in
7766yes:)
7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769ac_tool_warned=yes ;;
7770esac
7771    NMEDIT=$ac_ct_NMEDIT
7772  fi
7773else
7774  NMEDIT="$ac_cv_prog_NMEDIT"
7775fi
7776
7777    if test -n "$ac_tool_prefix"; then
7778  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7779set dummy ${ac_tool_prefix}lipo; ac_word=$2
7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781printf %s "checking for $ac_word... " >&6; }
7782if test ${ac_cv_prog_LIPO+y}
7783then :
7784  printf %s "(cached) " >&6
7785else $as_nop
7786  if test -n "$LIPO"; then
7787  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  case $as_dir in #(((
7794    '') as_dir=./ ;;
7795    */) ;;
7796    *) as_dir=$as_dir/ ;;
7797  esac
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810LIPO=$ac_cv_prog_LIPO
7811if test -n "$LIPO"; then
7812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7813printf "%s\n" "$LIPO" >&6; }
7814else
7815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816printf "%s\n" "no" >&6; }
7817fi
7818
7819
7820fi
7821if test -z "$ac_cv_prog_LIPO"; then
7822  ac_ct_LIPO=$LIPO
7823  # Extract the first word of "lipo", so it can be a program name with args.
7824set dummy lipo; ac_word=$2
7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826printf %s "checking for $ac_word... " >&6; }
7827if test ${ac_cv_prog_ac_ct_LIPO+y}
7828then :
7829  printf %s "(cached) " >&6
7830else $as_nop
7831  if test -n "$ac_ct_LIPO"; then
7832  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837  IFS=$as_save_IFS
7838  case $as_dir in #(((
7839    '') as_dir=./ ;;
7840    */) ;;
7841    *) as_dir=$as_dir/ ;;
7842  esac
7843    for ac_exec_ext in '' $ac_executable_extensions; do
7844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845    ac_cv_prog_ac_ct_LIPO="lipo"
7846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850  done
7851IFS=$as_save_IFS
7852
7853fi
7854fi
7855ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7856if test -n "$ac_ct_LIPO"; then
7857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7858printf "%s\n" "$ac_ct_LIPO" >&6; }
7859else
7860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861printf "%s\n" "no" >&6; }
7862fi
7863
7864  if test "x$ac_ct_LIPO" = x; then
7865    LIPO=":"
7866  else
7867    case $cross_compiling:$ac_tool_warned in
7868yes:)
7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871ac_tool_warned=yes ;;
7872esac
7873    LIPO=$ac_ct_LIPO
7874  fi
7875else
7876  LIPO="$ac_cv_prog_LIPO"
7877fi
7878
7879    if test -n "$ac_tool_prefix"; then
7880  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7881set dummy ${ac_tool_prefix}otool; ac_word=$2
7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883printf %s "checking for $ac_word... " >&6; }
7884if test ${ac_cv_prog_OTOOL+y}
7885then :
7886  printf %s "(cached) " >&6
7887else $as_nop
7888  if test -n "$OTOOL"; then
7889  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  case $as_dir in #(((
7896    '') as_dir=./ ;;
7897    */) ;;
7898    *) as_dir=$as_dir/ ;;
7899  esac
7900    for ac_exec_ext in '' $ac_executable_extensions; do
7901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904    break 2
7905  fi
7906done
7907  done
7908IFS=$as_save_IFS
7909
7910fi
7911fi
7912OTOOL=$ac_cv_prog_OTOOL
7913if test -n "$OTOOL"; then
7914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7915printf "%s\n" "$OTOOL" >&6; }
7916else
7917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918printf "%s\n" "no" >&6; }
7919fi
7920
7921
7922fi
7923if test -z "$ac_cv_prog_OTOOL"; then
7924  ac_ct_OTOOL=$OTOOL
7925  # Extract the first word of "otool", so it can be a program name with args.
7926set dummy otool; ac_word=$2
7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928printf %s "checking for $ac_word... " >&6; }
7929if test ${ac_cv_prog_ac_ct_OTOOL+y}
7930then :
7931  printf %s "(cached) " >&6
7932else $as_nop
7933  if test -n "$ac_ct_OTOOL"; then
7934  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  case $as_dir in #(((
7941    '') as_dir=./ ;;
7942    */) ;;
7943    *) as_dir=$as_dir/ ;;
7944  esac
7945    for ac_exec_ext in '' $ac_executable_extensions; do
7946  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7947    ac_cv_prog_ac_ct_OTOOL="otool"
7948    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952  done
7953IFS=$as_save_IFS
7954
7955fi
7956fi
7957ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7958if test -n "$ac_ct_OTOOL"; then
7959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7960printf "%s\n" "$ac_ct_OTOOL" >&6; }
7961else
7962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963printf "%s\n" "no" >&6; }
7964fi
7965
7966  if test "x$ac_ct_OTOOL" = x; then
7967    OTOOL=":"
7968  else
7969    case $cross_compiling:$ac_tool_warned in
7970yes:)
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975    OTOOL=$ac_ct_OTOOL
7976  fi
7977else
7978  OTOOL="$ac_cv_prog_OTOOL"
7979fi
7980
7981    if test -n "$ac_tool_prefix"; then
7982  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}otool64; ac_word=$2
7984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985printf %s "checking for $ac_word... " >&6; }
7986if test ${ac_cv_prog_OTOOL64+y}
7987then :
7988  printf %s "(cached) " >&6
7989else $as_nop
7990  if test -n "$OTOOL64"; then
7991  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7992else
7993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996  IFS=$as_save_IFS
7997  case $as_dir in #(((
7998    '') as_dir=./ ;;
7999    */) ;;
8000    *) as_dir=$as_dir/ ;;
8001  esac
8002    for ac_exec_ext in '' $ac_executable_extensions; do
8003  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8004    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8006    break 2
8007  fi
8008done
8009  done
8010IFS=$as_save_IFS
8011
8012fi
8013fi
8014OTOOL64=$ac_cv_prog_OTOOL64
8015if test -n "$OTOOL64"; then
8016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8017printf "%s\n" "$OTOOL64" >&6; }
8018else
8019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020printf "%s\n" "no" >&6; }
8021fi
8022
8023
8024fi
8025if test -z "$ac_cv_prog_OTOOL64"; then
8026  ac_ct_OTOOL64=$OTOOL64
8027  # Extract the first word of "otool64", so it can be a program name with args.
8028set dummy otool64; ac_word=$2
8029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030printf %s "checking for $ac_word... " >&6; }
8031if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8032then :
8033  printf %s "(cached) " >&6
8034else $as_nop
8035  if test -n "$ac_ct_OTOOL64"; then
8036  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  case $as_dir in #(((
8043    '') as_dir=./ ;;
8044    */) ;;
8045    *) as_dir=$as_dir/ ;;
8046  esac
8047    for ac_exec_ext in '' $ac_executable_extensions; do
8048  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8049    ac_cv_prog_ac_ct_OTOOL64="otool64"
8050    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8051    break 2
8052  fi
8053done
8054  done
8055IFS=$as_save_IFS
8056
8057fi
8058fi
8059ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8060if test -n "$ac_ct_OTOOL64"; then
8061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8062printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8063else
8064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065printf "%s\n" "no" >&6; }
8066fi
8067
8068  if test "x$ac_ct_OTOOL64" = x; then
8069    OTOOL64=":"
8070  else
8071    case $cross_compiling:$ac_tool_warned in
8072yes:)
8073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075ac_tool_warned=yes ;;
8076esac
8077    OTOOL64=$ac_ct_OTOOL64
8078  fi
8079else
8080  OTOOL64="$ac_cv_prog_OTOOL64"
8081fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8110printf %s "checking for -single_module linker flag... " >&6; }
8111if test ${lt_cv_apple_cc_single_mod+y}
8112then :
8113  printf %s "(cached) " >&6
8114else $as_nop
8115  lt_cv_apple_cc_single_mod=no
8116      if test -z "$LT_MULTI_MODULE"; then
8117	# By default we will add the -single_module flag. You can override
8118	# by either setting the environment variable LT_MULTI_MODULE
8119	# non-empty at configure time, or by adding -multi_module to the
8120	# link flags.
8121	rm -rf libconftest.dylib*
8122	echo "int foo(void){return 1;}" > conftest.c
8123	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8124-dynamiclib -Wl,-single_module conftest.c" >&5
8125	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8126	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8127        _lt_result=$?
8128	# If there is a non-empty error log, and "single_module"
8129	# appears in it, assume the flag caused a linker warning
8130        if test -s conftest.err && $GREP single_module conftest.err; then
8131	  cat conftest.err >&5
8132	# Otherwise, if the output was created with a 0 exit code from
8133	# the compiler, it worked.
8134	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8135	  lt_cv_apple_cc_single_mod=yes
8136	else
8137	  cat conftest.err >&5
8138	fi
8139	rm -rf libconftest.dylib*
8140	rm -f conftest.*
8141      fi
8142fi
8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8144printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8145
8146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8147printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8148if test ${lt_cv_ld_exported_symbols_list+y}
8149then :
8150  printf %s "(cached) " >&6
8151else $as_nop
8152  lt_cv_ld_exported_symbols_list=no
8153      save_LDFLAGS=$LDFLAGS
8154      echo "_main" > conftest.sym
8155      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8156      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157/* end confdefs.h.  */
8158
8159int
8160main (void)
8161{
8162
8163  ;
8164  return 0;
8165}
8166_ACEOF
8167if ac_fn_c_try_link "$LINENO"
8168then :
8169  lt_cv_ld_exported_symbols_list=yes
8170else $as_nop
8171  lt_cv_ld_exported_symbols_list=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.beam \
8174    conftest$ac_exeext conftest.$ac_ext
8175	LDFLAGS=$save_LDFLAGS
8176
8177fi
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8179printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8180
8181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8182printf %s "checking for -force_load linker flag... " >&6; }
8183if test ${lt_cv_ld_force_load+y}
8184then :
8185  printf %s "(cached) " >&6
8186else $as_nop
8187  lt_cv_ld_force_load=no
8188      cat > conftest.c << _LT_EOF
8189int forced_loaded() { return 2;}
8190_LT_EOF
8191      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8192      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8193      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8194      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8195      echo "$RANLIB libconftest.a" >&5
8196      $RANLIB libconftest.a 2>&5
8197      cat > conftest.c << _LT_EOF
8198int main() { return 0;}
8199_LT_EOF
8200      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8201      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8202      _lt_result=$?
8203      if test -s conftest.err && $GREP force_load conftest.err; then
8204	cat conftest.err >&5
8205      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8206	lt_cv_ld_force_load=yes
8207      else
8208	cat conftest.err >&5
8209      fi
8210        rm -f conftest.err libconftest.a conftest conftest.c
8211        rm -rf conftest.dSYM
8212
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8215printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8216    case $host_os in
8217    rhapsody* | darwin1.[012])
8218      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8219    darwin1.*)
8220      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8221    darwin*)
8222      case $MACOSX_DEPLOYMENT_TARGET,$host in
8223        10.[012],*|,*powerpc*-darwin[5-8]*)
8224          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8225        *)
8226          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8227      esac
8228    ;;
8229  esac
8230    if test yes = "$lt_cv_apple_cc_single_mod"; then
8231      _lt_dar_single_mod='$single_module'
8232    fi
8233    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8234      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8235    else
8236      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8237    fi
8238    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8239      _lt_dsymutil='~$DSYMUTIL $lib || :'
8240    else
8241      _lt_dsymutil=
8242    fi
8243    ;;
8244  esac
8245
8246# func_munge_path_list VARIABLE PATH
8247# -----------------------------------
8248# VARIABLE is name of variable containing _space_ separated list of
8249# directories to be munged by the contents of PATH, which is string
8250# having a format:
8251# "DIR[:DIR]:"
8252#       string "DIR[ DIR]" will be prepended to VARIABLE
8253# ":DIR[:DIR]"
8254#       string "DIR[ DIR]" will be appended to VARIABLE
8255# "DIRP[:DIRP]::[DIRA:]DIRA"
8256#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8257#       "DIRA[ DIRA]" will be appended to VARIABLE
8258# "DIR[:DIR]"
8259#       VARIABLE will be replaced by "DIR[ DIR]"
8260func_munge_path_list ()
8261{
8262    case x$2 in
8263    x)
8264        ;;
8265    *:)
8266        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8267        ;;
8268    x:*)
8269        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8270        ;;
8271    *::*)
8272        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8273        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8274        ;;
8275    *)
8276        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8277        ;;
8278    esac
8279}
8280
8281ac_header= ac_cache=
8282for ac_item in $ac_header_c_list
8283do
8284  if test $ac_cache; then
8285    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8286    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8287      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8288    fi
8289    ac_header= ac_cache=
8290  elif test $ac_header; then
8291    ac_cache=$ac_item
8292  else
8293    ac_header=$ac_item
8294  fi
8295done
8296
8297
8298
8299
8300
8301
8302
8303
8304if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8305then :
8306
8307printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8308
8309fi
8310ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8311"
8312if test "x$ac_cv_header_dlfcn_h" = xyes
8313then :
8314  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8315
8316fi
8317
8318
8319
8320
8321
8322# Set options
8323
8324
8325
8326        enable_dlopen=no
8327
8328
8329  enable_win32_dll=no
8330
8331
8332            # Check whether --enable-shared was given.
8333if test ${enable_shared+y}
8334then :
8335  enableval=$enable_shared; p=${PACKAGE-default}
8336    case $enableval in
8337    yes) enable_shared=yes ;;
8338    no) enable_shared=no ;;
8339    *)
8340      enable_shared=no
8341      # Look at the argument we got.  We use all the common list separators.
8342      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8343      for pkg in $enableval; do
8344	IFS=$lt_save_ifs
8345	if test "X$pkg" = "X$p"; then
8346	  enable_shared=yes
8347	fi
8348      done
8349      IFS=$lt_save_ifs
8350      ;;
8351    esac
8352else $as_nop
8353  enable_shared=yes
8354fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364  # Check whether --enable-static was given.
8365if test ${enable_static+y}
8366then :
8367  enableval=$enable_static; p=${PACKAGE-default}
8368    case $enableval in
8369    yes) enable_static=yes ;;
8370    no) enable_static=no ;;
8371    *)
8372     enable_static=no
8373      # Look at the argument we got.  We use all the common list separators.
8374      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8375      for pkg in $enableval; do
8376	IFS=$lt_save_ifs
8377	if test "X$pkg" = "X$p"; then
8378	  enable_static=yes
8379	fi
8380      done
8381      IFS=$lt_save_ifs
8382      ;;
8383    esac
8384else $as_nop
8385  enable_static=yes
8386fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397# Check whether --with-pic was given.
8398if test ${with_pic+y}
8399then :
8400  withval=$with_pic; lt_p=${PACKAGE-default}
8401    case $withval in
8402    yes|no) pic_mode=$withval ;;
8403    *)
8404      pic_mode=default
8405      # Look at the argument we got.  We use all the common list separators.
8406      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8407      for lt_pkg in $withval; do
8408	IFS=$lt_save_ifs
8409	if test "X$lt_pkg" = "X$lt_p"; then
8410	  pic_mode=yes
8411	fi
8412      done
8413      IFS=$lt_save_ifs
8414      ;;
8415    esac
8416else $as_nop
8417  pic_mode=default
8418fi
8419
8420
8421
8422
8423
8424
8425
8426
8427  # Check whether --enable-fast-install was given.
8428if test ${enable_fast_install+y}
8429then :
8430  enableval=$enable_fast_install; p=${PACKAGE-default}
8431    case $enableval in
8432    yes) enable_fast_install=yes ;;
8433    no) enable_fast_install=no ;;
8434    *)
8435      enable_fast_install=no
8436      # Look at the argument we got.  We use all the common list separators.
8437      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8438      for pkg in $enableval; do
8439	IFS=$lt_save_ifs
8440	if test "X$pkg" = "X$p"; then
8441	  enable_fast_install=yes
8442	fi
8443      done
8444      IFS=$lt_save_ifs
8445      ;;
8446    esac
8447else $as_nop
8448  enable_fast_install=yes
8449fi
8450
8451
8452
8453
8454
8455
8456
8457
8458  shared_archive_member_spec=
8459case $host,$enable_shared in
8460power*-*-aix[5-9]*,yes)
8461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8462printf %s "checking which variant of shared library versioning to provide... " >&6; }
8463
8464# Check whether --with-aix-soname was given.
8465if test ${with_aix_soname+y}
8466then :
8467  withval=$with_aix_soname; case $withval in
8468    aix|svr4|both)
8469      ;;
8470    *)
8471      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8472      ;;
8473    esac
8474    lt_cv_with_aix_soname=$with_aix_soname
8475else $as_nop
8476  if test ${lt_cv_with_aix_soname+y}
8477then :
8478  printf %s "(cached) " >&6
8479else $as_nop
8480  lt_cv_with_aix_soname=aix
8481fi
8482
8483    with_aix_soname=$lt_cv_with_aix_soname
8484fi
8485
8486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8487printf "%s\n" "$with_aix_soname" >&6; }
8488  if test aix != "$with_aix_soname"; then
8489    # For the AIX way of multilib, we name the shared archive member
8490    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8491    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8492    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8493    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8494    if test 64 = "${OBJECT_MODE-32}"; then
8495      shared_archive_member_spec=shr_64
8496    else
8497      shared_archive_member_spec=shr
8498    fi
8499  fi
8500  ;;
8501*)
8502  with_aix_soname=aix
8503  ;;
8504esac
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515# This can be used to rebuild libtool when needed
8516LIBTOOL_DEPS=$ltmain
8517
8518# Always use our own libtool.
8519LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550test -z "$LN_S" && LN_S="ln -s"
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565if test -n "${ZSH_VERSION+set}"; then
8566   setopt NO_GLOB_SUBST
8567fi
8568
8569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8570printf %s "checking for objdir... " >&6; }
8571if test ${lt_cv_objdir+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  rm -f .libs 2>/dev/null
8576mkdir .libs 2>/dev/null
8577if test -d .libs; then
8578  lt_cv_objdir=.libs
8579else
8580  # MS-DOS does not allow filenames that begin with a dot.
8581  lt_cv_objdir=_libs
8582fi
8583rmdir .libs 2>/dev/null
8584fi
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8586printf "%s\n" "$lt_cv_objdir" >&6; }
8587objdir=$lt_cv_objdir
8588
8589
8590
8591
8592
8593printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8594
8595
8596
8597
8598case $host_os in
8599aix3*)
8600  # AIX sometimes has problems with the GCC collect2 program.  For some
8601  # reason, if we set the COLLECT_NAMES environment variable, the problems
8602  # vanish in a puff of smoke.
8603  if test set != "${COLLECT_NAMES+set}"; then
8604    COLLECT_NAMES=
8605    export COLLECT_NAMES
8606  fi
8607  ;;
8608esac
8609
8610# Global variables:
8611ofile=libtool
8612can_build_shared=yes
8613
8614# All known linkers require a '.a' archive for static linking (except MSVC and
8615# ICC, which need '.lib').
8616libext=a
8617
8618with_gnu_ld=$lt_cv_prog_gnu_ld
8619
8620old_CC=$CC
8621old_CFLAGS=$CFLAGS
8622
8623# Set sane defaults for various variables
8624test -z "$CC" && CC=cc
8625test -z "$LTCC" && LTCC=$CC
8626test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8627test -z "$LD" && LD=ld
8628test -z "$ac_objext" && ac_objext=o
8629
8630func_cc_basename $compiler
8631cc_basename=$func_cc_basename_result
8632
8633
8634# Only perform the check for file, if the check method requires it
8635test -z "$MAGIC_CMD" && MAGIC_CMD=file
8636case $deplibs_check_method in
8637file_magic*)
8638  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8640printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8641if test ${lt_cv_path_MAGIC_CMD+y}
8642then :
8643  printf %s "(cached) " >&6
8644else $as_nop
8645  case $MAGIC_CMD in
8646[\\/*] |  ?:[\\/]*)
8647  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8648  ;;
8649*)
8650  lt_save_MAGIC_CMD=$MAGIC_CMD
8651  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8652  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8653  for ac_dir in $ac_dummy; do
8654    IFS=$lt_save_ifs
8655    test -z "$ac_dir" && ac_dir=.
8656    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8657      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8658      if test -n "$file_magic_test_file"; then
8659	case $deplibs_check_method in
8660	"file_magic "*)
8661	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8662	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8663	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8664	    $EGREP "$file_magic_regex" > /dev/null; then
8665	    :
8666	  else
8667	    cat <<_LT_EOF 1>&2
8668
8669*** Warning: the command libtool uses to detect shared libraries,
8670*** $file_magic_cmd, produces output that libtool cannot recognize.
8671*** The result is that libtool may fail to recognize shared libraries
8672*** as such.  This will affect the creation of libtool libraries that
8673*** depend on shared libraries, but programs linked with such libtool
8674*** libraries will work regardless of this problem.  Nevertheless, you
8675*** may want to report the problem to your system manager and/or to
8676*** bug-libtool@gnu.org
8677
8678_LT_EOF
8679	  fi ;;
8680	esac
8681      fi
8682      break
8683    fi
8684  done
8685  IFS=$lt_save_ifs
8686  MAGIC_CMD=$lt_save_MAGIC_CMD
8687  ;;
8688esac
8689fi
8690
8691MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8692if test -n "$MAGIC_CMD"; then
8693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8694printf "%s\n" "$MAGIC_CMD" >&6; }
8695else
8696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697printf "%s\n" "no" >&6; }
8698fi
8699
8700
8701
8702
8703
8704if test -z "$lt_cv_path_MAGIC_CMD"; then
8705  if test -n "$ac_tool_prefix"; then
8706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8707printf %s "checking for file... " >&6; }
8708if test ${lt_cv_path_MAGIC_CMD+y}
8709then :
8710  printf %s "(cached) " >&6
8711else $as_nop
8712  case $MAGIC_CMD in
8713[\\/*] |  ?:[\\/]*)
8714  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8715  ;;
8716*)
8717  lt_save_MAGIC_CMD=$MAGIC_CMD
8718  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8719  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8720  for ac_dir in $ac_dummy; do
8721    IFS=$lt_save_ifs
8722    test -z "$ac_dir" && ac_dir=.
8723    if test -f "$ac_dir/file"; then
8724      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8725      if test -n "$file_magic_test_file"; then
8726	case $deplibs_check_method in
8727	"file_magic "*)
8728	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8729	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8730	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8731	    $EGREP "$file_magic_regex" > /dev/null; then
8732	    :
8733	  else
8734	    cat <<_LT_EOF 1>&2
8735
8736*** Warning: the command libtool uses to detect shared libraries,
8737*** $file_magic_cmd, produces output that libtool cannot recognize.
8738*** The result is that libtool may fail to recognize shared libraries
8739*** as such.  This will affect the creation of libtool libraries that
8740*** depend on shared libraries, but programs linked with such libtool
8741*** libraries will work regardless of this problem.  Nevertheless, you
8742*** may want to report the problem to your system manager and/or to
8743*** bug-libtool@gnu.org
8744
8745_LT_EOF
8746	  fi ;;
8747	esac
8748      fi
8749      break
8750    fi
8751  done
8752  IFS=$lt_save_ifs
8753  MAGIC_CMD=$lt_save_MAGIC_CMD
8754  ;;
8755esac
8756fi
8757
8758MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8759if test -n "$MAGIC_CMD"; then
8760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8761printf "%s\n" "$MAGIC_CMD" >&6; }
8762else
8763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764printf "%s\n" "no" >&6; }
8765fi
8766
8767
8768  else
8769    MAGIC_CMD=:
8770  fi
8771fi
8772
8773  fi
8774  ;;
8775esac
8776
8777# Use C for the default configuration in the libtool script
8778
8779lt_save_CC=$CC
8780ac_ext=c
8781ac_cpp='$CPP $CPPFLAGS'
8782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784ac_compiler_gnu=$ac_cv_c_compiler_gnu
8785
8786
8787# Source file extension for C test sources.
8788ac_ext=c
8789
8790# Object file extension for compiled C test sources.
8791objext=o
8792objext=$objext
8793
8794# Code to be used in simple compile tests
8795lt_simple_compile_test_code="int some_variable = 0;"
8796
8797# Code to be used in simple link tests
8798lt_simple_link_test_code='int main(){return(0);}'
8799
8800
8801
8802
8803
8804
8805
8806# If no C compiler was specified, use CC.
8807LTCC=${LTCC-"$CC"}
8808
8809# If no C compiler flags were specified, use CFLAGS.
8810LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8811
8812# Allow CC to be a program name with arguments.
8813compiler=$CC
8814
8815# Save the default compiler, since it gets overwritten when the other
8816# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8817compiler_DEFAULT=$CC
8818
8819# save warnings/boilerplate of simple test code
8820ac_outfile=conftest.$ac_objext
8821echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8823_lt_compiler_boilerplate=`cat conftest.err`
8824$RM conftest*
8825
8826ac_outfile=conftest.$ac_objext
8827echo "$lt_simple_link_test_code" >conftest.$ac_ext
8828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8829_lt_linker_boilerplate=`cat conftest.err`
8830$RM -r conftest*
8831
8832
8833if test -n "$compiler"; then
8834
8835lt_prog_compiler_no_builtin_flag=
8836
8837if test yes = "$GCC"; then
8838  case $cc_basename in
8839  nvcc*)
8840    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8841  *)
8842    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8843  esac
8844
8845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8846printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8847if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  lt_cv_prog_compiler_rtti_exceptions=no
8852   ac_outfile=conftest.$ac_objext
8853   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8855   # Insert the option either (1) after the last *FLAGS variable, or
8856   # (2) before a word containing "conftest.", or (3) at the end.
8857   # Note that $ac_compile itself does not contain backslashes and begins
8858   # with a dollar sign (not a hyphen), so the echo should work correctly.
8859   # The option is referenced via a variable to avoid confusing sed.
8860   lt_compile=`echo "$ac_compile" | $SED \
8861   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863   -e 's:$: $lt_compiler_flag:'`
8864   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865   (eval "$lt_compile" 2>conftest.err)
8866   ac_status=$?
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   if (exit $ac_status) && test -s "$ac_outfile"; then
8870     # The compiler can only warn and ignore the option if not recognized
8871     # So say no if there are warnings other than the usual output.
8872     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8873     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8875       lt_cv_prog_compiler_rtti_exceptions=yes
8876     fi
8877   fi
8878   $RM conftest*
8879
8880fi
8881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8882printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8883
8884if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8885    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8886else
8887    :
8888fi
8889
8890fi
8891
8892
8893
8894
8895
8896
8897  lt_prog_compiler_wl=
8898lt_prog_compiler_pic=
8899lt_prog_compiler_static=
8900
8901
8902  if test yes = "$GCC"; then
8903    lt_prog_compiler_wl='-Wl,'
8904    lt_prog_compiler_static='-static'
8905
8906    case $host_os in
8907      aix*)
8908      # All AIX code is PIC.
8909      if test ia64 = "$host_cpu"; then
8910	# AIX 5 now supports IA64 processor
8911	lt_prog_compiler_static='-Bstatic'
8912      fi
8913      lt_prog_compiler_pic='-fPIC'
8914      ;;
8915
8916    amigaos*)
8917      case $host_cpu in
8918      powerpc)
8919            # see comment about AmigaOS4 .so support
8920            lt_prog_compiler_pic='-fPIC'
8921        ;;
8922      m68k)
8923            # FIXME: we need at least 68020 code to build shared libraries, but
8924            # adding the '-m68020' flag to GCC prevents building anything better,
8925            # like '-m68040'.
8926            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8927        ;;
8928      esac
8929      ;;
8930
8931    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8932      # PIC is the default for these OSes.
8933      ;;
8934
8935    mingw* | cygwin* | pw32* | os2* | cegcc*)
8936      # This hack is so that the source file can tell whether it is being
8937      # built for inclusion in a dll (and should export symbols for example).
8938      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8939      # (--disable-auto-import) libraries
8940      lt_prog_compiler_pic='-DDLL_EXPORT'
8941      case $host_os in
8942      os2*)
8943	lt_prog_compiler_static='$wl-static'
8944	;;
8945      esac
8946      ;;
8947
8948    darwin* | rhapsody*)
8949      # PIC is the default on this platform
8950      # Common symbols not allowed in MH_DYLIB files
8951      lt_prog_compiler_pic='-fno-common'
8952      ;;
8953
8954    haiku*)
8955      # PIC is the default for Haiku.
8956      # The "-static" flag exists, but is broken.
8957      lt_prog_compiler_static=
8958      ;;
8959
8960    hpux*)
8961      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8962      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8963      # sets the default TLS model and affects inlining.
8964      case $host_cpu in
8965      hppa*64*)
8966	# +Z the default
8967	;;
8968      *)
8969	lt_prog_compiler_pic='-fPIC'
8970	;;
8971      esac
8972      ;;
8973
8974    interix[3-9]*)
8975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8976      # Instead, we relocate shared libraries at runtime.
8977      ;;
8978
8979    msdosdjgpp*)
8980      # Just because we use GCC doesn't mean we suddenly get shared libraries
8981      # on systems that don't support them.
8982      lt_prog_compiler_can_build_shared=no
8983      enable_shared=no
8984      ;;
8985
8986    *nto* | *qnx*)
8987      # QNX uses GNU C++, but need to define -shared option too, otherwise
8988      # it will coredump.
8989      lt_prog_compiler_pic='-fPIC -shared'
8990      ;;
8991
8992    sysv4*MP*)
8993      if test -d /usr/nec; then
8994	lt_prog_compiler_pic=-Kconform_pic
8995      fi
8996      ;;
8997
8998    *)
8999      lt_prog_compiler_pic='-fPIC'
9000      ;;
9001    esac
9002
9003    case $cc_basename in
9004    nvcc*) # Cuda Compiler Driver 2.2
9005      lt_prog_compiler_wl='-Xlinker '
9006      if test -n "$lt_prog_compiler_pic"; then
9007        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9008      fi
9009      ;;
9010    esac
9011  else
9012    # PORTME Check for flag to pass linker flags through the system compiler.
9013    case $host_os in
9014    aix*)
9015      lt_prog_compiler_wl='-Wl,'
9016      if test ia64 = "$host_cpu"; then
9017	# AIX 5 now supports IA64 processor
9018	lt_prog_compiler_static='-Bstatic'
9019      else
9020	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9021      fi
9022      ;;
9023
9024    darwin* | rhapsody*)
9025      # PIC is the default on this platform
9026      # Common symbols not allowed in MH_DYLIB files
9027      lt_prog_compiler_pic='-fno-common'
9028      case $cc_basename in
9029      nagfor*)
9030        # NAG Fortran compiler
9031        lt_prog_compiler_wl='-Wl,-Wl,,'
9032        lt_prog_compiler_pic='-PIC'
9033        lt_prog_compiler_static='-Bstatic'
9034        ;;
9035      esac
9036      ;;
9037
9038    mingw* | cygwin* | pw32* | os2* | cegcc*)
9039      # This hack is so that the source file can tell whether it is being
9040      # built for inclusion in a dll (and should export symbols for example).
9041      lt_prog_compiler_pic='-DDLL_EXPORT'
9042      case $host_os in
9043      os2*)
9044	lt_prog_compiler_static='$wl-static'
9045	;;
9046      esac
9047      ;;
9048
9049    hpux9* | hpux10* | hpux11*)
9050      lt_prog_compiler_wl='-Wl,'
9051      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9052      # not for PA HP-UX.
9053      case $host_cpu in
9054      hppa*64*|ia64*)
9055	# +Z the default
9056	;;
9057      *)
9058	lt_prog_compiler_pic='+Z'
9059	;;
9060      esac
9061      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9062      lt_prog_compiler_static='$wl-a ${wl}archive'
9063      ;;
9064
9065    irix5* | irix6* | nonstopux*)
9066      lt_prog_compiler_wl='-Wl,'
9067      # PIC (with -KPIC) is the default.
9068      lt_prog_compiler_static='-non_shared'
9069      ;;
9070
9071    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9072      case $cc_basename in
9073      # old Intel for x86_64, which still supported -KPIC.
9074      ecc*)
9075	lt_prog_compiler_wl='-Wl,'
9076	lt_prog_compiler_pic='-KPIC'
9077	lt_prog_compiler_static='-static'
9078        ;;
9079      # flang / f18. f95 an alias for gfortran or flang on Debian
9080      flang* | f18* | f95*)
9081	lt_prog_compiler_wl='-Wl,'
9082	lt_prog_compiler_pic='-fPIC'
9083	lt_prog_compiler_static='-static'
9084        ;;
9085      # icc used to be incompatible with GCC.
9086      # ICC 10 doesn't accept -KPIC any more.
9087      icc* | ifort*)
9088	lt_prog_compiler_wl='-Wl,'
9089	lt_prog_compiler_pic='-fPIC'
9090	lt_prog_compiler_static='-static'
9091        ;;
9092      # Lahey Fortran 8.1.
9093      lf95*)
9094	lt_prog_compiler_wl='-Wl,'
9095	lt_prog_compiler_pic='--shared'
9096	lt_prog_compiler_static='--static'
9097	;;
9098      nagfor*)
9099	# NAG Fortran compiler
9100	lt_prog_compiler_wl='-Wl,-Wl,,'
9101	lt_prog_compiler_pic='-PIC'
9102	lt_prog_compiler_static='-Bstatic'
9103	;;
9104      tcc*)
9105	# Fabrice Bellard et al's Tiny C Compiler
9106	lt_prog_compiler_wl='-Wl,'
9107	lt_prog_compiler_pic='-fPIC'
9108	lt_prog_compiler_static='-static'
9109	;;
9110      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9111        # Portland Group compilers (*not* the Pentium gcc compiler,
9112	# which looks to be a dead project)
9113	lt_prog_compiler_wl='-Wl,'
9114	lt_prog_compiler_pic='-fpic'
9115	lt_prog_compiler_static='-Bstatic'
9116        ;;
9117      ccc*)
9118        lt_prog_compiler_wl='-Wl,'
9119        # All Alpha code is PIC.
9120        lt_prog_compiler_static='-non_shared'
9121        ;;
9122      xl* | bgxl* | bgf* | mpixl*)
9123	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9124	lt_prog_compiler_wl='-Wl,'
9125	lt_prog_compiler_pic='-qpic'
9126	lt_prog_compiler_static='-qstaticlink'
9127	;;
9128      *)
9129	case `$CC -V 2>&1 | $SED 5q` in
9130	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9131	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9132	  lt_prog_compiler_pic='-KPIC'
9133	  lt_prog_compiler_static='-Bstatic'
9134	  lt_prog_compiler_wl=''
9135	  ;;
9136	*Sun\ F* | *Sun*Fortran*)
9137	  lt_prog_compiler_pic='-KPIC'
9138	  lt_prog_compiler_static='-Bstatic'
9139	  lt_prog_compiler_wl='-Qoption ld '
9140	  ;;
9141	*Sun\ C*)
9142	  # Sun C 5.9
9143	  lt_prog_compiler_pic='-KPIC'
9144	  lt_prog_compiler_static='-Bstatic'
9145	  lt_prog_compiler_wl='-Wl,'
9146	  ;;
9147        *Intel*\ [CF]*Compiler*)
9148	  lt_prog_compiler_wl='-Wl,'
9149	  lt_prog_compiler_pic='-fPIC'
9150	  lt_prog_compiler_static='-static'
9151	  ;;
9152	*Portland\ Group*)
9153	  lt_prog_compiler_wl='-Wl,'
9154	  lt_prog_compiler_pic='-fpic'
9155	  lt_prog_compiler_static='-Bstatic'
9156	  ;;
9157	esac
9158	;;
9159      esac
9160      ;;
9161
9162    newsos6)
9163      lt_prog_compiler_pic='-KPIC'
9164      lt_prog_compiler_static='-Bstatic'
9165      ;;
9166
9167    *nto* | *qnx*)
9168      # QNX uses GNU C++, but need to define -shared option too, otherwise
9169      # it will coredump.
9170      lt_prog_compiler_pic='-fPIC -shared'
9171      ;;
9172
9173    osf3* | osf4* | osf5*)
9174      lt_prog_compiler_wl='-Wl,'
9175      # All OSF/1 code is PIC.
9176      lt_prog_compiler_static='-non_shared'
9177      ;;
9178
9179    rdos*)
9180      lt_prog_compiler_static='-non_shared'
9181      ;;
9182
9183    solaris*)
9184      lt_prog_compiler_pic='-KPIC'
9185      lt_prog_compiler_static='-Bstatic'
9186      case $cc_basename in
9187      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9188	lt_prog_compiler_wl='-Qoption ld ';;
9189      *)
9190	lt_prog_compiler_wl='-Wl,';;
9191      esac
9192      ;;
9193
9194    sunos4*)
9195      lt_prog_compiler_wl='-Qoption ld '
9196      lt_prog_compiler_pic='-PIC'
9197      lt_prog_compiler_static='-Bstatic'
9198      ;;
9199
9200    sysv4 | sysv4.2uw2* | sysv4.3*)
9201      lt_prog_compiler_wl='-Wl,'
9202      lt_prog_compiler_pic='-KPIC'
9203      lt_prog_compiler_static='-Bstatic'
9204      ;;
9205
9206    sysv4*MP*)
9207      if test -d /usr/nec; then
9208	lt_prog_compiler_pic='-Kconform_pic'
9209	lt_prog_compiler_static='-Bstatic'
9210      fi
9211      ;;
9212
9213    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9214      lt_prog_compiler_wl='-Wl,'
9215      lt_prog_compiler_pic='-KPIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    unicos*)
9220      lt_prog_compiler_wl='-Wl,'
9221      lt_prog_compiler_can_build_shared=no
9222      ;;
9223
9224    uts4*)
9225      lt_prog_compiler_pic='-pic'
9226      lt_prog_compiler_static='-Bstatic'
9227      ;;
9228
9229    *)
9230      lt_prog_compiler_can_build_shared=no
9231      ;;
9232    esac
9233  fi
9234
9235case $host_os in
9236  # For platforms that do not support PIC, -DPIC is meaningless:
9237  *djgpp*)
9238    lt_prog_compiler_pic=
9239    ;;
9240  *)
9241    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9242    ;;
9243esac
9244
9245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9246printf %s "checking for $compiler option to produce PIC... " >&6; }
9247if test ${lt_cv_prog_compiler_pic+y}
9248then :
9249  printf %s "(cached) " >&6
9250else $as_nop
9251  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9252fi
9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9254printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9255lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9256
9257#
9258# Check to make sure the PIC flag actually works.
9259#
9260if test -n "$lt_prog_compiler_pic"; then
9261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9262printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9263if test ${lt_cv_prog_compiler_pic_works+y}
9264then :
9265  printf %s "(cached) " >&6
9266else $as_nop
9267  lt_cv_prog_compiler_pic_works=no
9268   ac_outfile=conftest.$ac_objext
9269   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9270   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9271   # Insert the option either (1) after the last *FLAGS variable, or
9272   # (2) before a word containing "conftest.", or (3) at the end.
9273   # Note that $ac_compile itself does not contain backslashes and begins
9274   # with a dollar sign (not a hyphen), so the echo should work correctly.
9275   # The option is referenced via a variable to avoid confusing sed.
9276   lt_compile=`echo "$ac_compile" | $SED \
9277   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279   -e 's:$: $lt_compiler_flag:'`
9280   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9281   (eval "$lt_compile" 2>conftest.err)
9282   ac_status=$?
9283   cat conftest.err >&5
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   if (exit $ac_status) && test -s "$ac_outfile"; then
9286     # The compiler can only warn and ignore the option if not recognized
9287     # So say no if there are warnings other than the usual output.
9288     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9289     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9290     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9291       lt_cv_prog_compiler_pic_works=yes
9292     fi
9293   fi
9294   $RM conftest*
9295
9296fi
9297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9298printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9299
9300if test yes = "$lt_cv_prog_compiler_pic_works"; then
9301    case $lt_prog_compiler_pic in
9302     "" | " "*) ;;
9303     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9304     esac
9305else
9306    lt_prog_compiler_pic=
9307     lt_prog_compiler_can_build_shared=no
9308fi
9309
9310fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322#
9323# Check to make sure the static flag actually works.
9324#
9325wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9327printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9328if test ${lt_cv_prog_compiler_static_works+y}
9329then :
9330  printf %s "(cached) " >&6
9331else $as_nop
9332  lt_cv_prog_compiler_static_works=no
9333   save_LDFLAGS=$LDFLAGS
9334   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9335   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9336   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9337     # The linker can only warn and ignore the option if not recognized
9338     # So say no if there are warnings
9339     if test -s conftest.err; then
9340       # Append any errors to the config.log.
9341       cat conftest.err 1>&5
9342       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9343       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344       if diff conftest.exp conftest.er2 >/dev/null; then
9345         lt_cv_prog_compiler_static_works=yes
9346       fi
9347     else
9348       lt_cv_prog_compiler_static_works=yes
9349     fi
9350   fi
9351   $RM -r conftest*
9352   LDFLAGS=$save_LDFLAGS
9353
9354fi
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9356printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9357
9358if test yes = "$lt_cv_prog_compiler_static_works"; then
9359    :
9360else
9361    lt_prog_compiler_static=
9362fi
9363
9364
9365
9366
9367
9368
9369
9370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9371printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9372if test ${lt_cv_prog_compiler_c_o+y}
9373then :
9374  printf %s "(cached) " >&6
9375else $as_nop
9376  lt_cv_prog_compiler_c_o=no
9377   $RM -r conftest 2>/dev/null
9378   mkdir conftest
9379   cd conftest
9380   mkdir out
9381   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9382
9383   lt_compiler_flag="-o out/conftest2.$ac_objext"
9384   # Insert the option either (1) after the last *FLAGS variable, or
9385   # (2) before a word containing "conftest.", or (3) at the end.
9386   # Note that $ac_compile itself does not contain backslashes and begins
9387   # with a dollar sign (not a hyphen), so the echo should work correctly.
9388   lt_compile=`echo "$ac_compile" | $SED \
9389   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9390   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9391   -e 's:$: $lt_compiler_flag:'`
9392   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9393   (eval "$lt_compile" 2>out/conftest.err)
9394   ac_status=$?
9395   cat out/conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9398   then
9399     # The compiler can only warn and ignore the option if not recognized
9400     # So say no if there are warnings
9401     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9402     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9403     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9404       lt_cv_prog_compiler_c_o=yes
9405     fi
9406   fi
9407   chmod u+w . 2>&5
9408   $RM conftest*
9409   # SGI C++ compiler will create directory out/ii_files/ for
9410   # template instantiation
9411   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9412   $RM out/* && rmdir out
9413   cd ..
9414   $RM -r conftest
9415   $RM conftest*
9416
9417fi
9418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9419printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9420
9421
9422
9423
9424
9425
9426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9427printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9428if test ${lt_cv_prog_compiler_c_o+y}
9429then :
9430  printf %s "(cached) " >&6
9431else $as_nop
9432  lt_cv_prog_compiler_c_o=no
9433   $RM -r conftest 2>/dev/null
9434   mkdir conftest
9435   cd conftest
9436   mkdir out
9437   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9438
9439   lt_compiler_flag="-o out/conftest2.$ac_objext"
9440   # Insert the option either (1) after the last *FLAGS variable, or
9441   # (2) before a word containing "conftest.", or (3) at the end.
9442   # Note that $ac_compile itself does not contain backslashes and begins
9443   # with a dollar sign (not a hyphen), so the echo should work correctly.
9444   lt_compile=`echo "$ac_compile" | $SED \
9445   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9447   -e 's:$: $lt_compiler_flag:'`
9448   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9449   (eval "$lt_compile" 2>out/conftest.err)
9450   ac_status=$?
9451   cat out/conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9454   then
9455     # The compiler can only warn and ignore the option if not recognized
9456     # So say no if there are warnings
9457     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9458     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9459     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9460       lt_cv_prog_compiler_c_o=yes
9461     fi
9462   fi
9463   chmod u+w . 2>&5
9464   $RM conftest*
9465   # SGI C++ compiler will create directory out/ii_files/ for
9466   # template instantiation
9467   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9468   $RM out/* && rmdir out
9469   cd ..
9470   $RM -r conftest
9471   $RM conftest*
9472
9473fi
9474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9475printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9476
9477
9478
9479
9480hard_links=nottested
9481if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9482  # do not overwrite the value of need_locks provided by the user
9483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9484printf %s "checking if we can lock with hard links... " >&6; }
9485  hard_links=yes
9486  $RM conftest*
9487  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9488  touch conftest.a
9489  ln conftest.a conftest.b 2>&5 || hard_links=no
9490  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9492printf "%s\n" "$hard_links" >&6; }
9493  if test no = "$hard_links"; then
9494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9495printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9496    need_locks=warn
9497  fi
9498else
9499  need_locks=no
9500fi
9501
9502
9503
9504
9505
9506
9507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9508printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9509
9510  runpath_var=
9511  allow_undefined_flag=
9512  always_export_symbols=no
9513  archive_cmds=
9514  archive_expsym_cmds=
9515  compiler_needs_object=no
9516  enable_shared_with_static_runtimes=no
9517  export_dynamic_flag_spec=
9518  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9519  hardcode_automatic=no
9520  hardcode_direct=no
9521  hardcode_direct_absolute=no
9522  hardcode_libdir_flag_spec=
9523  hardcode_libdir_separator=
9524  hardcode_minus_L=no
9525  hardcode_shlibpath_var=unsupported
9526  inherit_rpath=no
9527  link_all_deplibs=unknown
9528  module_cmds=
9529  module_expsym_cmds=
9530  old_archive_from_new_cmds=
9531  old_archive_from_expsyms_cmds=
9532  thread_safe_flag_spec=
9533  whole_archive_flag_spec=
9534  # include_expsyms should be a list of space-separated symbols to be *always*
9535  # included in the symbol list
9536  include_expsyms=
9537  # exclude_expsyms can be an extended regexp of symbols to exclude
9538  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9539  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9540  # as well as any symbol that contains 'd'.
9541  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9542  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9543  # platforms (ab)use it in PIC code, but their linkers get confused if
9544  # the symbol is explicitly referenced.  Since portable code cannot
9545  # rely on this symbol name, it's probably fine to never include it in
9546  # preloaded symbol tables.
9547  # Exclude shared library initialization/finalization symbols.
9548  extract_expsyms_cmds=
9549
9550  case $host_os in
9551  cygwin* | mingw* | pw32* | cegcc*)
9552    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9553    # When not using gcc, we currently assume that we are using
9554    # Microsoft Visual C++ or Intel C++ Compiler.
9555    if test yes != "$GCC"; then
9556      with_gnu_ld=no
9557    fi
9558    ;;
9559  interix*)
9560    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9561    with_gnu_ld=yes
9562    ;;
9563  openbsd* | bitrig*)
9564    with_gnu_ld=no
9565    ;;
9566  linux* | k*bsd*-gnu | gnu*)
9567    link_all_deplibs=no
9568    ;;
9569  esac
9570
9571  ld_shlibs=yes
9572
9573  # On some targets, GNU ld is compatible enough with the native linker
9574  # that we're better off using the native interface for both.
9575  lt_use_gnu_ld_interface=no
9576  if test yes = "$with_gnu_ld"; then
9577    case $host_os in
9578      aix*)
9579	# The AIX port of GNU ld has always aspired to compatibility
9580	# with the native linker.  However, as the warning in the GNU ld
9581	# block says, versions before 2.19.5* couldn't really create working
9582	# shared libraries, regardless of the interface used.
9583	case `$LD -v 2>&1` in
9584	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9585	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9586	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9587	  *)
9588	    lt_use_gnu_ld_interface=yes
9589	    ;;
9590	esac
9591	;;
9592      *)
9593	lt_use_gnu_ld_interface=yes
9594	;;
9595    esac
9596  fi
9597
9598  if test yes = "$lt_use_gnu_ld_interface"; then
9599    # If archive_cmds runs LD, not CC, wlarc should be empty
9600    wlarc='$wl'
9601
9602    # Set some defaults for GNU ld with shared library support. These
9603    # are reset later if shared libraries are not supported. Putting them
9604    # here allows them to be overridden if necessary.
9605    runpath_var=LD_RUN_PATH
9606    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9607    export_dynamic_flag_spec='$wl--export-dynamic'
9608    # ancient GNU ld didn't support --whole-archive et. al.
9609    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9610      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9611    else
9612      whole_archive_flag_spec=
9613    fi
9614    supports_anon_versioning=no
9615    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9616      *GNU\ gold*) supports_anon_versioning=yes ;;
9617      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9618      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9619      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9620      *\ 2.11.*) ;; # other 2.11 versions
9621      *) supports_anon_versioning=yes ;;
9622    esac
9623
9624    # See if GNU ld supports shared libraries.
9625    case $host_os in
9626    aix[3-9]*)
9627      # On AIX/PPC, the GNU linker is very broken
9628      if test ia64 != "$host_cpu"; then
9629	ld_shlibs=no
9630	cat <<_LT_EOF 1>&2
9631
9632*** Warning: the GNU linker, at least up to release 2.19, is reported
9633*** to be unable to reliably create shared libraries on AIX.
9634*** Therefore, libtool is disabling shared libraries support.  If you
9635*** really care for shared libraries, you may want to install binutils
9636*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9637*** You will then need to restart the configuration process.
9638
9639_LT_EOF
9640      fi
9641      ;;
9642
9643    amigaos*)
9644      case $host_cpu in
9645      powerpc)
9646            # see comment about AmigaOS4 .so support
9647            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9648            archive_expsym_cmds=''
9649        ;;
9650      m68k)
9651            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)'
9652            hardcode_libdir_flag_spec='-L$libdir'
9653            hardcode_minus_L=yes
9654        ;;
9655      esac
9656      ;;
9657
9658    beos*)
9659      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660	allow_undefined_flag=unsupported
9661	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9662	# support --undefined.  This deserves some investigation.  FIXME
9663	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9664      else
9665	ld_shlibs=no
9666      fi
9667      ;;
9668
9669    cygwin* | mingw* | pw32* | cegcc*)
9670      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9671      # as there is no search path for DLLs.
9672      hardcode_libdir_flag_spec='-L$libdir'
9673      export_dynamic_flag_spec='$wl--export-all-symbols'
9674      allow_undefined_flag=unsupported
9675      always_export_symbols=no
9676      enable_shared_with_static_runtimes=yes
9677      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'
9678      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9679
9680      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9681        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9682	# If the export-symbols file already is a .def file, use it as
9683	# is; otherwise, prepend EXPORTS...
9684	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9685          cp $export_symbols $output_objdir/$soname.def;
9686        else
9687          echo EXPORTS > $output_objdir/$soname.def;
9688          cat $export_symbols >> $output_objdir/$soname.def;
9689        fi~
9690        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9691      else
9692	ld_shlibs=no
9693      fi
9694      ;;
9695
9696    haiku*)
9697      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698      link_all_deplibs=yes
9699      ;;
9700
9701    os2*)
9702      hardcode_libdir_flag_spec='-L$libdir'
9703      hardcode_minus_L=yes
9704      allow_undefined_flag=unsupported
9705      shrext_cmds=.dll
9706      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9707	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9708	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9709	$ECHO EXPORTS >> $output_objdir/$libname.def~
9710	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9711	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9712	emximp -o $lib $output_objdir/$libname.def'
9713      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9714	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9715	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9716	$ECHO EXPORTS >> $output_objdir/$libname.def~
9717	prefix_cmds="$SED"~
9718	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9719	  prefix_cmds="$prefix_cmds -e 1d";
9720	fi~
9721	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9722	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9723	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9724	emximp -o $lib $output_objdir/$libname.def'
9725      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9726      enable_shared_with_static_runtimes=yes
9727      file_list_spec='@'
9728      ;;
9729
9730    interix[3-9]*)
9731      hardcode_direct=no
9732      hardcode_shlibpath_var=no
9733      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9734      export_dynamic_flag_spec='$wl-E'
9735      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9736      # Instead, shared libraries are loaded at an image base (0x10000000 by
9737      # default) and relocated if they conflict, which is a slow very memory
9738      # consuming and fragmenting process.  To avoid this, we pick a random,
9739      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9740      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9741      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9742      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'
9743      ;;
9744
9745    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9746      tmp_diet=no
9747      if test linux-dietlibc = "$host_os"; then
9748	case $cc_basename in
9749	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9750	esac
9751      fi
9752      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9753	 && test no = "$tmp_diet"
9754      then
9755	tmp_addflag=' $pic_flag'
9756	tmp_sharedflag='-shared'
9757	case $cc_basename,$host_cpu in
9758        pgcc*)				# Portland Group C compiler
9759	  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'
9760	  tmp_addflag=' $pic_flag'
9761	  ;;
9762	pgf77* | pgf90* | pgf95* | pgfortran*)
9763					# Portland Group f77 and f90 compilers
9764	  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'
9765	  tmp_addflag=' $pic_flag -Mnomain' ;;
9766	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9767	  tmp_addflag=' -i_dynamic' ;;
9768	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9769	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9770	ifc* | ifort*)			# Intel Fortran compiler
9771	  tmp_addflag=' -nofor_main' ;;
9772	lf95*)				# Lahey Fortran 8.1
9773	  whole_archive_flag_spec=
9774	  tmp_sharedflag='--shared' ;;
9775        nagfor*)                        # NAGFOR 5.3
9776          tmp_sharedflag='-Wl,-shared' ;;
9777	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9778	  tmp_sharedflag='-qmkshrobj'
9779	  tmp_addflag= ;;
9780	nvcc*)	# Cuda Compiler Driver 2.2
9781	  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'
9782	  compiler_needs_object=yes
9783	  ;;
9784	esac
9785	case `$CC -V 2>&1 | $SED 5q` in
9786	*Sun\ C*)			# Sun C 5.9
9787	  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'
9788	  compiler_needs_object=yes
9789	  tmp_sharedflag='-G' ;;
9790	*Sun\ F*)			# Sun Fortran 8.3
9791	  tmp_sharedflag='-G' ;;
9792	esac
9793	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9794
9795        if test yes = "$supports_anon_versioning"; then
9796          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9797            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9798            echo "local: *; };" >> $output_objdir/$libname.ver~
9799            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9800        fi
9801
9802	case $cc_basename in
9803	tcc*)
9804	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9805	  export_dynamic_flag_spec='-rdynamic'
9806	  ;;
9807	xlf* | bgf* | bgxlf* | mpixlf*)
9808	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9809	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9810	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9811	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9812	  if test yes = "$supports_anon_versioning"; then
9813	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9814              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9815              echo "local: *; };" >> $output_objdir/$libname.ver~
9816              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9817	  fi
9818	  ;;
9819	esac
9820      else
9821        ld_shlibs=no
9822      fi
9823      ;;
9824
9825    netbsd* | netbsdelf*-gnu)
9826      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9827	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9828	wlarc=
9829      else
9830	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9831	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9832      fi
9833      ;;
9834
9835    solaris*)
9836      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9837	ld_shlibs=no
9838	cat <<_LT_EOF 1>&2
9839
9840*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9841*** create shared libraries on Solaris systems.  Therefore, libtool
9842*** is disabling shared libraries support.  We urge you to upgrade GNU
9843*** binutils to release 2.9.1 or newer.  Another option is to modify
9844*** your PATH or compiler configuration so that the native linker is
9845*** used, and then restart.
9846
9847_LT_EOF
9848      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9849	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9850	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9851      else
9852	ld_shlibs=no
9853      fi
9854      ;;
9855
9856    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9857      case `$LD -v 2>&1` in
9858        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9859	ld_shlibs=no
9860	cat <<_LT_EOF 1>&2
9861
9862*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9863*** reliably create shared libraries on SCO systems.  Therefore, libtool
9864*** is disabling shared libraries support.  We urge you to upgrade GNU
9865*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9866*** your PATH or compiler configuration so that the native linker is
9867*** used, and then restart.
9868
9869_LT_EOF
9870	;;
9871	*)
9872	  # For security reasons, it is highly recommended that you always
9873	  # use absolute paths for naming shared libraries, and exclude the
9874	  # DT_RUNPATH tag from executables and libraries.  But doing so
9875	  # requires that you compile everything twice, which is a pain.
9876	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9877	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9878	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880	  else
9881	    ld_shlibs=no
9882	  fi
9883	;;
9884      esac
9885      ;;
9886
9887    sunos4*)
9888      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9889      wlarc=
9890      hardcode_direct=yes
9891      hardcode_shlibpath_var=no
9892      ;;
9893
9894    *)
9895      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9896	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9897	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9898      else
9899	ld_shlibs=no
9900      fi
9901      ;;
9902    esac
9903
9904    if test no = "$ld_shlibs"; then
9905      runpath_var=
9906      hardcode_libdir_flag_spec=
9907      export_dynamic_flag_spec=
9908      whole_archive_flag_spec=
9909    fi
9910  else
9911    # PORTME fill in a description of your system's linker (not GNU ld)
9912    case $host_os in
9913    aix3*)
9914      allow_undefined_flag=unsupported
9915      always_export_symbols=yes
9916      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'
9917      # Note: this linker hardcodes the directories in LIBPATH if there
9918      # are no directories specified by -L.
9919      hardcode_minus_L=yes
9920      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9921	# Neither direct hardcoding nor static linking is supported with a
9922	# broken collect2.
9923	hardcode_direct=unsupported
9924      fi
9925      ;;
9926
9927    aix[4-9]*)
9928      if test ia64 = "$host_cpu"; then
9929	# On IA64, the linker does run time linking by default, so we don't
9930	# have to do anything special.
9931	aix_use_runtimelinking=no
9932	exp_sym_flag='-Bexport'
9933	no_entry_flag=
9934      else
9935	# If we're using GNU nm, then we don't want the "-C" option.
9936	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9937	# Without the "-l" option, or with the "-B" option, AIX nm treats
9938	# weak defined symbols like other global defined symbols, whereas
9939	# GNU nm marks them as "W".
9940	# While the 'weak' keyword is ignored in the Export File, we need
9941	# it in the Import File for the 'aix-soname' feature, so we have
9942	# to replace the "-B" option with "-P" for AIX nm.
9943	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9944	  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'
9945	else
9946	  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'
9947	fi
9948	aix_use_runtimelinking=no
9949
9950	# Test if we are trying to use run time linking or normal
9951	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9952	# have runtime linking enabled, and use it for executables.
9953	# For shared libraries, we enable/disable runtime linking
9954	# depending on the kind of the shared library created -
9955	# when "with_aix_soname,aix_use_runtimelinking" is:
9956	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9957	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9958	#            lib.a           static archive
9959	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9960	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9961	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9962	#            lib.a(lib.so.V) shared, rtl:no
9963	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9964	#            lib.a           static archive
9965	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9966	  for ld_flag in $LDFLAGS; do
9967	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9968	    aix_use_runtimelinking=yes
9969	    break
9970	  fi
9971	  done
9972	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9973	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9974	    # so we don't have lib.a shared libs to link our executables.
9975	    # We have to force runtime linking in this case.
9976	    aix_use_runtimelinking=yes
9977	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9978	  fi
9979	  ;;
9980	esac
9981
9982	exp_sym_flag='-bexport'
9983	no_entry_flag='-bnoentry'
9984      fi
9985
9986      # When large executables or shared objects are built, AIX ld can
9987      # have problems creating the table of contents.  If linking a library
9988      # or program results in "error TOC overflow" add -mminimal-toc to
9989      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9990      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9991
9992      archive_cmds=''
9993      hardcode_direct=yes
9994      hardcode_direct_absolute=yes
9995      hardcode_libdir_separator=':'
9996      link_all_deplibs=yes
9997      file_list_spec='$wl-f,'
9998      case $with_aix_soname,$aix_use_runtimelinking in
9999      aix,*) ;; # traditional, no import file
10000      svr4,* | *,yes) # use import file
10001	# The Import File defines what to hardcode.
10002	hardcode_direct=no
10003	hardcode_direct_absolute=no
10004	;;
10005      esac
10006
10007      if test yes = "$GCC"; then
10008	case $host_os in aix4.[012]|aix4.[012].*)
10009	# We only want to do this on AIX 4.2 and lower, the check
10010	# below for broken collect2 doesn't work under 4.3+
10011	  collect2name=`$CC -print-prog-name=collect2`
10012	  if test -f "$collect2name" &&
10013	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10014	  then
10015	  # We have reworked collect2
10016	  :
10017	  else
10018	  # We have old collect2
10019	  hardcode_direct=unsupported
10020	  # It fails to find uninstalled libraries when the uninstalled
10021	  # path is not listed in the libpath.  Setting hardcode_minus_L
10022	  # to unsupported forces relinking
10023	  hardcode_minus_L=yes
10024	  hardcode_libdir_flag_spec='-L$libdir'
10025	  hardcode_libdir_separator=
10026	  fi
10027	  ;;
10028	esac
10029	shared_flag='-shared'
10030	if test yes = "$aix_use_runtimelinking"; then
10031	  shared_flag="$shared_flag "'$wl-G'
10032	fi
10033	# Need to ensure runtime linking is disabled for the traditional
10034	# shared library, or the linker may eventually find shared libraries
10035	# /with/ Import File - we do not want to mix them.
10036	shared_flag_aix='-shared'
10037	shared_flag_svr4='-shared $wl-G'
10038      else
10039	# not using gcc
10040	if test ia64 = "$host_cpu"; then
10041	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10042	# chokes on -Wl,-G. The following line is correct:
10043	  shared_flag='-G'
10044	else
10045	  if test yes = "$aix_use_runtimelinking"; then
10046	    shared_flag='$wl-G'
10047	  else
10048	    shared_flag='$wl-bM:SRE'
10049	  fi
10050	  shared_flag_aix='$wl-bM:SRE'
10051	  shared_flag_svr4='$wl-G'
10052	fi
10053      fi
10054
10055      export_dynamic_flag_spec='$wl-bexpall'
10056      # It seems that -bexpall does not export symbols beginning with
10057      # underscore (_), so it is better to generate a list of symbols to export.
10058      always_export_symbols=yes
10059      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10060	# Warning - without using the other runtime loading flags (-brtl),
10061	# -berok will link without error, but may produce a broken library.
10062	allow_undefined_flag='-berok'
10063        # Determine the default libpath from the value encoded in an
10064        # empty executable.
10065        if test set = "${lt_cv_aix_libpath+set}"; then
10066  aix_libpath=$lt_cv_aix_libpath
10067else
10068  if test ${lt_cv_aix_libpath_+y}
10069then :
10070  printf %s "(cached) " >&6
10071else $as_nop
10072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h.  */
10074
10075int
10076main (void)
10077{
10078
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083if ac_fn_c_try_link "$LINENO"
10084then :
10085
10086  lt_aix_libpath_sed='
10087      /Import File Strings/,/^$/ {
10088	  /^0/ {
10089	      s/^0  *\([^ ]*\) *$/\1/
10090	      p
10091	  }
10092      }'
10093  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10094  # Check for a 64-bit object if we didn't find anything.
10095  if test -z "$lt_cv_aix_libpath_"; then
10096    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10097  fi
10098fi
10099rm -f core conftest.err conftest.$ac_objext conftest.beam \
10100    conftest$ac_exeext conftest.$ac_ext
10101  if test -z "$lt_cv_aix_libpath_"; then
10102    lt_cv_aix_libpath_=/usr/lib:/lib
10103  fi
10104
10105fi
10106
10107  aix_libpath=$lt_cv_aix_libpath_
10108fi
10109
10110        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10111        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
10112      else
10113	if test ia64 = "$host_cpu"; then
10114	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10115	  allow_undefined_flag="-z nodefs"
10116	  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"
10117	else
10118	 # Determine the default libpath from the value encoded in an
10119	 # empty executable.
10120	 if test set = "${lt_cv_aix_libpath+set}"; then
10121  aix_libpath=$lt_cv_aix_libpath
10122else
10123  if test ${lt_cv_aix_libpath_+y}
10124then :
10125  printf %s "(cached) " >&6
10126else $as_nop
10127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128/* end confdefs.h.  */
10129
10130int
10131main (void)
10132{
10133
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"
10139then :
10140
10141  lt_aix_libpath_sed='
10142      /Import File Strings/,/^$/ {
10143	  /^0/ {
10144	      s/^0  *\([^ ]*\) *$/\1/
10145	      p
10146	  }
10147      }'
10148  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149  # Check for a 64-bit object if we didn't find anything.
10150  if test -z "$lt_cv_aix_libpath_"; then
10151    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152  fi
10153fi
10154rm -f core conftest.err conftest.$ac_objext conftest.beam \
10155    conftest$ac_exeext conftest.$ac_ext
10156  if test -z "$lt_cv_aix_libpath_"; then
10157    lt_cv_aix_libpath_=/usr/lib:/lib
10158  fi
10159
10160fi
10161
10162  aix_libpath=$lt_cv_aix_libpath_
10163fi
10164
10165	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10166	  # Warning - without using the other run time loading flags,
10167	  # -berok will link without error, but may produce a broken library.
10168	  no_undefined_flag=' $wl-bernotok'
10169	  allow_undefined_flag=' $wl-berok'
10170	  if test yes = "$with_gnu_ld"; then
10171	    # We only use this code for GNU lds that support --whole-archive.
10172	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10173	  else
10174	    # Exported symbols can be pulled into shared objects from archives
10175	    whole_archive_flag_spec='$convenience'
10176	  fi
10177	  archive_cmds_need_lc=yes
10178	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10179	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10180	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10181	  if test svr4 != "$with_aix_soname"; then
10182	    # This is similar to how AIX traditionally builds its shared libraries.
10183	    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'
10184	  fi
10185	  if test aix != "$with_aix_soname"; then
10186	    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'
10187	  else
10188	    # used by -dlpreopen to get the symbols
10189	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10190	  fi
10191	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10192	fi
10193      fi
10194      ;;
10195
10196    amigaos*)
10197      case $host_cpu in
10198      powerpc)
10199            # see comment about AmigaOS4 .so support
10200            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10201            archive_expsym_cmds=''
10202        ;;
10203      m68k)
10204            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)'
10205            hardcode_libdir_flag_spec='-L$libdir'
10206            hardcode_minus_L=yes
10207        ;;
10208      esac
10209      ;;
10210
10211    bsdi[45]*)
10212      export_dynamic_flag_spec=-rdynamic
10213      ;;
10214
10215    cygwin* | mingw* | pw32* | cegcc*)
10216      # When not using gcc, we currently assume that we are using
10217      # Microsoft Visual C++ or Intel C++ Compiler.
10218      # hardcode_libdir_flag_spec is actually meaningless, as there is
10219      # no search path for DLLs.
10220      case $cc_basename in
10221      cl* | icl*)
10222	# Native MSVC or ICC
10223	hardcode_libdir_flag_spec=' '
10224	allow_undefined_flag=unsupported
10225	always_export_symbols=yes
10226	file_list_spec='@'
10227	# Tell ltmain to make .lib files, not .a files.
10228	libext=lib
10229	# Tell ltmain to make .dll files, not .so files.
10230	shrext_cmds=.dll
10231	# FIXME: Setting linknames here is a bad hack.
10232	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10233	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10234            cp "$export_symbols" "$output_objdir/$soname.def";
10235            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10236          else
10237            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10238          fi~
10239          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10240          linknames='
10241	# The linker will not automatically build a static lib if we build a DLL.
10242	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10243	enable_shared_with_static_runtimes=yes
10244	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10245	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10246	# Don't use ranlib
10247	old_postinstall_cmds='chmod 644 $oldlib'
10248	postlink_cmds='lt_outputfile="@OUTPUT@"~
10249          lt_tool_outputfile="@TOOL_OUTPUT@"~
10250          case $lt_outputfile in
10251            *.exe|*.EXE) ;;
10252            *)
10253              lt_outputfile=$lt_outputfile.exe
10254              lt_tool_outputfile=$lt_tool_outputfile.exe
10255              ;;
10256          esac~
10257          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10258            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10259            $RM "$lt_outputfile.manifest";
10260          fi'
10261	;;
10262      *)
10263	# Assume MSVC and ICC wrapper
10264	hardcode_libdir_flag_spec=' '
10265	allow_undefined_flag=unsupported
10266	# Tell ltmain to make .lib files, not .a files.
10267	libext=lib
10268	# Tell ltmain to make .dll files, not .so files.
10269	shrext_cmds=.dll
10270	# FIXME: Setting linknames here is a bad hack.
10271	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10272	# The linker will automatically build a .lib file if we build a DLL.
10273	old_archive_from_new_cmds='true'
10274	# FIXME: Should let the user specify the lib program.
10275	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10276	enable_shared_with_static_runtimes=yes
10277	;;
10278      esac
10279      ;;
10280
10281    darwin* | rhapsody*)
10282
10283
10284  archive_cmds_need_lc=no
10285  hardcode_direct=no
10286  hardcode_automatic=yes
10287  hardcode_shlibpath_var=unsupported
10288  if test yes = "$lt_cv_ld_force_load"; then
10289    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\"`'
10290
10291  else
10292    whole_archive_flag_spec=''
10293  fi
10294  link_all_deplibs=yes
10295  allow_undefined_flag=$_lt_dar_allow_undefined
10296  case $cc_basename in
10297     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10298     *) _lt_dar_can_shared=$GCC ;;
10299  esac
10300  if test yes = "$_lt_dar_can_shared"; then
10301    output_verbose_link_cmd=func_echo_all
10302    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10303    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10304    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"
10305    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"
10306
10307  else
10308  ld_shlibs=no
10309  fi
10310
10311      ;;
10312
10313    dgux*)
10314      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315      hardcode_libdir_flag_spec='-L$libdir'
10316      hardcode_shlibpath_var=no
10317      ;;
10318
10319    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10320    # support.  Future versions do this automatically, but an explicit c++rt0.o
10321    # does not break anything, and helps significantly (at the cost of a little
10322    # extra space).
10323    freebsd2.2*)
10324      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10325      hardcode_libdir_flag_spec='-R$libdir'
10326      hardcode_direct=yes
10327      hardcode_shlibpath_var=no
10328      ;;
10329
10330    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10331    freebsd2.*)
10332      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10333      hardcode_direct=yes
10334      hardcode_minus_L=yes
10335      hardcode_shlibpath_var=no
10336      ;;
10337
10338    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10339    freebsd* | dragonfly* | midnightbsd*)
10340      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10341      hardcode_libdir_flag_spec='-R$libdir'
10342      hardcode_direct=yes
10343      hardcode_shlibpath_var=no
10344      ;;
10345
10346    hpux9*)
10347      if test yes = "$GCC"; then
10348	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'
10349      else
10350	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'
10351      fi
10352      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10353      hardcode_libdir_separator=:
10354      hardcode_direct=yes
10355
10356      # hardcode_minus_L: Not really in the search PATH,
10357      # but as the default location of the library.
10358      hardcode_minus_L=yes
10359      export_dynamic_flag_spec='$wl-E'
10360      ;;
10361
10362    hpux10*)
10363      if test yes,no = "$GCC,$with_gnu_ld"; then
10364	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10365      else
10366	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10367      fi
10368      if test no = "$with_gnu_ld"; then
10369	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10370	hardcode_libdir_separator=:
10371	hardcode_direct=yes
10372	hardcode_direct_absolute=yes
10373	export_dynamic_flag_spec='$wl-E'
10374	# hardcode_minus_L: Not really in the search PATH,
10375	# but as the default location of the library.
10376	hardcode_minus_L=yes
10377      fi
10378      ;;
10379
10380    hpux11*)
10381      if test yes,no = "$GCC,$with_gnu_ld"; then
10382	case $host_cpu in
10383	hppa*64*)
10384	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10385	  ;;
10386	ia64*)
10387	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10388	  ;;
10389	*)
10390	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391	  ;;
10392	esac
10393      else
10394	case $host_cpu in
10395	hppa*64*)
10396	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10397	  ;;
10398	ia64*)
10399	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10400	  ;;
10401	*)
10402
10403	  # Older versions of the 11.00 compiler do not understand -b yet
10404	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10405	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10406printf %s "checking if $CC understands -b... " >&6; }
10407if test ${lt_cv_prog_compiler__b+y}
10408then :
10409  printf %s "(cached) " >&6
10410else $as_nop
10411  lt_cv_prog_compiler__b=no
10412   save_LDFLAGS=$LDFLAGS
10413   LDFLAGS="$LDFLAGS -b"
10414   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10415   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10416     # The linker can only warn and ignore the option if not recognized
10417     # So say no if there are warnings
10418     if test -s conftest.err; then
10419       # Append any errors to the config.log.
10420       cat conftest.err 1>&5
10421       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10422       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10423       if diff conftest.exp conftest.er2 >/dev/null; then
10424         lt_cv_prog_compiler__b=yes
10425       fi
10426     else
10427       lt_cv_prog_compiler__b=yes
10428     fi
10429   fi
10430   $RM -r conftest*
10431   LDFLAGS=$save_LDFLAGS
10432
10433fi
10434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10435printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10436
10437if test yes = "$lt_cv_prog_compiler__b"; then
10438    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10439else
10440    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10441fi
10442
10443	  ;;
10444	esac
10445      fi
10446      if test no = "$with_gnu_ld"; then
10447	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10448	hardcode_libdir_separator=:
10449
10450	case $host_cpu in
10451	hppa*64*|ia64*)
10452	  hardcode_direct=no
10453	  hardcode_shlibpath_var=no
10454	  ;;
10455	*)
10456	  hardcode_direct=yes
10457	  hardcode_direct_absolute=yes
10458	  export_dynamic_flag_spec='$wl-E'
10459
10460	  # hardcode_minus_L: Not really in the search PATH,
10461	  # but as the default location of the library.
10462	  hardcode_minus_L=yes
10463	  ;;
10464	esac
10465      fi
10466      ;;
10467
10468    irix5* | irix6* | nonstopux*)
10469      if test yes = "$GCC"; then
10470	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'
10471	# Try to use the -exported_symbol ld option, if it does not
10472	# work, assume that -exports_file does not work either and
10473	# implicitly export all symbols.
10474	# This should be the same for all languages, so no per-tag cache variable.
10475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10476printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10477if test ${lt_cv_irix_exported_symbol+y}
10478then :
10479  printf %s "(cached) " >&6
10480else $as_nop
10481  save_LDFLAGS=$LDFLAGS
10482	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10483	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484/* end confdefs.h.  */
10485int foo (void) { return 0; }
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"
10488then :
10489  lt_cv_irix_exported_symbol=yes
10490else $as_nop
10491  lt_cv_irix_exported_symbol=no
10492fi
10493rm -f core conftest.err conftest.$ac_objext conftest.beam \
10494    conftest$ac_exeext conftest.$ac_ext
10495           LDFLAGS=$save_LDFLAGS
10496fi
10497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10498printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10499	if test yes = "$lt_cv_irix_exported_symbol"; then
10500          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'
10501	fi
10502	link_all_deplibs=no
10503      else
10504	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'
10505	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'
10506      fi
10507      archive_cmds_need_lc='no'
10508      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10509      hardcode_libdir_separator=:
10510      inherit_rpath=yes
10511      link_all_deplibs=yes
10512      ;;
10513
10514    linux*)
10515      case $cc_basename in
10516      tcc*)
10517	# Fabrice Bellard et al's Tiny C Compiler
10518	ld_shlibs=yes
10519	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10520	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10521	;;
10522      esac
10523      ;;
10524
10525    netbsd* | netbsdelf*-gnu)
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$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 .so || 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  version_type=freebsd-$objformat
11403  case $version_type in
11404    freebsd-elf*)
11405      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406      soname_spec='$libname$release$shared_ext$major'
11407      need_version=no
11408      need_lib_prefix=no
11409      ;;
11410    freebsd-*)
11411      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11412      need_version=yes
11413      ;;
11414  esac
11415  shlibpath_var=LD_LIBRARY_PATH
11416  case $host_os in
11417  freebsd2.*)
11418    shlibpath_overrides_runpath=yes
11419    ;;
11420  freebsd3.[01]* | freebsdelf3.[01]*)
11421    shlibpath_overrides_runpath=yes
11422    hardcode_into_libs=yes
11423    ;;
11424  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11425  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11426    shlibpath_overrides_runpath=no
11427    hardcode_into_libs=yes
11428    ;;
11429  *) # from 4.6 on, and DragonFly
11430    shlibpath_overrides_runpath=yes
11431    hardcode_into_libs=yes
11432    ;;
11433  esac
11434  ;;
11435
11436haiku*)
11437  version_type=linux # correct to gnu/linux during the next big refactor
11438  need_lib_prefix=no
11439  need_version=no
11440  dynamic_linker="$host_os runtime_loader"
11441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442  soname_spec='$libname$release$shared_ext$major'
11443  shlibpath_var=LIBRARY_PATH
11444  shlibpath_overrides_runpath=no
11445  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11446  hardcode_into_libs=yes
11447  ;;
11448
11449hpux9* | hpux10* | hpux11*)
11450  # Give a soname corresponding to the major version so that dld.sl refuses to
11451  # link against other versions.
11452  version_type=sunos
11453  need_lib_prefix=no
11454  need_version=no
11455  case $host_cpu in
11456  ia64*)
11457    shrext_cmds='.so'
11458    hardcode_into_libs=yes
11459    dynamic_linker="$host_os dld.so"
11460    shlibpath_var=LD_LIBRARY_PATH
11461    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11462    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463    soname_spec='$libname$release$shared_ext$major'
11464    if test 32 = "$HPUX_IA64_MODE"; then
11465      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11466      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11467    else
11468      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11469      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11470    fi
11471    ;;
11472  hppa*64*)
11473    shrext_cmds='.sl'
11474    hardcode_into_libs=yes
11475    dynamic_linker="$host_os dld.sl"
11476    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11477    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11478    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479    soname_spec='$libname$release$shared_ext$major'
11480    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11481    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482    ;;
11483  *)
11484    shrext_cmds='.sl'
11485    dynamic_linker="$host_os dld.sl"
11486    shlibpath_var=SHLIB_PATH
11487    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11488    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489    soname_spec='$libname$release$shared_ext$major'
11490    ;;
11491  esac
11492  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11493  postinstall_cmds='chmod 555 $lib'
11494  # or fails outright, so override atomically:
11495  install_override_mode=555
11496  ;;
11497
11498interix[3-9]*)
11499  version_type=linux # correct to gnu/linux during the next big refactor
11500  need_lib_prefix=no
11501  need_version=no
11502  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11503  soname_spec='$libname$release$shared_ext$major'
11504  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=no
11507  hardcode_into_libs=yes
11508  ;;
11509
11510irix5* | irix6* | nonstopux*)
11511  case $host_os in
11512    nonstopux*) version_type=nonstopux ;;
11513    *)
11514	if test yes = "$lt_cv_prog_gnu_ld"; then
11515		version_type=linux # correct to gnu/linux during the next big refactor
11516	else
11517		version_type=irix
11518	fi ;;
11519  esac
11520  need_lib_prefix=no
11521  need_version=no
11522  soname_spec='$libname$release$shared_ext$major'
11523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11524  case $host_os in
11525  irix5* | nonstopux*)
11526    libsuff= shlibsuff=
11527    ;;
11528  *)
11529    case $LD in # libtool.m4 will add one of these switches to LD
11530    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11531      libsuff= shlibsuff= libmagic=32-bit;;
11532    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11533      libsuff=32 shlibsuff=N32 libmagic=N32;;
11534    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11535      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11536    *) libsuff= shlibsuff= libmagic=never-match;;
11537    esac
11538    ;;
11539  esac
11540  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11541  shlibpath_overrides_runpath=no
11542  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11543  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11544  hardcode_into_libs=yes
11545  ;;
11546
11547# No shared lib support for Linux oldld, aout, or coff.
11548linux*oldld* | linux*aout* | linux*coff*)
11549  dynamic_linker=no
11550  ;;
11551
11552linux*android*)
11553  version_type=none # Android doesn't support versioned libraries.
11554  need_lib_prefix=no
11555  need_version=no
11556  library_names_spec='$libname$release$shared_ext'
11557  soname_spec='$libname$release$shared_ext'
11558  finish_cmds=
11559  shlibpath_var=LD_LIBRARY_PATH
11560  shlibpath_overrides_runpath=yes
11561
11562  # This implies no fast_install, which is unacceptable.
11563  # Some rework will be needed to allow for fast_install
11564  # before this can be enabled.
11565  hardcode_into_libs=yes
11566
11567  dynamic_linker='Android linker'
11568  # Don't embed -rpath directories since the linker doesn't support them.
11569  hardcode_libdir_flag_spec='-L$libdir'
11570  ;;
11571
11572# This must be glibc/ELF.
11573linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11574  version_type=linux # correct to gnu/linux during the next big refactor
11575  need_lib_prefix=no
11576  need_version=no
11577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11578  soname_spec='$libname$release$shared_ext$major'
11579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11580  shlibpath_var=LD_LIBRARY_PATH
11581  shlibpath_overrides_runpath=no
11582
11583  # Some binutils ld are patched to set DT_RUNPATH
11584  if test ${lt_cv_shlibpath_overrides_runpath+y}
11585then :
11586  printf %s "(cached) " >&6
11587else $as_nop
11588  lt_cv_shlibpath_overrides_runpath=no
11589    save_LDFLAGS=$LDFLAGS
11590    save_libdir=$libdir
11591    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11592	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11593    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h.  */
11595
11596int
11597main (void)
11598{
11599
11600  ;
11601  return 0;
11602}
11603_ACEOF
11604if ac_fn_c_try_link "$LINENO"
11605then :
11606  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11607then :
11608  lt_cv_shlibpath_overrides_runpath=yes
11609fi
11610fi
11611rm -f core conftest.err conftest.$ac_objext conftest.beam \
11612    conftest$ac_exeext conftest.$ac_ext
11613    LDFLAGS=$save_LDFLAGS
11614    libdir=$save_libdir
11615
11616fi
11617
11618  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11619
11620  # This implies no fast_install, which is unacceptable.
11621  # Some rework will be needed to allow for fast_install
11622  # before this can be enabled.
11623  hardcode_into_libs=yes
11624
11625  # Ideally, we could use ldconfig to report *all* directores which are
11626  # searched for libraries, however this is still not possible.  Aside from not
11627  # being certain /sbin/ldconfig is available, command
11628  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11629  # even though it is searched at run-time.  Try to do the best guess by
11630  # appending ld.so.conf contents (and includes) to the search path.
11631  if test -f /etc/ld.so.conf; then
11632    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' ' '`
11633    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11634  fi
11635
11636  # We used to test for /lib/ld.so.1 and disable shared libraries on
11637  # powerpc, because MkLinux only supported shared libraries with the
11638  # GNU dynamic linker.  Since this was broken with cross compilers,
11639  # most powerpc-linux boxes support dynamic linking these days and
11640  # people can always --disable-shared, the test was removed, and we
11641  # assume the GNU/Linux dynamic linker is in use.
11642  dynamic_linker='GNU/Linux ld.so'
11643  ;;
11644
11645netbsdelf*-gnu)
11646  version_type=linux
11647  need_lib_prefix=no
11648  need_version=no
11649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650  soname_spec='${libname}${release}${shared_ext}$major'
11651  shlibpath_var=LD_LIBRARY_PATH
11652  shlibpath_overrides_runpath=no
11653  hardcode_into_libs=yes
11654  dynamic_linker='NetBSD ld.elf_so'
11655  ;;
11656
11657netbsd*)
11658  version_type=sunos
11659  need_lib_prefix=no
11660  need_version=no
11661  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11662    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11664    dynamic_linker='NetBSD (a.out) ld.so'
11665  else
11666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667    soname_spec='$libname$release$shared_ext$major'
11668    dynamic_linker='NetBSD ld.elf_so'
11669  fi
11670  shlibpath_var=LD_LIBRARY_PATH
11671  shlibpath_overrides_runpath=yes
11672  hardcode_into_libs=yes
11673  ;;
11674
11675newsos6)
11676  version_type=linux # correct to gnu/linux during the next big refactor
11677  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678  shlibpath_var=LD_LIBRARY_PATH
11679  shlibpath_overrides_runpath=yes
11680  ;;
11681
11682*nto* | *qnx*)
11683  version_type=qnx
11684  need_lib_prefix=no
11685  need_version=no
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  soname_spec='$libname$release$shared_ext$major'
11688  shlibpath_var=LD_LIBRARY_PATH
11689  shlibpath_overrides_runpath=no
11690  hardcode_into_libs=yes
11691  dynamic_linker='ldqnx.so'
11692  ;;
11693
11694openbsd* | bitrig*)
11695  version_type=sunos
11696  sys_lib_dlsearch_path_spec=/usr/lib
11697  need_lib_prefix=no
11698  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11699    need_version=no
11700  else
11701    need_version=yes
11702  fi
11703  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11704  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11705  shlibpath_var=LD_LIBRARY_PATH
11706  shlibpath_overrides_runpath=yes
11707  ;;
11708
11709os2*)
11710  libname_spec='$name'
11711  version_type=windows
11712  shrext_cmds=.dll
11713  need_version=no
11714  need_lib_prefix=no
11715  # OS/2 can only load a DLL with a base name of 8 characters or less.
11716  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11717    v=$($ECHO $release$versuffix | tr -d .-);
11718    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11719    $ECHO $n$v`$shared_ext'
11720  library_names_spec='${libname}_dll.$libext'
11721  dynamic_linker='OS/2 ld.exe'
11722  shlibpath_var=BEGINLIBPATH
11723  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11724  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11725  postinstall_cmds='base_file=`basename \$file`~
11726    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11727    dldir=$destdir/`dirname \$dlpath`~
11728    test -d \$dldir || mkdir -p \$dldir~
11729    $install_prog $dir/$dlname \$dldir/$dlname~
11730    chmod a+x \$dldir/$dlname~
11731    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11732      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11733    fi'
11734  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11735    dlpath=$dir/\$dldll~
11736    $RM \$dlpath'
11737  ;;
11738
11739osf3* | osf4* | osf5*)
11740  version_type=osf
11741  need_lib_prefix=no
11742  need_version=no
11743  soname_spec='$libname$release$shared_ext$major'
11744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745  shlibpath_var=LD_LIBRARY_PATH
11746  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11747  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11748  ;;
11749
11750rdos*)
11751  dynamic_linker=no
11752  ;;
11753
11754solaris*)
11755  version_type=linux # correct to gnu/linux during the next big refactor
11756  need_lib_prefix=no
11757  need_version=no
11758  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11759  soname_spec='$libname$release$shared_ext$major'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  shlibpath_overrides_runpath=yes
11762  hardcode_into_libs=yes
11763  # ldd complains unless libraries are executable
11764  postinstall_cmds='chmod +x $lib'
11765  ;;
11766
11767sunos4*)
11768  version_type=sunos
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11770  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11771  shlibpath_var=LD_LIBRARY_PATH
11772  shlibpath_overrides_runpath=yes
11773  if test yes = "$with_gnu_ld"; then
11774    need_lib_prefix=no
11775  fi
11776  need_version=yes
11777  ;;
11778
11779sysv4 | sysv4.3*)
11780  version_type=linux # correct to gnu/linux during the next big refactor
11781  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11782  soname_spec='$libname$release$shared_ext$major'
11783  shlibpath_var=LD_LIBRARY_PATH
11784  case $host_vendor in
11785    sni)
11786      shlibpath_overrides_runpath=no
11787      need_lib_prefix=no
11788      runpath_var=LD_RUN_PATH
11789      ;;
11790    siemens)
11791      need_lib_prefix=no
11792      ;;
11793    motorola)
11794      need_lib_prefix=no
11795      need_version=no
11796      shlibpath_overrides_runpath=no
11797      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11798      ;;
11799  esac
11800  ;;
11801
11802sysv4*MP*)
11803  if test -d /usr/nec; then
11804    version_type=linux # correct to gnu/linux during the next big refactor
11805    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11806    soname_spec='$libname$shared_ext.$major'
11807    shlibpath_var=LD_LIBRARY_PATH
11808  fi
11809  ;;
11810
11811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11812  version_type=sco
11813  need_lib_prefix=no
11814  need_version=no
11815  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11816  soname_spec='$libname$release$shared_ext$major'
11817  shlibpath_var=LD_LIBRARY_PATH
11818  shlibpath_overrides_runpath=yes
11819  hardcode_into_libs=yes
11820  if test yes = "$with_gnu_ld"; then
11821    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11822  else
11823    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11824    case $host_os in
11825      sco3.2v5*)
11826        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11827	;;
11828    esac
11829  fi
11830  sys_lib_dlsearch_path_spec='/usr/lib'
11831  ;;
11832
11833tpf*)
11834  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11835  version_type=linux # correct to gnu/linux during the next big refactor
11836  need_lib_prefix=no
11837  need_version=no
11838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839  shlibpath_var=LD_LIBRARY_PATH
11840  shlibpath_overrides_runpath=no
11841  hardcode_into_libs=yes
11842  ;;
11843
11844uts4*)
11845  version_type=linux # correct to gnu/linux during the next big refactor
11846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847  soname_spec='$libname$release$shared_ext$major'
11848  shlibpath_var=LD_LIBRARY_PATH
11849  ;;
11850
11851*)
11852  dynamic_linker=no
11853  ;;
11854esac
11855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11856printf "%s\n" "$dynamic_linker" >&6; }
11857test no = "$dynamic_linker" && can_build_shared=no
11858
11859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11860if test yes = "$GCC"; then
11861  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11862fi
11863
11864if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11865  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11866fi
11867
11868if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11869  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11870fi
11871
11872# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11873configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11874
11875# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11876func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11877
11878# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11879configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11880
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11978printf %s "checking how to hardcode library paths into programs... " >&6; }
11979hardcode_action=
11980if test -n "$hardcode_libdir_flag_spec" ||
11981   test -n "$runpath_var" ||
11982   test yes = "$hardcode_automatic"; then
11983
11984  # We can hardcode non-existent directories.
11985  if test no != "$hardcode_direct" &&
11986     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11987     # have to relink, otherwise we might link with an installed library
11988     # when we should be linking with a yet-to-be-installed one
11989     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11990     test no != "$hardcode_minus_L"; then
11991    # Linking always hardcodes the temporary library directory.
11992    hardcode_action=relink
11993  else
11994    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11995    hardcode_action=immediate
11996  fi
11997else
11998  # We cannot hardcode anything, or else we can only hardcode existing
11999  # directories.
12000  hardcode_action=unsupported
12001fi
12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12003printf "%s\n" "$hardcode_action" >&6; }
12004
12005if test relink = "$hardcode_action" ||
12006   test yes = "$inherit_rpath"; then
12007  # Fast installation is not supported
12008  enable_fast_install=no
12009elif test yes = "$shlibpath_overrides_runpath" ||
12010     test no = "$enable_shared"; then
12011  # Fast installation is not necessary
12012  enable_fast_install=needless
12013fi
12014
12015
12016
12017
12018
12019
12020  if test yes != "$enable_dlopen"; then
12021  enable_dlopen=unknown
12022  enable_dlopen_self=unknown
12023  enable_dlopen_self_static=unknown
12024else
12025  lt_cv_dlopen=no
12026  lt_cv_dlopen_libs=
12027
12028  case $host_os in
12029  beos*)
12030    lt_cv_dlopen=load_add_on
12031    lt_cv_dlopen_libs=
12032    lt_cv_dlopen_self=yes
12033    ;;
12034
12035  mingw* | pw32* | cegcc*)
12036    lt_cv_dlopen=LoadLibrary
12037    lt_cv_dlopen_libs=
12038    ;;
12039
12040  cygwin*)
12041    lt_cv_dlopen=dlopen
12042    lt_cv_dlopen_libs=
12043    ;;
12044
12045  darwin*)
12046    # if libdl is installed we need to link against it
12047    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12048printf %s "checking for dlopen in -ldl... " >&6; }
12049if test ${ac_cv_lib_dl_dlopen+y}
12050then :
12051  printf %s "(cached) " >&6
12052else $as_nop
12053  ac_check_lib_save_LIBS=$LIBS
12054LIBS="-ldl  $LIBS"
12055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056/* end confdefs.h.  */
12057
12058/* Override any GCC internal prototype to avoid an error.
12059   Use char because int might match the return type of a GCC
12060   builtin and then its argument prototype would still apply.  */
12061char dlopen ();
12062int
12063main (void)
12064{
12065return dlopen ();
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070if ac_fn_c_try_link "$LINENO"
12071then :
12072  ac_cv_lib_dl_dlopen=yes
12073else $as_nop
12074  ac_cv_lib_dl_dlopen=no
12075fi
12076rm -f core conftest.err conftest.$ac_objext conftest.beam \
12077    conftest$ac_exeext conftest.$ac_ext
12078LIBS=$ac_check_lib_save_LIBS
12079fi
12080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12081printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12082if test "x$ac_cv_lib_dl_dlopen" = xyes
12083then :
12084  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12085else $as_nop
12086
12087    lt_cv_dlopen=dyld
12088    lt_cv_dlopen_libs=
12089    lt_cv_dlopen_self=yes
12090
12091fi
12092
12093    ;;
12094
12095  tpf*)
12096    # Don't try to run any link tests for TPF.  We know it's impossible
12097    # because TPF is a cross-compiler, and we know how we open DSOs.
12098    lt_cv_dlopen=dlopen
12099    lt_cv_dlopen_libs=
12100    lt_cv_dlopen_self=no
12101    ;;
12102
12103  *)
12104    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12105if test "x$ac_cv_func_shl_load" = xyes
12106then :
12107  lt_cv_dlopen=shl_load
12108else $as_nop
12109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12110printf %s "checking for shl_load in -ldld... " >&6; }
12111if test ${ac_cv_lib_dld_shl_load+y}
12112then :
12113  printf %s "(cached) " >&6
12114else $as_nop
12115  ac_check_lib_save_LIBS=$LIBS
12116LIBS="-ldld  $LIBS"
12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h.  */
12119
12120/* Override any GCC internal prototype to avoid an error.
12121   Use char because int might match the return type of a GCC
12122   builtin and then its argument prototype would still apply.  */
12123char shl_load ();
12124int
12125main (void)
12126{
12127return shl_load ();
12128  ;
12129  return 0;
12130}
12131_ACEOF
12132if ac_fn_c_try_link "$LINENO"
12133then :
12134  ac_cv_lib_dld_shl_load=yes
12135else $as_nop
12136  ac_cv_lib_dld_shl_load=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext conftest.beam \
12139    conftest$ac_exeext conftest.$ac_ext
12140LIBS=$ac_check_lib_save_LIBS
12141fi
12142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12143printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12144if test "x$ac_cv_lib_dld_shl_load" = xyes
12145then :
12146  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12147else $as_nop
12148  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12149if test "x$ac_cv_func_dlopen" = xyes
12150then :
12151  lt_cv_dlopen=dlopen
12152else $as_nop
12153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12154printf %s "checking for dlopen in -ldl... " >&6; }
12155if test ${ac_cv_lib_dl_dlopen+y}
12156then :
12157  printf %s "(cached) " >&6
12158else $as_nop
12159  ac_check_lib_save_LIBS=$LIBS
12160LIBS="-ldl  $LIBS"
12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h.  */
12163
12164/* Override any GCC internal prototype to avoid an error.
12165   Use char because int might match the return type of a GCC
12166   builtin and then its argument prototype would still apply.  */
12167char dlopen ();
12168int
12169main (void)
12170{
12171return dlopen ();
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_link "$LINENO"
12177then :
12178  ac_cv_lib_dl_dlopen=yes
12179else $as_nop
12180  ac_cv_lib_dl_dlopen=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext conftest.beam \
12183    conftest$ac_exeext conftest.$ac_ext
12184LIBS=$ac_check_lib_save_LIBS
12185fi
12186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12187printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12188if test "x$ac_cv_lib_dl_dlopen" = xyes
12189then :
12190  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12191else $as_nop
12192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12193printf %s "checking for dlopen in -lsvld... " >&6; }
12194if test ${ac_cv_lib_svld_dlopen+y}
12195then :
12196  printf %s "(cached) " >&6
12197else $as_nop
12198  ac_check_lib_save_LIBS=$LIBS
12199LIBS="-lsvld  $LIBS"
12200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h.  */
12202
12203/* Override any GCC internal prototype to avoid an error.
12204   Use char because int might match the return type of a GCC
12205   builtin and then its argument prototype would still apply.  */
12206char dlopen ();
12207int
12208main (void)
12209{
12210return dlopen ();
12211  ;
12212  return 0;
12213}
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"
12216then :
12217  ac_cv_lib_svld_dlopen=yes
12218else $as_nop
12219  ac_cv_lib_svld_dlopen=no
12220fi
12221rm -f core conftest.err conftest.$ac_objext conftest.beam \
12222    conftest$ac_exeext conftest.$ac_ext
12223LIBS=$ac_check_lib_save_LIBS
12224fi
12225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12226printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12227if test "x$ac_cv_lib_svld_dlopen" = xyes
12228then :
12229  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12230else $as_nop
12231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12232printf %s "checking for dld_link in -ldld... " >&6; }
12233if test ${ac_cv_lib_dld_dld_link+y}
12234then :
12235  printf %s "(cached) " >&6
12236else $as_nop
12237  ac_check_lib_save_LIBS=$LIBS
12238LIBS="-ldld  $LIBS"
12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h.  */
12241
12242/* Override any GCC internal prototype to avoid an error.
12243   Use char because int might match the return type of a GCC
12244   builtin and then its argument prototype would still apply.  */
12245char dld_link ();
12246int
12247main (void)
12248{
12249return dld_link ();
12250  ;
12251  return 0;
12252}
12253_ACEOF
12254if ac_fn_c_try_link "$LINENO"
12255then :
12256  ac_cv_lib_dld_dld_link=yes
12257else $as_nop
12258  ac_cv_lib_dld_dld_link=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext conftest.beam \
12261    conftest$ac_exeext conftest.$ac_ext
12262LIBS=$ac_check_lib_save_LIBS
12263fi
12264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12265printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12266if test "x$ac_cv_lib_dld_dld_link" = xyes
12267then :
12268  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12269fi
12270
12271
12272fi
12273
12274
12275fi
12276
12277
12278fi
12279
12280
12281fi
12282
12283
12284fi
12285
12286    ;;
12287  esac
12288
12289  if test no = "$lt_cv_dlopen"; then
12290    enable_dlopen=no
12291  else
12292    enable_dlopen=yes
12293  fi
12294
12295  case $lt_cv_dlopen in
12296  dlopen)
12297    save_CPPFLAGS=$CPPFLAGS
12298    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12299
12300    save_LDFLAGS=$LDFLAGS
12301    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12302
12303    save_LIBS=$LIBS
12304    LIBS="$lt_cv_dlopen_libs $LIBS"
12305
12306    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12307printf %s "checking whether a program can dlopen itself... " >&6; }
12308if test ${lt_cv_dlopen_self+y}
12309then :
12310  printf %s "(cached) " >&6
12311else $as_nop
12312  	  if test yes = "$cross_compiling"; then :
12313  lt_cv_dlopen_self=cross
12314else
12315  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12316  lt_status=$lt_dlunknown
12317  cat > conftest.$ac_ext <<_LT_EOF
12318#line $LINENO "configure"
12319#include "confdefs.h"
12320
12321#if HAVE_DLFCN_H
12322#include <dlfcn.h>
12323#endif
12324
12325#include <stdio.h>
12326
12327#ifdef RTLD_GLOBAL
12328#  define LT_DLGLOBAL		RTLD_GLOBAL
12329#else
12330#  ifdef DL_GLOBAL
12331#    define LT_DLGLOBAL		DL_GLOBAL
12332#  else
12333#    define LT_DLGLOBAL		0
12334#  endif
12335#endif
12336
12337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12338   find out it does not work in some platform. */
12339#ifndef LT_DLLAZY_OR_NOW
12340#  ifdef RTLD_LAZY
12341#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12342#  else
12343#    ifdef DL_LAZY
12344#      define LT_DLLAZY_OR_NOW		DL_LAZY
12345#    else
12346#      ifdef RTLD_NOW
12347#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12348#      else
12349#        ifdef DL_NOW
12350#          define LT_DLLAZY_OR_NOW	DL_NOW
12351#        else
12352#          define LT_DLLAZY_OR_NOW	0
12353#        endif
12354#      endif
12355#    endif
12356#  endif
12357#endif
12358
12359/* When -fvisibility=hidden is used, assume the code has been annotated
12360   correspondingly for the symbols needed.  */
12361#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12362int fnord () __attribute__((visibility("default")));
12363#endif
12364
12365int fnord () { return 42; }
12366int main ()
12367{
12368  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12369  int status = $lt_dlunknown;
12370
12371  if (self)
12372    {
12373      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12374      else
12375        {
12376	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12377          else puts (dlerror ());
12378	}
12379      /* dlclose (self); */
12380    }
12381  else
12382    puts (dlerror ());
12383
12384  return status;
12385}
12386_LT_EOF
12387  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12388  (eval $ac_link) 2>&5
12389  ac_status=$?
12390  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12391  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12392    (./conftest; exit; ) >&5 2>/dev/null
12393    lt_status=$?
12394    case x$lt_status in
12395      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12396      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12397      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12398    esac
12399  else :
12400    # compilation failed
12401    lt_cv_dlopen_self=no
12402  fi
12403fi
12404rm -fr conftest*
12405
12406
12407fi
12408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12409printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12410
12411    if test yes = "$lt_cv_dlopen_self"; then
12412      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12414printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12415if test ${lt_cv_dlopen_self_static+y}
12416then :
12417  printf %s "(cached) " >&6
12418else $as_nop
12419  	  if test yes = "$cross_compiling"; then :
12420  lt_cv_dlopen_self_static=cross
12421else
12422  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12423  lt_status=$lt_dlunknown
12424  cat > conftest.$ac_ext <<_LT_EOF
12425#line $LINENO "configure"
12426#include "confdefs.h"
12427
12428#if HAVE_DLFCN_H
12429#include <dlfcn.h>
12430#endif
12431
12432#include <stdio.h>
12433
12434#ifdef RTLD_GLOBAL
12435#  define LT_DLGLOBAL		RTLD_GLOBAL
12436#else
12437#  ifdef DL_GLOBAL
12438#    define LT_DLGLOBAL		DL_GLOBAL
12439#  else
12440#    define LT_DLGLOBAL		0
12441#  endif
12442#endif
12443
12444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12445   find out it does not work in some platform. */
12446#ifndef LT_DLLAZY_OR_NOW
12447#  ifdef RTLD_LAZY
12448#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12449#  else
12450#    ifdef DL_LAZY
12451#      define LT_DLLAZY_OR_NOW		DL_LAZY
12452#    else
12453#      ifdef RTLD_NOW
12454#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12455#      else
12456#        ifdef DL_NOW
12457#          define LT_DLLAZY_OR_NOW	DL_NOW
12458#        else
12459#          define LT_DLLAZY_OR_NOW	0
12460#        endif
12461#      endif
12462#    endif
12463#  endif
12464#endif
12465
12466/* When -fvisibility=hidden is used, assume the code has been annotated
12467   correspondingly for the symbols needed.  */
12468#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12469int fnord () __attribute__((visibility("default")));
12470#endif
12471
12472int fnord () { return 42; }
12473int main ()
12474{
12475  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12476  int status = $lt_dlunknown;
12477
12478  if (self)
12479    {
12480      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12481      else
12482        {
12483	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12484          else puts (dlerror ());
12485	}
12486      /* dlclose (self); */
12487    }
12488  else
12489    puts (dlerror ());
12490
12491  return status;
12492}
12493_LT_EOF
12494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12495  (eval $ac_link) 2>&5
12496  ac_status=$?
12497  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12499    (./conftest; exit; ) >&5 2>/dev/null
12500    lt_status=$?
12501    case x$lt_status in
12502      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12503      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12504      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12505    esac
12506  else :
12507    # compilation failed
12508    lt_cv_dlopen_self_static=no
12509  fi
12510fi
12511rm -fr conftest*
12512
12513
12514fi
12515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12516printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12517    fi
12518
12519    CPPFLAGS=$save_CPPFLAGS
12520    LDFLAGS=$save_LDFLAGS
12521    LIBS=$save_LIBS
12522    ;;
12523  esac
12524
12525  case $lt_cv_dlopen_self in
12526  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12527  *) enable_dlopen_self=unknown ;;
12528  esac
12529
12530  case $lt_cv_dlopen_self_static in
12531  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12532  *) enable_dlopen_self_static=unknown ;;
12533  esac
12534fi
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552striplib=
12553old_striplib=
12554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12555printf %s "checking whether stripping libraries is possible... " >&6; }
12556if test -z "$STRIP"; then
12557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558printf "%s\n" "no" >&6; }
12559else
12560  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12561    old_striplib="$STRIP --strip-debug"
12562    striplib="$STRIP --strip-unneeded"
12563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564printf "%s\n" "yes" >&6; }
12565  else
12566    case $host_os in
12567    darwin*)
12568      # FIXME - insert some real tests, host_os isn't really good enough
12569      striplib="$STRIP -x"
12570      old_striplib="$STRIP -S"
12571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572printf "%s\n" "yes" >&6; }
12573      ;;
12574    freebsd*)
12575      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12576        old_striplib="$STRIP --strip-debug"
12577        striplib="$STRIP --strip-unneeded"
12578        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579printf "%s\n" "yes" >&6; }
12580      else
12581        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582printf "%s\n" "no" >&6; }
12583      fi
12584      ;;
12585    *)
12586      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587printf "%s\n" "no" >&6; }
12588      ;;
12589    esac
12590  fi
12591fi
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604  # Report what library types will actually be built
12605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12606printf %s "checking if libtool supports shared libraries... " >&6; }
12607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12608printf "%s\n" "$can_build_shared" >&6; }
12609
12610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12611printf %s "checking whether to build shared libraries... " >&6; }
12612  test no = "$can_build_shared" && enable_shared=no
12613
12614  # On AIX, shared libraries and static libraries use the same namespace, and
12615  # are all built from PIC.
12616  case $host_os in
12617  aix3*)
12618    test yes = "$enable_shared" && enable_static=no
12619    if test -n "$RANLIB"; then
12620      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12621      postinstall_cmds='$RANLIB $lib'
12622    fi
12623    ;;
12624
12625  aix[4-9]*)
12626    if test ia64 != "$host_cpu"; then
12627      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12628      yes,aix,yes) ;;			# shared object as lib.so file only
12629      yes,svr4,*) ;;			# shared object as lib.so archive member only
12630      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12631      esac
12632    fi
12633    ;;
12634  esac
12635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12636printf "%s\n" "$enable_shared" >&6; }
12637
12638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12639printf %s "checking whether to build static libraries... " >&6; }
12640  # Make sure either enable_shared or enable_static is yes.
12641  test yes = "$enable_shared" || enable_static=yes
12642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12643printf "%s\n" "$enable_static" >&6; }
12644
12645
12646
12647
12648fi
12649ac_ext=c
12650ac_cpp='$CPP $CPPFLAGS'
12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655CC=$lt_save_CC
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671        ac_config_commands="$ac_config_commands libtool"
12672
12673
12674
12675
12676# Only expand once:
12677
12678
12679
12680# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12694printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12695if test ${ac_cv_c_undeclared_builtin_options+y}
12696then :
12697  printf %s "(cached) " >&6
12698else $as_nop
12699  ac_save_CFLAGS=$CFLAGS
12700   ac_cv_c_undeclared_builtin_options='cannot detect'
12701   for ac_arg in '' -fno-builtin; do
12702     CFLAGS="$ac_save_CFLAGS $ac_arg"
12703     # This test program should *not* compile successfully.
12704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706
12707int
12708main (void)
12709{
12710(void) strchr;
12711  ;
12712  return 0;
12713}
12714_ACEOF
12715if ac_fn_c_try_compile "$LINENO"
12716then :
12717
12718else $as_nop
12719  # This test program should compile successfully.
12720        # No library function is consistently available on
12721        # freestanding implementations, so test against a dummy
12722        # declaration.  Include always-available headers on the
12723        # off chance that they somehow elicit warnings.
12724        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725/* end confdefs.h.  */
12726#include <float.h>
12727#include <limits.h>
12728#include <stdarg.h>
12729#include <stddef.h>
12730extern void ac_decl (int, char *);
12731
12732int
12733main (void)
12734{
12735(void) ac_decl (0, (char *) 0);
12736  (void) ac_decl;
12737
12738  ;
12739  return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_compile "$LINENO"
12743then :
12744  if test x"$ac_arg" = x
12745then :
12746  ac_cv_c_undeclared_builtin_options='none needed'
12747else $as_nop
12748  ac_cv_c_undeclared_builtin_options=$ac_arg
12749fi
12750          break
12751fi
12752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12753fi
12754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12755    done
12756    CFLAGS=$ac_save_CFLAGS
12757
12758fi
12759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12760printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12761  case $ac_cv_c_undeclared_builtin_options in #(
12762  'cannot detect') :
12763    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12764printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12765as_fn_error $? "cannot make $CC report undeclared builtins
12766See \`config.log' for more details" "$LINENO" 5; } ;; #(
12767  'none needed') :
12768    ac_c_undeclared_builtin_options='' ;; #(
12769  *) :
12770    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12771esac
12772
12773
12774
12775
12776
12777ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12778if test "x$ac_cv_have_decl___clang__" = xyes
12779then :
12780  CLANGCC="yes"
12781else $as_nop
12782  CLANGCC="no"
12783fi
12784ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12785if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12786then :
12787  INTELCC="yes"
12788else $as_nop
12789  INTELCC="no"
12790fi
12791ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12792if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12793then :
12794  SUNCC="yes"
12795else $as_nop
12796  SUNCC="no"
12797fi
12798
12799
12800
12801
12802
12803
12804
12805
12806if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12807	if test -n "$ac_tool_prefix"; then
12808  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12809set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811printf %s "checking for $ac_word... " >&6; }
12812if test ${ac_cv_path_PKG_CONFIG+y}
12813then :
12814  printf %s "(cached) " >&6
12815else $as_nop
12816  case $PKG_CONFIG in
12817  [\\/]* | ?:[\\/]*)
12818  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12819  ;;
12820  *)
12821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824  IFS=$as_save_IFS
12825  case $as_dir in #(((
12826    '') as_dir=./ ;;
12827    */) ;;
12828    *) as_dir=$as_dir/ ;;
12829  esac
12830    for ac_exec_ext in '' $ac_executable_extensions; do
12831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12832    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12834    break 2
12835  fi
12836done
12837  done
12838IFS=$as_save_IFS
12839
12840  ;;
12841esac
12842fi
12843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12844if test -n "$PKG_CONFIG"; then
12845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12846printf "%s\n" "$PKG_CONFIG" >&6; }
12847else
12848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849printf "%s\n" "no" >&6; }
12850fi
12851
12852
12853fi
12854if test -z "$ac_cv_path_PKG_CONFIG"; then
12855  ac_pt_PKG_CONFIG=$PKG_CONFIG
12856  # Extract the first word of "pkg-config", so it can be a program name with args.
12857set dummy pkg-config; ac_word=$2
12858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859printf %s "checking for $ac_word... " >&6; }
12860if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12861then :
12862  printf %s "(cached) " >&6
12863else $as_nop
12864  case $ac_pt_PKG_CONFIG in
12865  [\\/]* | ?:[\\/]*)
12866  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12867  ;;
12868  *)
12869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872  IFS=$as_save_IFS
12873  case $as_dir in #(((
12874    '') as_dir=./ ;;
12875    */) ;;
12876    *) as_dir=$as_dir/ ;;
12877  esac
12878    for ac_exec_ext in '' $ac_executable_extensions; do
12879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12880    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12882    break 2
12883  fi
12884done
12885  done
12886IFS=$as_save_IFS
12887
12888  ;;
12889esac
12890fi
12891ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12892if test -n "$ac_pt_PKG_CONFIG"; then
12893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12894printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12895else
12896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897printf "%s\n" "no" >&6; }
12898fi
12899
12900  if test "x$ac_pt_PKG_CONFIG" = x; then
12901    PKG_CONFIG=""
12902  else
12903    case $cross_compiling:$ac_tool_warned in
12904yes:)
12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12907ac_tool_warned=yes ;;
12908esac
12909    PKG_CONFIG=$ac_pt_PKG_CONFIG
12910  fi
12911else
12912  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12913fi
12914
12915fi
12916if test -n "$PKG_CONFIG"; then
12917	_pkg_min_version=0.9.0
12918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12919printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12920	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12922printf "%s\n" "yes" >&6; }
12923	else
12924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925printf "%s\n" "no" >&6; }
12926		PKG_CONFIG=""
12927	fi
12928fi
12929
12930
12931
12932
12933
12934# Check whether --enable-selective-werror was given.
12935if test ${enable_selective_werror+y}
12936then :
12937  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12938else $as_nop
12939  SELECTIVE_WERROR=yes
12940fi
12941
12942
12943
12944
12945
12946# -v is too short to test reliably with XORG_TESTSET_CFLAG
12947if test "x$SUNCC" = "xyes"; then
12948    BASE_CFLAGS="-v"
12949else
12950    BASE_CFLAGS=""
12951fi
12952
12953# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967xorg_testset_save_CFLAGS="$CFLAGS"
12968
12969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12974then :
12975  printf %s "(cached) " >&6
12976else $as_nop
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979int i;
12980_ACEOF
12981if ac_fn_c_try_compile "$LINENO"
12982then :
12983  xorg_cv_cc_flag_unknown_warning_option=yes
12984else $as_nop
12985  xorg_cv_cc_flag_unknown_warning_option=no
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12988fi
12989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12992	CFLAGS="$xorg_testset_save_CFLAGS"
12993fi
12994
12995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998	fi
12999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13002if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13003then :
13004  printf %s "(cached) " >&6
13005else $as_nop
13006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008int i;
13009_ACEOF
13010if ac_fn_c_try_compile "$LINENO"
13011then :
13012  xorg_cv_cc_flag_unused_command_line_argument=yes
13013else $as_nop
13014  xorg_cv_cc_flag_unused_command_line_argument=no
13015fi
13016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13017fi
13018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13021	CFLAGS="$xorg_testset_save_CFLAGS"
13022fi
13023
13024found="no"
13025
13026	if test $found = "no" ; then
13027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13029		fi
13030
13031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13033		fi
13034
13035		CFLAGS="$CFLAGS -Wall"
13036
13037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13038printf %s "checking if $CC supports -Wall... " >&6; }
13039		cacheid=xorg_cv_cc_flag__Wall
13040		if eval test \${$cacheid+y}
13041then :
13042  printf %s "(cached) " >&6
13043else $as_nop
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046int i;
13047int
13048main (void)
13049{
13050
13051  ;
13052  return 0;
13053}
13054_ACEOF
13055if ac_fn_c_try_link "$LINENO"
13056then :
13057  eval $cacheid=yes
13058else $as_nop
13059  eval $cacheid=no
13060fi
13061rm -f core conftest.err conftest.$ac_objext conftest.beam \
13062    conftest$ac_exeext conftest.$ac_ext
13063fi
13064
13065
13066		CFLAGS="$xorg_testset_save_CFLAGS"
13067
13068		eval supported=\$$cacheid
13069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13070printf "%s\n" "$supported" >&6; }
13071		if test "$supported" = "yes" ; then
13072			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13073			found="yes"
13074		fi
13075	fi
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091xorg_testset_save_CFLAGS="$CFLAGS"
13092
13093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13098then :
13099  printf %s "(cached) " >&6
13100else $as_nop
13101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103int i;
13104_ACEOF
13105if ac_fn_c_try_compile "$LINENO"
13106then :
13107  xorg_cv_cc_flag_unknown_warning_option=yes
13108else $as_nop
13109  xorg_cv_cc_flag_unknown_warning_option=no
13110fi
13111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13112fi
13113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13116	CFLAGS="$xorg_testset_save_CFLAGS"
13117fi
13118
13119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13122	fi
13123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13126if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13127then :
13128  printf %s "(cached) " >&6
13129else $as_nop
13130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h.  */
13132int i;
13133_ACEOF
13134if ac_fn_c_try_compile "$LINENO"
13135then :
13136  xorg_cv_cc_flag_unused_command_line_argument=yes
13137else $as_nop
13138  xorg_cv_cc_flag_unused_command_line_argument=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13141fi
13142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13145	CFLAGS="$xorg_testset_save_CFLAGS"
13146fi
13147
13148found="no"
13149
13150	if test $found = "no" ; then
13151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13153		fi
13154
13155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13157		fi
13158
13159		CFLAGS="$CFLAGS -Wpointer-arith"
13160
13161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13162printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13163		cacheid=xorg_cv_cc_flag__Wpointer_arith
13164		if eval test \${$cacheid+y}
13165then :
13166  printf %s "(cached) " >&6
13167else $as_nop
13168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h.  */
13170int i;
13171int
13172main (void)
13173{
13174
13175  ;
13176  return 0;
13177}
13178_ACEOF
13179if ac_fn_c_try_link "$LINENO"
13180then :
13181  eval $cacheid=yes
13182else $as_nop
13183  eval $cacheid=no
13184fi
13185rm -f core conftest.err conftest.$ac_objext conftest.beam \
13186    conftest$ac_exeext conftest.$ac_ext
13187fi
13188
13189
13190		CFLAGS="$xorg_testset_save_CFLAGS"
13191
13192		eval supported=\$$cacheid
13193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13194printf "%s\n" "$supported" >&6; }
13195		if test "$supported" = "yes" ; then
13196			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13197			found="yes"
13198		fi
13199	fi
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215xorg_testset_save_CFLAGS="$CFLAGS"
13216
13217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13221if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13222then :
13223  printf %s "(cached) " >&6
13224else $as_nop
13225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227int i;
13228_ACEOF
13229if ac_fn_c_try_compile "$LINENO"
13230then :
13231  xorg_cv_cc_flag_unknown_warning_option=yes
13232else $as_nop
13233  xorg_cv_cc_flag_unknown_warning_option=no
13234fi
13235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13236fi
13237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13240	CFLAGS="$xorg_testset_save_CFLAGS"
13241fi
13242
13243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13246	fi
13247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13250if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13251then :
13252  printf %s "(cached) " >&6
13253else $as_nop
13254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h.  */
13256int i;
13257_ACEOF
13258if ac_fn_c_try_compile "$LINENO"
13259then :
13260  xorg_cv_cc_flag_unused_command_line_argument=yes
13261else $as_nop
13262  xorg_cv_cc_flag_unused_command_line_argument=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13265fi
13266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13269	CFLAGS="$xorg_testset_save_CFLAGS"
13270fi
13271
13272found="no"
13273
13274	if test $found = "no" ; then
13275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277		fi
13278
13279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13281		fi
13282
13283		CFLAGS="$CFLAGS -Wmissing-declarations"
13284
13285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13286printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13287		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13288		if eval test \${$cacheid+y}
13289then :
13290  printf %s "(cached) " >&6
13291else $as_nop
13292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h.  */
13294int i;
13295int
13296main (void)
13297{
13298
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"
13304then :
13305  eval $cacheid=yes
13306else $as_nop
13307  eval $cacheid=no
13308fi
13309rm -f core conftest.err conftest.$ac_objext conftest.beam \
13310    conftest$ac_exeext conftest.$ac_ext
13311fi
13312
13313
13314		CFLAGS="$xorg_testset_save_CFLAGS"
13315
13316		eval supported=\$$cacheid
13317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13318printf "%s\n" "$supported" >&6; }
13319		if test "$supported" = "yes" ; then
13320			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13321			found="yes"
13322		fi
13323	fi
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339xorg_testset_save_CFLAGS="$CFLAGS"
13340
13341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13345if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13346then :
13347  printf %s "(cached) " >&6
13348else $as_nop
13349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350/* end confdefs.h.  */
13351int i;
13352_ACEOF
13353if ac_fn_c_try_compile "$LINENO"
13354then :
13355  xorg_cv_cc_flag_unknown_warning_option=yes
13356else $as_nop
13357  xorg_cv_cc_flag_unknown_warning_option=no
13358fi
13359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13360fi
13361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13362printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13364	CFLAGS="$xorg_testset_save_CFLAGS"
13365fi
13366
13367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13370	fi
13371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13373printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13374if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13375then :
13376  printf %s "(cached) " >&6
13377else $as_nop
13378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379/* end confdefs.h.  */
13380int i;
13381_ACEOF
13382if ac_fn_c_try_compile "$LINENO"
13383then :
13384  xorg_cv_cc_flag_unused_command_line_argument=yes
13385else $as_nop
13386  xorg_cv_cc_flag_unused_command_line_argument=no
13387fi
13388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13389fi
13390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13393	CFLAGS="$xorg_testset_save_CFLAGS"
13394fi
13395
13396found="no"
13397
13398	if test $found = "no" ; then
13399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13401		fi
13402
13403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13405		fi
13406
13407		CFLAGS="$CFLAGS -Wformat=2"
13408
13409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13410printf %s "checking if $CC supports -Wformat=2... " >&6; }
13411		cacheid=xorg_cv_cc_flag__Wformat_2
13412		if eval test \${$cacheid+y}
13413then :
13414  printf %s "(cached) " >&6
13415else $as_nop
13416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h.  */
13418int i;
13419int
13420main (void)
13421{
13422
13423  ;
13424  return 0;
13425}
13426_ACEOF
13427if ac_fn_c_try_link "$LINENO"
13428then :
13429  eval $cacheid=yes
13430else $as_nop
13431  eval $cacheid=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext conftest.beam \
13434    conftest$ac_exeext conftest.$ac_ext
13435fi
13436
13437
13438		CFLAGS="$xorg_testset_save_CFLAGS"
13439
13440		eval supported=\$$cacheid
13441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13442printf "%s\n" "$supported" >&6; }
13443		if test "$supported" = "yes" ; then
13444			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13445			found="yes"
13446		fi
13447	fi
13448
13449	if test $found = "no" ; then
13450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13452		fi
13453
13454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13456		fi
13457
13458		CFLAGS="$CFLAGS -Wformat"
13459
13460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13461printf %s "checking if $CC supports -Wformat... " >&6; }
13462		cacheid=xorg_cv_cc_flag__Wformat
13463		if eval test \${$cacheid+y}
13464then :
13465  printf %s "(cached) " >&6
13466else $as_nop
13467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468/* end confdefs.h.  */
13469int i;
13470int
13471main (void)
13472{
13473
13474  ;
13475  return 0;
13476}
13477_ACEOF
13478if ac_fn_c_try_link "$LINENO"
13479then :
13480  eval $cacheid=yes
13481else $as_nop
13482  eval $cacheid=no
13483fi
13484rm -f core conftest.err conftest.$ac_objext conftest.beam \
13485    conftest$ac_exeext conftest.$ac_ext
13486fi
13487
13488
13489		CFLAGS="$xorg_testset_save_CFLAGS"
13490
13491		eval supported=\$$cacheid
13492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13493printf "%s\n" "$supported" >&6; }
13494		if test "$supported" = "yes" ; then
13495			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13496			found="yes"
13497		fi
13498	fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516xorg_testset_save_CFLAGS="$CFLAGS"
13517
13518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13523then :
13524  printf %s "(cached) " >&6
13525else $as_nop
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528int i;
13529_ACEOF
13530if ac_fn_c_try_compile "$LINENO"
13531then :
13532  xorg_cv_cc_flag_unknown_warning_option=yes
13533else $as_nop
13534  xorg_cv_cc_flag_unknown_warning_option=no
13535fi
13536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13537fi
13538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13541	CFLAGS="$xorg_testset_save_CFLAGS"
13542fi
13543
13544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547	fi
13548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13551if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13552then :
13553  printf %s "(cached) " >&6
13554else $as_nop
13555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557int i;
13558_ACEOF
13559if ac_fn_c_try_compile "$LINENO"
13560then :
13561  xorg_cv_cc_flag_unused_command_line_argument=yes
13562else $as_nop
13563  xorg_cv_cc_flag_unused_command_line_argument=no
13564fi
13565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13566fi
13567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13570	CFLAGS="$xorg_testset_save_CFLAGS"
13571fi
13572
13573found="no"
13574
13575	if test $found = "no" ; then
13576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13578		fi
13579
13580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13582		fi
13583
13584		CFLAGS="$CFLAGS -Wstrict-prototypes"
13585
13586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13587printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13588		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13589		if eval test \${$cacheid+y}
13590then :
13591  printf %s "(cached) " >&6
13592else $as_nop
13593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594/* end confdefs.h.  */
13595int i;
13596int
13597main (void)
13598{
13599
13600  ;
13601  return 0;
13602}
13603_ACEOF
13604if ac_fn_c_try_link "$LINENO"
13605then :
13606  eval $cacheid=yes
13607else $as_nop
13608  eval $cacheid=no
13609fi
13610rm -f core conftest.err conftest.$ac_objext conftest.beam \
13611    conftest$ac_exeext conftest.$ac_ext
13612fi
13613
13614
13615		CFLAGS="$xorg_testset_save_CFLAGS"
13616
13617		eval supported=\$$cacheid
13618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13619printf "%s\n" "$supported" >&6; }
13620		if test "$supported" = "yes" ; then
13621			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13622			found="yes"
13623		fi
13624	fi
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640xorg_testset_save_CFLAGS="$CFLAGS"
13641
13642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13646if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13647then :
13648  printf %s "(cached) " >&6
13649else $as_nop
13650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652int i;
13653_ACEOF
13654if ac_fn_c_try_compile "$LINENO"
13655then :
13656  xorg_cv_cc_flag_unknown_warning_option=yes
13657else $as_nop
13658  xorg_cv_cc_flag_unknown_warning_option=no
13659fi
13660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13661fi
13662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13665	CFLAGS="$xorg_testset_save_CFLAGS"
13666fi
13667
13668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13671	fi
13672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13675if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13676then :
13677  printf %s "(cached) " >&6
13678else $as_nop
13679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h.  */
13681int i;
13682_ACEOF
13683if ac_fn_c_try_compile "$LINENO"
13684then :
13685  xorg_cv_cc_flag_unused_command_line_argument=yes
13686else $as_nop
13687  xorg_cv_cc_flag_unused_command_line_argument=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13690fi
13691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13694	CFLAGS="$xorg_testset_save_CFLAGS"
13695fi
13696
13697found="no"
13698
13699	if test $found = "no" ; then
13700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13702		fi
13703
13704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706		fi
13707
13708		CFLAGS="$CFLAGS -Wmissing-prototypes"
13709
13710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13711printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13712		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13713		if eval test \${$cacheid+y}
13714then :
13715  printf %s "(cached) " >&6
13716else $as_nop
13717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718/* end confdefs.h.  */
13719int i;
13720int
13721main (void)
13722{
13723
13724  ;
13725  return 0;
13726}
13727_ACEOF
13728if ac_fn_c_try_link "$LINENO"
13729then :
13730  eval $cacheid=yes
13731else $as_nop
13732  eval $cacheid=no
13733fi
13734rm -f core conftest.err conftest.$ac_objext conftest.beam \
13735    conftest$ac_exeext conftest.$ac_ext
13736fi
13737
13738
13739		CFLAGS="$xorg_testset_save_CFLAGS"
13740
13741		eval supported=\$$cacheid
13742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13743printf "%s\n" "$supported" >&6; }
13744		if test "$supported" = "yes" ; then
13745			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13746			found="yes"
13747		fi
13748	fi
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764xorg_testset_save_CFLAGS="$CFLAGS"
13765
13766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13770if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13771then :
13772  printf %s "(cached) " >&6
13773else $as_nop
13774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776int i;
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"
13779then :
13780  xorg_cv_cc_flag_unknown_warning_option=yes
13781else $as_nop
13782  xorg_cv_cc_flag_unknown_warning_option=no
13783fi
13784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13785fi
13786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13789	CFLAGS="$xorg_testset_save_CFLAGS"
13790fi
13791
13792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795	fi
13796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13799if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13800then :
13801  printf %s "(cached) " >&6
13802else $as_nop
13803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804/* end confdefs.h.  */
13805int i;
13806_ACEOF
13807if ac_fn_c_try_compile "$LINENO"
13808then :
13809  xorg_cv_cc_flag_unused_command_line_argument=yes
13810else $as_nop
13811  xorg_cv_cc_flag_unused_command_line_argument=no
13812fi
13813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13814fi
13815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13818	CFLAGS="$xorg_testset_save_CFLAGS"
13819fi
13820
13821found="no"
13822
13823	if test $found = "no" ; then
13824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826		fi
13827
13828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13830		fi
13831
13832		CFLAGS="$CFLAGS -Wnested-externs"
13833
13834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13835printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13836		cacheid=xorg_cv_cc_flag__Wnested_externs
13837		if eval test \${$cacheid+y}
13838then :
13839  printf %s "(cached) " >&6
13840else $as_nop
13841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h.  */
13843int i;
13844int
13845main (void)
13846{
13847
13848  ;
13849  return 0;
13850}
13851_ACEOF
13852if ac_fn_c_try_link "$LINENO"
13853then :
13854  eval $cacheid=yes
13855else $as_nop
13856  eval $cacheid=no
13857fi
13858rm -f core conftest.err conftest.$ac_objext conftest.beam \
13859    conftest$ac_exeext conftest.$ac_ext
13860fi
13861
13862
13863		CFLAGS="$xorg_testset_save_CFLAGS"
13864
13865		eval supported=\$$cacheid
13866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13867printf "%s\n" "$supported" >&6; }
13868		if test "$supported" = "yes" ; then
13869			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13870			found="yes"
13871		fi
13872	fi
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888xorg_testset_save_CFLAGS="$CFLAGS"
13889
13890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13894if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13895then :
13896  printf %s "(cached) " >&6
13897else $as_nop
13898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h.  */
13900int i;
13901_ACEOF
13902if ac_fn_c_try_compile "$LINENO"
13903then :
13904  xorg_cv_cc_flag_unknown_warning_option=yes
13905else $as_nop
13906  xorg_cv_cc_flag_unknown_warning_option=no
13907fi
13908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13909fi
13910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13913	CFLAGS="$xorg_testset_save_CFLAGS"
13914fi
13915
13916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13919	fi
13920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13923if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13924then :
13925  printf %s "(cached) " >&6
13926else $as_nop
13927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928/* end confdefs.h.  */
13929int i;
13930_ACEOF
13931if ac_fn_c_try_compile "$LINENO"
13932then :
13933  xorg_cv_cc_flag_unused_command_line_argument=yes
13934else $as_nop
13935  xorg_cv_cc_flag_unused_command_line_argument=no
13936fi
13937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13938fi
13939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13942	CFLAGS="$xorg_testset_save_CFLAGS"
13943fi
13944
13945found="no"
13946
13947	if test $found = "no" ; then
13948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13950		fi
13951
13952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13954		fi
13955
13956		CFLAGS="$CFLAGS -Wbad-function-cast"
13957
13958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13959printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13960		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13961		if eval test \${$cacheid+y}
13962then :
13963  printf %s "(cached) " >&6
13964else $as_nop
13965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h.  */
13967int i;
13968int
13969main (void)
13970{
13971
13972  ;
13973  return 0;
13974}
13975_ACEOF
13976if ac_fn_c_try_link "$LINENO"
13977then :
13978  eval $cacheid=yes
13979else $as_nop
13980  eval $cacheid=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext conftest.beam \
13983    conftest$ac_exeext conftest.$ac_ext
13984fi
13985
13986
13987		CFLAGS="$xorg_testset_save_CFLAGS"
13988
13989		eval supported=\$$cacheid
13990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13991printf "%s\n" "$supported" >&6; }
13992		if test "$supported" = "yes" ; then
13993			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13994			found="yes"
13995		fi
13996	fi
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012xorg_testset_save_CFLAGS="$CFLAGS"
14013
14014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14018if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14019then :
14020  printf %s "(cached) " >&6
14021else $as_nop
14022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023/* end confdefs.h.  */
14024int i;
14025_ACEOF
14026if ac_fn_c_try_compile "$LINENO"
14027then :
14028  xorg_cv_cc_flag_unknown_warning_option=yes
14029else $as_nop
14030  xorg_cv_cc_flag_unknown_warning_option=no
14031fi
14032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14033fi
14034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14037	CFLAGS="$xorg_testset_save_CFLAGS"
14038fi
14039
14040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14043	fi
14044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14048then :
14049  printf %s "(cached) " >&6
14050else $as_nop
14051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h.  */
14053int i;
14054_ACEOF
14055if ac_fn_c_try_compile "$LINENO"
14056then :
14057  xorg_cv_cc_flag_unused_command_line_argument=yes
14058else $as_nop
14059  xorg_cv_cc_flag_unused_command_line_argument=no
14060fi
14061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14062fi
14063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14066	CFLAGS="$xorg_testset_save_CFLAGS"
14067fi
14068
14069found="no"
14070
14071	if test $found = "no" ; then
14072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074		fi
14075
14076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14078		fi
14079
14080		CFLAGS="$CFLAGS -Wold-style-definition"
14081
14082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14083printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14084		cacheid=xorg_cv_cc_flag__Wold_style_definition
14085		if eval test \${$cacheid+y}
14086then :
14087  printf %s "(cached) " >&6
14088else $as_nop
14089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091int i;
14092int
14093main (void)
14094{
14095
14096  ;
14097  return 0;
14098}
14099_ACEOF
14100if ac_fn_c_try_link "$LINENO"
14101then :
14102  eval $cacheid=yes
14103else $as_nop
14104  eval $cacheid=no
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.beam \
14107    conftest$ac_exeext conftest.$ac_ext
14108fi
14109
14110
14111		CFLAGS="$xorg_testset_save_CFLAGS"
14112
14113		eval supported=\$$cacheid
14114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14115printf "%s\n" "$supported" >&6; }
14116		if test "$supported" = "yes" ; then
14117			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14118			found="yes"
14119		fi
14120	fi
14121
14122	if test $found = "no" ; then
14123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14125		fi
14126
14127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14129		fi
14130
14131		CFLAGS="$CFLAGS -fd"
14132
14133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14134printf %s "checking if $CC supports -fd... " >&6; }
14135		cacheid=xorg_cv_cc_flag__fd
14136		if eval test \${$cacheid+y}
14137then :
14138  printf %s "(cached) " >&6
14139else $as_nop
14140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h.  */
14142int i;
14143int
14144main (void)
14145{
14146
14147  ;
14148  return 0;
14149}
14150_ACEOF
14151if ac_fn_c_try_link "$LINENO"
14152then :
14153  eval $cacheid=yes
14154else $as_nop
14155  eval $cacheid=no
14156fi
14157rm -f core conftest.err conftest.$ac_objext conftest.beam \
14158    conftest$ac_exeext conftest.$ac_ext
14159fi
14160
14161
14162		CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164		eval supported=\$$cacheid
14165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166printf "%s\n" "$supported" >&6; }
14167		if test "$supported" = "yes" ; then
14168			BASE_CFLAGS="$BASE_CFLAGS -fd"
14169			found="yes"
14170		fi
14171	fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187xorg_testset_save_CFLAGS="$CFLAGS"
14188
14189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14194then :
14195  printf %s "(cached) " >&6
14196else $as_nop
14197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198/* end confdefs.h.  */
14199int i;
14200_ACEOF
14201if ac_fn_c_try_compile "$LINENO"
14202then :
14203  xorg_cv_cc_flag_unknown_warning_option=yes
14204else $as_nop
14205  xorg_cv_cc_flag_unknown_warning_option=no
14206fi
14207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14208fi
14209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212	CFLAGS="$xorg_testset_save_CFLAGS"
14213fi
14214
14215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218	fi
14219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14223then :
14224  printf %s "(cached) " >&6
14225else $as_nop
14226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h.  */
14228int i;
14229_ACEOF
14230if ac_fn_c_try_compile "$LINENO"
14231then :
14232  xorg_cv_cc_flag_unused_command_line_argument=yes
14233else $as_nop
14234  xorg_cv_cc_flag_unused_command_line_argument=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14237fi
14238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14241	CFLAGS="$xorg_testset_save_CFLAGS"
14242fi
14243
14244found="no"
14245
14246	if test $found = "no" ; then
14247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14249		fi
14250
14251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14253		fi
14254
14255		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14256
14257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14258printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14259		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14260		if eval test \${$cacheid+y}
14261then :
14262  printf %s "(cached) " >&6
14263else $as_nop
14264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265/* end confdefs.h.  */
14266int i;
14267int
14268main (void)
14269{
14270
14271  ;
14272  return 0;
14273}
14274_ACEOF
14275if ac_fn_c_try_link "$LINENO"
14276then :
14277  eval $cacheid=yes
14278else $as_nop
14279  eval $cacheid=no
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.beam \
14282    conftest$ac_exeext conftest.$ac_ext
14283fi
14284
14285
14286		CFLAGS="$xorg_testset_save_CFLAGS"
14287
14288		eval supported=\$$cacheid
14289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14290printf "%s\n" "$supported" >&6; }
14291		if test "$supported" = "yes" ; then
14292			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14293			found="yes"
14294		fi
14295	fi
14296
14297
14298
14299
14300
14301# This chunk adds additional warnings that could catch undesired effects.
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315xorg_testset_save_CFLAGS="$CFLAGS"
14316
14317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14322then :
14323  printf %s "(cached) " >&6
14324else $as_nop
14325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327int i;
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"
14330then :
14331  xorg_cv_cc_flag_unknown_warning_option=yes
14332else $as_nop
14333  xorg_cv_cc_flag_unknown_warning_option=no
14334fi
14335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14336fi
14337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14340	CFLAGS="$xorg_testset_save_CFLAGS"
14341fi
14342
14343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346	fi
14347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14351then :
14352  printf %s "(cached) " >&6
14353else $as_nop
14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356int i;
14357_ACEOF
14358if ac_fn_c_try_compile "$LINENO"
14359then :
14360  xorg_cv_cc_flag_unused_command_line_argument=yes
14361else $as_nop
14362  xorg_cv_cc_flag_unused_command_line_argument=no
14363fi
14364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14365fi
14366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14369	CFLAGS="$xorg_testset_save_CFLAGS"
14370fi
14371
14372found="no"
14373
14374	if test $found = "no" ; then
14375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377		fi
14378
14379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14381		fi
14382
14383		CFLAGS="$CFLAGS -Wunused"
14384
14385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14386printf %s "checking if $CC supports -Wunused... " >&6; }
14387		cacheid=xorg_cv_cc_flag__Wunused
14388		if eval test \${$cacheid+y}
14389then :
14390  printf %s "(cached) " >&6
14391else $as_nop
14392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394int i;
14395int
14396main (void)
14397{
14398
14399  ;
14400  return 0;
14401}
14402_ACEOF
14403if ac_fn_c_try_link "$LINENO"
14404then :
14405  eval $cacheid=yes
14406else $as_nop
14407  eval $cacheid=no
14408fi
14409rm -f core conftest.err conftest.$ac_objext conftest.beam \
14410    conftest$ac_exeext conftest.$ac_ext
14411fi
14412
14413
14414		CFLAGS="$xorg_testset_save_CFLAGS"
14415
14416		eval supported=\$$cacheid
14417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418printf "%s\n" "$supported" >&6; }
14419		if test "$supported" = "yes" ; then
14420			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14421			found="yes"
14422		fi
14423	fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439xorg_testset_save_CFLAGS="$CFLAGS"
14440
14441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14445if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14446then :
14447  printf %s "(cached) " >&6
14448else $as_nop
14449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h.  */
14451int i;
14452_ACEOF
14453if ac_fn_c_try_compile "$LINENO"
14454then :
14455  xorg_cv_cc_flag_unknown_warning_option=yes
14456else $as_nop
14457  xorg_cv_cc_flag_unknown_warning_option=no
14458fi
14459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14460fi
14461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14464	CFLAGS="$xorg_testset_save_CFLAGS"
14465fi
14466
14467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470	fi
14471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14475then :
14476  printf %s "(cached) " >&6
14477else $as_nop
14478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479/* end confdefs.h.  */
14480int i;
14481_ACEOF
14482if ac_fn_c_try_compile "$LINENO"
14483then :
14484  xorg_cv_cc_flag_unused_command_line_argument=yes
14485else $as_nop
14486  xorg_cv_cc_flag_unused_command_line_argument=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14489fi
14490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14493	CFLAGS="$xorg_testset_save_CFLAGS"
14494fi
14495
14496found="no"
14497
14498	if test $found = "no" ; then
14499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501		fi
14502
14503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14505		fi
14506
14507		CFLAGS="$CFLAGS -Wuninitialized"
14508
14509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14510printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14511		cacheid=xorg_cv_cc_flag__Wuninitialized
14512		if eval test \${$cacheid+y}
14513then :
14514  printf %s "(cached) " >&6
14515else $as_nop
14516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h.  */
14518int i;
14519int
14520main (void)
14521{
14522
14523  ;
14524  return 0;
14525}
14526_ACEOF
14527if ac_fn_c_try_link "$LINENO"
14528then :
14529  eval $cacheid=yes
14530else $as_nop
14531  eval $cacheid=no
14532fi
14533rm -f core conftest.err conftest.$ac_objext conftest.beam \
14534    conftest$ac_exeext conftest.$ac_ext
14535fi
14536
14537
14538		CFLAGS="$xorg_testset_save_CFLAGS"
14539
14540		eval supported=\$$cacheid
14541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14542printf "%s\n" "$supported" >&6; }
14543		if test "$supported" = "yes" ; then
14544			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14545			found="yes"
14546		fi
14547	fi
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563xorg_testset_save_CFLAGS="$CFLAGS"
14564
14565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14570then :
14571  printf %s "(cached) " >&6
14572else $as_nop
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575int i;
14576_ACEOF
14577if ac_fn_c_try_compile "$LINENO"
14578then :
14579  xorg_cv_cc_flag_unknown_warning_option=yes
14580else $as_nop
14581  xorg_cv_cc_flag_unknown_warning_option=no
14582fi
14583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14584fi
14585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14588	CFLAGS="$xorg_testset_save_CFLAGS"
14589fi
14590
14591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594	fi
14595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14599then :
14600  printf %s "(cached) " >&6
14601else $as_nop
14602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h.  */
14604int i;
14605_ACEOF
14606if ac_fn_c_try_compile "$LINENO"
14607then :
14608  xorg_cv_cc_flag_unused_command_line_argument=yes
14609else $as_nop
14610  xorg_cv_cc_flag_unused_command_line_argument=no
14611fi
14612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14613fi
14614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14617	CFLAGS="$xorg_testset_save_CFLAGS"
14618fi
14619
14620found="no"
14621
14622	if test $found = "no" ; then
14623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625		fi
14626
14627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14629		fi
14630
14631		CFLAGS="$CFLAGS -Wshadow"
14632
14633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14634printf %s "checking if $CC supports -Wshadow... " >&6; }
14635		cacheid=xorg_cv_cc_flag__Wshadow
14636		if eval test \${$cacheid+y}
14637then :
14638  printf %s "(cached) " >&6
14639else $as_nop
14640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h.  */
14642int i;
14643int
14644main (void)
14645{
14646
14647  ;
14648  return 0;
14649}
14650_ACEOF
14651if ac_fn_c_try_link "$LINENO"
14652then :
14653  eval $cacheid=yes
14654else $as_nop
14655  eval $cacheid=no
14656fi
14657rm -f core conftest.err conftest.$ac_objext conftest.beam \
14658    conftest$ac_exeext conftest.$ac_ext
14659fi
14660
14661
14662		CFLAGS="$xorg_testset_save_CFLAGS"
14663
14664		eval supported=\$$cacheid
14665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14666printf "%s\n" "$supported" >&6; }
14667		if test "$supported" = "yes" ; then
14668			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14669			found="yes"
14670		fi
14671	fi
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687xorg_testset_save_CFLAGS="$CFLAGS"
14688
14689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14694then :
14695  printf %s "(cached) " >&6
14696else $as_nop
14697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698/* end confdefs.h.  */
14699int i;
14700_ACEOF
14701if ac_fn_c_try_compile "$LINENO"
14702then :
14703  xorg_cv_cc_flag_unknown_warning_option=yes
14704else $as_nop
14705  xorg_cv_cc_flag_unknown_warning_option=no
14706fi
14707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14708fi
14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14712	CFLAGS="$xorg_testset_save_CFLAGS"
14713fi
14714
14715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718	fi
14719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14722if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14723then :
14724  printf %s "(cached) " >&6
14725else $as_nop
14726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727/* end confdefs.h.  */
14728int i;
14729_ACEOF
14730if ac_fn_c_try_compile "$LINENO"
14731then :
14732  xorg_cv_cc_flag_unused_command_line_argument=yes
14733else $as_nop
14734  xorg_cv_cc_flag_unused_command_line_argument=no
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14737fi
14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14741	CFLAGS="$xorg_testset_save_CFLAGS"
14742fi
14743
14744found="no"
14745
14746	if test $found = "no" ; then
14747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749		fi
14750
14751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753		fi
14754
14755		CFLAGS="$CFLAGS -Wmissing-noreturn"
14756
14757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14758printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14759		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14760		if eval test \${$cacheid+y}
14761then :
14762  printf %s "(cached) " >&6
14763else $as_nop
14764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766int i;
14767int
14768main (void)
14769{
14770
14771  ;
14772  return 0;
14773}
14774_ACEOF
14775if ac_fn_c_try_link "$LINENO"
14776then :
14777  eval $cacheid=yes
14778else $as_nop
14779  eval $cacheid=no
14780fi
14781rm -f core conftest.err conftest.$ac_objext conftest.beam \
14782    conftest$ac_exeext conftest.$ac_ext
14783fi
14784
14785
14786		CFLAGS="$xorg_testset_save_CFLAGS"
14787
14788		eval supported=\$$cacheid
14789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14790printf "%s\n" "$supported" >&6; }
14791		if test "$supported" = "yes" ; then
14792			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14793			found="yes"
14794		fi
14795	fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811xorg_testset_save_CFLAGS="$CFLAGS"
14812
14813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14817if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14818then :
14819  printf %s "(cached) " >&6
14820else $as_nop
14821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822/* end confdefs.h.  */
14823int i;
14824_ACEOF
14825if ac_fn_c_try_compile "$LINENO"
14826then :
14827  xorg_cv_cc_flag_unknown_warning_option=yes
14828else $as_nop
14829  xorg_cv_cc_flag_unknown_warning_option=no
14830fi
14831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14832fi
14833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14836	CFLAGS="$xorg_testset_save_CFLAGS"
14837fi
14838
14839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842	fi
14843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14847then :
14848  printf %s "(cached) " >&6
14849else $as_nop
14850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h.  */
14852int i;
14853_ACEOF
14854if ac_fn_c_try_compile "$LINENO"
14855then :
14856  xorg_cv_cc_flag_unused_command_line_argument=yes
14857else $as_nop
14858  xorg_cv_cc_flag_unused_command_line_argument=no
14859fi
14860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14861fi
14862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14865	CFLAGS="$xorg_testset_save_CFLAGS"
14866fi
14867
14868found="no"
14869
14870	if test $found = "no" ; then
14871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873		fi
14874
14875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14877		fi
14878
14879		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14880
14881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14882printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14883		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14884		if eval test \${$cacheid+y}
14885then :
14886  printf %s "(cached) " >&6
14887else $as_nop
14888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889/* end confdefs.h.  */
14890int i;
14891int
14892main (void)
14893{
14894
14895  ;
14896  return 0;
14897}
14898_ACEOF
14899if ac_fn_c_try_link "$LINENO"
14900then :
14901  eval $cacheid=yes
14902else $as_nop
14903  eval $cacheid=no
14904fi
14905rm -f core conftest.err conftest.$ac_objext conftest.beam \
14906    conftest$ac_exeext conftest.$ac_ext
14907fi
14908
14909
14910		CFLAGS="$xorg_testset_save_CFLAGS"
14911
14912		eval supported=\$$cacheid
14913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14914printf "%s\n" "$supported" >&6; }
14915		if test "$supported" = "yes" ; then
14916			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14917			found="yes"
14918		fi
14919	fi
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935xorg_testset_save_CFLAGS="$CFLAGS"
14936
14937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14941if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14942then :
14943  printf %s "(cached) " >&6
14944else $as_nop
14945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946/* end confdefs.h.  */
14947int i;
14948_ACEOF
14949if ac_fn_c_try_compile "$LINENO"
14950then :
14951  xorg_cv_cc_flag_unknown_warning_option=yes
14952else $as_nop
14953  xorg_cv_cc_flag_unknown_warning_option=no
14954fi
14955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14956fi
14957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14960	CFLAGS="$xorg_testset_save_CFLAGS"
14961fi
14962
14963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966	fi
14967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14970if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14971then :
14972  printf %s "(cached) " >&6
14973else $as_nop
14974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975/* end confdefs.h.  */
14976int i;
14977_ACEOF
14978if ac_fn_c_try_compile "$LINENO"
14979then :
14980  xorg_cv_cc_flag_unused_command_line_argument=yes
14981else $as_nop
14982  xorg_cv_cc_flag_unused_command_line_argument=no
14983fi
14984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14985fi
14986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14989	CFLAGS="$xorg_testset_save_CFLAGS"
14990fi
14991
14992found="no"
14993
14994	if test $found = "no" ; then
14995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997		fi
14998
14999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15001		fi
15002
15003		CFLAGS="$CFLAGS -Wredundant-decls"
15004
15005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15006printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15007		cacheid=xorg_cv_cc_flag__Wredundant_decls
15008		if eval test \${$cacheid+y}
15009then :
15010  printf %s "(cached) " >&6
15011else $as_nop
15012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h.  */
15014int i;
15015int
15016main (void)
15017{
15018
15019  ;
15020  return 0;
15021}
15022_ACEOF
15023if ac_fn_c_try_link "$LINENO"
15024then :
15025  eval $cacheid=yes
15026else $as_nop
15027  eval $cacheid=no
15028fi
15029rm -f core conftest.err conftest.$ac_objext conftest.beam \
15030    conftest$ac_exeext conftest.$ac_ext
15031fi
15032
15033
15034		CFLAGS="$xorg_testset_save_CFLAGS"
15035
15036		eval supported=\$$cacheid
15037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15038printf "%s\n" "$supported" >&6; }
15039		if test "$supported" = "yes" ; then
15040			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15041			found="yes"
15042		fi
15043	fi
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059xorg_testset_save_CFLAGS="$CFLAGS"
15060
15061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15065if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15066then :
15067  printf %s "(cached) " >&6
15068else $as_nop
15069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070/* end confdefs.h.  */
15071int i;
15072_ACEOF
15073if ac_fn_c_try_compile "$LINENO"
15074then :
15075  xorg_cv_cc_flag_unknown_warning_option=yes
15076else $as_nop
15077  xorg_cv_cc_flag_unknown_warning_option=no
15078fi
15079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15080fi
15081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15084	CFLAGS="$xorg_testset_save_CFLAGS"
15085fi
15086
15087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15090	fi
15091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15094if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15095then :
15096  printf %s "(cached) " >&6
15097else $as_nop
15098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099/* end confdefs.h.  */
15100int i;
15101_ACEOF
15102if ac_fn_c_try_compile "$LINENO"
15103then :
15104  xorg_cv_cc_flag_unused_command_line_argument=yes
15105else $as_nop
15106  xorg_cv_cc_flag_unused_command_line_argument=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15109fi
15110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15113	CFLAGS="$xorg_testset_save_CFLAGS"
15114fi
15115
15116found="no"
15117
15118	if test $found = "no" ; then
15119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121		fi
15122
15123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15125		fi
15126
15127		CFLAGS="$CFLAGS -Wlogical-op"
15128
15129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15130printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15131		cacheid=xorg_cv_cc_flag__Wlogical_op
15132		if eval test \${$cacheid+y}
15133then :
15134  printf %s "(cached) " >&6
15135else $as_nop
15136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h.  */
15138int i;
15139int
15140main (void)
15141{
15142
15143  ;
15144  return 0;
15145}
15146_ACEOF
15147if ac_fn_c_try_link "$LINENO"
15148then :
15149  eval $cacheid=yes
15150else $as_nop
15151  eval $cacheid=no
15152fi
15153rm -f core conftest.err conftest.$ac_objext conftest.beam \
15154    conftest$ac_exeext conftest.$ac_ext
15155fi
15156
15157
15158		CFLAGS="$xorg_testset_save_CFLAGS"
15159
15160		eval supported=\$$cacheid
15161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15162printf "%s\n" "$supported" >&6; }
15163		if test "$supported" = "yes" ; then
15164			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15165			found="yes"
15166		fi
15167	fi
15168
15169
15170
15171# These are currently disabled because they are noisy.  They will be enabled
15172# in the future once the codebase is sufficiently modernized to silence
15173# them.  For now, I don't want them to drown out the other warnings.
15174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15175# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15176# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15177
15178# Turn some warnings into errors, so we don't accidently get successful builds
15179# when there are problems that should be fixed.
15180
15181if test "x$SELECTIVE_WERROR" = "xyes" ; then
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195xorg_testset_save_CFLAGS="$CFLAGS"
15196
15197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15202then :
15203  printf %s "(cached) " >&6
15204else $as_nop
15205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h.  */
15207int i;
15208_ACEOF
15209if ac_fn_c_try_compile "$LINENO"
15210then :
15211  xorg_cv_cc_flag_unknown_warning_option=yes
15212else $as_nop
15213  xorg_cv_cc_flag_unknown_warning_option=no
15214fi
15215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15216fi
15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15220	CFLAGS="$xorg_testset_save_CFLAGS"
15221fi
15222
15223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15226	fi
15227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15231then :
15232  printf %s "(cached) " >&6
15233else $as_nop
15234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h.  */
15236int i;
15237_ACEOF
15238if ac_fn_c_try_compile "$LINENO"
15239then :
15240  xorg_cv_cc_flag_unused_command_line_argument=yes
15241else $as_nop
15242  xorg_cv_cc_flag_unused_command_line_argument=no
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15245fi
15246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15249	CFLAGS="$xorg_testset_save_CFLAGS"
15250fi
15251
15252found="no"
15253
15254	if test $found = "no" ; then
15255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15257		fi
15258
15259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15261		fi
15262
15263		CFLAGS="$CFLAGS -Werror=implicit"
15264
15265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15266printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15267		cacheid=xorg_cv_cc_flag__Werror_implicit
15268		if eval test \${$cacheid+y}
15269then :
15270  printf %s "(cached) " >&6
15271else $as_nop
15272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273/* end confdefs.h.  */
15274int i;
15275int
15276main (void)
15277{
15278
15279  ;
15280  return 0;
15281}
15282_ACEOF
15283if ac_fn_c_try_link "$LINENO"
15284then :
15285  eval $cacheid=yes
15286else $as_nop
15287  eval $cacheid=no
15288fi
15289rm -f core conftest.err conftest.$ac_objext conftest.beam \
15290    conftest$ac_exeext conftest.$ac_ext
15291fi
15292
15293
15294		CFLAGS="$xorg_testset_save_CFLAGS"
15295
15296		eval supported=\$$cacheid
15297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15298printf "%s\n" "$supported" >&6; }
15299		if test "$supported" = "yes" ; then
15300			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15301			found="yes"
15302		fi
15303	fi
15304
15305	if test $found = "no" ; then
15306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15308		fi
15309
15310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15312		fi
15313
15314		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15315
15316		{ 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
15317printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15318		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15319		if eval test \${$cacheid+y}
15320then :
15321  printf %s "(cached) " >&6
15322else $as_nop
15323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324/* end confdefs.h.  */
15325int i;
15326int
15327main (void)
15328{
15329
15330  ;
15331  return 0;
15332}
15333_ACEOF
15334if ac_fn_c_try_link "$LINENO"
15335then :
15336  eval $cacheid=yes
15337else $as_nop
15338  eval $cacheid=no
15339fi
15340rm -f core conftest.err conftest.$ac_objext conftest.beam \
15341    conftest$ac_exeext conftest.$ac_ext
15342fi
15343
15344
15345		CFLAGS="$xorg_testset_save_CFLAGS"
15346
15347		eval supported=\$$cacheid
15348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15349printf "%s\n" "$supported" >&6; }
15350		if test "$supported" = "yes" ; then
15351			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15352			found="yes"
15353		fi
15354	fi
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370xorg_testset_save_CFLAGS="$CFLAGS"
15371
15372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15376if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15377then :
15378  printf %s "(cached) " >&6
15379else $as_nop
15380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382int i;
15383_ACEOF
15384if ac_fn_c_try_compile "$LINENO"
15385then :
15386  xorg_cv_cc_flag_unknown_warning_option=yes
15387else $as_nop
15388  xorg_cv_cc_flag_unknown_warning_option=no
15389fi
15390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15391fi
15392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15395	CFLAGS="$xorg_testset_save_CFLAGS"
15396fi
15397
15398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401	fi
15402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15405if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15406then :
15407  printf %s "(cached) " >&6
15408else $as_nop
15409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410/* end confdefs.h.  */
15411int i;
15412_ACEOF
15413if ac_fn_c_try_compile "$LINENO"
15414then :
15415  xorg_cv_cc_flag_unused_command_line_argument=yes
15416else $as_nop
15417  xorg_cv_cc_flag_unused_command_line_argument=no
15418fi
15419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15420fi
15421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15424	CFLAGS="$xorg_testset_save_CFLAGS"
15425fi
15426
15427found="no"
15428
15429	if test $found = "no" ; then
15430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432		fi
15433
15434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15436		fi
15437
15438		CFLAGS="$CFLAGS -Werror=nonnull"
15439
15440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15441printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15442		cacheid=xorg_cv_cc_flag__Werror_nonnull
15443		if eval test \${$cacheid+y}
15444then :
15445  printf %s "(cached) " >&6
15446else $as_nop
15447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449int i;
15450int
15451main (void)
15452{
15453
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_link "$LINENO"
15459then :
15460  eval $cacheid=yes
15461else $as_nop
15462  eval $cacheid=no
15463fi
15464rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465    conftest$ac_exeext conftest.$ac_ext
15466fi
15467
15468
15469		CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471		eval supported=\$$cacheid
15472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473printf "%s\n" "$supported" >&6; }
15474		if test "$supported" = "yes" ; then
15475			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15476			found="yes"
15477		fi
15478	fi
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494xorg_testset_save_CFLAGS="$CFLAGS"
15495
15496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15500if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15501then :
15502  printf %s "(cached) " >&6
15503else $as_nop
15504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505/* end confdefs.h.  */
15506int i;
15507_ACEOF
15508if ac_fn_c_try_compile "$LINENO"
15509then :
15510  xorg_cv_cc_flag_unknown_warning_option=yes
15511else $as_nop
15512  xorg_cv_cc_flag_unknown_warning_option=no
15513fi
15514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15515fi
15516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15519	CFLAGS="$xorg_testset_save_CFLAGS"
15520fi
15521
15522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525	fi
15526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15529if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15530then :
15531  printf %s "(cached) " >&6
15532else $as_nop
15533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535int i;
15536_ACEOF
15537if ac_fn_c_try_compile "$LINENO"
15538then :
15539  xorg_cv_cc_flag_unused_command_line_argument=yes
15540else $as_nop
15541  xorg_cv_cc_flag_unused_command_line_argument=no
15542fi
15543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15544fi
15545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15548	CFLAGS="$xorg_testset_save_CFLAGS"
15549fi
15550
15551found="no"
15552
15553	if test $found = "no" ; then
15554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556		fi
15557
15558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15560		fi
15561
15562		CFLAGS="$CFLAGS -Werror=init-self"
15563
15564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15565printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15566		cacheid=xorg_cv_cc_flag__Werror_init_self
15567		if eval test \${$cacheid+y}
15568then :
15569  printf %s "(cached) " >&6
15570else $as_nop
15571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572/* end confdefs.h.  */
15573int i;
15574int
15575main (void)
15576{
15577
15578  ;
15579  return 0;
15580}
15581_ACEOF
15582if ac_fn_c_try_link "$LINENO"
15583then :
15584  eval $cacheid=yes
15585else $as_nop
15586  eval $cacheid=no
15587fi
15588rm -f core conftest.err conftest.$ac_objext conftest.beam \
15589    conftest$ac_exeext conftest.$ac_ext
15590fi
15591
15592
15593		CFLAGS="$xorg_testset_save_CFLAGS"
15594
15595		eval supported=\$$cacheid
15596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15597printf "%s\n" "$supported" >&6; }
15598		if test "$supported" = "yes" ; then
15599			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15600			found="yes"
15601		fi
15602	fi
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618xorg_testset_save_CFLAGS="$CFLAGS"
15619
15620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15625then :
15626  printf %s "(cached) " >&6
15627else $as_nop
15628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int i;
15631_ACEOF
15632if ac_fn_c_try_compile "$LINENO"
15633then :
15634  xorg_cv_cc_flag_unknown_warning_option=yes
15635else $as_nop
15636  xorg_cv_cc_flag_unknown_warning_option=no
15637fi
15638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15639fi
15640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15643	CFLAGS="$xorg_testset_save_CFLAGS"
15644fi
15645
15646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15649	fi
15650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15654then :
15655  printf %s "(cached) " >&6
15656else $as_nop
15657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659int i;
15660_ACEOF
15661if ac_fn_c_try_compile "$LINENO"
15662then :
15663  xorg_cv_cc_flag_unused_command_line_argument=yes
15664else $as_nop
15665  xorg_cv_cc_flag_unused_command_line_argument=no
15666fi
15667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15668fi
15669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15672	CFLAGS="$xorg_testset_save_CFLAGS"
15673fi
15674
15675found="no"
15676
15677	if test $found = "no" ; then
15678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15680		fi
15681
15682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15684		fi
15685
15686		CFLAGS="$CFLAGS -Werror=main"
15687
15688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15689printf %s "checking if $CC supports -Werror=main... " >&6; }
15690		cacheid=xorg_cv_cc_flag__Werror_main
15691		if eval test \${$cacheid+y}
15692then :
15693  printf %s "(cached) " >&6
15694else $as_nop
15695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696/* end confdefs.h.  */
15697int i;
15698int
15699main (void)
15700{
15701
15702  ;
15703  return 0;
15704}
15705_ACEOF
15706if ac_fn_c_try_link "$LINENO"
15707then :
15708  eval $cacheid=yes
15709else $as_nop
15710  eval $cacheid=no
15711fi
15712rm -f core conftest.err conftest.$ac_objext conftest.beam \
15713    conftest$ac_exeext conftest.$ac_ext
15714fi
15715
15716
15717		CFLAGS="$xorg_testset_save_CFLAGS"
15718
15719		eval supported=\$$cacheid
15720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15721printf "%s\n" "$supported" >&6; }
15722		if test "$supported" = "yes" ; then
15723			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15724			found="yes"
15725		fi
15726	fi
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742xorg_testset_save_CFLAGS="$CFLAGS"
15743
15744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15749then :
15750  printf %s "(cached) " >&6
15751else $as_nop
15752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753/* end confdefs.h.  */
15754int i;
15755_ACEOF
15756if ac_fn_c_try_compile "$LINENO"
15757then :
15758  xorg_cv_cc_flag_unknown_warning_option=yes
15759else $as_nop
15760  xorg_cv_cc_flag_unknown_warning_option=no
15761fi
15762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15763fi
15764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15767	CFLAGS="$xorg_testset_save_CFLAGS"
15768fi
15769
15770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773	fi
15774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15778then :
15779  printf %s "(cached) " >&6
15780else $as_nop
15781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782/* end confdefs.h.  */
15783int i;
15784_ACEOF
15785if ac_fn_c_try_compile "$LINENO"
15786then :
15787  xorg_cv_cc_flag_unused_command_line_argument=yes
15788else $as_nop
15789  xorg_cv_cc_flag_unused_command_line_argument=no
15790fi
15791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15792fi
15793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15796	CFLAGS="$xorg_testset_save_CFLAGS"
15797fi
15798
15799found="no"
15800
15801	if test $found = "no" ; then
15802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804		fi
15805
15806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15808		fi
15809
15810		CFLAGS="$CFLAGS -Werror=missing-braces"
15811
15812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15813printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15814		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15815		if eval test \${$cacheid+y}
15816then :
15817  printf %s "(cached) " >&6
15818else $as_nop
15819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820/* end confdefs.h.  */
15821int i;
15822int
15823main (void)
15824{
15825
15826  ;
15827  return 0;
15828}
15829_ACEOF
15830if ac_fn_c_try_link "$LINENO"
15831then :
15832  eval $cacheid=yes
15833else $as_nop
15834  eval $cacheid=no
15835fi
15836rm -f core conftest.err conftest.$ac_objext conftest.beam \
15837    conftest$ac_exeext conftest.$ac_ext
15838fi
15839
15840
15841		CFLAGS="$xorg_testset_save_CFLAGS"
15842
15843		eval supported=\$$cacheid
15844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15845printf "%s\n" "$supported" >&6; }
15846		if test "$supported" = "yes" ; then
15847			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15848			found="yes"
15849		fi
15850	fi
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866xorg_testset_save_CFLAGS="$CFLAGS"
15867
15868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15872if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15873then :
15874  printf %s "(cached) " >&6
15875else $as_nop
15876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h.  */
15878int i;
15879_ACEOF
15880if ac_fn_c_try_compile "$LINENO"
15881then :
15882  xorg_cv_cc_flag_unknown_warning_option=yes
15883else $as_nop
15884  xorg_cv_cc_flag_unknown_warning_option=no
15885fi
15886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15887fi
15888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15891	CFLAGS="$xorg_testset_save_CFLAGS"
15892fi
15893
15894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15897	fi
15898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15901if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15902then :
15903  printf %s "(cached) " >&6
15904else $as_nop
15905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907int i;
15908_ACEOF
15909if ac_fn_c_try_compile "$LINENO"
15910then :
15911  xorg_cv_cc_flag_unused_command_line_argument=yes
15912else $as_nop
15913  xorg_cv_cc_flag_unused_command_line_argument=no
15914fi
15915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15916fi
15917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15920	CFLAGS="$xorg_testset_save_CFLAGS"
15921fi
15922
15923found="no"
15924
15925	if test $found = "no" ; then
15926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928		fi
15929
15930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15932		fi
15933
15934		CFLAGS="$CFLAGS -Werror=sequence-point"
15935
15936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15937printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15938		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15939		if eval test \${$cacheid+y}
15940then :
15941  printf %s "(cached) " >&6
15942else $as_nop
15943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h.  */
15945int i;
15946int
15947main (void)
15948{
15949
15950  ;
15951  return 0;
15952}
15953_ACEOF
15954if ac_fn_c_try_link "$LINENO"
15955then :
15956  eval $cacheid=yes
15957else $as_nop
15958  eval $cacheid=no
15959fi
15960rm -f core conftest.err conftest.$ac_objext conftest.beam \
15961    conftest$ac_exeext conftest.$ac_ext
15962fi
15963
15964
15965		CFLAGS="$xorg_testset_save_CFLAGS"
15966
15967		eval supported=\$$cacheid
15968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15969printf "%s\n" "$supported" >&6; }
15970		if test "$supported" = "yes" ; then
15971			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15972			found="yes"
15973		fi
15974	fi
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990xorg_testset_save_CFLAGS="$CFLAGS"
15991
15992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15997then :
15998  printf %s "(cached) " >&6
15999else $as_nop
16000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001/* end confdefs.h.  */
16002int i;
16003_ACEOF
16004if ac_fn_c_try_compile "$LINENO"
16005then :
16006  xorg_cv_cc_flag_unknown_warning_option=yes
16007else $as_nop
16008  xorg_cv_cc_flag_unknown_warning_option=no
16009fi
16010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16011fi
16012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16015	CFLAGS="$xorg_testset_save_CFLAGS"
16016fi
16017
16018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021	fi
16022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16026then :
16027  printf %s "(cached) " >&6
16028else $as_nop
16029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030/* end confdefs.h.  */
16031int i;
16032_ACEOF
16033if ac_fn_c_try_compile "$LINENO"
16034then :
16035  xorg_cv_cc_flag_unused_command_line_argument=yes
16036else $as_nop
16037  xorg_cv_cc_flag_unused_command_line_argument=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16040fi
16041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16044	CFLAGS="$xorg_testset_save_CFLAGS"
16045fi
16046
16047found="no"
16048
16049	if test $found = "no" ; then
16050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052		fi
16053
16054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16056		fi
16057
16058		CFLAGS="$CFLAGS -Werror=return-type"
16059
16060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16061printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16062		cacheid=xorg_cv_cc_flag__Werror_return_type
16063		if eval test \${$cacheid+y}
16064then :
16065  printf %s "(cached) " >&6
16066else $as_nop
16067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h.  */
16069int i;
16070int
16071main (void)
16072{
16073
16074  ;
16075  return 0;
16076}
16077_ACEOF
16078if ac_fn_c_try_link "$LINENO"
16079then :
16080  eval $cacheid=yes
16081else $as_nop
16082  eval $cacheid=no
16083fi
16084rm -f core conftest.err conftest.$ac_objext conftest.beam \
16085    conftest$ac_exeext conftest.$ac_ext
16086fi
16087
16088
16089		CFLAGS="$xorg_testset_save_CFLAGS"
16090
16091		eval supported=\$$cacheid
16092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16093printf "%s\n" "$supported" >&6; }
16094		if test "$supported" = "yes" ; then
16095			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16096			found="yes"
16097		fi
16098	fi
16099
16100	if test $found = "no" ; then
16101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103		fi
16104
16105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107		fi
16108
16109		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16110
16111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16112printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16113		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16114		if eval test \${$cacheid+y}
16115then :
16116  printf %s "(cached) " >&6
16117else $as_nop
16118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119/* end confdefs.h.  */
16120int i;
16121int
16122main (void)
16123{
16124
16125  ;
16126  return 0;
16127}
16128_ACEOF
16129if ac_fn_c_try_link "$LINENO"
16130then :
16131  eval $cacheid=yes
16132else $as_nop
16133  eval $cacheid=no
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.beam \
16136    conftest$ac_exeext conftest.$ac_ext
16137fi
16138
16139
16140		CFLAGS="$xorg_testset_save_CFLAGS"
16141
16142		eval supported=\$$cacheid
16143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16144printf "%s\n" "$supported" >&6; }
16145		if test "$supported" = "yes" ; then
16146			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16147			found="yes"
16148		fi
16149	fi
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165xorg_testset_save_CFLAGS="$CFLAGS"
16166
16167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16172then :
16173  printf %s "(cached) " >&6
16174else $as_nop
16175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177int i;
16178_ACEOF
16179if ac_fn_c_try_compile "$LINENO"
16180then :
16181  xorg_cv_cc_flag_unknown_warning_option=yes
16182else $as_nop
16183  xorg_cv_cc_flag_unknown_warning_option=no
16184fi
16185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16186fi
16187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16190	CFLAGS="$xorg_testset_save_CFLAGS"
16191fi
16192
16193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196	fi
16197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16201then :
16202  printf %s "(cached) " >&6
16203else $as_nop
16204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205/* end confdefs.h.  */
16206int i;
16207_ACEOF
16208if ac_fn_c_try_compile "$LINENO"
16209then :
16210  xorg_cv_cc_flag_unused_command_line_argument=yes
16211else $as_nop
16212  xorg_cv_cc_flag_unused_command_line_argument=no
16213fi
16214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16215fi
16216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16219	CFLAGS="$xorg_testset_save_CFLAGS"
16220fi
16221
16222found="no"
16223
16224	if test $found = "no" ; then
16225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227		fi
16228
16229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231		fi
16232
16233		CFLAGS="$CFLAGS -Werror=trigraphs"
16234
16235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16236printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16237		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16238		if eval test \${$cacheid+y}
16239then :
16240  printf %s "(cached) " >&6
16241else $as_nop
16242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h.  */
16244int i;
16245int
16246main (void)
16247{
16248
16249  ;
16250  return 0;
16251}
16252_ACEOF
16253if ac_fn_c_try_link "$LINENO"
16254then :
16255  eval $cacheid=yes
16256else $as_nop
16257  eval $cacheid=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.beam \
16260    conftest$ac_exeext conftest.$ac_ext
16261fi
16262
16263
16264		CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266		eval supported=\$$cacheid
16267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268printf "%s\n" "$supported" >&6; }
16269		if test "$supported" = "yes" ; then
16270			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16271			found="yes"
16272		fi
16273	fi
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289xorg_testset_save_CFLAGS="$CFLAGS"
16290
16291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16295if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16296then :
16297  printf %s "(cached) " >&6
16298else $as_nop
16299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300/* end confdefs.h.  */
16301int i;
16302_ACEOF
16303if ac_fn_c_try_compile "$LINENO"
16304then :
16305  xorg_cv_cc_flag_unknown_warning_option=yes
16306else $as_nop
16307  xorg_cv_cc_flag_unknown_warning_option=no
16308fi
16309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16310fi
16311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16314	CFLAGS="$xorg_testset_save_CFLAGS"
16315fi
16316
16317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320	fi
16321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16325then :
16326  printf %s "(cached) " >&6
16327else $as_nop
16328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h.  */
16330int i;
16331_ACEOF
16332if ac_fn_c_try_compile "$LINENO"
16333then :
16334  xorg_cv_cc_flag_unused_command_line_argument=yes
16335else $as_nop
16336  xorg_cv_cc_flag_unused_command_line_argument=no
16337fi
16338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16339fi
16340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16343	CFLAGS="$xorg_testset_save_CFLAGS"
16344fi
16345
16346found="no"
16347
16348	if test $found = "no" ; then
16349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16351		fi
16352
16353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16355		fi
16356
16357		CFLAGS="$CFLAGS -Werror=array-bounds"
16358
16359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16360printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16361		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16362		if eval test \${$cacheid+y}
16363then :
16364  printf %s "(cached) " >&6
16365else $as_nop
16366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367/* end confdefs.h.  */
16368int i;
16369int
16370main (void)
16371{
16372
16373  ;
16374  return 0;
16375}
16376_ACEOF
16377if ac_fn_c_try_link "$LINENO"
16378then :
16379  eval $cacheid=yes
16380else $as_nop
16381  eval $cacheid=no
16382fi
16383rm -f core conftest.err conftest.$ac_objext conftest.beam \
16384    conftest$ac_exeext conftest.$ac_ext
16385fi
16386
16387
16388		CFLAGS="$xorg_testset_save_CFLAGS"
16389
16390		eval supported=\$$cacheid
16391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16392printf "%s\n" "$supported" >&6; }
16393		if test "$supported" = "yes" ; then
16394			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16395			found="yes"
16396		fi
16397	fi
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413xorg_testset_save_CFLAGS="$CFLAGS"
16414
16415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16419if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16420then :
16421  printf %s "(cached) " >&6
16422else $as_nop
16423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424/* end confdefs.h.  */
16425int i;
16426_ACEOF
16427if ac_fn_c_try_compile "$LINENO"
16428then :
16429  xorg_cv_cc_flag_unknown_warning_option=yes
16430else $as_nop
16431  xorg_cv_cc_flag_unknown_warning_option=no
16432fi
16433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16434fi
16435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16438	CFLAGS="$xorg_testset_save_CFLAGS"
16439fi
16440
16441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16444	fi
16445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16448if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16449then :
16450  printf %s "(cached) " >&6
16451else $as_nop
16452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h.  */
16454int i;
16455_ACEOF
16456if ac_fn_c_try_compile "$LINENO"
16457then :
16458  xorg_cv_cc_flag_unused_command_line_argument=yes
16459else $as_nop
16460  xorg_cv_cc_flag_unused_command_line_argument=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16463fi
16464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16467	CFLAGS="$xorg_testset_save_CFLAGS"
16468fi
16469
16470found="no"
16471
16472	if test $found = "no" ; then
16473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16475		fi
16476
16477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16479		fi
16480
16481		CFLAGS="$CFLAGS -Werror=write-strings"
16482
16483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16484printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16485		cacheid=xorg_cv_cc_flag__Werror_write_strings
16486		if eval test \${$cacheid+y}
16487then :
16488  printf %s "(cached) " >&6
16489else $as_nop
16490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491/* end confdefs.h.  */
16492int i;
16493int
16494main (void)
16495{
16496
16497  ;
16498  return 0;
16499}
16500_ACEOF
16501if ac_fn_c_try_link "$LINENO"
16502then :
16503  eval $cacheid=yes
16504else $as_nop
16505  eval $cacheid=no
16506fi
16507rm -f core conftest.err conftest.$ac_objext conftest.beam \
16508    conftest$ac_exeext conftest.$ac_ext
16509fi
16510
16511
16512		CFLAGS="$xorg_testset_save_CFLAGS"
16513
16514		eval supported=\$$cacheid
16515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16516printf "%s\n" "$supported" >&6; }
16517		if test "$supported" = "yes" ; then
16518			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16519			found="yes"
16520		fi
16521	fi
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537xorg_testset_save_CFLAGS="$CFLAGS"
16538
16539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16544then :
16545  printf %s "(cached) " >&6
16546else $as_nop
16547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h.  */
16549int i;
16550_ACEOF
16551if ac_fn_c_try_compile "$LINENO"
16552then :
16553  xorg_cv_cc_flag_unknown_warning_option=yes
16554else $as_nop
16555  xorg_cv_cc_flag_unknown_warning_option=no
16556fi
16557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16558fi
16559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16562	CFLAGS="$xorg_testset_save_CFLAGS"
16563fi
16564
16565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16568	fi
16569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16572if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16573then :
16574  printf %s "(cached) " >&6
16575else $as_nop
16576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h.  */
16578int i;
16579_ACEOF
16580if ac_fn_c_try_compile "$LINENO"
16581then :
16582  xorg_cv_cc_flag_unused_command_line_argument=yes
16583else $as_nop
16584  xorg_cv_cc_flag_unused_command_line_argument=no
16585fi
16586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16587fi
16588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16591	CFLAGS="$xorg_testset_save_CFLAGS"
16592fi
16593
16594found="no"
16595
16596	if test $found = "no" ; then
16597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599		fi
16600
16601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16603		fi
16604
16605		CFLAGS="$CFLAGS -Werror=address"
16606
16607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16608printf %s "checking if $CC supports -Werror=address... " >&6; }
16609		cacheid=xorg_cv_cc_flag__Werror_address
16610		if eval test \${$cacheid+y}
16611then :
16612  printf %s "(cached) " >&6
16613else $as_nop
16614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615/* end confdefs.h.  */
16616int i;
16617int
16618main (void)
16619{
16620
16621  ;
16622  return 0;
16623}
16624_ACEOF
16625if ac_fn_c_try_link "$LINENO"
16626then :
16627  eval $cacheid=yes
16628else $as_nop
16629  eval $cacheid=no
16630fi
16631rm -f core conftest.err conftest.$ac_objext conftest.beam \
16632    conftest$ac_exeext conftest.$ac_ext
16633fi
16634
16635
16636		CFLAGS="$xorg_testset_save_CFLAGS"
16637
16638		eval supported=\$$cacheid
16639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16640printf "%s\n" "$supported" >&6; }
16641		if test "$supported" = "yes" ; then
16642			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16643			found="yes"
16644		fi
16645	fi
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661xorg_testset_save_CFLAGS="$CFLAGS"
16662
16663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16668then :
16669  printf %s "(cached) " >&6
16670else $as_nop
16671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672/* end confdefs.h.  */
16673int i;
16674_ACEOF
16675if ac_fn_c_try_compile "$LINENO"
16676then :
16677  xorg_cv_cc_flag_unknown_warning_option=yes
16678else $as_nop
16679  xorg_cv_cc_flag_unknown_warning_option=no
16680fi
16681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16682fi
16683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16686	CFLAGS="$xorg_testset_save_CFLAGS"
16687fi
16688
16689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16692	fi
16693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16697then :
16698  printf %s "(cached) " >&6
16699else $as_nop
16700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h.  */
16702int i;
16703_ACEOF
16704if ac_fn_c_try_compile "$LINENO"
16705then :
16706  xorg_cv_cc_flag_unused_command_line_argument=yes
16707else $as_nop
16708  xorg_cv_cc_flag_unused_command_line_argument=no
16709fi
16710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16711fi
16712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16715	CFLAGS="$xorg_testset_save_CFLAGS"
16716fi
16717
16718found="no"
16719
16720	if test $found = "no" ; then
16721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723		fi
16724
16725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16727		fi
16728
16729		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16730
16731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16732printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16733		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16734		if eval test \${$cacheid+y}
16735then :
16736  printf %s "(cached) " >&6
16737else $as_nop
16738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h.  */
16740int i;
16741int
16742main (void)
16743{
16744
16745  ;
16746  return 0;
16747}
16748_ACEOF
16749if ac_fn_c_try_link "$LINENO"
16750then :
16751  eval $cacheid=yes
16752else $as_nop
16753  eval $cacheid=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext conftest.beam \
16756    conftest$ac_exeext conftest.$ac_ext
16757fi
16758
16759
16760		CFLAGS="$xorg_testset_save_CFLAGS"
16761
16762		eval supported=\$$cacheid
16763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16764printf "%s\n" "$supported" >&6; }
16765		if test "$supported" = "yes" ; then
16766			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16767			found="yes"
16768		fi
16769	fi
16770
16771	if test $found = "no" ; then
16772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16774		fi
16775
16776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778		fi
16779
16780		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16781
16782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16783printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16784		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16785		if eval test \${$cacheid+y}
16786then :
16787  printf %s "(cached) " >&6
16788else $as_nop
16789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790/* end confdefs.h.  */
16791int i;
16792int
16793main (void)
16794{
16795
16796  ;
16797  return 0;
16798}
16799_ACEOF
16800if ac_fn_c_try_link "$LINENO"
16801then :
16802  eval $cacheid=yes
16803else $as_nop
16804  eval $cacheid=no
16805fi
16806rm -f core conftest.err conftest.$ac_objext conftest.beam \
16807    conftest$ac_exeext conftest.$ac_ext
16808fi
16809
16810
16811		CFLAGS="$xorg_testset_save_CFLAGS"
16812
16813		eval supported=\$$cacheid
16814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16815printf "%s\n" "$supported" >&6; }
16816		if test "$supported" = "yes" ; then
16817			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16818			found="yes"
16819		fi
16820	fi
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836xorg_testset_save_CFLAGS="$CFLAGS"
16837
16838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16842if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16843then :
16844  printf %s "(cached) " >&6
16845else $as_nop
16846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847/* end confdefs.h.  */
16848int i;
16849_ACEOF
16850if ac_fn_c_try_compile "$LINENO"
16851then :
16852  xorg_cv_cc_flag_unknown_warning_option=yes
16853else $as_nop
16854  xorg_cv_cc_flag_unknown_warning_option=no
16855fi
16856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16857fi
16858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16861	CFLAGS="$xorg_testset_save_CFLAGS"
16862fi
16863
16864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16867	fi
16868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16872then :
16873  printf %s "(cached) " >&6
16874else $as_nop
16875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h.  */
16877int i;
16878_ACEOF
16879if ac_fn_c_try_compile "$LINENO"
16880then :
16881  xorg_cv_cc_flag_unused_command_line_argument=yes
16882else $as_nop
16883  xorg_cv_cc_flag_unused_command_line_argument=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16886fi
16887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16890	CFLAGS="$xorg_testset_save_CFLAGS"
16891fi
16892
16893found="no"
16894
16895	if test $found = "no" ; then
16896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16898		fi
16899
16900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16902		fi
16903
16904		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16905
16906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16907printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16908		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16909		if eval test \${$cacheid+y}
16910then :
16911  printf %s "(cached) " >&6
16912else $as_nop
16913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h.  */
16915int i;
16916int
16917main (void)
16918{
16919
16920  ;
16921  return 0;
16922}
16923_ACEOF
16924if ac_fn_c_try_link "$LINENO"
16925then :
16926  eval $cacheid=yes
16927else $as_nop
16928  eval $cacheid=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext conftest.beam \
16931    conftest$ac_exeext conftest.$ac_ext
16932fi
16933
16934
16935		CFLAGS="$xorg_testset_save_CFLAGS"
16936
16937		eval supported=\$$cacheid
16938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16939printf "%s\n" "$supported" >&6; }
16940		if test "$supported" = "yes" ; then
16941			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16942			found="yes"
16943		fi
16944	fi
16945
16946 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16947else
16948{ 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
16949printf "%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;}
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963xorg_testset_save_CFLAGS="$CFLAGS"
16964
16965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16970then :
16971  printf %s "(cached) " >&6
16972else $as_nop
16973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975int i;
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"
16978then :
16979  xorg_cv_cc_flag_unknown_warning_option=yes
16980else $as_nop
16981  xorg_cv_cc_flag_unknown_warning_option=no
16982fi
16983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16984fi
16985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16988	CFLAGS="$xorg_testset_save_CFLAGS"
16989fi
16990
16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994	fi
16995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16999then :
17000  printf %s "(cached) " >&6
17001else $as_nop
17002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003/* end confdefs.h.  */
17004int i;
17005_ACEOF
17006if ac_fn_c_try_compile "$LINENO"
17007then :
17008  xorg_cv_cc_flag_unused_command_line_argument=yes
17009else $as_nop
17010  xorg_cv_cc_flag_unused_command_line_argument=no
17011fi
17012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17013fi
17014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17017	CFLAGS="$xorg_testset_save_CFLAGS"
17018fi
17019
17020found="no"
17021
17022	if test $found = "no" ; then
17023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17025		fi
17026
17027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17029		fi
17030
17031		CFLAGS="$CFLAGS -Wimplicit"
17032
17033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17034printf %s "checking if $CC supports -Wimplicit... " >&6; }
17035		cacheid=xorg_cv_cc_flag__Wimplicit
17036		if eval test \${$cacheid+y}
17037then :
17038  printf %s "(cached) " >&6
17039else $as_nop
17040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041/* end confdefs.h.  */
17042int i;
17043int
17044main (void)
17045{
17046
17047  ;
17048  return 0;
17049}
17050_ACEOF
17051if ac_fn_c_try_link "$LINENO"
17052then :
17053  eval $cacheid=yes
17054else $as_nop
17055  eval $cacheid=no
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.beam \
17058    conftest$ac_exeext conftest.$ac_ext
17059fi
17060
17061
17062		CFLAGS="$xorg_testset_save_CFLAGS"
17063
17064		eval supported=\$$cacheid
17065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17066printf "%s\n" "$supported" >&6; }
17067		if test "$supported" = "yes" ; then
17068			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17069			found="yes"
17070		fi
17071	fi
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087xorg_testset_save_CFLAGS="$CFLAGS"
17088
17089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17094then :
17095  printf %s "(cached) " >&6
17096else $as_nop
17097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098/* end confdefs.h.  */
17099int i;
17100_ACEOF
17101if ac_fn_c_try_compile "$LINENO"
17102then :
17103  xorg_cv_cc_flag_unknown_warning_option=yes
17104else $as_nop
17105  xorg_cv_cc_flag_unknown_warning_option=no
17106fi
17107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17108fi
17109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17112	CFLAGS="$xorg_testset_save_CFLAGS"
17113fi
17114
17115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17118	fi
17119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17123then :
17124  printf %s "(cached) " >&6
17125else $as_nop
17126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h.  */
17128int i;
17129_ACEOF
17130if ac_fn_c_try_compile "$LINENO"
17131then :
17132  xorg_cv_cc_flag_unused_command_line_argument=yes
17133else $as_nop
17134  xorg_cv_cc_flag_unused_command_line_argument=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17137fi
17138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17141	CFLAGS="$xorg_testset_save_CFLAGS"
17142fi
17143
17144found="no"
17145
17146	if test $found = "no" ; then
17147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149		fi
17150
17151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17153		fi
17154
17155		CFLAGS="$CFLAGS -Wnonnull"
17156
17157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17158printf %s "checking if $CC supports -Wnonnull... " >&6; }
17159		cacheid=xorg_cv_cc_flag__Wnonnull
17160		if eval test \${$cacheid+y}
17161then :
17162  printf %s "(cached) " >&6
17163else $as_nop
17164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165/* end confdefs.h.  */
17166int i;
17167int
17168main (void)
17169{
17170
17171  ;
17172  return 0;
17173}
17174_ACEOF
17175if ac_fn_c_try_link "$LINENO"
17176then :
17177  eval $cacheid=yes
17178else $as_nop
17179  eval $cacheid=no
17180fi
17181rm -f core conftest.err conftest.$ac_objext conftest.beam \
17182    conftest$ac_exeext conftest.$ac_ext
17183fi
17184
17185
17186		CFLAGS="$xorg_testset_save_CFLAGS"
17187
17188		eval supported=\$$cacheid
17189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17190printf "%s\n" "$supported" >&6; }
17191		if test "$supported" = "yes" ; then
17192			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17193			found="yes"
17194		fi
17195	fi
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211xorg_testset_save_CFLAGS="$CFLAGS"
17212
17213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17218then :
17219  printf %s "(cached) " >&6
17220else $as_nop
17221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223int i;
17224_ACEOF
17225if ac_fn_c_try_compile "$LINENO"
17226then :
17227  xorg_cv_cc_flag_unknown_warning_option=yes
17228else $as_nop
17229  xorg_cv_cc_flag_unknown_warning_option=no
17230fi
17231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17232fi
17233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17236	CFLAGS="$xorg_testset_save_CFLAGS"
17237fi
17238
17239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17242	fi
17243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17247then :
17248  printf %s "(cached) " >&6
17249else $as_nop
17250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h.  */
17252int i;
17253_ACEOF
17254if ac_fn_c_try_compile "$LINENO"
17255then :
17256  xorg_cv_cc_flag_unused_command_line_argument=yes
17257else $as_nop
17258  xorg_cv_cc_flag_unused_command_line_argument=no
17259fi
17260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17261fi
17262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17265	CFLAGS="$xorg_testset_save_CFLAGS"
17266fi
17267
17268found="no"
17269
17270	if test $found = "no" ; then
17271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17273		fi
17274
17275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17277		fi
17278
17279		CFLAGS="$CFLAGS -Winit-self"
17280
17281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17282printf %s "checking if $CC supports -Winit-self... " >&6; }
17283		cacheid=xorg_cv_cc_flag__Winit_self
17284		if eval test \${$cacheid+y}
17285then :
17286  printf %s "(cached) " >&6
17287else $as_nop
17288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289/* end confdefs.h.  */
17290int i;
17291int
17292main (void)
17293{
17294
17295  ;
17296  return 0;
17297}
17298_ACEOF
17299if ac_fn_c_try_link "$LINENO"
17300then :
17301  eval $cacheid=yes
17302else $as_nop
17303  eval $cacheid=no
17304fi
17305rm -f core conftest.err conftest.$ac_objext conftest.beam \
17306    conftest$ac_exeext conftest.$ac_ext
17307fi
17308
17309
17310		CFLAGS="$xorg_testset_save_CFLAGS"
17311
17312		eval supported=\$$cacheid
17313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17314printf "%s\n" "$supported" >&6; }
17315		if test "$supported" = "yes" ; then
17316			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17317			found="yes"
17318		fi
17319	fi
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335xorg_testset_save_CFLAGS="$CFLAGS"
17336
17337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17342then :
17343  printf %s "(cached) " >&6
17344else $as_nop
17345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347int i;
17348_ACEOF
17349if ac_fn_c_try_compile "$LINENO"
17350then :
17351  xorg_cv_cc_flag_unknown_warning_option=yes
17352else $as_nop
17353  xorg_cv_cc_flag_unknown_warning_option=no
17354fi
17355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17356fi
17357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17360	CFLAGS="$xorg_testset_save_CFLAGS"
17361fi
17362
17363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17366	fi
17367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17371then :
17372  printf %s "(cached) " >&6
17373else $as_nop
17374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375/* end confdefs.h.  */
17376int i;
17377_ACEOF
17378if ac_fn_c_try_compile "$LINENO"
17379then :
17380  xorg_cv_cc_flag_unused_command_line_argument=yes
17381else $as_nop
17382  xorg_cv_cc_flag_unused_command_line_argument=no
17383fi
17384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17385fi
17386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17389	CFLAGS="$xorg_testset_save_CFLAGS"
17390fi
17391
17392found="no"
17393
17394	if test $found = "no" ; then
17395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397		fi
17398
17399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17401		fi
17402
17403		CFLAGS="$CFLAGS -Wmain"
17404
17405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17406printf %s "checking if $CC supports -Wmain... " >&6; }
17407		cacheid=xorg_cv_cc_flag__Wmain
17408		if eval test \${$cacheid+y}
17409then :
17410  printf %s "(cached) " >&6
17411else $as_nop
17412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413/* end confdefs.h.  */
17414int i;
17415int
17416main (void)
17417{
17418
17419  ;
17420  return 0;
17421}
17422_ACEOF
17423if ac_fn_c_try_link "$LINENO"
17424then :
17425  eval $cacheid=yes
17426else $as_nop
17427  eval $cacheid=no
17428fi
17429rm -f core conftest.err conftest.$ac_objext conftest.beam \
17430    conftest$ac_exeext conftest.$ac_ext
17431fi
17432
17433
17434		CFLAGS="$xorg_testset_save_CFLAGS"
17435
17436		eval supported=\$$cacheid
17437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17438printf "%s\n" "$supported" >&6; }
17439		if test "$supported" = "yes" ; then
17440			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17441			found="yes"
17442		fi
17443	fi
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459xorg_testset_save_CFLAGS="$CFLAGS"
17460
17461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17466then :
17467  printf %s "(cached) " >&6
17468else $as_nop
17469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470/* end confdefs.h.  */
17471int i;
17472_ACEOF
17473if ac_fn_c_try_compile "$LINENO"
17474then :
17475  xorg_cv_cc_flag_unknown_warning_option=yes
17476else $as_nop
17477  xorg_cv_cc_flag_unknown_warning_option=no
17478fi
17479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17480fi
17481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17484	CFLAGS="$xorg_testset_save_CFLAGS"
17485fi
17486
17487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17490	fi
17491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17495then :
17496  printf %s "(cached) " >&6
17497else $as_nop
17498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499/* end confdefs.h.  */
17500int i;
17501_ACEOF
17502if ac_fn_c_try_compile "$LINENO"
17503then :
17504  xorg_cv_cc_flag_unused_command_line_argument=yes
17505else $as_nop
17506  xorg_cv_cc_flag_unused_command_line_argument=no
17507fi
17508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17509fi
17510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17513	CFLAGS="$xorg_testset_save_CFLAGS"
17514fi
17515
17516found="no"
17517
17518	if test $found = "no" ; then
17519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521		fi
17522
17523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17525		fi
17526
17527		CFLAGS="$CFLAGS -Wmissing-braces"
17528
17529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17530printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17531		cacheid=xorg_cv_cc_flag__Wmissing_braces
17532		if eval test \${$cacheid+y}
17533then :
17534  printf %s "(cached) " >&6
17535else $as_nop
17536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537/* end confdefs.h.  */
17538int i;
17539int
17540main (void)
17541{
17542
17543  ;
17544  return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_link "$LINENO"
17548then :
17549  eval $cacheid=yes
17550else $as_nop
17551  eval $cacheid=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext conftest.beam \
17554    conftest$ac_exeext conftest.$ac_ext
17555fi
17556
17557
17558		CFLAGS="$xorg_testset_save_CFLAGS"
17559
17560		eval supported=\$$cacheid
17561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17562printf "%s\n" "$supported" >&6; }
17563		if test "$supported" = "yes" ; then
17564			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17565			found="yes"
17566		fi
17567	fi
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583xorg_testset_save_CFLAGS="$CFLAGS"
17584
17585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17590then :
17591  printf %s "(cached) " >&6
17592else $as_nop
17593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594/* end confdefs.h.  */
17595int i;
17596_ACEOF
17597if ac_fn_c_try_compile "$LINENO"
17598then :
17599  xorg_cv_cc_flag_unknown_warning_option=yes
17600else $as_nop
17601  xorg_cv_cc_flag_unknown_warning_option=no
17602fi
17603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17604fi
17605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17608	CFLAGS="$xorg_testset_save_CFLAGS"
17609fi
17610
17611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17614	fi
17615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17619then :
17620  printf %s "(cached) " >&6
17621else $as_nop
17622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623/* end confdefs.h.  */
17624int i;
17625_ACEOF
17626if ac_fn_c_try_compile "$LINENO"
17627then :
17628  xorg_cv_cc_flag_unused_command_line_argument=yes
17629else $as_nop
17630  xorg_cv_cc_flag_unused_command_line_argument=no
17631fi
17632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17633fi
17634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17637	CFLAGS="$xorg_testset_save_CFLAGS"
17638fi
17639
17640found="no"
17641
17642	if test $found = "no" ; then
17643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645		fi
17646
17647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649		fi
17650
17651		CFLAGS="$CFLAGS -Wsequence-point"
17652
17653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17654printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17655		cacheid=xorg_cv_cc_flag__Wsequence_point
17656		if eval test \${$cacheid+y}
17657then :
17658  printf %s "(cached) " >&6
17659else $as_nop
17660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661/* end confdefs.h.  */
17662int i;
17663int
17664main (void)
17665{
17666
17667  ;
17668  return 0;
17669}
17670_ACEOF
17671if ac_fn_c_try_link "$LINENO"
17672then :
17673  eval $cacheid=yes
17674else $as_nop
17675  eval $cacheid=no
17676fi
17677rm -f core conftest.err conftest.$ac_objext conftest.beam \
17678    conftest$ac_exeext conftest.$ac_ext
17679fi
17680
17681
17682		CFLAGS="$xorg_testset_save_CFLAGS"
17683
17684		eval supported=\$$cacheid
17685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17686printf "%s\n" "$supported" >&6; }
17687		if test "$supported" = "yes" ; then
17688			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17689			found="yes"
17690		fi
17691	fi
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707xorg_testset_save_CFLAGS="$CFLAGS"
17708
17709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17714then :
17715  printf %s "(cached) " >&6
17716else $as_nop
17717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h.  */
17719int i;
17720_ACEOF
17721if ac_fn_c_try_compile "$LINENO"
17722then :
17723  xorg_cv_cc_flag_unknown_warning_option=yes
17724else $as_nop
17725  xorg_cv_cc_flag_unknown_warning_option=no
17726fi
17727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17728fi
17729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17732	CFLAGS="$xorg_testset_save_CFLAGS"
17733fi
17734
17735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17738	fi
17739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17742if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17743then :
17744  printf %s "(cached) " >&6
17745else $as_nop
17746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747/* end confdefs.h.  */
17748int i;
17749_ACEOF
17750if ac_fn_c_try_compile "$LINENO"
17751then :
17752  xorg_cv_cc_flag_unused_command_line_argument=yes
17753else $as_nop
17754  xorg_cv_cc_flag_unused_command_line_argument=no
17755fi
17756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17757fi
17758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17761	CFLAGS="$xorg_testset_save_CFLAGS"
17762fi
17763
17764found="no"
17765
17766	if test $found = "no" ; then
17767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769		fi
17770
17771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17773		fi
17774
17775		CFLAGS="$CFLAGS -Wreturn-type"
17776
17777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17778printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17779		cacheid=xorg_cv_cc_flag__Wreturn_type
17780		if eval test \${$cacheid+y}
17781then :
17782  printf %s "(cached) " >&6
17783else $as_nop
17784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785/* end confdefs.h.  */
17786int i;
17787int
17788main (void)
17789{
17790
17791  ;
17792  return 0;
17793}
17794_ACEOF
17795if ac_fn_c_try_link "$LINENO"
17796then :
17797  eval $cacheid=yes
17798else $as_nop
17799  eval $cacheid=no
17800fi
17801rm -f core conftest.err conftest.$ac_objext conftest.beam \
17802    conftest$ac_exeext conftest.$ac_ext
17803fi
17804
17805
17806		CFLAGS="$xorg_testset_save_CFLAGS"
17807
17808		eval supported=\$$cacheid
17809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17810printf "%s\n" "$supported" >&6; }
17811		if test "$supported" = "yes" ; then
17812			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17813			found="yes"
17814		fi
17815	fi
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831xorg_testset_save_CFLAGS="$CFLAGS"
17832
17833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17837if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17838then :
17839  printf %s "(cached) " >&6
17840else $as_nop
17841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842/* end confdefs.h.  */
17843int i;
17844_ACEOF
17845if ac_fn_c_try_compile "$LINENO"
17846then :
17847  xorg_cv_cc_flag_unknown_warning_option=yes
17848else $as_nop
17849  xorg_cv_cc_flag_unknown_warning_option=no
17850fi
17851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17852fi
17853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17856	CFLAGS="$xorg_testset_save_CFLAGS"
17857fi
17858
17859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862	fi
17863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17866if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17867then :
17868  printf %s "(cached) " >&6
17869else $as_nop
17870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871/* end confdefs.h.  */
17872int i;
17873_ACEOF
17874if ac_fn_c_try_compile "$LINENO"
17875then :
17876  xorg_cv_cc_flag_unused_command_line_argument=yes
17877else $as_nop
17878  xorg_cv_cc_flag_unused_command_line_argument=no
17879fi
17880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17881fi
17882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17885	CFLAGS="$xorg_testset_save_CFLAGS"
17886fi
17887
17888found="no"
17889
17890	if test $found = "no" ; then
17891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17893		fi
17894
17895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17897		fi
17898
17899		CFLAGS="$CFLAGS -Wtrigraphs"
17900
17901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17902printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17903		cacheid=xorg_cv_cc_flag__Wtrigraphs
17904		if eval test \${$cacheid+y}
17905then :
17906  printf %s "(cached) " >&6
17907else $as_nop
17908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909/* end confdefs.h.  */
17910int i;
17911int
17912main (void)
17913{
17914
17915  ;
17916  return 0;
17917}
17918_ACEOF
17919if ac_fn_c_try_link "$LINENO"
17920then :
17921  eval $cacheid=yes
17922else $as_nop
17923  eval $cacheid=no
17924fi
17925rm -f core conftest.err conftest.$ac_objext conftest.beam \
17926    conftest$ac_exeext conftest.$ac_ext
17927fi
17928
17929
17930		CFLAGS="$xorg_testset_save_CFLAGS"
17931
17932		eval supported=\$$cacheid
17933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17934printf "%s\n" "$supported" >&6; }
17935		if test "$supported" = "yes" ; then
17936			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17937			found="yes"
17938		fi
17939	fi
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955xorg_testset_save_CFLAGS="$CFLAGS"
17956
17957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17961if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17962then :
17963  printf %s "(cached) " >&6
17964else $as_nop
17965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966/* end confdefs.h.  */
17967int i;
17968_ACEOF
17969if ac_fn_c_try_compile "$LINENO"
17970then :
17971  xorg_cv_cc_flag_unknown_warning_option=yes
17972else $as_nop
17973  xorg_cv_cc_flag_unknown_warning_option=no
17974fi
17975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17976fi
17977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17980	CFLAGS="$xorg_testset_save_CFLAGS"
17981fi
17982
17983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17986	fi
17987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17990if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17991then :
17992  printf %s "(cached) " >&6
17993else $as_nop
17994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995/* end confdefs.h.  */
17996int i;
17997_ACEOF
17998if ac_fn_c_try_compile "$LINENO"
17999then :
18000  xorg_cv_cc_flag_unused_command_line_argument=yes
18001else $as_nop
18002  xorg_cv_cc_flag_unused_command_line_argument=no
18003fi
18004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18005fi
18006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18009	CFLAGS="$xorg_testset_save_CFLAGS"
18010fi
18011
18012found="no"
18013
18014	if test $found = "no" ; then
18015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017		fi
18018
18019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18021		fi
18022
18023		CFLAGS="$CFLAGS -Warray-bounds"
18024
18025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18026printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18027		cacheid=xorg_cv_cc_flag__Warray_bounds
18028		if eval test \${$cacheid+y}
18029then :
18030  printf %s "(cached) " >&6
18031else $as_nop
18032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h.  */
18034int i;
18035int
18036main (void)
18037{
18038
18039  ;
18040  return 0;
18041}
18042_ACEOF
18043if ac_fn_c_try_link "$LINENO"
18044then :
18045  eval $cacheid=yes
18046else $as_nop
18047  eval $cacheid=no
18048fi
18049rm -f core conftest.err conftest.$ac_objext conftest.beam \
18050    conftest$ac_exeext conftest.$ac_ext
18051fi
18052
18053
18054		CFLAGS="$xorg_testset_save_CFLAGS"
18055
18056		eval supported=\$$cacheid
18057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18058printf "%s\n" "$supported" >&6; }
18059		if test "$supported" = "yes" ; then
18060			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18061			found="yes"
18062		fi
18063	fi
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079xorg_testset_save_CFLAGS="$CFLAGS"
18080
18081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18085if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18086then :
18087  printf %s "(cached) " >&6
18088else $as_nop
18089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090/* end confdefs.h.  */
18091int i;
18092_ACEOF
18093if ac_fn_c_try_compile "$LINENO"
18094then :
18095  xorg_cv_cc_flag_unknown_warning_option=yes
18096else $as_nop
18097  xorg_cv_cc_flag_unknown_warning_option=no
18098fi
18099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18100fi
18101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18104	CFLAGS="$xorg_testset_save_CFLAGS"
18105fi
18106
18107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18110	fi
18111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18114if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18115then :
18116  printf %s "(cached) " >&6
18117else $as_nop
18118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119/* end confdefs.h.  */
18120int i;
18121_ACEOF
18122if ac_fn_c_try_compile "$LINENO"
18123then :
18124  xorg_cv_cc_flag_unused_command_line_argument=yes
18125else $as_nop
18126  xorg_cv_cc_flag_unused_command_line_argument=no
18127fi
18128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18129fi
18130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18133	CFLAGS="$xorg_testset_save_CFLAGS"
18134fi
18135
18136found="no"
18137
18138	if test $found = "no" ; then
18139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18141		fi
18142
18143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18145		fi
18146
18147		CFLAGS="$CFLAGS -Wwrite-strings"
18148
18149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18150printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18151		cacheid=xorg_cv_cc_flag__Wwrite_strings
18152		if eval test \${$cacheid+y}
18153then :
18154  printf %s "(cached) " >&6
18155else $as_nop
18156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157/* end confdefs.h.  */
18158int i;
18159int
18160main (void)
18161{
18162
18163  ;
18164  return 0;
18165}
18166_ACEOF
18167if ac_fn_c_try_link "$LINENO"
18168then :
18169  eval $cacheid=yes
18170else $as_nop
18171  eval $cacheid=no
18172fi
18173rm -f core conftest.err conftest.$ac_objext conftest.beam \
18174    conftest$ac_exeext conftest.$ac_ext
18175fi
18176
18177
18178		CFLAGS="$xorg_testset_save_CFLAGS"
18179
18180		eval supported=\$$cacheid
18181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18182printf "%s\n" "$supported" >&6; }
18183		if test "$supported" = "yes" ; then
18184			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18185			found="yes"
18186		fi
18187	fi
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203xorg_testset_save_CFLAGS="$CFLAGS"
18204
18205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18209if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18210then :
18211  printf %s "(cached) " >&6
18212else $as_nop
18213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214/* end confdefs.h.  */
18215int i;
18216_ACEOF
18217if ac_fn_c_try_compile "$LINENO"
18218then :
18219  xorg_cv_cc_flag_unknown_warning_option=yes
18220else $as_nop
18221  xorg_cv_cc_flag_unknown_warning_option=no
18222fi
18223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18224fi
18225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18228	CFLAGS="$xorg_testset_save_CFLAGS"
18229fi
18230
18231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18234	fi
18235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18238if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18239then :
18240  printf %s "(cached) " >&6
18241else $as_nop
18242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243/* end confdefs.h.  */
18244int i;
18245_ACEOF
18246if ac_fn_c_try_compile "$LINENO"
18247then :
18248  xorg_cv_cc_flag_unused_command_line_argument=yes
18249else $as_nop
18250  xorg_cv_cc_flag_unused_command_line_argument=no
18251fi
18252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18253fi
18254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18257	CFLAGS="$xorg_testset_save_CFLAGS"
18258fi
18259
18260found="no"
18261
18262	if test $found = "no" ; then
18263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18265		fi
18266
18267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18269		fi
18270
18271		CFLAGS="$CFLAGS -Waddress"
18272
18273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18274printf %s "checking if $CC supports -Waddress... " >&6; }
18275		cacheid=xorg_cv_cc_flag__Waddress
18276		if eval test \${$cacheid+y}
18277then :
18278  printf %s "(cached) " >&6
18279else $as_nop
18280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281/* end confdefs.h.  */
18282int i;
18283int
18284main (void)
18285{
18286
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291if ac_fn_c_try_link "$LINENO"
18292then :
18293  eval $cacheid=yes
18294else $as_nop
18295  eval $cacheid=no
18296fi
18297rm -f core conftest.err conftest.$ac_objext conftest.beam \
18298    conftest$ac_exeext conftest.$ac_ext
18299fi
18300
18301
18302		CFLAGS="$xorg_testset_save_CFLAGS"
18303
18304		eval supported=\$$cacheid
18305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18306printf "%s\n" "$supported" >&6; }
18307		if test "$supported" = "yes" ; then
18308			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18309			found="yes"
18310		fi
18311	fi
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327xorg_testset_save_CFLAGS="$CFLAGS"
18328
18329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18333if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18334then :
18335  printf %s "(cached) " >&6
18336else $as_nop
18337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338/* end confdefs.h.  */
18339int i;
18340_ACEOF
18341if ac_fn_c_try_compile "$LINENO"
18342then :
18343  xorg_cv_cc_flag_unknown_warning_option=yes
18344else $as_nop
18345  xorg_cv_cc_flag_unknown_warning_option=no
18346fi
18347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18348fi
18349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18352	CFLAGS="$xorg_testset_save_CFLAGS"
18353fi
18354
18355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18358	fi
18359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18362if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18363then :
18364  printf %s "(cached) " >&6
18365else $as_nop
18366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367/* end confdefs.h.  */
18368int i;
18369_ACEOF
18370if ac_fn_c_try_compile "$LINENO"
18371then :
18372  xorg_cv_cc_flag_unused_command_line_argument=yes
18373else $as_nop
18374  xorg_cv_cc_flag_unused_command_line_argument=no
18375fi
18376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18377fi
18378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18381	CFLAGS="$xorg_testset_save_CFLAGS"
18382fi
18383
18384found="no"
18385
18386	if test $found = "no" ; then
18387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389		fi
18390
18391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18393		fi
18394
18395		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18396
18397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18398printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18399		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18400		if eval test \${$cacheid+y}
18401then :
18402  printf %s "(cached) " >&6
18403else $as_nop
18404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405/* end confdefs.h.  */
18406int i;
18407int
18408main (void)
18409{
18410
18411  ;
18412  return 0;
18413}
18414_ACEOF
18415if ac_fn_c_try_link "$LINENO"
18416then :
18417  eval $cacheid=yes
18418else $as_nop
18419  eval $cacheid=no
18420fi
18421rm -f core conftest.err conftest.$ac_objext conftest.beam \
18422    conftest$ac_exeext conftest.$ac_ext
18423fi
18424
18425
18426		CFLAGS="$xorg_testset_save_CFLAGS"
18427
18428		eval supported=\$$cacheid
18429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18430printf "%s\n" "$supported" >&6; }
18431		if test "$supported" = "yes" ; then
18432			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18433			found="yes"
18434		fi
18435	fi
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451xorg_testset_save_CFLAGS="$CFLAGS"
18452
18453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18458then :
18459  printf %s "(cached) " >&6
18460else $as_nop
18461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462/* end confdefs.h.  */
18463int i;
18464_ACEOF
18465if ac_fn_c_try_compile "$LINENO"
18466then :
18467  xorg_cv_cc_flag_unknown_warning_option=yes
18468else $as_nop
18469  xorg_cv_cc_flag_unknown_warning_option=no
18470fi
18471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18472fi
18473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18476	CFLAGS="$xorg_testset_save_CFLAGS"
18477fi
18478
18479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18482	fi
18483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18487then :
18488  printf %s "(cached) " >&6
18489else $as_nop
18490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491/* end confdefs.h.  */
18492int i;
18493_ACEOF
18494if ac_fn_c_try_compile "$LINENO"
18495then :
18496  xorg_cv_cc_flag_unused_command_line_argument=yes
18497else $as_nop
18498  xorg_cv_cc_flag_unused_command_line_argument=no
18499fi
18500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18501fi
18502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18505	CFLAGS="$xorg_testset_save_CFLAGS"
18506fi
18507
18508found="no"
18509
18510	if test $found = "no" ; then
18511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513		fi
18514
18515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18517		fi
18518
18519		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18520
18521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18522printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18523		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18524		if eval test \${$cacheid+y}
18525then :
18526  printf %s "(cached) " >&6
18527else $as_nop
18528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h.  */
18530int i;
18531int
18532main (void)
18533{
18534
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_link "$LINENO"
18540then :
18541  eval $cacheid=yes
18542else $as_nop
18543  eval $cacheid=no
18544fi
18545rm -f core conftest.err conftest.$ac_objext conftest.beam \
18546    conftest$ac_exeext conftest.$ac_ext
18547fi
18548
18549
18550		CFLAGS="$xorg_testset_save_CFLAGS"
18551
18552		eval supported=\$$cacheid
18553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18554printf "%s\n" "$supported" >&6; }
18555		if test "$supported" = "yes" ; then
18556			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18557			found="yes"
18558		fi
18559	fi
18560
18561
18562fi
18563
18564
18565
18566
18567
18568
18569
18570		CWARNFLAGS="$BASE_CFLAGS"
18571		if  test "x$GCC" = xyes ; then
18572		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18573		fi
18574
18575
18576
18577
18578
18579
18580
18581
18582# Check whether --enable-strict-compilation was given.
18583if test ${enable_strict_compilation+y}
18584then :
18585  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18586else $as_nop
18587  STRICT_COMPILE=no
18588fi
18589
18590
18591
18592
18593
18594
18595STRICT_CFLAGS=""
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609xorg_testset_save_CFLAGS="$CFLAGS"
18610
18611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18615if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18616then :
18617  printf %s "(cached) " >&6
18618else $as_nop
18619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620/* end confdefs.h.  */
18621int i;
18622_ACEOF
18623if ac_fn_c_try_compile "$LINENO"
18624then :
18625  xorg_cv_cc_flag_unknown_warning_option=yes
18626else $as_nop
18627  xorg_cv_cc_flag_unknown_warning_option=no
18628fi
18629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18630fi
18631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18634	CFLAGS="$xorg_testset_save_CFLAGS"
18635fi
18636
18637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18640	fi
18641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18645then :
18646  printf %s "(cached) " >&6
18647else $as_nop
18648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649/* end confdefs.h.  */
18650int i;
18651_ACEOF
18652if ac_fn_c_try_compile "$LINENO"
18653then :
18654  xorg_cv_cc_flag_unused_command_line_argument=yes
18655else $as_nop
18656  xorg_cv_cc_flag_unused_command_line_argument=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18659fi
18660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18663	CFLAGS="$xorg_testset_save_CFLAGS"
18664fi
18665
18666found="no"
18667
18668	if test $found = "no" ; then
18669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18671		fi
18672
18673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18675		fi
18676
18677		CFLAGS="$CFLAGS -pedantic"
18678
18679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18680printf %s "checking if $CC supports -pedantic... " >&6; }
18681		cacheid=xorg_cv_cc_flag__pedantic
18682		if eval test \${$cacheid+y}
18683then :
18684  printf %s "(cached) " >&6
18685else $as_nop
18686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687/* end confdefs.h.  */
18688int i;
18689int
18690main (void)
18691{
18692
18693  ;
18694  return 0;
18695}
18696_ACEOF
18697if ac_fn_c_try_link "$LINENO"
18698then :
18699  eval $cacheid=yes
18700else $as_nop
18701  eval $cacheid=no
18702fi
18703rm -f core conftest.err conftest.$ac_objext conftest.beam \
18704    conftest$ac_exeext conftest.$ac_ext
18705fi
18706
18707
18708		CFLAGS="$xorg_testset_save_CFLAGS"
18709
18710		eval supported=\$$cacheid
18711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18712printf "%s\n" "$supported" >&6; }
18713		if test "$supported" = "yes" ; then
18714			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18715			found="yes"
18716		fi
18717	fi
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733xorg_testset_save_CFLAGS="$CFLAGS"
18734
18735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18739if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18740then :
18741  printf %s "(cached) " >&6
18742else $as_nop
18743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744/* end confdefs.h.  */
18745int i;
18746_ACEOF
18747if ac_fn_c_try_compile "$LINENO"
18748then :
18749  xorg_cv_cc_flag_unknown_warning_option=yes
18750else $as_nop
18751  xorg_cv_cc_flag_unknown_warning_option=no
18752fi
18753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18754fi
18755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18758	CFLAGS="$xorg_testset_save_CFLAGS"
18759fi
18760
18761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18764	fi
18765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18769then :
18770  printf %s "(cached) " >&6
18771else $as_nop
18772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h.  */
18774int i;
18775_ACEOF
18776if ac_fn_c_try_compile "$LINENO"
18777then :
18778  xorg_cv_cc_flag_unused_command_line_argument=yes
18779else $as_nop
18780  xorg_cv_cc_flag_unused_command_line_argument=no
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18783fi
18784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18787	CFLAGS="$xorg_testset_save_CFLAGS"
18788fi
18789
18790found="no"
18791
18792	if test $found = "no" ; then
18793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18795		fi
18796
18797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18799		fi
18800
18801		CFLAGS="$CFLAGS -Werror"
18802
18803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18804printf %s "checking if $CC supports -Werror... " >&6; }
18805		cacheid=xorg_cv_cc_flag__Werror
18806		if eval test \${$cacheid+y}
18807then :
18808  printf %s "(cached) " >&6
18809else $as_nop
18810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811/* end confdefs.h.  */
18812int i;
18813int
18814main (void)
18815{
18816
18817  ;
18818  return 0;
18819}
18820_ACEOF
18821if ac_fn_c_try_link "$LINENO"
18822then :
18823  eval $cacheid=yes
18824else $as_nop
18825  eval $cacheid=no
18826fi
18827rm -f core conftest.err conftest.$ac_objext conftest.beam \
18828    conftest$ac_exeext conftest.$ac_ext
18829fi
18830
18831
18832		CFLAGS="$xorg_testset_save_CFLAGS"
18833
18834		eval supported=\$$cacheid
18835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18836printf "%s\n" "$supported" >&6; }
18837		if test "$supported" = "yes" ; then
18838			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18839			found="yes"
18840		fi
18841	fi
18842
18843	if test $found = "no" ; then
18844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18846		fi
18847
18848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18850		fi
18851
18852		CFLAGS="$CFLAGS -errwarn"
18853
18854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18855printf %s "checking if $CC supports -errwarn... " >&6; }
18856		cacheid=xorg_cv_cc_flag__errwarn
18857		if eval test \${$cacheid+y}
18858then :
18859  printf %s "(cached) " >&6
18860else $as_nop
18861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862/* end confdefs.h.  */
18863int i;
18864int
18865main (void)
18866{
18867
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872if ac_fn_c_try_link "$LINENO"
18873then :
18874  eval $cacheid=yes
18875else $as_nop
18876  eval $cacheid=no
18877fi
18878rm -f core conftest.err conftest.$ac_objext conftest.beam \
18879    conftest$ac_exeext conftest.$ac_ext
18880fi
18881
18882
18883		CFLAGS="$xorg_testset_save_CFLAGS"
18884
18885		eval supported=\$$cacheid
18886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18887printf "%s\n" "$supported" >&6; }
18888		if test "$supported" = "yes" ; then
18889			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18890			found="yes"
18891		fi
18892	fi
18893
18894
18895
18896# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18897# activate it with -Werror, so we add it here explicitly.
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911xorg_testset_save_CFLAGS="$CFLAGS"
18912
18913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18916printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18917if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18918then :
18919  printf %s "(cached) " >&6
18920else $as_nop
18921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922/* end confdefs.h.  */
18923int i;
18924_ACEOF
18925if ac_fn_c_try_compile "$LINENO"
18926then :
18927  xorg_cv_cc_flag_unknown_warning_option=yes
18928else $as_nop
18929  xorg_cv_cc_flag_unknown_warning_option=no
18930fi
18931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18932fi
18933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18936	CFLAGS="$xorg_testset_save_CFLAGS"
18937fi
18938
18939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18942	fi
18943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18946if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18947then :
18948  printf %s "(cached) " >&6
18949else $as_nop
18950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951/* end confdefs.h.  */
18952int i;
18953_ACEOF
18954if ac_fn_c_try_compile "$LINENO"
18955then :
18956  xorg_cv_cc_flag_unused_command_line_argument=yes
18957else $as_nop
18958  xorg_cv_cc_flag_unused_command_line_argument=no
18959fi
18960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18961fi
18962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18965	CFLAGS="$xorg_testset_save_CFLAGS"
18966fi
18967
18968found="no"
18969
18970	if test $found = "no" ; then
18971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18973		fi
18974
18975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18977		fi
18978
18979		CFLAGS="$CFLAGS -Werror=attributes"
18980
18981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18982printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18983		cacheid=xorg_cv_cc_flag__Werror_attributes
18984		if eval test \${$cacheid+y}
18985then :
18986  printf %s "(cached) " >&6
18987else $as_nop
18988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989/* end confdefs.h.  */
18990int i;
18991int
18992main (void)
18993{
18994
18995  ;
18996  return 0;
18997}
18998_ACEOF
18999if ac_fn_c_try_link "$LINENO"
19000then :
19001  eval $cacheid=yes
19002else $as_nop
19003  eval $cacheid=no
19004fi
19005rm -f core conftest.err conftest.$ac_objext conftest.beam \
19006    conftest$ac_exeext conftest.$ac_ext
19007fi
19008
19009
19010		CFLAGS="$xorg_testset_save_CFLAGS"
19011
19012		eval supported=\$$cacheid
19013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19014printf "%s\n" "$supported" >&6; }
19015		if test "$supported" = "yes" ; then
19016			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19017			found="yes"
19018		fi
19019	fi
19020
19021
19022
19023if test "x$STRICT_COMPILE" = "xyes"; then
19024    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19025    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19026fi
19027
19028
19029
19030
19031
19032
19033cat >>confdefs.h <<_ACEOF
19034#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19035_ACEOF
19036
19037	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19038	if test "x$PVM" = "x"; then
19039		PVM="0"
19040	fi
19041
19042printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19043
19044	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19045	if test "x$PVP" = "x"; then
19046		PVP="0"
19047	fi
19048
19049printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19050
19051
19052
19053CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19054mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19055|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19056touch \$(top_srcdir)/ChangeLog; \
19057echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19058
19059
19060
19061
19062macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19063INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19064mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19065|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19066touch \$(top_srcdir)/INSTALL; \
19067echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19068
19069
19070
19071
19072
19073
19074case $host_os in
19075    solaris*)
19076        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19077        # check for a man page file found in later versions that use
19078        # traditional section numbers instead
19079        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19080printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19081if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19082then :
19083  printf %s "(cached) " >&6
19084else $as_nop
19085  test "$cross_compiling" = yes &&
19086  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19087if test -r "/usr/share/man/man7/attributes.7"; then
19088  ac_cv_file__usr_share_man_man7_attributes_7=yes
19089else
19090  ac_cv_file__usr_share_man_man7_attributes_7=no
19091fi
19092fi
19093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19094printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19095if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19096then :
19097  SYSV_MAN_SECTIONS=false
19098else $as_nop
19099  SYSV_MAN_SECTIONS=true
19100fi
19101
19102        ;;
19103    *) SYSV_MAN_SECTIONS=false ;;
19104esac
19105
19106if test x$APP_MAN_SUFFIX = x    ; then
19107    APP_MAN_SUFFIX=1
19108fi
19109if test x$APP_MAN_DIR = x    ; then
19110    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19111fi
19112
19113if test x$LIB_MAN_SUFFIX = x    ; then
19114    LIB_MAN_SUFFIX=3
19115fi
19116if test x$LIB_MAN_DIR = x    ; then
19117    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19118fi
19119
19120if test x$FILE_MAN_SUFFIX = x    ; then
19121    case $SYSV_MAN_SECTIONS in
19122	true)				FILE_MAN_SUFFIX=4  ;;
19123	*)				FILE_MAN_SUFFIX=5  ;;
19124    esac
19125fi
19126if test x$FILE_MAN_DIR = x    ; then
19127    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19128fi
19129
19130if test x$MISC_MAN_SUFFIX = x    ; then
19131    case $SYSV_MAN_SECTIONS in
19132	true)				MISC_MAN_SUFFIX=5  ;;
19133	*)				MISC_MAN_SUFFIX=7  ;;
19134    esac
19135fi
19136if test x$MISC_MAN_DIR = x    ; then
19137    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19138fi
19139
19140if test x$DRIVER_MAN_SUFFIX = x    ; then
19141    case $SYSV_MAN_SECTIONS in
19142	true)				DRIVER_MAN_SUFFIX=7  ;;
19143	*)				DRIVER_MAN_SUFFIX=4  ;;
19144    esac
19145fi
19146if test x$DRIVER_MAN_DIR = x    ; then
19147    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19148fi
19149
19150if test x$ADMIN_MAN_SUFFIX = x    ; then
19151    case $SYSV_MAN_SECTIONS in
19152	true)				ADMIN_MAN_SUFFIX=1m ;;
19153	*)				ADMIN_MAN_SUFFIX=8  ;;
19154    esac
19155fi
19156if test x$ADMIN_MAN_DIR = x    ; then
19157    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19158fi
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174XORG_MAN_PAGE="X Version 11"
19175
19176MAN_SUBSTS="\
19177	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19178	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19179	-e 's|__xservername__|Xorg|g' \
19180	-e 's|__xconfigfile__|xorg.conf|g' \
19181	-e 's|__projectroot__|\$(prefix)|g' \
19182	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19183	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19184	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19185	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19186	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19187	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19188	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19189
19190
19191
19192# Check whether --enable-silent-rules was given.
19193if test ${enable_silent_rules+y}
19194then :
19195  enableval=$enable_silent_rules;
19196fi
19197
19198case $enable_silent_rules in # (((
19199  yes) AM_DEFAULT_VERBOSITY=0;;
19200   no) AM_DEFAULT_VERBOSITY=1;;
19201    *) AM_DEFAULT_VERBOSITY=0;;
19202esac
19203am_make=${MAKE-make}
19204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19205printf %s "checking whether $am_make supports nested variables... " >&6; }
19206if test ${am_cv_make_support_nested_variables+y}
19207then :
19208  printf %s "(cached) " >&6
19209else $as_nop
19210  if printf "%s\n" 'TRUE=$(BAR$(V))
19211BAR0=false
19212BAR1=true
19213V=1
19214am__doit:
19215	@$(TRUE)
19216.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19217  am_cv_make_support_nested_variables=yes
19218else
19219  am_cv_make_support_nested_variables=no
19220fi
19221fi
19222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19223printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19224if test $am_cv_make_support_nested_variables = yes; then
19225    AM_V='$(V)'
19226  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19227else
19228  AM_V=$AM_DEFAULT_VERBOSITY
19229  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19230fi
19231AM_BACKSLASH='\'
19232
19233
19234
19235# Set library version for Xft.h from package version set in AC_INIT
19236# copied from PACKAGE_VERSION_* settings in XORG_VERSION
19237ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
19238
19239
19240cat >>confdefs.h <<_ACEOF
19241#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19242_ACEOF
19243
19244
19245cat >>confdefs.h <<_ACEOF
19246#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19247_ACEOF
19248
19249
19250cat >>confdefs.h <<_ACEOF
19251#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19252_ACEOF
19253
19254
19255XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
19256
19257
19258#
19259# Check for Xrender
19260#
19261
19262pkg_failed=no
19263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.8.2 x11" >&5
19264printf %s "checking for xrender >= 0.8.2 x11... " >&6; }
19265
19266if test -n "$XRENDER_CFLAGS"; then
19267    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
19268 elif test -n "$PKG_CONFIG"; then
19269    if test -n "$PKG_CONFIG" && \
19270    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19271  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19272  ac_status=$?
19273  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274  test $ac_status = 0; }; then
19275  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
19276		      test "x$?" != "x0" && pkg_failed=yes
19277else
19278  pkg_failed=yes
19279fi
19280 else
19281    pkg_failed=untried
19282fi
19283if test -n "$XRENDER_LIBS"; then
19284    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
19285 elif test -n "$PKG_CONFIG"; then
19286    if test -n "$PKG_CONFIG" && \
19287    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19288  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19289  ac_status=$?
19290  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291  test $ac_status = 0; }; then
19292  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
19293		      test "x$?" != "x0" && pkg_failed=yes
19294else
19295  pkg_failed=yes
19296fi
19297 else
19298    pkg_failed=untried
19299fi
19300
19301
19302
19303if test $pkg_failed = yes; then
19304        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305printf "%s\n" "no" >&6; }
19306
19307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19308        _pkg_short_errors_supported=yes
19309else
19310        _pkg_short_errors_supported=no
19311fi
19312        if test $_pkg_short_errors_supported = yes; then
19313	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19314        else
19315	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19316        fi
19317	# Put the nasty error message in config.log where it belongs
19318	echo "$XRENDER_PKG_ERRORS" >&5
19319
19320	as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
19321
19322$XRENDER_PKG_ERRORS
19323
19324Consider adjusting the PKG_CONFIG_PATH environment variable if you
19325installed software in a non-standard prefix.
19326
19327Alternatively, you may set the environment variables XRENDER_CFLAGS
19328and XRENDER_LIBS to avoid the need to call pkg-config.
19329See the pkg-config man page for more details." "$LINENO" 5
19330elif test $pkg_failed = untried; then
19331        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332printf "%s\n" "no" >&6; }
19333	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19334printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19335as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19336is in your PATH or set the PKG_CONFIG environment variable to the full
19337path to pkg-config.
19338
19339Alternatively, you may set the environment variables XRENDER_CFLAGS
19340and XRENDER_LIBS to avoid the need to call pkg-config.
19341See the pkg-config man page for more details.
19342
19343To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19344See \`config.log' for more details" "$LINENO" 5; }
19345else
19346	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19347	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19348        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19349printf "%s\n" "yes" >&6; }
19350
19351fi
19352
19353# Check freetype configuration
19354
19355pkg_failed=no
19356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.1.6" >&5
19357printf %s "checking for freetype2 >= 2.1.6... " >&6; }
19358
19359if test -n "$FREETYPE_CFLAGS"; then
19360    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19361 elif test -n "$PKG_CONFIG"; then
19362    if test -n "$PKG_CONFIG" && \
19363    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19364  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19365  ac_status=$?
19366  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19367  test $ac_status = 0; }; then
19368  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
19369		      test "x$?" != "x0" && pkg_failed=yes
19370else
19371  pkg_failed=yes
19372fi
19373 else
19374    pkg_failed=untried
19375fi
19376if test -n "$FREETYPE_LIBS"; then
19377    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19378 elif test -n "$PKG_CONFIG"; then
19379    if test -n "$PKG_CONFIG" && \
19380    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19381  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19382  ac_status=$?
19383  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384  test $ac_status = 0; }; then
19385  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
19386		      test "x$?" != "x0" && pkg_failed=yes
19387else
19388  pkg_failed=yes
19389fi
19390 else
19391    pkg_failed=untried
19392fi
19393
19394
19395
19396if test $pkg_failed = yes; then
19397        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398printf "%s\n" "no" >&6; }
19399
19400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19401        _pkg_short_errors_supported=yes
19402else
19403        _pkg_short_errors_supported=no
19404fi
19405        if test $_pkg_short_errors_supported = yes; then
19406	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19407        else
19408	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19409        fi
19410	# Put the nasty error message in config.log where it belongs
19411	echo "$FREETYPE_PKG_ERRORS" >&5
19412
19413	as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
19414
19415$FREETYPE_PKG_ERRORS
19416
19417Consider adjusting the PKG_CONFIG_PATH environment variable if you
19418installed software in a non-standard prefix.
19419
19420Alternatively, you may set the environment variables FREETYPE_CFLAGS
19421and FREETYPE_LIBS to avoid the need to call pkg-config.
19422See the pkg-config man page for more details." "$LINENO" 5
19423elif test $pkg_failed = untried; then
19424        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425printf "%s\n" "no" >&6; }
19426	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19427printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19428as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19429is in your PATH or set the PKG_CONFIG environment variable to the full
19430path to pkg-config.
19431
19432Alternatively, you may set the environment variables FREETYPE_CFLAGS
19433and FREETYPE_LIBS to avoid the need to call pkg-config.
19434See the pkg-config man page for more details.
19435
19436To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19437See \`config.log' for more details" "$LINENO" 5; }
19438else
19439	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19440	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19441        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19442printf "%s\n" "yes" >&6; }
19443
19444fi
19445
19446# Check fontconfig configuration
19447
19448pkg_failed=no
19449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.5.92" >&5
19450printf %s "checking for fontconfig >= 2.5.92... " >&6; }
19451
19452if test -n "$FONTCONFIG_CFLAGS"; then
19453    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
19454 elif test -n "$PKG_CONFIG"; then
19455    if test -n "$PKG_CONFIG" && \
19456    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19457  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19458  ac_status=$?
19459  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19460  test $ac_status = 0; }; then
19461  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
19462		      test "x$?" != "x0" && pkg_failed=yes
19463else
19464  pkg_failed=yes
19465fi
19466 else
19467    pkg_failed=untried
19468fi
19469if test -n "$FONTCONFIG_LIBS"; then
19470    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
19471 elif test -n "$PKG_CONFIG"; then
19472    if test -n "$PKG_CONFIG" && \
19473    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19474  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19475  ac_status=$?
19476  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19477  test $ac_status = 0; }; then
19478  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
19479		      test "x$?" != "x0" && pkg_failed=yes
19480else
19481  pkg_failed=yes
19482fi
19483 else
19484    pkg_failed=untried
19485fi
19486
19487
19488
19489if test $pkg_failed = yes; then
19490        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491printf "%s\n" "no" >&6; }
19492
19493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19494        _pkg_short_errors_supported=yes
19495else
19496        _pkg_short_errors_supported=no
19497fi
19498        if test $_pkg_short_errors_supported = yes; then
19499	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19500        else
19501	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19502        fi
19503	# Put the nasty error message in config.log where it belongs
19504	echo "$FONTCONFIG_PKG_ERRORS" >&5
19505
19506	as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
19507
19508$FONTCONFIG_PKG_ERRORS
19509
19510Consider adjusting the PKG_CONFIG_PATH environment variable if you
19511installed software in a non-standard prefix.
19512
19513Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19514and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19515See the pkg-config man page for more details." "$LINENO" 5
19516elif test $pkg_failed = untried; then
19517        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19518printf "%s\n" "no" >&6; }
19519	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19520printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19521as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19522is in your PATH or set the PKG_CONFIG environment variable to the full
19523path to pkg-config.
19524
19525Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19526and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19527See the pkg-config man page for more details.
19528
19529To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19530See \`config.log' for more details" "$LINENO" 5; }
19531else
19532	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
19533	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
19534        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19535printf "%s\n" "yes" >&6; }
19536
19537fi
19538
19539
19540
19541
19542
19543
19544
19545
19546if test "$VERSION" = "" ; then
19547       VERSION=$PACKAGE_VERSION;
19548fi
19549
19550ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
19551
19552cat >confcache <<\_ACEOF
19553# This file is a shell script that caches the results of configure
19554# tests run on this system so they can be shared between configure
19555# scripts and configure runs, see configure's option --config-cache.
19556# It is not useful on other systems.  If it contains results you don't
19557# want to keep, you may remove or edit it.
19558#
19559# config.status only pays attention to the cache file if you give it
19560# the --recheck option to rerun configure.
19561#
19562# `ac_cv_env_foo' variables (set or unset) will be overridden when
19563# loading this file, other *unset* `ac_cv_foo' will be assigned the
19564# following values.
19565
19566_ACEOF
19567
19568# The following way of writing the cache mishandles newlines in values,
19569# but we know of no workaround that is simple, portable, and efficient.
19570# So, we kill variables containing newlines.
19571# Ultrix sh set writes to stderr and can't be redirected directly,
19572# and sets the high bit in the cache file unless we assign to the vars.
19573(
19574  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19575    eval ac_val=\$$ac_var
19576    case $ac_val in #(
19577    *${as_nl}*)
19578      case $ac_var in #(
19579      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19580printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19581      esac
19582      case $ac_var in #(
19583      _ | IFS | as_nl) ;; #(
19584      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19585      *) { eval $ac_var=; unset $ac_var;} ;;
19586      esac ;;
19587    esac
19588  done
19589
19590  (set) 2>&1 |
19591    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19592    *${as_nl}ac_space=\ *)
19593      # `set' does not quote correctly, so add quotes: double-quote
19594      # substitution turns \\\\ into \\, and sed turns \\ into \.
19595      sed -n \
19596	"s/'/'\\\\''/g;
19597	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19598      ;; #(
19599    *)
19600      # `set' quotes correctly as required by POSIX, so do not add quotes.
19601      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19602      ;;
19603    esac |
19604    sort
19605) |
19606  sed '
19607     /^ac_cv_env_/b end
19608     t clear
19609     :clear
19610     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19611     t end
19612     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19613     :end' >>confcache
19614if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19615  if test -w "$cache_file"; then
19616    if test "x$cache_file" != "x/dev/null"; then
19617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19618printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19619      if test ! -f "$cache_file" || test -h "$cache_file"; then
19620	cat confcache >"$cache_file"
19621      else
19622        case $cache_file in #(
19623        */* | ?:*)
19624	  mv -f confcache "$cache_file"$$ &&
19625	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19626        *)
19627	  mv -f confcache "$cache_file" ;;
19628	esac
19629      fi
19630    fi
19631  else
19632    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19633printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19634  fi
19635fi
19636rm -f confcache
19637
19638test "x$prefix" = xNONE && prefix=$ac_default_prefix
19639# Let make expand exec_prefix.
19640test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19641
19642DEFS=-DHAVE_CONFIG_H
19643
19644ac_libobjs=
19645ac_ltlibobjs=
19646U=
19647for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19648  # 1. Remove the extension, and $U if already installed.
19649  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19650  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19651  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19652  #    will be set to the directory where LIBOBJS objects are built.
19653  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19654  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19655done
19656LIBOBJS=$ac_libobjs
19657
19658LTLIBOBJS=$ac_ltlibobjs
19659
19660
19661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19662printf %s "checking that generated files are newer than configure... " >&6; }
19663   if test -n "$am_sleep_pid"; then
19664     # Hide warnings about reused PIDs.
19665     wait $am_sleep_pid 2>/dev/null
19666   fi
19667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19668printf "%s\n" "done" >&6; }
19669 if test -n "$EXEEXT"; then
19670  am__EXEEXT_TRUE=
19671  am__EXEEXT_FALSE='#'
19672else
19673  am__EXEEXT_TRUE='#'
19674  am__EXEEXT_FALSE=
19675fi
19676
19677if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19678  as_fn_error $? "conditional \"AMDEP\" was never defined.
19679Usually this means the macro was only invoked conditionally." "$LINENO" 5
19680fi
19681if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19683Usually this means the macro was only invoked conditionally." "$LINENO" 5
19684fi
19685
19686: "${CONFIG_STATUS=./config.status}"
19687ac_write_fail=0
19688ac_clean_files_save=$ac_clean_files
19689ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19691printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19692as_write_fail=0
19693cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19694#! $SHELL
19695# Generated by $as_me.
19696# Run this file to recreate the current configuration.
19697# Compiler output produced by configure, useful for debugging
19698# configure, is in config.log if it exists.
19699
19700debug=false
19701ac_cs_recheck=false
19702ac_cs_silent=false
19703
19704SHELL=\${CONFIG_SHELL-$SHELL}
19705export SHELL
19706_ASEOF
19707cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19708## -------------------- ##
19709## M4sh Initialization. ##
19710## -------------------- ##
19711
19712# Be more Bourne compatible
19713DUALCASE=1; export DUALCASE # for MKS sh
19714as_nop=:
19715if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19716then :
19717  emulate sh
19718  NULLCMD=:
19719  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19720  # is contrary to our usage.  Disable this feature.
19721  alias -g '${1+"$@"}'='"$@"'
19722  setopt NO_GLOB_SUBST
19723else $as_nop
19724  case `(set -o) 2>/dev/null` in #(
19725  *posix*) :
19726    set -o posix ;; #(
19727  *) :
19728     ;;
19729esac
19730fi
19731
19732
19733
19734# Reset variables that may have inherited troublesome values from
19735# the environment.
19736
19737# IFS needs to be set, to space, tab, and newline, in precisely that order.
19738# (If _AS_PATH_WALK were called with IFS unset, it would have the
19739# side effect of setting IFS to empty, thus disabling word splitting.)
19740# Quoting is to prevent editors from complaining about space-tab.
19741as_nl='
19742'
19743export as_nl
19744IFS=" ""	$as_nl"
19745
19746PS1='$ '
19747PS2='> '
19748PS4='+ '
19749
19750# Ensure predictable behavior from utilities with locale-dependent output.
19751LC_ALL=C
19752export LC_ALL
19753LANGUAGE=C
19754export LANGUAGE
19755
19756# We cannot yet rely on "unset" to work, but we need these variables
19757# to be unset--not just set to an empty or harmless value--now, to
19758# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19759# also avoids known problems related to "unset" and subshell syntax
19760# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19761for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19762do eval test \${$as_var+y} \
19763  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19764done
19765
19766# Ensure that fds 0, 1, and 2 are open.
19767if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19768if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19769if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19770
19771# The user is always right.
19772if ${PATH_SEPARATOR+false} :; then
19773  PATH_SEPARATOR=:
19774  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19775    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19776      PATH_SEPARATOR=';'
19777  }
19778fi
19779
19780
19781# Find who we are.  Look in the path if we contain no directory separator.
19782as_myself=
19783case $0 in #((
19784  *[\\/]* ) as_myself=$0 ;;
19785  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19786for as_dir in $PATH
19787do
19788  IFS=$as_save_IFS
19789  case $as_dir in #(((
19790    '') as_dir=./ ;;
19791    */) ;;
19792    *) as_dir=$as_dir/ ;;
19793  esac
19794    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19795  done
19796IFS=$as_save_IFS
19797
19798     ;;
19799esac
19800# We did not find ourselves, most probably we were run as `sh COMMAND'
19801# in which case we are not to be found in the path.
19802if test "x$as_myself" = x; then
19803  as_myself=$0
19804fi
19805if test ! -f "$as_myself"; then
19806  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19807  exit 1
19808fi
19809
19810
19811
19812# as_fn_error STATUS ERROR [LINENO LOG_FD]
19813# ----------------------------------------
19814# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19815# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19816# script with STATUS, using 1 if that was 0.
19817as_fn_error ()
19818{
19819  as_status=$1; test $as_status -eq 0 && as_status=1
19820  if test "$4"; then
19821    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19823  fi
19824  printf "%s\n" "$as_me: error: $2" >&2
19825  as_fn_exit $as_status
19826} # as_fn_error
19827
19828
19829
19830# as_fn_set_status STATUS
19831# -----------------------
19832# Set $? to STATUS, without forking.
19833as_fn_set_status ()
19834{
19835  return $1
19836} # as_fn_set_status
19837
19838# as_fn_exit STATUS
19839# -----------------
19840# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19841as_fn_exit ()
19842{
19843  set +e
19844  as_fn_set_status $1
19845  exit $1
19846} # as_fn_exit
19847
19848# as_fn_unset VAR
19849# ---------------
19850# Portably unset VAR.
19851as_fn_unset ()
19852{
19853  { eval $1=; unset $1;}
19854}
19855as_unset=as_fn_unset
19856
19857# as_fn_append VAR VALUE
19858# ----------------------
19859# Append the text in VALUE to the end of the definition contained in VAR. Take
19860# advantage of any shell optimizations that allow amortized linear growth over
19861# repeated appends, instead of the typical quadratic growth present in naive
19862# implementations.
19863if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19864then :
19865  eval 'as_fn_append ()
19866  {
19867    eval $1+=\$2
19868  }'
19869else $as_nop
19870  as_fn_append ()
19871  {
19872    eval $1=\$$1\$2
19873  }
19874fi # as_fn_append
19875
19876# as_fn_arith ARG...
19877# ------------------
19878# Perform arithmetic evaluation on the ARGs, and store the result in the
19879# global $as_val. Take advantage of shells that can avoid forks. The arguments
19880# must be portable across $(()) and expr.
19881if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19882then :
19883  eval 'as_fn_arith ()
19884  {
19885    as_val=$(( $* ))
19886  }'
19887else $as_nop
19888  as_fn_arith ()
19889  {
19890    as_val=`expr "$@" || test $? -eq 1`
19891  }
19892fi # as_fn_arith
19893
19894
19895if expr a : '\(a\)' >/dev/null 2>&1 &&
19896   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19897  as_expr=expr
19898else
19899  as_expr=false
19900fi
19901
19902if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19903  as_basename=basename
19904else
19905  as_basename=false
19906fi
19907
19908if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19909  as_dirname=dirname
19910else
19911  as_dirname=false
19912fi
19913
19914as_me=`$as_basename -- "$0" ||
19915$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19916	 X"$0" : 'X\(//\)$' \| \
19917	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19918printf "%s\n" X/"$0" |
19919    sed '/^.*\/\([^/][^/]*\)\/*$/{
19920	    s//\1/
19921	    q
19922	  }
19923	  /^X\/\(\/\/\)$/{
19924	    s//\1/
19925	    q
19926	  }
19927	  /^X\/\(\/\).*/{
19928	    s//\1/
19929	    q
19930	  }
19931	  s/.*/./; q'`
19932
19933# Avoid depending upon Character Ranges.
19934as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19935as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19936as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19937as_cr_digits='0123456789'
19938as_cr_alnum=$as_cr_Letters$as_cr_digits
19939
19940
19941# Determine whether it's possible to make 'echo' print without a newline.
19942# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19943# for compatibility with existing Makefiles.
19944ECHO_C= ECHO_N= ECHO_T=
19945case `echo -n x` in #(((((
19946-n*)
19947  case `echo 'xy\c'` in
19948  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19949  xy)  ECHO_C='\c';;
19950  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19951       ECHO_T='	';;
19952  esac;;
19953*)
19954  ECHO_N='-n';;
19955esac
19956
19957# For backward compatibility with old third-party macros, we provide
19958# the shell variables $as_echo and $as_echo_n.  New code should use
19959# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19960as_echo='printf %s\n'
19961as_echo_n='printf %s'
19962
19963rm -f conf$$ conf$$.exe conf$$.file
19964if test -d conf$$.dir; then
19965  rm -f conf$$.dir/conf$$.file
19966else
19967  rm -f conf$$.dir
19968  mkdir conf$$.dir 2>/dev/null
19969fi
19970if (echo >conf$$.file) 2>/dev/null; then
19971  if ln -s conf$$.file conf$$ 2>/dev/null; then
19972    as_ln_s='ln -s'
19973    # ... but there are two gotchas:
19974    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19975    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19976    # In both cases, we have to default to `cp -pR'.
19977    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19978      as_ln_s='cp -pR'
19979  elif ln conf$$.file conf$$ 2>/dev/null; then
19980    as_ln_s=ln
19981  else
19982    as_ln_s='cp -pR'
19983  fi
19984else
19985  as_ln_s='cp -pR'
19986fi
19987rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19988rmdir conf$$.dir 2>/dev/null
19989
19990
19991# as_fn_mkdir_p
19992# -------------
19993# Create "$as_dir" as a directory, including parents if necessary.
19994as_fn_mkdir_p ()
19995{
19996
19997  case $as_dir in #(
19998  -*) as_dir=./$as_dir;;
19999  esac
20000  test -d "$as_dir" || eval $as_mkdir_p || {
20001    as_dirs=
20002    while :; do
20003      case $as_dir in #(
20004      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20005      *) as_qdir=$as_dir;;
20006      esac
20007      as_dirs="'$as_qdir' $as_dirs"
20008      as_dir=`$as_dirname -- "$as_dir" ||
20009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010	 X"$as_dir" : 'X\(//\)[^/]' \| \
20011	 X"$as_dir" : 'X\(//\)$' \| \
20012	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20013printf "%s\n" X"$as_dir" |
20014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20015	    s//\1/
20016	    q
20017	  }
20018	  /^X\(\/\/\)[^/].*/{
20019	    s//\1/
20020	    q
20021	  }
20022	  /^X\(\/\/\)$/{
20023	    s//\1/
20024	    q
20025	  }
20026	  /^X\(\/\).*/{
20027	    s//\1/
20028	    q
20029	  }
20030	  s/.*/./; q'`
20031      test -d "$as_dir" && break
20032    done
20033    test -z "$as_dirs" || eval "mkdir $as_dirs"
20034  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20035
20036
20037} # as_fn_mkdir_p
20038if mkdir -p . 2>/dev/null; then
20039  as_mkdir_p='mkdir -p "$as_dir"'
20040else
20041  test -d ./-p && rmdir ./-p
20042  as_mkdir_p=false
20043fi
20044
20045
20046# as_fn_executable_p FILE
20047# -----------------------
20048# Test if FILE is an executable regular file.
20049as_fn_executable_p ()
20050{
20051  test -f "$1" && test -x "$1"
20052} # as_fn_executable_p
20053as_test_x='test -x'
20054as_executable_p=as_fn_executable_p
20055
20056# Sed expression to map a string onto a valid CPP name.
20057as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20058
20059# Sed expression to map a string onto a valid variable name.
20060as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20061
20062
20063exec 6>&1
20064## ----------------------------------- ##
20065## Main body of $CONFIG_STATUS script. ##
20066## ----------------------------------- ##
20067_ASEOF
20068test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20069
20070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20071# Save the log message, to keep $0 and so on meaningful, and to
20072# report actual input values of CONFIG_FILES etc. instead of their
20073# values after options handling.
20074ac_log="
20075This file was extended by libXft $as_me 2.3.7, which was
20076generated by GNU Autoconf 2.71.  Invocation command line was
20077
20078  CONFIG_FILES    = $CONFIG_FILES
20079  CONFIG_HEADERS  = $CONFIG_HEADERS
20080  CONFIG_LINKS    = $CONFIG_LINKS
20081  CONFIG_COMMANDS = $CONFIG_COMMANDS
20082  $ $0 $@
20083
20084on `(hostname || uname -n) 2>/dev/null | sed 1q`
20085"
20086
20087_ACEOF
20088
20089case $ac_config_files in *"
20090"*) set x $ac_config_files; shift; ac_config_files=$*;;
20091esac
20092
20093case $ac_config_headers in *"
20094"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20095esac
20096
20097
20098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099# Files that config.status was made for.
20100config_files="$ac_config_files"
20101config_headers="$ac_config_headers"
20102config_commands="$ac_config_commands"
20103
20104_ACEOF
20105
20106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20107ac_cs_usage="\
20108\`$as_me' instantiates files and other configuration actions
20109from templates according to the current configuration.  Unless the files
20110and actions are specified as TAGs, all are instantiated by default.
20111
20112Usage: $0 [OPTION]... [TAG]...
20113
20114  -h, --help       print this help, then exit
20115  -V, --version    print version number and configuration settings, then exit
20116      --config     print configuration, then exit
20117  -q, --quiet, --silent
20118                   do not print progress messages
20119  -d, --debug      don't remove temporary files
20120      --recheck    update $as_me by reconfiguring in the same conditions
20121      --file=FILE[:TEMPLATE]
20122                   instantiate the configuration file FILE
20123      --header=FILE[:TEMPLATE]
20124                   instantiate the configuration header FILE
20125
20126Configuration files:
20127$config_files
20128
20129Configuration headers:
20130$config_headers
20131
20132Configuration commands:
20133$config_commands
20134
20135Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
20136
20137_ACEOF
20138ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20139ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20141ac_cs_config='$ac_cs_config_escaped'
20142ac_cs_version="\\
20143libXft config.status 2.3.7
20144configured by $0, generated by GNU Autoconf 2.71,
20145  with options \\"\$ac_cs_config\\"
20146
20147Copyright (C) 2021 Free Software Foundation, Inc.
20148This config.status script is free software; the Free Software Foundation
20149gives unlimited permission to copy, distribute and modify it."
20150
20151ac_pwd='$ac_pwd'
20152srcdir='$srcdir'
20153INSTALL='$INSTALL'
20154MKDIR_P='$MKDIR_P'
20155AWK='$AWK'
20156test -n "\$AWK" || AWK=awk
20157_ACEOF
20158
20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160# The default lists apply if the user does not specify any file.
20161ac_need_defaults=:
20162while test $# != 0
20163do
20164  case $1 in
20165  --*=?*)
20166    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20167    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20168    ac_shift=:
20169    ;;
20170  --*=)
20171    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20172    ac_optarg=
20173    ac_shift=:
20174    ;;
20175  *)
20176    ac_option=$1
20177    ac_optarg=$2
20178    ac_shift=shift
20179    ;;
20180  esac
20181
20182  case $ac_option in
20183  # Handling of the options.
20184  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20185    ac_cs_recheck=: ;;
20186  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20187    printf "%s\n" "$ac_cs_version"; exit ;;
20188  --config | --confi | --conf | --con | --co | --c )
20189    printf "%s\n" "$ac_cs_config"; exit ;;
20190  --debug | --debu | --deb | --de | --d | -d )
20191    debug=: ;;
20192  --file | --fil | --fi | --f )
20193    $ac_shift
20194    case $ac_optarg in
20195    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20196    '') as_fn_error $? "missing file argument" ;;
20197    esac
20198    as_fn_append CONFIG_FILES " '$ac_optarg'"
20199    ac_need_defaults=false;;
20200  --header | --heade | --head | --hea )
20201    $ac_shift
20202    case $ac_optarg in
20203    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20204    esac
20205    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20206    ac_need_defaults=false;;
20207  --he | --h)
20208    # Conflict between --help and --header
20209    as_fn_error $? "ambiguous option: \`$1'
20210Try \`$0 --help' for more information.";;
20211  --help | --hel | -h )
20212    printf "%s\n" "$ac_cs_usage"; exit ;;
20213  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20214  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20215    ac_cs_silent=: ;;
20216
20217  # This is an error.
20218  -*) as_fn_error $? "unrecognized option: \`$1'
20219Try \`$0 --help' for more information." ;;
20220
20221  *) as_fn_append ac_config_targets " $1"
20222     ac_need_defaults=false ;;
20223
20224  esac
20225  shift
20226done
20227
20228ac_configure_extra_args=
20229
20230if $ac_cs_silent; then
20231  exec 6>/dev/null
20232  ac_configure_extra_args="$ac_configure_extra_args --silent"
20233fi
20234
20235_ACEOF
20236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237if \$ac_cs_recheck; then
20238  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20239  shift
20240  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20241  CONFIG_SHELL='$SHELL'
20242  export CONFIG_SHELL
20243  exec "\$@"
20244fi
20245
20246_ACEOF
20247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20248exec 5>>config.log
20249{
20250  echo
20251  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20252## Running $as_me. ##
20253_ASBOX
20254  printf "%s\n" "$ac_log"
20255} >&5
20256
20257_ACEOF
20258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20259#
20260# INIT-COMMANDS
20261#
20262AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20263
20264
20265# The HP-UX ksh and POSIX shell print the target directory to stdout
20266# if CDPATH is set.
20267(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20268
20269sed_quote_subst='$sed_quote_subst'
20270double_quote_subst='$double_quote_subst'
20271delay_variable_subst='$delay_variable_subst'
20272macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20273macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20274enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20275enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20276pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20277enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20278shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20279SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20280ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20281PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20282host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20283host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20284host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20285build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20286build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20287build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20288SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20289Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20290GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20291EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20292FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20293LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20294NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20295LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20296max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20297ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20298exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20299lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20300lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20301lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20302lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20303lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20304reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20305reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20306FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20307OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20308deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20309file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20310file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20311want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20312DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20313sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20314AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20315lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20316AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20317archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20318STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20319RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20320old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20321old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20322old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20323lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20324CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20325CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20326compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20327GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20328lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20329lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20330lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20331lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20332lt_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"`'
20333lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20334nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20335lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20336lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20337objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20338MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20339lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20340lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20341lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20342lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20343lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20344need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20345MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20346DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20347NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20348LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20349OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20350OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20351libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20352shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20353extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20354archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20355enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20356export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20357whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20358compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20359old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20360old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20361archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20362archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20363module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20364module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20365with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20366allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20367no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20368hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20369hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20370hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20371hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20372hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20373hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20374hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20375inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20376link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20377always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20378export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20379exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20380include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20381prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20382postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20383file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20384variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20385need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20386need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20387version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20388runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20389shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20390shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20391libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20392library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20393soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20394install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20395postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20396postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20397finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20398finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20399hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20400sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20401configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20402configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20403hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20404enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20405enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20406enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20407old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20408striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20409
20410LTCC='$LTCC'
20411LTCFLAGS='$LTCFLAGS'
20412compiler='$compiler_DEFAULT'
20413
20414# A function that is used when there is no print builtin or printf.
20415func_fallback_echo ()
20416{
20417  eval 'cat <<_LTECHO_EOF
20418\$1
20419_LTECHO_EOF'
20420}
20421
20422# Quote evaled strings.
20423for var in SHELL \
20424ECHO \
20425PATH_SEPARATOR \
20426SED \
20427GREP \
20428EGREP \
20429FGREP \
20430LD \
20431NM \
20432LN_S \
20433lt_SP2NL \
20434lt_NL2SP \
20435reload_flag \
20436FILECMD \
20437OBJDUMP \
20438deplibs_check_method \
20439file_magic_cmd \
20440file_magic_glob \
20441want_nocaseglob \
20442DLLTOOL \
20443sharedlib_from_linklib_cmd \
20444AR \
20445archiver_list_spec \
20446STRIP \
20447RANLIB \
20448CC \
20449CFLAGS \
20450compiler \
20451lt_cv_sys_global_symbol_pipe \
20452lt_cv_sys_global_symbol_to_cdecl \
20453lt_cv_sys_global_symbol_to_import \
20454lt_cv_sys_global_symbol_to_c_name_address \
20455lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20456lt_cv_nm_interface \
20457nm_file_list_spec \
20458lt_cv_truncate_bin \
20459lt_prog_compiler_no_builtin_flag \
20460lt_prog_compiler_pic \
20461lt_prog_compiler_wl \
20462lt_prog_compiler_static \
20463lt_cv_prog_compiler_c_o \
20464need_locks \
20465MANIFEST_TOOL \
20466DSYMUTIL \
20467NMEDIT \
20468LIPO \
20469OTOOL \
20470OTOOL64 \
20471shrext_cmds \
20472export_dynamic_flag_spec \
20473whole_archive_flag_spec \
20474compiler_needs_object \
20475with_gnu_ld \
20476allow_undefined_flag \
20477no_undefined_flag \
20478hardcode_libdir_flag_spec \
20479hardcode_libdir_separator \
20480exclude_expsyms \
20481include_expsyms \
20482file_list_spec \
20483variables_saved_for_relink \
20484libname_spec \
20485library_names_spec \
20486soname_spec \
20487install_override_mode \
20488finish_eval \
20489old_striplib \
20490striplib; do
20491    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20492    *[\\\\\\\`\\"\\\$]*)
20493      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20494      ;;
20495    *)
20496      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20497      ;;
20498    esac
20499done
20500
20501# Double-quote double-evaled strings.
20502for var in reload_cmds \
20503old_postinstall_cmds \
20504old_postuninstall_cmds \
20505old_archive_cmds \
20506extract_expsyms_cmds \
20507old_archive_from_new_cmds \
20508old_archive_from_expsyms_cmds \
20509archive_cmds \
20510archive_expsym_cmds \
20511module_cmds \
20512module_expsym_cmds \
20513export_symbols_cmds \
20514prelink_cmds \
20515postlink_cmds \
20516postinstall_cmds \
20517postuninstall_cmds \
20518finish_cmds \
20519sys_lib_search_path_spec \
20520configure_time_dlsearch_path \
20521configure_time_lt_sys_library_path; do
20522    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20523    *[\\\\\\\`\\"\\\$]*)
20524      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20525      ;;
20526    *)
20527      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20528      ;;
20529    esac
20530done
20531
20532ac_aux_dir='$ac_aux_dir'
20533
20534# See if we are running on zsh, and set the options that allow our
20535# commands through without removal of \ escapes INIT.
20536if test -n "\${ZSH_VERSION+set}"; then
20537   setopt NO_GLOB_SUBST
20538fi
20539
20540
20541    PACKAGE='$PACKAGE'
20542    VERSION='$VERSION'
20543    RM='$RM'
20544    ofile='$ofile'
20545
20546
20547
20548
20549_ACEOF
20550
20551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20552
20553# Handling of arguments.
20554for ac_config_target in $ac_config_targets
20555do
20556  case $ac_config_target in
20557    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20558    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20559    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20560    "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
20561    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20562    "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
20563    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20564    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20565
20566  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20567  esac
20568done
20569
20570
20571# If the user did not use the arguments to specify the items to instantiate,
20572# then the envvar interface is used.  Set only those that are not.
20573# We use the long form for the default assignment because of an extremely
20574# bizarre bug on SunOS 4.1.3.
20575if $ac_need_defaults; then
20576  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20577  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20578  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20579fi
20580
20581# Have a temporary directory for convenience.  Make it in the build tree
20582# simply because there is no reason against having it here, and in addition,
20583# creating and moving files from /tmp can sometimes cause problems.
20584# Hook for its removal unless debugging.
20585# Note that there is a small window in which the directory will not be cleaned:
20586# after its creation but before its name has been assigned to `$tmp'.
20587$debug ||
20588{
20589  tmp= ac_tmp=
20590  trap 'exit_status=$?
20591  : "${ac_tmp:=$tmp}"
20592  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20593' 0
20594  trap 'as_fn_exit 1' 1 2 13 15
20595}
20596# Create a (secure) tmp directory for tmp files.
20597
20598{
20599  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20600  test -d "$tmp"
20601}  ||
20602{
20603  tmp=./conf$$-$RANDOM
20604  (umask 077 && mkdir "$tmp")
20605} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20606ac_tmp=$tmp
20607
20608# Set up the scripts for CONFIG_FILES section.
20609# No need to generate them if there are no CONFIG_FILES.
20610# This happens for instance with `./config.status config.h'.
20611if test -n "$CONFIG_FILES"; then
20612
20613
20614ac_cr=`echo X | tr X '\015'`
20615# On cygwin, bash can eat \r inside `` if the user requested igncr.
20616# But we know of no other shell where ac_cr would be empty at this
20617# point, so we can use a bashism as a fallback.
20618if test "x$ac_cr" = x; then
20619  eval ac_cr=\$\'\\r\'
20620fi
20621ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20622if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20623  ac_cs_awk_cr='\\r'
20624else
20625  ac_cs_awk_cr=$ac_cr
20626fi
20627
20628echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20629_ACEOF
20630
20631
20632{
20633  echo "cat >conf$$subs.awk <<_ACEOF" &&
20634  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20635  echo "_ACEOF"
20636} >conf$$subs.sh ||
20637  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20638ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20639ac_delim='%!_!# '
20640for ac_last_try in false false false false false :; do
20641  . ./conf$$subs.sh ||
20642    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20643
20644  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20645  if test $ac_delim_n = $ac_delim_num; then
20646    break
20647  elif $ac_last_try; then
20648    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20649  else
20650    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20651  fi
20652done
20653rm -f conf$$subs.sh
20654
20655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20656cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20657_ACEOF
20658sed -n '
20659h
20660s/^/S["/; s/!.*/"]=/
20661p
20662g
20663s/^[^!]*!//
20664:repl
20665t repl
20666s/'"$ac_delim"'$//
20667t delim
20668:nl
20669h
20670s/\(.\{148\}\)..*/\1/
20671t more1
20672s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20673p
20674n
20675b repl
20676:more1
20677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20678p
20679g
20680s/.\{148\}//
20681t nl
20682:delim
20683h
20684s/\(.\{148\}\)..*/\1/
20685t more2
20686s/["\\]/\\&/g; s/^/"/; s/$/"/
20687p
20688b
20689:more2
20690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20691p
20692g
20693s/.\{148\}//
20694t delim
20695' <conf$$subs.awk | sed '
20696/^[^""]/{
20697  N
20698  s/\n//
20699}
20700' >>$CONFIG_STATUS || ac_write_fail=1
20701rm -f conf$$subs.awk
20702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20703_ACAWK
20704cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20705  for (key in S) S_is_set[key] = 1
20706  FS = ""
20707
20708}
20709{
20710  line = $ 0
20711  nfields = split(line, field, "@")
20712  substed = 0
20713  len = length(field[1])
20714  for (i = 2; i < nfields; i++) {
20715    key = field[i]
20716    keylen = length(key)
20717    if (S_is_set[key]) {
20718      value = S[key]
20719      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20720      len += length(value) + length(field[++i])
20721      substed = 1
20722    } else
20723      len += 1 + keylen
20724  }
20725
20726  print line
20727}
20728
20729_ACAWK
20730_ACEOF
20731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20732if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20733  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20734else
20735  cat
20736fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20737  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20738_ACEOF
20739
20740# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20741# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20742# trailing colons and then remove the whole line if VPATH becomes empty
20743# (actually we leave an empty line to preserve line numbers).
20744if test "x$srcdir" = x.; then
20745  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20746h
20747s///
20748s/^/:/
20749s/[	 ]*$/:/
20750s/:\$(srcdir):/:/g
20751s/:\${srcdir}:/:/g
20752s/:@srcdir@:/:/g
20753s/^:*//
20754s/:*$//
20755x
20756s/\(=[	 ]*\).*/\1/
20757G
20758s/\n//
20759s/^[^=]*=[	 ]*$//
20760}'
20761fi
20762
20763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764fi # test -n "$CONFIG_FILES"
20765
20766# Set up the scripts for CONFIG_HEADERS section.
20767# No need to generate them if there are no CONFIG_HEADERS.
20768# This happens for instance with `./config.status Makefile'.
20769if test -n "$CONFIG_HEADERS"; then
20770cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20771BEGIN {
20772_ACEOF
20773
20774# Transform confdefs.h into an awk script `defines.awk', embedded as
20775# here-document in config.status, that substitutes the proper values into
20776# config.h.in to produce config.h.
20777
20778# Create a delimiter string that does not exist in confdefs.h, to ease
20779# handling of long lines.
20780ac_delim='%!_!# '
20781for ac_last_try in false false :; do
20782  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20783  if test -z "$ac_tt"; then
20784    break
20785  elif $ac_last_try; then
20786    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20787  else
20788    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20789  fi
20790done
20791
20792# For the awk script, D is an array of macro values keyed by name,
20793# likewise P contains macro parameters if any.  Preserve backslash
20794# newline sequences.
20795
20796ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20797sed -n '
20798s/.\{148\}/&'"$ac_delim"'/g
20799t rset
20800:rset
20801s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20802t def
20803d
20804:def
20805s/\\$//
20806t bsnl
20807s/["\\]/\\&/g
20808s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20809D["\1"]=" \3"/p
20810s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20811d
20812:bsnl
20813s/["\\]/\\&/g
20814s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20815D["\1"]=" \3\\\\\\n"\\/p
20816t cont
20817s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20818t cont
20819d
20820:cont
20821n
20822s/.\{148\}/&'"$ac_delim"'/g
20823t clear
20824:clear
20825s/\\$//
20826t bsnlc
20827s/["\\]/\\&/g; s/^/"/; s/$/"/p
20828d
20829:bsnlc
20830s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20831b cont
20832' <confdefs.h | sed '
20833s/'"$ac_delim"'/"\\\
20834"/g' >>$CONFIG_STATUS || ac_write_fail=1
20835
20836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20837  for (key in D) D_is_set[key] = 1
20838  FS = ""
20839}
20840/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20841  line = \$ 0
20842  split(line, arg, " ")
20843  if (arg[1] == "#") {
20844    defundef = arg[2]
20845    mac1 = arg[3]
20846  } else {
20847    defundef = substr(arg[1], 2)
20848    mac1 = arg[2]
20849  }
20850  split(mac1, mac2, "(") #)
20851  macro = mac2[1]
20852  prefix = substr(line, 1, index(line, defundef) - 1)
20853  if (D_is_set[macro]) {
20854    # Preserve the white space surrounding the "#".
20855    print prefix "define", macro P[macro] D[macro]
20856    next
20857  } else {
20858    # Replace #undef with comments.  This is necessary, for example,
20859    # in the case of _POSIX_SOURCE, which is predefined and required
20860    # on some systems where configure will not decide to define it.
20861    if (defundef == "undef") {
20862      print "/*", prefix defundef, macro, "*/"
20863      next
20864    }
20865  }
20866}
20867{ print }
20868_ACAWK
20869_ACEOF
20870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20871  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20872fi # test -n "$CONFIG_HEADERS"
20873
20874
20875eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20876shift
20877for ac_tag
20878do
20879  case $ac_tag in
20880  :[FHLC]) ac_mode=$ac_tag; continue;;
20881  esac
20882  case $ac_mode$ac_tag in
20883  :[FHL]*:*);;
20884  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20885  :[FH]-) ac_tag=-:-;;
20886  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20887  esac
20888  ac_save_IFS=$IFS
20889  IFS=:
20890  set x $ac_tag
20891  IFS=$ac_save_IFS
20892  shift
20893  ac_file=$1
20894  shift
20895
20896  case $ac_mode in
20897  :L) ac_source=$1;;
20898  :[FH])
20899    ac_file_inputs=
20900    for ac_f
20901    do
20902      case $ac_f in
20903      -) ac_f="$ac_tmp/stdin";;
20904      *) # Look for the file first in the build tree, then in the source tree
20905	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20906	 # because $ac_f cannot contain `:'.
20907	 test -f "$ac_f" ||
20908	   case $ac_f in
20909	   [\\/$]*) false;;
20910	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20911	   esac ||
20912	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20913      esac
20914      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20915      as_fn_append ac_file_inputs " '$ac_f'"
20916    done
20917
20918    # Let's still pretend it is `configure' which instantiates (i.e., don't
20919    # use $as_me), people would be surprised to read:
20920    #    /* config.h.  Generated by config.status.  */
20921    configure_input='Generated from '`
20922	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20923	`' by configure.'
20924    if test x"$ac_file" != x-; then
20925      configure_input="$ac_file.  $configure_input"
20926      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20927printf "%s\n" "$as_me: creating $ac_file" >&6;}
20928    fi
20929    # Neutralize special characters interpreted by sed in replacement strings.
20930    case $configure_input in #(
20931    *\&* | *\|* | *\\* )
20932       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20933       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20934    *) ac_sed_conf_input=$configure_input;;
20935    esac
20936
20937    case $ac_tag in
20938    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20939      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20940    esac
20941    ;;
20942  esac
20943
20944  ac_dir=`$as_dirname -- "$ac_file" ||
20945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946	 X"$ac_file" : 'X\(//\)[^/]' \| \
20947	 X"$ac_file" : 'X\(//\)$' \| \
20948	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20949printf "%s\n" X"$ac_file" |
20950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20951	    s//\1/
20952	    q
20953	  }
20954	  /^X\(\/\/\)[^/].*/{
20955	    s//\1/
20956	    q
20957	  }
20958	  /^X\(\/\/\)$/{
20959	    s//\1/
20960	    q
20961	  }
20962	  /^X\(\/\).*/{
20963	    s//\1/
20964	    q
20965	  }
20966	  s/.*/./; q'`
20967  as_dir="$ac_dir"; as_fn_mkdir_p
20968  ac_builddir=.
20969
20970case "$ac_dir" in
20971.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972*)
20973  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20974  # A ".." for each directory in $ac_dir_suffix.
20975  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20976  case $ac_top_builddir_sub in
20977  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20979  esac ;;
20980esac
20981ac_abs_top_builddir=$ac_pwd
20982ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983# for backward compatibility:
20984ac_top_builddir=$ac_top_build_prefix
20985
20986case $srcdir in
20987  .)  # We are building in place.
20988    ac_srcdir=.
20989    ac_top_srcdir=$ac_top_builddir_sub
20990    ac_abs_top_srcdir=$ac_pwd ;;
20991  [\\/]* | ?:[\\/]* )  # Absolute name.
20992    ac_srcdir=$srcdir$ac_dir_suffix;
20993    ac_top_srcdir=$srcdir
20994    ac_abs_top_srcdir=$srcdir ;;
20995  *) # Relative name.
20996    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997    ac_top_srcdir=$ac_top_build_prefix$srcdir
20998    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20999esac
21000ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21001
21002
21003  case $ac_mode in
21004  :F)
21005  #
21006  # CONFIG_FILE
21007  #
21008
21009  case $INSTALL in
21010  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21012  esac
21013  ac_MKDIR_P=$MKDIR_P
21014  case $MKDIR_P in
21015  [\\/$]* | ?:[\\/]* ) ;;
21016  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21017  esac
21018_ACEOF
21019
21020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21021# If the template does not know about datarootdir, expand it.
21022# FIXME: This hack should be removed a few years after 2.60.
21023ac_datarootdir_hack=; ac_datarootdir_seen=
21024ac_sed_dataroot='
21025/datarootdir/ {
21026  p
21027  q
21028}
21029/@datadir@/p
21030/@docdir@/p
21031/@infodir@/p
21032/@localedir@/p
21033/@mandir@/p'
21034case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21035*datarootdir*) ac_datarootdir_seen=yes;;
21036*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21038printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21039_ACEOF
21040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21041  ac_datarootdir_hack='
21042  s&@datadir@&$datadir&g
21043  s&@docdir@&$docdir&g
21044  s&@infodir@&$infodir&g
21045  s&@localedir@&$localedir&g
21046  s&@mandir@&$mandir&g
21047  s&\\\${datarootdir}&$datarootdir&g' ;;
21048esac
21049_ACEOF
21050
21051# Neutralize VPATH when `$srcdir' = `.'.
21052# Shell code in configure.ac might set extrasub.
21053# FIXME: do we really want to maintain this feature?
21054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055ac_sed_extra="$ac_vpsub
21056$extrasub
21057_ACEOF
21058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21059:t
21060/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21061s|@configure_input@|$ac_sed_conf_input|;t t
21062s&@top_builddir@&$ac_top_builddir_sub&;t t
21063s&@top_build_prefix@&$ac_top_build_prefix&;t t
21064s&@srcdir@&$ac_srcdir&;t t
21065s&@abs_srcdir@&$ac_abs_srcdir&;t t
21066s&@top_srcdir@&$ac_top_srcdir&;t t
21067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21068s&@builddir@&$ac_builddir&;t t
21069s&@abs_builddir@&$ac_abs_builddir&;t t
21070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21071s&@INSTALL@&$ac_INSTALL&;t t
21072s&@MKDIR_P@&$ac_MKDIR_P&;t t
21073$ac_datarootdir_hack
21074"
21075eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21076  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21077
21078test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21079  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21080  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21081      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21083which seems to be undefined.  Please make sure it is defined" >&5
21084printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21085which seems to be undefined.  Please make sure it is defined" >&2;}
21086
21087  rm -f "$ac_tmp/stdin"
21088  case $ac_file in
21089  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21090  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21091  esac \
21092  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21093 ;;
21094  :H)
21095  #
21096  # CONFIG_HEADER
21097  #
21098  if test x"$ac_file" != x-; then
21099    {
21100      printf "%s\n" "/* $configure_input  */" >&1 \
21101      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21102    } >"$ac_tmp/config.h" \
21103      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21104    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21105      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21106printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21107    else
21108      rm -f "$ac_file"
21109      mv "$ac_tmp/config.h" "$ac_file" \
21110	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21111    fi
21112  else
21113    printf "%s\n" "/* $configure_input  */" >&1 \
21114      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21115      || as_fn_error $? "could not create -" "$LINENO" 5
21116  fi
21117# Compute "$ac_file"'s index in $config_headers.
21118_am_arg="$ac_file"
21119_am_stamp_count=1
21120for _am_header in $config_headers :; do
21121  case $_am_header in
21122    $_am_arg | $_am_arg:* )
21123      break ;;
21124    * )
21125      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21126  esac
21127done
21128echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21129$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21131	 X"$_am_arg" : 'X\(//\)$' \| \
21132	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21133printf "%s\n" X"$_am_arg" |
21134    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21135	    s//\1/
21136	    q
21137	  }
21138	  /^X\(\/\/\)[^/].*/{
21139	    s//\1/
21140	    q
21141	  }
21142	  /^X\(\/\/\)$/{
21143	    s//\1/
21144	    q
21145	  }
21146	  /^X\(\/\).*/{
21147	    s//\1/
21148	    q
21149	  }
21150	  s/.*/./; q'`/stamp-h$_am_stamp_count
21151 ;;
21152
21153  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21154printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21155 ;;
21156  esac
21157
21158
21159  case $ac_file$ac_mode in
21160    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21161  # Older Autoconf quotes --file arguments for eval, but not when files
21162  # are listed without --file.  Let's play safe and only enable the eval
21163  # if we detect the quoting.
21164  # TODO: see whether this extra hack can be removed once we start
21165  # requiring Autoconf 2.70 or later.
21166  case $CONFIG_FILES in #(
21167  *\'*) :
21168    eval set x "$CONFIG_FILES" ;; #(
21169  *) :
21170    set x $CONFIG_FILES ;; #(
21171  *) :
21172     ;;
21173esac
21174  shift
21175  # Used to flag and report bootstrapping failures.
21176  am_rc=0
21177  for am_mf
21178  do
21179    # Strip MF so we end up with the name of the file.
21180    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21181    # Check whether this is an Automake generated Makefile which includes
21182    # dependency-tracking related rules and includes.
21183    # Grep'ing the whole file directly is not great: AIX grep has a line
21184    # limit of 2048, but all sed's we know have understand at least 4000.
21185    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21186      || continue
21187    am_dirpart=`$as_dirname -- "$am_mf" ||
21188$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21189	 X"$am_mf" : 'X\(//\)[^/]' \| \
21190	 X"$am_mf" : 'X\(//\)$' \| \
21191	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21192printf "%s\n" X"$am_mf" |
21193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21194	    s//\1/
21195	    q
21196	  }
21197	  /^X\(\/\/\)[^/].*/{
21198	    s//\1/
21199	    q
21200	  }
21201	  /^X\(\/\/\)$/{
21202	    s//\1/
21203	    q
21204	  }
21205	  /^X\(\/\).*/{
21206	    s//\1/
21207	    q
21208	  }
21209	  s/.*/./; q'`
21210    am_filepart=`$as_basename -- "$am_mf" ||
21211$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21212	 X"$am_mf" : 'X\(//\)$' \| \
21213	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21214printf "%s\n" X/"$am_mf" |
21215    sed '/^.*\/\([^/][^/]*\)\/*$/{
21216	    s//\1/
21217	    q
21218	  }
21219	  /^X\/\(\/\/\)$/{
21220	    s//\1/
21221	    q
21222	  }
21223	  /^X\/\(\/\).*/{
21224	    s//\1/
21225	    q
21226	  }
21227	  s/.*/./; q'`
21228    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21229      && sed -e '/# am--include-marker/d' "$am_filepart" \
21230        | $MAKE -f - am--depfiles" >&5
21231   (cd "$am_dirpart" \
21232      && sed -e '/# am--include-marker/d' "$am_filepart" \
21233        | $MAKE -f - am--depfiles) >&5 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } || am_rc=$?
21237  done
21238  if test $am_rc -ne 0; then
21239    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21240printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21241as_fn_error $? "Something went wrong bootstrapping makefile fragments
21242    for automatic dependency tracking.  If GNU make was not used, consider
21243    re-running the configure script with MAKE=\"gmake\" (or whatever is
21244    necessary).  You can also try re-running configure with the
21245    '--disable-dependency-tracking' option to at least be able to build
21246    the package (albeit without support for automatic dependency tracking).
21247See \`config.log' for more details" "$LINENO" 5; }
21248  fi
21249  { am_dirpart=; unset am_dirpart;}
21250  { am_filepart=; unset am_filepart;}
21251  { am_mf=; unset am_mf;}
21252  { am_rc=; unset am_rc;}
21253  rm -f conftest-deps.mk
21254}
21255 ;;
21256    "libtool":C)
21257
21258    # See if we are running on zsh, and set the options that allow our
21259    # commands through without removal of \ escapes.
21260    if test -n "${ZSH_VERSION+set}"; then
21261      setopt NO_GLOB_SUBST
21262    fi
21263
21264    cfgfile=${ofile}T
21265    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21266    $RM "$cfgfile"
21267
21268    cat <<_LT_EOF >> "$cfgfile"
21269#! $SHELL
21270# Generated automatically by $as_me ($PACKAGE) $VERSION
21271# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21272
21273# Provide generalized library-building support services.
21274# Written by Gordon Matzigkeit, 1996
21275
21276# Copyright (C) 2014 Free Software Foundation, Inc.
21277# This is free software; see the source for copying conditions.  There is NO
21278# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21279
21280# GNU Libtool is free software; you can redistribute it and/or modify
21281# it under the terms of the GNU General Public License as published by
21282# the Free Software Foundation; either version 2 of of the License, or
21283# (at your option) any later version.
21284#
21285# As a special exception to the GNU General Public License, if you
21286# distribute this file as part of a program or library that is built
21287# using GNU Libtool, you may include this file under the  same
21288# distribution terms that you use for the rest of that program.
21289#
21290# GNU Libtool is distributed in the hope that it will be useful, but
21291# WITHOUT ANY WARRANTY; without even the implied warranty of
21292# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21293# GNU General Public License for more details.
21294#
21295# You should have received a copy of the GNU General Public License
21296# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21297
21298
21299# The names of the tagged configurations supported by this script.
21300available_tags=''
21301
21302# Configured defaults for sys_lib_dlsearch_path munging.
21303: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21304
21305# ### BEGIN LIBTOOL CONFIG
21306
21307# Which release of libtool.m4 was used?
21308macro_version=$macro_version
21309macro_revision=$macro_revision
21310
21311# Whether or not to build shared libraries.
21312build_libtool_libs=$enable_shared
21313
21314# Whether or not to build static libraries.
21315build_old_libs=$enable_static
21316
21317# What type of objects to build.
21318pic_mode=$pic_mode
21319
21320# Whether or not to optimize for fast installation.
21321fast_install=$enable_fast_install
21322
21323# Shared archive member basename,for filename based shared library versioning on AIX.
21324shared_archive_member_spec=$shared_archive_member_spec
21325
21326# Shell to use when invoking shell scripts.
21327SHELL=$lt_SHELL
21328
21329# An echo program that protects backslashes.
21330ECHO=$lt_ECHO
21331
21332# The PATH separator for the build system.
21333PATH_SEPARATOR=$lt_PATH_SEPARATOR
21334
21335# The host system.
21336host_alias=$host_alias
21337host=$host
21338host_os=$host_os
21339
21340# The build system.
21341build_alias=$build_alias
21342build=$build
21343build_os=$build_os
21344
21345# A sed program that does not truncate output.
21346SED=$lt_SED
21347
21348# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21349Xsed="\$SED -e 1s/^X//"
21350
21351# A grep program that handles long lines.
21352GREP=$lt_GREP
21353
21354# An ERE matcher.
21355EGREP=$lt_EGREP
21356
21357# A literal string matcher.
21358FGREP=$lt_FGREP
21359
21360# A BSD- or MS-compatible name lister.
21361NM=$lt_NM
21362
21363# Whether we need soft or hard links.
21364LN_S=$lt_LN_S
21365
21366# What is the maximum length of a command?
21367max_cmd_len=$max_cmd_len
21368
21369# Object file suffix (normally "o").
21370objext=$ac_objext
21371
21372# Executable file suffix (normally "").
21373exeext=$exeext
21374
21375# whether the shell understands "unset".
21376lt_unset=$lt_unset
21377
21378# turn spaces into newlines.
21379SP2NL=$lt_lt_SP2NL
21380
21381# turn newlines into spaces.
21382NL2SP=$lt_lt_NL2SP
21383
21384# convert \$build file names to \$host format.
21385to_host_file_cmd=$lt_cv_to_host_file_cmd
21386
21387# convert \$build files to toolchain format.
21388to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21389
21390# A file(cmd) program that detects file types.
21391FILECMD=$lt_FILECMD
21392
21393# An object symbol dumper.
21394OBJDUMP=$lt_OBJDUMP
21395
21396# Method to check whether dependent libraries are shared objects.
21397deplibs_check_method=$lt_deplibs_check_method
21398
21399# Command to use when deplibs_check_method = "file_magic".
21400file_magic_cmd=$lt_file_magic_cmd
21401
21402# How to find potential files when deplibs_check_method = "file_magic".
21403file_magic_glob=$lt_file_magic_glob
21404
21405# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21406want_nocaseglob=$lt_want_nocaseglob
21407
21408# DLL creation program.
21409DLLTOOL=$lt_DLLTOOL
21410
21411# Command to associate shared and link libraries.
21412sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21413
21414# The archiver.
21415AR=$lt_AR
21416
21417# Flags to create an archive (by configure).
21418lt_ar_flags=$lt_ar_flags
21419
21420# Flags to create an archive.
21421AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21422
21423# How to feed a file listing to the archiver.
21424archiver_list_spec=$lt_archiver_list_spec
21425
21426# A symbol stripping program.
21427STRIP=$lt_STRIP
21428
21429# Commands used to install an old-style archive.
21430RANLIB=$lt_RANLIB
21431old_postinstall_cmds=$lt_old_postinstall_cmds
21432old_postuninstall_cmds=$lt_old_postuninstall_cmds
21433
21434# Whether to use a lock for old archive extraction.
21435lock_old_archive_extraction=$lock_old_archive_extraction
21436
21437# A C compiler.
21438LTCC=$lt_CC
21439
21440# LTCC compiler flags.
21441LTCFLAGS=$lt_CFLAGS
21442
21443# Take the output of nm and produce a listing of raw symbols and C names.
21444global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21445
21446# Transform the output of nm in a proper C declaration.
21447global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21448
21449# Transform the output of nm into a list of symbols to manually relocate.
21450global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21451
21452# Transform the output of nm in a C name address pair.
21453global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21454
21455# Transform the output of nm in a C name address pair when lib prefix is needed.
21456global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21457
21458# The name lister interface.
21459nm_interface=$lt_lt_cv_nm_interface
21460
21461# Specify filename containing input files for \$NM.
21462nm_file_list_spec=$lt_nm_file_list_spec
21463
21464# The root where to search for dependent libraries,and where our libraries should be installed.
21465lt_sysroot=$lt_sysroot
21466
21467# Command to truncate a binary pipe.
21468lt_truncate_bin=$lt_lt_cv_truncate_bin
21469
21470# The name of the directory that contains temporary libtool files.
21471objdir=$objdir
21472
21473# Used to examine libraries when file_magic_cmd begins with "file".
21474MAGIC_CMD=$MAGIC_CMD
21475
21476# Must we lock files when doing compilation?
21477need_locks=$lt_need_locks
21478
21479# Manifest tool.
21480MANIFEST_TOOL=$lt_MANIFEST_TOOL
21481
21482# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21483DSYMUTIL=$lt_DSYMUTIL
21484
21485# Tool to change global to local symbols on Mac OS X.
21486NMEDIT=$lt_NMEDIT
21487
21488# Tool to manipulate fat objects and archives on Mac OS X.
21489LIPO=$lt_LIPO
21490
21491# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21492OTOOL=$lt_OTOOL
21493
21494# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21495OTOOL64=$lt_OTOOL64
21496
21497# Old archive suffix (normally "a").
21498libext=$libext
21499
21500# Shared library suffix (normally ".so").
21501shrext_cmds=$lt_shrext_cmds
21502
21503# The commands to extract the exported symbol list from a shared archive.
21504extract_expsyms_cmds=$lt_extract_expsyms_cmds
21505
21506# Variables whose values should be saved in libtool wrapper scripts and
21507# restored at link time.
21508variables_saved_for_relink=$lt_variables_saved_for_relink
21509
21510# Do we need the "lib" prefix for modules?
21511need_lib_prefix=$need_lib_prefix
21512
21513# Do we need a version for libraries?
21514need_version=$need_version
21515
21516# Library versioning type.
21517version_type=$version_type
21518
21519# Shared library runtime path variable.
21520runpath_var=$runpath_var
21521
21522# Shared library path variable.
21523shlibpath_var=$shlibpath_var
21524
21525# Is shlibpath searched before the hard-coded library search path?
21526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21527
21528# Format of library name prefix.
21529libname_spec=$lt_libname_spec
21530
21531# List of archive names.  First name is the real one, the rest are links.
21532# The last name is the one that the linker finds with -lNAME
21533library_names_spec=$lt_library_names_spec
21534
21535# The coded name of the library, if different from the real name.
21536soname_spec=$lt_soname_spec
21537
21538# Permission mode override for installation of shared libraries.
21539install_override_mode=$lt_install_override_mode
21540
21541# Command to use after installation of a shared archive.
21542postinstall_cmds=$lt_postinstall_cmds
21543
21544# Command to use after uninstallation of a shared archive.
21545postuninstall_cmds=$lt_postuninstall_cmds
21546
21547# Commands used to finish a libtool library installation in a directory.
21548finish_cmds=$lt_finish_cmds
21549
21550# As "finish_cmds", except a single script fragment to be evaled but
21551# not shown.
21552finish_eval=$lt_finish_eval
21553
21554# Whether we should hardcode library paths into libraries.
21555hardcode_into_libs=$hardcode_into_libs
21556
21557# Compile-time system search path for libraries.
21558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21559
21560# Detected run-time system search path for libraries.
21561sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21562
21563# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21564configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21565
21566# Whether dlopen is supported.
21567dlopen_support=$enable_dlopen
21568
21569# Whether dlopen of programs is supported.
21570dlopen_self=$enable_dlopen_self
21571
21572# Whether dlopen of statically linked programs is supported.
21573dlopen_self_static=$enable_dlopen_self_static
21574
21575# Commands to strip libraries.
21576old_striplib=$lt_old_striplib
21577striplib=$lt_striplib
21578
21579
21580# The linker used to build libraries.
21581LD=$lt_LD
21582
21583# How to create reloadable object files.
21584reload_flag=$lt_reload_flag
21585reload_cmds=$lt_reload_cmds
21586
21587# Commands used to build an old-style archive.
21588old_archive_cmds=$lt_old_archive_cmds
21589
21590# A language specific compiler.
21591CC=$lt_compiler
21592
21593# Is the compiler the GNU compiler?
21594with_gcc=$GCC
21595
21596# Compiler flag to turn off builtin functions.
21597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21598
21599# Additional compiler flags for building library objects.
21600pic_flag=$lt_lt_prog_compiler_pic
21601
21602# How to pass a linker flag through the compiler.
21603wl=$lt_lt_prog_compiler_wl
21604
21605# Compiler flag to prevent dynamic linking.
21606link_static_flag=$lt_lt_prog_compiler_static
21607
21608# Does compiler simultaneously support -c and -o options?
21609compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21610
21611# Whether or not to add -lc for building shared libraries.
21612build_libtool_need_lc=$archive_cmds_need_lc
21613
21614# Whether or not to disallow shared libs when runtime libs are static.
21615allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21616
21617# Compiler flag to allow reflexive dlopens.
21618export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21619
21620# Compiler flag to generate shared objects directly from archives.
21621whole_archive_flag_spec=$lt_whole_archive_flag_spec
21622
21623# Whether the compiler copes with passing no objects directly.
21624compiler_needs_object=$lt_compiler_needs_object
21625
21626# Create an old-style archive from a shared archive.
21627old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21628
21629# Create a temporary old-style archive to link instead of a shared archive.
21630old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21631
21632# Commands used to build a shared archive.
21633archive_cmds=$lt_archive_cmds
21634archive_expsym_cmds=$lt_archive_expsym_cmds
21635
21636# Commands used to build a loadable module if different from building
21637# a shared archive.
21638module_cmds=$lt_module_cmds
21639module_expsym_cmds=$lt_module_expsym_cmds
21640
21641# Whether we are building with GNU ld or not.
21642with_gnu_ld=$lt_with_gnu_ld
21643
21644# Flag that allows shared libraries with undefined symbols to be built.
21645allow_undefined_flag=$lt_allow_undefined_flag
21646
21647# Flag that enforces no undefined symbols.
21648no_undefined_flag=$lt_no_undefined_flag
21649
21650# Flag to hardcode \$libdir into a binary during linking.
21651# This must work even if \$libdir does not exist
21652hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21653
21654# Whether we need a single "-rpath" flag with a separated argument.
21655hardcode_libdir_separator=$lt_hardcode_libdir_separator
21656
21657# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21658# DIR into the resulting binary.
21659hardcode_direct=$hardcode_direct
21660
21661# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21662# DIR into the resulting binary and the resulting library dependency is
21663# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21664# library is relocated.
21665hardcode_direct_absolute=$hardcode_direct_absolute
21666
21667# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21668# into the resulting binary.
21669hardcode_minus_L=$hardcode_minus_L
21670
21671# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21672# into the resulting binary.
21673hardcode_shlibpath_var=$hardcode_shlibpath_var
21674
21675# Set to "yes" if building a shared library automatically hardcodes DIR
21676# into the library and all subsequent libraries and executables linked
21677# against it.
21678hardcode_automatic=$hardcode_automatic
21679
21680# Set to yes if linker adds runtime paths of dependent libraries
21681# to runtime path list.
21682inherit_rpath=$inherit_rpath
21683
21684# Whether libtool must link a program against all its dependency libraries.
21685link_all_deplibs=$link_all_deplibs
21686
21687# Set to "yes" if exported symbols are required.
21688always_export_symbols=$always_export_symbols
21689
21690# The commands to list exported symbols.
21691export_symbols_cmds=$lt_export_symbols_cmds
21692
21693# Symbols that should not be listed in the preloaded symbols.
21694exclude_expsyms=$lt_exclude_expsyms
21695
21696# Symbols that must always be exported.
21697include_expsyms=$lt_include_expsyms
21698
21699# Commands necessary for linking programs (against libraries) with templates.
21700prelink_cmds=$lt_prelink_cmds
21701
21702# Commands necessary for finishing linking programs.
21703postlink_cmds=$lt_postlink_cmds
21704
21705# Specify filename containing input files.
21706file_list_spec=$lt_file_list_spec
21707
21708# How to hardcode a shared library path into an executable.
21709hardcode_action=$hardcode_action
21710
21711# ### END LIBTOOL CONFIG
21712
21713_LT_EOF
21714
21715    cat <<'_LT_EOF' >> "$cfgfile"
21716
21717# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21718
21719# func_munge_path_list VARIABLE PATH
21720# -----------------------------------
21721# VARIABLE is name of variable containing _space_ separated list of
21722# directories to be munged by the contents of PATH, which is string
21723# having a format:
21724# "DIR[:DIR]:"
21725#       string "DIR[ DIR]" will be prepended to VARIABLE
21726# ":DIR[:DIR]"
21727#       string "DIR[ DIR]" will be appended to VARIABLE
21728# "DIRP[:DIRP]::[DIRA:]DIRA"
21729#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21730#       "DIRA[ DIRA]" will be appended to VARIABLE
21731# "DIR[:DIR]"
21732#       VARIABLE will be replaced by "DIR[ DIR]"
21733func_munge_path_list ()
21734{
21735    case x$2 in
21736    x)
21737        ;;
21738    *:)
21739        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21740        ;;
21741    x:*)
21742        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21743        ;;
21744    *::*)
21745        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21746        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21747        ;;
21748    *)
21749        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21750        ;;
21751    esac
21752}
21753
21754
21755# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21756func_cc_basename ()
21757{
21758    for cc_temp in $*""; do
21759      case $cc_temp in
21760        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21761        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21762        \-*) ;;
21763        *) break;;
21764      esac
21765    done
21766    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21767}
21768
21769
21770# ### END FUNCTIONS SHARED WITH CONFIGURE
21771
21772_LT_EOF
21773
21774  case $host_os in
21775  aix3*)
21776    cat <<\_LT_EOF >> "$cfgfile"
21777# AIX sometimes has problems with the GCC collect2 program.  For some
21778# reason, if we set the COLLECT_NAMES environment variable, the problems
21779# vanish in a puff of smoke.
21780if test set != "${COLLECT_NAMES+set}"; then
21781  COLLECT_NAMES=
21782  export COLLECT_NAMES
21783fi
21784_LT_EOF
21785    ;;
21786  esac
21787
21788
21789
21790ltmain=$ac_aux_dir/ltmain.sh
21791
21792
21793  # We use sed instead of cat because bash on DJGPP gets confused if
21794  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21795  # text mode, it properly converts lines to CR/LF.  This bash problem
21796  # is reportedly fixed, but why not run on old versions too?
21797  $SED '$q' "$ltmain" >> "$cfgfile" \
21798     || (rm -f "$cfgfile"; exit 1)
21799
21800   mv -f "$cfgfile" "$ofile" ||
21801    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21802  chmod +x "$ofile"
21803
21804 ;;
21805
21806  esac
21807done # for ac_tag
21808
21809
21810as_fn_exit 0
21811_ACEOF
21812ac_clean_files=$ac_clean_files_save
21813
21814test $ac_write_fail = 0 ||
21815  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21816
21817
21818# configure is writing to config.log, and then calls config.status.
21819# config.status does its own redirection, appending to config.log.
21820# Unfortunately, on DOS this fails, as config.log is still kept open
21821# by configure, so config.status won't be able to write to it; its
21822# output is simply discarded.  So we exec the FD to /dev/null,
21823# effectively closing config.log, so it can be properly (re)opened and
21824# appended to by config.status.  When coming back to configure, we
21825# need to make the FD available again.
21826if test "$no_create" != yes; then
21827  ac_cs_success=:
21828  ac_config_status_args=
21829  test "$silent" = yes &&
21830    ac_config_status_args="$ac_config_status_args --quiet"
21831  exec 5>/dev/null
21832  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21833  exec 5>>config.log
21834  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21835  # would make configure fail if this is the last instruction.
21836  $ac_cs_success || as_fn_exit 1
21837fi
21838if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21840printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21841fi
21842
21843
21844