configure revision 74835918
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXpm 3.5.16.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/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/libxpm/-/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='libXpm'
624PACKAGE_TARNAME='libXpm'
625PACKAGE_VERSION='3.5.16'
626PACKAGE_STRING='libXpm 3.5.16'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpm/-/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
667HAVE_GLIB_FALSE
668HAVE_GLIB_TRUE
669GLIB_LIBS
670GLIB_CFLAGS
671ENABLE_UNIT_TESTS_FALSE
672ENABLE_UNIT_TESTS_TRUE
673XORG_MALLOC_DEBUG_ENV
674XPM_PATH_UNCOMPRESS
675XPM_PATH_COMPRESS
676XPM_PATH_GZIP
677COMPRESSED_PIXMAPS_FALSE
678COMPRESSED_PIXMAPS_TRUE
679USE_GETTEXT_FALSE
680USE_GETTEXT_TRUE
681LOCALEDIR
682BUILD_SXPM_FALSE
683BUILD_SXPM_TRUE
684SXPM_LIBS
685SXPM_CFLAGS
686XPM_LIBS
687XPM_CFLAGS
688MAN_SUBSTS
689XORG_MAN_PAGE
690ADMIN_MAN_DIR
691DRIVER_MAN_DIR
692MISC_MAN_DIR
693FILE_MAN_DIR
694LIB_MAN_DIR
695APP_MAN_DIR
696ADMIN_MAN_SUFFIX
697DRIVER_MAN_SUFFIX
698MISC_MAN_SUFFIX
699FILE_MAN_SUFFIX
700LIB_MAN_SUFFIX
701APP_MAN_SUFFIX
702INSTALL_CMD
703PKG_CONFIG_LIBDIR
704PKG_CONFIG_PATH
705PKG_CONFIG
706CHANGELOG_CMD
707STRICT_CFLAGS
708CWARNFLAGS
709BASE_CFLAGS
710LT_SYS_LIBRARY_PATH
711OTOOL64
712OTOOL
713LIPO
714NMEDIT
715DSYMUTIL
716MANIFEST_TOOL
717RANLIB
718ac_ct_AR
719AR
720DLLTOOL
721OBJDUMP
722FILECMD
723LN_S
724NM
725ac_ct_DUMPBIN
726DUMPBIN
727LD
728FGREP
729EGREP
730GREP
731SED
732am__fastdepCC_FALSE
733am__fastdepCC_TRUE
734CCDEPMODE
735am__nodep
736AMDEPBACKSLASH
737AMDEP_FALSE
738AMDEP_TRUE
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748host_os
749host_vendor
750host_cpu
751host
752build_os
753build_vendor
754build_cpu
755build
756LIBTOOL
757AM_BACKSLASH
758AM_DEFAULT_VERBOSITY
759AM_DEFAULT_V
760AM_V
761CSCOPE
762ETAGS
763CTAGS
764am__untar
765am__tar
766AMTAR
767am__leading_dot
768SET_MAKE
769AWK
770mkdir_p
771MKDIR_P
772INSTALL_STRIP_PROGRAM
773STRIP
774install_sh
775MAKEINFO
776AUTOHEADER
777AUTOMAKE
778AUTOCONF
779ACLOCAL
780VERSION
781PACKAGE
782CYGPATH_W
783am__isrc
784INSTALL_DATA
785INSTALL_SCRIPT
786INSTALL_PROGRAM
787target_alias
788host_alias
789build_alias
790LIBS
791ECHO_T
792ECHO_N
793ECHO_C
794DEFS
795mandir
796localedir
797libdir
798psdir
799pdfdir
800dvidir
801htmldir
802infodir
803docdir
804oldincludedir
805includedir
806runstatedir
807localstatedir
808sharedstatedir
809sysconfdir
810datadir
811datarootdir
812libexecdir
813sbindir
814bindir
815program_transform_name
816prefix
817exec_prefix
818PACKAGE_URL
819PACKAGE_BUGREPORT
820PACKAGE_STRING
821PACKAGE_VERSION
822PACKAGE_TARNAME
823PACKAGE_NAME
824PATH_SEPARATOR
825SHELL
826am__quote'
827ac_subst_files=''
828ac_user_opts='
829enable_option_checking
830enable_silent_rules
831enable_shared
832enable_static
833with_pic
834enable_fast_install
835with_aix_soname
836enable_dependency_tracking
837with_gnu_ld
838with_sysroot
839enable_libtool_lock
840enable_selective_werror
841enable_strict_compilation
842with_localedir
843enable_open_zfile
844enable_stat_zfile
845enable_unit_tests
846with_glib
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856LT_SYS_LIBRARY_PATH
857PKG_CONFIG
858PKG_CONFIG_PATH
859PKG_CONFIG_LIBDIR
860XPM_CFLAGS
861XPM_LIBS
862SXPM_CFLAGS
863SXPM_LIBS
864XORG_MALLOC_DEBUG_ENV
865GLIB_CFLAGS
866GLIB_LIBS'
867
868
869# Initialize some variables set by options.
870ac_init_help=
871ac_init_version=false
872ac_unrecognized_opts=
873ac_unrecognized_sep=
874# The variables have the same names as the options, with
875# dashes changed to underlines.
876cache_file=/dev/null
877exec_prefix=NONE
878no_create=
879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
887verbose=
888x_includes=NONE
889x_libraries=NONE
890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
896# (The list follows the same order as the GNU Coding Standards.)
897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
905runstatedir='${localstatedir}/run'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922  # If the previous option needs an argument, assign it.
923  if test -n "$ac_prev"; then
924    eval $ac_prev=\$ac_option
925    ac_prev=
926    continue
927  fi
928
929  case $ac_option in
930  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931  *=)   ac_optarg= ;;
932  *)    ac_optarg=yes ;;
933  esac
934
935  case $ac_dashdash$ac_option in
936  --)
937    ac_dashdash=yes ;;
938
939  -bindir | --bindir | --bindi | --bind | --bin | --bi)
940    ac_prev=bindir ;;
941  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942    bindir=$ac_optarg ;;
943
944  -build | --build | --buil | --bui | --bu)
945    ac_prev=build_alias ;;
946  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947    build_alias=$ac_optarg ;;
948
949  -cache-file | --cache-file | --cache-fil | --cache-fi \
950  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951    ac_prev=cache_file ;;
952  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954    cache_file=$ac_optarg ;;
955
956  --config-cache | -C)
957    cache_file=config.cache ;;
958
959  -datadir | --datadir | --datadi | --datad)
960    ac_prev=datadir ;;
961  -datadir=* | --datadir=* | --datadi=* | --datad=*)
962    datadir=$ac_optarg ;;
963
964  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965  | --dataroo | --dataro | --datar)
966    ac_prev=datarootdir ;;
967  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969    datarootdir=$ac_optarg ;;
970
971  -disable-* | --disable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: \`$ac_useropt'"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=no ;;
986
987  -docdir | --docdir | --docdi | --doc | --do)
988    ac_prev=docdir ;;
989  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990    docdir=$ac_optarg ;;
991
992  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993    ac_prev=dvidir ;;
994  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995    dvidir=$ac_optarg ;;
996
997  -enable-* | --enable-*)
998    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1002    ac_useropt_orig=$ac_useropt
1003    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1004    case $ac_user_opts in
1005      *"
1006"enable_$ac_useropt"
1007"*) ;;
1008      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009	 ac_unrecognized_sep=', ';;
1010    esac
1011    eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015  | --exec | --exe | --ex)
1016    ac_prev=exec_prefix ;;
1017  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019  | --exec=* | --exe=* | --ex=*)
1020    exec_prefix=$ac_optarg ;;
1021
1022  -gas | --gas | --ga | --g)
1023    # Obsolete; use --with-gas.
1024    with_gas=yes ;;
1025
1026  -help | --help | --hel | --he | -h)
1027    ac_init_help=long ;;
1028  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029    ac_init_help=recursive ;;
1030  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031    ac_init_help=short ;;
1032
1033  -host | --host | --hos | --ho)
1034    ac_prev=host_alias ;;
1035  -host=* | --host=* | --hos=* | --ho=*)
1036    host_alias=$ac_optarg ;;
1037
1038  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039    ac_prev=htmldir ;;
1040  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041  | --ht=*)
1042    htmldir=$ac_optarg ;;
1043
1044  -includedir | --includedir | --includedi | --included | --include \
1045  | --includ | --inclu | --incl | --inc)
1046    ac_prev=includedir ;;
1047  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048  | --includ=* | --inclu=* | --incl=* | --inc=*)
1049    includedir=$ac_optarg ;;
1050
1051  -infodir | --infodir | --infodi | --infod | --info | --inf)
1052    ac_prev=infodir ;;
1053  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054    infodir=$ac_optarg ;;
1055
1056  -libdir | --libdir | --libdi | --libd)
1057    ac_prev=libdir ;;
1058  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059    libdir=$ac_optarg ;;
1060
1061  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062  | --libexe | --libex | --libe)
1063    ac_prev=libexecdir ;;
1064  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065  | --libexe=* | --libex=* | --libe=*)
1066    libexecdir=$ac_optarg ;;
1067
1068  -localedir | --localedir | --localedi | --localed | --locale)
1069    ac_prev=localedir ;;
1070  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071    localedir=$ac_optarg ;;
1072
1073  -localstatedir | --localstatedir | --localstatedi | --localstated \
1074  | --localstate | --localstat | --localsta | --localst | --locals)
1075    ac_prev=localstatedir ;;
1076  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078    localstatedir=$ac_optarg ;;
1079
1080  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081    ac_prev=mandir ;;
1082  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083    mandir=$ac_optarg ;;
1084
1085  -nfp | --nfp | --nf)
1086    # Obsolete; use --without-fp.
1087    with_fp=no ;;
1088
1089  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090  | --no-cr | --no-c | -n)
1091    no_create=yes ;;
1092
1093  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095    no_recursion=yes ;;
1096
1097  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099  | --oldin | --oldi | --old | --ol | --o)
1100    ac_prev=oldincludedir ;;
1101  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104    oldincludedir=$ac_optarg ;;
1105
1106  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107    ac_prev=prefix ;;
1108  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109    prefix=$ac_optarg ;;
1110
1111  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112  | --program-pre | --program-pr | --program-p)
1113    ac_prev=program_prefix ;;
1114  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116    program_prefix=$ac_optarg ;;
1117
1118  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119  | --program-suf | --program-su | --program-s)
1120    ac_prev=program_suffix ;;
1121  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123    program_suffix=$ac_optarg ;;
1124
1125  -program-transform-name | --program-transform-name \
1126  | --program-transform-nam | --program-transform-na \
1127  | --program-transform-n | --program-transform- \
1128  | --program-transform | --program-transfor \
1129  | --program-transfo | --program-transf \
1130  | --program-trans | --program-tran \
1131  | --progr-tra | --program-tr | --program-t)
1132    ac_prev=program_transform_name ;;
1133  -program-transform-name=* | --program-transform-name=* \
1134  | --program-transform-nam=* | --program-transform-na=* \
1135  | --program-transform-n=* | --program-transform-=* \
1136  | --program-transform=* | --program-transfor=* \
1137  | --program-transfo=* | --program-transf=* \
1138  | --program-trans=* | --program-tran=* \
1139  | --progr-tra=* | --program-tr=* | --program-t=*)
1140    program_transform_name=$ac_optarg ;;
1141
1142  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143    ac_prev=pdfdir ;;
1144  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145    pdfdir=$ac_optarg ;;
1146
1147  -psdir | --psdir | --psdi | --psd | --ps)
1148    ac_prev=psdir ;;
1149  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150    psdir=$ac_optarg ;;
1151
1152  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153  | -silent | --silent | --silen | --sile | --sil)
1154    silent=yes ;;
1155
1156  -runstatedir | --runstatedir | --runstatedi | --runstated \
1157  | --runstate | --runstat | --runsta | --runst | --runs \
1158  | --run | --ru | --r)
1159    ac_prev=runstatedir ;;
1160  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1161  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1162  | --run=* | --ru=* | --r=*)
1163    runstatedir=$ac_optarg ;;
1164
1165  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166    ac_prev=sbindir ;;
1167  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168  | --sbi=* | --sb=*)
1169    sbindir=$ac_optarg ;;
1170
1171  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173  | --sharedst | --shareds | --shared | --share | --shar \
1174  | --sha | --sh)
1175    ac_prev=sharedstatedir ;;
1176  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179  | --sha=* | --sh=*)
1180    sharedstatedir=$ac_optarg ;;
1181
1182  -site | --site | --sit)
1183    ac_prev=site ;;
1184  -site=* | --site=* | --sit=*)
1185    site=$ac_optarg ;;
1186
1187  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188    ac_prev=srcdir ;;
1189  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190    srcdir=$ac_optarg ;;
1191
1192  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193  | --syscon | --sysco | --sysc | --sys | --sy)
1194    ac_prev=sysconfdir ;;
1195  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197    sysconfdir=$ac_optarg ;;
1198
1199  -target | --target | --targe | --targ | --tar | --ta | --t)
1200    ac_prev=target_alias ;;
1201  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202    target_alias=$ac_optarg ;;
1203
1204  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205    verbose=yes ;;
1206
1207  -version | --version | --versio | --versi | --vers | -V)
1208    ac_init_version=: ;;
1209
1210  -with-* | --with-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid package name: \`$ac_useropt'"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"with_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval with_$ac_useropt=\$ac_optarg ;;
1225
1226  -without-* | --without-*)
1227    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230      as_fn_error $? "invalid package name: \`$ac_useropt'"
1231    ac_useropt_orig=$ac_useropt
1232    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233    case $ac_user_opts in
1234      *"
1235"with_$ac_useropt"
1236"*) ;;
1237      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238	 ac_unrecognized_sep=', ';;
1239    esac
1240    eval with_$ac_useropt=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261Try \`$0 --help' for more information"
1262    ;;
1263
1264  *=*)
1265    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266    # Reject names that are not valid shell variable names.
1267    case $ac_envvar in #(
1268      '' | [0-9]* | *[!_$as_cr_alnum]* )
1269      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270    esac
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  as_fn_error $? "missing argument to $ac_option"
1288fi
1289
1290if test -n "$ac_unrecognized_opts"; then
1291  case $enable_option_checking in
1292    no) ;;
1293    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295  esac
1296fi
1297
1298# Check all directory arguments for consistency.
1299for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300		datadir sysconfdir sharedstatedir localstatedir includedir \
1301		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302		libdir localedir mandir runstatedir
1303do
1304  eval ac_val=\$$ac_var
1305  # Remove trailing slashes.
1306  case $ac_val in
1307    */ )
1308      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309      eval $ac_var=\$ac_val;;
1310  esac
1311  # Be sure to have absolute directory names.
1312  case $ac_val in
1313    [\\/$]* | ?:[\\/]* )  continue;;
1314    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315  esac
1316  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317done
1318
1319# There might be people who depend on the old broken behavior: `$host'
1320# used to hold the argument of --host etc.
1321# FIXME: To remove some day.
1322build=$build_alias
1323host=$host_alias
1324target=$target_alias
1325
1326# FIXME: To remove some day.
1327if test "x$host_alias" != x; then
1328  if test "x$build_alias" = x; then
1329    cross_compiling=maybe
1330  elif test "x$build_alias" != "x$host_alias"; then
1331    cross_compiling=yes
1332  fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
1340
1341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344  as_fn_error $? "working directory cannot be determined"
1345test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346  as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351  ac_srcdir_defaulted=yes
1352  # Try the directory containing this script, then the parent directory.
1353  ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355	 X"$as_myself" : 'X\(//\)[^/]' \| \
1356	 X"$as_myself" : 'X\(//\)$' \| \
1357	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358printf "%s\n" X"$as_myself" |
1359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)[^/].*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\/\)$/{
1368	    s//\1/
1369	    q
1370	  }
1371	  /^X\(\/\).*/{
1372	    s//\1/
1373	    q
1374	  }
1375	  s/.*/./; q'`
1376  srcdir=$ac_confdir
1377  if test ! -r "$srcdir/$ac_unique_file"; then
1378    srcdir=..
1379  fi
1380else
1381  ac_srcdir_defaulted=no
1382fi
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386fi
1387ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388ac_abs_confdir=`(
1389	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390	pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393  srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_env_${ac_var}_value=\$${ac_var}
1404  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412  # Omit some internal or obsolete options to make the list less imposing.
1413  # This message is too long to be a string in the A/UX 3.1 sh.
1414  cat <<_ACEOF
1415\`configure' configures libXpm 3.5.16 to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425  -h, --help              display this help and exit
1426      --help=short        display options specific to this package
1427      --help=recursive    display the short help of all the included packages
1428  -V, --version           display version information and exit
1429  -q, --quiet, --silent   do not print \`checking ...' messages
1430      --cache-file=FILE   cache test results in FILE [disabled]
1431  -C, --config-cache      alias for \`--cache-file=config.cache'
1432  -n, --no-create         do not create output files
1433      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436  --prefix=PREFIX         install architecture-independent files in PREFIX
1437                          [$ac_default_prefix]
1438  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                          [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449  --bindir=DIR            user executables [EPREFIX/bin]
1450  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451  --libexecdir=DIR        program executables [EPREFIX/libexec]
1452  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1456  --libdir=DIR            object code libraries [EPREFIX/lib]
1457  --includedir=DIR        C header files [PREFIX/include]
1458  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461  --infodir=DIR           info documentation [DATAROOTDIR/info]
1462  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463  --mandir=DIR            man documentation [DATAROOTDIR/man]
1464  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXpm]
1465  --htmldir=DIR           html documentation [DOCDIR]
1466  --dvidir=DIR            dvi documentation [DOCDIR]
1467  --pdfdir=DIR            pdf documentation [DOCDIR]
1468  --psdir=DIR             ps documentation [DOCDIR]
1469_ACEOF
1470
1471  cat <<\_ACEOF
1472
1473Program names:
1474  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
1478System types:
1479  --build=BUILD     configure for building on BUILD [guessed]
1480  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485  case $ac_init_help in
1486     short | recursive ) echo "Configuration of libXpm 3.5.16:";;
1487   esac
1488  cat <<\_ACEOF
1489
1490Optional Features:
1491  --disable-option-checking  ignore unrecognized --enable/--with options
1492  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1493  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1494  --enable-silent-rules   less verbose build output (undo: "make V=1")
1495  --disable-silent-rules  verbose build output (undo: "make V=0")
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-static[=PKGS]  build static libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --enable-dependency-tracking
1501                          do not reject slow dependency extractors
1502  --disable-dependency-tracking
1503                          speeds up one-time build
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505  --disable-selective-werror
1506                          Turn off selective compiler errors. (default:
1507                          enabled)
1508  --enable-strict-compilation
1509                          Enable all warnings from compiler and make them
1510                          errors (default: disabled)
1511  --enable-open-zfile     Search for files with .Z & .gz extensions
1512                          automatically [default=auto]
1513  --enable-stat-zfile     Search for files with .Z & .gz extensions
1514                          automatically [default=auto]
1515  --enable-unit-tests     Enable building unit test cases (default: auto)
1516
1517Optional Packages:
1518  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1521                          both]
1522  --with-aix-soname=aix|svr4|both
1523                          shared library versioning (aka "SONAME") variant to
1524                          provide on AIX, [default=aix].
1525  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1526  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1527                          compiler's sysroot if not specified).
1528  --with-localedir=<path> Path to install message files in (default:
1529                          datadir/locale)
1530  --with-glib             Use GLib library for unit testing (default: auto)
1531
1532Some influential environment variables:
1533  CC          C compiler command
1534  CFLAGS      C compiler flags
1535  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536              nonstandard directory <lib dir>
1537  LIBS        libraries to pass to the linker, e.g. -l<library>
1538  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539              you have headers in a nonstandard directory <include dir>
1540  LT_SYS_LIBRARY_PATH
1541              User-defined run-time library search path.
1542  PKG_CONFIG  path to pkg-config utility
1543  PKG_CONFIG_PATH
1544              directories to add to pkg-config's search path
1545  PKG_CONFIG_LIBDIR
1546              path overriding pkg-config's built-in search path
1547  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1548  XPM_LIBS    linker flags for XPM, overriding pkg-config
1549  SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1550  SXPM_LIBS   linker flags for SXPM, overriding pkg-config
1551  XORG_MALLOC_DEBUG_ENV
1552              Environment variables to enable memory checking in tests
1553  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1554  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1555
1556Use these variables to override the choices made by `configure' or to help
1557it to find libraries and programs with nonstandard names/locations.
1558
1559Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>.
1560_ACEOF
1561ac_status=$?
1562fi
1563
1564if test "$ac_init_help" = "recursive"; then
1565  # If there are subdirs, report their specific --help.
1566  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567    test -d "$ac_dir" ||
1568      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569      continue
1570    ac_builddir=.
1571
1572case "$ac_dir" in
1573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574*)
1575  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1576  # A ".." for each directory in $ac_dir_suffix.
1577  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578  case $ac_top_builddir_sub in
1579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581  esac ;;
1582esac
1583ac_abs_top_builddir=$ac_pwd
1584ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585# for backward compatibility:
1586ac_top_builddir=$ac_top_build_prefix
1587
1588case $srcdir in
1589  .)  # We are building in place.
1590    ac_srcdir=.
1591    ac_top_srcdir=$ac_top_builddir_sub
1592    ac_abs_top_srcdir=$ac_pwd ;;
1593  [\\/]* | ?:[\\/]* )  # Absolute name.
1594    ac_srcdir=$srcdir$ac_dir_suffix;
1595    ac_top_srcdir=$srcdir
1596    ac_abs_top_srcdir=$srcdir ;;
1597  *) # Relative name.
1598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599    ac_top_srcdir=$ac_top_build_prefix$srcdir
1600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601esac
1602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604    cd "$ac_dir" || { ac_status=$?; continue; }
1605    # Check for configure.gnu first; this name is used for a wrapper for
1606    # Metaconfig's "Configure" on case-insensitive file systems.
1607    if test -f "$ac_srcdir/configure.gnu"; then
1608      echo &&
1609      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610    elif test -f "$ac_srcdir/configure"; then
1611      echo &&
1612      $SHELL "$ac_srcdir/configure" --help=recursive
1613    else
1614      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615    fi || ac_status=$?
1616    cd "$ac_pwd" || { ac_status=$?; break; }
1617  done
1618fi
1619
1620test -n "$ac_init_help" && exit $ac_status
1621if $ac_init_version; then
1622  cat <<\_ACEOF
1623libXpm configure 3.5.16
1624generated by GNU Autoconf 2.71
1625
1626Copyright (C) 2021 Free Software Foundation, Inc.
1627This configure script is free software; the Free Software Foundation
1628gives unlimited permission to copy, distribute and modify it.
1629_ACEOF
1630  exit
1631fi
1632
1633## ------------------------ ##
1634## Autoconf initialization. ##
1635## ------------------------ ##
1636
1637# ac_fn_c_try_compile LINENO
1638# --------------------------
1639# Try to compile conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_compile ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  rm -f conftest.$ac_objext conftest.beam
1644  if { { ac_try="$ac_compile"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650printf "%s\n" "$ac_try_echo"; } >&5
1651  (eval "$ac_compile") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } && {
1660	 test -z "$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       } && test -s conftest.$ac_objext
1663then :
1664  ac_retval=0
1665else $as_nop
1666  printf "%s\n" "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669	ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689printf "%s\n" "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest$ac_exeext && {
1702	 test "$cross_compiling" = yes ||
1703	 test -x conftest$ac_exeext
1704       }
1705then :
1706  ac_retval=0
1707else $as_nop
1708  printf "%s\n" "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715  # interfere with the next link command; also delete a directory that is
1716  # left behind by Apple's compiler.  We do this before executing the actions.
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731printf %s "checking for $2... " >&6; }
1732if eval test \${$3+y}
1733then :
1734  printf %s "(cached) " >&6
1735else $as_nop
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"
1742then :
1743  eval "$3=yes"
1744else $as_nop
1745  eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748fi
1749eval ac_res=\$$3
1750	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751printf "%s\n" "$ac_res" >&6; }
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754} # ac_fn_c_check_header_compile
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763printf %s "checking for $2... " >&6; }
1764if eval test \${$3+y}
1765then :
1766  printf %s "(cached) " >&6
1767else $as_nop
1768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h.  */
1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1772#define $2 innocuous_$2
1773
1774/* System header to define __stub macros and hopefully few prototypes,
1775   which can conflict with char $2 (void); below.  */
1776
1777#include <limits.h>
1778#undef $2
1779
1780/* Override any GCC internal prototype to avoid an error.
1781   Use char because int might match the return type of a GCC
1782   builtin and then its argument prototype would still apply.  */
1783#ifdef __cplusplus
1784extern "C"
1785#endif
1786char $2 (void);
1787/* The GNU C library defines this for functions which it implements
1788    to always fail with ENOSYS.  Some functions are actually named
1789    something starting with __ and the normal name is an alias.  */
1790#if defined __stub_$2 || defined __stub___$2
1791choke me
1792#endif
1793
1794int
1795main (void)
1796{
1797return $2 ();
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_link "$LINENO"
1803then :
1804  eval "$3=yes"
1805else $as_nop
1806  eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.beam \
1809    conftest$ac_exeext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813printf "%s\n" "$ac_res" >&6; }
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} # ac_fn_c_check_func
1817
1818# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1819# ------------------------------------------------------------------
1820# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1821# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1822ac_fn_check_decl ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  as_decl_name=`echo $2|sed 's/ *(.*//'`
1826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827printf %s "checking whether $as_decl_name is declared... " >&6; }
1828if eval test \${$3+y}
1829then :
1830  printf %s "(cached) " >&6
1831else $as_nop
1832  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1833  eval ac_save_FLAGS=\$$6
1834  as_fn_append $6 " $5"
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837$4
1838int
1839main (void)
1840{
1841#ifndef $as_decl_name
1842#ifdef __cplusplus
1843  (void) $as_decl_use;
1844#else
1845  (void) $as_decl_name;
1846#endif
1847#endif
1848
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"
1854then :
1855  eval "$3=yes"
1856else $as_nop
1857  eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1860  eval $6=\$ac_save_FLAGS
1861
1862fi
1863eval ac_res=\$$3
1864	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865printf "%s\n" "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_check_decl
1869ac_configure_args_raw=
1870for ac_arg
1871do
1872  case $ac_arg in
1873  *\'*)
1874    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875  esac
1876  as_fn_append ac_configure_args_raw " '$ac_arg'"
1877done
1878
1879case $ac_configure_args_raw in
1880  *$as_nl*)
1881    ac_safe_unquote= ;;
1882  *)
1883    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1884    ac_unsafe_a="$ac_unsafe_z#~"
1885    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1886    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1887esac
1888
1889cat >config.log <<_ACEOF
1890This file contains any messages produced by compilers while
1891running configure, to aid debugging if configure makes a mistake.
1892
1893It was created by libXpm $as_me 3.5.16, which was
1894generated by GNU Autoconf 2.71.  Invocation command line was
1895
1896  $ $0$ac_configure_args_raw
1897
1898_ACEOF
1899exec 5>>config.log
1900{
1901cat <<_ASUNAME
1902## --------- ##
1903## Platform. ##
1904## --------- ##
1905
1906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1914
1915/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1916/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1919/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1920/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1921/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1922
1923_ASUNAME
1924
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  case $as_dir in #(((
1930    '') as_dir=./ ;;
1931    */) ;;
1932    *) as_dir=$as_dir/ ;;
1933  esac
1934    printf "%s\n" "PATH: $as_dir"
1935  done
1936IFS=$as_save_IFS
1937
1938} >&5
1939
1940cat >&5 <<_ACEOF
1941
1942
1943## ----------- ##
1944## Core tests. ##
1945## ----------- ##
1946
1947_ACEOF
1948
1949
1950# Keep a trace of the command line.
1951# Strip out --no-create and --no-recursion so they do not pile up.
1952# Strip out --silent because we don't want to record it for future runs.
1953# Also quote any args containing shell meta-characters.
1954# Make two passes to allow for proper duplicate-argument suppression.
1955ac_configure_args=
1956ac_configure_args0=
1957ac_configure_args1=
1958ac_must_keep_next=false
1959for ac_pass in 1 2
1960do
1961  for ac_arg
1962  do
1963    case $ac_arg in
1964    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966    | -silent | --silent | --silen | --sile | --sil)
1967      continue ;;
1968    *\'*)
1969      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970    esac
1971    case $ac_pass in
1972    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973    2)
1974      as_fn_append ac_configure_args1 " '$ac_arg'"
1975      if test $ac_must_keep_next = true; then
1976	ac_must_keep_next=false # Got value, back to normal.
1977      else
1978	case $ac_arg in
1979	  *=* | --config-cache | -C | -disable-* | --disable-* \
1980	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982	  | -with-* | --with-* | -without-* | --without-* | --x)
1983	    case "$ac_configure_args0 " in
1984	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985	    esac
1986	    ;;
1987	  -* ) ac_must_keep_next=true ;;
1988	esac
1989      fi
1990      as_fn_append ac_configure_args " '$ac_arg'"
1991      ;;
1992    esac
1993  done
1994done
1995{ ac_configure_args0=; unset ac_configure_args0;}
1996{ ac_configure_args1=; unset ac_configure_args1;}
1997
1998# When interrupted or exit'd, cleanup temporary files, and complete
1999# config.log.  We remove comments because anyway the quotes in there
2000# would cause problems or look ugly.
2001# WARNING: Use '\'' to represent an apostrophe within the trap.
2002# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003trap 'exit_status=$?
2004  # Sanitize IFS.
2005  IFS=" ""	$as_nl"
2006  # Save into config.log some information that might help in debugging.
2007  {
2008    echo
2009
2010    printf "%s\n" "## ---------------- ##
2011## Cache variables. ##
2012## ---------------- ##"
2013    echo
2014    # The following way of writing the cache mishandles newlines in values,
2015(
2016  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017    eval ac_val=\$$ac_var
2018    case $ac_val in #(
2019    *${as_nl}*)
2020      case $ac_var in #(
2021      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023      esac
2024      case $ac_var in #(
2025      _ | IFS | as_nl) ;; #(
2026      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027      *) { eval $ac_var=; unset $ac_var;} ;;
2028      esac ;;
2029    esac
2030  done
2031  (set) 2>&1 |
2032    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033    *${as_nl}ac_space=\ *)
2034      sed -n \
2035	"s/'\''/'\''\\\\'\'''\''/g;
2036	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037      ;; #(
2038    *)
2039      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040      ;;
2041    esac |
2042    sort
2043)
2044    echo
2045
2046    printf "%s\n" "## ----------------- ##
2047## Output variables. ##
2048## ----------------- ##"
2049    echo
2050    for ac_var in $ac_subst_vars
2051    do
2052      eval ac_val=\$$ac_var
2053      case $ac_val in
2054      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055      esac
2056      printf "%s\n" "$ac_var='\''$ac_val'\''"
2057    done | sort
2058    echo
2059
2060    if test -n "$ac_subst_files"; then
2061      printf "%s\n" "## ------------------- ##
2062## File substitutions. ##
2063## ------------------- ##"
2064      echo
2065      for ac_var in $ac_subst_files
2066      do
2067	eval ac_val=\$$ac_var
2068	case $ac_val in
2069	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070	esac
2071	printf "%s\n" "$ac_var='\''$ac_val'\''"
2072      done | sort
2073      echo
2074    fi
2075
2076    if test -s confdefs.h; then
2077      printf "%s\n" "## ----------- ##
2078## confdefs.h. ##
2079## ----------- ##"
2080      echo
2081      cat confdefs.h
2082      echo
2083    fi
2084    test "$ac_signal" != 0 &&
2085      printf "%s\n" "$as_me: caught signal $ac_signal"
2086    printf "%s\n" "$as_me: exit $exit_status"
2087  } >&5
2088  rm -f core *.core core.conftest.* &&
2089    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090    exit $exit_status
2091' 0
2092for ac_signal in 1 2 13 15; do
2093  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
2098rm -f -r conftest* confdefs.h
2099
2100printf "%s\n" "/* confdefs.h */" > confdefs.h
2101
2102# Predefined preprocessor variables.
2103
2104printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2105
2106printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2107
2108printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2109
2110printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2115
2116
2117# Let the site file select an alternate cache file if it wants to.
2118# Prefer an explicitly selected file to automatically selected ones.
2119if test -n "$CONFIG_SITE"; then
2120  ac_site_files="$CONFIG_SITE"
2121elif test "x$prefix" != xNONE; then
2122  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2123else
2124  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2125fi
2126
2127for ac_site_file in $ac_site_files
2128do
2129  case $ac_site_file in #(
2130  */*) :
2131     ;; #(
2132  *) :
2133    ac_site_file=./$ac_site_file ;;
2134esac
2135  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2138    sed 's/^/| /' "$ac_site_file" >&5
2139    . "$ac_site_file" \
2140      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2142as_fn_error $? "failed to load site script $ac_site_file
2143See \`config.log' for more details" "$LINENO" 5; }
2144  fi
2145done
2146
2147if test -r "$cache_file"; then
2148  # Some versions of bash will fail to source /dev/null (special files
2149  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2150  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2153    case $cache_file in
2154      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155      *)                      . "./$cache_file";;
2156    esac
2157  fi
2158else
2159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2161  >$cache_file
2162fi
2163
2164# Test code for whether the C compiler supports C89 (global declarations)
2165ac_c_conftest_c89_globals='
2166/* Does the compiler advertise C89 conformance?
2167   Do not test the value of __STDC__, because some compilers set it to 0
2168   while being otherwise adequately conformant. */
2169#if !defined __STDC__
2170# error "Compiler does not advertise C89 conformance"
2171#endif
2172
2173#include <stddef.h>
2174#include <stdarg.h>
2175struct stat;
2176/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2177struct buf { int x; };
2178struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2179static char *e (char **p, int i)
2180{
2181  return p[i];
2182}
2183static char *f (char * (*g) (char **, int), char **p, ...)
2184{
2185  char *s;
2186  va_list v;
2187  va_start (v,p);
2188  s = g (p, va_arg (v,int));
2189  va_end (v);
2190  return s;
2191}
2192
2193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2194   function prototypes and stuff, but not \xHH hex character constants.
2195   These do not provoke an error unfortunately, instead are silently treated
2196   as an "x".  The following induces an error, until -std is added to get
2197   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2198   array size at least.  It is necessary to write \x00 == 0 to get something
2199   that is true only with -std.  */
2200int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2201
2202/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2203   inside strings and character constants.  */
2204#define FOO(x) '\''x'\''
2205int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2206
2207int test (int i, double x);
2208struct s1 {int (*f) (int a);};
2209struct s2 {int (*f) (double a);};
2210int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2211               int, int);'
2212
2213# Test code for whether the C compiler supports C89 (body of main).
2214ac_c_conftest_c89_main='
2215ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2216'
2217
2218# Test code for whether the C compiler supports C99 (global declarations)
2219ac_c_conftest_c99_globals='
2220// Does the compiler advertise C99 conformance?
2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2222# error "Compiler does not advertise C99 conformance"
2223#endif
2224
2225#include <stdbool.h>
2226extern int puts (const char *);
2227extern int printf (const char *, ...);
2228extern int dprintf (int, const char *, ...);
2229extern void *malloc (size_t);
2230extern void free (void *);
2231
2232// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2233// dprintf is used instead of fprintf to avoid needing to declare
2234// FILE and stderr.
2235#define debug(...) dprintf (2, __VA_ARGS__)
2236#define showlist(...) puts (#__VA_ARGS__)
2237#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2238static void
2239test_varargs_macros (void)
2240{
2241  int x = 1234;
2242  int y = 5678;
2243  debug ("Flag");
2244  debug ("X = %d\n", x);
2245  showlist (The first, second, and third items.);
2246  report (x>y, "x is %d but y is %d", x, y);
2247}
2248
2249// Check long long types.
2250#define BIG64 18446744073709551615ull
2251#define BIG32 4294967295ul
2252#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2253#if !BIG_OK
2254  #error "your preprocessor is broken"
2255#endif
2256#if BIG_OK
2257#else
2258  #error "your preprocessor is broken"
2259#endif
2260static long long int bignum = -9223372036854775807LL;
2261static unsigned long long int ubignum = BIG64;
2262
2263struct incomplete_array
2264{
2265  int datasize;
2266  double data[];
2267};
2268
2269struct named_init {
2270  int number;
2271  const wchar_t *name;
2272  double average;
2273};
2274
2275typedef const char *ccp;
2276
2277static inline int
2278test_restrict (ccp restrict text)
2279{
2280  // See if C++-style comments work.
2281  // Iterate through items via the restricted pointer.
2282  // Also check for declarations in for loops.
2283  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2284    continue;
2285  return 0;
2286}
2287
2288// Check varargs and va_copy.
2289static bool
2290test_varargs (const char *format, ...)
2291{
2292  va_list args;
2293  va_start (args, format);
2294  va_list args_copy;
2295  va_copy (args_copy, args);
2296
2297  const char *str = "";
2298  int number = 0;
2299  float fnumber = 0;
2300
2301  while (*format)
2302    {
2303      switch (*format++)
2304	{
2305	case '\''s'\'': // string
2306	  str = va_arg (args_copy, const char *);
2307	  break;
2308	case '\''d'\'': // int
2309	  number = va_arg (args_copy, int);
2310	  break;
2311	case '\''f'\'': // float
2312	  fnumber = va_arg (args_copy, double);
2313	  break;
2314	default:
2315	  break;
2316	}
2317    }
2318  va_end (args_copy);
2319  va_end (args);
2320
2321  return *str && number && fnumber;
2322}
2323'
2324
2325# Test code for whether the C compiler supports C99 (body of main).
2326ac_c_conftest_c99_main='
2327  // Check bool.
2328  _Bool success = false;
2329  success |= (argc != 0);
2330
2331  // Check restrict.
2332  if (test_restrict ("String literal") == 0)
2333    success = true;
2334  char *restrict newvar = "Another string";
2335
2336  // Check varargs.
2337  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2338  test_varargs_macros ();
2339
2340  // Check flexible array members.
2341  struct incomplete_array *ia =
2342    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2343  ia->datasize = 10;
2344  for (int i = 0; i < ia->datasize; ++i)
2345    ia->data[i] = i * 1.234;
2346
2347  // Check named initializers.
2348  struct named_init ni = {
2349    .number = 34,
2350    .name = L"Test wide string",
2351    .average = 543.34343,
2352  };
2353
2354  ni.number = 58;
2355
2356  int dynamic_array[ni.number];
2357  dynamic_array[0] = argv[0][0];
2358  dynamic_array[ni.number - 1] = 543;
2359
2360  // work around unused variable warnings
2361  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2362	 || dynamic_array[ni.number - 1] != 543);
2363'
2364
2365# Test code for whether the C compiler supports C11 (global declarations)
2366ac_c_conftest_c11_globals='
2367// Does the compiler advertise C11 conformance?
2368#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2369# error "Compiler does not advertise C11 conformance"
2370#endif
2371
2372// Check _Alignas.
2373char _Alignas (double) aligned_as_double;
2374char _Alignas (0) no_special_alignment;
2375extern char aligned_as_int;
2376char _Alignas (0) _Alignas (int) aligned_as_int;
2377
2378// Check _Alignof.
2379enum
2380{
2381  int_alignment = _Alignof (int),
2382  int_array_alignment = _Alignof (int[100]),
2383  char_alignment = _Alignof (char)
2384};
2385_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2386
2387// Check _Noreturn.
2388int _Noreturn does_not_return (void) { for (;;) continue; }
2389
2390// Check _Static_assert.
2391struct test_static_assert
2392{
2393  int x;
2394  _Static_assert (sizeof (int) <= sizeof (long int),
2395                  "_Static_assert does not work in struct");
2396  long int y;
2397};
2398
2399// Check UTF-8 literals.
2400#define u8 syntax error!
2401char const utf8_literal[] = u8"happens to be ASCII" "another string";
2402
2403// Check duplicate typedefs.
2404typedef long *long_ptr;
2405typedef long int *long_ptr;
2406typedef long_ptr long_ptr;
2407
2408// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2409struct anonymous
2410{
2411  union {
2412    struct { int i; int j; };
2413    struct { int k; long int l; } w;
2414  };
2415  int m;
2416} v1;
2417'
2418
2419# Test code for whether the C compiler supports C11 (body of main).
2420ac_c_conftest_c11_main='
2421  _Static_assert ((offsetof (struct anonymous, i)
2422		   == offsetof (struct anonymous, w.k)),
2423		  "Anonymous union alignment botch");
2424  v1.i = 2;
2425  v1.w.k = 5;
2426  ok |= v1.i != 5;
2427'
2428
2429# Test code for whether the C compiler supports C11 (complete).
2430ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2431${ac_c_conftest_c99_globals}
2432${ac_c_conftest_c11_globals}
2433
2434int
2435main (int argc, char **argv)
2436{
2437  int ok = 0;
2438  ${ac_c_conftest_c89_main}
2439  ${ac_c_conftest_c99_main}
2440  ${ac_c_conftest_c11_main}
2441  return ok;
2442}
2443"
2444
2445# Test code for whether the C compiler supports C99 (complete).
2446ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2447${ac_c_conftest_c99_globals}
2448
2449int
2450main (int argc, char **argv)
2451{
2452  int ok = 0;
2453  ${ac_c_conftest_c89_main}
2454  ${ac_c_conftest_c99_main}
2455  return ok;
2456}
2457"
2458
2459# Test code for whether the C compiler supports C89 (complete).
2460ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2461
2462int
2463main (int argc, char **argv)
2464{
2465  int ok = 0;
2466  ${ac_c_conftest_c89_main}
2467  return ok;
2468}
2469"
2470
2471as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2472as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2473as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2474as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2475as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2476as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2477as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2478as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2479as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2480
2481# Auxiliary files required by this configure script.
2482ac_aux_files="tap-driver.sh compile config.guess config.sub ltmain.sh missing install-sh"
2483
2484# Locations in which to look for auxiliary files.
2485ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2486
2487# Search for a directory containing all of the required auxiliary files,
2488# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2489# If we don't find one directory that contains all the files we need,
2490# we report the set of missing files from the *first* directory in
2491# $ac_aux_dir_candidates and give up.
2492ac_missing_aux_files=""
2493ac_first_candidate=:
2494printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496as_found=false
2497for as_dir in $ac_aux_dir_candidates
2498do
2499  IFS=$as_save_IFS
2500  case $as_dir in #(((
2501    '') as_dir=./ ;;
2502    */) ;;
2503    *) as_dir=$as_dir/ ;;
2504  esac
2505  as_found=:
2506
2507  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2508  ac_aux_dir_found=yes
2509  ac_install_sh=
2510  for ac_aux in $ac_aux_files
2511  do
2512    # As a special case, if "install-sh" is required, that requirement
2513    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2514    # and $ac_install_sh is set appropriately for whichever one is found.
2515    if test x"$ac_aux" = x"install-sh"
2516    then
2517      if test -f "${as_dir}install-sh"; then
2518        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2519        ac_install_sh="${as_dir}install-sh -c"
2520      elif test -f "${as_dir}install.sh"; then
2521        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2522        ac_install_sh="${as_dir}install.sh -c"
2523      elif test -f "${as_dir}shtool"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2525        ac_install_sh="${as_dir}shtool install -c"
2526      else
2527        ac_aux_dir_found=no
2528        if $ac_first_candidate; then
2529          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2530        else
2531          break
2532        fi
2533      fi
2534    else
2535      if test -f "${as_dir}${ac_aux}"; then
2536        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2537      else
2538        ac_aux_dir_found=no
2539        if $ac_first_candidate; then
2540          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2541        else
2542          break
2543        fi
2544      fi
2545    fi
2546  done
2547  if test "$ac_aux_dir_found" = yes; then
2548    ac_aux_dir="$as_dir"
2549    break
2550  fi
2551  ac_first_candidate=false
2552
2553  as_found=false
2554done
2555IFS=$as_save_IFS
2556if $as_found
2557then :
2558
2559else $as_nop
2560  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2561fi
2562
2563
2564# These three variables are undocumented and unsupported,
2565# and are intended to be withdrawn in a future Autoconf release.
2566# They can cause serious problems if a builder's source tree is in a directory
2567# whose full name contains unusual characters.
2568if test -f "${ac_aux_dir}config.guess"; then
2569  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2570fi
2571if test -f "${ac_aux_dir}config.sub"; then
2572  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2573fi
2574if test -f "$ac_aux_dir/configure"; then
2575  ac_configure="$SHELL ${ac_aux_dir}configure"
2576fi
2577
2578# Check that the precious variables saved in the cache have kept the same
2579# value.
2580ac_cache_corrupted=false
2581for ac_var in $ac_precious_vars; do
2582  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583  eval ac_new_set=\$ac_env_${ac_var}_set
2584  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585  eval ac_new_val=\$ac_env_${ac_var}_value
2586  case $ac_old_set,$ac_new_set in
2587    set,)
2588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2589printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,set)
2592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2593printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,);;
2596    *)
2597      if test "x$ac_old_val" != "x$ac_new_val"; then
2598	# differences in whitespace do not lead to failure.
2599	ac_old_val_w=`echo x $ac_old_val`
2600	ac_new_val_w=`echo x $ac_new_val`
2601	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2603printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2604	  ac_cache_corrupted=:
2605	else
2606	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2607printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2608	  eval $ac_var=\$ac_old_val
2609	fi
2610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2611printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2613printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2614      fi;;
2615  esac
2616  # Pass precious variables to config.status.
2617  if test "$ac_new_set" = set; then
2618    case $ac_new_val in
2619    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620    *) ac_arg=$ac_var=$ac_new_val ;;
2621    esac
2622    case " $ac_configure_args " in
2623      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625    esac
2626  fi
2627done
2628if $ac_cache_corrupted; then
2629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2630printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2633  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2634	    and start over" "$LINENO" 5
2635fi
2636## -------------------- ##
2637## Main body of script. ##
2638## -------------------- ##
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648ac_config_headers="$ac_config_headers config.h"
2649
2650
2651
2652# Initialize Automake
2653am__api_version='1.16'
2654
2655
2656
2657  # Find a good install program.  We prefer a C program (faster),
2658# so one script is as good as another.  But avoid the broken or
2659# incompatible versions:
2660# SysV /etc/install, /usr/sbin/install
2661# SunOS /usr/etc/install
2662# IRIX /sbin/install
2663# AIX /bin/install
2664# AmigaOS /C/install, which installs bootblocks on floppy discs
2665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668# OS/2's system install, which has a completely different semantic
2669# ./install, which can be erroneously created by make from ./install.sh.
2670# Reject install programs that cannot install multiple files.
2671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2672printf %s "checking for a BSD-compatible install... " >&6; }
2673if test -z "$INSTALL"; then
2674if test ${ac_cv_path_install+y}
2675then :
2676  printf %s "(cached) " >&6
2677else $as_nop
2678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681  IFS=$as_save_IFS
2682  case $as_dir in #(((
2683    '') as_dir=./ ;;
2684    */) ;;
2685    *) as_dir=$as_dir/ ;;
2686  esac
2687    # Account for fact that we put trailing slashes in our PATH walk.
2688case $as_dir in #((
2689  ./ | /[cC]/* | \
2690  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692  /usr/ucb/* ) ;;
2693  *)
2694    # OSF1 and SCO ODT 3.0 have their own names for install.
2695    # Don't use installbsd from OSF since it installs stuff as root
2696    # by default.
2697    for ac_prog in ginstall scoinst install; do
2698      for ac_exec_ext in '' $ac_executable_extensions; do
2699	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2700	  if test $ac_prog = install &&
2701	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702	    # AIX install.  It has an incompatible calling convention.
2703	    :
2704	  elif test $ac_prog = install &&
2705	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706	    # program-specific install script used by HP pwplus--don't use.
2707	    :
2708	  else
2709	    rm -rf conftest.one conftest.two conftest.dir
2710	    echo one > conftest.one
2711	    echo two > conftest.two
2712	    mkdir conftest.dir
2713	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2714	      test -s conftest.one && test -s conftest.two &&
2715	      test -s conftest.dir/conftest.one &&
2716	      test -s conftest.dir/conftest.two
2717	    then
2718	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2719	      break 3
2720	    fi
2721	  fi
2722	fi
2723      done
2724    done
2725    ;;
2726esac
2727
2728  done
2729IFS=$as_save_IFS
2730
2731rm -rf conftest.one conftest.two conftest.dir
2732
2733fi
2734  if test ${ac_cv_path_install+y}; then
2735    INSTALL=$ac_cv_path_install
2736  else
2737    # As a last resort, use the slow shell script.  Don't cache a
2738    # value for INSTALL within a source directory, because that will
2739    # break other packages using the cache if that directory is
2740    # removed, or if the value is a relative name.
2741    INSTALL=$ac_install_sh
2742  fi
2743fi
2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745printf "%s\n" "$INSTALL" >&6; }
2746
2747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748# It thinks the first close brace ends the variable substitution.
2749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756printf %s "checking whether build environment is sane... " >&6; }
2757# Reject unsafe characters in $srcdir or the absolute working directory
2758# name.  Accept space and tab only in the latter.
2759am_lf='
2760'
2761case `pwd` in
2762  *[\\\"\#\$\&\'\`$am_lf]*)
2763    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764esac
2765case $srcdir in
2766  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2767    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768esac
2769
2770# Do 'set' in a subshell so we don't clobber the current shell's
2771# arguments.  Must try -L first in case configure is actually a
2772# symlink; some systems play weird games with the mod time of symlinks
2773# (eg FreeBSD returns the mod time of the symlink's containing
2774# directory).
2775if (
2776   am_has_slept=no
2777   for am_try in 1 2; do
2778     echo "timestamp, slept: $am_has_slept" > conftest.file
2779     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780     if test "$*" = "X"; then
2781	# -L didn't work.
2782	set X `ls -t "$srcdir/configure" conftest.file`
2783     fi
2784     if test "$*" != "X $srcdir/configure conftest.file" \
2785	&& test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787	# If neither matched, then we have a broken ls.  This can happen
2788	# if, for instance, CONFIG_SHELL is bash and it inherits a
2789	# broken ls alias from the environment.  This has actually
2790	# happened.  Such a system could not be considered "sane".
2791	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2792  alias in your environment" "$LINENO" 5
2793     fi
2794     if test "$2" = conftest.file || test $am_try -eq 2; then
2795       break
2796     fi
2797     # Just in case.
2798     sleep 1
2799     am_has_slept=yes
2800   done
2801   test "$2" = conftest.file
2802   )
2803then
2804   # Ok.
2805   :
2806else
2807   as_fn_error $? "newly created file is older than distributed files!
2808Check your system clock" "$LINENO" 5
2809fi
2810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811printf "%s\n" "yes" >&6; }
2812# If we didn't sleep, we still need to ensure time stamps of config.status and
2813# generated files are strictly newer.
2814am_sleep_pid=
2815if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816  ( sleep 1 ) &
2817  am_sleep_pid=$!
2818fi
2819
2820rm -f conftest.file
2821
2822test "$program_prefix" != NONE &&
2823  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824# Use a double $ so make ignores it.
2825test "$program_suffix" != NONE &&
2826  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827# Double any \ or $.
2828# By default was `s,x,x', remove it if useless.
2829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2831
2832
2833# Expand $ac_aux_dir to an absolute path.
2834am_aux_dir=`cd "$ac_aux_dir" && pwd`
2835
2836
2837  if test x"${MISSING+set}" != xset; then
2838  MISSING="\${SHELL} '$am_aux_dir/missing'"
2839fi
2840# Use eval to expand $SHELL
2841if eval "$MISSING --is-lightweight"; then
2842  am_missing_run="$MISSING "
2843else
2844  am_missing_run=
2845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2846printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2847fi
2848
2849if test x"${install_sh+set}" != xset; then
2850  case $am_aux_dir in
2851  *\ * | *\	*)
2852    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2853  *)
2854    install_sh="\${SHELL} $am_aux_dir/install-sh"
2855  esac
2856fi
2857
2858# Installed binaries are usually stripped using 'strip' when the user
2859# run "make install-strip".  However 'strip' might not be the right
2860# tool to use in cross-compilation environments, therefore Automake
2861# will honor the 'STRIP' environment variable to overrule this program.
2862if test "$cross_compiling" != no; then
2863  if test -n "$ac_tool_prefix"; then
2864  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2865set dummy ${ac_tool_prefix}strip; ac_word=$2
2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867printf %s "checking for $ac_word... " >&6; }
2868if test ${ac_cv_prog_STRIP+y}
2869then :
2870  printf %s "(cached) " >&6
2871else $as_nop
2872  if test -n "$STRIP"; then
2873  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  case $as_dir in #(((
2880    '') as_dir=./ ;;
2881    */) ;;
2882    *) as_dir=$as_dir/ ;;
2883  esac
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2899printf "%s\n" "$STRIP" >&6; }
2900else
2901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902printf "%s\n" "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908  ac_ct_STRIP=$STRIP
2909  # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912printf %s "checking for $ac_word... " >&6; }
2913if test ${ac_cv_prog_ac_ct_STRIP+y}
2914then :
2915  printf %s "(cached) " >&6
2916else $as_nop
2917  if test -n "$ac_ct_STRIP"; then
2918  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923  IFS=$as_save_IFS
2924  case $as_dir in #(((
2925    '') as_dir=./ ;;
2926    */) ;;
2927    *) as_dir=$as_dir/ ;;
2928  esac
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2931    ac_cv_prog_ac_ct_STRIP="strip"
2932    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942if test -n "$ac_ct_STRIP"; then
2943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2944printf "%s\n" "$ac_ct_STRIP" >&6; }
2945else
2946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947printf "%s\n" "no" >&6; }
2948fi
2949
2950  if test "x$ac_ct_STRIP" = x; then
2951    STRIP=":"
2952  else
2953    case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959    STRIP=$ac_ct_STRIP
2960  fi
2961else
2962  STRIP="$ac_cv_prog_STRIP"
2963fi
2964
2965fi
2966INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2967
2968
2969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2970printf %s "checking for a race-free mkdir -p... " >&6; }
2971if test -z "$MKDIR_P"; then
2972  if test ${ac_cv_path_mkdir+y}
2973then :
2974  printf %s "(cached) " >&6
2975else $as_nop
2976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2978do
2979  IFS=$as_save_IFS
2980  case $as_dir in #(((
2981    '') as_dir=./ ;;
2982    */) ;;
2983    *) as_dir=$as_dir/ ;;
2984  esac
2985    for ac_prog in mkdir gmkdir; do
2986	 for ac_exec_ext in '' $ac_executable_extensions; do
2987	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2988	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989	     'mkdir ('*'coreutils) '* | \
2990	     'BusyBox '* | \
2991	     'mkdir (fileutils) '4.1*)
2992	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2993	       break 3;;
2994	   esac
2995	 done
2996       done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001
3002  test -d ./--version && rmdir ./--version
3003  if test ${ac_cv_path_mkdir+y}; then
3004    MKDIR_P="$ac_cv_path_mkdir -p"
3005  else
3006    # As a last resort, use the slow shell script.  Don't cache a
3007    # value for MKDIR_P within a source directory, because that will
3008    # break other packages using the cache if that directory is
3009    # removed, or if the value is a relative name.
3010    MKDIR_P="$ac_install_sh -d"
3011  fi
3012fi
3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014printf "%s\n" "$MKDIR_P" >&6; }
3015
3016for ac_prog in gawk mawk nawk awk
3017do
3018  # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set dummy $ac_prog; ac_word=$2
3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021printf %s "checking for $ac_word... " >&6; }
3022if test ${ac_cv_prog_AWK+y}
3023then :
3024  printf %s "(cached) " >&6
3025else $as_nop
3026  if test -n "$AWK"; then
3027  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  case $as_dir in #(((
3034    '') as_dir=./ ;;
3035    */) ;;
3036    *) as_dir=$as_dir/ ;;
3037  esac
3038    for ac_exec_ext in '' $ac_executable_extensions; do
3039  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3040    ac_cv_prog_AWK="$ac_prog"
3041    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3042    break 2
3043  fi
3044done
3045  done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050AWK=$ac_cv_prog_AWK
3051if test -n "$AWK"; then
3052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3053printf "%s\n" "$AWK" >&6; }
3054else
3055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056printf "%s\n" "no" >&6; }
3057fi
3058
3059
3060  test -n "$AWK" && break
3061done
3062
3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3064printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3065set x ${MAKE-make}
3066ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3067if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3068then :
3069  printf %s "(cached) " >&6
3070else $as_nop
3071  cat >conftest.make <<\_ACEOF
3072SHELL = /bin/sh
3073all:
3074	@echo '@@@%%%=$(MAKE)=@@@%%%'
3075_ACEOF
3076# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3077case `${MAKE-make} -f conftest.make 2>/dev/null` in
3078  *@@@%%%=?*=@@@%%%*)
3079    eval ac_cv_prog_make_${ac_make}_set=yes;;
3080  *)
3081    eval ac_cv_prog_make_${ac_make}_set=no;;
3082esac
3083rm -f conftest.make
3084fi
3085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087printf "%s\n" "yes" >&6; }
3088  SET_MAKE=
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092  SET_MAKE="MAKE=${MAKE-make}"
3093fi
3094
3095rm -rf .tst 2>/dev/null
3096mkdir .tst 2>/dev/null
3097if test -d .tst; then
3098  am__leading_dot=.
3099else
3100  am__leading_dot=_
3101fi
3102rmdir .tst 2>/dev/null
3103
3104# Check whether --enable-silent-rules was given.
3105if test ${enable_silent_rules+y}
3106then :
3107  enableval=$enable_silent_rules;
3108fi
3109
3110case $enable_silent_rules in # (((
3111  yes) AM_DEFAULT_VERBOSITY=0;;
3112   no) AM_DEFAULT_VERBOSITY=1;;
3113    *) AM_DEFAULT_VERBOSITY=1;;
3114esac
3115am_make=${MAKE-make}
3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3117printf %s "checking whether $am_make supports nested variables... " >&6; }
3118if test ${am_cv_make_support_nested_variables+y}
3119then :
3120  printf %s "(cached) " >&6
3121else $as_nop
3122  if printf "%s\n" 'TRUE=$(BAR$(V))
3123BAR0=false
3124BAR1=true
3125V=1
3126am__doit:
3127	@$(TRUE)
3128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129  am_cv_make_support_nested_variables=yes
3130else
3131  am_cv_make_support_nested_variables=no
3132fi
3133fi
3134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3135printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3136if test $am_cv_make_support_nested_variables = yes; then
3137    AM_V='$(V)'
3138  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3139else
3140  AM_V=$AM_DEFAULT_VERBOSITY
3141  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3142fi
3143AM_BACKSLASH='\'
3144
3145if test "`cd $srcdir && pwd`" != "`pwd`"; then
3146  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3147  # is not polluted with repeated "-I."
3148  am__isrc=' -I$(srcdir)'
3149  # test to see if srcdir already configured
3150  if test -f $srcdir/config.status; then
3151    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3152  fi
3153fi
3154
3155# test whether we have cygpath
3156if test -z "$CYGPATH_W"; then
3157  if (cygpath --version) >/dev/null 2>/dev/null; then
3158    CYGPATH_W='cygpath -w'
3159  else
3160    CYGPATH_W=echo
3161  fi
3162fi
3163
3164
3165# Define the identity of the package.
3166 PACKAGE='libXpm'
3167 VERSION='3.5.16'
3168
3169
3170printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3171
3172
3173printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3174
3175# Some tools Automake needs.
3176
3177ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178
3179
3180AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181
3182
3183AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184
3185
3186AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187
3188
3189MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3190
3191# For better backward compatibility.  To be removed once Automake 1.9.x
3192# dies out for good.  For more background, see:
3193# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3194# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3195mkdir_p='$(MKDIR_P)'
3196
3197# We need awk for the "check" target (and possibly the TAP driver).  The
3198# system "awk" is bad on some platforms.
3199# Always define AMTAR for backward compatibility.  Yes, it's still used
3200# in the wild :-(  We should find a proper way to deprecate it ...
3201AMTAR='$${TAR-tar}'
3202
3203
3204# We'll loop over all known methods to create a tar archive until one works.
3205_am_tools='gnutar  pax cpio none'
3206
3207am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3208
3209
3210
3211
3212
3213# Variables for tags utilities; see am/tags.am
3214if test -z "$CTAGS"; then
3215  CTAGS=ctags
3216fi
3217
3218if test -z "$ETAGS"; then
3219  ETAGS=etags
3220fi
3221
3222if test -z "$CSCOPE"; then
3223  CSCOPE=cscope
3224fi
3225
3226
3227
3228# POSIX will say in a future version that running "rm -f" with no argument
3229# is OK; and we want to be able to make that assumption in our Makefile
3230# recipes.  So use an aggressive probe to check that the usage we want is
3231# actually supported "in the wild" to an acceptable degree.
3232# See automake bug#10828.
3233# To make any issue more visible, cause the running configure to be aborted
3234# by default if the 'rm' program in use doesn't match our expectations; the
3235# user can still override this though.
3236if rm -f && rm -fr && rm -rf; then : OK; else
3237  cat >&2 <<'END'
3238Oops!
3239
3240Your 'rm' program seems unable to run without file operands specified
3241on the command line, even when the '-f' option is present.  This is contrary
3242to the behaviour of most rm programs out there, and not conforming with
3243the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3244
3245Please tell bug-automake@gnu.org about your system, including the value
3246of your $PATH and any error possibly output before this message.  This
3247can help us improve future automake versions.
3248
3249END
3250  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3251    echo 'Configuration will proceed anyway, since you have set the' >&2
3252    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3253    echo >&2
3254  else
3255    cat >&2 <<'END'
3256Aborting the configuration process, to ensure you take notice of the issue.
3257
3258You can download and install GNU coreutils to get an 'rm' implementation
3259that behaves properly: <https://www.gnu.org/software/coreutils/>.
3260
3261If you want to complete the configuration process using your problematic
3262'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3263to "yes", and re-run configure.
3264
3265END
3266    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3267  fi
3268fi
3269
3270
3271# Initialize libtool
3272case `pwd` in
3273  *\ * | *\	*)
3274    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3275printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3276esac
3277
3278
3279
3280macro_version='2.4.7'
3281macro_revision='2.4.7'
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296ltmain=$ac_aux_dir/ltmain.sh
3297
3298
3299
3300  # Make sure we can run config.sub.
3301$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3302  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3303
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3305printf %s "checking build system type... " >&6; }
3306if test ${ac_cv_build+y}
3307then :
3308  printf %s "(cached) " >&6
3309else $as_nop
3310  ac_build_alias=$build_alias
3311test "x$ac_build_alias" = x &&
3312  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3313test "x$ac_build_alias" = x &&
3314  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3315ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3316  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3317
3318fi
3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320printf "%s\n" "$ac_cv_build" >&6; }
3321case $ac_cv_build in
3322*-*-*) ;;
3323*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3324esac
3325build=$ac_cv_build
3326ac_save_IFS=$IFS; IFS='-'
3327set x $ac_cv_build
3328shift
3329build_cpu=$1
3330build_vendor=$2
3331shift; shift
3332# Remember, the first character of IFS is used to create $*,
3333# except with old shells:
3334build_os=$*
3335IFS=$ac_save_IFS
3336case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3337
3338
3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340printf %s "checking host system type... " >&6; }
3341if test ${ac_cv_host+y}
3342then :
3343  printf %s "(cached) " >&6
3344else $as_nop
3345  if test "x$host_alias" = x; then
3346  ac_cv_host=$ac_cv_build
3347else
3348  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3349    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3350fi
3351
3352fi
3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3354printf "%s\n" "$ac_cv_host" >&6; }
3355case $ac_cv_host in
3356*-*-*) ;;
3357*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3358esac
3359host=$ac_cv_host
3360ac_save_IFS=$IFS; IFS='-'
3361set x $ac_cv_host
3362shift
3363host_cpu=$1
3364host_vendor=$2
3365shift; shift
3366# Remember, the first character of IFS is used to create $*,
3367# except with old shells:
3368host_os=$*
3369IFS=$ac_save_IFS
3370case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3371
3372
3373# Backslashify metacharacters that are still active within
3374# double-quoted strings.
3375sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3376
3377# Same as above, but do not quote variable references.
3378double_quote_subst='s/\(["`\\]\)/\\\1/g'
3379
3380# Sed substitution to delay expansion of an escaped shell variable in a
3381# double_quote_subst'ed string.
3382delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3383
3384# Sed substitution to delay expansion of an escaped single quote.
3385delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3386
3387# Sed substitution to avoid accidental globbing in evaled expressions
3388no_glob_subst='s/\*/\\\*/g'
3389
3390ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3391ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3392ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3393
3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3395printf %s "checking how to print strings... " >&6; }
3396# Test print first, because it will be a builtin if present.
3397if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3398   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3399  ECHO='print -r --'
3400elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3401  ECHO='printf %s\n'
3402else
3403  # Use this function as a fallback that always works.
3404  func_fallback_echo ()
3405  {
3406    eval 'cat <<_LTECHO_EOF
3407$1
3408_LTECHO_EOF'
3409  }
3410  ECHO='func_fallback_echo'
3411fi
3412
3413# func_echo_all arg...
3414# Invoke $ECHO with all args, space-separated.
3415func_echo_all ()
3416{
3417    $ECHO ""
3418}
3419
3420case $ECHO in
3421  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3422printf "%s\n" "printf" >&6; } ;;
3423  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3424printf "%s\n" "print -r" >&6; } ;;
3425  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3426printf "%s\n" "cat" >&6; } ;;
3427esac
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451DEPDIR="${am__leading_dot}deps"
3452
3453ac_config_commands="$ac_config_commands depfiles"
3454
3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3456printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3457cat > confinc.mk << 'END'
3458am__doit:
3459	@echo this is the am__doit target >confinc.out
3460.PHONY: am__doit
3461END
3462am__include="#"
3463am__quote=
3464# BSD make does it like this.
3465echo '.include "confinc.mk" # ignored' > confmf.BSD
3466# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3467echo 'include confinc.mk # ignored' > confmf.GNU
3468_am_result=no
3469for s in GNU BSD; do
3470  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3471   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); }
3475  case $?:`cat confinc.out 2>/dev/null` in #(
3476  '0:this is the am__doit target') :
3477    case $s in #(
3478  BSD) :
3479    am__include='.include' am__quote='"' ;; #(
3480  *) :
3481    am__include='include' am__quote='' ;;
3482esac ;; #(
3483  *) :
3484     ;;
3485esac
3486  if test "$am__include" != "#"; then
3487    _am_result="yes ($s style)"
3488    break
3489  fi
3490done
3491rm -f confinc.* confmf.*
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3493printf "%s\n" "${_am_result}" >&6; }
3494
3495# Check whether --enable-dependency-tracking was given.
3496if test ${enable_dependency_tracking+y}
3497then :
3498  enableval=$enable_dependency_tracking;
3499fi
3500
3501if test "x$enable_dependency_tracking" != xno; then
3502  am_depcomp="$ac_aux_dir/depcomp"
3503  AMDEPBACKSLASH='\'
3504  am__nodep='_no'
3505fi
3506 if test "x$enable_dependency_tracking" != xno; then
3507  AMDEP_TRUE=
3508  AMDEP_FALSE='#'
3509else
3510  AMDEP_TRUE='#'
3511  AMDEP_FALSE=
3512fi
3513
3514
3515ac_ext=c
3516ac_cpp='$CPP $CPPFLAGS'
3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520if test -n "$ac_tool_prefix"; then
3521  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3522set dummy ${ac_tool_prefix}gcc; ac_word=$2
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524printf %s "checking for $ac_word... " >&6; }
3525if test ${ac_cv_prog_CC+y}
3526then :
3527  printf %s "(cached) " >&6
3528else $as_nop
3529  if test -n "$CC"; then
3530  ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  case $as_dir in #(((
3537    '') as_dir=./ ;;
3538    */) ;;
3539    *) as_dir=$as_dir/ ;;
3540  esac
3541    for ac_exec_ext in '' $ac_executable_extensions; do
3542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548  done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553CC=$ac_cv_prog_CC
3554if test -n "$CC"; then
3555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556printf "%s\n" "$CC" >&6; }
3557else
3558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559printf "%s\n" "no" >&6; }
3560fi
3561
3562
3563fi
3564if test -z "$ac_cv_prog_CC"; then
3565  ac_ct_CC=$CC
3566  # Extract the first word of "gcc", so it can be a program name with args.
3567set dummy gcc; ac_word=$2
3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569printf %s "checking for $ac_word... " >&6; }
3570if test ${ac_cv_prog_ac_ct_CC+y}
3571then :
3572  printf %s "(cached) " >&6
3573else $as_nop
3574  if test -n "$ac_ct_CC"; then
3575  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580  IFS=$as_save_IFS
3581  case $as_dir in #(((
3582    '') as_dir=./ ;;
3583    */) ;;
3584    *) as_dir=$as_dir/ ;;
3585  esac
3586    for ac_exec_ext in '' $ac_executable_extensions; do
3587  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3588    ac_cv_prog_ac_ct_CC="gcc"
3589    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3590    break 2
3591  fi
3592done
3593  done
3594IFS=$as_save_IFS
3595
3596fi
3597fi
3598ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599if test -n "$ac_ct_CC"; then
3600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3601printf "%s\n" "$ac_ct_CC" >&6; }
3602else
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604printf "%s\n" "no" >&6; }
3605fi
3606
3607  if test "x$ac_ct_CC" = x; then
3608    CC=""
3609  else
3610    case $cross_compiling:$ac_tool_warned in
3611yes:)
3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614ac_tool_warned=yes ;;
3615esac
3616    CC=$ac_ct_CC
3617  fi
3618else
3619  CC="$ac_cv_prog_CC"
3620fi
3621
3622if test -z "$CC"; then
3623          if test -n "$ac_tool_prefix"; then
3624    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}cc; ac_word=$2
3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627printf %s "checking for $ac_word... " >&6; }
3628if test ${ac_cv_prog_CC+y}
3629then :
3630  printf %s "(cached) " >&6
3631else $as_nop
3632  if test -n "$CC"; then
3633  ac_cv_prog_CC="$CC" # Let the user override the test.
3634else
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638  IFS=$as_save_IFS
3639  case $as_dir in #(((
3640    '') as_dir=./ ;;
3641    */) ;;
3642    *) as_dir=$as_dir/ ;;
3643  esac
3644    for ac_exec_ext in '' $ac_executable_extensions; do
3645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646    ac_cv_prog_CC="${ac_tool_prefix}cc"
3647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3648    break 2
3649  fi
3650done
3651  done
3652IFS=$as_save_IFS
3653
3654fi
3655fi
3656CC=$ac_cv_prog_CC
3657if test -n "$CC"; then
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659printf "%s\n" "$CC" >&6; }
3660else
3661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662printf "%s\n" "no" >&6; }
3663fi
3664
3665
3666  fi
3667fi
3668if test -z "$CC"; then
3669  # Extract the first word of "cc", so it can be a program name with args.
3670set dummy cc; ac_word=$2
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672printf %s "checking for $ac_word... " >&6; }
3673if test ${ac_cv_prog_CC+y}
3674then :
3675  printf %s "(cached) " >&6
3676else $as_nop
3677  if test -n "$CC"; then
3678  ac_cv_prog_CC="$CC" # Let the user override the test.
3679else
3680  ac_prog_rejected=no
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  case $as_dir in #(((
3686    '') as_dir=./ ;;
3687    */) ;;
3688    *) as_dir=$as_dir/ ;;
3689  esac
3690    for ac_exec_ext in '' $ac_executable_extensions; do
3691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3692    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693       ac_prog_rejected=yes
3694       continue
3695     fi
3696    ac_cv_prog_CC="cc"
3697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3698    break 2
3699  fi
3700done
3701  done
3702IFS=$as_save_IFS
3703
3704if test $ac_prog_rejected = yes; then
3705  # We found a bogon in the path, so make sure we never use it.
3706  set dummy $ac_cv_prog_CC
3707  shift
3708  if test $# != 0; then
3709    # We chose a different compiler from the bogus one.
3710    # However, it has the same basename, so the bogon will be chosen
3711    # first if we set CC to just the basename; use the full file name.
3712    shift
3713    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3714  fi
3715fi
3716fi
3717fi
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
3720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721printf "%s\n" "$CC" >&6; }
3722else
3723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724printf "%s\n" "no" >&6; }
3725fi
3726
3727
3728fi
3729if test -z "$CC"; then
3730  if test -n "$ac_tool_prefix"; then
3731  for ac_prog in cl.exe
3732  do
3733    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736printf %s "checking for $ac_word... " >&6; }
3737if test ${ac_cv_prog_CC+y}
3738then :
3739  printf %s "(cached) " >&6
3740else $as_nop
3741  if test -n "$CC"; then
3742  ac_cv_prog_CC="$CC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747  IFS=$as_save_IFS
3748  case $as_dir in #(((
3749    '') as_dir=./ ;;
3750    */) ;;
3751    *) as_dir=$as_dir/ ;;
3752  esac
3753    for ac_exec_ext in '' $ac_executable_extensions; do
3754  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3755    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3756    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3757    break 2
3758  fi
3759done
3760  done
3761IFS=$as_save_IFS
3762
3763fi
3764fi
3765CC=$ac_cv_prog_CC
3766if test -n "$CC"; then
3767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768printf "%s\n" "$CC" >&6; }
3769else
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771printf "%s\n" "no" >&6; }
3772fi
3773
3774
3775    test -n "$CC" && break
3776  done
3777fi
3778if test -z "$CC"; then
3779  ac_ct_CC=$CC
3780  for ac_prog in cl.exe
3781do
3782  # Extract the first word of "$ac_prog", so it can be a program name with args.
3783set dummy $ac_prog; ac_word=$2
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785printf %s "checking for $ac_word... " >&6; }
3786if test ${ac_cv_prog_ac_ct_CC+y}
3787then :
3788  printf %s "(cached) " >&6
3789else $as_nop
3790  if test -n "$ac_ct_CC"; then
3791  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796  IFS=$as_save_IFS
3797  case $as_dir in #(((
3798    '') as_dir=./ ;;
3799    */) ;;
3800    *) as_dir=$as_dir/ ;;
3801  esac
3802    for ac_exec_ext in '' $ac_executable_extensions; do
3803  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804    ac_cv_prog_ac_ct_CC="$ac_prog"
3805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3806    break 2
3807  fi
3808done
3809  done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815if test -n "$ac_ct_CC"; then
3816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817printf "%s\n" "$ac_ct_CC" >&6; }
3818else
3819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820printf "%s\n" "no" >&6; }
3821fi
3822
3823
3824  test -n "$ac_ct_CC" && break
3825done
3826
3827  if test "x$ac_ct_CC" = x; then
3828    CC=""
3829  else
3830    case $cross_compiling:$ac_tool_warned in
3831yes:)
3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834ac_tool_warned=yes ;;
3835esac
3836    CC=$ac_ct_CC
3837  fi
3838fi
3839
3840fi
3841if test -z "$CC"; then
3842  if test -n "$ac_tool_prefix"; then
3843  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3844set dummy ${ac_tool_prefix}clang; ac_word=$2
3845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846printf %s "checking for $ac_word... " >&6; }
3847if test ${ac_cv_prog_CC+y}
3848then :
3849  printf %s "(cached) " >&6
3850else $as_nop
3851  if test -n "$CC"; then
3852  ac_cv_prog_CC="$CC" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  case $as_dir in #(((
3859    '') as_dir=./ ;;
3860    */) ;;
3861    *) as_dir=$as_dir/ ;;
3862  esac
3863    for ac_exec_ext in '' $ac_executable_extensions; do
3864  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3865    ac_cv_prog_CC="${ac_tool_prefix}clang"
3866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870  done
3871IFS=$as_save_IFS
3872
3873fi
3874fi
3875CC=$ac_cv_prog_CC
3876if test -n "$CC"; then
3877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878printf "%s\n" "$CC" >&6; }
3879else
3880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881printf "%s\n" "no" >&6; }
3882fi
3883
3884
3885fi
3886if test -z "$ac_cv_prog_CC"; then
3887  ac_ct_CC=$CC
3888  # Extract the first word of "clang", so it can be a program name with args.
3889set dummy clang; ac_word=$2
3890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891printf %s "checking for $ac_word... " >&6; }
3892if test ${ac_cv_prog_ac_ct_CC+y}
3893then :
3894  printf %s "(cached) " >&6
3895else $as_nop
3896  if test -n "$ac_ct_CC"; then
3897  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  case $as_dir in #(((
3904    '') as_dir=./ ;;
3905    */) ;;
3906    *) as_dir=$as_dir/ ;;
3907  esac
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3910    ac_cv_prog_ac_ct_CC="clang"
3911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915  done
3916IFS=$as_save_IFS
3917
3918fi
3919fi
3920ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921if test -n "$ac_ct_CC"; then
3922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923printf "%s\n" "$ac_ct_CC" >&6; }
3924else
3925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926printf "%s\n" "no" >&6; }
3927fi
3928
3929  if test "x$ac_ct_CC" = x; then
3930    CC=""
3931  else
3932    case $cross_compiling:$ac_tool_warned in
3933yes:)
3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936ac_tool_warned=yes ;;
3937esac
3938    CC=$ac_ct_CC
3939  fi
3940else
3941  CC="$ac_cv_prog_CC"
3942fi
3943
3944fi
3945
3946
3947test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3949as_fn_error $? "no acceptable C compiler found in \$PATH
3950See \`config.log' for more details" "$LINENO" 5; }
3951
3952# Provide some information about the compiler.
3953printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3954set X $ac_compile
3955ac_compiler=$2
3956for ac_option in --version -v -V -qversion -version; do
3957  { { ac_try="$ac_compiler $ac_option >&5"
3958case "(($ac_try" in
3959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960  *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963printf "%s\n" "$ac_try_echo"; } >&5
3964  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3965  ac_status=$?
3966  if test -s conftest.err; then
3967    sed '10a\
3968... rest of stderr output deleted ...
3969         10q' conftest.err >conftest.er1
3970    cat conftest.er1 >&5
3971  fi
3972  rm -f conftest.er1 conftest.err
3973  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974  test $ac_status = 0; }
3975done
3976
3977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979
3980int
3981main (void)
3982{
3983
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988ac_clean_files_save=$ac_clean_files
3989ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3990# Try to create an executable without -o first, disregard a.out.
3991# It will help us diagnose broken compilers, and finding out an intuition
3992# of exeext.
3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3994printf %s "checking whether the C compiler works... " >&6; }
3995ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3996
3997# The possible output files:
3998ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3999
4000ac_rmfiles=
4001for ac_file in $ac_files
4002do
4003  case $ac_file in
4004    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4006  esac
4007done
4008rm -f $ac_rmfiles
4009
4010if { { ac_try="$ac_link_default"
4011case "(($ac_try" in
4012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013  *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016printf "%s\n" "$ac_try_echo"; } >&5
4017  (eval "$ac_link_default") 2>&5
4018  ac_status=$?
4019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020  test $ac_status = 0; }
4021then :
4022  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4025# so that the user can short-circuit this test for compilers unknown to
4026# Autoconf.
4027for ac_file in $ac_files ''
4028do
4029  test -f "$ac_file" || continue
4030  case $ac_file in
4031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4032	;;
4033    [ab].out )
4034	# We found the default executable, but exeext='' is most
4035	# certainly right.
4036	break;;
4037    *.* )
4038	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4039	then :; else
4040	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4041	fi
4042	# We set ac_cv_exeext here because the later test for it is not
4043	# safe: cross compilers may not add the suffix if given an `-o'
4044	# argument, so we may need to know it at that point already.
4045	# Even if this section looks crufty: it has the advantage of
4046	# actually working.
4047	break;;
4048    * )
4049	break;;
4050  esac
4051done
4052test "$ac_cv_exeext" = no && ac_cv_exeext=
4053
4054else $as_nop
4055  ac_file=''
4056fi
4057if test -z "$ac_file"
4058then :
4059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060printf "%s\n" "no" >&6; }
4061printf "%s\n" "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4066as_fn_error 77 "C compiler cannot create executables
4067See \`config.log' for more details" "$LINENO" 5; }
4068else $as_nop
4069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070printf "%s\n" "yes" >&6; }
4071fi
4072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4073printf %s "checking for C compiler default output file name... " >&6; }
4074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4075printf "%s\n" "$ac_file" >&6; }
4076ac_exeext=$ac_cv_exeext
4077
4078rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4079ac_clean_files=$ac_clean_files_save
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4081printf %s "checking for suffix of executables... " >&6; }
4082if { { ac_try="$ac_link"
4083case "(($ac_try" in
4084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085  *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088printf "%s\n" "$ac_try_echo"; } >&5
4089  (eval "$ac_link") 2>&5
4090  ac_status=$?
4091  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092  test $ac_status = 0; }
4093then :
4094  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4095# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4096# work properly (i.e., refer to `conftest.exe'), while it won't with
4097# `rm'.
4098for ac_file in conftest.exe conftest conftest.*; do
4099  test -f "$ac_file" || continue
4100  case $ac_file in
4101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4102    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4103	  break;;
4104    * ) break;;
4105  esac
4106done
4107else $as_nop
4108  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4111See \`config.log' for more details" "$LINENO" 5; }
4112fi
4113rm -f conftest conftest$ac_cv_exeext
4114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4115printf "%s\n" "$ac_cv_exeext" >&6; }
4116
4117rm -f conftest.$ac_ext
4118EXEEXT=$ac_cv_exeext
4119ac_exeext=$EXEEXT
4120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#include <stdio.h>
4123int
4124main (void)
4125{
4126FILE *f = fopen ("conftest.out", "w");
4127 return ferror (f) || fclose (f) != 0;
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133ac_clean_files="$ac_clean_files conftest.out"
4134# Check that the compiler produces executables we can run.  If not, either
4135# the compiler is broken, or we cross compile.
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4137printf %s "checking whether we are cross compiling... " >&6; }
4138if test "$cross_compiling" != yes; then
4139  { { ac_try="$ac_link"
4140case "(($ac_try" in
4141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142  *) ac_try_echo=$ac_try;;
4143esac
4144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145printf "%s\n" "$ac_try_echo"; } >&5
4146  (eval "$ac_link") 2>&5
4147  ac_status=$?
4148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149  test $ac_status = 0; }
4150  if { ac_try='./conftest$ac_cv_exeext'
4151  { { case "(($ac_try" in
4152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153  *) ac_try_echo=$ac_try;;
4154esac
4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156printf "%s\n" "$ac_try_echo"; } >&5
4157  (eval "$ac_try") 2>&5
4158  ac_status=$?
4159  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160  test $ac_status = 0; }; }; then
4161    cross_compiling=no
4162  else
4163    if test "$cross_compiling" = maybe; then
4164	cross_compiling=yes
4165    else
4166	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4168as_fn_error 77 "cannot run C compiled programs.
4169If you meant to cross compile, use \`--host'.
4170See \`config.log' for more details" "$LINENO" 5; }
4171    fi
4172  fi
4173fi
4174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4175printf "%s\n" "$cross_compiling" >&6; }
4176
4177rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4178ac_clean_files=$ac_clean_files_save
4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4180printf %s "checking for suffix of object files... " >&6; }
4181if test ${ac_cv_objext+y}
4182then :
4183  printf %s "(cached) " >&6
4184else $as_nop
4185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187
4188int
4189main (void)
4190{
4191
4192  ;
4193  return 0;
4194}
4195_ACEOF
4196rm -f conftest.o conftest.obj
4197if { { ac_try="$ac_compile"
4198case "(($ac_try" in
4199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200  *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203printf "%s\n" "$ac_try_echo"; } >&5
4204  (eval "$ac_compile") 2>&5
4205  ac_status=$?
4206  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207  test $ac_status = 0; }
4208then :
4209  for ac_file in conftest.o conftest.obj conftest.*; do
4210  test -f "$ac_file" || continue;
4211  case $ac_file in
4212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4213    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4214       break;;
4215  esac
4216done
4217else $as_nop
4218  printf "%s\n" "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4222printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4223as_fn_error $? "cannot compute suffix of object files: cannot compile
4224See \`config.log' for more details" "$LINENO" 5; }
4225fi
4226rm -f conftest.$ac_cv_objext conftest.$ac_ext
4227fi
4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4229printf "%s\n" "$ac_cv_objext" >&6; }
4230OBJEXT=$ac_cv_objext
4231ac_objext=$OBJEXT
4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4233printf %s "checking whether the compiler supports GNU C... " >&6; }
4234if test ${ac_cv_c_compiler_gnu+y}
4235then :
4236  printf %s "(cached) " >&6
4237else $as_nop
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main (void)
4243{
4244#ifndef __GNUC__
4245       choke me
4246#endif
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"
4253then :
4254  ac_compiler_gnu=yes
4255else $as_nop
4256  ac_compiler_gnu=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4259ac_cv_c_compiler_gnu=$ac_compiler_gnu
4260
4261fi
4262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4263printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4264ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
4266if test $ac_compiler_gnu = yes; then
4267  GCC=yes
4268else
4269  GCC=
4270fi
4271ac_test_CFLAGS=${CFLAGS+y}
4272ac_save_CFLAGS=$CFLAGS
4273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4274printf %s "checking whether $CC accepts -g... " >&6; }
4275if test ${ac_cv_prog_cc_g+y}
4276then :
4277  printf %s "(cached) " >&6
4278else $as_nop
4279  ac_save_c_werror_flag=$ac_c_werror_flag
4280   ac_c_werror_flag=yes
4281   ac_cv_prog_cc_g=no
4282   CFLAGS="-g"
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285
4286int
4287main (void)
4288{
4289
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294if ac_fn_c_try_compile "$LINENO"
4295then :
4296  ac_cv_prog_cc_g=yes
4297else $as_nop
4298  CFLAGS=""
4299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301
4302int
4303main (void)
4304{
4305
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310if ac_fn_c_try_compile "$LINENO"
4311then :
4312
4313else $as_nop
4314  ac_c_werror_flag=$ac_save_c_werror_flag
4315	 CFLAGS="-g"
4316	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h.  */
4318
4319int
4320main (void)
4321{
4322
4323  ;
4324  return 0;
4325}
4326_ACEOF
4327if ac_fn_c_try_compile "$LINENO"
4328then :
4329  ac_cv_prog_cc_g=yes
4330fi
4331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4334fi
4335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4336   ac_c_werror_flag=$ac_save_c_werror_flag
4337fi
4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4339printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4340if test $ac_test_CFLAGS; then
4341  CFLAGS=$ac_save_CFLAGS
4342elif test $ac_cv_prog_cc_g = yes; then
4343  if test "$GCC" = yes; then
4344    CFLAGS="-g -O2"
4345  else
4346    CFLAGS="-g"
4347  fi
4348else
4349  if test "$GCC" = yes; then
4350    CFLAGS="-O2"
4351  else
4352    CFLAGS=
4353  fi
4354fi
4355ac_prog_cc_stdc=no
4356if test x$ac_prog_cc_stdc = xno
4357then :
4358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4359printf %s "checking for $CC option to enable C11 features... " >&6; }
4360if test ${ac_cv_prog_cc_c11+y}
4361then :
4362  printf %s "(cached) " >&6
4363else $as_nop
4364  ac_cv_prog_cc_c11=no
4365ac_save_CC=$CC
4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h.  */
4368$ac_c_conftest_c11_program
4369_ACEOF
4370for ac_arg in '' -std=gnu11
4371do
4372  CC="$ac_save_CC $ac_arg"
4373  if ac_fn_c_try_compile "$LINENO"
4374then :
4375  ac_cv_prog_cc_c11=$ac_arg
4376fi
4377rm -f core conftest.err conftest.$ac_objext conftest.beam
4378  test "x$ac_cv_prog_cc_c11" != "xno" && break
4379done
4380rm -f conftest.$ac_ext
4381CC=$ac_save_CC
4382fi
4383
4384if test "x$ac_cv_prog_cc_c11" = xno
4385then :
4386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387printf "%s\n" "unsupported" >&6; }
4388else $as_nop
4389  if test "x$ac_cv_prog_cc_c11" = x
4390then :
4391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4392printf "%s\n" "none needed" >&6; }
4393else $as_nop
4394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4395printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4396     CC="$CC $ac_cv_prog_cc_c11"
4397fi
4398  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4399  ac_prog_cc_stdc=c11
4400fi
4401fi
4402if test x$ac_prog_cc_stdc = xno
4403then :
4404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4405printf %s "checking for $CC option to enable C99 features... " >&6; }
4406if test ${ac_cv_prog_cc_c99+y}
4407then :
4408  printf %s "(cached) " >&6
4409else $as_nop
4410  ac_cv_prog_cc_c99=no
4411ac_save_CC=$CC
4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414$ac_c_conftest_c99_program
4415_ACEOF
4416for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4417do
4418  CC="$ac_save_CC $ac_arg"
4419  if ac_fn_c_try_compile "$LINENO"
4420then :
4421  ac_cv_prog_cc_c99=$ac_arg
4422fi
4423rm -f core conftest.err conftest.$ac_objext conftest.beam
4424  test "x$ac_cv_prog_cc_c99" != "xno" && break
4425done
4426rm -f conftest.$ac_ext
4427CC=$ac_save_CC
4428fi
4429
4430if test "x$ac_cv_prog_cc_c99" = xno
4431then :
4432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433printf "%s\n" "unsupported" >&6; }
4434else $as_nop
4435  if test "x$ac_cv_prog_cc_c99" = x
4436then :
4437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4438printf "%s\n" "none needed" >&6; }
4439else $as_nop
4440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4441printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4442     CC="$CC $ac_cv_prog_cc_c99"
4443fi
4444  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4445  ac_prog_cc_stdc=c99
4446fi
4447fi
4448if test x$ac_prog_cc_stdc = xno
4449then :
4450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4451printf %s "checking for $CC option to enable C89 features... " >&6; }
4452if test ${ac_cv_prog_cc_c89+y}
4453then :
4454  printf %s "(cached) " >&6
4455else $as_nop
4456  ac_cv_prog_cc_c89=no
4457ac_save_CC=$CC
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460$ac_c_conftest_c89_program
4461_ACEOF
4462for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4463do
4464  CC="$ac_save_CC $ac_arg"
4465  if ac_fn_c_try_compile "$LINENO"
4466then :
4467  ac_cv_prog_cc_c89=$ac_arg
4468fi
4469rm -f core conftest.err conftest.$ac_objext conftest.beam
4470  test "x$ac_cv_prog_cc_c89" != "xno" && break
4471done
4472rm -f conftest.$ac_ext
4473CC=$ac_save_CC
4474fi
4475
4476if test "x$ac_cv_prog_cc_c89" = xno
4477then :
4478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4479printf "%s\n" "unsupported" >&6; }
4480else $as_nop
4481  if test "x$ac_cv_prog_cc_c89" = x
4482then :
4483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4484printf "%s\n" "none needed" >&6; }
4485else $as_nop
4486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4488     CC="$CC $ac_cv_prog_cc_c89"
4489fi
4490  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4491  ac_prog_cc_stdc=c89
4492fi
4493fi
4494
4495ac_ext=c
4496ac_cpp='$CPP $CPPFLAGS'
4497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501
4502  ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4508printf %s "checking whether $CC understands -c and -o together... " >&6; }
4509if test ${am_cv_prog_cc_c_o+y}
4510then :
4511  printf %s "(cached) " >&6
4512else $as_nop
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515
4516int
4517main (void)
4518{
4519
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524  # Make sure it works both with $CC and with simple cc.
4525  # Following AC_PROG_CC_C_O, we do the test twice because some
4526  # compilers refuse to overwrite an existing .o file with -o,
4527  # though they will create one.
4528  am_cv_prog_cc_c_o=yes
4529  for am_i in 1 2; do
4530    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4531   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); } \
4535         && test -f conftest2.$ac_objext; then
4536      : OK
4537    else
4538      am_cv_prog_cc_c_o=no
4539      break
4540    fi
4541  done
4542  rm -f core conftest*
4543  unset am_i
4544fi
4545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4546printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4547if test "$am_cv_prog_cc_c_o" != yes; then
4548   # Losing compiler, so override with the script.
4549   # FIXME: It is wrong to rewrite CC.
4550   # But if we don't then we get into trouble of one sort or another.
4551   # A longer-term fix would be to have automake use am__CC in this case,
4552   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4553   CC="$am_aux_dir/compile $CC"
4554fi
4555ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561
4562depcc="$CC"   am_compiler_list=
4563
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4565printf %s "checking dependency style of $depcc... " >&6; }
4566if test ${am_cv_CC_dependencies_compiler_type+y}
4567then :
4568  printf %s "(cached) " >&6
4569else $as_nop
4570  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571  # We make a subdir and do the tests there.  Otherwise we can end up
4572  # making bogus files that we don't know about and never remove.  For
4573  # instance it was reported that on HP-UX the gcc test will end up
4574  # making a dummy file named 'D' -- because '-MD' means "put the output
4575  # in D".
4576  rm -rf conftest.dir
4577  mkdir conftest.dir
4578  # Copy depcomp to subdir because otherwise we won't find it if we're
4579  # using a relative directory.
4580  cp "$am_depcomp" conftest.dir
4581  cd conftest.dir
4582  # We will build objects and dependencies in a subdirectory because
4583  # it helps to detect inapplicable dependency modes.  For instance
4584  # both Tru64's cc and ICC support -MD to output dependencies as a
4585  # side effect of compilation, but ICC will put the dependencies in
4586  # the current directory while Tru64 will put them in the object
4587  # directory.
4588  mkdir sub
4589
4590  am_cv_CC_dependencies_compiler_type=none
4591  if test "$am_compiler_list" = ""; then
4592     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4593  fi
4594  am__universal=false
4595  case " $depcc " in #(
4596     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4597     esac
4598
4599  for depmode in $am_compiler_list; do
4600    # Setup a source with many dependencies, because some compilers
4601    # like to wrap large dependency lists on column 80 (with \), and
4602    # we should not choose a depcomp mode which is confused by this.
4603    #
4604    # We need to recreate these files for each test, as the compiler may
4605    # overwrite some of them when testing with obscure command lines.
4606    # This happens at least with the AIX C compiler.
4607    : > sub/conftest.c
4608    for i in 1 2 3 4 5 6; do
4609      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4610      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4611      # Solaris 10 /bin/sh.
4612      echo '/* dummy */' > sub/conftst$i.h
4613    done
4614    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4615
4616    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4617    # mode.  It turns out that the SunPro C++ compiler does not properly
4618    # handle '-M -o', and we need to detect this.  Also, some Intel
4619    # versions had trouble with output in subdirs.
4620    am__obj=sub/conftest.${OBJEXT-o}
4621    am__minus_obj="-o $am__obj"
4622    case $depmode in
4623    gcc)
4624      # This depmode causes a compiler race in universal mode.
4625      test "$am__universal" = false || continue
4626      ;;
4627    nosideeffect)
4628      # After this tag, mechanisms are not by side-effect, so they'll
4629      # only be used when explicitly requested.
4630      if test "x$enable_dependency_tracking" = xyes; then
4631	continue
4632      else
4633	break
4634      fi
4635      ;;
4636    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4637      # This compiler won't grok '-c -o', but also, the minuso test has
4638      # not run yet.  These depmodes are late enough in the game, and
4639      # so weak that their functioning should not be impacted.
4640      am__obj=conftest.${OBJEXT-o}
4641      am__minus_obj=
4642      ;;
4643    none) break ;;
4644    esac
4645    if depmode=$depmode \
4646       source=sub/conftest.c object=$am__obj \
4647       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4648       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4649         >/dev/null 2>conftest.err &&
4650       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4651       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4652       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4653       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4654      # icc doesn't choke on unknown options, it will just issue warnings
4655      # or remarks (even with -Werror).  So we grep stderr for any message
4656      # that says an option was ignored or not supported.
4657      # When given -MP, icc 7.0 and 7.1 complain thusly:
4658      #   icc: Command line warning: ignoring option '-M'; no argument required
4659      # The diagnosis changed in icc 8.0:
4660      #   icc: Command line remark: option '-MP' not supported
4661      if (grep 'ignoring option' conftest.err ||
4662          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4663        am_cv_CC_dependencies_compiler_type=$depmode
4664        break
4665      fi
4666    fi
4667  done
4668
4669  cd ..
4670  rm -rf conftest.dir
4671else
4672  am_cv_CC_dependencies_compiler_type=none
4673fi
4674
4675fi
4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4677printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4678CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4679
4680 if
4681  test "x$enable_dependency_tracking" != xno \
4682  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4683  am__fastdepCC_TRUE=
4684  am__fastdepCC_FALSE='#'
4685else
4686  am__fastdepCC_TRUE='#'
4687  am__fastdepCC_FALSE=
4688fi
4689
4690
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4692printf %s "checking for a sed that does not truncate output... " >&6; }
4693if test ${ac_cv_path_SED+y}
4694then :
4695  printf %s "(cached) " >&6
4696else $as_nop
4697            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4698     for ac_i in 1 2 3 4 5 6 7; do
4699       ac_script="$ac_script$as_nl$ac_script"
4700     done
4701     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4702     { ac_script=; unset ac_script;}
4703     if test -z "$SED"; then
4704  ac_path_SED_found=false
4705  # Loop through the user's path and test for each of PROGNAME-LIST
4706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  case $as_dir in #(((
4711    '') as_dir=./ ;;
4712    */) ;;
4713    *) as_dir=$as_dir/ ;;
4714  esac
4715    for ac_prog in sed gsed
4716   do
4717    for ac_exec_ext in '' $ac_executable_extensions; do
4718      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4719      as_fn_executable_p "$ac_path_SED" || continue
4720# Check for GNU ac_path_SED and select it if it is found.
4721  # Check for GNU $ac_path_SED
4722case `"$ac_path_SED" --version 2>&1` in
4723*GNU*)
4724  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4725*)
4726  ac_count=0
4727  printf %s 0123456789 >"conftest.in"
4728  while :
4729  do
4730    cat "conftest.in" "conftest.in" >"conftest.tmp"
4731    mv "conftest.tmp" "conftest.in"
4732    cp "conftest.in" "conftest.nl"
4733    printf "%s\n" '' >> "conftest.nl"
4734    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736    as_fn_arith $ac_count + 1 && ac_count=$as_val
4737    if test $ac_count -gt ${ac_path_SED_max-0}; then
4738      # Best one so far, save it but keep looking for a better one
4739      ac_cv_path_SED="$ac_path_SED"
4740      ac_path_SED_max=$ac_count
4741    fi
4742    # 10*(2^10) chars as input seems more than enough
4743    test $ac_count -gt 10 && break
4744  done
4745  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746esac
4747
4748      $ac_path_SED_found && break 3
4749    done
4750  done
4751  done
4752IFS=$as_save_IFS
4753  if test -z "$ac_cv_path_SED"; then
4754    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4755  fi
4756else
4757  ac_cv_path_SED=$SED
4758fi
4759
4760fi
4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4762printf "%s\n" "$ac_cv_path_SED" >&6; }
4763 SED="$ac_cv_path_SED"
4764  rm -f conftest.sed
4765
4766test -z "$SED" && SED=sed
4767Xsed="$SED -e 1s/^X//"
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4780printf %s "checking for grep that handles long lines and -e... " >&6; }
4781if test ${ac_cv_path_GREP+y}
4782then :
4783  printf %s "(cached) " >&6
4784else $as_nop
4785  if test -z "$GREP"; then
4786  ac_path_GREP_found=false
4787  # Loop through the user's path and test for each of PROGNAME-LIST
4788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4790do
4791  IFS=$as_save_IFS
4792  case $as_dir in #(((
4793    '') as_dir=./ ;;
4794    */) ;;
4795    *) as_dir=$as_dir/ ;;
4796  esac
4797    for ac_prog in grep ggrep
4798   do
4799    for ac_exec_ext in '' $ac_executable_extensions; do
4800      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4801      as_fn_executable_p "$ac_path_GREP" || continue
4802# Check for GNU ac_path_GREP and select it if it is found.
4803  # Check for GNU $ac_path_GREP
4804case `"$ac_path_GREP" --version 2>&1` in
4805*GNU*)
4806  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4807*)
4808  ac_count=0
4809  printf %s 0123456789 >"conftest.in"
4810  while :
4811  do
4812    cat "conftest.in" "conftest.in" >"conftest.tmp"
4813    mv "conftest.tmp" "conftest.in"
4814    cp "conftest.in" "conftest.nl"
4815    printf "%s\n" 'GREP' >> "conftest.nl"
4816    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818    as_fn_arith $ac_count + 1 && ac_count=$as_val
4819    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4820      # Best one so far, save it but keep looking for a better one
4821      ac_cv_path_GREP="$ac_path_GREP"
4822      ac_path_GREP_max=$ac_count
4823    fi
4824    # 10*(2^10) chars as input seems more than enough
4825    test $ac_count -gt 10 && break
4826  done
4827  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828esac
4829
4830      $ac_path_GREP_found && break 3
4831    done
4832  done
4833  done
4834IFS=$as_save_IFS
4835  if test -z "$ac_cv_path_GREP"; then
4836    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4837  fi
4838else
4839  ac_cv_path_GREP=$GREP
4840fi
4841
4842fi
4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4844printf "%s\n" "$ac_cv_path_GREP" >&6; }
4845 GREP="$ac_cv_path_GREP"
4846
4847
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4849printf %s "checking for egrep... " >&6; }
4850if test ${ac_cv_path_EGREP+y}
4851then :
4852  printf %s "(cached) " >&6
4853else $as_nop
4854  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4855   then ac_cv_path_EGREP="$GREP -E"
4856   else
4857     if test -z "$EGREP"; then
4858  ac_path_EGREP_found=false
4859  # Loop through the user's path and test for each of PROGNAME-LIST
4860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862do
4863  IFS=$as_save_IFS
4864  case $as_dir in #(((
4865    '') as_dir=./ ;;
4866    */) ;;
4867    *) as_dir=$as_dir/ ;;
4868  esac
4869    for ac_prog in egrep
4870   do
4871    for ac_exec_ext in '' $ac_executable_extensions; do
4872      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4873      as_fn_executable_p "$ac_path_EGREP" || continue
4874# Check for GNU ac_path_EGREP and select it if it is found.
4875  # Check for GNU $ac_path_EGREP
4876case `"$ac_path_EGREP" --version 2>&1` in
4877*GNU*)
4878  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4879*)
4880  ac_count=0
4881  printf %s 0123456789 >"conftest.in"
4882  while :
4883  do
4884    cat "conftest.in" "conftest.in" >"conftest.tmp"
4885    mv "conftest.tmp" "conftest.in"
4886    cp "conftest.in" "conftest.nl"
4887    printf "%s\n" 'EGREP' >> "conftest.nl"
4888    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890    as_fn_arith $ac_count + 1 && ac_count=$as_val
4891    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4892      # Best one so far, save it but keep looking for a better one
4893      ac_cv_path_EGREP="$ac_path_EGREP"
4894      ac_path_EGREP_max=$ac_count
4895    fi
4896    # 10*(2^10) chars as input seems more than enough
4897    test $ac_count -gt 10 && break
4898  done
4899  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900esac
4901
4902      $ac_path_EGREP_found && break 3
4903    done
4904  done
4905  done
4906IFS=$as_save_IFS
4907  if test -z "$ac_cv_path_EGREP"; then
4908    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909  fi
4910else
4911  ac_cv_path_EGREP=$EGREP
4912fi
4913
4914   fi
4915fi
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4917printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4918 EGREP="$ac_cv_path_EGREP"
4919
4920
4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4922printf %s "checking for fgrep... " >&6; }
4923if test ${ac_cv_path_FGREP+y}
4924then :
4925  printf %s "(cached) " >&6
4926else $as_nop
4927  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4928   then ac_cv_path_FGREP="$GREP -F"
4929   else
4930     if test -z "$FGREP"; then
4931  ac_path_FGREP_found=false
4932  # Loop through the user's path and test for each of PROGNAME-LIST
4933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935do
4936  IFS=$as_save_IFS
4937  case $as_dir in #(((
4938    '') as_dir=./ ;;
4939    */) ;;
4940    *) as_dir=$as_dir/ ;;
4941  esac
4942    for ac_prog in fgrep
4943   do
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4946      as_fn_executable_p "$ac_path_FGREP" || continue
4947# Check for GNU ac_path_FGREP and select it if it is found.
4948  # Check for GNU $ac_path_FGREP
4949case `"$ac_path_FGREP" --version 2>&1` in
4950*GNU*)
4951  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4952*)
4953  ac_count=0
4954  printf %s 0123456789 >"conftest.in"
4955  while :
4956  do
4957    cat "conftest.in" "conftest.in" >"conftest.tmp"
4958    mv "conftest.tmp" "conftest.in"
4959    cp "conftest.in" "conftest.nl"
4960    printf "%s\n" 'FGREP' >> "conftest.nl"
4961    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963    as_fn_arith $ac_count + 1 && ac_count=$as_val
4964    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4965      # Best one so far, save it but keep looking for a better one
4966      ac_cv_path_FGREP="$ac_path_FGREP"
4967      ac_path_FGREP_max=$ac_count
4968    fi
4969    # 10*(2^10) chars as input seems more than enough
4970    test $ac_count -gt 10 && break
4971  done
4972  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973esac
4974
4975      $ac_path_FGREP_found && break 3
4976    done
4977  done
4978  done
4979IFS=$as_save_IFS
4980  if test -z "$ac_cv_path_FGREP"; then
4981    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982  fi
4983else
4984  ac_cv_path_FGREP=$FGREP
4985fi
4986
4987   fi
4988fi
4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4990printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4991 FGREP="$ac_cv_path_FGREP"
4992
4993
4994test -z "$GREP" && GREP=grep
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014# Check whether --with-gnu-ld was given.
5015if test ${with_gnu_ld+y}
5016then :
5017  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5018else $as_nop
5019  with_gnu_ld=no
5020fi
5021
5022ac_prog=ld
5023if test yes = "$GCC"; then
5024  # Check if gcc -print-prog-name=ld gives a path.
5025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5026printf %s "checking for ld used by $CC... " >&6; }
5027  case $host in
5028  *-*-mingw*)
5029    # gcc leaves a trailing carriage return, which upsets mingw
5030    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5031  *)
5032    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5033  esac
5034  case $ac_prog in
5035    # Accept absolute paths.
5036    [\\/]* | ?:[\\/]*)
5037      re_direlt='/[^/][^/]*/\.\./'
5038      # Canonicalize the pathname of ld
5039      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5040      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5041	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5042      done
5043      test -z "$LD" && LD=$ac_prog
5044      ;;
5045  "")
5046    # If it fails, then pretend we aren't using GCC.
5047    ac_prog=ld
5048    ;;
5049  *)
5050    # If it is relative, then search for the first ld in PATH.
5051    with_gnu_ld=unknown
5052    ;;
5053  esac
5054elif test yes = "$with_gnu_ld"; then
5055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5056printf %s "checking for GNU ld... " >&6; }
5057else
5058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5059printf %s "checking for non-GNU ld... " >&6; }
5060fi
5061if test ${lt_cv_path_LD+y}
5062then :
5063  printf %s "(cached) " >&6
5064else $as_nop
5065  if test -z "$LD"; then
5066  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5067  for ac_dir in $PATH; do
5068    IFS=$lt_save_ifs
5069    test -z "$ac_dir" && ac_dir=.
5070    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5071      lt_cv_path_LD=$ac_dir/$ac_prog
5072      # Check to see if the program is GNU ld.  I'd rather use --version,
5073      # but apparently some variants of GNU ld only accept -v.
5074      # Break only if it was the GNU/non-GNU ld that we prefer.
5075      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5076      *GNU* | *'with BFD'*)
5077	test no != "$with_gnu_ld" && break
5078	;;
5079      *)
5080	test yes != "$with_gnu_ld" && break
5081	;;
5082      esac
5083    fi
5084  done
5085  IFS=$lt_save_ifs
5086else
5087  lt_cv_path_LD=$LD # Let the user override the test with a path.
5088fi
5089fi
5090
5091LD=$lt_cv_path_LD
5092if test -n "$LD"; then
5093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5094printf "%s\n" "$LD" >&6; }
5095else
5096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097printf "%s\n" "no" >&6; }
5098fi
5099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5101printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5102if test ${lt_cv_prog_gnu_ld+y}
5103then :
5104  printf %s "(cached) " >&6
5105else $as_nop
5106  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5107case `$LD -v 2>&1 </dev/null` in
5108*GNU* | *'with BFD'*)
5109  lt_cv_prog_gnu_ld=yes
5110  ;;
5111*)
5112  lt_cv_prog_gnu_ld=no
5113  ;;
5114esac
5115fi
5116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5117printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5118with_gnu_ld=$lt_cv_prog_gnu_ld
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5129printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5130if test ${lt_cv_path_NM+y}
5131then :
5132  printf %s "(cached) " >&6
5133else $as_nop
5134  if test -n "$NM"; then
5135  # Let the user override the test.
5136  lt_cv_path_NM=$NM
5137else
5138  lt_nm_to_check=${ac_tool_prefix}nm
5139  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140    lt_nm_to_check="$lt_nm_to_check nm"
5141  fi
5142  for lt_tmp_nm in $lt_nm_to_check; do
5143    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5144    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5145      IFS=$lt_save_ifs
5146      test -z "$ac_dir" && ac_dir=.
5147      tmp_nm=$ac_dir/$lt_tmp_nm
5148      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5149	# Check to see if the nm accepts a BSD-compat flag.
5150	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5151	#   nm: unknown option "B" ignored
5152	# Tru64's nm complains that /dev/null is an invalid object file
5153	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5154	case $build_os in
5155	mingw*) lt_bad_file=conftest.nm/nofile ;;
5156	*) lt_bad_file=/dev/null ;;
5157	esac
5158	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5159	*$lt_bad_file* | *'Invalid file or object type'*)
5160	  lt_cv_path_NM="$tmp_nm -B"
5161	  break 2
5162	  ;;
5163	*)
5164	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5165	  */dev/null*)
5166	    lt_cv_path_NM="$tmp_nm -p"
5167	    break 2
5168	    ;;
5169	  *)
5170	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5171	    continue # so that we can try to find one that supports BSD flags
5172	    ;;
5173	  esac
5174	  ;;
5175	esac
5176      fi
5177    done
5178    IFS=$lt_save_ifs
5179  done
5180  : ${lt_cv_path_NM=no}
5181fi
5182fi
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5184printf "%s\n" "$lt_cv_path_NM" >&6; }
5185if test no != "$lt_cv_path_NM"; then
5186  NM=$lt_cv_path_NM
5187else
5188  # Didn't find any BSD compatible name lister, look for dumpbin.
5189  if test -n "$DUMPBIN"; then :
5190    # Let the user override the test.
5191  else
5192    if test -n "$ac_tool_prefix"; then
5193  for ac_prog in dumpbin "link -dump"
5194  do
5195    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198printf %s "checking for $ac_word... " >&6; }
5199if test ${ac_cv_prog_DUMPBIN+y}
5200then :
5201  printf %s "(cached) " >&6
5202else $as_nop
5203  if test -n "$DUMPBIN"; then
5204  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  case $as_dir in #(((
5211    '') as_dir=./ ;;
5212    */) ;;
5213    *) as_dir=$as_dir/ ;;
5214  esac
5215    for ac_exec_ext in '' $ac_executable_extensions; do
5216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5217    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5219    break 2
5220  fi
5221done
5222  done
5223IFS=$as_save_IFS
5224
5225fi
5226fi
5227DUMPBIN=$ac_cv_prog_DUMPBIN
5228if test -n "$DUMPBIN"; then
5229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5230printf "%s\n" "$DUMPBIN" >&6; }
5231else
5232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233printf "%s\n" "no" >&6; }
5234fi
5235
5236
5237    test -n "$DUMPBIN" && break
5238  done
5239fi
5240if test -z "$DUMPBIN"; then
5241  ac_ct_DUMPBIN=$DUMPBIN
5242  for ac_prog in dumpbin "link -dump"
5243do
5244  # Extract the first word of "$ac_prog", so it can be a program name with args.
5245set dummy $ac_prog; ac_word=$2
5246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247printf %s "checking for $ac_word... " >&6; }
5248if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  if test -n "$ac_ct_DUMPBIN"; then
5253  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258  IFS=$as_save_IFS
5259  case $as_dir in #(((
5260    '') as_dir=./ ;;
5261    */) ;;
5262    *) as_dir=$as_dir/ ;;
5263  esac
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5266    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5267    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5277if test -n "$ac_ct_DUMPBIN"; then
5278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5279printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5280else
5281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282printf "%s\n" "no" >&6; }
5283fi
5284
5285
5286  test -n "$ac_ct_DUMPBIN" && break
5287done
5288
5289  if test "x$ac_ct_DUMPBIN" = x; then
5290    DUMPBIN=":"
5291  else
5292    case $cross_compiling:$ac_tool_warned in
5293yes:)
5294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296ac_tool_warned=yes ;;
5297esac
5298    DUMPBIN=$ac_ct_DUMPBIN
5299  fi
5300fi
5301
5302    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5303    *COFF*)
5304      DUMPBIN="$DUMPBIN -symbols -headers"
5305      ;;
5306    *)
5307      DUMPBIN=:
5308      ;;
5309    esac
5310  fi
5311
5312  if test : != "$DUMPBIN"; then
5313    NM=$DUMPBIN
5314  fi
5315fi
5316test -z "$NM" && NM=nm
5317
5318
5319
5320
5321
5322
5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5324printf %s "checking the name lister ($NM) interface... " >&6; }
5325if test ${lt_cv_nm_interface+y}
5326then :
5327  printf %s "(cached) " >&6
5328else $as_nop
5329  lt_cv_nm_interface="BSD nm"
5330  echo "int some_variable = 0;" > conftest.$ac_ext
5331  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5332  (eval "$ac_compile" 2>conftest.err)
5333  cat conftest.err >&5
5334  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5335  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5336  cat conftest.err >&5
5337  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5338  cat conftest.out >&5
5339  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5340    lt_cv_nm_interface="MS dumpbin"
5341  fi
5342  rm -f conftest*
5343fi
5344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5345printf "%s\n" "$lt_cv_nm_interface" >&6; }
5346
5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5348printf %s "checking whether ln -s works... " >&6; }
5349LN_S=$as_ln_s
5350if test "$LN_S" = "ln -s"; then
5351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352printf "%s\n" "yes" >&6; }
5353else
5354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5355printf "%s\n" "no, using $LN_S" >&6; }
5356fi
5357
5358# find the maximum length of command line arguments
5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5360printf %s "checking the maximum length of command line arguments... " >&6; }
5361if test ${lt_cv_sys_max_cmd_len+y}
5362then :
5363  printf %s "(cached) " >&6
5364else $as_nop
5365    i=0
5366  teststring=ABCD
5367
5368  case $build_os in
5369  msdosdjgpp*)
5370    # On DJGPP, this test can blow up pretty badly due to problems in libc
5371    # (any single argument exceeding 2000 bytes causes a buffer overrun
5372    # during glob expansion).  Even if it were fixed, the result of this
5373    # check would be larger than it should be.
5374    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5375    ;;
5376
5377  gnu*)
5378    # Under GNU Hurd, this test is not required because there is
5379    # no limit to the length of command line arguments.
5380    # Libtool will interpret -1 as no limit whatsoever
5381    lt_cv_sys_max_cmd_len=-1;
5382    ;;
5383
5384  cygwin* | mingw* | cegcc*)
5385    # On Win9x/ME, this test blows up -- it succeeds, but takes
5386    # about 5 minutes as the teststring grows exponentially.
5387    # Worse, since 9x/ME are not pre-emptively multitasking,
5388    # you end up with a "frozen" computer, even though with patience
5389    # the test eventually succeeds (with a max line length of 256k).
5390    # Instead, let's just punt: use the minimum linelength reported by
5391    # all of the supported platforms: 8192 (on NT/2K/XP).
5392    lt_cv_sys_max_cmd_len=8192;
5393    ;;
5394
5395  mint*)
5396    # On MiNT this can take a long time and run out of memory.
5397    lt_cv_sys_max_cmd_len=8192;
5398    ;;
5399
5400  mint*)
5401    # On MiNT this can take a long time and run out of memory.
5402    lt_cv_sys_max_cmd_len=8192;
5403    ;;
5404
5405  amigaos*)
5406    # On AmigaOS with pdksh, this test takes hours, literally.
5407    # So we just punt and use a minimum line length of 8192.
5408    lt_cv_sys_max_cmd_len=8192;
5409    ;;
5410
5411  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5412    # This has been around since 386BSD, at least.  Likely further.
5413    if test -x /sbin/sysctl; then
5414      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5415    elif test -x /usr/sbin/sysctl; then
5416      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5417    else
5418      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5419    fi
5420    # And add a safety zone
5421    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5422    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5423    ;;
5424
5425  interix*)
5426    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5427    lt_cv_sys_max_cmd_len=196608
5428    ;;
5429
5430  os2*)
5431    # The test takes a long time on OS/2.
5432    lt_cv_sys_max_cmd_len=8192
5433    ;;
5434
5435  osf*)
5436    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5437    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5438    # nice to cause kernel panics so lets avoid the loop below.
5439    # First set a reasonable default.
5440    lt_cv_sys_max_cmd_len=16384
5441    #
5442    if test -x /sbin/sysconfig; then
5443      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5444        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445      esac
5446    fi
5447    ;;
5448  sco3.2v5*)
5449    lt_cv_sys_max_cmd_len=102400
5450    ;;
5451  sysv5* | sco5v6* | sysv4.2uw2*)
5452    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5453    if test -n "$kargmax"; then
5454      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5455    else
5456      lt_cv_sys_max_cmd_len=32768
5457    fi
5458    ;;
5459  *)
5460    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5461    if test -n "$lt_cv_sys_max_cmd_len" && \
5462       test undefined != "$lt_cv_sys_max_cmd_len"; then
5463      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5464      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5465    else
5466      # Make teststring a little bigger before we do anything with it.
5467      # a 1K string should be a reasonable start.
5468      for i in 1 2 3 4 5 6 7 8; do
5469        teststring=$teststring$teststring
5470      done
5471      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5472      # If test is not a shell built-in, we'll probably end up computing a
5473      # maximum length that is only half of the actual maximum length, but
5474      # we can't tell.
5475      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5476	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5477	      test 17 != "$i" # 1/2 MB should be enough
5478      do
5479        i=`expr $i + 1`
5480        teststring=$teststring$teststring
5481      done
5482      # Only check the string length outside the loop.
5483      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5484      teststring=
5485      # Add a significant safety factor because C++ compilers can tack on
5486      # massive amounts of additional arguments before passing them to the
5487      # linker.  It appears as though 1/2 is a usable value.
5488      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5489    fi
5490    ;;
5491  esac
5492
5493fi
5494
5495if test -n "$lt_cv_sys_max_cmd_len"; then
5496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5497printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5498else
5499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5500printf "%s\n" "none" >&6; }
5501fi
5502max_cmd_len=$lt_cv_sys_max_cmd_len
5503
5504
5505
5506
5507
5508
5509: ${CP="cp -f"}
5510: ${MV="mv -f"}
5511: ${RM="rm -f"}
5512
5513if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5514  lt_unset=unset
5515else
5516  lt_unset=false
5517fi
5518
5519
5520
5521
5522
5523# test EBCDIC or ASCII
5524case `echo X|tr X '\101'` in
5525 A) # ASCII based system
5526    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5527  lt_SP2NL='tr \040 \012'
5528  lt_NL2SP='tr \015\012 \040\040'
5529  ;;
5530 *) # EBCDIC based system
5531  lt_SP2NL='tr \100 \n'
5532  lt_NL2SP='tr \r\n \100\100'
5533  ;;
5534esac
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5545printf %s "checking how to convert $build file names to $host format... " >&6; }
5546if test ${lt_cv_to_host_file_cmd+y}
5547then :
5548  printf %s "(cached) " >&6
5549else $as_nop
5550  case $host in
5551  *-*-mingw* )
5552    case $build in
5553      *-*-mingw* ) # actually msys
5554        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5555        ;;
5556      *-*-cygwin* )
5557        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5558        ;;
5559      * ) # otherwise, assume *nix
5560        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5561        ;;
5562    esac
5563    ;;
5564  *-*-cygwin* )
5565    case $build in
5566      *-*-mingw* ) # actually msys
5567        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5568        ;;
5569      *-*-cygwin* )
5570        lt_cv_to_host_file_cmd=func_convert_file_noop
5571        ;;
5572      * ) # otherwise, assume *nix
5573        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5574        ;;
5575    esac
5576    ;;
5577  * ) # unhandled hosts (and "normal" native builds)
5578    lt_cv_to_host_file_cmd=func_convert_file_noop
5579    ;;
5580esac
5581
5582fi
5583
5584to_host_file_cmd=$lt_cv_to_host_file_cmd
5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5586printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5587
5588
5589
5590
5591
5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5593printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5594if test ${lt_cv_to_tool_file_cmd+y}
5595then :
5596  printf %s "(cached) " >&6
5597else $as_nop
5598  #assume ordinary cross tools, or native build.
5599lt_cv_to_tool_file_cmd=func_convert_file_noop
5600case $host in
5601  *-*-mingw* )
5602    case $build in
5603      *-*-mingw* ) # actually msys
5604        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5605        ;;
5606    esac
5607    ;;
5608esac
5609
5610fi
5611
5612to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5614printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5615
5616
5617
5618
5619
5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5621printf %s "checking for $LD option to reload object files... " >&6; }
5622if test ${lt_cv_ld_reload_flag+y}
5623then :
5624  printf %s "(cached) " >&6
5625else $as_nop
5626  lt_cv_ld_reload_flag='-r'
5627fi
5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5629printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5630reload_flag=$lt_cv_ld_reload_flag
5631case $reload_flag in
5632"" | " "*) ;;
5633*) reload_flag=" $reload_flag" ;;
5634esac
5635reload_cmds='$LD$reload_flag -o $output$reload_objs'
5636case $host_os in
5637  cygwin* | mingw* | pw32* | cegcc*)
5638    if test yes != "$GCC"; then
5639      reload_cmds=false
5640    fi
5641    ;;
5642  darwin*)
5643    if test yes = "$GCC"; then
5644      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5645    else
5646      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5647    fi
5648    ;;
5649esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659if test -n "$ac_tool_prefix"; then
5660  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5661set dummy ${ac_tool_prefix}file; ac_word=$2
5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663printf %s "checking for $ac_word... " >&6; }
5664if test ${ac_cv_prog_FILECMD+y}
5665then :
5666  printf %s "(cached) " >&6
5667else $as_nop
5668  if test -n "$FILECMD"; then
5669  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  case $as_dir in #(((
5676    '') as_dir=./ ;;
5677    */) ;;
5678    *) as_dir=$as_dir/ ;;
5679  esac
5680    for ac_exec_ext in '' $ac_executable_extensions; do
5681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5682    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5684    break 2
5685  fi
5686done
5687  done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692FILECMD=$ac_cv_prog_FILECMD
5693if test -n "$FILECMD"; then
5694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5695printf "%s\n" "$FILECMD" >&6; }
5696else
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698printf "%s\n" "no" >&6; }
5699fi
5700
5701
5702fi
5703if test -z "$ac_cv_prog_FILECMD"; then
5704  ac_ct_FILECMD=$FILECMD
5705  # Extract the first word of "file", so it can be a program name with args.
5706set dummy file; ac_word=$2
5707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708printf %s "checking for $ac_word... " >&6; }
5709if test ${ac_cv_prog_ac_ct_FILECMD+y}
5710then :
5711  printf %s "(cached) " >&6
5712else $as_nop
5713  if test -n "$ac_ct_FILECMD"; then
5714  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719  IFS=$as_save_IFS
5720  case $as_dir in #(((
5721    '') as_dir=./ ;;
5722    */) ;;
5723    *) as_dir=$as_dir/ ;;
5724  esac
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5727    ac_cv_prog_ac_ct_FILECMD="file"
5728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5729    break 2
5730  fi
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5738if test -n "$ac_ct_FILECMD"; then
5739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5740printf "%s\n" "$ac_ct_FILECMD" >&6; }
5741else
5742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743printf "%s\n" "no" >&6; }
5744fi
5745
5746  if test "x$ac_ct_FILECMD" = x; then
5747    FILECMD=":"
5748  else
5749    case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753ac_tool_warned=yes ;;
5754esac
5755    FILECMD=$ac_ct_FILECMD
5756  fi
5757else
5758  FILECMD="$ac_cv_prog_FILECMD"
5759fi
5760
5761
5762
5763
5764
5765
5766
5767if test -n "$ac_tool_prefix"; then
5768  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5769set dummy ${ac_tool_prefix}objdump; ac_word=$2
5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771printf %s "checking for $ac_word... " >&6; }
5772if test ${ac_cv_prog_OBJDUMP+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  if test -n "$OBJDUMP"; then
5777  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  case $as_dir in #(((
5784    '') as_dir=./ ;;
5785    */) ;;
5786    *) as_dir=$as_dir/ ;;
5787  esac
5788    for ac_exec_ext in '' $ac_executable_extensions; do
5789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5790    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792    break 2
5793  fi
5794done
5795  done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800OBJDUMP=$ac_cv_prog_OBJDUMP
5801if test -n "$OBJDUMP"; then
5802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5803printf "%s\n" "$OBJDUMP" >&6; }
5804else
5805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806printf "%s\n" "no" >&6; }
5807fi
5808
5809
5810fi
5811if test -z "$ac_cv_prog_OBJDUMP"; then
5812  ac_ct_OBJDUMP=$OBJDUMP
5813  # Extract the first word of "objdump", so it can be a program name with args.
5814set dummy objdump; ac_word=$2
5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816printf %s "checking for $ac_word... " >&6; }
5817if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5818then :
5819  printf %s "(cached) " >&6
5820else $as_nop
5821  if test -n "$ac_ct_OBJDUMP"; then
5822  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  case $as_dir in #(((
5829    '') as_dir=./ ;;
5830    */) ;;
5831    *) as_dir=$as_dir/ ;;
5832  esac
5833    for ac_exec_ext in '' $ac_executable_extensions; do
5834  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5835    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5836    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5837    break 2
5838  fi
5839done
5840  done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5846if test -n "$ac_ct_OBJDUMP"; then
5847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5848printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5849else
5850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851printf "%s\n" "no" >&6; }
5852fi
5853
5854  if test "x$ac_ct_OBJDUMP" = x; then
5855    OBJDUMP="false"
5856  else
5857    case $cross_compiling:$ac_tool_warned in
5858yes:)
5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861ac_tool_warned=yes ;;
5862esac
5863    OBJDUMP=$ac_ct_OBJDUMP
5864  fi
5865else
5866  OBJDUMP="$ac_cv_prog_OBJDUMP"
5867fi
5868
5869test -z "$OBJDUMP" && OBJDUMP=objdump
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5880printf %s "checking how to recognize dependent libraries... " >&6; }
5881if test ${lt_cv_deplibs_check_method+y}
5882then :
5883  printf %s "(cached) " >&6
5884else $as_nop
5885  lt_cv_file_magic_cmd='$MAGIC_CMD'
5886lt_cv_file_magic_test_file=
5887lt_cv_deplibs_check_method='unknown'
5888# Need to set the preceding variable on all platforms that support
5889# interlibrary dependencies.
5890# 'none' -- dependencies not supported.
5891# 'unknown' -- same as none, but documents that we really don't know.
5892# 'pass_all' -- all dependencies passed with no checks.
5893# 'test_compile' -- check by making test program.
5894# 'file_magic [[regex]]' -- check by looking for files in library path
5895# that responds to the $file_magic_cmd with a given extended regex.
5896# If you have 'file' or equivalent on your system and you're not sure
5897# whether 'pass_all' will *always* work, you probably want this one.
5898
5899case $host_os in
5900aix[4-9]*)
5901  lt_cv_deplibs_check_method=pass_all
5902  ;;
5903
5904beos*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908bsdi[45]*)
5909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5910  lt_cv_file_magic_cmd='$FILECMD -L'
5911  lt_cv_file_magic_test_file=/shlib/libc.so
5912  ;;
5913
5914cygwin*)
5915  # func_win32_libid is a shell function defined in ltmain.sh
5916  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5917  lt_cv_file_magic_cmd='func_win32_libid'
5918  ;;
5919
5920mingw* | pw32*)
5921  # Base MSYS/MinGW do not provide the 'file' command needed by
5922  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5923  # unless we find 'file', for example because we are cross-compiling.
5924  if ( file / ) >/dev/null 2>&1; then
5925    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5926    lt_cv_file_magic_cmd='func_win32_libid'
5927  else
5928    # Keep this pattern in sync with the one in func_win32_libid.
5929    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5930    lt_cv_file_magic_cmd='$OBJDUMP -f'
5931  fi
5932  ;;
5933
5934cegcc*)
5935  # use the weaker test based on 'objdump'. See mingw*.
5936  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5937  lt_cv_file_magic_cmd='$OBJDUMP -f'
5938  ;;
5939
5940darwin* | rhapsody*)
5941  lt_cv_deplibs_check_method=pass_all
5942  ;;
5943
5944freebsd* | dragonfly* | midnightbsd*)
5945  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946    case $host_cpu in
5947    i*86 )
5948      # Not sure whether the presence of OpenBSD here was a mistake.
5949      # Let's accept both of them until this is cleared up.
5950      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5951      lt_cv_file_magic_cmd=$FILECMD
5952      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5953      ;;
5954    esac
5955  else
5956    lt_cv_deplibs_check_method=pass_all
5957  fi
5958  ;;
5959
5960haiku*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964hpux10.20* | hpux11*)
5965  lt_cv_file_magic_cmd=$FILECMD
5966  case $host_cpu in
5967  ia64*)
5968    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5969    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5970    ;;
5971  hppa*64*)
5972    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]'
5973    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5974    ;;
5975  *)
5976    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5977    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5978    ;;
5979  esac
5980  ;;
5981
5982interix[3-9]*)
5983  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5984  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5985  ;;
5986
5987irix5* | irix6* | nonstopux*)
5988  case $LD in
5989  *-32|*"-32 ") libmagic=32-bit;;
5990  *-n32|*"-n32 ") libmagic=N32;;
5991  *-64|*"-64 ") libmagic=64-bit;;
5992  *) libmagic=never-match;;
5993  esac
5994  lt_cv_deplibs_check_method=pass_all
5995  ;;
5996
5997# This must be glibc/ELF.
5998linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002netbsd*)
6003  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6004    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6005  else
6006    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6007  fi
6008  ;;
6009
6010newos6*)
6011  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6012  lt_cv_file_magic_cmd=$FILECMD
6013  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6014  ;;
6015
6016*nto* | *qnx*)
6017  lt_cv_deplibs_check_method=pass_all
6018  ;;
6019
6020openbsd* | bitrig*)
6021  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6022    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6023  else
6024    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6025  fi
6026  ;;
6027
6028osf3* | osf4* | osf5*)
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032rdos*)
6033  lt_cv_deplibs_check_method=pass_all
6034  ;;
6035
6036solaris*)
6037  lt_cv_deplibs_check_method=pass_all
6038  ;;
6039
6040sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6041  lt_cv_deplibs_check_method=pass_all
6042  ;;
6043
6044sysv4 | sysv4.3*)
6045  case $host_vendor in
6046  motorola)
6047    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]'
6048    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6049    ;;
6050  ncr)
6051    lt_cv_deplibs_check_method=pass_all
6052    ;;
6053  sequent)
6054    lt_cv_file_magic_cmd='/bin/file'
6055    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6056    ;;
6057  sni)
6058    lt_cv_file_magic_cmd='/bin/file'
6059    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6060    lt_cv_file_magic_test_file=/lib/libc.so
6061    ;;
6062  siemens)
6063    lt_cv_deplibs_check_method=pass_all
6064    ;;
6065  pc)
6066    lt_cv_deplibs_check_method=pass_all
6067    ;;
6068  esac
6069  ;;
6070
6071tpf*)
6072  lt_cv_deplibs_check_method=pass_all
6073  ;;
6074os2*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077esac
6078
6079fi
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6081printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6082
6083file_magic_glob=
6084want_nocaseglob=no
6085if test "$build" = "$host"; then
6086  case $host_os in
6087  mingw* | pw32*)
6088    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6089      want_nocaseglob=yes
6090    else
6091      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6092    fi
6093    ;;
6094  esac
6095fi
6096
6097file_magic_cmd=$lt_cv_file_magic_cmd
6098deplibs_check_method=$lt_cv_deplibs_check_method
6099test -z "$deplibs_check_method" && deplibs_check_method=unknown
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122if test -n "$ac_tool_prefix"; then
6123  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6124set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126printf %s "checking for $ac_word... " >&6; }
6127if test ${ac_cv_prog_DLLTOOL+y}
6128then :
6129  printf %s "(cached) " >&6
6130else $as_nop
6131  if test -n "$DLLTOOL"; then
6132  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  case $as_dir in #(((
6139    '') as_dir=./ ;;
6140    */) ;;
6141    *) as_dir=$as_dir/ ;;
6142  esac
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155DLLTOOL=$ac_cv_prog_DLLTOOL
6156if test -n "$DLLTOOL"; then
6157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6158printf "%s\n" "$DLLTOOL" >&6; }
6159else
6160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161printf "%s\n" "no" >&6; }
6162fi
6163
6164
6165fi
6166if test -z "$ac_cv_prog_DLLTOOL"; then
6167  ac_ct_DLLTOOL=$DLLTOOL
6168  # Extract the first word of "dlltool", so it can be a program name with args.
6169set dummy dlltool; ac_word=$2
6170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171printf %s "checking for $ac_word... " >&6; }
6172if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6173then :
6174  printf %s "(cached) " >&6
6175else $as_nop
6176  if test -n "$ac_ct_DLLTOOL"; then
6177  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  case $as_dir in #(((
6184    '') as_dir=./ ;;
6185    */) ;;
6186    *) as_dir=$as_dir/ ;;
6187  esac
6188    for ac_exec_ext in '' $ac_executable_extensions; do
6189  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6190    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6192    break 2
6193  fi
6194done
6195  done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6201if test -n "$ac_ct_DLLTOOL"; then
6202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6203printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6204else
6205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206printf "%s\n" "no" >&6; }
6207fi
6208
6209  if test "x$ac_ct_DLLTOOL" = x; then
6210    DLLTOOL="false"
6211  else
6212    case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218    DLLTOOL=$ac_ct_DLLTOOL
6219  fi
6220else
6221  DLLTOOL="$ac_cv_prog_DLLTOOL"
6222fi
6223
6224test -z "$DLLTOOL" && DLLTOOL=dlltool
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6236printf %s "checking how to associate runtime and link libraries... " >&6; }
6237if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6238then :
6239  printf %s "(cached) " >&6
6240else $as_nop
6241  lt_cv_sharedlib_from_linklib_cmd='unknown'
6242
6243case $host_os in
6244cygwin* | mingw* | pw32* | cegcc*)
6245  # two different shell functions defined in ltmain.sh;
6246  # decide which one to use based on capabilities of $DLLTOOL
6247  case `$DLLTOOL --help 2>&1` in
6248  *--identify-strict*)
6249    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6250    ;;
6251  *)
6252    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6253    ;;
6254  esac
6255  ;;
6256*)
6257  # fallback: assume linklib IS sharedlib
6258  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6259  ;;
6260esac
6261
6262fi
6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6264printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6265sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6266test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6267
6268
6269
6270
6271
6272
6273
6274
6275if test -n "$ac_tool_prefix"; then
6276  for ac_prog in ar
6277  do
6278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281printf %s "checking for $ac_word... " >&6; }
6282if test ${ac_cv_prog_AR+y}
6283then :
6284  printf %s "(cached) " >&6
6285else $as_nop
6286  if test -n "$AR"; then
6287  ac_cv_prog_AR="$AR" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292  IFS=$as_save_IFS
6293  case $as_dir in #(((
6294    '') as_dir=./ ;;
6295    */) ;;
6296    *) as_dir=$as_dir/ ;;
6297  esac
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6300    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6301    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310AR=$ac_cv_prog_AR
6311if test -n "$AR"; then
6312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6313printf "%s\n" "$AR" >&6; }
6314else
6315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316printf "%s\n" "no" >&6; }
6317fi
6318
6319
6320    test -n "$AR" && break
6321  done
6322fi
6323if test -z "$AR"; then
6324  ac_ct_AR=$AR
6325  for ac_prog in ar
6326do
6327  # Extract the first word of "$ac_prog", so it can be a program name with args.
6328set dummy $ac_prog; ac_word=$2
6329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330printf %s "checking for $ac_word... " >&6; }
6331if test ${ac_cv_prog_ac_ct_AR+y}
6332then :
6333  printf %s "(cached) " >&6
6334else $as_nop
6335  if test -n "$ac_ct_AR"; then
6336  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  case $as_dir in #(((
6343    '') as_dir=./ ;;
6344    */) ;;
6345    *) as_dir=$as_dir/ ;;
6346  esac
6347    for ac_exec_ext in '' $ac_executable_extensions; do
6348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_ac_ct_AR="$ac_prog"
6350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354  done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_AR=$ac_cv_prog_ac_ct_AR
6360if test -n "$ac_ct_AR"; then
6361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6362printf "%s\n" "$ac_ct_AR" >&6; }
6363else
6364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365printf "%s\n" "no" >&6; }
6366fi
6367
6368
6369  test -n "$ac_ct_AR" && break
6370done
6371
6372  if test "x$ac_ct_AR" = x; then
6373    AR="false"
6374  else
6375    case $cross_compiling:$ac_tool_warned in
6376yes:)
6377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379ac_tool_warned=yes ;;
6380esac
6381    AR=$ac_ct_AR
6382  fi
6383fi
6384
6385: ${AR=ar}
6386
6387
6388
6389
6390
6391
6392# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6393# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6394# higher priority because thats what people were doing historically (setting
6395# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6396# variable obsoleted/removed.
6397
6398test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6399lt_ar_flags=$AR_FLAGS
6400
6401
6402
6403
6404
6405
6406# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6407# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6408
6409
6410
6411
6412
6413
6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6415printf %s "checking for archiver @FILE support... " >&6; }
6416if test ${lt_cv_ar_at_file+y}
6417then :
6418  printf %s "(cached) " >&6
6419else $as_nop
6420  lt_cv_ar_at_file=no
6421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423
6424int
6425main (void)
6426{
6427
6428  ;
6429  return 0;
6430}
6431_ACEOF
6432if ac_fn_c_try_compile "$LINENO"
6433then :
6434  echo conftest.$ac_objext > conftest.lst
6435      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6436      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6437  (eval $lt_ar_try) 2>&5
6438  ac_status=$?
6439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440  test $ac_status = 0; }
6441      if test 0 -eq "$ac_status"; then
6442	# Ensure the archiver fails upon bogus file names.
6443	rm -f conftest.$ac_objext libconftest.a
6444	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6445  (eval $lt_ar_try) 2>&5
6446  ac_status=$?
6447  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448  test $ac_status = 0; }
6449	if test 0 -ne "$ac_status"; then
6450          lt_cv_ar_at_file=@
6451        fi
6452      fi
6453      rm -f conftest.* libconftest.a
6454
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6457
6458fi
6459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6460printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6461
6462if test no = "$lt_cv_ar_at_file"; then
6463  archiver_list_spec=
6464else
6465  archiver_list_spec=$lt_cv_ar_at_file
6466fi
6467
6468
6469
6470
6471
6472
6473
6474if test -n "$ac_tool_prefix"; then
6475  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6476set dummy ${ac_tool_prefix}strip; ac_word=$2
6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478printf %s "checking for $ac_word... " >&6; }
6479if test ${ac_cv_prog_STRIP+y}
6480then :
6481  printf %s "(cached) " >&6
6482else $as_nop
6483  if test -n "$STRIP"; then
6484  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  case $as_dir in #(((
6491    '') as_dir=./ ;;
6492    */) ;;
6493    *) as_dir=$as_dir/ ;;
6494  esac
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6497    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507STRIP=$ac_cv_prog_STRIP
6508if test -n "$STRIP"; then
6509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6510printf "%s\n" "$STRIP" >&6; }
6511else
6512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513printf "%s\n" "no" >&6; }
6514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_STRIP"; then
6519  ac_ct_STRIP=$STRIP
6520  # Extract the first word of "strip", so it can be a program name with args.
6521set dummy strip; ac_word=$2
6522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523printf %s "checking for $ac_word... " >&6; }
6524if test ${ac_cv_prog_ac_ct_STRIP+y}
6525then :
6526  printf %s "(cached) " >&6
6527else $as_nop
6528  if test -n "$ac_ct_STRIP"; then
6529  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  case $as_dir in #(((
6536    '') as_dir=./ ;;
6537    */) ;;
6538    *) as_dir=$as_dir/ ;;
6539  esac
6540    for ac_exec_ext in '' $ac_executable_extensions; do
6541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6542    ac_cv_prog_ac_ct_STRIP="strip"
6543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547  done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6553if test -n "$ac_ct_STRIP"; then
6554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6555printf "%s\n" "$ac_ct_STRIP" >&6; }
6556else
6557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558printf "%s\n" "no" >&6; }
6559fi
6560
6561  if test "x$ac_ct_STRIP" = x; then
6562    STRIP=":"
6563  else
6564    case $cross_compiling:$ac_tool_warned in
6565yes:)
6566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568ac_tool_warned=yes ;;
6569esac
6570    STRIP=$ac_ct_STRIP
6571  fi
6572else
6573  STRIP="$ac_cv_prog_STRIP"
6574fi
6575
6576test -z "$STRIP" && STRIP=:
6577
6578
6579
6580
6581
6582
6583if test -n "$ac_tool_prefix"; then
6584  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587printf %s "checking for $ac_word... " >&6; }
6588if test ${ac_cv_prog_RANLIB+y}
6589then :
6590  printf %s "(cached) " >&6
6591else $as_nop
6592  if test -n "$RANLIB"; then
6593  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  case $as_dir in #(((
6600    '') as_dir=./ ;;
6601    */) ;;
6602    *) as_dir=$as_dir/ ;;
6603  esac
6604    for ac_exec_ext in '' $ac_executable_extensions; do
6605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608    break 2
6609  fi
6610done
6611  done
6612IFS=$as_save_IFS
6613
6614fi
6615fi
6616RANLIB=$ac_cv_prog_RANLIB
6617if test -n "$RANLIB"; then
6618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6619printf "%s\n" "$RANLIB" >&6; }
6620else
6621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622printf "%s\n" "no" >&6; }
6623fi
6624
6625
6626fi
6627if test -z "$ac_cv_prog_RANLIB"; then
6628  ac_ct_RANLIB=$RANLIB
6629  # Extract the first word of "ranlib", so it can be a program name with args.
6630set dummy ranlib; ac_word=$2
6631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632printf %s "checking for $ac_word... " >&6; }
6633if test ${ac_cv_prog_ac_ct_RANLIB+y}
6634then :
6635  printf %s "(cached) " >&6
6636else $as_nop
6637  if test -n "$ac_ct_RANLIB"; then
6638  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  case $as_dir in #(((
6645    '') as_dir=./ ;;
6646    */) ;;
6647    *) as_dir=$as_dir/ ;;
6648  esac
6649    for ac_exec_ext in '' $ac_executable_extensions; do
6650  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6651    ac_cv_prog_ac_ct_RANLIB="ranlib"
6652    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6653    break 2
6654  fi
6655done
6656  done
6657IFS=$as_save_IFS
6658
6659fi
6660fi
6661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6662if test -n "$ac_ct_RANLIB"; then
6663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6664printf "%s\n" "$ac_ct_RANLIB" >&6; }
6665else
6666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667printf "%s\n" "no" >&6; }
6668fi
6669
6670  if test "x$ac_ct_RANLIB" = x; then
6671    RANLIB=":"
6672  else
6673    case $cross_compiling:$ac_tool_warned in
6674yes:)
6675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677ac_tool_warned=yes ;;
6678esac
6679    RANLIB=$ac_ct_RANLIB
6680  fi
6681else
6682  RANLIB="$ac_cv_prog_RANLIB"
6683fi
6684
6685test -z "$RANLIB" && RANLIB=:
6686
6687
6688
6689
6690
6691
6692# Determine commands to create old-style static archives.
6693old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6694old_postinstall_cmds='chmod 644 $oldlib'
6695old_postuninstall_cmds=
6696
6697if test -n "$RANLIB"; then
6698  case $host_os in
6699  bitrig* | openbsd*)
6700    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6701    ;;
6702  *)
6703    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6704    ;;
6705  esac
6706  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6707fi
6708
6709case $host_os in
6710  darwin*)
6711    lock_old_archive_extraction=yes ;;
6712  *)
6713    lock_old_archive_extraction=no ;;
6714esac
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754# If no C compiler was specified, use CC.
6755LTCC=${LTCC-"$CC"}
6756
6757# If no C compiler flags were specified, use CFLAGS.
6758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
6760# Allow CC to be a program name with arguments.
6761compiler=$CC
6762
6763
6764# Check for command to grab the raw symbol name followed by C symbol from nm.
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6767if test ${lt_cv_sys_global_symbol_pipe+y}
6768then :
6769  printf %s "(cached) " >&6
6770else $as_nop
6771
6772# These are sane defaults that work on at least a few old systems.
6773# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6774
6775# Character class describing NM global symbol codes.
6776symcode='[BCDEGRST]'
6777
6778# Regexp to match symbols that can be accessed directly from C.
6779sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6780
6781# Define system-specific variables.
6782case $host_os in
6783aix*)
6784  symcode='[BCDT]'
6785  ;;
6786cygwin* | mingw* | pw32* | cegcc*)
6787  symcode='[ABCDGISTW]'
6788  ;;
6789hpux*)
6790  if test ia64 = "$host_cpu"; then
6791    symcode='[ABCDEGRST]'
6792  fi
6793  ;;
6794irix* | nonstopux*)
6795  symcode='[BCDEGRST]'
6796  ;;
6797osf*)
6798  symcode='[BCDEGQRST]'
6799  ;;
6800solaris*)
6801  symcode='[BDRT]'
6802  ;;
6803sco3.2v5*)
6804  symcode='[DT]'
6805  ;;
6806sysv4.2uw2*)
6807  symcode='[DT]'
6808  ;;
6809sysv5* | sco5v6* | unixware* | OpenUNIX*)
6810  symcode='[ABDT]'
6811  ;;
6812sysv4)
6813  symcode='[DFNSTU]'
6814  ;;
6815esac
6816
6817# If we're using GNU nm, then use its standard symbol codes.
6818case `$NM -V 2>&1` in
6819*GNU* | *'with BFD'*)
6820  symcode='[ABCDGIRSTW]' ;;
6821esac
6822
6823if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6824  # Gets list of data symbols to import.
6825  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6826  # Adjust the below global symbol transforms to fixup imported variables.
6827  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6828  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6829  lt_c_name_lib_hook="\
6830  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6831  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6832else
6833  # Disable hooks by default.
6834  lt_cv_sys_global_symbol_to_import=
6835  lt_cdecl_hook=
6836  lt_c_name_hook=
6837  lt_c_name_lib_hook=
6838fi
6839
6840# Transform an extracted symbol line into a proper C declaration.
6841# Some systems (esp. on ia64) link data and code symbols differently,
6842# so use this general approach.
6843lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6844$lt_cdecl_hook\
6845" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6846" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6847
6848# Transform an extracted symbol line into symbol name and symbol address
6849lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6850$lt_c_name_hook\
6851" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6852" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6853
6854# Transform an extracted symbol line into symbol name with lib prefix and
6855# symbol address.
6856lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6857$lt_c_name_lib_hook\
6858" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6859" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6860" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6861
6862# Handle CRLF in mingw tool chain
6863opt_cr=
6864case $build_os in
6865mingw*)
6866  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6867  ;;
6868esac
6869
6870# Try without a prefix underscore, then with it.
6871for ac_symprfx in "" "_"; do
6872
6873  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874  symxfrm="\\1 $ac_symprfx\\2 \\2"
6875
6876  # Write the raw and C identifiers.
6877  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6878    # Fake it for dumpbin and say T for any non-static function,
6879    # D for any global variable and I for any imported variable.
6880    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6881    # which start with @ or ?.
6882    lt_cv_sys_global_symbol_pipe="$AWK '"\
6883"     {last_section=section; section=\$ 3};"\
6884"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6885"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6886"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6887"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6888"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6889"     \$ 0!~/External *\|/{next};"\
6890"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6891"     {if(hide[section]) next};"\
6892"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6893"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6894"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6895"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6896"     ' prfx=^$ac_symprfx"
6897  else
6898    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6899  fi
6900  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6901
6902  # Check to see that the pipe works correctly.
6903  pipe_works=no
6904
6905  rm -f conftest*
6906  cat > conftest.$ac_ext <<_LT_EOF
6907#ifdef __cplusplus
6908extern "C" {
6909#endif
6910char nm_test_var;
6911void nm_test_func(void);
6912void nm_test_func(void){}
6913#ifdef __cplusplus
6914}
6915#endif
6916int main(){nm_test_var='a';nm_test_func();return(0);}
6917_LT_EOF
6918
6919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6920  (eval $ac_compile) 2>&5
6921  ac_status=$?
6922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923  test $ac_status = 0; }; then
6924    # Now try to grab the symbols.
6925    nlist=conftest.nm
6926    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6927  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6928  ac_status=$?
6929  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930  test $ac_status = 0; } && test -s "$nlist"; then
6931      # Try sorting and uniquifying the output.
6932      if sort "$nlist" | uniq > "$nlist"T; then
6933	mv -f "$nlist"T "$nlist"
6934      else
6935	rm -f "$nlist"T
6936      fi
6937
6938      # Make sure that we snagged all the symbols we need.
6939      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6940	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6941	  cat <<_LT_EOF > conftest.$ac_ext
6942/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6943#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6944/* DATA imports from DLLs on WIN32 can't be const, because runtime
6945   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6946# define LT_DLSYM_CONST
6947#elif defined __osf__
6948/* This system does not cope well with relocations in const data.  */
6949# define LT_DLSYM_CONST
6950#else
6951# define LT_DLSYM_CONST const
6952#endif
6953
6954#ifdef __cplusplus
6955extern "C" {
6956#endif
6957
6958_LT_EOF
6959	  # Now generate the symbol file.
6960	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6961
6962	  cat <<_LT_EOF >> conftest.$ac_ext
6963
6964/* The mapping between symbol names and symbols.  */
6965LT_DLSYM_CONST struct {
6966  const char *name;
6967  void       *address;
6968}
6969lt__PROGRAM__LTX_preloaded_symbols[] =
6970{
6971  { "@PROGRAM@", (void *) 0 },
6972_LT_EOF
6973	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6974	  cat <<\_LT_EOF >> conftest.$ac_ext
6975  {0, (void *) 0}
6976};
6977
6978/* This works around a problem in FreeBSD linker */
6979#ifdef FREEBSD_WORKAROUND
6980static const void *lt_preloaded_setup() {
6981  return lt__PROGRAM__LTX_preloaded_symbols;
6982}
6983#endif
6984
6985#ifdef __cplusplus
6986}
6987#endif
6988_LT_EOF
6989	  # Now try linking the two files.
6990	  mv conftest.$ac_objext conftstm.$ac_objext
6991	  lt_globsym_save_LIBS=$LIBS
6992	  lt_globsym_save_CFLAGS=$CFLAGS
6993	  LIBS=conftstm.$ac_objext
6994	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6995	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6996  (eval $ac_link) 2>&5
6997  ac_status=$?
6998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7000	    pipe_works=yes
7001	  fi
7002	  LIBS=$lt_globsym_save_LIBS
7003	  CFLAGS=$lt_globsym_save_CFLAGS
7004	else
7005	  echo "cannot find nm_test_func in $nlist" >&5
7006	fi
7007      else
7008	echo "cannot find nm_test_var in $nlist" >&5
7009      fi
7010    else
7011      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7012    fi
7013  else
7014    echo "$progname: failed program was:" >&5
7015    cat conftest.$ac_ext >&5
7016  fi
7017  rm -rf conftest* conftst*
7018
7019  # Do not use the global_symbol_pipe unless it works.
7020  if test yes = "$pipe_works"; then
7021    break
7022  else
7023    lt_cv_sys_global_symbol_pipe=
7024  fi
7025done
7026
7027fi
7028
7029if test -z "$lt_cv_sys_global_symbol_pipe"; then
7030  lt_cv_sys_global_symbol_to_cdecl=
7031fi
7032if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7034printf "%s\n" "failed" >&6; }
7035else
7036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7037printf "%s\n" "ok" >&6; }
7038fi
7039
7040# Response file support.
7041if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7042  nm_file_list_spec='@'
7043elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7044  nm_file_list_spec='@'
7045fi
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7084printf %s "checking for sysroot... " >&6; }
7085
7086# Check whether --with-sysroot was given.
7087if test ${with_sysroot+y}
7088then :
7089  withval=$with_sysroot;
7090else $as_nop
7091  with_sysroot=no
7092fi
7093
7094
7095lt_sysroot=
7096case $with_sysroot in #(
7097 yes)
7098   if test yes = "$GCC"; then
7099     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7100   fi
7101   ;; #(
7102 /*)
7103   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7104   ;; #(
7105 no|'')
7106   ;; #(
7107 *)
7108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7109printf "%s\n" "$with_sysroot" >&6; }
7110   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7111   ;;
7112esac
7113
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7115printf "%s\n" "${lt_sysroot:-no}" >&6; }
7116
7117
7118
7119
7120
7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7122printf %s "checking for a working dd... " >&6; }
7123if test ${ac_cv_path_lt_DD+y}
7124then :
7125  printf %s "(cached) " >&6
7126else $as_nop
7127  printf 0123456789abcdef0123456789abcdef >conftest.i
7128cat conftest.i conftest.i >conftest2.i
7129: ${lt_DD:=$DD}
7130if test -z "$lt_DD"; then
7131  ac_path_lt_DD_found=false
7132  # Loop through the user's path and test for each of PROGNAME-LIST
7133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136  IFS=$as_save_IFS
7137  case $as_dir in #(((
7138    '') as_dir=./ ;;
7139    */) ;;
7140    *) as_dir=$as_dir/ ;;
7141  esac
7142    for ac_prog in dd
7143   do
7144    for ac_exec_ext in '' $ac_executable_extensions; do
7145      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7146      as_fn_executable_p "$ac_path_lt_DD" || continue
7147if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7148  cmp -s conftest.i conftest.out \
7149  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7150fi
7151      $ac_path_lt_DD_found && break 3
7152    done
7153  done
7154  done
7155IFS=$as_save_IFS
7156  if test -z "$ac_cv_path_lt_DD"; then
7157    :
7158  fi
7159else
7160  ac_cv_path_lt_DD=$lt_DD
7161fi
7162
7163rm -f conftest.i conftest2.i conftest.out
7164fi
7165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7166printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7167
7168
7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7170printf %s "checking how to truncate binary pipes... " >&6; }
7171if test ${lt_cv_truncate_bin+y}
7172then :
7173  printf %s "(cached) " >&6
7174else $as_nop
7175  printf 0123456789abcdef0123456789abcdef >conftest.i
7176cat conftest.i conftest.i >conftest2.i
7177lt_cv_truncate_bin=
7178if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7179  cmp -s conftest.i conftest.out \
7180  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7181fi
7182rm -f conftest.i conftest2.i conftest.out
7183test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7184fi
7185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7186printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7187
7188
7189
7190
7191
7192
7193
7194# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7195func_cc_basename ()
7196{
7197    for cc_temp in $*""; do
7198      case $cc_temp in
7199        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7200        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7201        \-*) ;;
7202        *) break;;
7203      esac
7204    done
7205    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7206}
7207
7208# Check whether --enable-libtool-lock was given.
7209if test ${enable_libtool_lock+y}
7210then :
7211  enableval=$enable_libtool_lock;
7212fi
7213
7214test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7215
7216# Some flags need to be propagated to the compiler or linker for good
7217# libtool support.
7218case $host in
7219ia64-*-hpux*)
7220  # Find out what ABI is being produced by ac_compile, and set mode
7221  # options accordingly.
7222  echo 'int i;' > conftest.$ac_ext
7223  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224  (eval $ac_compile) 2>&5
7225  ac_status=$?
7226  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227  test $ac_status = 0; }; then
7228    case `$FILECMD conftest.$ac_objext` in
7229      *ELF-32*)
7230	HPUX_IA64_MODE=32
7231	;;
7232      *ELF-64*)
7233	HPUX_IA64_MODE=64
7234	;;
7235    esac
7236  fi
7237  rm -rf conftest*
7238  ;;
7239*-*-irix6*)
7240  # Find out what ABI is being produced by ac_compile, and set linker
7241  # options accordingly.
7242  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7243  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7244  (eval $ac_compile) 2>&5
7245  ac_status=$?
7246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247  test $ac_status = 0; }; then
7248    if test yes = "$lt_cv_prog_gnu_ld"; then
7249      case `$FILECMD conftest.$ac_objext` in
7250	*32-bit*)
7251	  LD="${LD-ld} -melf32bsmip"
7252	  ;;
7253	*N32*)
7254	  LD="${LD-ld} -melf32bmipn32"
7255	  ;;
7256	*64-bit*)
7257	  LD="${LD-ld} -melf64bmip"
7258	;;
7259      esac
7260    else
7261      case `$FILECMD conftest.$ac_objext` in
7262	*32-bit*)
7263	  LD="${LD-ld} -32"
7264	  ;;
7265	*N32*)
7266	  LD="${LD-ld} -n32"
7267	  ;;
7268	*64-bit*)
7269	  LD="${LD-ld} -64"
7270	  ;;
7271      esac
7272    fi
7273  fi
7274  rm -rf conftest*
7275  ;;
7276
7277mips64*-*linux*)
7278  # Find out what ABI is being produced by ac_compile, and set linker
7279  # options accordingly.
7280  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7281  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7282  (eval $ac_compile) 2>&5
7283  ac_status=$?
7284  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7285  test $ac_status = 0; }; then
7286    emul=elf
7287    case `$FILECMD conftest.$ac_objext` in
7288      *32-bit*)
7289	emul="${emul}32"
7290	;;
7291      *64-bit*)
7292	emul="${emul}64"
7293	;;
7294    esac
7295    case `$FILECMD conftest.$ac_objext` in
7296      *MSB*)
7297	emul="${emul}btsmip"
7298	;;
7299      *LSB*)
7300	emul="${emul}ltsmip"
7301	;;
7302    esac
7303    case `$FILECMD conftest.$ac_objext` in
7304      *N32*)
7305	emul="${emul}n32"
7306	;;
7307    esac
7308    LD="${LD-ld} -m $emul"
7309  fi
7310  rm -rf conftest*
7311  ;;
7312
7313x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7314s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7315  # Find out what ABI is being produced by ac_compile, and set linker
7316  # options accordingly.  Note that the listed cases only cover the
7317  # situations where additional linker options are needed (such as when
7318  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7319  # vice versa); the common cases where no linker options are needed do
7320  # not appear in the list.
7321  echo 'int i;' > conftest.$ac_ext
7322  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323  (eval $ac_compile) 2>&5
7324  ac_status=$?
7325  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326  test $ac_status = 0; }; then
7327    case `$FILECMD conftest.o` in
7328      *32-bit*)
7329	case $host in
7330	  x86_64-*kfreebsd*-gnu)
7331	    LD="${LD-ld} -m elf_i386_fbsd"
7332	    ;;
7333	  x86_64-*linux*)
7334	    case `$FILECMD conftest.o` in
7335	      *x86-64*)
7336		LD="${LD-ld} -m elf32_x86_64"
7337		;;
7338	      *)
7339		LD="${LD-ld} -m elf_i386"
7340		;;
7341	    esac
7342	    ;;
7343	  powerpc64le-*linux*)
7344	    LD="${LD-ld} -m elf32lppclinux"
7345	    ;;
7346	  powerpc64-*linux*)
7347	    LD="${LD-ld} -m elf32ppclinux"
7348	    ;;
7349	  s390x-*linux*)
7350	    LD="${LD-ld} -m elf_s390"
7351	    ;;
7352	  sparc64-*linux*)
7353	    LD="${LD-ld} -m elf32_sparc"
7354	    ;;
7355	esac
7356	;;
7357      *64-bit*)
7358	case $host in
7359	  x86_64-*kfreebsd*-gnu)
7360	    LD="${LD-ld} -m elf_x86_64_fbsd"
7361	    ;;
7362	  x86_64-*linux*)
7363	    LD="${LD-ld} -m elf_x86_64"
7364	    ;;
7365	  powerpcle-*linux*|powerpc64le-*linux*)
7366	    LD="${LD-ld} -m elf64lppc"
7367	    ;;
7368	  powerpc-*linux*|powerpc64-*linux*)
7369	    LD="${LD-ld} -m elf64ppc"
7370	    ;;
7371	  s390*-*linux*|s390*-*tpf*)
7372	    LD="${LD-ld} -m elf64_s390"
7373	    ;;
7374	  sparc*-*linux*)
7375	    LD="${LD-ld} -m elf64_sparc"
7376	    ;;
7377	esac
7378	;;
7379    esac
7380  fi
7381  rm -rf conftest*
7382  ;;
7383
7384*-*-sco3.2v5*)
7385  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7386  SAVE_CFLAGS=$CFLAGS
7387  CFLAGS="$CFLAGS -belf"
7388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7389printf %s "checking whether the C compiler needs -belf... " >&6; }
7390if test ${lt_cv_cc_needs_belf+y}
7391then :
7392  printf %s "(cached) " >&6
7393else $as_nop
7394  ac_ext=c
7395ac_cpp='$CPP $CPPFLAGS'
7396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402
7403int
7404main (void)
7405{
7406
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_link "$LINENO"
7412then :
7413  lt_cv_cc_needs_belf=yes
7414else $as_nop
7415  lt_cv_cc_needs_belf=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam \
7418    conftest$ac_exeext conftest.$ac_ext
7419     ac_ext=c
7420ac_cpp='$CPP $CPPFLAGS'
7421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424
7425fi
7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7427printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7428  if test yes != "$lt_cv_cc_needs_belf"; then
7429    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7430    CFLAGS=$SAVE_CFLAGS
7431  fi
7432  ;;
7433*-*solaris*)
7434  # Find out what ABI is being produced by ac_compile, and set linker
7435  # options accordingly.
7436  echo 'int i;' > conftest.$ac_ext
7437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438  (eval $ac_compile) 2>&5
7439  ac_status=$?
7440  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441  test $ac_status = 0; }; then
7442    case `$FILECMD conftest.o` in
7443    *64-bit*)
7444      case $lt_cv_prog_gnu_ld in
7445      yes*)
7446        case $host in
7447        i?86-*-solaris*|x86_64-*-solaris*)
7448          LD="${LD-ld} -m elf_x86_64"
7449          ;;
7450        sparc*-*-solaris*)
7451          LD="${LD-ld} -m elf64_sparc"
7452          ;;
7453        esac
7454        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7455        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7456          LD=${LD-ld}_sol2
7457        fi
7458        ;;
7459      *)
7460	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7461	  LD="${LD-ld} -64"
7462	fi
7463	;;
7464      esac
7465      ;;
7466    esac
7467  fi
7468  rm -rf conftest*
7469  ;;
7470esac
7471
7472need_locks=$enable_libtool_lock
7473
7474if test -n "$ac_tool_prefix"; then
7475  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7476set dummy ${ac_tool_prefix}mt; ac_word=$2
7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478printf %s "checking for $ac_word... " >&6; }
7479if test ${ac_cv_prog_MANIFEST_TOOL+y}
7480then :
7481  printf %s "(cached) " >&6
7482else $as_nop
7483  if test -n "$MANIFEST_TOOL"; then
7484  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  case $as_dir in #(((
7491    '') as_dir=./ ;;
7492    */) ;;
7493    *) as_dir=$as_dir/ ;;
7494  esac
7495    for ac_exec_ext in '' $ac_executable_extensions; do
7496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502  done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7508if test -n "$MANIFEST_TOOL"; then
7509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7510printf "%s\n" "$MANIFEST_TOOL" >&6; }
7511else
7512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513printf "%s\n" "no" >&6; }
7514fi
7515
7516
7517fi
7518if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7519  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7520  # Extract the first word of "mt", so it can be a program name with args.
7521set dummy mt; ac_word=$2
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523printf %s "checking for $ac_word... " >&6; }
7524if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7525then :
7526  printf %s "(cached) " >&6
7527else $as_nop
7528  if test -n "$ac_ct_MANIFEST_TOOL"; then
7529  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  case $as_dir in #(((
7536    '') as_dir=./ ;;
7537    */) ;;
7538    *) as_dir=$as_dir/ ;;
7539  esac
7540    for ac_exec_ext in '' $ac_executable_extensions; do
7541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7542    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7544    break 2
7545  fi
7546done
7547  done
7548IFS=$as_save_IFS
7549
7550fi
7551fi
7552ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7553if test -n "$ac_ct_MANIFEST_TOOL"; then
7554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7555printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7556else
7557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558printf "%s\n" "no" >&6; }
7559fi
7560
7561  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562    MANIFEST_TOOL=":"
7563  else
7564    case $cross_compiling:$ac_tool_warned in
7565yes:)
7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568ac_tool_warned=yes ;;
7569esac
7570    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571  fi
7572else
7573  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574fi
7575
7576test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7578printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7579if test ${lt_cv_path_mainfest_tool+y}
7580then :
7581  printf %s "(cached) " >&6
7582else $as_nop
7583  lt_cv_path_mainfest_tool=no
7584  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7585  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7586  cat conftest.err >&5
7587  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7588    lt_cv_path_mainfest_tool=yes
7589  fi
7590  rm -f conftest*
7591fi
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7593printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7594if test yes != "$lt_cv_path_mainfest_tool"; then
7595  MANIFEST_TOOL=:
7596fi
7597
7598
7599
7600
7601
7602
7603  case $host_os in
7604    rhapsody* | darwin*)
7605    if test -n "$ac_tool_prefix"; then
7606  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7607set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609printf %s "checking for $ac_word... " >&6; }
7610if test ${ac_cv_prog_DSYMUTIL+y}
7611then :
7612  printf %s "(cached) " >&6
7613else $as_nop
7614  if test -n "$DSYMUTIL"; then
7615  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  case $as_dir in #(((
7622    '') as_dir=./ ;;
7623    */) ;;
7624    *) as_dir=$as_dir/ ;;
7625  esac
7626    for ac_exec_ext in '' $ac_executable_extensions; do
7627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7628    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7630    break 2
7631  fi
7632done
7633  done
7634IFS=$as_save_IFS
7635
7636fi
7637fi
7638DSYMUTIL=$ac_cv_prog_DSYMUTIL
7639if test -n "$DSYMUTIL"; then
7640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7641printf "%s\n" "$DSYMUTIL" >&6; }
7642else
7643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644printf "%s\n" "no" >&6; }
7645fi
7646
7647
7648fi
7649if test -z "$ac_cv_prog_DSYMUTIL"; then
7650  ac_ct_DSYMUTIL=$DSYMUTIL
7651  # Extract the first word of "dsymutil", so it can be a program name with args.
7652set dummy dsymutil; ac_word=$2
7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654printf %s "checking for $ac_word... " >&6; }
7655if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7656then :
7657  printf %s "(cached) " >&6
7658else $as_nop
7659  if test -n "$ac_ct_DSYMUTIL"; then
7660  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7661else
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665  IFS=$as_save_IFS
7666  case $as_dir in #(((
7667    '') as_dir=./ ;;
7668    */) ;;
7669    *) as_dir=$as_dir/ ;;
7670  esac
7671    for ac_exec_ext in '' $ac_executable_extensions; do
7672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7673    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7675    break 2
7676  fi
7677done
7678  done
7679IFS=$as_save_IFS
7680
7681fi
7682fi
7683ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684if test -n "$ac_ct_DSYMUTIL"; then
7685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7687else
7688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689printf "%s\n" "no" >&6; }
7690fi
7691
7692  if test "x$ac_ct_DSYMUTIL" = x; then
7693    DSYMUTIL=":"
7694  else
7695    case $cross_compiling:$ac_tool_warned in
7696yes:)
7697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699ac_tool_warned=yes ;;
7700esac
7701    DSYMUTIL=$ac_ct_DSYMUTIL
7702  fi
7703else
7704  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7705fi
7706
7707    if test -n "$ac_tool_prefix"; then
7708  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711printf %s "checking for $ac_word... " >&6; }
7712if test ${ac_cv_prog_NMEDIT+y}
7713then :
7714  printf %s "(cached) " >&6
7715else $as_nop
7716  if test -n "$NMEDIT"; then
7717  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722  IFS=$as_save_IFS
7723  case $as_dir in #(((
7724    '') as_dir=./ ;;
7725    */) ;;
7726    *) as_dir=$as_dir/ ;;
7727  esac
7728    for ac_exec_ext in '' $ac_executable_extensions; do
7729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735  done
7736IFS=$as_save_IFS
7737
7738fi
7739fi
7740NMEDIT=$ac_cv_prog_NMEDIT
7741if test -n "$NMEDIT"; then
7742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7743printf "%s\n" "$NMEDIT" >&6; }
7744else
7745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746printf "%s\n" "no" >&6; }
7747fi
7748
7749
7750fi
7751if test -z "$ac_cv_prog_NMEDIT"; then
7752  ac_ct_NMEDIT=$NMEDIT
7753  # Extract the first word of "nmedit", so it can be a program name with args.
7754set dummy nmedit; ac_word=$2
7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756printf %s "checking for $ac_word... " >&6; }
7757if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7758then :
7759  printf %s "(cached) " >&6
7760else $as_nop
7761  if test -n "$ac_ct_NMEDIT"; then
7762  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767  IFS=$as_save_IFS
7768  case $as_dir in #(((
7769    '') as_dir=./ ;;
7770    */) ;;
7771    *) as_dir=$as_dir/ ;;
7772  esac
7773    for ac_exec_ext in '' $ac_executable_extensions; do
7774  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7775    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7776    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7777    break 2
7778  fi
7779done
7780  done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7786if test -n "$ac_ct_NMEDIT"; then
7787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7788printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7789else
7790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791printf "%s\n" "no" >&6; }
7792fi
7793
7794  if test "x$ac_ct_NMEDIT" = x; then
7795    NMEDIT=":"
7796  else
7797    case $cross_compiling:$ac_tool_warned in
7798yes:)
7799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801ac_tool_warned=yes ;;
7802esac
7803    NMEDIT=$ac_ct_NMEDIT
7804  fi
7805else
7806  NMEDIT="$ac_cv_prog_NMEDIT"
7807fi
7808
7809    if test -n "$ac_tool_prefix"; then
7810  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7811set dummy ${ac_tool_prefix}lipo; ac_word=$2
7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813printf %s "checking for $ac_word... " >&6; }
7814if test ${ac_cv_prog_LIPO+y}
7815then :
7816  printf %s "(cached) " >&6
7817else $as_nop
7818  if test -n "$LIPO"; then
7819  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7820else
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824  IFS=$as_save_IFS
7825  case $as_dir in #(((
7826    '') as_dir=./ ;;
7827    */) ;;
7828    *) as_dir=$as_dir/ ;;
7829  esac
7830    for ac_exec_ext in '' $ac_executable_extensions; do
7831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837  done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842LIPO=$ac_cv_prog_LIPO
7843if test -n "$LIPO"; then
7844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7845printf "%s\n" "$LIPO" >&6; }
7846else
7847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848printf "%s\n" "no" >&6; }
7849fi
7850
7851
7852fi
7853if test -z "$ac_cv_prog_LIPO"; then
7854  ac_ct_LIPO=$LIPO
7855  # Extract the first word of "lipo", so it can be a program name with args.
7856set dummy lipo; ac_word=$2
7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858printf %s "checking for $ac_word... " >&6; }
7859if test ${ac_cv_prog_ac_ct_LIPO+y}
7860then :
7861  printf %s "(cached) " >&6
7862else $as_nop
7863  if test -n "$ac_ct_LIPO"; then
7864  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869  IFS=$as_save_IFS
7870  case $as_dir in #(((
7871    '') as_dir=./ ;;
7872    */) ;;
7873    *) as_dir=$as_dir/ ;;
7874  esac
7875    for ac_exec_ext in '' $ac_executable_extensions; do
7876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7877    ac_cv_prog_ac_ct_LIPO="lipo"
7878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7879    break 2
7880  fi
7881done
7882  done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7888if test -n "$ac_ct_LIPO"; then
7889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7890printf "%s\n" "$ac_ct_LIPO" >&6; }
7891else
7892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893printf "%s\n" "no" >&6; }
7894fi
7895
7896  if test "x$ac_ct_LIPO" = x; then
7897    LIPO=":"
7898  else
7899    case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905    LIPO=$ac_ct_LIPO
7906  fi
7907else
7908  LIPO="$ac_cv_prog_LIPO"
7909fi
7910
7911    if test -n "$ac_tool_prefix"; then
7912  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}otool; ac_word=$2
7914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915printf %s "checking for $ac_word... " >&6; }
7916if test ${ac_cv_prog_OTOOL+y}
7917then :
7918  printf %s "(cached) " >&6
7919else $as_nop
7920  if test -n "$OTOOL"; then
7921  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  case $as_dir in #(((
7928    '') as_dir=./ ;;
7929    */) ;;
7930    *) as_dir=$as_dir/ ;;
7931  esac
7932    for ac_exec_ext in '' $ac_executable_extensions; do
7933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936    break 2
7937  fi
7938done
7939  done
7940IFS=$as_save_IFS
7941
7942fi
7943fi
7944OTOOL=$ac_cv_prog_OTOOL
7945if test -n "$OTOOL"; then
7946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7947printf "%s\n" "$OTOOL" >&6; }
7948else
7949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950printf "%s\n" "no" >&6; }
7951fi
7952
7953
7954fi
7955if test -z "$ac_cv_prog_OTOOL"; then
7956  ac_ct_OTOOL=$OTOOL
7957  # Extract the first word of "otool", so it can be a program name with args.
7958set dummy otool; ac_word=$2
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960printf %s "checking for $ac_word... " >&6; }
7961if test ${ac_cv_prog_ac_ct_OTOOL+y}
7962then :
7963  printf %s "(cached) " >&6
7964else $as_nop
7965  if test -n "$ac_ct_OTOOL"; then
7966  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7967else
7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971  IFS=$as_save_IFS
7972  case $as_dir in #(((
7973    '') as_dir=./ ;;
7974    */) ;;
7975    *) as_dir=$as_dir/ ;;
7976  esac
7977    for ac_exec_ext in '' $ac_executable_extensions; do
7978  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7979    ac_cv_prog_ac_ct_OTOOL="otool"
7980    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7981    break 2
7982  fi
7983done
7984  done
7985IFS=$as_save_IFS
7986
7987fi
7988fi
7989ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7990if test -n "$ac_ct_OTOOL"; then
7991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7992printf "%s\n" "$ac_ct_OTOOL" >&6; }
7993else
7994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995printf "%s\n" "no" >&6; }
7996fi
7997
7998  if test "x$ac_ct_OTOOL" = x; then
7999    OTOOL=":"
8000  else
8001    case $cross_compiling:$ac_tool_warned in
8002yes:)
8003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005ac_tool_warned=yes ;;
8006esac
8007    OTOOL=$ac_ct_OTOOL
8008  fi
8009else
8010  OTOOL="$ac_cv_prog_OTOOL"
8011fi
8012
8013    if test -n "$ac_tool_prefix"; then
8014  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8015set dummy ${ac_tool_prefix}otool64; ac_word=$2
8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017printf %s "checking for $ac_word... " >&6; }
8018if test ${ac_cv_prog_OTOOL64+y}
8019then :
8020  printf %s "(cached) " >&6
8021else $as_nop
8022  if test -n "$OTOOL64"; then
8023  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  case $as_dir in #(((
8030    '') as_dir=./ ;;
8031    */) ;;
8032    *) as_dir=$as_dir/ ;;
8033  esac
8034    for ac_exec_ext in '' $ac_executable_extensions; do
8035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038    break 2
8039  fi
8040done
8041  done
8042IFS=$as_save_IFS
8043
8044fi
8045fi
8046OTOOL64=$ac_cv_prog_OTOOL64
8047if test -n "$OTOOL64"; then
8048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8049printf "%s\n" "$OTOOL64" >&6; }
8050else
8051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052printf "%s\n" "no" >&6; }
8053fi
8054
8055
8056fi
8057if test -z "$ac_cv_prog_OTOOL64"; then
8058  ac_ct_OTOOL64=$OTOOL64
8059  # Extract the first word of "otool64", so it can be a program name with args.
8060set dummy otool64; ac_word=$2
8061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062printf %s "checking for $ac_word... " >&6; }
8063if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8064then :
8065  printf %s "(cached) " >&6
8066else $as_nop
8067  if test -n "$ac_ct_OTOOL64"; then
8068  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8069else
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073  IFS=$as_save_IFS
8074  case $as_dir in #(((
8075    '') as_dir=./ ;;
8076    */) ;;
8077    *) as_dir=$as_dir/ ;;
8078  esac
8079    for ac_exec_ext in '' $ac_executable_extensions; do
8080  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8081    ac_cv_prog_ac_ct_OTOOL64="otool64"
8082    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8083    break 2
8084  fi
8085done
8086  done
8087IFS=$as_save_IFS
8088
8089fi
8090fi
8091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8092if test -n "$ac_ct_OTOOL64"; then
8093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8094printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8095else
8096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097printf "%s\n" "no" >&6; }
8098fi
8099
8100  if test "x$ac_ct_OTOOL64" = x; then
8101    OTOOL64=":"
8102  else
8103    case $cross_compiling:$ac_tool_warned in
8104yes:)
8105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8106printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8107ac_tool_warned=yes ;;
8108esac
8109    OTOOL64=$ac_ct_OTOOL64
8110  fi
8111else
8112  OTOOL64="$ac_cv_prog_OTOOL64"
8113fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8142printf %s "checking for -single_module linker flag... " >&6; }
8143if test ${lt_cv_apple_cc_single_mod+y}
8144then :
8145  printf %s "(cached) " >&6
8146else $as_nop
8147  lt_cv_apple_cc_single_mod=no
8148      if test -z "$LT_MULTI_MODULE"; then
8149	# By default we will add the -single_module flag. You can override
8150	# by either setting the environment variable LT_MULTI_MODULE
8151	# non-empty at configure time, or by adding -multi_module to the
8152	# link flags.
8153	rm -rf libconftest.dylib*
8154	echo "int foo(void){return 1;}" > conftest.c
8155	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156-dynamiclib -Wl,-single_module conftest.c" >&5
8157	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8159        _lt_result=$?
8160	# If there is a non-empty error log, and "single_module"
8161	# appears in it, assume the flag caused a linker warning
8162        if test -s conftest.err && $GREP single_module conftest.err; then
8163	  cat conftest.err >&5
8164	# Otherwise, if the output was created with a 0 exit code from
8165	# the compiler, it worked.
8166	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8167	  lt_cv_apple_cc_single_mod=yes
8168	else
8169	  cat conftest.err >&5
8170	fi
8171	rm -rf libconftest.dylib*
8172	rm -f conftest.*
8173      fi
8174fi
8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8176printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8177
8178    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8179printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8180if test ${lt_cv_ld_exported_symbols_list+y}
8181then :
8182  printf %s "(cached) " >&6
8183else $as_nop
8184  lt_cv_ld_exported_symbols_list=no
8185      save_LDFLAGS=$LDFLAGS
8186      echo "_main" > conftest.sym
8187      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190
8191int
8192main (void)
8193{
8194
8195  ;
8196  return 0;
8197}
8198_ACEOF
8199if ac_fn_c_try_link "$LINENO"
8200then :
8201  lt_cv_ld_exported_symbols_list=yes
8202else $as_nop
8203  lt_cv_ld_exported_symbols_list=no
8204fi
8205rm -f core conftest.err conftest.$ac_objext conftest.beam \
8206    conftest$ac_exeext conftest.$ac_ext
8207	LDFLAGS=$save_LDFLAGS
8208
8209fi
8210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8211printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8212
8213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214printf %s "checking for -force_load linker flag... " >&6; }
8215if test ${lt_cv_ld_force_load+y}
8216then :
8217  printf %s "(cached) " >&6
8218else $as_nop
8219  lt_cv_ld_force_load=no
8220      cat > conftest.c << _LT_EOF
8221int forced_loaded() { return 2;}
8222_LT_EOF
8223      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8224      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8225      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8226      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8227      echo "$RANLIB libconftest.a" >&5
8228      $RANLIB libconftest.a 2>&5
8229      cat > conftest.c << _LT_EOF
8230int main() { return 0;}
8231_LT_EOF
8232      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8233      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8234      _lt_result=$?
8235      if test -s conftest.err && $GREP force_load conftest.err; then
8236	cat conftest.err >&5
8237      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8238	lt_cv_ld_force_load=yes
8239      else
8240	cat conftest.err >&5
8241      fi
8242        rm -f conftest.err libconftest.a conftest conftest.c
8243        rm -rf conftest.dSYM
8244
8245fi
8246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8247printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8248    case $host_os in
8249    rhapsody* | darwin1.[012])
8250      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8251    darwin1.*)
8252      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8253    darwin*)
8254      case $MACOSX_DEPLOYMENT_TARGET,$host in
8255        10.[012],*|,*powerpc*-darwin[5-8]*)
8256          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8257        *)
8258          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8259      esac
8260    ;;
8261  esac
8262    if test yes = "$lt_cv_apple_cc_single_mod"; then
8263      _lt_dar_single_mod='$single_module'
8264    fi
8265    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8266      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8267    else
8268      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8269    fi
8270    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8271      _lt_dsymutil='~$DSYMUTIL $lib || :'
8272    else
8273      _lt_dsymutil=
8274    fi
8275    ;;
8276  esac
8277
8278# func_munge_path_list VARIABLE PATH
8279# -----------------------------------
8280# VARIABLE is name of variable containing _space_ separated list of
8281# directories to be munged by the contents of PATH, which is string
8282# having a format:
8283# "DIR[:DIR]:"
8284#       string "DIR[ DIR]" will be prepended to VARIABLE
8285# ":DIR[:DIR]"
8286#       string "DIR[ DIR]" will be appended to VARIABLE
8287# "DIRP[:DIRP]::[DIRA:]DIRA"
8288#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8289#       "DIRA[ DIRA]" will be appended to VARIABLE
8290# "DIR[:DIR]"
8291#       VARIABLE will be replaced by "DIR[ DIR]"
8292func_munge_path_list ()
8293{
8294    case x$2 in
8295    x)
8296        ;;
8297    *:)
8298        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8299        ;;
8300    x:*)
8301        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8302        ;;
8303    *::*)
8304        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8305        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8306        ;;
8307    *)
8308        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8309        ;;
8310    esac
8311}
8312
8313ac_header= ac_cache=
8314for ac_item in $ac_header_c_list
8315do
8316  if test $ac_cache; then
8317    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8318    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8319      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8320    fi
8321    ac_header= ac_cache=
8322  elif test $ac_header; then
8323    ac_cache=$ac_item
8324  else
8325    ac_header=$ac_item
8326  fi
8327done
8328
8329
8330
8331
8332
8333
8334
8335
8336if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8337then :
8338
8339printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8340
8341fi
8342ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8343"
8344if test "x$ac_cv_header_dlfcn_h" = xyes
8345then :
8346  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8347
8348fi
8349
8350
8351
8352
8353
8354# Set options
8355
8356
8357
8358        enable_dlopen=no
8359
8360
8361  enable_win32_dll=no
8362
8363
8364            # Check whether --enable-shared was given.
8365if test ${enable_shared+y}
8366then :
8367  enableval=$enable_shared; p=${PACKAGE-default}
8368    case $enableval in
8369    yes) enable_shared=yes ;;
8370    no) enable_shared=no ;;
8371    *)
8372      enable_shared=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_shared=yes
8379	fi
8380      done
8381      IFS=$lt_save_ifs
8382      ;;
8383    esac
8384else $as_nop
8385  enable_shared=yes
8386fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396  # Check whether --enable-static was given.
8397if test ${enable_static+y}
8398then :
8399  enableval=$enable_static; p=${PACKAGE-default}
8400    case $enableval in
8401    yes) enable_static=yes ;;
8402    no) enable_static=no ;;
8403    *)
8404     enable_static=no
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 pkg in $enableval; do
8408	IFS=$lt_save_ifs
8409	if test "X$pkg" = "X$p"; then
8410	  enable_static=yes
8411	fi
8412      done
8413      IFS=$lt_save_ifs
8414      ;;
8415    esac
8416else $as_nop
8417  enable_static=yes
8418fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429# Check whether --with-pic was given.
8430if test ${with_pic+y}
8431then :
8432  withval=$with_pic; lt_p=${PACKAGE-default}
8433    case $withval in
8434    yes|no) pic_mode=$withval ;;
8435    *)
8436      pic_mode=default
8437      # Look at the argument we got.  We use all the common list separators.
8438      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8439      for lt_pkg in $withval; do
8440	IFS=$lt_save_ifs
8441	if test "X$lt_pkg" = "X$lt_p"; then
8442	  pic_mode=yes
8443	fi
8444      done
8445      IFS=$lt_save_ifs
8446      ;;
8447    esac
8448else $as_nop
8449  pic_mode=default
8450fi
8451
8452
8453
8454
8455
8456
8457
8458
8459  # Check whether --enable-fast-install was given.
8460if test ${enable_fast_install+y}
8461then :
8462  enableval=$enable_fast_install; p=${PACKAGE-default}
8463    case $enableval in
8464    yes) enable_fast_install=yes ;;
8465    no) enable_fast_install=no ;;
8466    *)
8467      enable_fast_install=no
8468      # Look at the argument we got.  We use all the common list separators.
8469      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8470      for pkg in $enableval; do
8471	IFS=$lt_save_ifs
8472	if test "X$pkg" = "X$p"; then
8473	  enable_fast_install=yes
8474	fi
8475      done
8476      IFS=$lt_save_ifs
8477      ;;
8478    esac
8479else $as_nop
8480  enable_fast_install=yes
8481fi
8482
8483
8484
8485
8486
8487
8488
8489
8490  shared_archive_member_spec=
8491case $host,$enable_shared in
8492power*-*-aix[5-9]*,yes)
8493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8494printf %s "checking which variant of shared library versioning to provide... " >&6; }
8495
8496# Check whether --with-aix-soname was given.
8497if test ${with_aix_soname+y}
8498then :
8499  withval=$with_aix_soname; case $withval in
8500    aix|svr4|both)
8501      ;;
8502    *)
8503      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8504      ;;
8505    esac
8506    lt_cv_with_aix_soname=$with_aix_soname
8507else $as_nop
8508  if test ${lt_cv_with_aix_soname+y}
8509then :
8510  printf %s "(cached) " >&6
8511else $as_nop
8512  lt_cv_with_aix_soname=aix
8513fi
8514
8515    with_aix_soname=$lt_cv_with_aix_soname
8516fi
8517
8518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8519printf "%s\n" "$with_aix_soname" >&6; }
8520  if test aix != "$with_aix_soname"; then
8521    # For the AIX way of multilib, we name the shared archive member
8522    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8523    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8524    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8525    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8526    if test 64 = "${OBJECT_MODE-32}"; then
8527      shared_archive_member_spec=shr_64
8528    else
8529      shared_archive_member_spec=shr
8530    fi
8531  fi
8532  ;;
8533*)
8534  with_aix_soname=aix
8535  ;;
8536esac
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547# This can be used to rebuild libtool when needed
8548LIBTOOL_DEPS=$ltmain
8549
8550# Always use our own libtool.
8551LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582test -z "$LN_S" && LN_S="ln -s"
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597if test -n "${ZSH_VERSION+set}"; then
8598   setopt NO_GLOB_SUBST
8599fi
8600
8601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8602printf %s "checking for objdir... " >&6; }
8603if test ${lt_cv_objdir+y}
8604then :
8605  printf %s "(cached) " >&6
8606else $as_nop
8607  rm -f .libs 2>/dev/null
8608mkdir .libs 2>/dev/null
8609if test -d .libs; then
8610  lt_cv_objdir=.libs
8611else
8612  # MS-DOS does not allow filenames that begin with a dot.
8613  lt_cv_objdir=_libs
8614fi
8615rmdir .libs 2>/dev/null
8616fi
8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8618printf "%s\n" "$lt_cv_objdir" >&6; }
8619objdir=$lt_cv_objdir
8620
8621
8622
8623
8624
8625printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8626
8627
8628
8629
8630case $host_os in
8631aix3*)
8632  # AIX sometimes has problems with the GCC collect2 program.  For some
8633  # reason, if we set the COLLECT_NAMES environment variable, the problems
8634  # vanish in a puff of smoke.
8635  if test set != "${COLLECT_NAMES+set}"; then
8636    COLLECT_NAMES=
8637    export COLLECT_NAMES
8638  fi
8639  ;;
8640esac
8641
8642# Global variables:
8643ofile=libtool
8644can_build_shared=yes
8645
8646# All known linkers require a '.a' archive for static linking (except MSVC and
8647# ICC, which need '.lib').
8648libext=a
8649
8650with_gnu_ld=$lt_cv_prog_gnu_ld
8651
8652old_CC=$CC
8653old_CFLAGS=$CFLAGS
8654
8655# Set sane defaults for various variables
8656test -z "$CC" && CC=cc
8657test -z "$LTCC" && LTCC=$CC
8658test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8659test -z "$LD" && LD=ld
8660test -z "$ac_objext" && ac_objext=o
8661
8662func_cc_basename $compiler
8663cc_basename=$func_cc_basename_result
8664
8665
8666# Only perform the check for file, if the check method requires it
8667test -z "$MAGIC_CMD" && MAGIC_CMD=file
8668case $deplibs_check_method in
8669file_magic*)
8670  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8672printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8673if test ${lt_cv_path_MAGIC_CMD+y}
8674then :
8675  printf %s "(cached) " >&6
8676else $as_nop
8677  case $MAGIC_CMD in
8678[\\/*] |  ?:[\\/]*)
8679  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8680  ;;
8681*)
8682  lt_save_MAGIC_CMD=$MAGIC_CMD
8683  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8684  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8685  for ac_dir in $ac_dummy; do
8686    IFS=$lt_save_ifs
8687    test -z "$ac_dir" && ac_dir=.
8688    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8689      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8690      if test -n "$file_magic_test_file"; then
8691	case $deplibs_check_method in
8692	"file_magic "*)
8693	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8694	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8695	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8696	    $EGREP "$file_magic_regex" > /dev/null; then
8697	    :
8698	  else
8699	    cat <<_LT_EOF 1>&2
8700
8701*** Warning: the command libtool uses to detect shared libraries,
8702*** $file_magic_cmd, produces output that libtool cannot recognize.
8703*** The result is that libtool may fail to recognize shared libraries
8704*** as such.  This will affect the creation of libtool libraries that
8705*** depend on shared libraries, but programs linked with such libtool
8706*** libraries will work regardless of this problem.  Nevertheless, you
8707*** may want to report the problem to your system manager and/or to
8708*** bug-libtool@gnu.org
8709
8710_LT_EOF
8711	  fi ;;
8712	esac
8713      fi
8714      break
8715    fi
8716  done
8717  IFS=$lt_save_ifs
8718  MAGIC_CMD=$lt_save_MAGIC_CMD
8719  ;;
8720esac
8721fi
8722
8723MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8724if test -n "$MAGIC_CMD"; then
8725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8726printf "%s\n" "$MAGIC_CMD" >&6; }
8727else
8728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729printf "%s\n" "no" >&6; }
8730fi
8731
8732
8733
8734
8735
8736if test -z "$lt_cv_path_MAGIC_CMD"; then
8737  if test -n "$ac_tool_prefix"; then
8738    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8739printf %s "checking for file... " >&6; }
8740if test ${lt_cv_path_MAGIC_CMD+y}
8741then :
8742  printf %s "(cached) " >&6
8743else $as_nop
8744  case $MAGIC_CMD in
8745[\\/*] |  ?:[\\/]*)
8746  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8747  ;;
8748*)
8749  lt_save_MAGIC_CMD=$MAGIC_CMD
8750  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8751  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8752  for ac_dir in $ac_dummy; do
8753    IFS=$lt_save_ifs
8754    test -z "$ac_dir" && ac_dir=.
8755    if test -f "$ac_dir/file"; then
8756      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8757      if test -n "$file_magic_test_file"; then
8758	case $deplibs_check_method in
8759	"file_magic "*)
8760	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8761	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8762	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8763	    $EGREP "$file_magic_regex" > /dev/null; then
8764	    :
8765	  else
8766	    cat <<_LT_EOF 1>&2
8767
8768*** Warning: the command libtool uses to detect shared libraries,
8769*** $file_magic_cmd, produces output that libtool cannot recognize.
8770*** The result is that libtool may fail to recognize shared libraries
8771*** as such.  This will affect the creation of libtool libraries that
8772*** depend on shared libraries, but programs linked with such libtool
8773*** libraries will work regardless of this problem.  Nevertheless, you
8774*** may want to report the problem to your system manager and/or to
8775*** bug-libtool@gnu.org
8776
8777_LT_EOF
8778	  fi ;;
8779	esac
8780      fi
8781      break
8782    fi
8783  done
8784  IFS=$lt_save_ifs
8785  MAGIC_CMD=$lt_save_MAGIC_CMD
8786  ;;
8787esac
8788fi
8789
8790MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8791if test -n "$MAGIC_CMD"; then
8792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8793printf "%s\n" "$MAGIC_CMD" >&6; }
8794else
8795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796printf "%s\n" "no" >&6; }
8797fi
8798
8799
8800  else
8801    MAGIC_CMD=:
8802  fi
8803fi
8804
8805  fi
8806  ;;
8807esac
8808
8809# Use C for the default configuration in the libtool script
8810
8811lt_save_CC=$CC
8812ac_ext=c
8813ac_cpp='$CPP $CPPFLAGS'
8814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817
8818
8819# Source file extension for C test sources.
8820ac_ext=c
8821
8822# Object file extension for compiled C test sources.
8823objext=o
8824objext=$objext
8825
8826# Code to be used in simple compile tests
8827lt_simple_compile_test_code="int some_variable = 0;"
8828
8829# Code to be used in simple link tests
8830lt_simple_link_test_code='int main(){return(0);}'
8831
8832
8833
8834
8835
8836
8837
8838# If no C compiler was specified, use CC.
8839LTCC=${LTCC-"$CC"}
8840
8841# If no C compiler flags were specified, use CFLAGS.
8842LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8843
8844# Allow CC to be a program name with arguments.
8845compiler=$CC
8846
8847# Save the default compiler, since it gets overwritten when the other
8848# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8849compiler_DEFAULT=$CC
8850
8851# save warnings/boilerplate of simple test code
8852ac_outfile=conftest.$ac_objext
8853echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8854eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8855_lt_compiler_boilerplate=`cat conftest.err`
8856$RM conftest*
8857
8858ac_outfile=conftest.$ac_objext
8859echo "$lt_simple_link_test_code" >conftest.$ac_ext
8860eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8861_lt_linker_boilerplate=`cat conftest.err`
8862$RM -r conftest*
8863
8864
8865## CAVEAT EMPTOR:
8866## There is no encapsulation within the following macros, do not change
8867## the running order or otherwise move them around unless you know exactly
8868## what you are doing...
8869if test -n "$compiler"; then
8870
8871lt_prog_compiler_no_builtin_flag=
8872
8873if test yes = "$GCC"; then
8874  case $cc_basename in
8875  nvcc*)
8876    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8877  *)
8878    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8879  esac
8880
8881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8882printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8883if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8884then :
8885  printf %s "(cached) " >&6
8886else $as_nop
8887  lt_cv_prog_compiler_rtti_exceptions=no
8888   ac_outfile=conftest.$ac_objext
8889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8891   # Insert the option either (1) after the last *FLAGS variable, or
8892   # (2) before a word containing "conftest.", or (3) at the end.
8893   # Note that $ac_compile itself does not contain backslashes and begins
8894   # with a dollar sign (not a hyphen), so the echo should work correctly.
8895   # The option is referenced via a variable to avoid confusing sed.
8896   lt_compile=`echo "$ac_compile" | $SED \
8897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899   -e 's:$: $lt_compiler_flag:'`
8900   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901   (eval "$lt_compile" 2>conftest.err)
8902   ac_status=$?
8903   cat conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   if (exit $ac_status) && test -s "$ac_outfile"; then
8906     # The compiler can only warn and ignore the option if not recognized
8907     # So say no if there are warnings other than the usual output.
8908     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8909     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8911       lt_cv_prog_compiler_rtti_exceptions=yes
8912     fi
8913   fi
8914   $RM conftest*
8915
8916fi
8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8918printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8919
8920if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8921    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8922else
8923    :
8924fi
8925
8926fi
8927
8928
8929
8930
8931
8932
8933  lt_prog_compiler_wl=
8934lt_prog_compiler_pic=
8935lt_prog_compiler_static=
8936
8937
8938  if test yes = "$GCC"; then
8939    lt_prog_compiler_wl='-Wl,'
8940    lt_prog_compiler_static='-static'
8941
8942    case $host_os in
8943      aix*)
8944      # All AIX code is PIC.
8945      if test ia64 = "$host_cpu"; then
8946	# AIX 5 now supports IA64 processor
8947	lt_prog_compiler_static='-Bstatic'
8948      fi
8949      lt_prog_compiler_pic='-fPIC'
8950      ;;
8951
8952    amigaos*)
8953      case $host_cpu in
8954      powerpc)
8955            # see comment about AmigaOS4 .so support
8956            lt_prog_compiler_pic='-fPIC'
8957        ;;
8958      m68k)
8959            # FIXME: we need at least 68020 code to build shared libraries, but
8960            # adding the '-m68020' flag to GCC prevents building anything better,
8961            # like '-m68040'.
8962            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8963        ;;
8964      esac
8965      ;;
8966
8967    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8968      # PIC is the default for these OSes.
8969      ;;
8970
8971    mingw* | cygwin* | pw32* | os2* | cegcc*)
8972      # This hack is so that the source file can tell whether it is being
8973      # built for inclusion in a dll (and should export symbols for example).
8974      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8975      # (--disable-auto-import) libraries
8976      lt_prog_compiler_pic='-DDLL_EXPORT'
8977      case $host_os in
8978      os2*)
8979	lt_prog_compiler_static='$wl-static'
8980	;;
8981      esac
8982      ;;
8983
8984    darwin* | rhapsody*)
8985      # PIC is the default on this platform
8986      # Common symbols not allowed in MH_DYLIB files
8987      lt_prog_compiler_pic='-fno-common'
8988      ;;
8989
8990    haiku*)
8991      # PIC is the default for Haiku.
8992      # The "-static" flag exists, but is broken.
8993      lt_prog_compiler_static=
8994      ;;
8995
8996    hpux*)
8997      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8998      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8999      # sets the default TLS model and affects inlining.
9000      case $host_cpu in
9001      hppa*64*)
9002	# +Z the default
9003	;;
9004      *)
9005	lt_prog_compiler_pic='-fPIC'
9006	;;
9007      esac
9008      ;;
9009
9010    interix[3-9]*)
9011      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9012      # Instead, we relocate shared libraries at runtime.
9013      ;;
9014
9015    msdosdjgpp*)
9016      # Just because we use GCC doesn't mean we suddenly get shared libraries
9017      # on systems that don't support them.
9018      lt_prog_compiler_can_build_shared=no
9019      enable_shared=no
9020      ;;
9021
9022    *nto* | *qnx*)
9023      # QNX uses GNU C++, but need to define -shared option too, otherwise
9024      # it will coredump.
9025      lt_prog_compiler_pic='-fPIC -shared'
9026      ;;
9027
9028    sysv4*MP*)
9029      if test -d /usr/nec; then
9030	lt_prog_compiler_pic=-Kconform_pic
9031      fi
9032      ;;
9033
9034    *)
9035      lt_prog_compiler_pic='-fPIC'
9036      ;;
9037    esac
9038
9039    case $cc_basename in
9040    nvcc*) # Cuda Compiler Driver 2.2
9041      lt_prog_compiler_wl='-Xlinker '
9042      if test -n "$lt_prog_compiler_pic"; then
9043        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9044      fi
9045      ;;
9046    esac
9047  else
9048    # PORTME Check for flag to pass linker flags through the system compiler.
9049    case $host_os in
9050    aix*)
9051      lt_prog_compiler_wl='-Wl,'
9052      if test ia64 = "$host_cpu"; then
9053	# AIX 5 now supports IA64 processor
9054	lt_prog_compiler_static='-Bstatic'
9055      else
9056	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9057      fi
9058      ;;
9059
9060    darwin* | rhapsody*)
9061      # PIC is the default on this platform
9062      # Common symbols not allowed in MH_DYLIB files
9063      lt_prog_compiler_pic='-fno-common'
9064      case $cc_basename in
9065      nagfor*)
9066        # NAG Fortran compiler
9067        lt_prog_compiler_wl='-Wl,-Wl,,'
9068        lt_prog_compiler_pic='-PIC'
9069        lt_prog_compiler_static='-Bstatic'
9070        ;;
9071      esac
9072      ;;
9073
9074    mingw* | cygwin* | pw32* | os2* | cegcc*)
9075      # This hack is so that the source file can tell whether it is being
9076      # built for inclusion in a dll (and should export symbols for example).
9077      lt_prog_compiler_pic='-DDLL_EXPORT'
9078      case $host_os in
9079      os2*)
9080	lt_prog_compiler_static='$wl-static'
9081	;;
9082      esac
9083      ;;
9084
9085    hpux9* | hpux10* | hpux11*)
9086      lt_prog_compiler_wl='-Wl,'
9087      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9088      # not for PA HP-UX.
9089      case $host_cpu in
9090      hppa*64*|ia64*)
9091	# +Z the default
9092	;;
9093      *)
9094	lt_prog_compiler_pic='+Z'
9095	;;
9096      esac
9097      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9098      lt_prog_compiler_static='$wl-a ${wl}archive'
9099      ;;
9100
9101    irix5* | irix6* | nonstopux*)
9102      lt_prog_compiler_wl='-Wl,'
9103      # PIC (with -KPIC) is the default.
9104      lt_prog_compiler_static='-non_shared'
9105      ;;
9106
9107    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9108      case $cc_basename in
9109      # old Intel for x86_64, which still supported -KPIC.
9110      ecc*)
9111	lt_prog_compiler_wl='-Wl,'
9112	lt_prog_compiler_pic='-KPIC'
9113	lt_prog_compiler_static='-static'
9114        ;;
9115      # icc used to be incompatible with GCC.
9116      # ICC 10 doesn't accept -KPIC any more.
9117      icc* | ifort*)
9118	lt_prog_compiler_wl='-Wl,'
9119	lt_prog_compiler_pic='-fPIC'
9120	lt_prog_compiler_static='-static'
9121        ;;
9122      # Lahey Fortran 8.1.
9123      lf95*)
9124	lt_prog_compiler_wl='-Wl,'
9125	lt_prog_compiler_pic='--shared'
9126	lt_prog_compiler_static='--static'
9127	;;
9128      nagfor*)
9129	# NAG Fortran compiler
9130	lt_prog_compiler_wl='-Wl,-Wl,,'
9131	lt_prog_compiler_pic='-PIC'
9132	lt_prog_compiler_static='-Bstatic'
9133	;;
9134      tcc*)
9135	# Fabrice Bellard et al's Tiny C Compiler
9136	lt_prog_compiler_wl='-Wl,'
9137	lt_prog_compiler_pic='-fPIC'
9138	lt_prog_compiler_static='-static'
9139	;;
9140      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9141        # Portland Group compilers (*not* the Pentium gcc compiler,
9142	# which looks to be a dead project)
9143	lt_prog_compiler_wl='-Wl,'
9144	lt_prog_compiler_pic='-fpic'
9145	lt_prog_compiler_static='-Bstatic'
9146        ;;
9147      ccc*)
9148        lt_prog_compiler_wl='-Wl,'
9149        # All Alpha code is PIC.
9150        lt_prog_compiler_static='-non_shared'
9151        ;;
9152      xl* | bgxl* | bgf* | mpixl*)
9153	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9154	lt_prog_compiler_wl='-Wl,'
9155	lt_prog_compiler_pic='-qpic'
9156	lt_prog_compiler_static='-qstaticlink'
9157	;;
9158      *)
9159	case `$CC -V 2>&1 | $SED 5q` in
9160	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9161	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9162	  lt_prog_compiler_pic='-KPIC'
9163	  lt_prog_compiler_static='-Bstatic'
9164	  lt_prog_compiler_wl=''
9165	  ;;
9166	*Sun\ F* | *Sun*Fortran*)
9167	  lt_prog_compiler_pic='-KPIC'
9168	  lt_prog_compiler_static='-Bstatic'
9169	  lt_prog_compiler_wl='-Qoption ld '
9170	  ;;
9171	*Sun\ C*)
9172	  # Sun C 5.9
9173	  lt_prog_compiler_pic='-KPIC'
9174	  lt_prog_compiler_static='-Bstatic'
9175	  lt_prog_compiler_wl='-Wl,'
9176	  ;;
9177        *Intel*\ [CF]*Compiler*)
9178	  lt_prog_compiler_wl='-Wl,'
9179	  lt_prog_compiler_pic='-fPIC'
9180	  lt_prog_compiler_static='-static'
9181	  ;;
9182	*Portland\ Group*)
9183	  lt_prog_compiler_wl='-Wl,'
9184	  lt_prog_compiler_pic='-fpic'
9185	  lt_prog_compiler_static='-Bstatic'
9186	  ;;
9187	esac
9188	;;
9189      esac
9190      ;;
9191
9192    newsos6)
9193      lt_prog_compiler_pic='-KPIC'
9194      lt_prog_compiler_static='-Bstatic'
9195      ;;
9196
9197    *nto* | *qnx*)
9198      # QNX uses GNU C++, but need to define -shared option too, otherwise
9199      # it will coredump.
9200      lt_prog_compiler_pic='-fPIC -shared'
9201      ;;
9202
9203    osf3* | osf4* | osf5*)
9204      lt_prog_compiler_wl='-Wl,'
9205      # All OSF/1 code is PIC.
9206      lt_prog_compiler_static='-non_shared'
9207      ;;
9208
9209    rdos*)
9210      lt_prog_compiler_static='-non_shared'
9211      ;;
9212
9213    solaris*)
9214      lt_prog_compiler_pic='-KPIC'
9215      lt_prog_compiler_static='-Bstatic'
9216      case $cc_basename in
9217      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9218	lt_prog_compiler_wl='-Qoption ld ';;
9219      *)
9220	lt_prog_compiler_wl='-Wl,';;
9221      esac
9222      ;;
9223
9224    sunos4*)
9225      lt_prog_compiler_wl='-Qoption ld '
9226      lt_prog_compiler_pic='-PIC'
9227      lt_prog_compiler_static='-Bstatic'
9228      ;;
9229
9230    sysv4 | sysv4.2uw2* | sysv4.3*)
9231      lt_prog_compiler_wl='-Wl,'
9232      lt_prog_compiler_pic='-KPIC'
9233      lt_prog_compiler_static='-Bstatic'
9234      ;;
9235
9236    sysv4*MP*)
9237      if test -d /usr/nec; then
9238	lt_prog_compiler_pic='-Kconform_pic'
9239	lt_prog_compiler_static='-Bstatic'
9240      fi
9241      ;;
9242
9243    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9244      lt_prog_compiler_wl='-Wl,'
9245      lt_prog_compiler_pic='-KPIC'
9246      lt_prog_compiler_static='-Bstatic'
9247      ;;
9248
9249    unicos*)
9250      lt_prog_compiler_wl='-Wl,'
9251      lt_prog_compiler_can_build_shared=no
9252      ;;
9253
9254    uts4*)
9255      lt_prog_compiler_pic='-pic'
9256      lt_prog_compiler_static='-Bstatic'
9257      ;;
9258
9259    *)
9260      lt_prog_compiler_can_build_shared=no
9261      ;;
9262    esac
9263  fi
9264
9265case $host_os in
9266  # For platforms that do not support PIC, -DPIC is meaningless:
9267  *djgpp*)
9268    lt_prog_compiler_pic=
9269    ;;
9270  *)
9271    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9272    ;;
9273esac
9274
9275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9276printf %s "checking for $compiler option to produce PIC... " >&6; }
9277if test ${lt_cv_prog_compiler_pic+y}
9278then :
9279  printf %s "(cached) " >&6
9280else $as_nop
9281  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9282fi
9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9284printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9285lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9286
9287#
9288# Check to make sure the PIC flag actually works.
9289#
9290if test -n "$lt_prog_compiler_pic"; then
9291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9292printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9293if test ${lt_cv_prog_compiler_pic_works+y}
9294then :
9295  printf %s "(cached) " >&6
9296else $as_nop
9297  lt_cv_prog_compiler_pic_works=no
9298   ac_outfile=conftest.$ac_objext
9299   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9300   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9301   # Insert the option either (1) after the last *FLAGS variable, or
9302   # (2) before a word containing "conftest.", or (3) at the end.
9303   # Note that $ac_compile itself does not contain backslashes and begins
9304   # with a dollar sign (not a hyphen), so the echo should work correctly.
9305   # The option is referenced via a variable to avoid confusing sed.
9306   lt_compile=`echo "$ac_compile" | $SED \
9307   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9308   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9309   -e 's:$: $lt_compiler_flag:'`
9310   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9311   (eval "$lt_compile" 2>conftest.err)
9312   ac_status=$?
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   if (exit $ac_status) && test -s "$ac_outfile"; then
9316     # The compiler can only warn and ignore the option if not recognized
9317     # So say no if there are warnings other than the usual output.
9318     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9319     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9320     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9321       lt_cv_prog_compiler_pic_works=yes
9322     fi
9323   fi
9324   $RM conftest*
9325
9326fi
9327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9328printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9329
9330if test yes = "$lt_cv_prog_compiler_pic_works"; then
9331    case $lt_prog_compiler_pic in
9332     "" | " "*) ;;
9333     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9334     esac
9335else
9336    lt_prog_compiler_pic=
9337     lt_prog_compiler_can_build_shared=no
9338fi
9339
9340fi
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352#
9353# Check to make sure the static flag actually works.
9354#
9355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9357printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9358if test ${lt_cv_prog_compiler_static_works+y}
9359then :
9360  printf %s "(cached) " >&6
9361else $as_nop
9362  lt_cv_prog_compiler_static_works=no
9363   save_LDFLAGS=$LDFLAGS
9364   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9365   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9366   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9367     # The linker can only warn and ignore the option if not recognized
9368     # So say no if there are warnings
9369     if test -s conftest.err; then
9370       # Append any errors to the config.log.
9371       cat conftest.err 1>&5
9372       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9373       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374       if diff conftest.exp conftest.er2 >/dev/null; then
9375         lt_cv_prog_compiler_static_works=yes
9376       fi
9377     else
9378       lt_cv_prog_compiler_static_works=yes
9379     fi
9380   fi
9381   $RM -r conftest*
9382   LDFLAGS=$save_LDFLAGS
9383
9384fi
9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9386printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9387
9388if test yes = "$lt_cv_prog_compiler_static_works"; then
9389    :
9390else
9391    lt_prog_compiler_static=
9392fi
9393
9394
9395
9396
9397
9398
9399
9400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9401printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9402if test ${lt_cv_prog_compiler_c_o+y}
9403then :
9404  printf %s "(cached) " >&6
9405else $as_nop
9406  lt_cv_prog_compiler_c_o=no
9407   $RM -r conftest 2>/dev/null
9408   mkdir conftest
9409   cd conftest
9410   mkdir out
9411   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9412
9413   lt_compiler_flag="-o out/conftest2.$ac_objext"
9414   # Insert the option either (1) after the last *FLAGS variable, or
9415   # (2) before a word containing "conftest.", or (3) at the end.
9416   # Note that $ac_compile itself does not contain backslashes and begins
9417   # with a dollar sign (not a hyphen), so the echo should work correctly.
9418   lt_compile=`echo "$ac_compile" | $SED \
9419   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9421   -e 's:$: $lt_compiler_flag:'`
9422   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9423   (eval "$lt_compile" 2>out/conftest.err)
9424   ac_status=$?
9425   cat out/conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9428   then
9429     # The compiler can only warn and ignore the option if not recognized
9430     # So say no if there are warnings
9431     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9432     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9433     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9434       lt_cv_prog_compiler_c_o=yes
9435     fi
9436   fi
9437   chmod u+w . 2>&5
9438   $RM conftest*
9439   # SGI C++ compiler will create directory out/ii_files/ for
9440   # template instantiation
9441   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9442   $RM out/* && rmdir out
9443   cd ..
9444   $RM -r conftest
9445   $RM conftest*
9446
9447fi
9448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9449printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9450
9451
9452
9453
9454
9455
9456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9457printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9458if test ${lt_cv_prog_compiler_c_o+y}
9459then :
9460  printf %s "(cached) " >&6
9461else $as_nop
9462  lt_cv_prog_compiler_c_o=no
9463   $RM -r conftest 2>/dev/null
9464   mkdir conftest
9465   cd conftest
9466   mkdir out
9467   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468
9469   lt_compiler_flag="-o out/conftest2.$ac_objext"
9470   # Insert the option either (1) after the last *FLAGS variable, or
9471   # (2) before a word containing "conftest.", or (3) at the end.
9472   # Note that $ac_compile itself does not contain backslashes and begins
9473   # with a dollar sign (not a hyphen), so the echo should work correctly.
9474   lt_compile=`echo "$ac_compile" | $SED \
9475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477   -e 's:$: $lt_compiler_flag:'`
9478   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9479   (eval "$lt_compile" 2>out/conftest.err)
9480   ac_status=$?
9481   cat out/conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9484   then
9485     # The compiler can only warn and ignore the option if not recognized
9486     # So say no if there are warnings
9487     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9488     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9489     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9490       lt_cv_prog_compiler_c_o=yes
9491     fi
9492   fi
9493   chmod u+w . 2>&5
9494   $RM conftest*
9495   # SGI C++ compiler will create directory out/ii_files/ for
9496   # template instantiation
9497   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9498   $RM out/* && rmdir out
9499   cd ..
9500   $RM -r conftest
9501   $RM conftest*
9502
9503fi
9504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9505printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9506
9507
9508
9509
9510hard_links=nottested
9511if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9512  # do not overwrite the value of need_locks provided by the user
9513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9514printf %s "checking if we can lock with hard links... " >&6; }
9515  hard_links=yes
9516  $RM conftest*
9517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518  touch conftest.a
9519  ln conftest.a conftest.b 2>&5 || hard_links=no
9520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9522printf "%s\n" "$hard_links" >&6; }
9523  if test no = "$hard_links"; then
9524    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9525printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9526    need_locks=warn
9527  fi
9528else
9529  need_locks=no
9530fi
9531
9532
9533
9534
9535
9536
9537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9538printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9539
9540  runpath_var=
9541  allow_undefined_flag=
9542  always_export_symbols=no
9543  archive_cmds=
9544  archive_expsym_cmds=
9545  compiler_needs_object=no
9546  enable_shared_with_static_runtimes=no
9547  export_dynamic_flag_spec=
9548  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9549  hardcode_automatic=no
9550  hardcode_direct=no
9551  hardcode_direct_absolute=no
9552  hardcode_libdir_flag_spec=
9553  hardcode_libdir_separator=
9554  hardcode_minus_L=no
9555  hardcode_shlibpath_var=unsupported
9556  inherit_rpath=no
9557  link_all_deplibs=unknown
9558  module_cmds=
9559  module_expsym_cmds=
9560  old_archive_from_new_cmds=
9561  old_archive_from_expsyms_cmds=
9562  thread_safe_flag_spec=
9563  whole_archive_flag_spec=
9564  # include_expsyms should be a list of space-separated symbols to be *always*
9565  # included in the symbol list
9566  include_expsyms=
9567  # exclude_expsyms can be an extended regexp of symbols to exclude
9568  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9569  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9570  # as well as any symbol that contains 'd'.
9571  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9572  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9573  # platforms (ab)use it in PIC code, but their linkers get confused if
9574  # the symbol is explicitly referenced.  Since portable code cannot
9575  # rely on this symbol name, it's probably fine to never include it in
9576  # preloaded symbol tables.
9577  # Exclude shared library initialization/finalization symbols.
9578  extract_expsyms_cmds=
9579
9580  case $host_os in
9581  cygwin* | mingw* | pw32* | cegcc*)
9582    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9583    # When not using gcc, we currently assume that we are using
9584    # Microsoft Visual C++ or Intel C++ Compiler.
9585    if test yes != "$GCC"; then
9586      with_gnu_ld=no
9587    fi
9588    ;;
9589  interix*)
9590    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9591    with_gnu_ld=yes
9592    ;;
9593  openbsd* | bitrig*)
9594    with_gnu_ld=no
9595    ;;
9596  esac
9597
9598  ld_shlibs=yes
9599
9600  # On some targets, GNU ld is compatible enough with the native linker
9601  # that we're better off using the native interface for both.
9602  lt_use_gnu_ld_interface=no
9603  if test yes = "$with_gnu_ld"; then
9604    case $host_os in
9605      aix*)
9606	# The AIX port of GNU ld has always aspired to compatibility
9607	# with the native linker.  However, as the warning in the GNU ld
9608	# block says, versions before 2.19.5* couldn't really create working
9609	# shared libraries, regardless of the interface used.
9610	case `$LD -v 2>&1` in
9611	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9612	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9613	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9614	  *)
9615	    lt_use_gnu_ld_interface=yes
9616	    ;;
9617	esac
9618	;;
9619      *)
9620	lt_use_gnu_ld_interface=yes
9621	;;
9622    esac
9623  fi
9624
9625  if test yes = "$lt_use_gnu_ld_interface"; then
9626    # If archive_cmds runs LD, not CC, wlarc should be empty
9627    wlarc='$wl'
9628
9629    # Set some defaults for GNU ld with shared library support. These
9630    # are reset later if shared libraries are not supported. Putting them
9631    # here allows them to be overridden if necessary.
9632    runpath_var=LD_RUN_PATH
9633    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9634    export_dynamic_flag_spec='$wl--export-dynamic'
9635    # ancient GNU ld didn't support --whole-archive et. al.
9636    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9637      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9638    else
9639      whole_archive_flag_spec=
9640    fi
9641    supports_anon_versioning=no
9642    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9643      *GNU\ gold*) supports_anon_versioning=yes ;;
9644      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9645      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9646      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9647      *\ 2.11.*) ;; # other 2.11 versions
9648      *) supports_anon_versioning=yes ;;
9649    esac
9650
9651    # See if GNU ld supports shared libraries.
9652    case $host_os in
9653    aix[3-9]*)
9654      # On AIX/PPC, the GNU linker is very broken
9655      if test ia64 != "$host_cpu"; then
9656	ld_shlibs=no
9657	cat <<_LT_EOF 1>&2
9658
9659*** Warning: the GNU linker, at least up to release 2.19, is reported
9660*** to be unable to reliably create shared libraries on AIX.
9661*** Therefore, libtool is disabling shared libraries support.  If you
9662*** really care for shared libraries, you may want to install binutils
9663*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9664*** You will then need to restart the configuration process.
9665
9666_LT_EOF
9667      fi
9668      ;;
9669
9670    amigaos*)
9671      case $host_cpu in
9672      powerpc)
9673            # see comment about AmigaOS4 .so support
9674            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675            archive_expsym_cmds=''
9676        ;;
9677      m68k)
9678            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)'
9679            hardcode_libdir_flag_spec='-L$libdir'
9680            hardcode_minus_L=yes
9681        ;;
9682      esac
9683      ;;
9684
9685    beos*)
9686      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9687	allow_undefined_flag=unsupported
9688	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9689	# support --undefined.  This deserves some investigation.  FIXME
9690	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9691      else
9692	ld_shlibs=no
9693      fi
9694      ;;
9695
9696    cygwin* | mingw* | pw32* | cegcc*)
9697      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9698      # as there is no search path for DLLs.
9699      hardcode_libdir_flag_spec='-L$libdir'
9700      export_dynamic_flag_spec='$wl--export-all-symbols'
9701      allow_undefined_flag=unsupported
9702      always_export_symbols=no
9703      enable_shared_with_static_runtimes=yes
9704      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'
9705      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9706
9707      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9708        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9709	# If the export-symbols file already is a .def file, use it as
9710	# is; otherwise, prepend EXPORTS...
9711	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9712          cp $export_symbols $output_objdir/$soname.def;
9713        else
9714          echo EXPORTS > $output_objdir/$soname.def;
9715          cat $export_symbols >> $output_objdir/$soname.def;
9716        fi~
9717        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9718      else
9719	ld_shlibs=no
9720      fi
9721      ;;
9722
9723    haiku*)
9724      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9725      link_all_deplibs=yes
9726      ;;
9727
9728    os2*)
9729      hardcode_libdir_flag_spec='-L$libdir'
9730      hardcode_minus_L=yes
9731      allow_undefined_flag=unsupported
9732      shrext_cmds=.dll
9733      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9734	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9735	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9736	$ECHO EXPORTS >> $output_objdir/$libname.def~
9737	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9738	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9739	emximp -o $lib $output_objdir/$libname.def'
9740      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9741	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9742	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9743	$ECHO EXPORTS >> $output_objdir/$libname.def~
9744	prefix_cmds="$SED"~
9745	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9746	  prefix_cmds="$prefix_cmds -e 1d";
9747	fi~
9748	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9749	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9750	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9751	emximp -o $lib $output_objdir/$libname.def'
9752      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9753      enable_shared_with_static_runtimes=yes
9754      file_list_spec='@'
9755      ;;
9756
9757    interix[3-9]*)
9758      hardcode_direct=no
9759      hardcode_shlibpath_var=no
9760      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9761      export_dynamic_flag_spec='$wl-E'
9762      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9763      # Instead, shared libraries are loaded at an image base (0x10000000 by
9764      # default) and relocated if they conflict, which is a slow very memory
9765      # consuming and fragmenting process.  To avoid this, we pick a random,
9766      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9767      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9768      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9769      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'
9770      ;;
9771
9772    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9773      tmp_diet=no
9774      if test linux-dietlibc = "$host_os"; then
9775	case $cc_basename in
9776	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9777	esac
9778      fi
9779      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9780	 && test no = "$tmp_diet"
9781      then
9782	tmp_addflag=' $pic_flag'
9783	tmp_sharedflag='-shared'
9784	case $cc_basename,$host_cpu in
9785        pgcc*)				# Portland Group C compiler
9786	  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'
9787	  tmp_addflag=' $pic_flag'
9788	  ;;
9789	pgf77* | pgf90* | pgf95* | pgfortran*)
9790					# Portland Group f77 and f90 compilers
9791	  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'
9792	  tmp_addflag=' $pic_flag -Mnomain' ;;
9793	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9794	  tmp_addflag=' -i_dynamic' ;;
9795	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9796	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9797	ifc* | ifort*)			# Intel Fortran compiler
9798	  tmp_addflag=' -nofor_main' ;;
9799	lf95*)				# Lahey Fortran 8.1
9800	  whole_archive_flag_spec=
9801	  tmp_sharedflag='--shared' ;;
9802        nagfor*)                        # NAGFOR 5.3
9803          tmp_sharedflag='-Wl,-shared' ;;
9804	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9805	  tmp_sharedflag='-qmkshrobj'
9806	  tmp_addflag= ;;
9807	nvcc*)	# Cuda Compiler Driver 2.2
9808	  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'
9809	  compiler_needs_object=yes
9810	  ;;
9811	esac
9812	case `$CC -V 2>&1 | $SED 5q` in
9813	*Sun\ C*)			# Sun C 5.9
9814	  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'
9815	  compiler_needs_object=yes
9816	  tmp_sharedflag='-G' ;;
9817	*Sun\ F*)			# Sun Fortran 8.3
9818	  tmp_sharedflag='-G' ;;
9819	esac
9820	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9821
9822        if test yes = "$supports_anon_versioning"; then
9823          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9824            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9825            echo "local: *; };" >> $output_objdir/$libname.ver~
9826            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9827        fi
9828
9829	case $cc_basename in
9830	tcc*)
9831	  export_dynamic_flag_spec='-rdynamic'
9832	  ;;
9833	xlf* | bgf* | bgxlf* | mpixlf*)
9834	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9835	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9836	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9837	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9838	  if test yes = "$supports_anon_versioning"; then
9839	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9840              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9841              echo "local: *; };" >> $output_objdir/$libname.ver~
9842              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9843	  fi
9844	  ;;
9845	esac
9846      else
9847        ld_shlibs=no
9848      fi
9849      ;;
9850
9851    netbsd*)
9852      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9853	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9854	wlarc=
9855      else
9856	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9857	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9858      fi
9859      ;;
9860
9861    solaris*)
9862      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9863	ld_shlibs=no
9864	cat <<_LT_EOF 1>&2
9865
9866*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9867*** create shared libraries on Solaris systems.  Therefore, libtool
9868*** is disabling shared libraries support.  We urge you to upgrade GNU
9869*** binutils to release 2.9.1 or newer.  Another option is to modify
9870*** your PATH or compiler configuration so that the native linker is
9871*** used, and then restart.
9872
9873_LT_EOF
9874      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9875	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9876	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9877      else
9878	ld_shlibs=no
9879      fi
9880      ;;
9881
9882    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9883      case `$LD -v 2>&1` in
9884        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9885	ld_shlibs=no
9886	cat <<_LT_EOF 1>&2
9887
9888*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9889*** reliably create shared libraries on SCO systems.  Therefore, libtool
9890*** is disabling shared libraries support.  We urge you to upgrade GNU
9891*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9892*** your PATH or compiler configuration so that the native linker is
9893*** used, and then restart.
9894
9895_LT_EOF
9896	;;
9897	*)
9898	  # For security reasons, it is highly recommended that you always
9899	  # use absolute paths for naming shared libraries, and exclude the
9900	  # DT_RUNPATH tag from executables and libraries.  But doing so
9901	  # requires that you compile everything twice, which is a pain.
9902	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9905	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9906	  else
9907	    ld_shlibs=no
9908	  fi
9909	;;
9910      esac
9911      ;;
9912
9913    sunos4*)
9914      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9915      wlarc=
9916      hardcode_direct=yes
9917      hardcode_shlibpath_var=no
9918      ;;
9919
9920    *)
9921      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9924      else
9925	ld_shlibs=no
9926      fi
9927      ;;
9928    esac
9929
9930    if test no = "$ld_shlibs"; then
9931      runpath_var=
9932      hardcode_libdir_flag_spec=
9933      export_dynamic_flag_spec=
9934      whole_archive_flag_spec=
9935    fi
9936  else
9937    # PORTME fill in a description of your system's linker (not GNU ld)
9938    case $host_os in
9939    aix3*)
9940      allow_undefined_flag=unsupported
9941      always_export_symbols=yes
9942      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'
9943      # Note: this linker hardcodes the directories in LIBPATH if there
9944      # are no directories specified by -L.
9945      hardcode_minus_L=yes
9946      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9947	# Neither direct hardcoding nor static linking is supported with a
9948	# broken collect2.
9949	hardcode_direct=unsupported
9950      fi
9951      ;;
9952
9953    aix[4-9]*)
9954      if test ia64 = "$host_cpu"; then
9955	# On IA64, the linker does run time linking by default, so we don't
9956	# have to do anything special.
9957	aix_use_runtimelinking=no
9958	exp_sym_flag='-Bexport'
9959	no_entry_flag=
9960      else
9961	# If we're using GNU nm, then we don't want the "-C" option.
9962	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9963	# Without the "-l" option, or with the "-B" option, AIX nm treats
9964	# weak defined symbols like other global defined symbols, whereas
9965	# GNU nm marks them as "W".
9966	# While the 'weak' keyword is ignored in the Export File, we need
9967	# it in the Import File for the 'aix-soname' feature, so we have
9968	# to replace the "-B" option with "-P" for AIX nm.
9969	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9970	  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'
9971	else
9972	  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'
9973	fi
9974	aix_use_runtimelinking=no
9975
9976	# Test if we are trying to use run time linking or normal
9977	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9978	# have runtime linking enabled, and use it for executables.
9979	# For shared libraries, we enable/disable runtime linking
9980	# depending on the kind of the shared library created -
9981	# when "with_aix_soname,aix_use_runtimelinking" is:
9982	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9983	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9984	#            lib.a           static archive
9985	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9986	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9987	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9988	#            lib.a(lib.so.V) shared, rtl:no
9989	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9990	#            lib.a           static archive
9991	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9992	  for ld_flag in $LDFLAGS; do
9993	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9994	    aix_use_runtimelinking=yes
9995	    break
9996	  fi
9997	  done
9998	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9999	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10000	    # so we don't have lib.a shared libs to link our executables.
10001	    # We have to force runtime linking in this case.
10002	    aix_use_runtimelinking=yes
10003	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10004	  fi
10005	  ;;
10006	esac
10007
10008	exp_sym_flag='-bexport'
10009	no_entry_flag='-bnoentry'
10010      fi
10011
10012      # When large executables or shared objects are built, AIX ld can
10013      # have problems creating the table of contents.  If linking a library
10014      # or program results in "error TOC overflow" add -mminimal-toc to
10015      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10016      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10017
10018      archive_cmds=''
10019      hardcode_direct=yes
10020      hardcode_direct_absolute=yes
10021      hardcode_libdir_separator=':'
10022      link_all_deplibs=yes
10023      file_list_spec='$wl-f,'
10024      case $with_aix_soname,$aix_use_runtimelinking in
10025      aix,*) ;; # traditional, no import file
10026      svr4,* | *,yes) # use import file
10027	# The Import File defines what to hardcode.
10028	hardcode_direct=no
10029	hardcode_direct_absolute=no
10030	;;
10031      esac
10032
10033      if test yes = "$GCC"; then
10034	case $host_os in aix4.[012]|aix4.[012].*)
10035	# We only want to do this on AIX 4.2 and lower, the check
10036	# below for broken collect2 doesn't work under 4.3+
10037	  collect2name=`$CC -print-prog-name=collect2`
10038	  if test -f "$collect2name" &&
10039	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10040	  then
10041	  # We have reworked collect2
10042	  :
10043	  else
10044	  # We have old collect2
10045	  hardcode_direct=unsupported
10046	  # It fails to find uninstalled libraries when the uninstalled
10047	  # path is not listed in the libpath.  Setting hardcode_minus_L
10048	  # to unsupported forces relinking
10049	  hardcode_minus_L=yes
10050	  hardcode_libdir_flag_spec='-L$libdir'
10051	  hardcode_libdir_separator=
10052	  fi
10053	  ;;
10054	esac
10055	shared_flag='-shared'
10056	if test yes = "$aix_use_runtimelinking"; then
10057	  shared_flag="$shared_flag "'$wl-G'
10058	fi
10059	# Need to ensure runtime linking is disabled for the traditional
10060	# shared library, or the linker may eventually find shared libraries
10061	# /with/ Import File - we do not want to mix them.
10062	shared_flag_aix='-shared'
10063	shared_flag_svr4='-shared $wl-G'
10064      else
10065	# not using gcc
10066	if test ia64 = "$host_cpu"; then
10067	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10068	# chokes on -Wl,-G. The following line is correct:
10069	  shared_flag='-G'
10070	else
10071	  if test yes = "$aix_use_runtimelinking"; then
10072	    shared_flag='$wl-G'
10073	  else
10074	    shared_flag='$wl-bM:SRE'
10075	  fi
10076	  shared_flag_aix='$wl-bM:SRE'
10077	  shared_flag_svr4='$wl-G'
10078	fi
10079      fi
10080
10081      export_dynamic_flag_spec='$wl-bexpall'
10082      # It seems that -bexpall does not export symbols beginning with
10083      # underscore (_), so it is better to generate a list of symbols to export.
10084      always_export_symbols=yes
10085      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10086	# Warning - without using the other runtime loading flags (-brtl),
10087	# -berok will link without error, but may produce a broken library.
10088	allow_undefined_flag='-berok'
10089        # Determine the default libpath from the value encoded in an
10090        # empty executable.
10091        if test set = "${lt_cv_aix_libpath+set}"; then
10092  aix_libpath=$lt_cv_aix_libpath
10093else
10094  if test ${lt_cv_aix_libpath_+y}
10095then :
10096  printf %s "(cached) " >&6
10097else $as_nop
10098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100
10101int
10102main (void)
10103{
10104
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109if ac_fn_c_try_link "$LINENO"
10110then :
10111
10112  lt_aix_libpath_sed='
10113      /Import File Strings/,/^$/ {
10114	  /^0/ {
10115	      s/^0  *\([^ ]*\) *$/\1/
10116	      p
10117	  }
10118      }'
10119  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10120  # Check for a 64-bit object if we didn't find anything.
10121  if test -z "$lt_cv_aix_libpath_"; then
10122    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123  fi
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.beam \
10126    conftest$ac_exeext conftest.$ac_ext
10127  if test -z "$lt_cv_aix_libpath_"; then
10128    lt_cv_aix_libpath_=/usr/lib:/lib
10129  fi
10130
10131fi
10132
10133  aix_libpath=$lt_cv_aix_libpath_
10134fi
10135
10136        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10137        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
10138      else
10139	if test ia64 = "$host_cpu"; then
10140	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10141	  allow_undefined_flag="-z nodefs"
10142	  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"
10143	else
10144	 # Determine the default libpath from the value encoded in an
10145	 # empty executable.
10146	 if test set = "${lt_cv_aix_libpath+set}"; then
10147  aix_libpath=$lt_cv_aix_libpath
10148else
10149  if test ${lt_cv_aix_libpath_+y}
10150then :
10151  printf %s "(cached) " >&6
10152else $as_nop
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155
10156int
10157main (void)
10158{
10159
10160  ;
10161  return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"
10165then :
10166
10167  lt_aix_libpath_sed='
10168      /Import File Strings/,/^$/ {
10169	  /^0/ {
10170	      s/^0  *\([^ ]*\) *$/\1/
10171	      p
10172	  }
10173      }'
10174  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175  # Check for a 64-bit object if we didn't find anything.
10176  if test -z "$lt_cv_aix_libpath_"; then
10177    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10178  fi
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam \
10181    conftest$ac_exeext conftest.$ac_ext
10182  if test -z "$lt_cv_aix_libpath_"; then
10183    lt_cv_aix_libpath_=/usr/lib:/lib
10184  fi
10185
10186fi
10187
10188  aix_libpath=$lt_cv_aix_libpath_
10189fi
10190
10191	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10192	  # Warning - without using the other run time loading flags,
10193	  # -berok will link without error, but may produce a broken library.
10194	  no_undefined_flag=' $wl-bernotok'
10195	  allow_undefined_flag=' $wl-berok'
10196	  if test yes = "$with_gnu_ld"; then
10197	    # We only use this code for GNU lds that support --whole-archive.
10198	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10199	  else
10200	    # Exported symbols can be pulled into shared objects from archives
10201	    whole_archive_flag_spec='$convenience'
10202	  fi
10203	  archive_cmds_need_lc=yes
10204	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10205	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10206	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10207	  if test svr4 != "$with_aix_soname"; then
10208	    # This is similar to how AIX traditionally builds its shared libraries.
10209	    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'
10210	  fi
10211	  if test aix != "$with_aix_soname"; then
10212	    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'
10213	  else
10214	    # used by -dlpreopen to get the symbols
10215	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10216	  fi
10217	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10218	fi
10219      fi
10220      ;;
10221
10222    amigaos*)
10223      case $host_cpu in
10224      powerpc)
10225            # see comment about AmigaOS4 .so support
10226            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227            archive_expsym_cmds=''
10228        ;;
10229      m68k)
10230            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)'
10231            hardcode_libdir_flag_spec='-L$libdir'
10232            hardcode_minus_L=yes
10233        ;;
10234      esac
10235      ;;
10236
10237    bsdi[45]*)
10238      export_dynamic_flag_spec=-rdynamic
10239      ;;
10240
10241    cygwin* | mingw* | pw32* | cegcc*)
10242      # When not using gcc, we currently assume that we are using
10243      # Microsoft Visual C++ or Intel C++ Compiler.
10244      # hardcode_libdir_flag_spec is actually meaningless, as there is
10245      # no search path for DLLs.
10246      case $cc_basename in
10247      cl* | icl*)
10248	# Native MSVC or ICC
10249	hardcode_libdir_flag_spec=' '
10250	allow_undefined_flag=unsupported
10251	always_export_symbols=yes
10252	file_list_spec='@'
10253	# Tell ltmain to make .lib files, not .a files.
10254	libext=lib
10255	# Tell ltmain to make .dll files, not .so files.
10256	shrext_cmds=.dll
10257	# FIXME: Setting linknames here is a bad hack.
10258	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10259	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10260            cp "$export_symbols" "$output_objdir/$soname.def";
10261            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10262          else
10263            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10264          fi~
10265          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10266          linknames='
10267	# The linker will not automatically build a static lib if we build a DLL.
10268	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10269	enable_shared_with_static_runtimes=yes
10270	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10271	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10272	# Don't use ranlib
10273	old_postinstall_cmds='chmod 644 $oldlib'
10274	postlink_cmds='lt_outputfile="@OUTPUT@"~
10275          lt_tool_outputfile="@TOOL_OUTPUT@"~
10276          case $lt_outputfile in
10277            *.exe|*.EXE) ;;
10278            *)
10279              lt_outputfile=$lt_outputfile.exe
10280              lt_tool_outputfile=$lt_tool_outputfile.exe
10281              ;;
10282          esac~
10283          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10284            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10285            $RM "$lt_outputfile.manifest";
10286          fi'
10287	;;
10288      *)
10289	# Assume MSVC and ICC wrapper
10290	hardcode_libdir_flag_spec=' '
10291	allow_undefined_flag=unsupported
10292	# Tell ltmain to make .lib files, not .a files.
10293	libext=lib
10294	# Tell ltmain to make .dll files, not .so files.
10295	shrext_cmds=.dll
10296	# FIXME: Setting linknames here is a bad hack.
10297	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10298	# The linker will automatically build a .lib file if we build a DLL.
10299	old_archive_from_new_cmds='true'
10300	# FIXME: Should let the user specify the lib program.
10301	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10302	enable_shared_with_static_runtimes=yes
10303	;;
10304      esac
10305      ;;
10306
10307    darwin* | rhapsody*)
10308
10309
10310  archive_cmds_need_lc=no
10311  hardcode_direct=no
10312  hardcode_automatic=yes
10313  hardcode_shlibpath_var=unsupported
10314  if test yes = "$lt_cv_ld_force_load"; then
10315    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\"`'
10316
10317  else
10318    whole_archive_flag_spec=''
10319  fi
10320  link_all_deplibs=yes
10321  allow_undefined_flag=$_lt_dar_allow_undefined
10322  case $cc_basename in
10323     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10324     *) _lt_dar_can_shared=$GCC ;;
10325  esac
10326  if test yes = "$_lt_dar_can_shared"; then
10327    output_verbose_link_cmd=func_echo_all
10328    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10329    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10330    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"
10331    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"
10332
10333  else
10334  ld_shlibs=no
10335  fi
10336
10337      ;;
10338
10339    dgux*)
10340      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341      hardcode_libdir_flag_spec='-L$libdir'
10342      hardcode_shlibpath_var=no
10343      ;;
10344
10345    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10346    # support.  Future versions do this automatically, but an explicit c++rt0.o
10347    # does not break anything, and helps significantly (at the cost of a little
10348    # extra space).
10349    freebsd2.2*)
10350      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10351      hardcode_libdir_flag_spec='-R$libdir'
10352      hardcode_direct=yes
10353      hardcode_shlibpath_var=no
10354      ;;
10355
10356    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10357    freebsd2.*)
10358      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10359      hardcode_direct=yes
10360      hardcode_minus_L=yes
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10365    freebsd* | dragonfly* | midnightbsd*)
10366      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10367      hardcode_libdir_flag_spec='-R$libdir'
10368      hardcode_direct=yes
10369      hardcode_shlibpath_var=no
10370      ;;
10371
10372    hpux9*)
10373      if test yes = "$GCC"; then
10374	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'
10375      else
10376	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'
10377      fi
10378      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10379      hardcode_libdir_separator=:
10380      hardcode_direct=yes
10381
10382      # hardcode_minus_L: Not really in the search PATH,
10383      # but as the default location of the library.
10384      hardcode_minus_L=yes
10385      export_dynamic_flag_spec='$wl-E'
10386      ;;
10387
10388    hpux10*)
10389      if test yes,no = "$GCC,$with_gnu_ld"; then
10390	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391      else
10392	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10393      fi
10394      if test no = "$with_gnu_ld"; then
10395	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10396	hardcode_libdir_separator=:
10397	hardcode_direct=yes
10398	hardcode_direct_absolute=yes
10399	export_dynamic_flag_spec='$wl-E'
10400	# hardcode_minus_L: Not really in the search PATH,
10401	# but as the default location of the library.
10402	hardcode_minus_L=yes
10403      fi
10404      ;;
10405
10406    hpux11*)
10407      if test yes,no = "$GCC,$with_gnu_ld"; then
10408	case $host_cpu in
10409	hppa*64*)
10410	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10411	  ;;
10412	ia64*)
10413	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10414	  ;;
10415	*)
10416	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417	  ;;
10418	esac
10419      else
10420	case $host_cpu in
10421	hppa*64*)
10422	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10423	  ;;
10424	ia64*)
10425	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10426	  ;;
10427	*)
10428
10429	  # Older versions of the 11.00 compiler do not understand -b yet
10430	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10431	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10432printf %s "checking if $CC understands -b... " >&6; }
10433if test ${lt_cv_prog_compiler__b+y}
10434then :
10435  printf %s "(cached) " >&6
10436else $as_nop
10437  lt_cv_prog_compiler__b=no
10438   save_LDFLAGS=$LDFLAGS
10439   LDFLAGS="$LDFLAGS -b"
10440   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10441   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10442     # The linker can only warn and ignore the option if not recognized
10443     # So say no if there are warnings
10444     if test -s conftest.err; then
10445       # Append any errors to the config.log.
10446       cat conftest.err 1>&5
10447       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10448       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10449       if diff conftest.exp conftest.er2 >/dev/null; then
10450         lt_cv_prog_compiler__b=yes
10451       fi
10452     else
10453       lt_cv_prog_compiler__b=yes
10454     fi
10455   fi
10456   $RM -r conftest*
10457   LDFLAGS=$save_LDFLAGS
10458
10459fi
10460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10461printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10462
10463if test yes = "$lt_cv_prog_compiler__b"; then
10464    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10465else
10466    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10467fi
10468
10469	  ;;
10470	esac
10471      fi
10472      if test no = "$with_gnu_ld"; then
10473	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10474	hardcode_libdir_separator=:
10475
10476	case $host_cpu in
10477	hppa*64*|ia64*)
10478	  hardcode_direct=no
10479	  hardcode_shlibpath_var=no
10480	  ;;
10481	*)
10482	  hardcode_direct=yes
10483	  hardcode_direct_absolute=yes
10484	  export_dynamic_flag_spec='$wl-E'
10485
10486	  # hardcode_minus_L: Not really in the search PATH,
10487	  # but as the default location of the library.
10488	  hardcode_minus_L=yes
10489	  ;;
10490	esac
10491      fi
10492      ;;
10493
10494    irix5* | irix6* | nonstopux*)
10495      if test yes = "$GCC"; then
10496	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'
10497	# Try to use the -exported_symbol ld option, if it does not
10498	# work, assume that -exports_file does not work either and
10499	# implicitly export all symbols.
10500	# This should be the same for all languages, so no per-tag cache variable.
10501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10502printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10503if test ${lt_cv_irix_exported_symbol+y}
10504then :
10505  printf %s "(cached) " >&6
10506else $as_nop
10507  save_LDFLAGS=$LDFLAGS
10508	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10509	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h.  */
10511int foo (void) { return 0; }
10512_ACEOF
10513if ac_fn_c_try_link "$LINENO"
10514then :
10515  lt_cv_irix_exported_symbol=yes
10516else $as_nop
10517  lt_cv_irix_exported_symbol=no
10518fi
10519rm -f core conftest.err conftest.$ac_objext conftest.beam \
10520    conftest$ac_exeext conftest.$ac_ext
10521           LDFLAGS=$save_LDFLAGS
10522fi
10523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10524printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10525	if test yes = "$lt_cv_irix_exported_symbol"; then
10526          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'
10527	fi
10528      else
10529	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'
10530	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'
10531      fi
10532      archive_cmds_need_lc='no'
10533      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10534      hardcode_libdir_separator=:
10535      inherit_rpath=yes
10536      link_all_deplibs=yes
10537      ;;
10538
10539    linux*)
10540      case $cc_basename in
10541      tcc*)
10542	# Fabrice Bellard et al's Tiny C Compiler
10543	ld_shlibs=yes
10544	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10545	;;
10546      esac
10547      ;;
10548
10549    netbsd*)
10550      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10551	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10552      else
10553	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10554      fi
10555      hardcode_libdir_flag_spec='-R$libdir'
10556      hardcode_direct=yes
10557      hardcode_shlibpath_var=no
10558      ;;
10559
10560    newsos6)
10561      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562      hardcode_direct=yes
10563      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10564      hardcode_libdir_separator=:
10565      hardcode_shlibpath_var=no
10566      ;;
10567
10568    *nto* | *qnx*)
10569      ;;
10570
10571    openbsd* | bitrig*)
10572      if test -f /usr/libexec/ld.so; then
10573	hardcode_direct=yes
10574	hardcode_shlibpath_var=no
10575	hardcode_direct_absolute=yes
10576	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10577	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10578	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10579	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10580	  export_dynamic_flag_spec='$wl-E'
10581	else
10582	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10584	fi
10585      else
10586	ld_shlibs=no
10587      fi
10588      ;;
10589
10590    os2*)
10591      hardcode_libdir_flag_spec='-L$libdir'
10592      hardcode_minus_L=yes
10593      allow_undefined_flag=unsupported
10594      shrext_cmds=.dll
10595      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10596	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10597	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10598	$ECHO EXPORTS >> $output_objdir/$libname.def~
10599	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10600	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10601	emximp -o $lib $output_objdir/$libname.def'
10602      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10603	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10604	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10605	$ECHO EXPORTS >> $output_objdir/$libname.def~
10606	prefix_cmds="$SED"~
10607	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10608	  prefix_cmds="$prefix_cmds -e 1d";
10609	fi~
10610	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10611	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10612	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10613	emximp -o $lib $output_objdir/$libname.def'
10614      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10615      enable_shared_with_static_runtimes=yes
10616      file_list_spec='@'
10617      ;;
10618
10619    osf3*)
10620      if test yes = "$GCC"; then
10621	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10622	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'
10623      else
10624	allow_undefined_flag=' -expect_unresolved \*'
10625	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'
10626      fi
10627      archive_cmds_need_lc='no'
10628      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10629      hardcode_libdir_separator=:
10630      ;;
10631
10632    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10633      if test yes = "$GCC"; then
10634	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10635	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'
10636	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10637      else
10638	allow_undefined_flag=' -expect_unresolved \*'
10639	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'
10640	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~
10641          $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'
10642
10643	# Both c and cxx compiler support -rpath directly
10644	hardcode_libdir_flag_spec='-rpath $libdir'
10645      fi
10646      archive_cmds_need_lc='no'
10647      hardcode_libdir_separator=:
10648      ;;
10649
10650    solaris*)
10651      no_undefined_flag=' -z defs'
10652      if test yes = "$GCC"; then
10653	wlarc='$wl'
10654	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10655	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10656          $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'
10657      else
10658	case `$CC -V 2>&1` in
10659	*"Compilers 5.0"*)
10660	  wlarc=''
10661	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10663            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10664	  ;;
10665	*)
10666	  wlarc='$wl'
10667	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10668	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10669            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10670	  ;;
10671	esac
10672      fi
10673      hardcode_libdir_flag_spec='-R$libdir'
10674      hardcode_shlibpath_var=no
10675      case $host_os in
10676      solaris2.[0-5] | solaris2.[0-5].*) ;;
10677      *)
10678	# The compiler driver will combine and reorder linker options,
10679	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10680	# but is careful enough not to reorder.
10681	# Supported since Solaris 2.6 (maybe 2.5.1?)
10682	if test yes = "$GCC"; then
10683	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10684	else
10685	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10686	fi
10687	;;
10688      esac
10689      link_all_deplibs=yes
10690      ;;
10691
10692    sunos4*)
10693      if test sequent = "$host_vendor"; then
10694	# Use $CC to link under sequent, because it throws in some extra .o
10695	# files that make .init and .fini sections work.
10696	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10697      else
10698	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10699      fi
10700      hardcode_libdir_flag_spec='-L$libdir'
10701      hardcode_direct=yes
10702      hardcode_minus_L=yes
10703      hardcode_shlibpath_var=no
10704      ;;
10705
10706    sysv4)
10707      case $host_vendor in
10708	sni)
10709	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710	  hardcode_direct=yes # is this really true???
10711	;;
10712	siemens)
10713	  ## LD is ld it makes a PLAMLIB
10714	  ## CC just makes a GrossModule.
10715	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10716	  reload_cmds='$CC -r -o $output$reload_objs'
10717	  hardcode_direct=no
10718        ;;
10719	motorola)
10720	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10722	;;
10723      esac
10724      runpath_var='LD_RUN_PATH'
10725      hardcode_shlibpath_var=no
10726      ;;
10727
10728    sysv4.3*)
10729      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10730      hardcode_shlibpath_var=no
10731      export_dynamic_flag_spec='-Bexport'
10732      ;;
10733
10734    sysv4*MP*)
10735      if test -d /usr/nec; then
10736	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737	hardcode_shlibpath_var=no
10738	runpath_var=LD_RUN_PATH
10739	hardcode_runpath_var=yes
10740	ld_shlibs=yes
10741      fi
10742      ;;
10743
10744    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10745      no_undefined_flag='$wl-z,text'
10746      archive_cmds_need_lc=no
10747      hardcode_shlibpath_var=no
10748      runpath_var='LD_RUN_PATH'
10749
10750      if test yes = "$GCC"; then
10751	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10753      else
10754	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756      fi
10757      ;;
10758
10759    sysv5* | sco3.2v5* | sco5v6*)
10760      # Note: We CANNOT use -z defs as we might desire, because we do not
10761      # link with -lc, and that would cause any symbols used from libc to
10762      # always be unresolved, which means just about no library would
10763      # ever link correctly.  If we're not using GNU ld we use -z text
10764      # though, which does catch some bad symbols but isn't as heavy-handed
10765      # as -z defs.
10766      no_undefined_flag='$wl-z,text'
10767      allow_undefined_flag='$wl-z,nodefs'
10768      archive_cmds_need_lc=no
10769      hardcode_shlibpath_var=no
10770      hardcode_libdir_flag_spec='$wl-R,$libdir'
10771      hardcode_libdir_separator=':'
10772      link_all_deplibs=yes
10773      export_dynamic_flag_spec='$wl-Bexport'
10774      runpath_var='LD_RUN_PATH'
10775
10776      if test yes = "$GCC"; then
10777	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779      else
10780	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782      fi
10783      ;;
10784
10785    uts4*)
10786      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787      hardcode_libdir_flag_spec='-L$libdir'
10788      hardcode_shlibpath_var=no
10789      ;;
10790
10791    *)
10792      ld_shlibs=no
10793      ;;
10794    esac
10795
10796    if test sni = "$host_vendor"; then
10797      case $host in
10798      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10799	export_dynamic_flag_spec='$wl-Blargedynsym'
10800	;;
10801      esac
10802    fi
10803  fi
10804
10805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10806printf "%s\n" "$ld_shlibs" >&6; }
10807test no = "$ld_shlibs" && can_build_shared=no
10808
10809with_gnu_ld=$with_gnu_ld
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825#
10826# Do we need to explicitly link libc?
10827#
10828case "x$archive_cmds_need_lc" in
10829x|xyes)
10830  # Assume -lc should be added
10831  archive_cmds_need_lc=yes
10832
10833  if test yes,yes = "$GCC,$enable_shared"; then
10834    case $archive_cmds in
10835    *'~'*)
10836      # FIXME: we may have to deal with multi-command sequences.
10837      ;;
10838    '$CC '*)
10839      # Test whether the compiler implicitly links with -lc since on some
10840      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10841      # to ld, don't add -lc before -lgcc.
10842      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10843printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10844if test ${lt_cv_archive_cmds_need_lc+y}
10845then :
10846  printf %s "(cached) " >&6
10847else $as_nop
10848  $RM conftest*
10849	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10850
10851	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10852  (eval $ac_compile) 2>&5
10853  ac_status=$?
10854  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10855  test $ac_status = 0; } 2>conftest.err; then
10856	  soname=conftest
10857	  lib=conftest
10858	  libobjs=conftest.$ac_objext
10859	  deplibs=
10860	  wl=$lt_prog_compiler_wl
10861	  pic_flag=$lt_prog_compiler_pic
10862	  compiler_flags=-v
10863	  linker_flags=-v
10864	  verstring=
10865	  output_objdir=.
10866	  libname=conftest
10867	  lt_save_allow_undefined_flag=$allow_undefined_flag
10868	  allow_undefined_flag=
10869	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10870  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10871  ac_status=$?
10872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10873  test $ac_status = 0; }
10874	  then
10875	    lt_cv_archive_cmds_need_lc=no
10876	  else
10877	    lt_cv_archive_cmds_need_lc=yes
10878	  fi
10879	  allow_undefined_flag=$lt_save_allow_undefined_flag
10880	else
10881	  cat conftest.err 1>&5
10882	fi
10883	$RM conftest*
10884
10885fi
10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10887printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10888      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10889      ;;
10890    esac
10891  fi
10892  ;;
10893esac
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
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11047printf %s "checking dynamic linker characteristics... " >&6; }
11048
11049if test yes = "$GCC"; then
11050  case $host_os in
11051    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11052    *) lt_awk_arg='/^libraries:/' ;;
11053  esac
11054  case $host_os in
11055    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11056    *) lt_sed_strip_eq='s|=/|/|g' ;;
11057  esac
11058  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11059  case $lt_search_path_spec in
11060  *\;*)
11061    # if the path contains ";" then we assume it to be the separator
11062    # otherwise default to the standard path separator (i.e. ":") - it is
11063    # assumed that no part of a normal pathname contains ";" but that should
11064    # okay in the real world where ";" in dirpaths is itself problematic.
11065    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11066    ;;
11067  *)
11068    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11069    ;;
11070  esac
11071  # Ok, now we have the path, separated by spaces, we can step through it
11072  # and add multilib dir if necessary...
11073  lt_tmp_lt_search_path_spec=
11074  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11075  # ...but if some path component already ends with the multilib dir we assume
11076  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11077  case "$lt_multi_os_dir; $lt_search_path_spec " in
11078  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11079    lt_multi_os_dir=
11080    ;;
11081  esac
11082  for lt_sys_path in $lt_search_path_spec; do
11083    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11084      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11085    elif test -n "$lt_multi_os_dir"; then
11086      test -d "$lt_sys_path" && \
11087	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11088    fi
11089  done
11090  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11091BEGIN {RS = " "; FS = "/|\n";} {
11092  lt_foo = "";
11093  lt_count = 0;
11094  for (lt_i = NF; lt_i > 0; lt_i--) {
11095    if ($lt_i != "" && $lt_i != ".") {
11096      if ($lt_i == "..") {
11097        lt_count++;
11098      } else {
11099        if (lt_count == 0) {
11100          lt_foo = "/" $lt_i lt_foo;
11101        } else {
11102          lt_count--;
11103        }
11104      }
11105    }
11106  }
11107  if (lt_foo != "") { lt_freq[lt_foo]++; }
11108  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11109}'`
11110  # AWK program above erroneously prepends '/' to C:/dos/paths
11111  # for these hosts.
11112  case $host_os in
11113    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11114      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11115  esac
11116  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11117else
11118  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11119fi
11120library_names_spec=
11121libname_spec='lib$name'
11122soname_spec=
11123shrext_cmds=.so
11124postinstall_cmds=
11125postuninstall_cmds=
11126finish_cmds=
11127finish_eval=
11128shlibpath_var=
11129shlibpath_overrides_runpath=unknown
11130version_type=none
11131dynamic_linker="$host_os ld.so"
11132sys_lib_dlsearch_path_spec="/lib /usr/lib"
11133need_lib_prefix=unknown
11134hardcode_into_libs=no
11135
11136# when you set need_version to no, make sure it does not cause -set_version
11137# flags to be left without arguments
11138need_version=unknown
11139
11140
11141
11142case $host_os in
11143aix3*)
11144  version_type=linux # correct to gnu/linux during the next big refactor
11145  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11146  shlibpath_var=LIBPATH
11147
11148  # AIX 3 has no versioning support, so we append a major version to the name.
11149  soname_spec='$libname$release$shared_ext$major'
11150  ;;
11151
11152aix[4-9]*)
11153  version_type=linux # correct to gnu/linux during the next big refactor
11154  need_lib_prefix=no
11155  need_version=no
11156  hardcode_into_libs=yes
11157  if test ia64 = "$host_cpu"; then
11158    # AIX 5 supports IA64
11159    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11160    shlibpath_var=LD_LIBRARY_PATH
11161  else
11162    # With GCC up to 2.95.x, collect2 would create an import file
11163    # for dependence libraries.  The import file would start with
11164    # the line '#! .'.  This would cause the generated library to
11165    # depend on '.', always an invalid library.  This was fixed in
11166    # development snapshots of GCC prior to 3.0.
11167    case $host_os in
11168      aix4 | aix4.[01] | aix4.[01].*)
11169      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11170	   echo ' yes '
11171	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11172	:
11173      else
11174	can_build_shared=no
11175      fi
11176      ;;
11177    esac
11178    # Using Import Files as archive members, it is possible to support
11179    # filename-based versioning of shared library archives on AIX. While
11180    # this would work for both with and without runtime linking, it will
11181    # prevent static linking of such archives. So we do filename-based
11182    # shared library versioning with .so extension only, which is used
11183    # when both runtime linking and shared linking is enabled.
11184    # Unfortunately, runtime linking may impact performance, so we do
11185    # not want this to be the default eventually. Also, we use the
11186    # versioned .so libs for executables only if there is the -brtl
11187    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11188    # To allow for filename-based versioning support, we need to create
11189    # libNAME.so.V as an archive file, containing:
11190    # *) an Import File, referring to the versioned filename of the
11191    #    archive as well as the shared archive member, telling the
11192    #    bitwidth (32 or 64) of that shared object, and providing the
11193    #    list of exported symbols of that shared object, eventually
11194    #    decorated with the 'weak' keyword
11195    # *) the shared object with the F_LOADONLY flag set, to really avoid
11196    #    it being seen by the linker.
11197    # At run time we better use the real file rather than another symlink,
11198    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11199
11200    case $with_aix_soname,$aix_use_runtimelinking in
11201    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11202    # soname into executable. Probably we can add versioning support to
11203    # collect2, so additional links can be useful in future.
11204    aix,yes) # traditional libtool
11205      dynamic_linker='AIX unversionable lib.so'
11206      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11207      # instead of lib<name>.a to let people know that these are not
11208      # typical AIX shared libraries.
11209      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11210      ;;
11211    aix,no) # traditional AIX only
11212      dynamic_linker='AIX lib.a(lib.so.V)'
11213      # We preserve .a as extension for shared libraries through AIX4.2
11214      # and later when we are not doing run time linking.
11215      library_names_spec='$libname$release.a $libname.a'
11216      soname_spec='$libname$release$shared_ext$major'
11217      ;;
11218    svr4,*) # full svr4 only
11219      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11220      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11221      # We do not specify a path in Import Files, so LIBPATH fires.
11222      shlibpath_overrides_runpath=yes
11223      ;;
11224    *,yes) # both, prefer svr4
11225      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11226      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11227      # unpreferred sharedlib libNAME.a needs extra handling
11228      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"'
11229      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"'
11230      # We do not specify a path in Import Files, so LIBPATH fires.
11231      shlibpath_overrides_runpath=yes
11232      ;;
11233    *,no) # both, prefer aix
11234      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11235      library_names_spec='$libname$release.a $libname.a'
11236      soname_spec='$libname$release$shared_ext$major'
11237      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11238      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)'
11239      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"'
11240      ;;
11241    esac
11242    shlibpath_var=LIBPATH
11243  fi
11244  ;;
11245
11246amigaos*)
11247  case $host_cpu in
11248  powerpc)
11249    # Since July 2007 AmigaOS4 officially supports .so libraries.
11250    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11251    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252    ;;
11253  m68k)
11254    library_names_spec='$libname.ixlibrary $libname.a'
11255    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11256    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'
11257    ;;
11258  esac
11259  ;;
11260
11261beos*)
11262  library_names_spec='$libname$shared_ext'
11263  dynamic_linker="$host_os ld.so"
11264  shlibpath_var=LIBRARY_PATH
11265  ;;
11266
11267bsdi[45]*)
11268  version_type=linux # correct to gnu/linux during the next big refactor
11269  need_version=no
11270  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271  soname_spec='$libname$release$shared_ext$major'
11272  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11273  shlibpath_var=LD_LIBRARY_PATH
11274  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11275  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11276  # the default ld.so.conf also contains /usr/contrib/lib and
11277  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11278  # libtool to hard-code these into programs
11279  ;;
11280
11281cygwin* | mingw* | pw32* | cegcc*)
11282  version_type=windows
11283  shrext_cmds=.dll
11284  need_version=no
11285  need_lib_prefix=no
11286
11287  case $GCC,$cc_basename in
11288  yes,*)
11289    # gcc
11290    library_names_spec='$libname.dll.a'
11291    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11292    postinstall_cmds='base_file=`basename \$file`~
11293      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11294      dldir=$destdir/`dirname \$dlpath`~
11295      test -d \$dldir || mkdir -p \$dldir~
11296      $install_prog $dir/$dlname \$dldir/$dlname~
11297      chmod a+x \$dldir/$dlname~
11298      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11299        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11300      fi'
11301    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11302      dlpath=$dir/\$dldll~
11303       $RM \$dlpath'
11304    shlibpath_overrides_runpath=yes
11305
11306    case $host_os in
11307    cygwin*)
11308      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11309      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11310
11311      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11312      ;;
11313    mingw* | cegcc*)
11314      # MinGW DLLs use traditional 'lib' prefix
11315      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11316      ;;
11317    pw32*)
11318      # pw32 DLLs use 'pw' prefix rather than 'lib'
11319      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11320      ;;
11321    esac
11322    dynamic_linker='Win32 ld.exe'
11323    ;;
11324
11325  *,cl* | *,icl*)
11326    # Native MSVC or ICC
11327    libname_spec='$name'
11328    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11329    library_names_spec='$libname.dll.lib'
11330
11331    case $build_os in
11332    mingw*)
11333      sys_lib_search_path_spec=
11334      lt_save_ifs=$IFS
11335      IFS=';'
11336      for lt_path in $LIB
11337      do
11338        IFS=$lt_save_ifs
11339        # Let DOS variable expansion print the short 8.3 style file name.
11340        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11341        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11342      done
11343      IFS=$lt_save_ifs
11344      # Convert to MSYS style.
11345      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11346      ;;
11347    cygwin*)
11348      # Convert to unix form, then to dos form, then back to unix form
11349      # but this time dos style (no spaces!) so that the unix form looks
11350      # like /cygdrive/c/PROGRA~1:/cygdr...
11351      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11352      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11353      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11354      ;;
11355    *)
11356      sys_lib_search_path_spec=$LIB
11357      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11358        # It is most probably a Windows format PATH.
11359        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11360      else
11361        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11362      fi
11363      # FIXME: find the short name or the path components, as spaces are
11364      # common. (e.g. "Program Files" -> "PROGRA~1")
11365      ;;
11366    esac
11367
11368    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11369    postinstall_cmds='base_file=`basename \$file`~
11370      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11371      dldir=$destdir/`dirname \$dlpath`~
11372      test -d \$dldir || mkdir -p \$dldir~
11373      $install_prog $dir/$dlname \$dldir/$dlname'
11374    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11375      dlpath=$dir/\$dldll~
11376       $RM \$dlpath'
11377    shlibpath_overrides_runpath=yes
11378    dynamic_linker='Win32 link.exe'
11379    ;;
11380
11381  *)
11382    # Assume MSVC and ICC wrapper
11383    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11384    dynamic_linker='Win32 ld.exe'
11385    ;;
11386  esac
11387  # FIXME: first we should search . and the directory the executable is in
11388  shlibpath_var=PATH
11389  ;;
11390
11391darwin* | rhapsody*)
11392  dynamic_linker="$host_os dyld"
11393  version_type=darwin
11394  need_lib_prefix=no
11395  need_version=no
11396  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11397  soname_spec='$libname$release$major$shared_ext'
11398  shlibpath_overrides_runpath=yes
11399  shlibpath_var=DYLD_LIBRARY_PATH
11400  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11401
11402  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11403  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11404  ;;
11405
11406dgux*)
11407  version_type=linux # correct to gnu/linux during the next big refactor
11408  need_lib_prefix=no
11409  need_version=no
11410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411  soname_spec='$libname$release$shared_ext$major'
11412  shlibpath_var=LD_LIBRARY_PATH
11413  ;;
11414
11415freebsd* | dragonfly* | midnightbsd*)
11416  # DragonFly does not have aout.  When/if they implement a new
11417  # versioning mechanism, adjust this.
11418  if test -x /usr/bin/objformat; then
11419    objformat=`/usr/bin/objformat`
11420  else
11421    case $host_os in
11422    freebsd[23].*) objformat=aout ;;
11423    *) objformat=elf ;;
11424    esac
11425  fi
11426  # Handle Gentoo/FreeBSD as it was Linux
11427  case $host_vendor in
11428    gentoo)
11429      version_type=linux ;;
11430    *)
11431      version_type=freebsd-$objformat ;;
11432  esac
11433
11434  case $version_type in
11435    freebsd-elf*)
11436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437      soname_spec='$libname$release$shared_ext$major'
11438      need_version=no
11439      need_lib_prefix=no
11440      ;;
11441    freebsd-*)
11442      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11443      need_version=yes
11444      ;;
11445    linux)
11446      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11447      soname_spec='${libname}${release}${shared_ext}$major'
11448      need_lib_prefix=no
11449      need_version=no
11450      ;;
11451  esac
11452  shlibpath_var=LD_LIBRARY_PATH
11453  case $host_os in
11454  freebsd2.*)
11455    shlibpath_overrides_runpath=yes
11456    ;;
11457  freebsd3.[01]* | freebsdelf3.[01]*)
11458    shlibpath_overrides_runpath=yes
11459    hardcode_into_libs=yes
11460    ;;
11461  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11462  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11463    shlibpath_overrides_runpath=no
11464    hardcode_into_libs=yes
11465    ;;
11466  *) # from 4.6 on, and DragonFly
11467    shlibpath_overrides_runpath=yes
11468    hardcode_into_libs=yes
11469    ;;
11470  esac
11471  ;;
11472
11473haiku*)
11474  version_type=linux # correct to gnu/linux during the next big refactor
11475  need_lib_prefix=no
11476  need_version=no
11477  dynamic_linker="$host_os runtime_loader"
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  shlibpath_var=LIBRARY_PATH
11481  shlibpath_overrides_runpath=no
11482  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11483  hardcode_into_libs=yes
11484  ;;
11485
11486hpux9* | hpux10* | hpux11*)
11487  # Give a soname corresponding to the major version so that dld.sl refuses to
11488  # link against other versions.
11489  version_type=sunos
11490  need_lib_prefix=no
11491  need_version=no
11492  case $host_cpu in
11493  ia64*)
11494    shrext_cmds='.so'
11495    hardcode_into_libs=yes
11496    dynamic_linker="$host_os dld.so"
11497    shlibpath_var=LD_LIBRARY_PATH
11498    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500    soname_spec='$libname$release$shared_ext$major'
11501    if test 32 = "$HPUX_IA64_MODE"; then
11502      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11504    else
11505      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11506      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11507    fi
11508    ;;
11509  hppa*64*)
11510    shrext_cmds='.sl'
11511    hardcode_into_libs=yes
11512    dynamic_linker="$host_os dld.sl"
11513    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11514    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516    soname_spec='$libname$release$shared_ext$major'
11517    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11518    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519    ;;
11520  *)
11521    shrext_cmds='.sl'
11522    dynamic_linker="$host_os dld.sl"
11523    shlibpath_var=SHLIB_PATH
11524    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11525    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526    soname_spec='$libname$release$shared_ext$major'
11527    ;;
11528  esac
11529  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11530  postinstall_cmds='chmod 555 $lib'
11531  # or fails outright, so override atomically:
11532  install_override_mode=555
11533  ;;
11534
11535interix[3-9]*)
11536  version_type=linux # correct to gnu/linux during the next big refactor
11537  need_lib_prefix=no
11538  need_version=no
11539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540  soname_spec='$libname$release$shared_ext$major'
11541  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  shlibpath_overrides_runpath=no
11544  hardcode_into_libs=yes
11545  ;;
11546
11547irix5* | irix6* | nonstopux*)
11548  case $host_os in
11549    nonstopux*) version_type=nonstopux ;;
11550    *)
11551	if test yes = "$lt_cv_prog_gnu_ld"; then
11552		version_type=linux # correct to gnu/linux during the next big refactor
11553	else
11554		version_type=irix
11555	fi ;;
11556  esac
11557  need_lib_prefix=no
11558  need_version=no
11559  soname_spec='$libname$release$shared_ext$major'
11560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11561  case $host_os in
11562  irix5* | nonstopux*)
11563    libsuff= shlibsuff=
11564    ;;
11565  *)
11566    case $LD in # libtool.m4 will add one of these switches to LD
11567    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11568      libsuff= shlibsuff= libmagic=32-bit;;
11569    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11570      libsuff=32 shlibsuff=N32 libmagic=N32;;
11571    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11572      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11573    *) libsuff= shlibsuff= libmagic=never-match;;
11574    esac
11575    ;;
11576  esac
11577  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11578  shlibpath_overrides_runpath=no
11579  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11580  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11581  hardcode_into_libs=yes
11582  ;;
11583
11584# No shared lib support for Linux oldld, aout, or coff.
11585linux*oldld* | linux*aout* | linux*coff*)
11586  dynamic_linker=no
11587  ;;
11588
11589linux*android*)
11590  version_type=none # Android doesn't support versioned libraries.
11591  need_lib_prefix=no
11592  need_version=no
11593  library_names_spec='$libname$release$shared_ext'
11594  soname_spec='$libname$release$shared_ext'
11595  finish_cmds=
11596  shlibpath_var=LD_LIBRARY_PATH
11597  shlibpath_overrides_runpath=yes
11598
11599  # This implies no fast_install, which is unacceptable.
11600  # Some rework will be needed to allow for fast_install
11601  # before this can be enabled.
11602  hardcode_into_libs=yes
11603
11604  dynamic_linker='Android linker'
11605  # Don't embed -rpath directories since the linker doesn't support them.
11606  hardcode_libdir_flag_spec='-L$libdir'
11607  ;;
11608
11609# This must be glibc/ELF.
11610linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11611  version_type=linux # correct to gnu/linux during the next big refactor
11612  need_lib_prefix=no
11613  need_version=no
11614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615  soname_spec='$libname$release$shared_ext$major'
11616  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11617  shlibpath_var=LD_LIBRARY_PATH
11618  shlibpath_overrides_runpath=no
11619
11620  # Some binutils ld are patched to set DT_RUNPATH
11621  if test ${lt_cv_shlibpath_overrides_runpath+y}
11622then :
11623  printf %s "(cached) " >&6
11624else $as_nop
11625  lt_cv_shlibpath_overrides_runpath=no
11626    save_LDFLAGS=$LDFLAGS
11627    save_libdir=$libdir
11628    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11629	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11630    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632
11633int
11634main (void)
11635{
11636
11637  ;
11638  return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"
11642then :
11643  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11644then :
11645  lt_cv_shlibpath_overrides_runpath=yes
11646fi
11647fi
11648rm -f core conftest.err conftest.$ac_objext conftest.beam \
11649    conftest$ac_exeext conftest.$ac_ext
11650    LDFLAGS=$save_LDFLAGS
11651    libdir=$save_libdir
11652
11653fi
11654
11655  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11656
11657  # This implies no fast_install, which is unacceptable.
11658  # Some rework will be needed to allow for fast_install
11659  # before this can be enabled.
11660  hardcode_into_libs=yes
11661
11662  # Ideally, we could use ldconfig to report *all* directores which are
11663  # searched for libraries, however this is still not possible.  Aside from not
11664  # being certain /sbin/ldconfig is available, command
11665  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11666  # even though it is searched at run-time.  Try to do the best guess by
11667  # appending ld.so.conf contents (and includes) to the search path.
11668  if test -f /etc/ld.so.conf; then
11669    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' ' '`
11670    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11671  fi
11672
11673  # We used to test for /lib/ld.so.1 and disable shared libraries on
11674  # powerpc, because MkLinux only supported shared libraries with the
11675  # GNU dynamic linker.  Since this was broken with cross compilers,
11676  # most powerpc-linux boxes support dynamic linking these days and
11677  # people can always --disable-shared, the test was removed, and we
11678  # assume the GNU/Linux dynamic linker is in use.
11679  dynamic_linker='GNU/Linux ld.so'
11680  ;;
11681
11682netbsd*)
11683  version_type=sunos
11684  need_lib_prefix=no
11685  need_version=no
11686  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11687    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11688    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689    dynamic_linker='NetBSD (a.out) ld.so'
11690  else
11691    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692    soname_spec='$libname$release$shared_ext$major'
11693    dynamic_linker='NetBSD ld.elf_so'
11694  fi
11695  shlibpath_var=LD_LIBRARY_PATH
11696  shlibpath_overrides_runpath=yes
11697  hardcode_into_libs=yes
11698  ;;
11699
11700newsos6)
11701  version_type=linux # correct to gnu/linux during the next big refactor
11702  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703  shlibpath_var=LD_LIBRARY_PATH
11704  shlibpath_overrides_runpath=yes
11705  ;;
11706
11707*nto* | *qnx*)
11708  version_type=qnx
11709  need_lib_prefix=no
11710  need_version=no
11711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11712  soname_spec='$libname$release$shared_ext$major'
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=no
11715  hardcode_into_libs=yes
11716  dynamic_linker='ldqnx.so'
11717  ;;
11718
11719openbsd* | bitrig*)
11720  version_type=sunos
11721  sys_lib_dlsearch_path_spec=/usr/lib
11722  need_lib_prefix=no
11723  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11724    need_version=no
11725  else
11726    need_version=yes
11727  fi
11728  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11730  shlibpath_var=LD_LIBRARY_PATH
11731  shlibpath_overrides_runpath=yes
11732  ;;
11733
11734os2*)
11735  libname_spec='$name'
11736  version_type=windows
11737  shrext_cmds=.dll
11738  need_version=no
11739  need_lib_prefix=no
11740  # OS/2 can only load a DLL with a base name of 8 characters or less.
11741  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11742    v=$($ECHO $release$versuffix | tr -d .-);
11743    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11744    $ECHO $n$v`$shared_ext'
11745  library_names_spec='${libname}_dll.$libext'
11746  dynamic_linker='OS/2 ld.exe'
11747  shlibpath_var=BEGINLIBPATH
11748  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11749  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750  postinstall_cmds='base_file=`basename \$file`~
11751    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11752    dldir=$destdir/`dirname \$dlpath`~
11753    test -d \$dldir || mkdir -p \$dldir~
11754    $install_prog $dir/$dlname \$dldir/$dlname~
11755    chmod a+x \$dldir/$dlname~
11756    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11757      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11758    fi'
11759  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11760    dlpath=$dir/\$dldll~
11761    $RM \$dlpath'
11762  ;;
11763
11764osf3* | osf4* | osf5*)
11765  version_type=osf
11766  need_lib_prefix=no
11767  need_version=no
11768  soname_spec='$libname$release$shared_ext$major'
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770  shlibpath_var=LD_LIBRARY_PATH
11771  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11772  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11773  ;;
11774
11775rdos*)
11776  dynamic_linker=no
11777  ;;
11778
11779solaris*)
11780  version_type=linux # correct to gnu/linux during the next big refactor
11781  need_lib_prefix=no
11782  need_version=no
11783  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784  soname_spec='$libname$release$shared_ext$major'
11785  shlibpath_var=LD_LIBRARY_PATH
11786  shlibpath_overrides_runpath=yes
11787  hardcode_into_libs=yes
11788  # ldd complains unless libraries are executable
11789  postinstall_cmds='chmod +x $lib'
11790  ;;
11791
11792sunos4*)
11793  version_type=sunos
11794  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11795  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11796  shlibpath_var=LD_LIBRARY_PATH
11797  shlibpath_overrides_runpath=yes
11798  if test yes = "$with_gnu_ld"; then
11799    need_lib_prefix=no
11800  fi
11801  need_version=yes
11802  ;;
11803
11804sysv4 | sysv4.3*)
11805  version_type=linux # correct to gnu/linux during the next big refactor
11806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807  soname_spec='$libname$release$shared_ext$major'
11808  shlibpath_var=LD_LIBRARY_PATH
11809  case $host_vendor in
11810    sni)
11811      shlibpath_overrides_runpath=no
11812      need_lib_prefix=no
11813      runpath_var=LD_RUN_PATH
11814      ;;
11815    siemens)
11816      need_lib_prefix=no
11817      ;;
11818    motorola)
11819      need_lib_prefix=no
11820      need_version=no
11821      shlibpath_overrides_runpath=no
11822      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11823      ;;
11824  esac
11825  ;;
11826
11827sysv4*MP*)
11828  if test -d /usr/nec; then
11829    version_type=linux # correct to gnu/linux during the next big refactor
11830    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11831    soname_spec='$libname$shared_ext.$major'
11832    shlibpath_var=LD_LIBRARY_PATH
11833  fi
11834  ;;
11835
11836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11837  version_type=sco
11838  need_lib_prefix=no
11839  need_version=no
11840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11841  soname_spec='$libname$release$shared_ext$major'
11842  shlibpath_var=LD_LIBRARY_PATH
11843  shlibpath_overrides_runpath=yes
11844  hardcode_into_libs=yes
11845  if test yes = "$with_gnu_ld"; then
11846    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11847  else
11848    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11849    case $host_os in
11850      sco3.2v5*)
11851        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11852	;;
11853    esac
11854  fi
11855  sys_lib_dlsearch_path_spec='/usr/lib'
11856  ;;
11857
11858tpf*)
11859  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11860  version_type=linux # correct to gnu/linux during the next big refactor
11861  need_lib_prefix=no
11862  need_version=no
11863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864  shlibpath_var=LD_LIBRARY_PATH
11865  shlibpath_overrides_runpath=no
11866  hardcode_into_libs=yes
11867  ;;
11868
11869uts4*)
11870  version_type=linux # correct to gnu/linux during the next big refactor
11871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872  soname_spec='$libname$release$shared_ext$major'
11873  shlibpath_var=LD_LIBRARY_PATH
11874  ;;
11875
11876*)
11877  dynamic_linker=no
11878  ;;
11879esac
11880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11881printf "%s\n" "$dynamic_linker" >&6; }
11882test no = "$dynamic_linker" && can_build_shared=no
11883
11884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11885if test yes = "$GCC"; then
11886  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11887fi
11888
11889if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11890  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11891fi
11892
11893if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11894  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11895fi
11896
11897# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11898configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11899
11900# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11901func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11902
11903# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11904configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12003printf %s "checking how to hardcode library paths into programs... " >&6; }
12004hardcode_action=
12005if test -n "$hardcode_libdir_flag_spec" ||
12006   test -n "$runpath_var" ||
12007   test yes = "$hardcode_automatic"; then
12008
12009  # We can hardcode non-existent directories.
12010  if test no != "$hardcode_direct" &&
12011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12012     # have to relink, otherwise we might link with an installed library
12013     # when we should be linking with a yet-to-be-installed one
12014     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12015     test no != "$hardcode_minus_L"; then
12016    # Linking always hardcodes the temporary library directory.
12017    hardcode_action=relink
12018  else
12019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12020    hardcode_action=immediate
12021  fi
12022else
12023  # We cannot hardcode anything, or else we can only hardcode existing
12024  # directories.
12025  hardcode_action=unsupported
12026fi
12027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12028printf "%s\n" "$hardcode_action" >&6; }
12029
12030if test relink = "$hardcode_action" ||
12031   test yes = "$inherit_rpath"; then
12032  # Fast installation is not supported
12033  enable_fast_install=no
12034elif test yes = "$shlibpath_overrides_runpath" ||
12035     test no = "$enable_shared"; then
12036  # Fast installation is not necessary
12037  enable_fast_install=needless
12038fi
12039
12040
12041
12042
12043
12044
12045  if test yes != "$enable_dlopen"; then
12046  enable_dlopen=unknown
12047  enable_dlopen_self=unknown
12048  enable_dlopen_self_static=unknown
12049else
12050  lt_cv_dlopen=no
12051  lt_cv_dlopen_libs=
12052
12053  case $host_os in
12054  beos*)
12055    lt_cv_dlopen=load_add_on
12056    lt_cv_dlopen_libs=
12057    lt_cv_dlopen_self=yes
12058    ;;
12059
12060  mingw* | pw32* | cegcc*)
12061    lt_cv_dlopen=LoadLibrary
12062    lt_cv_dlopen_libs=
12063    ;;
12064
12065  cygwin*)
12066    lt_cv_dlopen=dlopen
12067    lt_cv_dlopen_libs=
12068    ;;
12069
12070  darwin*)
12071    # if libdl is installed we need to link against it
12072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12073printf %s "checking for dlopen in -ldl... " >&6; }
12074if test ${ac_cv_lib_dl_dlopen+y}
12075then :
12076  printf %s "(cached) " >&6
12077else $as_nop
12078  ac_check_lib_save_LIBS=$LIBS
12079LIBS="-ldl  $LIBS"
12080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083/* Override any GCC internal prototype to avoid an error.
12084   Use char because int might match the return type of a GCC
12085   builtin and then its argument prototype would still apply.
12086   The 'extern "C"' is for builds by C++ compilers;
12087   although this is not generally supported in C code supporting it here
12088   has little cost and some practical benefit (sr 110532).  */
12089#ifdef __cplusplus
12090extern "C"
12091#endif
12092char dlopen (void);
12093int
12094main (void)
12095{
12096return dlopen ();
12097  ;
12098  return 0;
12099}
12100_ACEOF
12101if ac_fn_c_try_link "$LINENO"
12102then :
12103  ac_cv_lib_dl_dlopen=yes
12104else $as_nop
12105  ac_cv_lib_dl_dlopen=no
12106fi
12107rm -f core conftest.err conftest.$ac_objext conftest.beam \
12108    conftest$ac_exeext conftest.$ac_ext
12109LIBS=$ac_check_lib_save_LIBS
12110fi
12111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12112printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12113if test "x$ac_cv_lib_dl_dlopen" = xyes
12114then :
12115  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12116else $as_nop
12117
12118    lt_cv_dlopen=dyld
12119    lt_cv_dlopen_libs=
12120    lt_cv_dlopen_self=yes
12121
12122fi
12123
12124    ;;
12125
12126  tpf*)
12127    # Don't try to run any link tests for TPF.  We know it's impossible
12128    # because TPF is a cross-compiler, and we know how we open DSOs.
12129    lt_cv_dlopen=dlopen
12130    lt_cv_dlopen_libs=
12131    lt_cv_dlopen_self=no
12132    ;;
12133
12134  *)
12135    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12136if test "x$ac_cv_func_shl_load" = xyes
12137then :
12138  lt_cv_dlopen=shl_load
12139else $as_nop
12140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12141printf %s "checking for shl_load in -ldld... " >&6; }
12142if test ${ac_cv_lib_dld_shl_load+y}
12143then :
12144  printf %s "(cached) " >&6
12145else $as_nop
12146  ac_check_lib_save_LIBS=$LIBS
12147LIBS="-ldld  $LIBS"
12148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149/* end confdefs.h.  */
12150
12151/* Override any GCC internal prototype to avoid an error.
12152   Use char because int might match the return type of a GCC
12153   builtin and then its argument prototype would still apply.
12154   The 'extern "C"' is for builds by C++ compilers;
12155   although this is not generally supported in C code supporting it here
12156   has little cost and some practical benefit (sr 110532).  */
12157#ifdef __cplusplus
12158extern "C"
12159#endif
12160char shl_load (void);
12161int
12162main (void)
12163{
12164return shl_load ();
12165  ;
12166  return 0;
12167}
12168_ACEOF
12169if ac_fn_c_try_link "$LINENO"
12170then :
12171  ac_cv_lib_dld_shl_load=yes
12172else $as_nop
12173  ac_cv_lib_dld_shl_load=no
12174fi
12175rm -f core conftest.err conftest.$ac_objext conftest.beam \
12176    conftest$ac_exeext conftest.$ac_ext
12177LIBS=$ac_check_lib_save_LIBS
12178fi
12179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12180printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12181if test "x$ac_cv_lib_dld_shl_load" = xyes
12182then :
12183  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12184else $as_nop
12185  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12186if test "x$ac_cv_func_dlopen" = xyes
12187then :
12188  lt_cv_dlopen=dlopen
12189else $as_nop
12190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12191printf %s "checking for dlopen in -ldl... " >&6; }
12192if test ${ac_cv_lib_dl_dlopen+y}
12193then :
12194  printf %s "(cached) " >&6
12195else $as_nop
12196  ac_check_lib_save_LIBS=$LIBS
12197LIBS="-ldl  $LIBS"
12198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199/* end confdefs.h.  */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202   Use char because int might match the return type of a GCC
12203   builtin and then its argument prototype would still apply.
12204   The 'extern "C"' is for builds by C++ compilers;
12205   although this is not generally supported in C code supporting it here
12206   has little cost and some practical benefit (sr 110532).  */
12207#ifdef __cplusplus
12208extern "C"
12209#endif
12210char dlopen (void);
12211int
12212main (void)
12213{
12214return dlopen ();
12215  ;
12216  return 0;
12217}
12218_ACEOF
12219if ac_fn_c_try_link "$LINENO"
12220then :
12221  ac_cv_lib_dl_dlopen=yes
12222else $as_nop
12223  ac_cv_lib_dl_dlopen=no
12224fi
12225rm -f core conftest.err conftest.$ac_objext conftest.beam \
12226    conftest$ac_exeext conftest.$ac_ext
12227LIBS=$ac_check_lib_save_LIBS
12228fi
12229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12230printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12231if test "x$ac_cv_lib_dl_dlopen" = xyes
12232then :
12233  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12234else $as_nop
12235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12236printf %s "checking for dlopen in -lsvld... " >&6; }
12237if test ${ac_cv_lib_svld_dlopen+y}
12238then :
12239  printf %s "(cached) " >&6
12240else $as_nop
12241  ac_check_lib_save_LIBS=$LIBS
12242LIBS="-lsvld  $LIBS"
12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h.  */
12245
12246/* Override any GCC internal prototype to avoid an error.
12247   Use char because int might match the return type of a GCC
12248   builtin and then its argument prototype would still apply.
12249   The 'extern "C"' is for builds by C++ compilers;
12250   although this is not generally supported in C code supporting it here
12251   has little cost and some practical benefit (sr 110532).  */
12252#ifdef __cplusplus
12253extern "C"
12254#endif
12255char dlopen (void);
12256int
12257main (void)
12258{
12259return dlopen ();
12260  ;
12261  return 0;
12262}
12263_ACEOF
12264if ac_fn_c_try_link "$LINENO"
12265then :
12266  ac_cv_lib_svld_dlopen=yes
12267else $as_nop
12268  ac_cv_lib_svld_dlopen=no
12269fi
12270rm -f core conftest.err conftest.$ac_objext conftest.beam \
12271    conftest$ac_exeext conftest.$ac_ext
12272LIBS=$ac_check_lib_save_LIBS
12273fi
12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12275printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12276if test "x$ac_cv_lib_svld_dlopen" = xyes
12277then :
12278  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12279else $as_nop
12280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12281printf %s "checking for dld_link in -ldld... " >&6; }
12282if test ${ac_cv_lib_dld_dld_link+y}
12283then :
12284  printf %s "(cached) " >&6
12285else $as_nop
12286  ac_check_lib_save_LIBS=$LIBS
12287LIBS="-ldld  $LIBS"
12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292   Use char because int might match the return type of a GCC
12293   builtin and then its argument prototype would still apply.
12294   The 'extern "C"' is for builds by C++ compilers;
12295   although this is not generally supported in C code supporting it here
12296   has little cost and some practical benefit (sr 110532).  */
12297#ifdef __cplusplus
12298extern "C"
12299#endif
12300char dld_link (void);
12301int
12302main (void)
12303{
12304return dld_link ();
12305  ;
12306  return 0;
12307}
12308_ACEOF
12309if ac_fn_c_try_link "$LINENO"
12310then :
12311  ac_cv_lib_dld_dld_link=yes
12312else $as_nop
12313  ac_cv_lib_dld_dld_link=no
12314fi
12315rm -f core conftest.err conftest.$ac_objext conftest.beam \
12316    conftest$ac_exeext conftest.$ac_ext
12317LIBS=$ac_check_lib_save_LIBS
12318fi
12319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12321if test "x$ac_cv_lib_dld_dld_link" = xyes
12322then :
12323  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12324fi
12325
12326
12327fi
12328
12329
12330fi
12331
12332
12333fi
12334
12335
12336fi
12337
12338
12339fi
12340
12341    ;;
12342  esac
12343
12344  if test no = "$lt_cv_dlopen"; then
12345    enable_dlopen=no
12346  else
12347    enable_dlopen=yes
12348  fi
12349
12350  case $lt_cv_dlopen in
12351  dlopen)
12352    save_CPPFLAGS=$CPPFLAGS
12353    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12354
12355    save_LDFLAGS=$LDFLAGS
12356    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12357
12358    save_LIBS=$LIBS
12359    LIBS="$lt_cv_dlopen_libs $LIBS"
12360
12361    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12362printf %s "checking whether a program can dlopen itself... " >&6; }
12363if test ${lt_cv_dlopen_self+y}
12364then :
12365  printf %s "(cached) " >&6
12366else $as_nop
12367  	  if test yes = "$cross_compiling"; then :
12368  lt_cv_dlopen_self=cross
12369else
12370  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12371  lt_status=$lt_dlunknown
12372  cat > conftest.$ac_ext <<_LT_EOF
12373#line $LINENO "configure"
12374#include "confdefs.h"
12375
12376#if HAVE_DLFCN_H
12377#include <dlfcn.h>
12378#endif
12379
12380#include <stdio.h>
12381
12382#ifdef RTLD_GLOBAL
12383#  define LT_DLGLOBAL		RTLD_GLOBAL
12384#else
12385#  ifdef DL_GLOBAL
12386#    define LT_DLGLOBAL		DL_GLOBAL
12387#  else
12388#    define LT_DLGLOBAL		0
12389#  endif
12390#endif
12391
12392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12393   find out it does not work in some platform. */
12394#ifndef LT_DLLAZY_OR_NOW
12395#  ifdef RTLD_LAZY
12396#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12397#  else
12398#    ifdef DL_LAZY
12399#      define LT_DLLAZY_OR_NOW		DL_LAZY
12400#    else
12401#      ifdef RTLD_NOW
12402#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12403#      else
12404#        ifdef DL_NOW
12405#          define LT_DLLAZY_OR_NOW	DL_NOW
12406#        else
12407#          define LT_DLLAZY_OR_NOW	0
12408#        endif
12409#      endif
12410#    endif
12411#  endif
12412#endif
12413
12414/* When -fvisibility=hidden is used, assume the code has been annotated
12415   correspondingly for the symbols needed.  */
12416#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12417int fnord () __attribute__((visibility("default")));
12418#endif
12419
12420int fnord () { return 42; }
12421int main ()
12422{
12423  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12424  int status = $lt_dlunknown;
12425
12426  if (self)
12427    {
12428      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12429      else
12430        {
12431	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12432          else puts (dlerror ());
12433	}
12434      /* dlclose (self); */
12435    }
12436  else
12437    puts (dlerror ());
12438
12439  return status;
12440}
12441_LT_EOF
12442  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12443  (eval $ac_link) 2>&5
12444  ac_status=$?
12445  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12447    (./conftest; exit; ) >&5 2>/dev/null
12448    lt_status=$?
12449    case x$lt_status in
12450      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12451      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12452      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12453    esac
12454  else :
12455    # compilation failed
12456    lt_cv_dlopen_self=no
12457  fi
12458fi
12459rm -fr conftest*
12460
12461
12462fi
12463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12464printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12465
12466    if test yes = "$lt_cv_dlopen_self"; then
12467      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12468      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12469printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12470if test ${lt_cv_dlopen_self_static+y}
12471then :
12472  printf %s "(cached) " >&6
12473else $as_nop
12474  	  if test yes = "$cross_compiling"; then :
12475  lt_cv_dlopen_self_static=cross
12476else
12477  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12478  lt_status=$lt_dlunknown
12479  cat > conftest.$ac_ext <<_LT_EOF
12480#line $LINENO "configure"
12481#include "confdefs.h"
12482
12483#if HAVE_DLFCN_H
12484#include <dlfcn.h>
12485#endif
12486
12487#include <stdio.h>
12488
12489#ifdef RTLD_GLOBAL
12490#  define LT_DLGLOBAL		RTLD_GLOBAL
12491#else
12492#  ifdef DL_GLOBAL
12493#    define LT_DLGLOBAL		DL_GLOBAL
12494#  else
12495#    define LT_DLGLOBAL		0
12496#  endif
12497#endif
12498
12499/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12500   find out it does not work in some platform. */
12501#ifndef LT_DLLAZY_OR_NOW
12502#  ifdef RTLD_LAZY
12503#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12504#  else
12505#    ifdef DL_LAZY
12506#      define LT_DLLAZY_OR_NOW		DL_LAZY
12507#    else
12508#      ifdef RTLD_NOW
12509#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12510#      else
12511#        ifdef DL_NOW
12512#          define LT_DLLAZY_OR_NOW	DL_NOW
12513#        else
12514#          define LT_DLLAZY_OR_NOW	0
12515#        endif
12516#      endif
12517#    endif
12518#  endif
12519#endif
12520
12521/* When -fvisibility=hidden is used, assume the code has been annotated
12522   correspondingly for the symbols needed.  */
12523#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12524int fnord () __attribute__((visibility("default")));
12525#endif
12526
12527int fnord () { return 42; }
12528int main ()
12529{
12530  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12531  int status = $lt_dlunknown;
12532
12533  if (self)
12534    {
12535      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12536      else
12537        {
12538	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12539          else puts (dlerror ());
12540	}
12541      /* dlclose (self); */
12542    }
12543  else
12544    puts (dlerror ());
12545
12546  return status;
12547}
12548_LT_EOF
12549  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12550  (eval $ac_link) 2>&5
12551  ac_status=$?
12552  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12554    (./conftest; exit; ) >&5 2>/dev/null
12555    lt_status=$?
12556    case x$lt_status in
12557      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12558      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12559      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12560    esac
12561  else :
12562    # compilation failed
12563    lt_cv_dlopen_self_static=no
12564  fi
12565fi
12566rm -fr conftest*
12567
12568
12569fi
12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12571printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12572    fi
12573
12574    CPPFLAGS=$save_CPPFLAGS
12575    LDFLAGS=$save_LDFLAGS
12576    LIBS=$save_LIBS
12577    ;;
12578  esac
12579
12580  case $lt_cv_dlopen_self in
12581  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12582  *) enable_dlopen_self=unknown ;;
12583  esac
12584
12585  case $lt_cv_dlopen_self_static in
12586  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12587  *) enable_dlopen_self_static=unknown ;;
12588  esac
12589fi
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607striplib=
12608old_striplib=
12609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12610printf %s "checking whether stripping libraries is possible... " >&6; }
12611if test -z "$STRIP"; then
12612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613printf "%s\n" "no" >&6; }
12614else
12615  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12616    old_striplib="$STRIP --strip-debug"
12617    striplib="$STRIP --strip-unneeded"
12618    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619printf "%s\n" "yes" >&6; }
12620  else
12621    case $host_os in
12622    darwin*)
12623      # FIXME - insert some real tests, host_os isn't really good enough
12624      striplib="$STRIP -x"
12625      old_striplib="$STRIP -S"
12626      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627printf "%s\n" "yes" >&6; }
12628      ;;
12629    freebsd*)
12630      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12631        old_striplib="$STRIP --strip-debug"
12632        striplib="$STRIP --strip-unneeded"
12633        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634printf "%s\n" "yes" >&6; }
12635      else
12636        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637printf "%s\n" "no" >&6; }
12638      fi
12639      ;;
12640    *)
12641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642printf "%s\n" "no" >&6; }
12643      ;;
12644    esac
12645  fi
12646fi
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659  # Report what library types will actually be built
12660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12661printf %s "checking if libtool supports shared libraries... " >&6; }
12662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12663printf "%s\n" "$can_build_shared" >&6; }
12664
12665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12666printf %s "checking whether to build shared libraries... " >&6; }
12667  test no = "$can_build_shared" && enable_shared=no
12668
12669  # On AIX, shared libraries and static libraries use the same namespace, and
12670  # are all built from PIC.
12671  case $host_os in
12672  aix3*)
12673    test yes = "$enable_shared" && enable_static=no
12674    if test -n "$RANLIB"; then
12675      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12676      postinstall_cmds='$RANLIB $lib'
12677    fi
12678    ;;
12679
12680  aix[4-9]*)
12681    if test ia64 != "$host_cpu"; then
12682      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12683      yes,aix,yes) ;;			# shared object as lib.so file only
12684      yes,svr4,*) ;;			# shared object as lib.so archive member only
12685      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12686      esac
12687    fi
12688    ;;
12689  esac
12690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12691printf "%s\n" "$enable_shared" >&6; }
12692
12693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12694printf %s "checking whether to build static libraries... " >&6; }
12695  # Make sure either enable_shared or enable_static is yes.
12696  test yes = "$enable_shared" || enable_static=yes
12697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12698printf "%s\n" "$enable_static" >&6; }
12699
12700
12701
12702
12703fi
12704ac_ext=c
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710CC=$lt_save_CC
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726        ac_config_commands="$ac_config_commands libtool"
12727
12728
12729
12730
12731# Only expand once:
12732
12733
12734
12735# Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12748printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12749if test ${ac_cv_c_undeclared_builtin_options+y}
12750then :
12751  printf %s "(cached) " >&6
12752else $as_nop
12753  ac_save_CFLAGS=$CFLAGS
12754   ac_cv_c_undeclared_builtin_options='cannot detect'
12755   for ac_arg in '' -fno-builtin; do
12756     CFLAGS="$ac_save_CFLAGS $ac_arg"
12757     # This test program should *not* compile successfully.
12758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759/* end confdefs.h.  */
12760
12761int
12762main (void)
12763{
12764(void) strchr;
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_compile "$LINENO"
12770then :
12771
12772else $as_nop
12773  # This test program should compile successfully.
12774        # No library function is consistently available on
12775        # freestanding implementations, so test against a dummy
12776        # declaration.  Include always-available headers on the
12777        # off chance that they somehow elicit warnings.
12778        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h.  */
12780#include <float.h>
12781#include <limits.h>
12782#include <stdarg.h>
12783#include <stddef.h>
12784extern void ac_decl (int, char *);
12785
12786int
12787main (void)
12788{
12789(void) ac_decl (0, (char *) 0);
12790  (void) ac_decl;
12791
12792  ;
12793  return 0;
12794}
12795_ACEOF
12796if ac_fn_c_try_compile "$LINENO"
12797then :
12798  if test x"$ac_arg" = x
12799then :
12800  ac_cv_c_undeclared_builtin_options='none needed'
12801else $as_nop
12802  ac_cv_c_undeclared_builtin_options=$ac_arg
12803fi
12804          break
12805fi
12806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12807fi
12808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12809    done
12810    CFLAGS=$ac_save_CFLAGS
12811
12812fi
12813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12814printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12815  case $ac_cv_c_undeclared_builtin_options in #(
12816  'cannot detect') :
12817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12818printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12819as_fn_error $? "cannot make $CC report undeclared builtins
12820See \`config.log' for more details" "$LINENO" 5; } ;; #(
12821  'none needed') :
12822    ac_c_undeclared_builtin_options='' ;; #(
12823  *) :
12824    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12825esac
12826
12827
12828
12829
12830
12831ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12832if test "x$ac_cv_have_decl___clang__" = xyes
12833then :
12834  CLANGCC="yes"
12835else $as_nop
12836  CLANGCC="no"
12837fi
12838ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12839if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12840then :
12841  INTELCC="yes"
12842else $as_nop
12843  INTELCC="no"
12844fi
12845ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12846if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12847then :
12848  SUNCC="yes"
12849else $as_nop
12850  SUNCC="no"
12851fi
12852
12853
12854
12855
12856
12857
12858
12859
12860if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12861	if test -n "$ac_tool_prefix"; then
12862  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12863set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865printf %s "checking for $ac_word... " >&6; }
12866if test ${ac_cv_path_PKG_CONFIG+y}
12867then :
12868  printf %s "(cached) " >&6
12869else $as_nop
12870  case $PKG_CONFIG in
12871  [\\/]* | ?:[\\/]*)
12872  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12873  ;;
12874  *)
12875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878  IFS=$as_save_IFS
12879  case $as_dir in #(((
12880    '') as_dir=./ ;;
12881    */) ;;
12882    *) as_dir=$as_dir/ ;;
12883  esac
12884    for ac_exec_ext in '' $ac_executable_extensions; do
12885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12886    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12888    break 2
12889  fi
12890done
12891  done
12892IFS=$as_save_IFS
12893
12894  ;;
12895esac
12896fi
12897PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12898if test -n "$PKG_CONFIG"; then
12899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12900printf "%s\n" "$PKG_CONFIG" >&6; }
12901else
12902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903printf "%s\n" "no" >&6; }
12904fi
12905
12906
12907fi
12908if test -z "$ac_cv_path_PKG_CONFIG"; then
12909  ac_pt_PKG_CONFIG=$PKG_CONFIG
12910  # Extract the first word of "pkg-config", so it can be a program name with args.
12911set dummy pkg-config; ac_word=$2
12912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913printf %s "checking for $ac_word... " >&6; }
12914if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12915then :
12916  printf %s "(cached) " >&6
12917else $as_nop
12918  case $ac_pt_PKG_CONFIG in
12919  [\\/]* | ?:[\\/]*)
12920  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12921  ;;
12922  *)
12923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924for as_dir in $PATH
12925do
12926  IFS=$as_save_IFS
12927  case $as_dir in #(((
12928    '') as_dir=./ ;;
12929    */) ;;
12930    *) as_dir=$as_dir/ ;;
12931  esac
12932    for ac_exec_ext in '' $ac_executable_extensions; do
12933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12934    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12936    break 2
12937  fi
12938done
12939  done
12940IFS=$as_save_IFS
12941
12942  ;;
12943esac
12944fi
12945ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12946if test -n "$ac_pt_PKG_CONFIG"; then
12947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12948printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12949else
12950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951printf "%s\n" "no" >&6; }
12952fi
12953
12954  if test "x$ac_pt_PKG_CONFIG" = x; then
12955    PKG_CONFIG=""
12956  else
12957    case $cross_compiling:$ac_tool_warned in
12958yes:)
12959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12961ac_tool_warned=yes ;;
12962esac
12963    PKG_CONFIG=$ac_pt_PKG_CONFIG
12964  fi
12965else
12966  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12967fi
12968
12969fi
12970if test -n "$PKG_CONFIG"; then
12971	_pkg_min_version=0.9.0
12972	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12973printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12974	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976printf "%s\n" "yes" >&6; }
12977	else
12978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979printf "%s\n" "no" >&6; }
12980		PKG_CONFIG=""
12981	fi
12982fi
12983
12984
12985
12986
12987
12988# Check whether --enable-selective-werror was given.
12989if test ${enable_selective_werror+y}
12990then :
12991  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12992else $as_nop
12993  SELECTIVE_WERROR=yes
12994fi
12995
12996
12997
12998
12999
13000# -v is too short to test reliably with XORG_TESTSET_CFLAG
13001if test "x$SUNCC" = "xyes"; then
13002    BASE_CFLAGS="-v"
13003else
13004    BASE_CFLAGS=""
13005fi
13006
13007# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021xorg_testset_save_CFLAGS="$CFLAGS"
13022
13023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13027if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13028then :
13029  printf %s "(cached) " >&6
13030else $as_nop
13031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033int i;
13034_ACEOF
13035if ac_fn_c_try_compile "$LINENO"
13036then :
13037  xorg_cv_cc_flag_unknown_warning_option=yes
13038else $as_nop
13039  xorg_cv_cc_flag_unknown_warning_option=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13042fi
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13046	CFLAGS="$xorg_testset_save_CFLAGS"
13047fi
13048
13049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052	fi
13053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13057then :
13058  printf %s "(cached) " >&6
13059else $as_nop
13060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061/* end confdefs.h.  */
13062int i;
13063_ACEOF
13064if ac_fn_c_try_compile "$LINENO"
13065then :
13066  xorg_cv_cc_flag_unused_command_line_argument=yes
13067else $as_nop
13068  xorg_cv_cc_flag_unused_command_line_argument=no
13069fi
13070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13071fi
13072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13075	CFLAGS="$xorg_testset_save_CFLAGS"
13076fi
13077
13078found="no"
13079
13080	if test $found = "no" ; then
13081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13083		fi
13084
13085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087		fi
13088
13089		CFLAGS="$CFLAGS -Wall"
13090
13091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13092printf %s "checking if $CC supports -Wall... " >&6; }
13093		cacheid=xorg_cv_cc_flag__Wall
13094		if eval test \${$cacheid+y}
13095then :
13096  printf %s "(cached) " >&6
13097else $as_nop
13098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099/* end confdefs.h.  */
13100int i;
13101int
13102main (void)
13103{
13104
13105  ;
13106  return 0;
13107}
13108_ACEOF
13109if ac_fn_c_try_link "$LINENO"
13110then :
13111  eval $cacheid=yes
13112else $as_nop
13113  eval $cacheid=no
13114fi
13115rm -f core conftest.err conftest.$ac_objext conftest.beam \
13116    conftest$ac_exeext conftest.$ac_ext
13117fi
13118
13119
13120		CFLAGS="$xorg_testset_save_CFLAGS"
13121
13122		eval supported=\$$cacheid
13123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13124printf "%s\n" "$supported" >&6; }
13125		if test "$supported" = "yes" ; then
13126			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13127			found="yes"
13128		fi
13129	fi
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145xorg_testset_save_CFLAGS="$CFLAGS"
13146
13147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13151if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13152then :
13153  printf %s "(cached) " >&6
13154else $as_nop
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157int i;
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"
13160then :
13161  xorg_cv_cc_flag_unknown_warning_option=yes
13162else $as_nop
13163  xorg_cv_cc_flag_unknown_warning_option=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166fi
13167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13170	CFLAGS="$xorg_testset_save_CFLAGS"
13171fi
13172
13173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13176	fi
13177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13180if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13181then :
13182  printf %s "(cached) " >&6
13183else $as_nop
13184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186int i;
13187_ACEOF
13188if ac_fn_c_try_compile "$LINENO"
13189then :
13190  xorg_cv_cc_flag_unused_command_line_argument=yes
13191else $as_nop
13192  xorg_cv_cc_flag_unused_command_line_argument=no
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13195fi
13196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13199	CFLAGS="$xorg_testset_save_CFLAGS"
13200fi
13201
13202found="no"
13203
13204	if test $found = "no" ; then
13205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13207		fi
13208
13209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13211		fi
13212
13213		CFLAGS="$CFLAGS -Wpointer-arith"
13214
13215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13216printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13217		cacheid=xorg_cv_cc_flag__Wpointer_arith
13218		if eval test \${$cacheid+y}
13219then :
13220  printf %s "(cached) " >&6
13221else $as_nop
13222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224int i;
13225int
13226main (void)
13227{
13228
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_c_try_link "$LINENO"
13234then :
13235  eval $cacheid=yes
13236else $as_nop
13237  eval $cacheid=no
13238fi
13239rm -f core conftest.err conftest.$ac_objext conftest.beam \
13240    conftest$ac_exeext conftest.$ac_ext
13241fi
13242
13243
13244		CFLAGS="$xorg_testset_save_CFLAGS"
13245
13246		eval supported=\$$cacheid
13247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13248printf "%s\n" "$supported" >&6; }
13249		if test "$supported" = "yes" ; then
13250			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13251			found="yes"
13252		fi
13253	fi
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269xorg_testset_save_CFLAGS="$CFLAGS"
13270
13271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13275if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13276then :
13277  printf %s "(cached) " >&6
13278else $as_nop
13279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"
13284then :
13285  xorg_cv_cc_flag_unknown_warning_option=yes
13286else $as_nop
13287  xorg_cv_cc_flag_unknown_warning_option=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13290fi
13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13294	CFLAGS="$xorg_testset_save_CFLAGS"
13295fi
13296
13297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13300	fi
13301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13304if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13305then :
13306  printf %s "(cached) " >&6
13307else $as_nop
13308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h.  */
13310int i;
13311_ACEOF
13312if ac_fn_c_try_compile "$LINENO"
13313then :
13314  xorg_cv_cc_flag_unused_command_line_argument=yes
13315else $as_nop
13316  xorg_cv_cc_flag_unused_command_line_argument=no
13317fi
13318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13319fi
13320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13323	CFLAGS="$xorg_testset_save_CFLAGS"
13324fi
13325
13326found="no"
13327
13328	if test $found = "no" ; then
13329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13331		fi
13332
13333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13335		fi
13336
13337		CFLAGS="$CFLAGS -Wmissing-declarations"
13338
13339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13340printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13341		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13342		if eval test \${$cacheid+y}
13343then :
13344  printf %s "(cached) " >&6
13345else $as_nop
13346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348int i;
13349int
13350main (void)
13351{
13352
13353  ;
13354  return 0;
13355}
13356_ACEOF
13357if ac_fn_c_try_link "$LINENO"
13358then :
13359  eval $cacheid=yes
13360else $as_nop
13361  eval $cacheid=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext conftest.beam \
13364    conftest$ac_exeext conftest.$ac_ext
13365fi
13366
13367
13368		CFLAGS="$xorg_testset_save_CFLAGS"
13369
13370		eval supported=\$$cacheid
13371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13372printf "%s\n" "$supported" >&6; }
13373		if test "$supported" = "yes" ; then
13374			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13375			found="yes"
13376		fi
13377	fi
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393xorg_testset_save_CFLAGS="$CFLAGS"
13394
13395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13400then :
13401  printf %s "(cached) " >&6
13402else $as_nop
13403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405int i;
13406_ACEOF
13407if ac_fn_c_try_compile "$LINENO"
13408then :
13409  xorg_cv_cc_flag_unknown_warning_option=yes
13410else $as_nop
13411  xorg_cv_cc_flag_unknown_warning_option=no
13412fi
13413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13414fi
13415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13418	CFLAGS="$xorg_testset_save_CFLAGS"
13419fi
13420
13421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13424	fi
13425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13429then :
13430  printf %s "(cached) " >&6
13431else $as_nop
13432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h.  */
13434int i;
13435_ACEOF
13436if ac_fn_c_try_compile "$LINENO"
13437then :
13438  xorg_cv_cc_flag_unused_command_line_argument=yes
13439else $as_nop
13440  xorg_cv_cc_flag_unused_command_line_argument=no
13441fi
13442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13443fi
13444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13447	CFLAGS="$xorg_testset_save_CFLAGS"
13448fi
13449
13450found="no"
13451
13452	if test $found = "no" ; then
13453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13455		fi
13456
13457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13459		fi
13460
13461		CFLAGS="$CFLAGS -Wformat=2"
13462
13463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13464printf %s "checking if $CC supports -Wformat=2... " >&6; }
13465		cacheid=xorg_cv_cc_flag__Wformat_2
13466		if eval test \${$cacheid+y}
13467then :
13468  printf %s "(cached) " >&6
13469else $as_nop
13470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h.  */
13472int i;
13473int
13474main (void)
13475{
13476
13477  ;
13478  return 0;
13479}
13480_ACEOF
13481if ac_fn_c_try_link "$LINENO"
13482then :
13483  eval $cacheid=yes
13484else $as_nop
13485  eval $cacheid=no
13486fi
13487rm -f core conftest.err conftest.$ac_objext conftest.beam \
13488    conftest$ac_exeext conftest.$ac_ext
13489fi
13490
13491
13492		CFLAGS="$xorg_testset_save_CFLAGS"
13493
13494		eval supported=\$$cacheid
13495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13496printf "%s\n" "$supported" >&6; }
13497		if test "$supported" = "yes" ; then
13498			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13499			found="yes"
13500		fi
13501	fi
13502
13503	if test $found = "no" ; then
13504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13506		fi
13507
13508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13510		fi
13511
13512		CFLAGS="$CFLAGS -Wformat"
13513
13514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13515printf %s "checking if $CC supports -Wformat... " >&6; }
13516		cacheid=xorg_cv_cc_flag__Wformat
13517		if eval test \${$cacheid+y}
13518then :
13519  printf %s "(cached) " >&6
13520else $as_nop
13521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522/* end confdefs.h.  */
13523int i;
13524int
13525main (void)
13526{
13527
13528  ;
13529  return 0;
13530}
13531_ACEOF
13532if ac_fn_c_try_link "$LINENO"
13533then :
13534  eval $cacheid=yes
13535else $as_nop
13536  eval $cacheid=no
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.beam \
13539    conftest$ac_exeext conftest.$ac_ext
13540fi
13541
13542
13543		CFLAGS="$xorg_testset_save_CFLAGS"
13544
13545		eval supported=\$$cacheid
13546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13547printf "%s\n" "$supported" >&6; }
13548		if test "$supported" = "yes" ; then
13549			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13550			found="yes"
13551		fi
13552	fi
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570xorg_testset_save_CFLAGS="$CFLAGS"
13571
13572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13577then :
13578  printf %s "(cached) " >&6
13579else $as_nop
13580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581/* end confdefs.h.  */
13582int i;
13583_ACEOF
13584if ac_fn_c_try_compile "$LINENO"
13585then :
13586  xorg_cv_cc_flag_unknown_warning_option=yes
13587else $as_nop
13588  xorg_cv_cc_flag_unknown_warning_option=no
13589fi
13590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13591fi
13592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13593printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13595	CFLAGS="$xorg_testset_save_CFLAGS"
13596fi
13597
13598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13601	fi
13602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13604printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13605if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13606then :
13607  printf %s "(cached) " >&6
13608else $as_nop
13609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610/* end confdefs.h.  */
13611int i;
13612_ACEOF
13613if ac_fn_c_try_compile "$LINENO"
13614then :
13615  xorg_cv_cc_flag_unused_command_line_argument=yes
13616else $as_nop
13617  xorg_cv_cc_flag_unused_command_line_argument=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13620fi
13621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13624	CFLAGS="$xorg_testset_save_CFLAGS"
13625fi
13626
13627found="no"
13628
13629	if test $found = "no" ; then
13630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13632		fi
13633
13634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13636		fi
13637
13638		CFLAGS="$CFLAGS -Wstrict-prototypes"
13639
13640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13641printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13642		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13643		if eval test \${$cacheid+y}
13644then :
13645  printf %s "(cached) " >&6
13646else $as_nop
13647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h.  */
13649int i;
13650int
13651main (void)
13652{
13653
13654  ;
13655  return 0;
13656}
13657_ACEOF
13658if ac_fn_c_try_link "$LINENO"
13659then :
13660  eval $cacheid=yes
13661else $as_nop
13662  eval $cacheid=no
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.beam \
13665    conftest$ac_exeext conftest.$ac_ext
13666fi
13667
13668
13669		CFLAGS="$xorg_testset_save_CFLAGS"
13670
13671		eval supported=\$$cacheid
13672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13673printf "%s\n" "$supported" >&6; }
13674		if test "$supported" = "yes" ; then
13675			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13676			found="yes"
13677		fi
13678	fi
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694xorg_testset_save_CFLAGS="$CFLAGS"
13695
13696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13701then :
13702  printf %s "(cached) " >&6
13703else $as_nop
13704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705/* end confdefs.h.  */
13706int i;
13707_ACEOF
13708if ac_fn_c_try_compile "$LINENO"
13709then :
13710  xorg_cv_cc_flag_unknown_warning_option=yes
13711else $as_nop
13712  xorg_cv_cc_flag_unknown_warning_option=no
13713fi
13714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13715fi
13716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13719	CFLAGS="$xorg_testset_save_CFLAGS"
13720fi
13721
13722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725	fi
13726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13730then :
13731  printf %s "(cached) " >&6
13732else $as_nop
13733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h.  */
13735int i;
13736_ACEOF
13737if ac_fn_c_try_compile "$LINENO"
13738then :
13739  xorg_cv_cc_flag_unused_command_line_argument=yes
13740else $as_nop
13741  xorg_cv_cc_flag_unused_command_line_argument=no
13742fi
13743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13744fi
13745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13748	CFLAGS="$xorg_testset_save_CFLAGS"
13749fi
13750
13751found="no"
13752
13753	if test $found = "no" ; then
13754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13756		fi
13757
13758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13760		fi
13761
13762		CFLAGS="$CFLAGS -Wmissing-prototypes"
13763
13764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13765printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13766		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13767		if eval test \${$cacheid+y}
13768then :
13769  printf %s "(cached) " >&6
13770else $as_nop
13771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772/* end confdefs.h.  */
13773int i;
13774int
13775main (void)
13776{
13777
13778  ;
13779  return 0;
13780}
13781_ACEOF
13782if ac_fn_c_try_link "$LINENO"
13783then :
13784  eval $cacheid=yes
13785else $as_nop
13786  eval $cacheid=no
13787fi
13788rm -f core conftest.err conftest.$ac_objext conftest.beam \
13789    conftest$ac_exeext conftest.$ac_ext
13790fi
13791
13792
13793		CFLAGS="$xorg_testset_save_CFLAGS"
13794
13795		eval supported=\$$cacheid
13796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13797printf "%s\n" "$supported" >&6; }
13798		if test "$supported" = "yes" ; then
13799			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13800			found="yes"
13801		fi
13802	fi
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818xorg_testset_save_CFLAGS="$CFLAGS"
13819
13820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13825then :
13826  printf %s "(cached) " >&6
13827else $as_nop
13828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829/* end confdefs.h.  */
13830int i;
13831_ACEOF
13832if ac_fn_c_try_compile "$LINENO"
13833then :
13834  xorg_cv_cc_flag_unknown_warning_option=yes
13835else $as_nop
13836  xorg_cv_cc_flag_unknown_warning_option=no
13837fi
13838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13839fi
13840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13843	CFLAGS="$xorg_testset_save_CFLAGS"
13844fi
13845
13846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13849	fi
13850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13854then :
13855  printf %s "(cached) " >&6
13856else $as_nop
13857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859int i;
13860_ACEOF
13861if ac_fn_c_try_compile "$LINENO"
13862then :
13863  xorg_cv_cc_flag_unused_command_line_argument=yes
13864else $as_nop
13865  xorg_cv_cc_flag_unused_command_line_argument=no
13866fi
13867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13868fi
13869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13872	CFLAGS="$xorg_testset_save_CFLAGS"
13873fi
13874
13875found="no"
13876
13877	if test $found = "no" ; then
13878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13880		fi
13881
13882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13884		fi
13885
13886		CFLAGS="$CFLAGS -Wnested-externs"
13887
13888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13889printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13890		cacheid=xorg_cv_cc_flag__Wnested_externs
13891		if eval test \${$cacheid+y}
13892then :
13893  printf %s "(cached) " >&6
13894else $as_nop
13895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896/* end confdefs.h.  */
13897int i;
13898int
13899main (void)
13900{
13901
13902  ;
13903  return 0;
13904}
13905_ACEOF
13906if ac_fn_c_try_link "$LINENO"
13907then :
13908  eval $cacheid=yes
13909else $as_nop
13910  eval $cacheid=no
13911fi
13912rm -f core conftest.err conftest.$ac_objext conftest.beam \
13913    conftest$ac_exeext conftest.$ac_ext
13914fi
13915
13916
13917		CFLAGS="$xorg_testset_save_CFLAGS"
13918
13919		eval supported=\$$cacheid
13920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13921printf "%s\n" "$supported" >&6; }
13922		if test "$supported" = "yes" ; then
13923			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13924			found="yes"
13925		fi
13926	fi
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942xorg_testset_save_CFLAGS="$CFLAGS"
13943
13944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13949then :
13950  printf %s "(cached) " >&6
13951else $as_nop
13952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953/* end confdefs.h.  */
13954int i;
13955_ACEOF
13956if ac_fn_c_try_compile "$LINENO"
13957then :
13958  xorg_cv_cc_flag_unknown_warning_option=yes
13959else $as_nop
13960  xorg_cv_cc_flag_unknown_warning_option=no
13961fi
13962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13963fi
13964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13967	CFLAGS="$xorg_testset_save_CFLAGS"
13968fi
13969
13970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973	fi
13974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13978then :
13979  printf %s "(cached) " >&6
13980else $as_nop
13981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h.  */
13983int i;
13984_ACEOF
13985if ac_fn_c_try_compile "$LINENO"
13986then :
13987  xorg_cv_cc_flag_unused_command_line_argument=yes
13988else $as_nop
13989  xorg_cv_cc_flag_unused_command_line_argument=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13992fi
13993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13996	CFLAGS="$xorg_testset_save_CFLAGS"
13997fi
13998
13999found="no"
14000
14001	if test $found = "no" ; then
14002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14004		fi
14005
14006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14008		fi
14009
14010		CFLAGS="$CFLAGS -Wbad-function-cast"
14011
14012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14013printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14014		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14015		if eval test \${$cacheid+y}
14016then :
14017  printf %s "(cached) " >&6
14018else $as_nop
14019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020/* end confdefs.h.  */
14021int i;
14022int
14023main (void)
14024{
14025
14026  ;
14027  return 0;
14028}
14029_ACEOF
14030if ac_fn_c_try_link "$LINENO"
14031then :
14032  eval $cacheid=yes
14033else $as_nop
14034  eval $cacheid=no
14035fi
14036rm -f core conftest.err conftest.$ac_objext conftest.beam \
14037    conftest$ac_exeext conftest.$ac_ext
14038fi
14039
14040
14041		CFLAGS="$xorg_testset_save_CFLAGS"
14042
14043		eval supported=\$$cacheid
14044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14045printf "%s\n" "$supported" >&6; }
14046		if test "$supported" = "yes" ; then
14047			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14048			found="yes"
14049		fi
14050	fi
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066xorg_testset_save_CFLAGS="$CFLAGS"
14067
14068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14073then :
14074  printf %s "(cached) " >&6
14075else $as_nop
14076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078int i;
14079_ACEOF
14080if ac_fn_c_try_compile "$LINENO"
14081then :
14082  xorg_cv_cc_flag_unknown_warning_option=yes
14083else $as_nop
14084  xorg_cv_cc_flag_unknown_warning_option=no
14085fi
14086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14087fi
14088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14091	CFLAGS="$xorg_testset_save_CFLAGS"
14092fi
14093
14094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14097	fi
14098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14102then :
14103  printf %s "(cached) " >&6
14104else $as_nop
14105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h.  */
14107int i;
14108_ACEOF
14109if ac_fn_c_try_compile "$LINENO"
14110then :
14111  xorg_cv_cc_flag_unused_command_line_argument=yes
14112else $as_nop
14113  xorg_cv_cc_flag_unused_command_line_argument=no
14114fi
14115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14116fi
14117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14120	CFLAGS="$xorg_testset_save_CFLAGS"
14121fi
14122
14123found="no"
14124
14125	if test $found = "no" ; then
14126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14128		fi
14129
14130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14132		fi
14133
14134		CFLAGS="$CFLAGS -Wold-style-definition"
14135
14136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14137printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14138		cacheid=xorg_cv_cc_flag__Wold_style_definition
14139		if eval test \${$cacheid+y}
14140then :
14141  printf %s "(cached) " >&6
14142else $as_nop
14143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h.  */
14145int i;
14146int
14147main (void)
14148{
14149
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154if ac_fn_c_try_link "$LINENO"
14155then :
14156  eval $cacheid=yes
14157else $as_nop
14158  eval $cacheid=no
14159fi
14160rm -f core conftest.err conftest.$ac_objext conftest.beam \
14161    conftest$ac_exeext conftest.$ac_ext
14162fi
14163
14164
14165		CFLAGS="$xorg_testset_save_CFLAGS"
14166
14167		eval supported=\$$cacheid
14168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14169printf "%s\n" "$supported" >&6; }
14170		if test "$supported" = "yes" ; then
14171			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14172			found="yes"
14173		fi
14174	fi
14175
14176	if test $found = "no" ; then
14177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14179		fi
14180
14181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14183		fi
14184
14185		CFLAGS="$CFLAGS -fd"
14186
14187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14188printf %s "checking if $CC supports -fd... " >&6; }
14189		cacheid=xorg_cv_cc_flag__fd
14190		if eval test \${$cacheid+y}
14191then :
14192  printf %s "(cached) " >&6
14193else $as_nop
14194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195/* end confdefs.h.  */
14196int i;
14197int
14198main (void)
14199{
14200
14201  ;
14202  return 0;
14203}
14204_ACEOF
14205if ac_fn_c_try_link "$LINENO"
14206then :
14207  eval $cacheid=yes
14208else $as_nop
14209  eval $cacheid=no
14210fi
14211rm -f core conftest.err conftest.$ac_objext conftest.beam \
14212    conftest$ac_exeext conftest.$ac_ext
14213fi
14214
14215
14216		CFLAGS="$xorg_testset_save_CFLAGS"
14217
14218		eval supported=\$$cacheid
14219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14220printf "%s\n" "$supported" >&6; }
14221		if test "$supported" = "yes" ; then
14222			BASE_CFLAGS="$BASE_CFLAGS -fd"
14223			found="yes"
14224		fi
14225	fi
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241xorg_testset_save_CFLAGS="$CFLAGS"
14242
14243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14247if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14248then :
14249  printf %s "(cached) " >&6
14250else $as_nop
14251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253int i;
14254_ACEOF
14255if ac_fn_c_try_compile "$LINENO"
14256then :
14257  xorg_cv_cc_flag_unknown_warning_option=yes
14258else $as_nop
14259  xorg_cv_cc_flag_unknown_warning_option=no
14260fi
14261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14262fi
14263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14266	CFLAGS="$xorg_testset_save_CFLAGS"
14267fi
14268
14269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14272	fi
14273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14277then :
14278  printf %s "(cached) " >&6
14279else $as_nop
14280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h.  */
14282int i;
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"
14285then :
14286  xorg_cv_cc_flag_unused_command_line_argument=yes
14287else $as_nop
14288  xorg_cv_cc_flag_unused_command_line_argument=no
14289fi
14290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14291fi
14292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14295	CFLAGS="$xorg_testset_save_CFLAGS"
14296fi
14297
14298found="no"
14299
14300	if test $found = "no" ; then
14301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14303		fi
14304
14305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14307		fi
14308
14309		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14310
14311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14312printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14313		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14314		if eval test \${$cacheid+y}
14315then :
14316  printf %s "(cached) " >&6
14317else $as_nop
14318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319/* end confdefs.h.  */
14320int i;
14321int
14322main (void)
14323{
14324
14325  ;
14326  return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_link "$LINENO"
14330then :
14331  eval $cacheid=yes
14332else $as_nop
14333  eval $cacheid=no
14334fi
14335rm -f core conftest.err conftest.$ac_objext conftest.beam \
14336    conftest$ac_exeext conftest.$ac_ext
14337fi
14338
14339
14340		CFLAGS="$xorg_testset_save_CFLAGS"
14341
14342		eval supported=\$$cacheid
14343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14344printf "%s\n" "$supported" >&6; }
14345		if test "$supported" = "yes" ; then
14346			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14347			found="yes"
14348		fi
14349	fi
14350
14351
14352
14353
14354
14355# This chunk adds additional warnings that could catch undesired effects.
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369xorg_testset_save_CFLAGS="$CFLAGS"
14370
14371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14376then :
14377  printf %s "(cached) " >&6
14378else $as_nop
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382_ACEOF
14383if ac_fn_c_try_compile "$LINENO"
14384then :
14385  xorg_cv_cc_flag_unknown_warning_option=yes
14386else $as_nop
14387  xorg_cv_cc_flag_unknown_warning_option=no
14388fi
14389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14390fi
14391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14394	CFLAGS="$xorg_testset_save_CFLAGS"
14395fi
14396
14397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14400	fi
14401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14405then :
14406  printf %s "(cached) " >&6
14407else $as_nop
14408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h.  */
14410int i;
14411_ACEOF
14412if ac_fn_c_try_compile "$LINENO"
14413then :
14414  xorg_cv_cc_flag_unused_command_line_argument=yes
14415else $as_nop
14416  xorg_cv_cc_flag_unused_command_line_argument=no
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14419fi
14420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14423	CFLAGS="$xorg_testset_save_CFLAGS"
14424fi
14425
14426found="no"
14427
14428	if test $found = "no" ; then
14429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14431		fi
14432
14433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435		fi
14436
14437		CFLAGS="$CFLAGS -Wunused"
14438
14439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14440printf %s "checking if $CC supports -Wunused... " >&6; }
14441		cacheid=xorg_cv_cc_flag__Wunused
14442		if eval test \${$cacheid+y}
14443then :
14444  printf %s "(cached) " >&6
14445else $as_nop
14446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447/* end confdefs.h.  */
14448int i;
14449int
14450main (void)
14451{
14452
14453  ;
14454  return 0;
14455}
14456_ACEOF
14457if ac_fn_c_try_link "$LINENO"
14458then :
14459  eval $cacheid=yes
14460else $as_nop
14461  eval $cacheid=no
14462fi
14463rm -f core conftest.err conftest.$ac_objext conftest.beam \
14464    conftest$ac_exeext conftest.$ac_ext
14465fi
14466
14467
14468		CFLAGS="$xorg_testset_save_CFLAGS"
14469
14470		eval supported=\$$cacheid
14471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14472printf "%s\n" "$supported" >&6; }
14473		if test "$supported" = "yes" ; then
14474			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14475			found="yes"
14476		fi
14477	fi
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493xorg_testset_save_CFLAGS="$CFLAGS"
14494
14495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14499if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14500then :
14501  printf %s "(cached) " >&6
14502else $as_nop
14503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504/* end confdefs.h.  */
14505int i;
14506_ACEOF
14507if ac_fn_c_try_compile "$LINENO"
14508then :
14509  xorg_cv_cc_flag_unknown_warning_option=yes
14510else $as_nop
14511  xorg_cv_cc_flag_unknown_warning_option=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14514fi
14515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14518	CFLAGS="$xorg_testset_save_CFLAGS"
14519fi
14520
14521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14524	fi
14525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14528if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14529then :
14530  printf %s "(cached) " >&6
14531else $as_nop
14532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533/* end confdefs.h.  */
14534int i;
14535_ACEOF
14536if ac_fn_c_try_compile "$LINENO"
14537then :
14538  xorg_cv_cc_flag_unused_command_line_argument=yes
14539else $as_nop
14540  xorg_cv_cc_flag_unused_command_line_argument=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14543fi
14544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14547	CFLAGS="$xorg_testset_save_CFLAGS"
14548fi
14549
14550found="no"
14551
14552	if test $found = "no" ; then
14553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14555		fi
14556
14557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14559		fi
14560
14561		CFLAGS="$CFLAGS -Wuninitialized"
14562
14563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14564printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14565		cacheid=xorg_cv_cc_flag__Wuninitialized
14566		if eval test \${$cacheid+y}
14567then :
14568  printf %s "(cached) " >&6
14569else $as_nop
14570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571/* end confdefs.h.  */
14572int i;
14573int
14574main (void)
14575{
14576
14577  ;
14578  return 0;
14579}
14580_ACEOF
14581if ac_fn_c_try_link "$LINENO"
14582then :
14583  eval $cacheid=yes
14584else $as_nop
14585  eval $cacheid=no
14586fi
14587rm -f core conftest.err conftest.$ac_objext conftest.beam \
14588    conftest$ac_exeext conftest.$ac_ext
14589fi
14590
14591
14592		CFLAGS="$xorg_testset_save_CFLAGS"
14593
14594		eval supported=\$$cacheid
14595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14596printf "%s\n" "$supported" >&6; }
14597		if test "$supported" = "yes" ; then
14598			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14599			found="yes"
14600		fi
14601	fi
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617xorg_testset_save_CFLAGS="$CFLAGS"
14618
14619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14623if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14624then :
14625  printf %s "(cached) " >&6
14626else $as_nop
14627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628/* end confdefs.h.  */
14629int i;
14630_ACEOF
14631if ac_fn_c_try_compile "$LINENO"
14632then :
14633  xorg_cv_cc_flag_unknown_warning_option=yes
14634else $as_nop
14635  xorg_cv_cc_flag_unknown_warning_option=no
14636fi
14637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14638fi
14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14642	CFLAGS="$xorg_testset_save_CFLAGS"
14643fi
14644
14645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648	fi
14649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14653then :
14654  printf %s "(cached) " >&6
14655else $as_nop
14656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657/* end confdefs.h.  */
14658int i;
14659_ACEOF
14660if ac_fn_c_try_compile "$LINENO"
14661then :
14662  xorg_cv_cc_flag_unused_command_line_argument=yes
14663else $as_nop
14664  xorg_cv_cc_flag_unused_command_line_argument=no
14665fi
14666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14667fi
14668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14671	CFLAGS="$xorg_testset_save_CFLAGS"
14672fi
14673
14674found="no"
14675
14676	if test $found = "no" ; then
14677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14679		fi
14680
14681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683		fi
14684
14685		CFLAGS="$CFLAGS -Wshadow"
14686
14687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14688printf %s "checking if $CC supports -Wshadow... " >&6; }
14689		cacheid=xorg_cv_cc_flag__Wshadow
14690		if eval test \${$cacheid+y}
14691then :
14692  printf %s "(cached) " >&6
14693else $as_nop
14694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696int i;
14697int
14698main (void)
14699{
14700
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705if ac_fn_c_try_link "$LINENO"
14706then :
14707  eval $cacheid=yes
14708else $as_nop
14709  eval $cacheid=no
14710fi
14711rm -f core conftest.err conftest.$ac_objext conftest.beam \
14712    conftest$ac_exeext conftest.$ac_ext
14713fi
14714
14715
14716		CFLAGS="$xorg_testset_save_CFLAGS"
14717
14718		eval supported=\$$cacheid
14719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14720printf "%s\n" "$supported" >&6; }
14721		if test "$supported" = "yes" ; then
14722			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14723			found="yes"
14724		fi
14725	fi
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741xorg_testset_save_CFLAGS="$CFLAGS"
14742
14743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14748then :
14749  printf %s "(cached) " >&6
14750else $as_nop
14751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752/* end confdefs.h.  */
14753int i;
14754_ACEOF
14755if ac_fn_c_try_compile "$LINENO"
14756then :
14757  xorg_cv_cc_flag_unknown_warning_option=yes
14758else $as_nop
14759  xorg_cv_cc_flag_unknown_warning_option=no
14760fi
14761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14762fi
14763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14766	CFLAGS="$xorg_testset_save_CFLAGS"
14767fi
14768
14769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14772	fi
14773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14776if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14777then :
14778  printf %s "(cached) " >&6
14779else $as_nop
14780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781/* end confdefs.h.  */
14782int i;
14783_ACEOF
14784if ac_fn_c_try_compile "$LINENO"
14785then :
14786  xorg_cv_cc_flag_unused_command_line_argument=yes
14787else $as_nop
14788  xorg_cv_cc_flag_unused_command_line_argument=no
14789fi
14790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14791fi
14792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14795	CFLAGS="$xorg_testset_save_CFLAGS"
14796fi
14797
14798found="no"
14799
14800	if test $found = "no" ; then
14801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14803		fi
14804
14805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807		fi
14808
14809		CFLAGS="$CFLAGS -Wmissing-noreturn"
14810
14811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14812printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14813		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14814		if eval test \${$cacheid+y}
14815then :
14816  printf %s "(cached) " >&6
14817else $as_nop
14818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819/* end confdefs.h.  */
14820int i;
14821int
14822main (void)
14823{
14824
14825  ;
14826  return 0;
14827}
14828_ACEOF
14829if ac_fn_c_try_link "$LINENO"
14830then :
14831  eval $cacheid=yes
14832else $as_nop
14833  eval $cacheid=no
14834fi
14835rm -f core conftest.err conftest.$ac_objext conftest.beam \
14836    conftest$ac_exeext conftest.$ac_ext
14837fi
14838
14839
14840		CFLAGS="$xorg_testset_save_CFLAGS"
14841
14842		eval supported=\$$cacheid
14843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14844printf "%s\n" "$supported" >&6; }
14845		if test "$supported" = "yes" ; then
14846			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14847			found="yes"
14848		fi
14849	fi
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865xorg_testset_save_CFLAGS="$CFLAGS"
14866
14867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14871if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14872then :
14873  printf %s "(cached) " >&6
14874else $as_nop
14875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h.  */
14877int i;
14878_ACEOF
14879if ac_fn_c_try_compile "$LINENO"
14880then :
14881  xorg_cv_cc_flag_unknown_warning_option=yes
14882else $as_nop
14883  xorg_cv_cc_flag_unknown_warning_option=no
14884fi
14885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14886fi
14887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14889	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14890	CFLAGS="$xorg_testset_save_CFLAGS"
14891fi
14892
14893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14894	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896	fi
14897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14898	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14900if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14901then :
14902  printf %s "(cached) " >&6
14903else $as_nop
14904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905/* end confdefs.h.  */
14906int i;
14907_ACEOF
14908if ac_fn_c_try_compile "$LINENO"
14909then :
14910  xorg_cv_cc_flag_unused_command_line_argument=yes
14911else $as_nop
14912  xorg_cv_cc_flag_unused_command_line_argument=no
14913fi
14914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14915fi
14916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14919	CFLAGS="$xorg_testset_save_CFLAGS"
14920fi
14921
14922found="no"
14923
14924	if test $found = "no" ; then
14925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14927		fi
14928
14929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931		fi
14932
14933		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14934
14935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14936printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14937		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14938		if eval test \${$cacheid+y}
14939then :
14940  printf %s "(cached) " >&6
14941else $as_nop
14942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944int i;
14945int
14946main (void)
14947{
14948
14949  ;
14950  return 0;
14951}
14952_ACEOF
14953if ac_fn_c_try_link "$LINENO"
14954then :
14955  eval $cacheid=yes
14956else $as_nop
14957  eval $cacheid=no
14958fi
14959rm -f core conftest.err conftest.$ac_objext conftest.beam \
14960    conftest$ac_exeext conftest.$ac_ext
14961fi
14962
14963
14964		CFLAGS="$xorg_testset_save_CFLAGS"
14965
14966		eval supported=\$$cacheid
14967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14968printf "%s\n" "$supported" >&6; }
14969		if test "$supported" = "yes" ; then
14970			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14971			found="yes"
14972		fi
14973	fi
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989xorg_testset_save_CFLAGS="$CFLAGS"
14990
14991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14996then :
14997  printf %s "(cached) " >&6
14998else $as_nop
14999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001int i;
15002_ACEOF
15003if ac_fn_c_try_compile "$LINENO"
15004then :
15005  xorg_cv_cc_flag_unknown_warning_option=yes
15006else $as_nop
15007  xorg_cv_cc_flag_unknown_warning_option=no
15008fi
15009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15010fi
15011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15014	CFLAGS="$xorg_testset_save_CFLAGS"
15015fi
15016
15017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15020	fi
15021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15024if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15025then :
15026  printf %s "(cached) " >&6
15027else $as_nop
15028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h.  */
15030int i;
15031_ACEOF
15032if ac_fn_c_try_compile "$LINENO"
15033then :
15034  xorg_cv_cc_flag_unused_command_line_argument=yes
15035else $as_nop
15036  xorg_cv_cc_flag_unused_command_line_argument=no
15037fi
15038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15039fi
15040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15043	CFLAGS="$xorg_testset_save_CFLAGS"
15044fi
15045
15046found="no"
15047
15048	if test $found = "no" ; then
15049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051		fi
15052
15053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055		fi
15056
15057		CFLAGS="$CFLAGS -Wredundant-decls"
15058
15059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15060printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15061		cacheid=xorg_cv_cc_flag__Wredundant_decls
15062		if eval test \${$cacheid+y}
15063then :
15064  printf %s "(cached) " >&6
15065else $as_nop
15066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067/* end confdefs.h.  */
15068int i;
15069int
15070main (void)
15071{
15072
15073  ;
15074  return 0;
15075}
15076_ACEOF
15077if ac_fn_c_try_link "$LINENO"
15078then :
15079  eval $cacheid=yes
15080else $as_nop
15081  eval $cacheid=no
15082fi
15083rm -f core conftest.err conftest.$ac_objext conftest.beam \
15084    conftest$ac_exeext conftest.$ac_ext
15085fi
15086
15087
15088		CFLAGS="$xorg_testset_save_CFLAGS"
15089
15090		eval supported=\$$cacheid
15091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15092printf "%s\n" "$supported" >&6; }
15093		if test "$supported" = "yes" ; then
15094			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15095			found="yes"
15096		fi
15097	fi
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113xorg_testset_save_CFLAGS="$CFLAGS"
15114
15115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15119if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15120then :
15121  printf %s "(cached) " >&6
15122else $as_nop
15123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124/* end confdefs.h.  */
15125int i;
15126_ACEOF
15127if ac_fn_c_try_compile "$LINENO"
15128then :
15129  xorg_cv_cc_flag_unknown_warning_option=yes
15130else $as_nop
15131  xorg_cv_cc_flag_unknown_warning_option=no
15132fi
15133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15134fi
15135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15138	CFLAGS="$xorg_testset_save_CFLAGS"
15139fi
15140
15141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15144	fi
15145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15148if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15149then :
15150  printf %s "(cached) " >&6
15151else $as_nop
15152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153/* end confdefs.h.  */
15154int i;
15155_ACEOF
15156if ac_fn_c_try_compile "$LINENO"
15157then :
15158  xorg_cv_cc_flag_unused_command_line_argument=yes
15159else $as_nop
15160  xorg_cv_cc_flag_unused_command_line_argument=no
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15163fi
15164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15167	CFLAGS="$xorg_testset_save_CFLAGS"
15168fi
15169
15170found="no"
15171
15172	if test $found = "no" ; then
15173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175		fi
15176
15177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15179		fi
15180
15181		CFLAGS="$CFLAGS -Wlogical-op"
15182
15183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15184printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15185		cacheid=xorg_cv_cc_flag__Wlogical_op
15186		if eval test \${$cacheid+y}
15187then :
15188  printf %s "(cached) " >&6
15189else $as_nop
15190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191/* end confdefs.h.  */
15192int i;
15193int
15194main (void)
15195{
15196
15197  ;
15198  return 0;
15199}
15200_ACEOF
15201if ac_fn_c_try_link "$LINENO"
15202then :
15203  eval $cacheid=yes
15204else $as_nop
15205  eval $cacheid=no
15206fi
15207rm -f core conftest.err conftest.$ac_objext conftest.beam \
15208    conftest$ac_exeext conftest.$ac_ext
15209fi
15210
15211
15212		CFLAGS="$xorg_testset_save_CFLAGS"
15213
15214		eval supported=\$$cacheid
15215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15216printf "%s\n" "$supported" >&6; }
15217		if test "$supported" = "yes" ; then
15218			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15219			found="yes"
15220		fi
15221	fi
15222
15223
15224
15225# These are currently disabled because they are noisy.  They will be enabled
15226# in the future once the codebase is sufficiently modernized to silence
15227# them.  For now, I don't want them to drown out the other warnings.
15228# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15229# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15230# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15231
15232# Turn some warnings into errors, so we don't accidentally get successful builds
15233# when there are problems that should be fixed.
15234
15235if test "x$SELECTIVE_WERROR" = "xyes" ; then
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249xorg_testset_save_CFLAGS="$CFLAGS"
15250
15251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15256then :
15257  printf %s "(cached) " >&6
15258else $as_nop
15259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261int i;
15262_ACEOF
15263if ac_fn_c_try_compile "$LINENO"
15264then :
15265  xorg_cv_cc_flag_unknown_warning_option=yes
15266else $as_nop
15267  xorg_cv_cc_flag_unknown_warning_option=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15270fi
15271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15274	CFLAGS="$xorg_testset_save_CFLAGS"
15275fi
15276
15277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15280	fi
15281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15285then :
15286  printf %s "(cached) " >&6
15287else $as_nop
15288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h.  */
15290int i;
15291_ACEOF
15292if ac_fn_c_try_compile "$LINENO"
15293then :
15294  xorg_cv_cc_flag_unused_command_line_argument=yes
15295else $as_nop
15296  xorg_cv_cc_flag_unused_command_line_argument=no
15297fi
15298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15299fi
15300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15303	CFLAGS="$xorg_testset_save_CFLAGS"
15304fi
15305
15306found="no"
15307
15308	if test $found = "no" ; then
15309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311		fi
15312
15313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315		fi
15316
15317		CFLAGS="$CFLAGS -Werror=implicit"
15318
15319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15320printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15321		cacheid=xorg_cv_cc_flag__Werror_implicit
15322		if eval test \${$cacheid+y}
15323then :
15324  printf %s "(cached) " >&6
15325else $as_nop
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328int i;
15329int
15330main (void)
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"
15338then :
15339  eval $cacheid=yes
15340else $as_nop
15341  eval $cacheid=no
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.beam \
15344    conftest$ac_exeext conftest.$ac_ext
15345fi
15346
15347
15348		CFLAGS="$xorg_testset_save_CFLAGS"
15349
15350		eval supported=\$$cacheid
15351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15352printf "%s\n" "$supported" >&6; }
15353		if test "$supported" = "yes" ; then
15354			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15355			found="yes"
15356		fi
15357	fi
15358
15359	if test $found = "no" ; then
15360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15362		fi
15363
15364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15366		fi
15367
15368		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15369
15370		{ 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
15371printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15372		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15373		if eval test \${$cacheid+y}
15374then :
15375  printf %s "(cached) " >&6
15376else $as_nop
15377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h.  */
15379int i;
15380int
15381main (void)
15382{
15383
15384  ;
15385  return 0;
15386}
15387_ACEOF
15388if ac_fn_c_try_link "$LINENO"
15389then :
15390  eval $cacheid=yes
15391else $as_nop
15392  eval $cacheid=no
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.beam \
15395    conftest$ac_exeext conftest.$ac_ext
15396fi
15397
15398
15399		CFLAGS="$xorg_testset_save_CFLAGS"
15400
15401		eval supported=\$$cacheid
15402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15403printf "%s\n" "$supported" >&6; }
15404		if test "$supported" = "yes" ; then
15405			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15406			found="yes"
15407		fi
15408	fi
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424xorg_testset_save_CFLAGS="$CFLAGS"
15425
15426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15431then :
15432  printf %s "(cached) " >&6
15433else $as_nop
15434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h.  */
15436int i;
15437_ACEOF
15438if ac_fn_c_try_compile "$LINENO"
15439then :
15440  xorg_cv_cc_flag_unknown_warning_option=yes
15441else $as_nop
15442  xorg_cv_cc_flag_unknown_warning_option=no
15443fi
15444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15445fi
15446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15449	CFLAGS="$xorg_testset_save_CFLAGS"
15450fi
15451
15452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15455	fi
15456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15460then :
15461  printf %s "(cached) " >&6
15462else $as_nop
15463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464/* end confdefs.h.  */
15465int i;
15466_ACEOF
15467if ac_fn_c_try_compile "$LINENO"
15468then :
15469  xorg_cv_cc_flag_unused_command_line_argument=yes
15470else $as_nop
15471  xorg_cv_cc_flag_unused_command_line_argument=no
15472fi
15473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15474fi
15475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15478	CFLAGS="$xorg_testset_save_CFLAGS"
15479fi
15480
15481found="no"
15482
15483	if test $found = "no" ; then
15484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15486		fi
15487
15488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490		fi
15491
15492		CFLAGS="$CFLAGS -Werror=nonnull"
15493
15494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15495printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15496		cacheid=xorg_cv_cc_flag__Werror_nonnull
15497		if eval test \${$cacheid+y}
15498then :
15499  printf %s "(cached) " >&6
15500else $as_nop
15501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502/* end confdefs.h.  */
15503int i;
15504int
15505main (void)
15506{
15507
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512if ac_fn_c_try_link "$LINENO"
15513then :
15514  eval $cacheid=yes
15515else $as_nop
15516  eval $cacheid=no
15517fi
15518rm -f core conftest.err conftest.$ac_objext conftest.beam \
15519    conftest$ac_exeext conftest.$ac_ext
15520fi
15521
15522
15523		CFLAGS="$xorg_testset_save_CFLAGS"
15524
15525		eval supported=\$$cacheid
15526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15527printf "%s\n" "$supported" >&6; }
15528		if test "$supported" = "yes" ; then
15529			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15530			found="yes"
15531		fi
15532	fi
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548xorg_testset_save_CFLAGS="$CFLAGS"
15549
15550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15555then :
15556  printf %s "(cached) " >&6
15557else $as_nop
15558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559/* end confdefs.h.  */
15560int i;
15561_ACEOF
15562if ac_fn_c_try_compile "$LINENO"
15563then :
15564  xorg_cv_cc_flag_unknown_warning_option=yes
15565else $as_nop
15566  xorg_cv_cc_flag_unknown_warning_option=no
15567fi
15568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15569fi
15570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15573	CFLAGS="$xorg_testset_save_CFLAGS"
15574fi
15575
15576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15579	fi
15580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15584then :
15585  printf %s "(cached) " >&6
15586else $as_nop
15587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588/* end confdefs.h.  */
15589int i;
15590_ACEOF
15591if ac_fn_c_try_compile "$LINENO"
15592then :
15593  xorg_cv_cc_flag_unused_command_line_argument=yes
15594else $as_nop
15595  xorg_cv_cc_flag_unused_command_line_argument=no
15596fi
15597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15598fi
15599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15602	CFLAGS="$xorg_testset_save_CFLAGS"
15603fi
15604
15605found="no"
15606
15607	if test $found = "no" ; then
15608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610		fi
15611
15612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15614		fi
15615
15616		CFLAGS="$CFLAGS -Werror=init-self"
15617
15618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15619printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15620		cacheid=xorg_cv_cc_flag__Werror_init_self
15621		if eval test \${$cacheid+y}
15622then :
15623  printf %s "(cached) " >&6
15624else $as_nop
15625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626/* end confdefs.h.  */
15627int i;
15628int
15629main (void)
15630{
15631
15632  ;
15633  return 0;
15634}
15635_ACEOF
15636if ac_fn_c_try_link "$LINENO"
15637then :
15638  eval $cacheid=yes
15639else $as_nop
15640  eval $cacheid=no
15641fi
15642rm -f core conftest.err conftest.$ac_objext conftest.beam \
15643    conftest$ac_exeext conftest.$ac_ext
15644fi
15645
15646
15647		CFLAGS="$xorg_testset_save_CFLAGS"
15648
15649		eval supported=\$$cacheid
15650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15651printf "%s\n" "$supported" >&6; }
15652		if test "$supported" = "yes" ; then
15653			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15654			found="yes"
15655		fi
15656	fi
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672xorg_testset_save_CFLAGS="$CFLAGS"
15673
15674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15679then :
15680  printf %s "(cached) " >&6
15681else $as_nop
15682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h.  */
15684int i;
15685_ACEOF
15686if ac_fn_c_try_compile "$LINENO"
15687then :
15688  xorg_cv_cc_flag_unknown_warning_option=yes
15689else $as_nop
15690  xorg_cv_cc_flag_unknown_warning_option=no
15691fi
15692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15693fi
15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15697	CFLAGS="$xorg_testset_save_CFLAGS"
15698fi
15699
15700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703	fi
15704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15708then :
15709  printf %s "(cached) " >&6
15710else $as_nop
15711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713int i;
15714_ACEOF
15715if ac_fn_c_try_compile "$LINENO"
15716then :
15717  xorg_cv_cc_flag_unused_command_line_argument=yes
15718else $as_nop
15719  xorg_cv_cc_flag_unused_command_line_argument=no
15720fi
15721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15722fi
15723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15726	CFLAGS="$xorg_testset_save_CFLAGS"
15727fi
15728
15729found="no"
15730
15731	if test $found = "no" ; then
15732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15734		fi
15735
15736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15738		fi
15739
15740		CFLAGS="$CFLAGS -Werror=main"
15741
15742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15743printf %s "checking if $CC supports -Werror=main... " >&6; }
15744		cacheid=xorg_cv_cc_flag__Werror_main
15745		if eval test \${$cacheid+y}
15746then :
15747  printf %s "(cached) " >&6
15748else $as_nop
15749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751int i;
15752int
15753main (void)
15754{
15755
15756  ;
15757  return 0;
15758}
15759_ACEOF
15760if ac_fn_c_try_link "$LINENO"
15761then :
15762  eval $cacheid=yes
15763else $as_nop
15764  eval $cacheid=no
15765fi
15766rm -f core conftest.err conftest.$ac_objext conftest.beam \
15767    conftest$ac_exeext conftest.$ac_ext
15768fi
15769
15770
15771		CFLAGS="$xorg_testset_save_CFLAGS"
15772
15773		eval supported=\$$cacheid
15774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15775printf "%s\n" "$supported" >&6; }
15776		if test "$supported" = "yes" ; then
15777			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15778			found="yes"
15779		fi
15780	fi
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796xorg_testset_save_CFLAGS="$CFLAGS"
15797
15798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15802if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15803then :
15804  printf %s "(cached) " >&6
15805else $as_nop
15806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h.  */
15808int i;
15809_ACEOF
15810if ac_fn_c_try_compile "$LINENO"
15811then :
15812  xorg_cv_cc_flag_unknown_warning_option=yes
15813else $as_nop
15814  xorg_cv_cc_flag_unknown_warning_option=no
15815fi
15816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15817fi
15818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15821	CFLAGS="$xorg_testset_save_CFLAGS"
15822fi
15823
15824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15827	fi
15828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15831if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15832then :
15833  printf %s "(cached) " >&6
15834else $as_nop
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837int i;
15838_ACEOF
15839if ac_fn_c_try_compile "$LINENO"
15840then :
15841  xorg_cv_cc_flag_unused_command_line_argument=yes
15842else $as_nop
15843  xorg_cv_cc_flag_unused_command_line_argument=no
15844fi
15845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15846fi
15847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15850	CFLAGS="$xorg_testset_save_CFLAGS"
15851fi
15852
15853found="no"
15854
15855	if test $found = "no" ; then
15856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15858		fi
15859
15860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862		fi
15863
15864		CFLAGS="$CFLAGS -Werror=missing-braces"
15865
15866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15867printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15868		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15869		if eval test \${$cacheid+y}
15870then :
15871  printf %s "(cached) " >&6
15872else $as_nop
15873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874/* end confdefs.h.  */
15875int i;
15876int
15877main (void)
15878{
15879
15880  ;
15881  return 0;
15882}
15883_ACEOF
15884if ac_fn_c_try_link "$LINENO"
15885then :
15886  eval $cacheid=yes
15887else $as_nop
15888  eval $cacheid=no
15889fi
15890rm -f core conftest.err conftest.$ac_objext conftest.beam \
15891    conftest$ac_exeext conftest.$ac_ext
15892fi
15893
15894
15895		CFLAGS="$xorg_testset_save_CFLAGS"
15896
15897		eval supported=\$$cacheid
15898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15899printf "%s\n" "$supported" >&6; }
15900		if test "$supported" = "yes" ; then
15901			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15902			found="yes"
15903		fi
15904	fi
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920xorg_testset_save_CFLAGS="$CFLAGS"
15921
15922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15927then :
15928  printf %s "(cached) " >&6
15929else $as_nop
15930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h.  */
15932int i;
15933_ACEOF
15934if ac_fn_c_try_compile "$LINENO"
15935then :
15936  xorg_cv_cc_flag_unknown_warning_option=yes
15937else $as_nop
15938  xorg_cv_cc_flag_unknown_warning_option=no
15939fi
15940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15941fi
15942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15945	CFLAGS="$xorg_testset_save_CFLAGS"
15946fi
15947
15948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15951	fi
15952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15956then :
15957  printf %s "(cached) " >&6
15958else $as_nop
15959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h.  */
15961int i;
15962_ACEOF
15963if ac_fn_c_try_compile "$LINENO"
15964then :
15965  xorg_cv_cc_flag_unused_command_line_argument=yes
15966else $as_nop
15967  xorg_cv_cc_flag_unused_command_line_argument=no
15968fi
15969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15970fi
15971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15974	CFLAGS="$xorg_testset_save_CFLAGS"
15975fi
15976
15977found="no"
15978
15979	if test $found = "no" ; then
15980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15982		fi
15983
15984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15986		fi
15987
15988		CFLAGS="$CFLAGS -Werror=sequence-point"
15989
15990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15991printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15992		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15993		if eval test \${$cacheid+y}
15994then :
15995  printf %s "(cached) " >&6
15996else $as_nop
15997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998/* end confdefs.h.  */
15999int i;
16000int
16001main (void)
16002{
16003
16004  ;
16005  return 0;
16006}
16007_ACEOF
16008if ac_fn_c_try_link "$LINENO"
16009then :
16010  eval $cacheid=yes
16011else $as_nop
16012  eval $cacheid=no
16013fi
16014rm -f core conftest.err conftest.$ac_objext conftest.beam \
16015    conftest$ac_exeext conftest.$ac_ext
16016fi
16017
16018
16019		CFLAGS="$xorg_testset_save_CFLAGS"
16020
16021		eval supported=\$$cacheid
16022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16023printf "%s\n" "$supported" >&6; }
16024		if test "$supported" = "yes" ; then
16025			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16026			found="yes"
16027		fi
16028	fi
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044xorg_testset_save_CFLAGS="$CFLAGS"
16045
16046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16051then :
16052  printf %s "(cached) " >&6
16053else $as_nop
16054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055/* end confdefs.h.  */
16056int i;
16057_ACEOF
16058if ac_fn_c_try_compile "$LINENO"
16059then :
16060  xorg_cv_cc_flag_unknown_warning_option=yes
16061else $as_nop
16062  xorg_cv_cc_flag_unknown_warning_option=no
16063fi
16064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16065fi
16066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16069	CFLAGS="$xorg_testset_save_CFLAGS"
16070fi
16071
16072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16075	fi
16076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16080then :
16081  printf %s "(cached) " >&6
16082else $as_nop
16083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084/* end confdefs.h.  */
16085int i;
16086_ACEOF
16087if ac_fn_c_try_compile "$LINENO"
16088then :
16089  xorg_cv_cc_flag_unused_command_line_argument=yes
16090else $as_nop
16091  xorg_cv_cc_flag_unused_command_line_argument=no
16092fi
16093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16094fi
16095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16098	CFLAGS="$xorg_testset_save_CFLAGS"
16099fi
16100
16101found="no"
16102
16103	if test $found = "no" ; then
16104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106		fi
16107
16108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16110		fi
16111
16112		CFLAGS="$CFLAGS -Werror=return-type"
16113
16114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16115printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16116		cacheid=xorg_cv_cc_flag__Werror_return_type
16117		if eval test \${$cacheid+y}
16118then :
16119  printf %s "(cached) " >&6
16120else $as_nop
16121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122/* end confdefs.h.  */
16123int i;
16124int
16125main (void)
16126{
16127
16128  ;
16129  return 0;
16130}
16131_ACEOF
16132if ac_fn_c_try_link "$LINENO"
16133then :
16134  eval $cacheid=yes
16135else $as_nop
16136  eval $cacheid=no
16137fi
16138rm -f core conftest.err conftest.$ac_objext conftest.beam \
16139    conftest$ac_exeext conftest.$ac_ext
16140fi
16141
16142
16143		CFLAGS="$xorg_testset_save_CFLAGS"
16144
16145		eval supported=\$$cacheid
16146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16147printf "%s\n" "$supported" >&6; }
16148		if test "$supported" = "yes" ; then
16149			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16150			found="yes"
16151		fi
16152	fi
16153
16154	if test $found = "no" ; then
16155		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16157		fi
16158
16159		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161		fi
16162
16163		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16164
16165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16166printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16167		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16168		if eval test \${$cacheid+y}
16169then :
16170  printf %s "(cached) " >&6
16171else $as_nop
16172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173/* end confdefs.h.  */
16174int i;
16175int
16176main (void)
16177{
16178
16179  ;
16180  return 0;
16181}
16182_ACEOF
16183if ac_fn_c_try_link "$LINENO"
16184then :
16185  eval $cacheid=yes
16186else $as_nop
16187  eval $cacheid=no
16188fi
16189rm -f core conftest.err conftest.$ac_objext conftest.beam \
16190    conftest$ac_exeext conftest.$ac_ext
16191fi
16192
16193
16194		CFLAGS="$xorg_testset_save_CFLAGS"
16195
16196		eval supported=\$$cacheid
16197		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16198printf "%s\n" "$supported" >&6; }
16199		if test "$supported" = "yes" ; then
16200			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16201			found="yes"
16202		fi
16203	fi
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219xorg_testset_save_CFLAGS="$CFLAGS"
16220
16221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16223	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16225if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16226then :
16227  printf %s "(cached) " >&6
16228else $as_nop
16229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231int i;
16232_ACEOF
16233if ac_fn_c_try_compile "$LINENO"
16234then :
16235  xorg_cv_cc_flag_unknown_warning_option=yes
16236else $as_nop
16237  xorg_cv_cc_flag_unknown_warning_option=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16240fi
16241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16243	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16244	CFLAGS="$xorg_testset_save_CFLAGS"
16245fi
16246
16247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16248	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16249		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250	fi
16251	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16254if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16255then :
16256  printf %s "(cached) " >&6
16257else $as_nop
16258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h.  */
16260int i;
16261_ACEOF
16262if ac_fn_c_try_compile "$LINENO"
16263then :
16264  xorg_cv_cc_flag_unused_command_line_argument=yes
16265else $as_nop
16266  xorg_cv_cc_flag_unused_command_line_argument=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16269fi
16270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16273	CFLAGS="$xorg_testset_save_CFLAGS"
16274fi
16275
16276found="no"
16277
16278	if test $found = "no" ; then
16279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281		fi
16282
16283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285		fi
16286
16287		CFLAGS="$CFLAGS -Werror=trigraphs"
16288
16289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16290printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16291		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16292		if eval test \${$cacheid+y}
16293then :
16294  printf %s "(cached) " >&6
16295else $as_nop
16296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h.  */
16298int i;
16299int
16300main (void)
16301{
16302
16303  ;
16304  return 0;
16305}
16306_ACEOF
16307if ac_fn_c_try_link "$LINENO"
16308then :
16309  eval $cacheid=yes
16310else $as_nop
16311  eval $cacheid=no
16312fi
16313rm -f core conftest.err conftest.$ac_objext conftest.beam \
16314    conftest$ac_exeext conftest.$ac_ext
16315fi
16316
16317
16318		CFLAGS="$xorg_testset_save_CFLAGS"
16319
16320		eval supported=\$$cacheid
16321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16322printf "%s\n" "$supported" >&6; }
16323		if test "$supported" = "yes" ; then
16324			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16325			found="yes"
16326		fi
16327	fi
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343xorg_testset_save_CFLAGS="$CFLAGS"
16344
16345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16350then :
16351  printf %s "(cached) " >&6
16352else $as_nop
16353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355int i;
16356_ACEOF
16357if ac_fn_c_try_compile "$LINENO"
16358then :
16359  xorg_cv_cc_flag_unknown_warning_option=yes
16360else $as_nop
16361  xorg_cv_cc_flag_unknown_warning_option=no
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16364fi
16365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16368	CFLAGS="$xorg_testset_save_CFLAGS"
16369fi
16370
16371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16374	fi
16375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16378if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16379then :
16380  printf %s "(cached) " >&6
16381else $as_nop
16382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h.  */
16384int i;
16385_ACEOF
16386if ac_fn_c_try_compile "$LINENO"
16387then :
16388  xorg_cv_cc_flag_unused_command_line_argument=yes
16389else $as_nop
16390  xorg_cv_cc_flag_unused_command_line_argument=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16393fi
16394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400found="no"
16401
16402	if test $found = "no" ; then
16403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405		fi
16406
16407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409		fi
16410
16411		CFLAGS="$CFLAGS -Werror=array-bounds"
16412
16413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16414printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16415		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16416		if eval test \${$cacheid+y}
16417then :
16418  printf %s "(cached) " >&6
16419else $as_nop
16420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422int i;
16423int
16424main (void)
16425{
16426
16427  ;
16428  return 0;
16429}
16430_ACEOF
16431if ac_fn_c_try_link "$LINENO"
16432then :
16433  eval $cacheid=yes
16434else $as_nop
16435  eval $cacheid=no
16436fi
16437rm -f core conftest.err conftest.$ac_objext conftest.beam \
16438    conftest$ac_exeext conftest.$ac_ext
16439fi
16440
16441
16442		CFLAGS="$xorg_testset_save_CFLAGS"
16443
16444		eval supported=\$$cacheid
16445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16446printf "%s\n" "$supported" >&6; }
16447		if test "$supported" = "yes" ; then
16448			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16449			found="yes"
16450		fi
16451	fi
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467xorg_testset_save_CFLAGS="$CFLAGS"
16468
16469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16473if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16474then :
16475  printf %s "(cached) " >&6
16476else $as_nop
16477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479int i;
16480_ACEOF
16481if ac_fn_c_try_compile "$LINENO"
16482then :
16483  xorg_cv_cc_flag_unknown_warning_option=yes
16484else $as_nop
16485  xorg_cv_cc_flag_unknown_warning_option=no
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16488fi
16489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16492	CFLAGS="$xorg_testset_save_CFLAGS"
16493fi
16494
16495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16498	fi
16499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16502if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16503then :
16504  printf %s "(cached) " >&6
16505else $as_nop
16506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507/* end confdefs.h.  */
16508int i;
16509_ACEOF
16510if ac_fn_c_try_compile "$LINENO"
16511then :
16512  xorg_cv_cc_flag_unused_command_line_argument=yes
16513else $as_nop
16514  xorg_cv_cc_flag_unused_command_line_argument=no
16515fi
16516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16517fi
16518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16521	CFLAGS="$xorg_testset_save_CFLAGS"
16522fi
16523
16524found="no"
16525
16526	if test $found = "no" ; then
16527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16529		fi
16530
16531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533		fi
16534
16535		CFLAGS="$CFLAGS -Werror=write-strings"
16536
16537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16538printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16539		cacheid=xorg_cv_cc_flag__Werror_write_strings
16540		if eval test \${$cacheid+y}
16541then :
16542  printf %s "(cached) " >&6
16543else $as_nop
16544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545/* end confdefs.h.  */
16546int i;
16547int
16548main (void)
16549{
16550
16551  ;
16552  return 0;
16553}
16554_ACEOF
16555if ac_fn_c_try_link "$LINENO"
16556then :
16557  eval $cacheid=yes
16558else $as_nop
16559  eval $cacheid=no
16560fi
16561rm -f core conftest.err conftest.$ac_objext conftest.beam \
16562    conftest$ac_exeext conftest.$ac_ext
16563fi
16564
16565
16566		CFLAGS="$xorg_testset_save_CFLAGS"
16567
16568		eval supported=\$$cacheid
16569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16570printf "%s\n" "$supported" >&6; }
16571		if test "$supported" = "yes" ; then
16572			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16573			found="yes"
16574		fi
16575	fi
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591xorg_testset_save_CFLAGS="$CFLAGS"
16592
16593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16596printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16597if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16598then :
16599  printf %s "(cached) " >&6
16600else $as_nop
16601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h.  */
16603int i;
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"
16606then :
16607  xorg_cv_cc_flag_unknown_warning_option=yes
16608else $as_nop
16609  xorg_cv_cc_flag_unknown_warning_option=no
16610fi
16611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16612fi
16613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16616	CFLAGS="$xorg_testset_save_CFLAGS"
16617fi
16618
16619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622	fi
16623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16626if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16627then :
16628  printf %s "(cached) " >&6
16629else $as_nop
16630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631/* end confdefs.h.  */
16632int i;
16633_ACEOF
16634if ac_fn_c_try_compile "$LINENO"
16635then :
16636  xorg_cv_cc_flag_unused_command_line_argument=yes
16637else $as_nop
16638  xorg_cv_cc_flag_unused_command_line_argument=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16641fi
16642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16645	CFLAGS="$xorg_testset_save_CFLAGS"
16646fi
16647
16648found="no"
16649
16650	if test $found = "no" ; then
16651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16653		fi
16654
16655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16657		fi
16658
16659		CFLAGS="$CFLAGS -Werror=address"
16660
16661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16662printf %s "checking if $CC supports -Werror=address... " >&6; }
16663		cacheid=xorg_cv_cc_flag__Werror_address
16664		if eval test \${$cacheid+y}
16665then :
16666  printf %s "(cached) " >&6
16667else $as_nop
16668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669/* end confdefs.h.  */
16670int i;
16671int
16672main (void)
16673{
16674
16675  ;
16676  return 0;
16677}
16678_ACEOF
16679if ac_fn_c_try_link "$LINENO"
16680then :
16681  eval $cacheid=yes
16682else $as_nop
16683  eval $cacheid=no
16684fi
16685rm -f core conftest.err conftest.$ac_objext conftest.beam \
16686    conftest$ac_exeext conftest.$ac_ext
16687fi
16688
16689
16690		CFLAGS="$xorg_testset_save_CFLAGS"
16691
16692		eval supported=\$$cacheid
16693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16694printf "%s\n" "$supported" >&6; }
16695		if test "$supported" = "yes" ; then
16696			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16697			found="yes"
16698		fi
16699	fi
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715xorg_testset_save_CFLAGS="$CFLAGS"
16716
16717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16721if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16722then :
16723  printf %s "(cached) " >&6
16724else $as_nop
16725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726/* end confdefs.h.  */
16727int i;
16728_ACEOF
16729if ac_fn_c_try_compile "$LINENO"
16730then :
16731  xorg_cv_cc_flag_unknown_warning_option=yes
16732else $as_nop
16733  xorg_cv_cc_flag_unknown_warning_option=no
16734fi
16735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16736fi
16737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16740	CFLAGS="$xorg_testset_save_CFLAGS"
16741fi
16742
16743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16746	fi
16747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16751then :
16752  printf %s "(cached) " >&6
16753else $as_nop
16754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755/* end confdefs.h.  */
16756int i;
16757_ACEOF
16758if ac_fn_c_try_compile "$LINENO"
16759then :
16760  xorg_cv_cc_flag_unused_command_line_argument=yes
16761else $as_nop
16762  xorg_cv_cc_flag_unused_command_line_argument=no
16763fi
16764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16765fi
16766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16769	CFLAGS="$xorg_testset_save_CFLAGS"
16770fi
16771
16772found="no"
16773
16774	if test $found = "no" ; then
16775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777		fi
16778
16779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16781		fi
16782
16783		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16784
16785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16786printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16787		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16788		if eval test \${$cacheid+y}
16789then :
16790  printf %s "(cached) " >&6
16791else $as_nop
16792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h.  */
16794int i;
16795int
16796main (void)
16797{
16798
16799  ;
16800  return 0;
16801}
16802_ACEOF
16803if ac_fn_c_try_link "$LINENO"
16804then :
16805  eval $cacheid=yes
16806else $as_nop
16807  eval $cacheid=no
16808fi
16809rm -f core conftest.err conftest.$ac_objext conftest.beam \
16810    conftest$ac_exeext conftest.$ac_ext
16811fi
16812
16813
16814		CFLAGS="$xorg_testset_save_CFLAGS"
16815
16816		eval supported=\$$cacheid
16817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16818printf "%s\n" "$supported" >&6; }
16819		if test "$supported" = "yes" ; then
16820			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16821			found="yes"
16822		fi
16823	fi
16824
16825	if test $found = "no" ; then
16826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16828		fi
16829
16830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16832		fi
16833
16834		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16835
16836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16837printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16838		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16839		if eval test \${$cacheid+y}
16840then :
16841  printf %s "(cached) " >&6
16842else $as_nop
16843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844/* end confdefs.h.  */
16845int i;
16846int
16847main (void)
16848{
16849
16850  ;
16851  return 0;
16852}
16853_ACEOF
16854if ac_fn_c_try_link "$LINENO"
16855then :
16856  eval $cacheid=yes
16857else $as_nop
16858  eval $cacheid=no
16859fi
16860rm -f core conftest.err conftest.$ac_objext conftest.beam \
16861    conftest$ac_exeext conftest.$ac_ext
16862fi
16863
16864
16865		CFLAGS="$xorg_testset_save_CFLAGS"
16866
16867		eval supported=\$$cacheid
16868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16869printf "%s\n" "$supported" >&6; }
16870		if test "$supported" = "yes" ; then
16871			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16872			found="yes"
16873		fi
16874	fi
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890xorg_testset_save_CFLAGS="$CFLAGS"
16891
16892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16897then :
16898  printf %s "(cached) " >&6
16899else $as_nop
16900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902int i;
16903_ACEOF
16904if ac_fn_c_try_compile "$LINENO"
16905then :
16906  xorg_cv_cc_flag_unknown_warning_option=yes
16907else $as_nop
16908  xorg_cv_cc_flag_unknown_warning_option=no
16909fi
16910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16911fi
16912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16915	CFLAGS="$xorg_testset_save_CFLAGS"
16916fi
16917
16918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16921	fi
16922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16926then :
16927  printf %s "(cached) " >&6
16928else $as_nop
16929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930/* end confdefs.h.  */
16931int i;
16932_ACEOF
16933if ac_fn_c_try_compile "$LINENO"
16934then :
16935  xorg_cv_cc_flag_unused_command_line_argument=yes
16936else $as_nop
16937  xorg_cv_cc_flag_unused_command_line_argument=no
16938fi
16939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16940fi
16941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16944	CFLAGS="$xorg_testset_save_CFLAGS"
16945fi
16946
16947found="no"
16948
16949	if test $found = "no" ; then
16950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16952		fi
16953
16954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16956		fi
16957
16958		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16959
16960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16961printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16962		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16963		if eval test \${$cacheid+y}
16964then :
16965  printf %s "(cached) " >&6
16966else $as_nop
16967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h.  */
16969int i;
16970int
16971main (void)
16972{
16973
16974  ;
16975  return 0;
16976}
16977_ACEOF
16978if ac_fn_c_try_link "$LINENO"
16979then :
16980  eval $cacheid=yes
16981else $as_nop
16982  eval $cacheid=no
16983fi
16984rm -f core conftest.err conftest.$ac_objext conftest.beam \
16985    conftest$ac_exeext conftest.$ac_ext
16986fi
16987
16988
16989		CFLAGS="$xorg_testset_save_CFLAGS"
16990
16991		eval supported=\$$cacheid
16992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16993printf "%s\n" "$supported" >&6; }
16994		if test "$supported" = "yes" ; then
16995			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16996			found="yes"
16997		fi
16998	fi
16999
17000 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17001else
17002{ 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
17003printf "%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;}
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017xorg_testset_save_CFLAGS="$CFLAGS"
17018
17019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17024then :
17025  printf %s "(cached) " >&6
17026else $as_nop
17027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028/* end confdefs.h.  */
17029int i;
17030_ACEOF
17031if ac_fn_c_try_compile "$LINENO"
17032then :
17033  xorg_cv_cc_flag_unknown_warning_option=yes
17034else $as_nop
17035  xorg_cv_cc_flag_unknown_warning_option=no
17036fi
17037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17038fi
17039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17042	CFLAGS="$xorg_testset_save_CFLAGS"
17043fi
17044
17045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17048	fi
17049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17053then :
17054  printf %s "(cached) " >&6
17055else $as_nop
17056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057/* end confdefs.h.  */
17058int i;
17059_ACEOF
17060if ac_fn_c_try_compile "$LINENO"
17061then :
17062  xorg_cv_cc_flag_unused_command_line_argument=yes
17063else $as_nop
17064  xorg_cv_cc_flag_unused_command_line_argument=no
17065fi
17066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17067fi
17068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17071	CFLAGS="$xorg_testset_save_CFLAGS"
17072fi
17073
17074found="no"
17075
17076	if test $found = "no" ; then
17077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17079		fi
17080
17081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17083		fi
17084
17085		CFLAGS="$CFLAGS -Wimplicit"
17086
17087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17088printf %s "checking if $CC supports -Wimplicit... " >&6; }
17089		cacheid=xorg_cv_cc_flag__Wimplicit
17090		if eval test \${$cacheid+y}
17091then :
17092  printf %s "(cached) " >&6
17093else $as_nop
17094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095/* end confdefs.h.  */
17096int i;
17097int
17098main (void)
17099{
17100
17101  ;
17102  return 0;
17103}
17104_ACEOF
17105if ac_fn_c_try_link "$LINENO"
17106then :
17107  eval $cacheid=yes
17108else $as_nop
17109  eval $cacheid=no
17110fi
17111rm -f core conftest.err conftest.$ac_objext conftest.beam \
17112    conftest$ac_exeext conftest.$ac_ext
17113fi
17114
17115
17116		CFLAGS="$xorg_testset_save_CFLAGS"
17117
17118		eval supported=\$$cacheid
17119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120printf "%s\n" "$supported" >&6; }
17121		if test "$supported" = "yes" ; then
17122			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17123			found="yes"
17124		fi
17125	fi
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141xorg_testset_save_CFLAGS="$CFLAGS"
17142
17143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17148then :
17149  printf %s "(cached) " >&6
17150else $as_nop
17151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152/* end confdefs.h.  */
17153int i;
17154_ACEOF
17155if ac_fn_c_try_compile "$LINENO"
17156then :
17157  xorg_cv_cc_flag_unknown_warning_option=yes
17158else $as_nop
17159  xorg_cv_cc_flag_unknown_warning_option=no
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17162fi
17163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17166	CFLAGS="$xorg_testset_save_CFLAGS"
17167fi
17168
17169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17172	fi
17173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17177then :
17178  printf %s "(cached) " >&6
17179else $as_nop
17180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181/* end confdefs.h.  */
17182int i;
17183_ACEOF
17184if ac_fn_c_try_compile "$LINENO"
17185then :
17186  xorg_cv_cc_flag_unused_command_line_argument=yes
17187else $as_nop
17188  xorg_cv_cc_flag_unused_command_line_argument=no
17189fi
17190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17191fi
17192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17195	CFLAGS="$xorg_testset_save_CFLAGS"
17196fi
17197
17198found="no"
17199
17200	if test $found = "no" ; then
17201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17203		fi
17204
17205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207		fi
17208
17209		CFLAGS="$CFLAGS -Wnonnull"
17210
17211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17212printf %s "checking if $CC supports -Wnonnull... " >&6; }
17213		cacheid=xorg_cv_cc_flag__Wnonnull
17214		if eval test \${$cacheid+y}
17215then :
17216  printf %s "(cached) " >&6
17217else $as_nop
17218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220int i;
17221int
17222main (void)
17223{
17224
17225  ;
17226  return 0;
17227}
17228_ACEOF
17229if ac_fn_c_try_link "$LINENO"
17230then :
17231  eval $cacheid=yes
17232else $as_nop
17233  eval $cacheid=no
17234fi
17235rm -f core conftest.err conftest.$ac_objext conftest.beam \
17236    conftest$ac_exeext conftest.$ac_ext
17237fi
17238
17239
17240		CFLAGS="$xorg_testset_save_CFLAGS"
17241
17242		eval supported=\$$cacheid
17243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17244printf "%s\n" "$supported" >&6; }
17245		if test "$supported" = "yes" ; then
17246			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17247			found="yes"
17248		fi
17249	fi
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265xorg_testset_save_CFLAGS="$CFLAGS"
17266
17267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17272then :
17273  printf %s "(cached) " >&6
17274else $as_nop
17275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276/* end confdefs.h.  */
17277int i;
17278_ACEOF
17279if ac_fn_c_try_compile "$LINENO"
17280then :
17281  xorg_cv_cc_flag_unknown_warning_option=yes
17282else $as_nop
17283  xorg_cv_cc_flag_unknown_warning_option=no
17284fi
17285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17286fi
17287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17290	CFLAGS="$xorg_testset_save_CFLAGS"
17291fi
17292
17293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17296	fi
17297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17301then :
17302  printf %s "(cached) " >&6
17303else $as_nop
17304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305/* end confdefs.h.  */
17306int i;
17307_ACEOF
17308if ac_fn_c_try_compile "$LINENO"
17309then :
17310  xorg_cv_cc_flag_unused_command_line_argument=yes
17311else $as_nop
17312  xorg_cv_cc_flag_unused_command_line_argument=no
17313fi
17314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17315fi
17316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17319	CFLAGS="$xorg_testset_save_CFLAGS"
17320fi
17321
17322found="no"
17323
17324	if test $found = "no" ; then
17325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17327		fi
17328
17329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331		fi
17332
17333		CFLAGS="$CFLAGS -Winit-self"
17334
17335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17336printf %s "checking if $CC supports -Winit-self... " >&6; }
17337		cacheid=xorg_cv_cc_flag__Winit_self
17338		if eval test \${$cacheid+y}
17339then :
17340  printf %s "(cached) " >&6
17341else $as_nop
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344int i;
17345int
17346main (void)
17347{
17348
17349  ;
17350  return 0;
17351}
17352_ACEOF
17353if ac_fn_c_try_link "$LINENO"
17354then :
17355  eval $cacheid=yes
17356else $as_nop
17357  eval $cacheid=no
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.beam \
17360    conftest$ac_exeext conftest.$ac_ext
17361fi
17362
17363
17364		CFLAGS="$xorg_testset_save_CFLAGS"
17365
17366		eval supported=\$$cacheid
17367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17368printf "%s\n" "$supported" >&6; }
17369		if test "$supported" = "yes" ; then
17370			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17371			found="yes"
17372		fi
17373	fi
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389xorg_testset_save_CFLAGS="$CFLAGS"
17390
17391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17393	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17395if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17396then :
17397  printf %s "(cached) " >&6
17398else $as_nop
17399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400/* end confdefs.h.  */
17401int i;
17402_ACEOF
17403if ac_fn_c_try_compile "$LINENO"
17404then :
17405  xorg_cv_cc_flag_unknown_warning_option=yes
17406else $as_nop
17407  xorg_cv_cc_flag_unknown_warning_option=no
17408fi
17409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17410fi
17411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414	CFLAGS="$xorg_testset_save_CFLAGS"
17415fi
17416
17417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17420	fi
17421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17425then :
17426  printf %s "(cached) " >&6
17427else $as_nop
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430int i;
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"
17433then :
17434  xorg_cv_cc_flag_unused_command_line_argument=yes
17435else $as_nop
17436  xorg_cv_cc_flag_unused_command_line_argument=no
17437fi
17438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17439fi
17440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17443	CFLAGS="$xorg_testset_save_CFLAGS"
17444fi
17445
17446found="no"
17447
17448	if test $found = "no" ; then
17449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17451		fi
17452
17453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17455		fi
17456
17457		CFLAGS="$CFLAGS -Wmain"
17458
17459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17460printf %s "checking if $CC supports -Wmain... " >&6; }
17461		cacheid=xorg_cv_cc_flag__Wmain
17462		if eval test \${$cacheid+y}
17463then :
17464  printf %s "(cached) " >&6
17465else $as_nop
17466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467/* end confdefs.h.  */
17468int i;
17469int
17470main (void)
17471{
17472
17473  ;
17474  return 0;
17475}
17476_ACEOF
17477if ac_fn_c_try_link "$LINENO"
17478then :
17479  eval $cacheid=yes
17480else $as_nop
17481  eval $cacheid=no
17482fi
17483rm -f core conftest.err conftest.$ac_objext conftest.beam \
17484    conftest$ac_exeext conftest.$ac_ext
17485fi
17486
17487
17488		CFLAGS="$xorg_testset_save_CFLAGS"
17489
17490		eval supported=\$$cacheid
17491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17492printf "%s\n" "$supported" >&6; }
17493		if test "$supported" = "yes" ; then
17494			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17495			found="yes"
17496		fi
17497	fi
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513xorg_testset_save_CFLAGS="$CFLAGS"
17514
17515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17517	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17519if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17520then :
17521  printf %s "(cached) " >&6
17522else $as_nop
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525int i;
17526_ACEOF
17527if ac_fn_c_try_compile "$LINENO"
17528then :
17529  xorg_cv_cc_flag_unknown_warning_option=yes
17530else $as_nop
17531  xorg_cv_cc_flag_unknown_warning_option=no
17532fi
17533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17534fi
17535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17537	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17538	CFLAGS="$xorg_testset_save_CFLAGS"
17539fi
17540
17541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17542	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17543		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17544	fi
17545	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17546	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17548if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17549then :
17550  printf %s "(cached) " >&6
17551else $as_nop
17552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553/* end confdefs.h.  */
17554int i;
17555_ACEOF
17556if ac_fn_c_try_compile "$LINENO"
17557then :
17558  xorg_cv_cc_flag_unused_command_line_argument=yes
17559else $as_nop
17560  xorg_cv_cc_flag_unused_command_line_argument=no
17561fi
17562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17563fi
17564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17566	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17567	CFLAGS="$xorg_testset_save_CFLAGS"
17568fi
17569
17570found="no"
17571
17572	if test $found = "no" ; then
17573		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17574			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17575		fi
17576
17577		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17578			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17579		fi
17580
17581		CFLAGS="$CFLAGS -Wmissing-braces"
17582
17583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17584printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17585		cacheid=xorg_cv_cc_flag__Wmissing_braces
17586		if eval test \${$cacheid+y}
17587then :
17588  printf %s "(cached) " >&6
17589else $as_nop
17590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591/* end confdefs.h.  */
17592int i;
17593int
17594main (void)
17595{
17596
17597  ;
17598  return 0;
17599}
17600_ACEOF
17601if ac_fn_c_try_link "$LINENO"
17602then :
17603  eval $cacheid=yes
17604else $as_nop
17605  eval $cacheid=no
17606fi
17607rm -f core conftest.err conftest.$ac_objext conftest.beam \
17608    conftest$ac_exeext conftest.$ac_ext
17609fi
17610
17611
17612		CFLAGS="$xorg_testset_save_CFLAGS"
17613
17614		eval supported=\$$cacheid
17615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17616printf "%s\n" "$supported" >&6; }
17617		if test "$supported" = "yes" ; then
17618			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17619			found="yes"
17620		fi
17621	fi
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637xorg_testset_save_CFLAGS="$CFLAGS"
17638
17639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17640	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17643if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17644then :
17645  printf %s "(cached) " >&6
17646else $as_nop
17647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648/* end confdefs.h.  */
17649int i;
17650_ACEOF
17651if ac_fn_c_try_compile "$LINENO"
17652then :
17653  xorg_cv_cc_flag_unknown_warning_option=yes
17654else $as_nop
17655  xorg_cv_cc_flag_unknown_warning_option=no
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17658fi
17659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17662	CFLAGS="$xorg_testset_save_CFLAGS"
17663fi
17664
17665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17668	fi
17669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17673then :
17674  printf %s "(cached) " >&6
17675else $as_nop
17676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677/* end confdefs.h.  */
17678int i;
17679_ACEOF
17680if ac_fn_c_try_compile "$LINENO"
17681then :
17682  xorg_cv_cc_flag_unused_command_line_argument=yes
17683else $as_nop
17684  xorg_cv_cc_flag_unused_command_line_argument=no
17685fi
17686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17687fi
17688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17691	CFLAGS="$xorg_testset_save_CFLAGS"
17692fi
17693
17694found="no"
17695
17696	if test $found = "no" ; then
17697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17699		fi
17700
17701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17703		fi
17704
17705		CFLAGS="$CFLAGS -Wsequence-point"
17706
17707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17708printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17709		cacheid=xorg_cv_cc_flag__Wsequence_point
17710		if eval test \${$cacheid+y}
17711then :
17712  printf %s "(cached) " >&6
17713else $as_nop
17714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715/* end confdefs.h.  */
17716int i;
17717int
17718main (void)
17719{
17720
17721  ;
17722  return 0;
17723}
17724_ACEOF
17725if ac_fn_c_try_link "$LINENO"
17726then :
17727  eval $cacheid=yes
17728else $as_nop
17729  eval $cacheid=no
17730fi
17731rm -f core conftest.err conftest.$ac_objext conftest.beam \
17732    conftest$ac_exeext conftest.$ac_ext
17733fi
17734
17735
17736		CFLAGS="$xorg_testset_save_CFLAGS"
17737
17738		eval supported=\$$cacheid
17739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17740printf "%s\n" "$supported" >&6; }
17741		if test "$supported" = "yes" ; then
17742			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17743			found="yes"
17744		fi
17745	fi
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761xorg_testset_save_CFLAGS="$CFLAGS"
17762
17763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17766printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17767if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17768then :
17769  printf %s "(cached) " >&6
17770else $as_nop
17771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772/* end confdefs.h.  */
17773int i;
17774_ACEOF
17775if ac_fn_c_try_compile "$LINENO"
17776then :
17777  xorg_cv_cc_flag_unknown_warning_option=yes
17778else $as_nop
17779  xorg_cv_cc_flag_unknown_warning_option=no
17780fi
17781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17782fi
17783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17786	CFLAGS="$xorg_testset_save_CFLAGS"
17787fi
17788
17789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17792	fi
17793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17796if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17797then :
17798  printf %s "(cached) " >&6
17799else $as_nop
17800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801/* end confdefs.h.  */
17802int i;
17803_ACEOF
17804if ac_fn_c_try_compile "$LINENO"
17805then :
17806  xorg_cv_cc_flag_unused_command_line_argument=yes
17807else $as_nop
17808  xorg_cv_cc_flag_unused_command_line_argument=no
17809fi
17810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17811fi
17812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17813printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17815	CFLAGS="$xorg_testset_save_CFLAGS"
17816fi
17817
17818found="no"
17819
17820	if test $found = "no" ; then
17821		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17823		fi
17824
17825		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17827		fi
17828
17829		CFLAGS="$CFLAGS -Wreturn-type"
17830
17831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17832printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17833		cacheid=xorg_cv_cc_flag__Wreturn_type
17834		if eval test \${$cacheid+y}
17835then :
17836  printf %s "(cached) " >&6
17837else $as_nop
17838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839/* end confdefs.h.  */
17840int i;
17841int
17842main (void)
17843{
17844
17845  ;
17846  return 0;
17847}
17848_ACEOF
17849if ac_fn_c_try_link "$LINENO"
17850then :
17851  eval $cacheid=yes
17852else $as_nop
17853  eval $cacheid=no
17854fi
17855rm -f core conftest.err conftest.$ac_objext conftest.beam \
17856    conftest$ac_exeext conftest.$ac_ext
17857fi
17858
17859
17860		CFLAGS="$xorg_testset_save_CFLAGS"
17861
17862		eval supported=\$$cacheid
17863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17864printf "%s\n" "$supported" >&6; }
17865		if test "$supported" = "yes" ; then
17866			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17867			found="yes"
17868		fi
17869	fi
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885xorg_testset_save_CFLAGS="$CFLAGS"
17886
17887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17892then :
17893  printf %s "(cached) " >&6
17894else $as_nop
17895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896/* end confdefs.h.  */
17897int i;
17898_ACEOF
17899if ac_fn_c_try_compile "$LINENO"
17900then :
17901  xorg_cv_cc_flag_unknown_warning_option=yes
17902else $as_nop
17903  xorg_cv_cc_flag_unknown_warning_option=no
17904fi
17905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17906fi
17907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17910	CFLAGS="$xorg_testset_save_CFLAGS"
17911fi
17912
17913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17916	fi
17917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17918	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17920if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17921then :
17922  printf %s "(cached) " >&6
17923else $as_nop
17924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h.  */
17926int i;
17927_ACEOF
17928if ac_fn_c_try_compile "$LINENO"
17929then :
17930  xorg_cv_cc_flag_unused_command_line_argument=yes
17931else $as_nop
17932  xorg_cv_cc_flag_unused_command_line_argument=no
17933fi
17934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17935fi
17936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17939	CFLAGS="$xorg_testset_save_CFLAGS"
17940fi
17941
17942found="no"
17943
17944	if test $found = "no" ; then
17945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17947		fi
17948
17949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17951		fi
17952
17953		CFLAGS="$CFLAGS -Wtrigraphs"
17954
17955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17956printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17957		cacheid=xorg_cv_cc_flag__Wtrigraphs
17958		if eval test \${$cacheid+y}
17959then :
17960  printf %s "(cached) " >&6
17961else $as_nop
17962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h.  */
17964int i;
17965int
17966main (void)
17967{
17968
17969  ;
17970  return 0;
17971}
17972_ACEOF
17973if ac_fn_c_try_link "$LINENO"
17974then :
17975  eval $cacheid=yes
17976else $as_nop
17977  eval $cacheid=no
17978fi
17979rm -f core conftest.err conftest.$ac_objext conftest.beam \
17980    conftest$ac_exeext conftest.$ac_ext
17981fi
17982
17983
17984		CFLAGS="$xorg_testset_save_CFLAGS"
17985
17986		eval supported=\$$cacheid
17987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17988printf "%s\n" "$supported" >&6; }
17989		if test "$supported" = "yes" ; then
17990			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17991			found="yes"
17992		fi
17993	fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009xorg_testset_save_CFLAGS="$CFLAGS"
18010
18011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18016then :
18017  printf %s "(cached) " >&6
18018else $as_nop
18019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020/* end confdefs.h.  */
18021int i;
18022_ACEOF
18023if ac_fn_c_try_compile "$LINENO"
18024then :
18025  xorg_cv_cc_flag_unknown_warning_option=yes
18026else $as_nop
18027  xorg_cv_cc_flag_unknown_warning_option=no
18028fi
18029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18030fi
18031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18034	CFLAGS="$xorg_testset_save_CFLAGS"
18035fi
18036
18037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18040	fi
18041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18045then :
18046  printf %s "(cached) " >&6
18047else $as_nop
18048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049/* end confdefs.h.  */
18050int i;
18051_ACEOF
18052if ac_fn_c_try_compile "$LINENO"
18053then :
18054  xorg_cv_cc_flag_unused_command_line_argument=yes
18055else $as_nop
18056  xorg_cv_cc_flag_unused_command_line_argument=no
18057fi
18058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18059fi
18060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18063	CFLAGS="$xorg_testset_save_CFLAGS"
18064fi
18065
18066found="no"
18067
18068	if test $found = "no" ; then
18069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18071		fi
18072
18073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18075		fi
18076
18077		CFLAGS="$CFLAGS -Warray-bounds"
18078
18079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18080printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18081		cacheid=xorg_cv_cc_flag__Warray_bounds
18082		if eval test \${$cacheid+y}
18083then :
18084  printf %s "(cached) " >&6
18085else $as_nop
18086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087/* end confdefs.h.  */
18088int i;
18089int
18090main (void)
18091{
18092
18093  ;
18094  return 0;
18095}
18096_ACEOF
18097if ac_fn_c_try_link "$LINENO"
18098then :
18099  eval $cacheid=yes
18100else $as_nop
18101  eval $cacheid=no
18102fi
18103rm -f core conftest.err conftest.$ac_objext conftest.beam \
18104    conftest$ac_exeext conftest.$ac_ext
18105fi
18106
18107
18108		CFLAGS="$xorg_testset_save_CFLAGS"
18109
18110		eval supported=\$$cacheid
18111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18112printf "%s\n" "$supported" >&6; }
18113		if test "$supported" = "yes" ; then
18114			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18115			found="yes"
18116		fi
18117	fi
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133xorg_testset_save_CFLAGS="$CFLAGS"
18134
18135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18140then :
18141  printf %s "(cached) " >&6
18142else $as_nop
18143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h.  */
18145int i;
18146_ACEOF
18147if ac_fn_c_try_compile "$LINENO"
18148then :
18149  xorg_cv_cc_flag_unknown_warning_option=yes
18150else $as_nop
18151  xorg_cv_cc_flag_unknown_warning_option=no
18152fi
18153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18154fi
18155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18158	CFLAGS="$xorg_testset_save_CFLAGS"
18159fi
18160
18161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164	fi
18165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18169then :
18170  printf %s "(cached) " >&6
18171else $as_nop
18172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173/* end confdefs.h.  */
18174int i;
18175_ACEOF
18176if ac_fn_c_try_compile "$LINENO"
18177then :
18178  xorg_cv_cc_flag_unused_command_line_argument=yes
18179else $as_nop
18180  xorg_cv_cc_flag_unused_command_line_argument=no
18181fi
18182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18183fi
18184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18187	CFLAGS="$xorg_testset_save_CFLAGS"
18188fi
18189
18190found="no"
18191
18192	if test $found = "no" ; then
18193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18195		fi
18196
18197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18199		fi
18200
18201		CFLAGS="$CFLAGS -Wwrite-strings"
18202
18203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18204printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18205		cacheid=xorg_cv_cc_flag__Wwrite_strings
18206		if eval test \${$cacheid+y}
18207then :
18208  printf %s "(cached) " >&6
18209else $as_nop
18210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211/* end confdefs.h.  */
18212int i;
18213int
18214main (void)
18215{
18216
18217  ;
18218  return 0;
18219}
18220_ACEOF
18221if ac_fn_c_try_link "$LINENO"
18222then :
18223  eval $cacheid=yes
18224else $as_nop
18225  eval $cacheid=no
18226fi
18227rm -f core conftest.err conftest.$ac_objext conftest.beam \
18228    conftest$ac_exeext conftest.$ac_ext
18229fi
18230
18231
18232		CFLAGS="$xorg_testset_save_CFLAGS"
18233
18234		eval supported=\$$cacheid
18235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18236printf "%s\n" "$supported" >&6; }
18237		if test "$supported" = "yes" ; then
18238			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18239			found="yes"
18240		fi
18241	fi
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257xorg_testset_save_CFLAGS="$CFLAGS"
18258
18259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18263if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18264then :
18265  printf %s "(cached) " >&6
18266else $as_nop
18267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269int i;
18270_ACEOF
18271if ac_fn_c_try_compile "$LINENO"
18272then :
18273  xorg_cv_cc_flag_unknown_warning_option=yes
18274else $as_nop
18275  xorg_cv_cc_flag_unknown_warning_option=no
18276fi
18277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18278fi
18279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18282	CFLAGS="$xorg_testset_save_CFLAGS"
18283fi
18284
18285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18288	fi
18289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18293then :
18294  printf %s "(cached) " >&6
18295else $as_nop
18296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297/* end confdefs.h.  */
18298int i;
18299_ACEOF
18300if ac_fn_c_try_compile "$LINENO"
18301then :
18302  xorg_cv_cc_flag_unused_command_line_argument=yes
18303else $as_nop
18304  xorg_cv_cc_flag_unused_command_line_argument=no
18305fi
18306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18307fi
18308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18311	CFLAGS="$xorg_testset_save_CFLAGS"
18312fi
18313
18314found="no"
18315
18316	if test $found = "no" ; then
18317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18319		fi
18320
18321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18323		fi
18324
18325		CFLAGS="$CFLAGS -Waddress"
18326
18327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18328printf %s "checking if $CC supports -Waddress... " >&6; }
18329		cacheid=xorg_cv_cc_flag__Waddress
18330		if eval test \${$cacheid+y}
18331then :
18332  printf %s "(cached) " >&6
18333else $as_nop
18334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h.  */
18336int i;
18337int
18338main (void)
18339{
18340
18341  ;
18342  return 0;
18343}
18344_ACEOF
18345if ac_fn_c_try_link "$LINENO"
18346then :
18347  eval $cacheid=yes
18348else $as_nop
18349  eval $cacheid=no
18350fi
18351rm -f core conftest.err conftest.$ac_objext conftest.beam \
18352    conftest$ac_exeext conftest.$ac_ext
18353fi
18354
18355
18356		CFLAGS="$xorg_testset_save_CFLAGS"
18357
18358		eval supported=\$$cacheid
18359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18360printf "%s\n" "$supported" >&6; }
18361		if test "$supported" = "yes" ; then
18362			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18363			found="yes"
18364		fi
18365	fi
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381xorg_testset_save_CFLAGS="$CFLAGS"
18382
18383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18388then :
18389  printf %s "(cached) " >&6
18390else $as_nop
18391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392/* end confdefs.h.  */
18393int i;
18394_ACEOF
18395if ac_fn_c_try_compile "$LINENO"
18396then :
18397  xorg_cv_cc_flag_unknown_warning_option=yes
18398else $as_nop
18399  xorg_cv_cc_flag_unknown_warning_option=no
18400fi
18401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18402fi
18403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18406	CFLAGS="$xorg_testset_save_CFLAGS"
18407fi
18408
18409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18412	fi
18413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18417then :
18418  printf %s "(cached) " >&6
18419else $as_nop
18420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421/* end confdefs.h.  */
18422int i;
18423_ACEOF
18424if ac_fn_c_try_compile "$LINENO"
18425then :
18426  xorg_cv_cc_flag_unused_command_line_argument=yes
18427else $as_nop
18428  xorg_cv_cc_flag_unused_command_line_argument=no
18429fi
18430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18431fi
18432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18435	CFLAGS="$xorg_testset_save_CFLAGS"
18436fi
18437
18438found="no"
18439
18440	if test $found = "no" ; then
18441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18443		fi
18444
18445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18447		fi
18448
18449		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18450
18451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18452printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18453		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18454		if eval test \${$cacheid+y}
18455then :
18456  printf %s "(cached) " >&6
18457else $as_nop
18458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459/* end confdefs.h.  */
18460int i;
18461int
18462main (void)
18463{
18464
18465  ;
18466  return 0;
18467}
18468_ACEOF
18469if ac_fn_c_try_link "$LINENO"
18470then :
18471  eval $cacheid=yes
18472else $as_nop
18473  eval $cacheid=no
18474fi
18475rm -f core conftest.err conftest.$ac_objext conftest.beam \
18476    conftest$ac_exeext conftest.$ac_ext
18477fi
18478
18479
18480		CFLAGS="$xorg_testset_save_CFLAGS"
18481
18482		eval supported=\$$cacheid
18483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18484printf "%s\n" "$supported" >&6; }
18485		if test "$supported" = "yes" ; then
18486			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18487			found="yes"
18488		fi
18489	fi
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505xorg_testset_save_CFLAGS="$CFLAGS"
18506
18507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18512then :
18513  printf %s "(cached) " >&6
18514else $as_nop
18515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516/* end confdefs.h.  */
18517int i;
18518_ACEOF
18519if ac_fn_c_try_compile "$LINENO"
18520then :
18521  xorg_cv_cc_flag_unknown_warning_option=yes
18522else $as_nop
18523  xorg_cv_cc_flag_unknown_warning_option=no
18524fi
18525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18526fi
18527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18530	CFLAGS="$xorg_testset_save_CFLAGS"
18531fi
18532
18533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18536	fi
18537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18540if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18541then :
18542  printf %s "(cached) " >&6
18543else $as_nop
18544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545/* end confdefs.h.  */
18546int i;
18547_ACEOF
18548if ac_fn_c_try_compile "$LINENO"
18549then :
18550  xorg_cv_cc_flag_unused_command_line_argument=yes
18551else $as_nop
18552  xorg_cv_cc_flag_unused_command_line_argument=no
18553fi
18554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18555fi
18556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18559	CFLAGS="$xorg_testset_save_CFLAGS"
18560fi
18561
18562found="no"
18563
18564	if test $found = "no" ; then
18565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18567		fi
18568
18569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18571		fi
18572
18573		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18574
18575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18576printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18577		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18578		if eval test \${$cacheid+y}
18579then :
18580  printf %s "(cached) " >&6
18581else $as_nop
18582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583/* end confdefs.h.  */
18584int i;
18585int
18586main (void)
18587{
18588
18589  ;
18590  return 0;
18591}
18592_ACEOF
18593if ac_fn_c_try_link "$LINENO"
18594then :
18595  eval $cacheid=yes
18596else $as_nop
18597  eval $cacheid=no
18598fi
18599rm -f core conftest.err conftest.$ac_objext conftest.beam \
18600    conftest$ac_exeext conftest.$ac_ext
18601fi
18602
18603
18604		CFLAGS="$xorg_testset_save_CFLAGS"
18605
18606		eval supported=\$$cacheid
18607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18608printf "%s\n" "$supported" >&6; }
18609		if test "$supported" = "yes" ; then
18610			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18611			found="yes"
18612		fi
18613	fi
18614
18615
18616fi
18617
18618
18619
18620
18621
18622
18623
18624		CWARNFLAGS="$BASE_CFLAGS"
18625		if  test "x$GCC" = xyes ; then
18626		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18627		fi
18628
18629
18630
18631
18632
18633
18634
18635
18636# Check whether --enable-strict-compilation was given.
18637if test ${enable_strict_compilation+y}
18638then :
18639  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18640else $as_nop
18641  STRICT_COMPILE=no
18642fi
18643
18644
18645
18646
18647
18648
18649STRICT_CFLAGS=""
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663xorg_testset_save_CFLAGS="$CFLAGS"
18664
18665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18669if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18670then :
18671  printf %s "(cached) " >&6
18672else $as_nop
18673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674/* end confdefs.h.  */
18675int i;
18676_ACEOF
18677if ac_fn_c_try_compile "$LINENO"
18678then :
18679  xorg_cv_cc_flag_unknown_warning_option=yes
18680else $as_nop
18681  xorg_cv_cc_flag_unknown_warning_option=no
18682fi
18683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18684fi
18685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18688	CFLAGS="$xorg_testset_save_CFLAGS"
18689fi
18690
18691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18694	fi
18695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18699then :
18700  printf %s "(cached) " >&6
18701else $as_nop
18702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704int i;
18705_ACEOF
18706if ac_fn_c_try_compile "$LINENO"
18707then :
18708  xorg_cv_cc_flag_unused_command_line_argument=yes
18709else $as_nop
18710  xorg_cv_cc_flag_unused_command_line_argument=no
18711fi
18712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18713fi
18714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18717	CFLAGS="$xorg_testset_save_CFLAGS"
18718fi
18719
18720found="no"
18721
18722	if test $found = "no" ; then
18723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18725		fi
18726
18727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18729		fi
18730
18731		CFLAGS="$CFLAGS -pedantic"
18732
18733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18734printf %s "checking if $CC supports -pedantic... " >&6; }
18735		cacheid=xorg_cv_cc_flag__pedantic
18736		if eval test \${$cacheid+y}
18737then :
18738  printf %s "(cached) " >&6
18739else $as_nop
18740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h.  */
18742int i;
18743int
18744main (void)
18745{
18746
18747  ;
18748  return 0;
18749}
18750_ACEOF
18751if ac_fn_c_try_link "$LINENO"
18752then :
18753  eval $cacheid=yes
18754else $as_nop
18755  eval $cacheid=no
18756fi
18757rm -f core conftest.err conftest.$ac_objext conftest.beam \
18758    conftest$ac_exeext conftest.$ac_ext
18759fi
18760
18761
18762		CFLAGS="$xorg_testset_save_CFLAGS"
18763
18764		eval supported=\$$cacheid
18765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18766printf "%s\n" "$supported" >&6; }
18767		if test "$supported" = "yes" ; then
18768			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18769			found="yes"
18770		fi
18771	fi
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787xorg_testset_save_CFLAGS="$CFLAGS"
18788
18789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18794then :
18795  printf %s "(cached) " >&6
18796else $as_nop
18797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798/* end confdefs.h.  */
18799int i;
18800_ACEOF
18801if ac_fn_c_try_compile "$LINENO"
18802then :
18803  xorg_cv_cc_flag_unknown_warning_option=yes
18804else $as_nop
18805  xorg_cv_cc_flag_unknown_warning_option=no
18806fi
18807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18808fi
18809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18810printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18812	CFLAGS="$xorg_testset_save_CFLAGS"
18813fi
18814
18815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18818	fi
18819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18821printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18822if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18823then :
18824  printf %s "(cached) " >&6
18825else $as_nop
18826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827/* end confdefs.h.  */
18828int i;
18829_ACEOF
18830if ac_fn_c_try_compile "$LINENO"
18831then :
18832  xorg_cv_cc_flag_unused_command_line_argument=yes
18833else $as_nop
18834  xorg_cv_cc_flag_unused_command_line_argument=no
18835fi
18836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18837fi
18838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18841	CFLAGS="$xorg_testset_save_CFLAGS"
18842fi
18843
18844found="no"
18845
18846	if test $found = "no" ; then
18847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18849		fi
18850
18851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18853		fi
18854
18855		CFLAGS="$CFLAGS -Werror"
18856
18857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18858printf %s "checking if $CC supports -Werror... " >&6; }
18859		cacheid=xorg_cv_cc_flag__Werror
18860		if eval test \${$cacheid+y}
18861then :
18862  printf %s "(cached) " >&6
18863else $as_nop
18864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865/* end confdefs.h.  */
18866int i;
18867int
18868main (void)
18869{
18870
18871  ;
18872  return 0;
18873}
18874_ACEOF
18875if ac_fn_c_try_link "$LINENO"
18876then :
18877  eval $cacheid=yes
18878else $as_nop
18879  eval $cacheid=no
18880fi
18881rm -f core conftest.err conftest.$ac_objext conftest.beam \
18882    conftest$ac_exeext conftest.$ac_ext
18883fi
18884
18885
18886		CFLAGS="$xorg_testset_save_CFLAGS"
18887
18888		eval supported=\$$cacheid
18889		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18890printf "%s\n" "$supported" >&6; }
18891		if test "$supported" = "yes" ; then
18892			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18893			found="yes"
18894		fi
18895	fi
18896
18897	if test $found = "no" ; then
18898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18900		fi
18901
18902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18904		fi
18905
18906		CFLAGS="$CFLAGS -errwarn"
18907
18908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18909printf %s "checking if $CC supports -errwarn... " >&6; }
18910		cacheid=xorg_cv_cc_flag__errwarn
18911		if eval test \${$cacheid+y}
18912then :
18913  printf %s "(cached) " >&6
18914else $as_nop
18915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916/* end confdefs.h.  */
18917int i;
18918int
18919main (void)
18920{
18921
18922  ;
18923  return 0;
18924}
18925_ACEOF
18926if ac_fn_c_try_link "$LINENO"
18927then :
18928  eval $cacheid=yes
18929else $as_nop
18930  eval $cacheid=no
18931fi
18932rm -f core conftest.err conftest.$ac_objext conftest.beam \
18933    conftest$ac_exeext conftest.$ac_ext
18934fi
18935
18936
18937		CFLAGS="$xorg_testset_save_CFLAGS"
18938
18939		eval supported=\$$cacheid
18940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18941printf "%s\n" "$supported" >&6; }
18942		if test "$supported" = "yes" ; then
18943			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18944			found="yes"
18945		fi
18946	fi
18947
18948
18949
18950# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18951# activate it with -Werror, so we add it here explicitly.
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965xorg_testset_save_CFLAGS="$CFLAGS"
18966
18967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18971if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18972then :
18973  printf %s "(cached) " >&6
18974else $as_nop
18975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976/* end confdefs.h.  */
18977int i;
18978_ACEOF
18979if ac_fn_c_try_compile "$LINENO"
18980then :
18981  xorg_cv_cc_flag_unknown_warning_option=yes
18982else $as_nop
18983  xorg_cv_cc_flag_unknown_warning_option=no
18984fi
18985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18986fi
18987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18990	CFLAGS="$xorg_testset_save_CFLAGS"
18991fi
18992
18993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18996	fi
18997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19000if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19001then :
19002  printf %s "(cached) " >&6
19003else $as_nop
19004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005/* end confdefs.h.  */
19006int i;
19007_ACEOF
19008if ac_fn_c_try_compile "$LINENO"
19009then :
19010  xorg_cv_cc_flag_unused_command_line_argument=yes
19011else $as_nop
19012  xorg_cv_cc_flag_unused_command_line_argument=no
19013fi
19014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19015fi
19016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19019	CFLAGS="$xorg_testset_save_CFLAGS"
19020fi
19021
19022found="no"
19023
19024	if test $found = "no" ; then
19025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19027		fi
19028
19029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19031		fi
19032
19033		CFLAGS="$CFLAGS -Werror=attributes"
19034
19035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19036printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19037		cacheid=xorg_cv_cc_flag__Werror_attributes
19038		if eval test \${$cacheid+y}
19039then :
19040  printf %s "(cached) " >&6
19041else $as_nop
19042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043/* end confdefs.h.  */
19044int i;
19045int
19046main (void)
19047{
19048
19049  ;
19050  return 0;
19051}
19052_ACEOF
19053if ac_fn_c_try_link "$LINENO"
19054then :
19055  eval $cacheid=yes
19056else $as_nop
19057  eval $cacheid=no
19058fi
19059rm -f core conftest.err conftest.$ac_objext conftest.beam \
19060    conftest$ac_exeext conftest.$ac_ext
19061fi
19062
19063
19064		CFLAGS="$xorg_testset_save_CFLAGS"
19065
19066		eval supported=\$$cacheid
19067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19068printf "%s\n" "$supported" >&6; }
19069		if test "$supported" = "yes" ; then
19070			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19071			found="yes"
19072		fi
19073	fi
19074
19075
19076
19077if test "x$STRICT_COMPILE" = "xyes"; then
19078    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19079    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19080fi
19081
19082
19083
19084
19085
19086
19087
19088
19089cat >>confdefs.h <<_ACEOF
19090#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19091_ACEOF
19092
19093	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19094	if test "x$PVM" = "x"; then
19095		PVM="0"
19096	fi
19097
19098printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19099
19100	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19101	if test "x$PVP" = "x"; then
19102		PVP="0"
19103	fi
19104
19105printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19106
19107
19108
19109CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19110mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19111|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19112touch \$(top_srcdir)/ChangeLog; \
19113echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19114
19115
19116
19117
19118macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19119INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19120mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19121|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19122touch \$(top_srcdir)/INSTALL; \
19123echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19124
19125
19126
19127
19128
19129
19130case $host_os in
19131    solaris*)
19132        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19133        # check for a man page file found in later versions that use
19134        # traditional section numbers instead
19135        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19136printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19137if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19138then :
19139  printf %s "(cached) " >&6
19140else $as_nop
19141  test "$cross_compiling" = yes &&
19142  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19143if test -r "/usr/share/man/man7/attributes.7"; then
19144  ac_cv_file__usr_share_man_man7_attributes_7=yes
19145else
19146  ac_cv_file__usr_share_man_man7_attributes_7=no
19147fi
19148fi
19149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19150printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19151if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19152then :
19153  SYSV_MAN_SECTIONS=false
19154else $as_nop
19155  SYSV_MAN_SECTIONS=true
19156fi
19157
19158        ;;
19159    *) SYSV_MAN_SECTIONS=false ;;
19160esac
19161
19162if test x$APP_MAN_SUFFIX = x    ; then
19163    APP_MAN_SUFFIX=1
19164fi
19165if test x$APP_MAN_DIR = x    ; then
19166    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19167fi
19168
19169if test x$LIB_MAN_SUFFIX = x    ; then
19170    LIB_MAN_SUFFIX=3
19171fi
19172if test x$LIB_MAN_DIR = x    ; then
19173    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19174fi
19175
19176if test x$FILE_MAN_SUFFIX = x    ; then
19177    case $SYSV_MAN_SECTIONS in
19178	true)				FILE_MAN_SUFFIX=4  ;;
19179	*)				FILE_MAN_SUFFIX=5  ;;
19180    esac
19181fi
19182if test x$FILE_MAN_DIR = x    ; then
19183    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19184fi
19185
19186if test x$MISC_MAN_SUFFIX = x    ; then
19187    case $SYSV_MAN_SECTIONS in
19188	true)				MISC_MAN_SUFFIX=5  ;;
19189	*)				MISC_MAN_SUFFIX=7  ;;
19190    esac
19191fi
19192if test x$MISC_MAN_DIR = x    ; then
19193    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19194fi
19195
19196if test x$DRIVER_MAN_SUFFIX = x    ; then
19197    case $SYSV_MAN_SECTIONS in
19198	true)				DRIVER_MAN_SUFFIX=7  ;;
19199	*)				DRIVER_MAN_SUFFIX=4  ;;
19200    esac
19201fi
19202if test x$DRIVER_MAN_DIR = x    ; then
19203    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19204fi
19205
19206if test x$ADMIN_MAN_SUFFIX = x    ; then
19207    case $SYSV_MAN_SECTIONS in
19208	true)				ADMIN_MAN_SUFFIX=1m ;;
19209	*)				ADMIN_MAN_SUFFIX=8  ;;
19210    esac
19211fi
19212if test x$ADMIN_MAN_DIR = x    ; then
19213    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19214fi
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230XORG_MAN_PAGE="X Version 11"
19231
19232MAN_SUBSTS="\
19233	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19234	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19235	-e 's|__xservername__|Xorg|g' \
19236	-e 's|__xconfigfile__|xorg.conf|g' \
19237	-e 's|__projectroot__|\$(prefix)|g' \
19238	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19239	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19240	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19241	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19242	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19243	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19244	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19245
19246
19247
19248# Check whether --enable-silent-rules was given.
19249if test ${enable_silent_rules+y}
19250then :
19251  enableval=$enable_silent_rules;
19252fi
19253
19254case $enable_silent_rules in # (((
19255  yes) AM_DEFAULT_VERBOSITY=0;;
19256   no) AM_DEFAULT_VERBOSITY=1;;
19257    *) AM_DEFAULT_VERBOSITY=0;;
19258esac
19259am_make=${MAKE-make}
19260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19261printf %s "checking whether $am_make supports nested variables... " >&6; }
19262if test ${am_cv_make_support_nested_variables+y}
19263then :
19264  printf %s "(cached) " >&6
19265else $as_nop
19266  if printf "%s\n" 'TRUE=$(BAR$(V))
19267BAR0=false
19268BAR1=true
19269V=1
19270am__doit:
19271	@$(TRUE)
19272.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19273  am_cv_make_support_nested_variables=yes
19274else
19275  am_cv_make_support_nested_variables=no
19276fi
19277fi
19278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19279printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19280if test $am_cv_make_support_nested_variables = yes; then
19281    AM_V='$(V)'
19282  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19283else
19284  AM_V=$AM_DEFAULT_VERBOSITY
19285  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19286fi
19287AM_BACKSLASH='\'
19288
19289
19290
19291
19292# Checks for library functions
19293ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19294if test "x$ac_cv_func_strlcat" = xyes
19295then :
19296  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
19297
19298fi
19299
19300ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19301if test "x$ac_cv_func_fork" = xyes
19302then :
19303
19304else $as_nop
19305  printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19306
19307fi
19308
19309
19310# Obtain compiler/linker options for dependencies
19311
19312pkg_failed=no
19313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
19314printf %s "checking for XPM... " >&6; }
19315
19316if test -n "$XPM_CFLAGS"; then
19317    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
19318 elif test -n "$PKG_CONFIG"; then
19319    if test -n "$PKG_CONFIG" && \
19320    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19321  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19322  ac_status=$?
19323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19324  test $ac_status = 0; }; then
19325  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
19326		      test "x$?" != "x0" && pkg_failed=yes
19327else
19328  pkg_failed=yes
19329fi
19330 else
19331    pkg_failed=untried
19332fi
19333if test -n "$XPM_LIBS"; then
19334    pkg_cv_XPM_LIBS="$XPM_LIBS"
19335 elif test -n "$PKG_CONFIG"; then
19336    if test -n "$PKG_CONFIG" && \
19337    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
19338  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
19339  ac_status=$?
19340  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19341  test $ac_status = 0; }; then
19342  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
19343		      test "x$?" != "x0" && pkg_failed=yes
19344else
19345  pkg_failed=yes
19346fi
19347 else
19348    pkg_failed=untried
19349fi
19350
19351
19352
19353if test $pkg_failed = yes; then
19354   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19355printf "%s\n" "no" >&6; }
19356
19357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19358        _pkg_short_errors_supported=yes
19359else
19360        _pkg_short_errors_supported=no
19361fi
19362        if test $_pkg_short_errors_supported = yes; then
19363	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1`
19364        else
19365	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1`
19366        fi
19367	# Put the nasty error message in config.log where it belongs
19368	echo "$XPM_PKG_ERRORS" >&5
19369
19370	as_fn_error $? "Package requirements (xproto x11) were not met:
19371
19372$XPM_PKG_ERRORS
19373
19374Consider adjusting the PKG_CONFIG_PATH environment variable if you
19375installed software in a non-standard prefix.
19376
19377Alternatively, you may set the environment variables XPM_CFLAGS
19378and XPM_LIBS to avoid the need to call pkg-config.
19379See the pkg-config man page for more details." "$LINENO" 5
19380elif test $pkg_failed = untried; then
19381     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382printf "%s\n" "no" >&6; }
19383	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19384printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19385as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19386is in your PATH or set the PKG_CONFIG environment variable to the full
19387path to pkg-config.
19388
19389Alternatively, you may set the environment variables XPM_CFLAGS
19390and XPM_LIBS to avoid the need to call pkg-config.
19391See the pkg-config man page for more details.
19392
19393To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19394See \`config.log' for more details" "$LINENO" 5; }
19395else
19396	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
19397	XPM_LIBS=$pkg_cv_XPM_LIBS
19398        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19399printf "%s\n" "yes" >&6; }
19400
19401fi
19402
19403pkg_failed=no
19404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
19405printf %s "checking for SXPM... " >&6; }
19406
19407if test -n "$SXPM_CFLAGS"; then
19408    pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
19409 elif test -n "$PKG_CONFIG"; then
19410    if test -n "$PKG_CONFIG" && \
19411    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19412  ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19413  ac_status=$?
19414  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19415  test $ac_status = 0; }; then
19416  pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19417		      test "x$?" != "x0" && pkg_failed=yes
19418else
19419  pkg_failed=yes
19420fi
19421 else
19422    pkg_failed=untried
19423fi
19424if test -n "$SXPM_LIBS"; then
19425    pkg_cv_SXPM_LIBS="$SXPM_LIBS"
19426 elif test -n "$PKG_CONFIG"; then
19427    if test -n "$PKG_CONFIG" && \
19428    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
19429  ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
19430  ac_status=$?
19431  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19432  test $ac_status = 0; }; then
19433  pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
19434		      test "x$?" != "x0" && pkg_failed=yes
19435else
19436  pkg_failed=yes
19437fi
19438 else
19439    pkg_failed=untried
19440fi
19441
19442
19443
19444if test $pkg_failed = yes; then
19445   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19446printf "%s\n" "no" >&6; }
19447
19448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19449        _pkg_short_errors_supported=yes
19450else
19451        _pkg_short_errors_supported=no
19452fi
19453        if test $_pkg_short_errors_supported = yes; then
19454	        SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19455        else
19456	        SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
19457        fi
19458	# Put the nasty error message in config.log where it belongs
19459	echo "$SXPM_PKG_ERRORS" >&5
19460
19461	build_sxpm=false
19462elif test $pkg_failed = untried; then
19463     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464printf "%s\n" "no" >&6; }
19465	build_sxpm=false
19466else
19467	SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
19468	SXPM_LIBS=$pkg_cv_SXPM_LIBS
19469        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19470printf "%s\n" "yes" >&6; }
19471	build_sxpm=true
19472fi
19473 if test x$build_sxpm = xtrue; then
19474  BUILD_SXPM_TRUE=
19475  BUILD_SXPM_FALSE='#'
19476else
19477  BUILD_SXPM_TRUE='#'
19478  BUILD_SXPM_FALSE=
19479fi
19480
19481
19482# Internationalization & localization support
19483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
19484printf %s "checking for library containing gettext... " >&6; }
19485if test ${ac_cv_search_gettext+y}
19486then :
19487  printf %s "(cached) " >&6
19488else $as_nop
19489  ac_func_search_save_LIBS=$LIBS
19490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491/* end confdefs.h.  */
19492
19493/* Override any GCC internal prototype to avoid an error.
19494   Use char because int might match the return type of a GCC
19495   builtin and then its argument prototype would still apply.
19496   The 'extern "C"' is for builds by C++ compilers;
19497   although this is not generally supported in C code supporting it here
19498   has little cost and some practical benefit (sr 110532).  */
19499#ifdef __cplusplus
19500extern "C"
19501#endif
19502char gettext (void);
19503int
19504main (void)
19505{
19506return gettext ();
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511for ac_lib in '' intl
19512do
19513  if test -z "$ac_lib"; then
19514    ac_res="none required"
19515  else
19516    ac_res=-l$ac_lib
19517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19518  fi
19519  if ac_fn_c_try_link "$LINENO"
19520then :
19521  ac_cv_search_gettext=$ac_res
19522fi
19523rm -f core conftest.err conftest.$ac_objext conftest.beam \
19524    conftest$ac_exeext
19525  if test ${ac_cv_search_gettext+y}
19526then :
19527  break
19528fi
19529done
19530if test ${ac_cv_search_gettext+y}
19531then :
19532
19533else $as_nop
19534  ac_cv_search_gettext=no
19535fi
19536rm conftest.$ac_ext
19537LIBS=$ac_func_search_save_LIBS
19538fi
19539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
19540printf "%s\n" "$ac_cv_search_gettext" >&6; }
19541ac_res=$ac_cv_search_gettext
19542if test "$ac_res" != no
19543then :
19544  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19545  USE_GETTEXT="yes"
19546else $as_nop
19547  USE_GETTEXT="no"
19548fi
19549
19550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
19551printf %s "checking where to install localized messages... " >&6; }
19552
19553# Check whether --with-localedir was given.
19554if test ${with_localedir+y}
19555then :
19556  withval=$with_localedir; LOCALEDIR=${withval}
19557else $as_nop
19558  LOCALEDIR=${datadir}/locale
19559fi
19560
19561
19562  prefix_NONE=
19563  exec_prefix_NONE=
19564  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19565  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19566  eval ax_define_dir="\"$LOCALEDIR\""
19567  eval ax_define_dir="\"$ax_define_dir\""
19568  LOCALEDIR="$ax_define_dir"
19569
19570
19571printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h
19572
19573  test "$prefix_NONE" && prefix=NONE
19574  test "$exec_prefix_NONE" && exec_prefix=NONE
19575
19576if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
19577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
19578printf "%s\n" "nowhere" >&6; }
19579	USE_GETTEXT="no"
19580else
19581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
19582printf "%s\n" "$LOCALEDIR" >&6; }
19583fi
19584
19585if test "x$USE_GETTEXT" = "xyes" ; then
19586
19587printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
19588
19589fi
19590 if test "x$USE_GETTEXT" = "xyes"; then
19591  USE_GETTEXT_TRUE=
19592  USE_GETTEXT_FALSE='#'
19593else
19594  USE_GETTEXT_TRUE='#'
19595  USE_GETTEXT_FALSE=
19596fi
19597
19598
19599
19600# Optional feature: When a filename ending in .Z or .gz is requested,
19601# open a pipe to a newly forked compress/uncompress/gzip command to
19602# handle it.
19603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to handle compressed pixmaps" >&5
19604printf %s "checking whether to handle compressed pixmaps... " >&6; }
19605case $host_os in
19606        *mingw*)        zpipe_default="no" ;;
19607        *)              zpipe_default="yes" ;;
19608esac
19609# Check whether --enable-open-zfile was given.
19610if test ${enable_open_zfile+y}
19611then :
19612  enableval=$enable_open_zfile; OPEN_ZFILE=$enableval
19613else $as_nop
19614  OPEN_ZFILE=yes
19615fi
19616
19617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPEN_ZFILE" >&5
19618printf "%s\n" "$OPEN_ZFILE" >&6; }
19619 if test "x$OPEN_ZFILE" = "xyes"; then
19620  COMPRESSED_PIXMAPS_TRUE=
19621  COMPRESSED_PIXMAPS_FALSE='#'
19622else
19623  COMPRESSED_PIXMAPS_TRUE='#'
19624  COMPRESSED_PIXMAPS_FALSE=
19625fi
19626
19627if test x$OPEN_ZFILE = xno ; then
19628
19629printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h
19630
19631else
19632        # gzip is absolutely required for the compressed file handling code
19633
19634# Extract the first word of "gzip", so it can be a program name with args.
19635set dummy gzip; ac_word=$2
19636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19637printf %s "checking for $ac_word... " >&6; }
19638if test ${ac_cv_path_XPM_PATH_GZIP+y}
19639then :
19640  printf %s "(cached) " >&6
19641else $as_nop
19642  case $XPM_PATH_GZIP in
19643  [\\/]* | ?:[\\/]*)
19644  ac_cv_path_XPM_PATH_GZIP="$XPM_PATH_GZIP" # Let the user override the test with a path.
19645  ;;
19646  *)
19647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648for as_dir in $PATH
19649do
19650  IFS=$as_save_IFS
19651  case $as_dir in #(((
19652    '') as_dir=./ ;;
19653    */) ;;
19654    *) as_dir=$as_dir/ ;;
19655  esac
19656    for ac_exec_ext in '' $ac_executable_extensions; do
19657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19658    ac_cv_path_XPM_PATH_GZIP="$as_dir$ac_word$ac_exec_ext"
19659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19660    break 2
19661  fi
19662done
19663  done
19664IFS=$as_save_IFS
19665
19666  ;;
19667esac
19668fi
19669XPM_PATH_GZIP=$ac_cv_path_XPM_PATH_GZIP
19670if test -n "$XPM_PATH_GZIP"; then
19671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_GZIP" >&5
19672printf "%s\n" "$XPM_PATH_GZIP" >&6; }
19673else
19674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19675printf "%s\n" "no" >&6; }
19676fi
19677
19678
19679if test "x$XPM_PATH_GZIP" = "x"
19680then :
19681  as_fn_error $? "gzip not found, set XPM_PATH_GZIP or use --disable-open-zfile" "$LINENO" 5
19682else $as_nop
19683
19684printf "%s\n" "#define XPM_PATH_GZIP \"$XPM_PATH_GZIP\"" >>confdefs.h
19685
19686fi
19687
19688
19689        # if compress is not found, we disable writing to .Z files,
19690        # but leave the rest of the compression code active
19691
19692# Extract the first word of "compress", so it can be a program name with args.
19693set dummy compress; ac_word=$2
19694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19695printf %s "checking for $ac_word... " >&6; }
19696if test ${ac_cv_path_XPM_PATH_COMPRESS+y}
19697then :
19698  printf %s "(cached) " >&6
19699else $as_nop
19700  case $XPM_PATH_COMPRESS in
19701  [\\/]* | ?:[\\/]*)
19702  ac_cv_path_XPM_PATH_COMPRESS="$XPM_PATH_COMPRESS" # Let the user override the test with a path.
19703  ;;
19704  *)
19705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19706for as_dir in $PATH
19707do
19708  IFS=$as_save_IFS
19709  case $as_dir in #(((
19710    '') as_dir=./ ;;
19711    */) ;;
19712    *) as_dir=$as_dir/ ;;
19713  esac
19714    for ac_exec_ext in '' $ac_executable_extensions; do
19715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19716    ac_cv_path_XPM_PATH_COMPRESS="$as_dir$ac_word$ac_exec_ext"
19717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19718    break 2
19719  fi
19720done
19721  done
19722IFS=$as_save_IFS
19723
19724  ;;
19725esac
19726fi
19727XPM_PATH_COMPRESS=$ac_cv_path_XPM_PATH_COMPRESS
19728if test -n "$XPM_PATH_COMPRESS"; then
19729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_COMPRESS" >&5
19730printf "%s\n" "$XPM_PATH_COMPRESS" >&6; }
19731else
19732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19733printf "%s\n" "no" >&6; }
19734fi
19735
19736
19737if test "x$XPM_PATH_COMPRESS" = "x"
19738then :
19739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compress not found, disabling writing of .Z files" >&5
19740printf "%s\n" "$as_me: WARNING: compress not found, disabling writing of .Z files" >&2;}
19741else $as_nop
19742
19743printf "%s\n" "#define XPM_PATH_COMPRESS \"$XPM_PATH_COMPRESS\"" >>confdefs.h
19744
19745fi
19746
19747        # if uncompress is not found, we use gzip to read .Z files
19748
19749# Extract the first word of "uncompress", so it can be a program name with args.
19750set dummy uncompress; ac_word=$2
19751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752printf %s "checking for $ac_word... " >&6; }
19753if test ${ac_cv_path_XPM_PATH_UNCOMPRESS+y}
19754then :
19755  printf %s "(cached) " >&6
19756else $as_nop
19757  case $XPM_PATH_UNCOMPRESS in
19758  [\\/]* | ?:[\\/]*)
19759  ac_cv_path_XPM_PATH_UNCOMPRESS="$XPM_PATH_UNCOMPRESS" # Let the user override the test with a path.
19760  ;;
19761  *)
19762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763for as_dir in $PATH
19764do
19765  IFS=$as_save_IFS
19766  case $as_dir in #(((
19767    '') as_dir=./ ;;
19768    */) ;;
19769    *) as_dir=$as_dir/ ;;
19770  esac
19771    for ac_exec_ext in '' $ac_executable_extensions; do
19772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19773    ac_cv_path_XPM_PATH_UNCOMPRESS="$as_dir$ac_word$ac_exec_ext"
19774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19775    break 2
19776  fi
19777done
19778  done
19779IFS=$as_save_IFS
19780
19781  ;;
19782esac
19783fi
19784XPM_PATH_UNCOMPRESS=$ac_cv_path_XPM_PATH_UNCOMPRESS
19785if test -n "$XPM_PATH_UNCOMPRESS"; then
19786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_UNCOMPRESS" >&5
19787printf "%s\n" "$XPM_PATH_UNCOMPRESS" >&6; }
19788else
19789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19790printf "%s\n" "no" >&6; }
19791fi
19792
19793
19794if test "x$XPM_PATH_UNCOMPRESS" = "x"
19795then :
19796
19797else $as_nop
19798
19799printf "%s\n" "#define XPM_PATH_UNCOMPRESS \"$XPM_PATH_UNCOMPRESS\"" >>confdefs.h
19800
19801fi
19802
19803
19804
19805  for ac_func in closefrom close_range
19806do :
19807  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19808ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19809if eval test \"x\$"$as_ac_var"\" = x"yes"
19810then :
19811  cat >>confdefs.h <<_ACEOF
19812#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19813_ACEOF
19814 break
19815fi
19816
19817done
19818fi
19819
19820# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
19821# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
19822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to search for compressed pixmaps" >&5
19823printf %s "checking whether to search for compressed pixmaps... " >&6; }
19824# Check whether --enable-stat-zfile was given.
19825if test ${enable_stat_zfile+y}
19826then :
19827  enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
19828else $as_nop
19829  STAT_ZFILE=$OPEN_ZFILE
19830fi
19831
19832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STAT_ZFILE" >&5
19833printf "%s\n" "$STAT_ZFILE" >&6; }
19834if test x$STAT_ZFILE = xyes ; then
19835
19836printf "%s\n" "#define STAT_ZFILE 1" >>confdefs.h
19837
19838fi
19839
19840# --enable-unit-tests
19841
19842
19843
19844
19845
19846
19847
19848# Check for different types of support on different platforms
19849case $host_os in
19850    solaris*)
19851        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
19852printf %s "checking for umem_alloc in -lumem... " >&6; }
19853if test ${ac_cv_lib_umem_umem_alloc+y}
19854then :
19855  printf %s "(cached) " >&6
19856else $as_nop
19857  ac_check_lib_save_LIBS=$LIBS
19858LIBS="-lumem  $LIBS"
19859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19860/* end confdefs.h.  */
19861
19862/* Override any GCC internal prototype to avoid an error.
19863   Use char because int might match the return type of a GCC
19864   builtin and then its argument prototype would still apply.
19865   The 'extern "C"' is for builds by C++ compilers;
19866   although this is not generally supported in C code supporting it here
19867   has little cost and some practical benefit (sr 110532).  */
19868#ifdef __cplusplus
19869extern "C"
19870#endif
19871char umem_alloc (void);
19872int
19873main (void)
19874{
19875return umem_alloc ();
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_c_try_link "$LINENO"
19881then :
19882  ac_cv_lib_umem_umem_alloc=yes
19883else $as_nop
19884  ac_cv_lib_umem_umem_alloc=no
19885fi
19886rm -f core conftest.err conftest.$ac_objext conftest.beam \
19887    conftest$ac_exeext conftest.$ac_ext
19888LIBS=$ac_check_lib_save_LIBS
19889fi
19890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
19891printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
19892if test "x$ac_cv_lib_umem_umem_alloc" = xyes
19893then :
19894  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
19895fi
19896
19897        ;;
19898    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
19899        # both directly and inverted, so should not be 0 or 255.
19900        malloc_debug_env='MALLOC_PERTURB_=15'
19901        ;;
19902    darwin*)
19903        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
19904        ;;
19905    *bsd*)
19906        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
19907        ;;
19908esac
19909
19910# User supplied flags override default flags
19911if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
19912    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
19913fi
19914
19915XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
19916
19917
19918
19919
19920
19921
19922
19923# Check whether --enable-unit-tests was given.
19924if test ${enable_unit_tests+y}
19925then :
19926  enableval=$enable_unit_tests; enable_unit_tests=$enableval
19927else $as_nop
19928  enable_unit_tests=auto
19929fi
19930
19931
19932 if test "x$enable_unit_tests" != xno; then
19933  ENABLE_UNIT_TESTS_TRUE=
19934  ENABLE_UNIT_TESTS_FALSE='#'
19935else
19936  ENABLE_UNIT_TESTS_TRUE='#'
19937  ENABLE_UNIT_TESTS_FALSE=
19938fi
19939
19940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
19941printf %s "checking whether to build unit test cases... " >&6; }
19942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
19943printf "%s\n" "$enable_unit_tests" >&6; }
19944
19945
19946
19947
19948
19949# Check whether --with-glib was given.
19950if test ${with_glib+y}
19951then :
19952  withval=$with_glib; with_glib=$withval
19953else $as_nop
19954  with_glib=auto
19955fi
19956
19957
19958
19959have_glib=no
19960# Do not probe GLib if user explicitly disabled unit testing
19961if test "x$enable_unit_tests" != x"no"; then
19962  # Do not probe GLib if user explicitly disabled it
19963  if test "x$with_glib" != x"no"; then
19964
19965pkg_failed=no
19966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19967printf %s "checking for GLIB... " >&6; }
19968
19969if test -n "$GLIB_CFLAGS"; then
19970    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19971 elif test -n "$PKG_CONFIG"; then
19972    if test -n "$PKG_CONFIG" && \
19973    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19974  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19975  ac_status=$?
19976  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19977  test $ac_status = 0; }; then
19978  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46" 2>/dev/null`
19979		      test "x$?" != "x0" && pkg_failed=yes
19980else
19981  pkg_failed=yes
19982fi
19983 else
19984    pkg_failed=untried
19985fi
19986if test -n "$GLIB_LIBS"; then
19987    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19988 elif test -n "$PKG_CONFIG"; then
19989    if test -n "$PKG_CONFIG" && \
19990    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5
19991  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5
19992  ac_status=$?
19993  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19994  test $ac_status = 0; }; then
19995  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46" 2>/dev/null`
19996		      test "x$?" != "x0" && pkg_failed=yes
19997else
19998  pkg_failed=yes
19999fi
20000 else
20001    pkg_failed=untried
20002fi
20003
20004
20005
20006if test $pkg_failed = yes; then
20007   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008printf "%s\n" "no" >&6; }
20009
20010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20011        _pkg_short_errors_supported=yes
20012else
20013        _pkg_short_errors_supported=no
20014fi
20015        if test $_pkg_short_errors_supported = yes; then
20016	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
20017        else
20018	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1`
20019        fi
20020	# Put the nasty error message in config.log where it belongs
20021	echo "$GLIB_PKG_ERRORS" >&5
20022
20023	have_glib=no
20024elif test $pkg_failed = untried; then
20025     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20026printf "%s\n" "no" >&6; }
20027	have_glib=no
20028else
20029	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20030	GLIB_LIBS=$pkg_cv_GLIB_LIBS
20031        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20032printf "%s\n" "yes" >&6; }
20033	have_glib=yes
20034fi
20035  fi
20036fi
20037
20038# Not having GLib when unit testing has been explicitly requested is an error
20039if test "x$enable_unit_tests" = x"yes"; then
20040  if test "x$have_glib" = x"no"; then
20041    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
20042  fi
20043fi
20044
20045# Having unit testing disabled when GLib has been explicitly requested is an error
20046if test "x$enable_unit_tests" = x"no"; then
20047  if test "x$with_glib" = x"yes"; then
20048    as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5
20049  fi
20050fi
20051
20052# Not having GLib when it has been explicitly requested is an error
20053if test "x$with_glib" = x"yes"; then
20054  if test "x$have_glib" = x"no"; then
20055    as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5
20056  fi
20057fi
20058
20059 if test "$have_glib" = yes; then
20060  HAVE_GLIB_TRUE=
20061  HAVE_GLIB_FALSE='#'
20062else
20063  HAVE_GLIB_TRUE='#'
20064  HAVE_GLIB_FALSE=
20065fi
20066
20067
20068
20069
20070
20071
20072
20073# Check for different types of support on different platforms
20074case $host_os in
20075    solaris*)
20076        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
20077printf %s "checking for umem_alloc in -lumem... " >&6; }
20078if test ${ac_cv_lib_umem_umem_alloc+y}
20079then :
20080  printf %s "(cached) " >&6
20081else $as_nop
20082  ac_check_lib_save_LIBS=$LIBS
20083LIBS="-lumem  $LIBS"
20084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20085/* end confdefs.h.  */
20086
20087/* Override any GCC internal prototype to avoid an error.
20088   Use char because int might match the return type of a GCC
20089   builtin and then its argument prototype would still apply.
20090   The 'extern "C"' is for builds by C++ compilers;
20091   although this is not generally supported in C code supporting it here
20092   has little cost and some practical benefit (sr 110532).  */
20093#ifdef __cplusplus
20094extern "C"
20095#endif
20096char umem_alloc (void);
20097int
20098main (void)
20099{
20100return umem_alloc ();
20101  ;
20102  return 0;
20103}
20104_ACEOF
20105if ac_fn_c_try_link "$LINENO"
20106then :
20107  ac_cv_lib_umem_umem_alloc=yes
20108else $as_nop
20109  ac_cv_lib_umem_umem_alloc=no
20110fi
20111rm -f core conftest.err conftest.$ac_objext conftest.beam \
20112    conftest$ac_exeext conftest.$ac_ext
20113LIBS=$ac_check_lib_save_LIBS
20114fi
20115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
20116printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
20117if test "x$ac_cv_lib_umem_umem_alloc" = xyes
20118then :
20119  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
20120fi
20121
20122        ;;
20123    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
20124        # both directly and inverted, so should not be 0 or 255.
20125        malloc_debug_env='MALLOC_PERTURB_=15'
20126        ;;
20127    darwin*)
20128        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
20129        ;;
20130    *bsd*)
20131        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
20132        ;;
20133esac
20134
20135# User supplied flags override default flags
20136if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
20137    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
20138fi
20139
20140XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
20141
20142
20143
20144ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile test/Makefile xpm.pc"
20145
20146cat >confcache <<\_ACEOF
20147# This file is a shell script that caches the results of configure
20148# tests run on this system so they can be shared between configure
20149# scripts and configure runs, see configure's option --config-cache.
20150# It is not useful on other systems.  If it contains results you don't
20151# want to keep, you may remove or edit it.
20152#
20153# config.status only pays attention to the cache file if you give it
20154# the --recheck option to rerun configure.
20155#
20156# `ac_cv_env_foo' variables (set or unset) will be overridden when
20157# loading this file, other *unset* `ac_cv_foo' will be assigned the
20158# following values.
20159
20160_ACEOF
20161
20162# The following way of writing the cache mishandles newlines in values,
20163# but we know of no workaround that is simple, portable, and efficient.
20164# So, we kill variables containing newlines.
20165# Ultrix sh set writes to stderr and can't be redirected directly,
20166# and sets the high bit in the cache file unless we assign to the vars.
20167(
20168  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20169    eval ac_val=\$$ac_var
20170    case $ac_val in #(
20171    *${as_nl}*)
20172      case $ac_var in #(
20173      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20174printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20175      esac
20176      case $ac_var in #(
20177      _ | IFS | as_nl) ;; #(
20178      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20179      *) { eval $ac_var=; unset $ac_var;} ;;
20180      esac ;;
20181    esac
20182  done
20183
20184  (set) 2>&1 |
20185    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20186    *${as_nl}ac_space=\ *)
20187      # `set' does not quote correctly, so add quotes: double-quote
20188      # substitution turns \\\\ into \\, and sed turns \\ into \.
20189      sed -n \
20190	"s/'/'\\\\''/g;
20191	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20192      ;; #(
20193    *)
20194      # `set' quotes correctly as required by POSIX, so do not add quotes.
20195      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20196      ;;
20197    esac |
20198    sort
20199) |
20200  sed '
20201     /^ac_cv_env_/b end
20202     t clear
20203     :clear
20204     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20205     t end
20206     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20207     :end' >>confcache
20208if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20209  if test -w "$cache_file"; then
20210    if test "x$cache_file" != "x/dev/null"; then
20211      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20212printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20213      if test ! -f "$cache_file" || test -h "$cache_file"; then
20214	cat confcache >"$cache_file"
20215      else
20216        case $cache_file in #(
20217        */* | ?:*)
20218	  mv -f confcache "$cache_file"$$ &&
20219	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20220        *)
20221	  mv -f confcache "$cache_file" ;;
20222	esac
20223      fi
20224    fi
20225  else
20226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20227printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20228  fi
20229fi
20230rm -f confcache
20231
20232test "x$prefix" = xNONE && prefix=$ac_default_prefix
20233# Let make expand exec_prefix.
20234test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20235
20236DEFS=-DHAVE_CONFIG_H
20237
20238ac_libobjs=
20239ac_ltlibobjs=
20240U=
20241for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20242  # 1. Remove the extension, and $U if already installed.
20243  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20244  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20245  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20246  #    will be set to the directory where LIBOBJS objects are built.
20247  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20248  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20249done
20250LIBOBJS=$ac_libobjs
20251
20252LTLIBOBJS=$ac_ltlibobjs
20253
20254
20255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20256printf %s "checking that generated files are newer than configure... " >&6; }
20257   if test -n "$am_sleep_pid"; then
20258     # Hide warnings about reused PIDs.
20259     wait $am_sleep_pid 2>/dev/null
20260   fi
20261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20262printf "%s\n" "done" >&6; }
20263 if test -n "$EXEEXT"; then
20264  am__EXEEXT_TRUE=
20265  am__EXEEXT_FALSE='#'
20266else
20267  am__EXEEXT_TRUE='#'
20268  am__EXEEXT_FALSE=
20269fi
20270
20271if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20272  as_fn_error $? "conditional \"AMDEP\" was never defined.
20273Usually this means the macro was only invoked conditionally." "$LINENO" 5
20274fi
20275if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20276  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20277Usually this means the macro was only invoked conditionally." "$LINENO" 5
20278fi
20279if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
20280  as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
20281Usually this means the macro was only invoked conditionally." "$LINENO" 5
20282fi
20283if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
20284  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
20285Usually this means the macro was only invoked conditionally." "$LINENO" 5
20286fi
20287if test -z "${COMPRESSED_PIXMAPS_TRUE}" && test -z "${COMPRESSED_PIXMAPS_FALSE}"; then
20288  as_fn_error $? "conditional \"COMPRESSED_PIXMAPS\" was never defined.
20289Usually this means the macro was only invoked conditionally." "$LINENO" 5
20290fi
20291if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
20292  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
20293Usually this means the macro was only invoked conditionally." "$LINENO" 5
20294fi
20295if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
20296  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
20297Usually this means the macro was only invoked conditionally." "$LINENO" 5
20298fi
20299
20300: "${CONFIG_STATUS=./config.status}"
20301ac_write_fail=0
20302ac_clean_files_save=$ac_clean_files
20303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20305printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20306as_write_fail=0
20307cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20308#! $SHELL
20309# Generated by $as_me.
20310# Run this file to recreate the current configuration.
20311# Compiler output produced by configure, useful for debugging
20312# configure, is in config.log if it exists.
20313
20314debug=false
20315ac_cs_recheck=false
20316ac_cs_silent=false
20317
20318SHELL=\${CONFIG_SHELL-$SHELL}
20319export SHELL
20320_ASEOF
20321cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20322## -------------------- ##
20323## M4sh Initialization. ##
20324## -------------------- ##
20325
20326# Be more Bourne compatible
20327DUALCASE=1; export DUALCASE # for MKS sh
20328as_nop=:
20329if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20330then :
20331  emulate sh
20332  NULLCMD=:
20333  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20334  # is contrary to our usage.  Disable this feature.
20335  alias -g '${1+"$@"}'='"$@"'
20336  setopt NO_GLOB_SUBST
20337else $as_nop
20338  case `(set -o) 2>/dev/null` in #(
20339  *posix*) :
20340    set -o posix ;; #(
20341  *) :
20342     ;;
20343esac
20344fi
20345
20346
20347
20348# Reset variables that may have inherited troublesome values from
20349# the environment.
20350
20351# IFS needs to be set, to space, tab, and newline, in precisely that order.
20352# (If _AS_PATH_WALK were called with IFS unset, it would have the
20353# side effect of setting IFS to empty, thus disabling word splitting.)
20354# Quoting is to prevent editors from complaining about space-tab.
20355as_nl='
20356'
20357export as_nl
20358IFS=" ""	$as_nl"
20359
20360PS1='$ '
20361PS2='> '
20362PS4='+ '
20363
20364# Ensure predictable behavior from utilities with locale-dependent output.
20365LC_ALL=C
20366export LC_ALL
20367LANGUAGE=C
20368export LANGUAGE
20369
20370# We cannot yet rely on "unset" to work, but we need these variables
20371# to be unset--not just set to an empty or harmless value--now, to
20372# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20373# also avoids known problems related to "unset" and subshell syntax
20374# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20375for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20376do eval test \${$as_var+y} \
20377  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20378done
20379
20380# Ensure that fds 0, 1, and 2 are open.
20381if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20382if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20383if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20384
20385# The user is always right.
20386if ${PATH_SEPARATOR+false} :; then
20387  PATH_SEPARATOR=:
20388  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20389    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20390      PATH_SEPARATOR=';'
20391  }
20392fi
20393
20394
20395# Find who we are.  Look in the path if we contain no directory separator.
20396as_myself=
20397case $0 in #((
20398  *[\\/]* ) as_myself=$0 ;;
20399  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20400for as_dir in $PATH
20401do
20402  IFS=$as_save_IFS
20403  case $as_dir in #(((
20404    '') as_dir=./ ;;
20405    */) ;;
20406    *) as_dir=$as_dir/ ;;
20407  esac
20408    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20409  done
20410IFS=$as_save_IFS
20411
20412     ;;
20413esac
20414# We did not find ourselves, most probably we were run as `sh COMMAND'
20415# in which case we are not to be found in the path.
20416if test "x$as_myself" = x; then
20417  as_myself=$0
20418fi
20419if test ! -f "$as_myself"; then
20420  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20421  exit 1
20422fi
20423
20424
20425
20426# as_fn_error STATUS ERROR [LINENO LOG_FD]
20427# ----------------------------------------
20428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20430# script with STATUS, using 1 if that was 0.
20431as_fn_error ()
20432{
20433  as_status=$1; test $as_status -eq 0 && as_status=1
20434  if test "$4"; then
20435    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20436    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20437  fi
20438  printf "%s\n" "$as_me: error: $2" >&2
20439  as_fn_exit $as_status
20440} # as_fn_error
20441
20442
20443
20444# as_fn_set_status STATUS
20445# -----------------------
20446# Set $? to STATUS, without forking.
20447as_fn_set_status ()
20448{
20449  return $1
20450} # as_fn_set_status
20451
20452# as_fn_exit STATUS
20453# -----------------
20454# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20455as_fn_exit ()
20456{
20457  set +e
20458  as_fn_set_status $1
20459  exit $1
20460} # as_fn_exit
20461
20462# as_fn_unset VAR
20463# ---------------
20464# Portably unset VAR.
20465as_fn_unset ()
20466{
20467  { eval $1=; unset $1;}
20468}
20469as_unset=as_fn_unset
20470
20471# as_fn_append VAR VALUE
20472# ----------------------
20473# Append the text in VALUE to the end of the definition contained in VAR. Take
20474# advantage of any shell optimizations that allow amortized linear growth over
20475# repeated appends, instead of the typical quadratic growth present in naive
20476# implementations.
20477if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20478then :
20479  eval 'as_fn_append ()
20480  {
20481    eval $1+=\$2
20482  }'
20483else $as_nop
20484  as_fn_append ()
20485  {
20486    eval $1=\$$1\$2
20487  }
20488fi # as_fn_append
20489
20490# as_fn_arith ARG...
20491# ------------------
20492# Perform arithmetic evaluation on the ARGs, and store the result in the
20493# global $as_val. Take advantage of shells that can avoid forks. The arguments
20494# must be portable across $(()) and expr.
20495if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20496then :
20497  eval 'as_fn_arith ()
20498  {
20499    as_val=$(( $* ))
20500  }'
20501else $as_nop
20502  as_fn_arith ()
20503  {
20504    as_val=`expr "$@" || test $? -eq 1`
20505  }
20506fi # as_fn_arith
20507
20508
20509if expr a : '\(a\)' >/dev/null 2>&1 &&
20510   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20511  as_expr=expr
20512else
20513  as_expr=false
20514fi
20515
20516if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20517  as_basename=basename
20518else
20519  as_basename=false
20520fi
20521
20522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20523  as_dirname=dirname
20524else
20525  as_dirname=false
20526fi
20527
20528as_me=`$as_basename -- "$0" ||
20529$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20530	 X"$0" : 'X\(//\)$' \| \
20531	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20532printf "%s\n" X/"$0" |
20533    sed '/^.*\/\([^/][^/]*\)\/*$/{
20534	    s//\1/
20535	    q
20536	  }
20537	  /^X\/\(\/\/\)$/{
20538	    s//\1/
20539	    q
20540	  }
20541	  /^X\/\(\/\).*/{
20542	    s//\1/
20543	    q
20544	  }
20545	  s/.*/./; q'`
20546
20547# Avoid depending upon Character Ranges.
20548as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20550as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20551as_cr_digits='0123456789'
20552as_cr_alnum=$as_cr_Letters$as_cr_digits
20553
20554
20555# Determine whether it's possible to make 'echo' print without a newline.
20556# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20557# for compatibility with existing Makefiles.
20558ECHO_C= ECHO_N= ECHO_T=
20559case `echo -n x` in #(((((
20560-n*)
20561  case `echo 'xy\c'` in
20562  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20563  xy)  ECHO_C='\c';;
20564  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20565       ECHO_T='	';;
20566  esac;;
20567*)
20568  ECHO_N='-n';;
20569esac
20570
20571# For backward compatibility with old third-party macros, we provide
20572# the shell variables $as_echo and $as_echo_n.  New code should use
20573# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20574as_echo='printf %s\n'
20575as_echo_n='printf %s'
20576
20577rm -f conf$$ conf$$.exe conf$$.file
20578if test -d conf$$.dir; then
20579  rm -f conf$$.dir/conf$$.file
20580else
20581  rm -f conf$$.dir
20582  mkdir conf$$.dir 2>/dev/null
20583fi
20584if (echo >conf$$.file) 2>/dev/null; then
20585  if ln -s conf$$.file conf$$ 2>/dev/null; then
20586    as_ln_s='ln -s'
20587    # ... but there are two gotchas:
20588    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20589    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20590    # In both cases, we have to default to `cp -pR'.
20591    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20592      as_ln_s='cp -pR'
20593  elif ln conf$$.file conf$$ 2>/dev/null; then
20594    as_ln_s=ln
20595  else
20596    as_ln_s='cp -pR'
20597  fi
20598else
20599  as_ln_s='cp -pR'
20600fi
20601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20602rmdir conf$$.dir 2>/dev/null
20603
20604
20605# as_fn_mkdir_p
20606# -------------
20607# Create "$as_dir" as a directory, including parents if necessary.
20608as_fn_mkdir_p ()
20609{
20610
20611  case $as_dir in #(
20612  -*) as_dir=./$as_dir;;
20613  esac
20614  test -d "$as_dir" || eval $as_mkdir_p || {
20615    as_dirs=
20616    while :; do
20617      case $as_dir in #(
20618      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20619      *) as_qdir=$as_dir;;
20620      esac
20621      as_dirs="'$as_qdir' $as_dirs"
20622      as_dir=`$as_dirname -- "$as_dir" ||
20623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20624	 X"$as_dir" : 'X\(//\)[^/]' \| \
20625	 X"$as_dir" : 'X\(//\)$' \| \
20626	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20627printf "%s\n" X"$as_dir" |
20628    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20629	    s//\1/
20630	    q
20631	  }
20632	  /^X\(\/\/\)[^/].*/{
20633	    s//\1/
20634	    q
20635	  }
20636	  /^X\(\/\/\)$/{
20637	    s//\1/
20638	    q
20639	  }
20640	  /^X\(\/\).*/{
20641	    s//\1/
20642	    q
20643	  }
20644	  s/.*/./; q'`
20645      test -d "$as_dir" && break
20646    done
20647    test -z "$as_dirs" || eval "mkdir $as_dirs"
20648  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20649
20650
20651} # as_fn_mkdir_p
20652if mkdir -p . 2>/dev/null; then
20653  as_mkdir_p='mkdir -p "$as_dir"'
20654else
20655  test -d ./-p && rmdir ./-p
20656  as_mkdir_p=false
20657fi
20658
20659
20660# as_fn_executable_p FILE
20661# -----------------------
20662# Test if FILE is an executable regular file.
20663as_fn_executable_p ()
20664{
20665  test -f "$1" && test -x "$1"
20666} # as_fn_executable_p
20667as_test_x='test -x'
20668as_executable_p=as_fn_executable_p
20669
20670# Sed expression to map a string onto a valid CPP name.
20671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20672
20673# Sed expression to map a string onto a valid variable name.
20674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20675
20676
20677exec 6>&1
20678## ----------------------------------- ##
20679## Main body of $CONFIG_STATUS script. ##
20680## ----------------------------------- ##
20681_ASEOF
20682test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20683
20684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20685# Save the log message, to keep $0 and so on meaningful, and to
20686# report actual input values of CONFIG_FILES etc. instead of their
20687# values after options handling.
20688ac_log="
20689This file was extended by libXpm $as_me 3.5.16, which was
20690generated by GNU Autoconf 2.71.  Invocation command line was
20691
20692  CONFIG_FILES    = $CONFIG_FILES
20693  CONFIG_HEADERS  = $CONFIG_HEADERS
20694  CONFIG_LINKS    = $CONFIG_LINKS
20695  CONFIG_COMMANDS = $CONFIG_COMMANDS
20696  $ $0 $@
20697
20698on `(hostname || uname -n) 2>/dev/null | sed 1q`
20699"
20700
20701_ACEOF
20702
20703case $ac_config_files in *"
20704"*) set x $ac_config_files; shift; ac_config_files=$*;;
20705esac
20706
20707case $ac_config_headers in *"
20708"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20709esac
20710
20711
20712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20713# Files that config.status was made for.
20714config_files="$ac_config_files"
20715config_headers="$ac_config_headers"
20716config_commands="$ac_config_commands"
20717
20718_ACEOF
20719
20720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20721ac_cs_usage="\
20722\`$as_me' instantiates files and other configuration actions
20723from templates according to the current configuration.  Unless the files
20724and actions are specified as TAGs, all are instantiated by default.
20725
20726Usage: $0 [OPTION]... [TAG]...
20727
20728  -h, --help       print this help, then exit
20729  -V, --version    print version number and configuration settings, then exit
20730      --config     print configuration, then exit
20731  -q, --quiet, --silent
20732                   do not print progress messages
20733  -d, --debug      don't remove temporary files
20734      --recheck    update $as_me by reconfiguring in the same conditions
20735      --file=FILE[:TEMPLATE]
20736                   instantiate the configuration file FILE
20737      --header=FILE[:TEMPLATE]
20738                   instantiate the configuration header FILE
20739
20740Configuration files:
20741$config_files
20742
20743Configuration headers:
20744$config_headers
20745
20746Configuration commands:
20747$config_commands
20748
20749Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues/>."
20750
20751_ACEOF
20752ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20753ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20755ac_cs_config='$ac_cs_config_escaped'
20756ac_cs_version="\\
20757libXpm config.status 3.5.16
20758configured by $0, generated by GNU Autoconf 2.71,
20759  with options \\"\$ac_cs_config\\"
20760
20761Copyright (C) 2021 Free Software Foundation, Inc.
20762This config.status script is free software; the Free Software Foundation
20763gives unlimited permission to copy, distribute and modify it."
20764
20765ac_pwd='$ac_pwd'
20766srcdir='$srcdir'
20767INSTALL='$INSTALL'
20768MKDIR_P='$MKDIR_P'
20769AWK='$AWK'
20770test -n "\$AWK" || AWK=awk
20771_ACEOF
20772
20773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20774# The default lists apply if the user does not specify any file.
20775ac_need_defaults=:
20776while test $# != 0
20777do
20778  case $1 in
20779  --*=?*)
20780    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20781    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20782    ac_shift=:
20783    ;;
20784  --*=)
20785    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20786    ac_optarg=
20787    ac_shift=:
20788    ;;
20789  *)
20790    ac_option=$1
20791    ac_optarg=$2
20792    ac_shift=shift
20793    ;;
20794  esac
20795
20796  case $ac_option in
20797  # Handling of the options.
20798  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20799    ac_cs_recheck=: ;;
20800  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20801    printf "%s\n" "$ac_cs_version"; exit ;;
20802  --config | --confi | --conf | --con | --co | --c )
20803    printf "%s\n" "$ac_cs_config"; exit ;;
20804  --debug | --debu | --deb | --de | --d | -d )
20805    debug=: ;;
20806  --file | --fil | --fi | --f )
20807    $ac_shift
20808    case $ac_optarg in
20809    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20810    '') as_fn_error $? "missing file argument" ;;
20811    esac
20812    as_fn_append CONFIG_FILES " '$ac_optarg'"
20813    ac_need_defaults=false;;
20814  --header | --heade | --head | --hea )
20815    $ac_shift
20816    case $ac_optarg in
20817    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20818    esac
20819    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20820    ac_need_defaults=false;;
20821  --he | --h)
20822    # Conflict between --help and --header
20823    as_fn_error $? "ambiguous option: \`$1'
20824Try \`$0 --help' for more information.";;
20825  --help | --hel | -h )
20826    printf "%s\n" "$ac_cs_usage"; exit ;;
20827  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20828  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20829    ac_cs_silent=: ;;
20830
20831  # This is an error.
20832  -*) as_fn_error $? "unrecognized option: \`$1'
20833Try \`$0 --help' for more information." ;;
20834
20835  *) as_fn_append ac_config_targets " $1"
20836     ac_need_defaults=false ;;
20837
20838  esac
20839  shift
20840done
20841
20842ac_configure_extra_args=
20843
20844if $ac_cs_silent; then
20845  exec 6>/dev/null
20846  ac_configure_extra_args="$ac_configure_extra_args --silent"
20847fi
20848
20849_ACEOF
20850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851if \$ac_cs_recheck; then
20852  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20853  shift
20854  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20855  CONFIG_SHELL='$SHELL'
20856  export CONFIG_SHELL
20857  exec "\$@"
20858fi
20859
20860_ACEOF
20861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20862exec 5>>config.log
20863{
20864  echo
20865  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20866## Running $as_me. ##
20867_ASBOX
20868  printf "%s\n" "$ac_log"
20869} >&5
20870
20871_ACEOF
20872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20873#
20874# INIT-COMMANDS
20875#
20876AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20877
20878
20879# The HP-UX ksh and POSIX shell print the target directory to stdout
20880# if CDPATH is set.
20881(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20882
20883sed_quote_subst='$sed_quote_subst'
20884double_quote_subst='$double_quote_subst'
20885delay_variable_subst='$delay_variable_subst'
20886macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20887macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20888enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20889enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20890pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20891enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20892shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20893SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20894ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20895PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20896host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20897host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20898host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20899build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20900build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20901build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20902SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20903Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20904GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20905EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20906FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20907LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20908NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20909LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20910max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20911ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20912exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20913lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20914lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20915lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20916lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20917lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20918reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20919reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20920FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20921OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20922deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20923file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20924file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20925want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20926DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20927sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20928AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20929lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20930AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20931archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20932STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20933RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20934old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20935old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20936old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20937lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20938CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20939CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20940compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20941GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20942lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20943lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20944lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20945lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20946lt_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"`'
20947lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20948nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20949lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20950lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20951objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20952MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20953lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20954lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20955lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20956lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20957lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20958need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20959MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20960DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20961NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20962LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20963OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20964OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20965libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20966shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20967extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20968archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20969enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20970export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20971whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20972compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20973old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20974old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20975archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20976archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20977module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20978module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20979with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20980allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20981no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20982hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20983hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20984hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20985hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20986hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20987hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20988hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20989inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20990link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20991always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20992export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20993exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20994include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20995prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20996postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20997file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20998variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20999need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21000need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21001version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21002runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21003shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21004shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21005libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21006library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21007soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21008install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21009postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21010postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21011finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21012finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21013hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21014sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21015configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21016configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21017hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21018enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21019enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21020enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21021old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21022striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21023
21024LTCC='$LTCC'
21025LTCFLAGS='$LTCFLAGS'
21026compiler='$compiler_DEFAULT'
21027
21028# A function that is used when there is no print builtin or printf.
21029func_fallback_echo ()
21030{
21031  eval 'cat <<_LTECHO_EOF
21032\$1
21033_LTECHO_EOF'
21034}
21035
21036# Quote evaled strings.
21037for var in SHELL \
21038ECHO \
21039PATH_SEPARATOR \
21040SED \
21041GREP \
21042EGREP \
21043FGREP \
21044LD \
21045NM \
21046LN_S \
21047lt_SP2NL \
21048lt_NL2SP \
21049reload_flag \
21050FILECMD \
21051OBJDUMP \
21052deplibs_check_method \
21053file_magic_cmd \
21054file_magic_glob \
21055want_nocaseglob \
21056DLLTOOL \
21057sharedlib_from_linklib_cmd \
21058AR \
21059archiver_list_spec \
21060STRIP \
21061RANLIB \
21062CC \
21063CFLAGS \
21064compiler \
21065lt_cv_sys_global_symbol_pipe \
21066lt_cv_sys_global_symbol_to_cdecl \
21067lt_cv_sys_global_symbol_to_import \
21068lt_cv_sys_global_symbol_to_c_name_address \
21069lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21070lt_cv_nm_interface \
21071nm_file_list_spec \
21072lt_cv_truncate_bin \
21073lt_prog_compiler_no_builtin_flag \
21074lt_prog_compiler_pic \
21075lt_prog_compiler_wl \
21076lt_prog_compiler_static \
21077lt_cv_prog_compiler_c_o \
21078need_locks \
21079MANIFEST_TOOL \
21080DSYMUTIL \
21081NMEDIT \
21082LIPO \
21083OTOOL \
21084OTOOL64 \
21085shrext_cmds \
21086export_dynamic_flag_spec \
21087whole_archive_flag_spec \
21088compiler_needs_object \
21089with_gnu_ld \
21090allow_undefined_flag \
21091no_undefined_flag \
21092hardcode_libdir_flag_spec \
21093hardcode_libdir_separator \
21094exclude_expsyms \
21095include_expsyms \
21096file_list_spec \
21097variables_saved_for_relink \
21098libname_spec \
21099library_names_spec \
21100soname_spec \
21101install_override_mode \
21102finish_eval \
21103old_striplib \
21104striplib; do
21105    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21106    *[\\\\\\\`\\"\\\$]*)
21107      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21108      ;;
21109    *)
21110      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21111      ;;
21112    esac
21113done
21114
21115# Double-quote double-evaled strings.
21116for var in reload_cmds \
21117old_postinstall_cmds \
21118old_postuninstall_cmds \
21119old_archive_cmds \
21120extract_expsyms_cmds \
21121old_archive_from_new_cmds \
21122old_archive_from_expsyms_cmds \
21123archive_cmds \
21124archive_expsym_cmds \
21125module_cmds \
21126module_expsym_cmds \
21127export_symbols_cmds \
21128prelink_cmds \
21129postlink_cmds \
21130postinstall_cmds \
21131postuninstall_cmds \
21132finish_cmds \
21133sys_lib_search_path_spec \
21134configure_time_dlsearch_path \
21135configure_time_lt_sys_library_path; do
21136    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21137    *[\\\\\\\`\\"\\\$]*)
21138      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21139      ;;
21140    *)
21141      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21142      ;;
21143    esac
21144done
21145
21146ac_aux_dir='$ac_aux_dir'
21147
21148# See if we are running on zsh, and set the options that allow our
21149# commands through without removal of \ escapes INIT.
21150if test -n "\${ZSH_VERSION+set}"; then
21151   setopt NO_GLOB_SUBST
21152fi
21153
21154
21155    PACKAGE='$PACKAGE'
21156    VERSION='$VERSION'
21157    RM='$RM'
21158    ofile='$ofile'
21159
21160
21161
21162
21163_ACEOF
21164
21165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21166
21167# Handling of arguments.
21168for ac_config_target in $ac_config_targets
21169do
21170  case $ac_config_target in
21171    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21172    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21173    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21174    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21175    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21176    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21177    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21178    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21179    "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
21180    "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
21181    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21182    "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
21183
21184  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21185  esac
21186done
21187
21188
21189# If the user did not use the arguments to specify the items to instantiate,
21190# then the envvar interface is used.  Set only those that are not.
21191# We use the long form for the default assignment because of an extremely
21192# bizarre bug on SunOS 4.1.3.
21193if $ac_need_defaults; then
21194  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21195  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21196  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21197fi
21198
21199# Have a temporary directory for convenience.  Make it in the build tree
21200# simply because there is no reason against having it here, and in addition,
21201# creating and moving files from /tmp can sometimes cause problems.
21202# Hook for its removal unless debugging.
21203# Note that there is a small window in which the directory will not be cleaned:
21204# after its creation but before its name has been assigned to `$tmp'.
21205$debug ||
21206{
21207  tmp= ac_tmp=
21208  trap 'exit_status=$?
21209  : "${ac_tmp:=$tmp}"
21210  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21211' 0
21212  trap 'as_fn_exit 1' 1 2 13 15
21213}
21214# Create a (secure) tmp directory for tmp files.
21215
21216{
21217  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21218  test -d "$tmp"
21219}  ||
21220{
21221  tmp=./conf$$-$RANDOM
21222  (umask 077 && mkdir "$tmp")
21223} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21224ac_tmp=$tmp
21225
21226# Set up the scripts for CONFIG_FILES section.
21227# No need to generate them if there are no CONFIG_FILES.
21228# This happens for instance with `./config.status config.h'.
21229if test -n "$CONFIG_FILES"; then
21230
21231
21232ac_cr=`echo X | tr X '\015'`
21233# On cygwin, bash can eat \r inside `` if the user requested igncr.
21234# But we know of no other shell where ac_cr would be empty at this
21235# point, so we can use a bashism as a fallback.
21236if test "x$ac_cr" = x; then
21237  eval ac_cr=\$\'\\r\'
21238fi
21239ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21240if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21241  ac_cs_awk_cr='\\r'
21242else
21243  ac_cs_awk_cr=$ac_cr
21244fi
21245
21246echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21247_ACEOF
21248
21249
21250{
21251  echo "cat >conf$$subs.awk <<_ACEOF" &&
21252  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21253  echo "_ACEOF"
21254} >conf$$subs.sh ||
21255  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21256ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21257ac_delim='%!_!# '
21258for ac_last_try in false false false false false :; do
21259  . ./conf$$subs.sh ||
21260    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21261
21262  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21263  if test $ac_delim_n = $ac_delim_num; then
21264    break
21265  elif $ac_last_try; then
21266    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21267  else
21268    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21269  fi
21270done
21271rm -f conf$$subs.sh
21272
21273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21274cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21275_ACEOF
21276sed -n '
21277h
21278s/^/S["/; s/!.*/"]=/
21279p
21280g
21281s/^[^!]*!//
21282:repl
21283t repl
21284s/'"$ac_delim"'$//
21285t delim
21286:nl
21287h
21288s/\(.\{148\}\)..*/\1/
21289t more1
21290s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21291p
21292n
21293b repl
21294:more1
21295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21296p
21297g
21298s/.\{148\}//
21299t nl
21300:delim
21301h
21302s/\(.\{148\}\)..*/\1/
21303t more2
21304s/["\\]/\\&/g; s/^/"/; s/$/"/
21305p
21306b
21307:more2
21308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21309p
21310g
21311s/.\{148\}//
21312t delim
21313' <conf$$subs.awk | sed '
21314/^[^""]/{
21315  N
21316  s/\n//
21317}
21318' >>$CONFIG_STATUS || ac_write_fail=1
21319rm -f conf$$subs.awk
21320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21321_ACAWK
21322cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21323  for (key in S) S_is_set[key] = 1
21324  FS = ""
21325
21326}
21327{
21328  line = $ 0
21329  nfields = split(line, field, "@")
21330  substed = 0
21331  len = length(field[1])
21332  for (i = 2; i < nfields; i++) {
21333    key = field[i]
21334    keylen = length(key)
21335    if (S_is_set[key]) {
21336      value = S[key]
21337      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21338      len += length(value) + length(field[++i])
21339      substed = 1
21340    } else
21341      len += 1 + keylen
21342  }
21343
21344  print line
21345}
21346
21347_ACAWK
21348_ACEOF
21349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21350if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21351  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21352else
21353  cat
21354fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21355  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21356_ACEOF
21357
21358# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21359# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21360# trailing colons and then remove the whole line if VPATH becomes empty
21361# (actually we leave an empty line to preserve line numbers).
21362if test "x$srcdir" = x.; then
21363  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21364h
21365s///
21366s/^/:/
21367s/[	 ]*$/:/
21368s/:\$(srcdir):/:/g
21369s/:\${srcdir}:/:/g
21370s/:@srcdir@:/:/g
21371s/^:*//
21372s/:*$//
21373x
21374s/\(=[	 ]*\).*/\1/
21375G
21376s/\n//
21377s/^[^=]*=[	 ]*$//
21378}'
21379fi
21380
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382fi # test -n "$CONFIG_FILES"
21383
21384# Set up the scripts for CONFIG_HEADERS section.
21385# No need to generate them if there are no CONFIG_HEADERS.
21386# This happens for instance with `./config.status Makefile'.
21387if test -n "$CONFIG_HEADERS"; then
21388cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21389BEGIN {
21390_ACEOF
21391
21392# Transform confdefs.h into an awk script `defines.awk', embedded as
21393# here-document in config.status, that substitutes the proper values into
21394# config.h.in to produce config.h.
21395
21396# Create a delimiter string that does not exist in confdefs.h, to ease
21397# handling of long lines.
21398ac_delim='%!_!# '
21399for ac_last_try in false false :; do
21400  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21401  if test -z "$ac_tt"; then
21402    break
21403  elif $ac_last_try; then
21404    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21405  else
21406    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21407  fi
21408done
21409
21410# For the awk script, D is an array of macro values keyed by name,
21411# likewise P contains macro parameters if any.  Preserve backslash
21412# newline sequences.
21413
21414ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21415sed -n '
21416s/.\{148\}/&'"$ac_delim"'/g
21417t rset
21418:rset
21419s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21420t def
21421d
21422:def
21423s/\\$//
21424t bsnl
21425s/["\\]/\\&/g
21426s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21427D["\1"]=" \3"/p
21428s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21429d
21430:bsnl
21431s/["\\]/\\&/g
21432s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21433D["\1"]=" \3\\\\\\n"\\/p
21434t cont
21435s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21436t cont
21437d
21438:cont
21439n
21440s/.\{148\}/&'"$ac_delim"'/g
21441t clear
21442:clear
21443s/\\$//
21444t bsnlc
21445s/["\\]/\\&/g; s/^/"/; s/$/"/p
21446d
21447:bsnlc
21448s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21449b cont
21450' <confdefs.h | sed '
21451s/'"$ac_delim"'/"\\\
21452"/g' >>$CONFIG_STATUS || ac_write_fail=1
21453
21454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21455  for (key in D) D_is_set[key] = 1
21456  FS = ""
21457}
21458/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21459  line = \$ 0
21460  split(line, arg, " ")
21461  if (arg[1] == "#") {
21462    defundef = arg[2]
21463    mac1 = arg[3]
21464  } else {
21465    defundef = substr(arg[1], 2)
21466    mac1 = arg[2]
21467  }
21468  split(mac1, mac2, "(") #)
21469  macro = mac2[1]
21470  prefix = substr(line, 1, index(line, defundef) - 1)
21471  if (D_is_set[macro]) {
21472    # Preserve the white space surrounding the "#".
21473    print prefix "define", macro P[macro] D[macro]
21474    next
21475  } else {
21476    # Replace #undef with comments.  This is necessary, for example,
21477    # in the case of _POSIX_SOURCE, which is predefined and required
21478    # on some systems where configure will not decide to define it.
21479    if (defundef == "undef") {
21480      print "/*", prefix defundef, macro, "*/"
21481      next
21482    }
21483  }
21484}
21485{ print }
21486_ACAWK
21487_ACEOF
21488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21489  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21490fi # test -n "$CONFIG_HEADERS"
21491
21492
21493eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21494shift
21495for ac_tag
21496do
21497  case $ac_tag in
21498  :[FHLC]) ac_mode=$ac_tag; continue;;
21499  esac
21500  case $ac_mode$ac_tag in
21501  :[FHL]*:*);;
21502  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21503  :[FH]-) ac_tag=-:-;;
21504  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21505  esac
21506  ac_save_IFS=$IFS
21507  IFS=:
21508  set x $ac_tag
21509  IFS=$ac_save_IFS
21510  shift
21511  ac_file=$1
21512  shift
21513
21514  case $ac_mode in
21515  :L) ac_source=$1;;
21516  :[FH])
21517    ac_file_inputs=
21518    for ac_f
21519    do
21520      case $ac_f in
21521      -) ac_f="$ac_tmp/stdin";;
21522      *) # Look for the file first in the build tree, then in the source tree
21523	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21524	 # because $ac_f cannot contain `:'.
21525	 test -f "$ac_f" ||
21526	   case $ac_f in
21527	   [\\/$]*) false;;
21528	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21529	   esac ||
21530	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21531      esac
21532      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21533      as_fn_append ac_file_inputs " '$ac_f'"
21534    done
21535
21536    # Let's still pretend it is `configure' which instantiates (i.e., don't
21537    # use $as_me), people would be surprised to read:
21538    #    /* config.h.  Generated by config.status.  */
21539    configure_input='Generated from '`
21540	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21541	`' by configure.'
21542    if test x"$ac_file" != x-; then
21543      configure_input="$ac_file.  $configure_input"
21544      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21545printf "%s\n" "$as_me: creating $ac_file" >&6;}
21546    fi
21547    # Neutralize special characters interpreted by sed in replacement strings.
21548    case $configure_input in #(
21549    *\&* | *\|* | *\\* )
21550       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21551       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21552    *) ac_sed_conf_input=$configure_input;;
21553    esac
21554
21555    case $ac_tag in
21556    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21557      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21558    esac
21559    ;;
21560  esac
21561
21562  ac_dir=`$as_dirname -- "$ac_file" ||
21563$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21564	 X"$ac_file" : 'X\(//\)[^/]' \| \
21565	 X"$ac_file" : 'X\(//\)$' \| \
21566	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21567printf "%s\n" X"$ac_file" |
21568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21569	    s//\1/
21570	    q
21571	  }
21572	  /^X\(\/\/\)[^/].*/{
21573	    s//\1/
21574	    q
21575	  }
21576	  /^X\(\/\/\)$/{
21577	    s//\1/
21578	    q
21579	  }
21580	  /^X\(\/\).*/{
21581	    s//\1/
21582	    q
21583	  }
21584	  s/.*/./; q'`
21585  as_dir="$ac_dir"; as_fn_mkdir_p
21586  ac_builddir=.
21587
21588case "$ac_dir" in
21589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21590*)
21591  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21592  # A ".." for each directory in $ac_dir_suffix.
21593  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21594  case $ac_top_builddir_sub in
21595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21597  esac ;;
21598esac
21599ac_abs_top_builddir=$ac_pwd
21600ac_abs_builddir=$ac_pwd$ac_dir_suffix
21601# for backward compatibility:
21602ac_top_builddir=$ac_top_build_prefix
21603
21604case $srcdir in
21605  .)  # We are building in place.
21606    ac_srcdir=.
21607    ac_top_srcdir=$ac_top_builddir_sub
21608    ac_abs_top_srcdir=$ac_pwd ;;
21609  [\\/]* | ?:[\\/]* )  # Absolute name.
21610    ac_srcdir=$srcdir$ac_dir_suffix;
21611    ac_top_srcdir=$srcdir
21612    ac_abs_top_srcdir=$srcdir ;;
21613  *) # Relative name.
21614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21615    ac_top_srcdir=$ac_top_build_prefix$srcdir
21616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21617esac
21618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21619
21620
21621  case $ac_mode in
21622  :F)
21623  #
21624  # CONFIG_FILE
21625  #
21626
21627  case $INSTALL in
21628  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21629  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21630  esac
21631  ac_MKDIR_P=$MKDIR_P
21632  case $MKDIR_P in
21633  [\\/$]* | ?:[\\/]* ) ;;
21634  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21635  esac
21636_ACEOF
21637
21638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21639# If the template does not know about datarootdir, expand it.
21640# FIXME: This hack should be removed a few years after 2.60.
21641ac_datarootdir_hack=; ac_datarootdir_seen=
21642ac_sed_dataroot='
21643/datarootdir/ {
21644  p
21645  q
21646}
21647/@datadir@/p
21648/@docdir@/p
21649/@infodir@/p
21650/@localedir@/p
21651/@mandir@/p'
21652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21653*datarootdir*) ac_datarootdir_seen=yes;;
21654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21656printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21657_ACEOF
21658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21659  ac_datarootdir_hack='
21660  s&@datadir@&$datadir&g
21661  s&@docdir@&$docdir&g
21662  s&@infodir@&$infodir&g
21663  s&@localedir@&$localedir&g
21664  s&@mandir@&$mandir&g
21665  s&\\\${datarootdir}&$datarootdir&g' ;;
21666esac
21667_ACEOF
21668
21669# Neutralize VPATH when `$srcdir' = `.'.
21670# Shell code in configure.ac might set extrasub.
21671# FIXME: do we really want to maintain this feature?
21672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21673ac_sed_extra="$ac_vpsub
21674$extrasub
21675_ACEOF
21676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21677:t
21678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21679s|@configure_input@|$ac_sed_conf_input|;t t
21680s&@top_builddir@&$ac_top_builddir_sub&;t t
21681s&@top_build_prefix@&$ac_top_build_prefix&;t t
21682s&@srcdir@&$ac_srcdir&;t t
21683s&@abs_srcdir@&$ac_abs_srcdir&;t t
21684s&@top_srcdir@&$ac_top_srcdir&;t t
21685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21686s&@builddir@&$ac_builddir&;t t
21687s&@abs_builddir@&$ac_abs_builddir&;t t
21688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21689s&@INSTALL@&$ac_INSTALL&;t t
21690s&@MKDIR_P@&$ac_MKDIR_P&;t t
21691$ac_datarootdir_hack
21692"
21693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21694  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21695
21696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21697  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21698  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21699      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21701which seems to be undefined.  Please make sure it is defined" >&5
21702printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21703which seems to be undefined.  Please make sure it is defined" >&2;}
21704
21705  rm -f "$ac_tmp/stdin"
21706  case $ac_file in
21707  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21708  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21709  esac \
21710  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21711 ;;
21712  :H)
21713  #
21714  # CONFIG_HEADER
21715  #
21716  if test x"$ac_file" != x-; then
21717    {
21718      printf "%s\n" "/* $configure_input  */" >&1 \
21719      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21720    } >"$ac_tmp/config.h" \
21721      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21722    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21723      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21724printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21725    else
21726      rm -f "$ac_file"
21727      mv "$ac_tmp/config.h" "$ac_file" \
21728	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21729    fi
21730  else
21731    printf "%s\n" "/* $configure_input  */" >&1 \
21732      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21733      || as_fn_error $? "could not create -" "$LINENO" 5
21734  fi
21735# Compute "$ac_file"'s index in $config_headers.
21736_am_arg="$ac_file"
21737_am_stamp_count=1
21738for _am_header in $config_headers :; do
21739  case $_am_header in
21740    $_am_arg | $_am_arg:* )
21741      break ;;
21742    * )
21743      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21744  esac
21745done
21746echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21747$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21748	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21749	 X"$_am_arg" : 'X\(//\)$' \| \
21750	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21751printf "%s\n" X"$_am_arg" |
21752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21753	    s//\1/
21754	    q
21755	  }
21756	  /^X\(\/\/\)[^/].*/{
21757	    s//\1/
21758	    q
21759	  }
21760	  /^X\(\/\/\)$/{
21761	    s//\1/
21762	    q
21763	  }
21764	  /^X\(\/\).*/{
21765	    s//\1/
21766	    q
21767	  }
21768	  s/.*/./; q'`/stamp-h$_am_stamp_count
21769 ;;
21770
21771  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21772printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21773 ;;
21774  esac
21775
21776
21777  case $ac_file$ac_mode in
21778    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21779  # Older Autoconf quotes --file arguments for eval, but not when files
21780  # are listed without --file.  Let's play safe and only enable the eval
21781  # if we detect the quoting.
21782  # TODO: see whether this extra hack can be removed once we start
21783  # requiring Autoconf 2.70 or later.
21784  case $CONFIG_FILES in #(
21785  *\'*) :
21786    eval set x "$CONFIG_FILES" ;; #(
21787  *) :
21788    set x $CONFIG_FILES ;; #(
21789  *) :
21790     ;;
21791esac
21792  shift
21793  # Used to flag and report bootstrapping failures.
21794  am_rc=0
21795  for am_mf
21796  do
21797    # Strip MF so we end up with the name of the file.
21798    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21799    # Check whether this is an Automake generated Makefile which includes
21800    # dependency-tracking related rules and includes.
21801    # Grep'ing the whole file directly is not great: AIX grep has a line
21802    # limit of 2048, but all sed's we know have understand at least 4000.
21803    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21804      || continue
21805    am_dirpart=`$as_dirname -- "$am_mf" ||
21806$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21807	 X"$am_mf" : 'X\(//\)[^/]' \| \
21808	 X"$am_mf" : 'X\(//\)$' \| \
21809	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21810printf "%s\n" X"$am_mf" |
21811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21812	    s//\1/
21813	    q
21814	  }
21815	  /^X\(\/\/\)[^/].*/{
21816	    s//\1/
21817	    q
21818	  }
21819	  /^X\(\/\/\)$/{
21820	    s//\1/
21821	    q
21822	  }
21823	  /^X\(\/\).*/{
21824	    s//\1/
21825	    q
21826	  }
21827	  s/.*/./; q'`
21828    am_filepart=`$as_basename -- "$am_mf" ||
21829$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21830	 X"$am_mf" : 'X\(//\)$' \| \
21831	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21832printf "%s\n" X/"$am_mf" |
21833    sed '/^.*\/\([^/][^/]*\)\/*$/{
21834	    s//\1/
21835	    q
21836	  }
21837	  /^X\/\(\/\/\)$/{
21838	    s//\1/
21839	    q
21840	  }
21841	  /^X\/\(\/\).*/{
21842	    s//\1/
21843	    q
21844	  }
21845	  s/.*/./; q'`
21846    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21847      && sed -e '/# am--include-marker/d' "$am_filepart" \
21848        | $MAKE -f - am--depfiles" >&5
21849   (cd "$am_dirpart" \
21850      && sed -e '/# am--include-marker/d' "$am_filepart" \
21851        | $MAKE -f - am--depfiles) >&5 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } || am_rc=$?
21855  done
21856  if test $am_rc -ne 0; then
21857    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21858printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21859as_fn_error $? "Something went wrong bootstrapping makefile fragments
21860    for automatic dependency tracking.  If GNU make was not used, consider
21861    re-running the configure script with MAKE=\"gmake\" (or whatever is
21862    necessary).  You can also try re-running configure with the
21863    '--disable-dependency-tracking' option to at least be able to build
21864    the package (albeit without support for automatic dependency tracking).
21865See \`config.log' for more details" "$LINENO" 5; }
21866  fi
21867  { am_dirpart=; unset am_dirpart;}
21868  { am_filepart=; unset am_filepart;}
21869  { am_mf=; unset am_mf;}
21870  { am_rc=; unset am_rc;}
21871  rm -f conftest-deps.mk
21872}
21873 ;;
21874    "libtool":C)
21875
21876    # See if we are running on zsh, and set the options that allow our
21877    # commands through without removal of \ escapes.
21878    if test -n "${ZSH_VERSION+set}"; then
21879      setopt NO_GLOB_SUBST
21880    fi
21881
21882    cfgfile=${ofile}T
21883    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21884    $RM "$cfgfile"
21885
21886    cat <<_LT_EOF >> "$cfgfile"
21887#! $SHELL
21888# Generated automatically by $as_me ($PACKAGE) $VERSION
21889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21890# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21891
21892# Provide generalized library-building support services.
21893# Written by Gordon Matzigkeit, 1996
21894
21895# Copyright (C) 2014 Free Software Foundation, Inc.
21896# This is free software; see the source for copying conditions.  There is NO
21897# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21898
21899# GNU Libtool is free software; you can redistribute it and/or modify
21900# it under the terms of the GNU General Public License as published by
21901# the Free Software Foundation; either version 2 of of the License, or
21902# (at your option) any later version.
21903#
21904# As a special exception to the GNU General Public License, if you
21905# distribute this file as part of a program or library that is built
21906# using GNU Libtool, you may include this file under the  same
21907# distribution terms that you use for the rest of that program.
21908#
21909# GNU Libtool is distributed in the hope that it will be useful, but
21910# WITHOUT ANY WARRANTY; without even the implied warranty of
21911# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21912# GNU General Public License for more details.
21913#
21914# You should have received a copy of the GNU General Public License
21915# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21916
21917
21918# The names of the tagged configurations supported by this script.
21919available_tags=''
21920
21921# Configured defaults for sys_lib_dlsearch_path munging.
21922: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21923
21924# ### BEGIN LIBTOOL CONFIG
21925
21926# Which release of libtool.m4 was used?
21927macro_version=$macro_version
21928macro_revision=$macro_revision
21929
21930# Whether or not to build shared libraries.
21931build_libtool_libs=$enable_shared
21932
21933# Whether or not to build static libraries.
21934build_old_libs=$enable_static
21935
21936# What type of objects to build.
21937pic_mode=$pic_mode
21938
21939# Whether or not to optimize for fast installation.
21940fast_install=$enable_fast_install
21941
21942# Shared archive member basename,for filename based shared library versioning on AIX.
21943shared_archive_member_spec=$shared_archive_member_spec
21944
21945# Shell to use when invoking shell scripts.
21946SHELL=$lt_SHELL
21947
21948# An echo program that protects backslashes.
21949ECHO=$lt_ECHO
21950
21951# The PATH separator for the build system.
21952PATH_SEPARATOR=$lt_PATH_SEPARATOR
21953
21954# The host system.
21955host_alias=$host_alias
21956host=$host
21957host_os=$host_os
21958
21959# The build system.
21960build_alias=$build_alias
21961build=$build
21962build_os=$build_os
21963
21964# A sed program that does not truncate output.
21965SED=$lt_SED
21966
21967# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21968Xsed="\$SED -e 1s/^X//"
21969
21970# A grep program that handles long lines.
21971GREP=$lt_GREP
21972
21973# An ERE matcher.
21974EGREP=$lt_EGREP
21975
21976# A literal string matcher.
21977FGREP=$lt_FGREP
21978
21979# A BSD- or MS-compatible name lister.
21980NM=$lt_NM
21981
21982# Whether we need soft or hard links.
21983LN_S=$lt_LN_S
21984
21985# What is the maximum length of a command?
21986max_cmd_len=$max_cmd_len
21987
21988# Object file suffix (normally "o").
21989objext=$ac_objext
21990
21991# Executable file suffix (normally "").
21992exeext=$exeext
21993
21994# whether the shell understands "unset".
21995lt_unset=$lt_unset
21996
21997# turn spaces into newlines.
21998SP2NL=$lt_lt_SP2NL
21999
22000# turn newlines into spaces.
22001NL2SP=$lt_lt_NL2SP
22002
22003# convert \$build file names to \$host format.
22004to_host_file_cmd=$lt_cv_to_host_file_cmd
22005
22006# convert \$build files to toolchain format.
22007to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22008
22009# A file(cmd) program that detects file types.
22010FILECMD=$lt_FILECMD
22011
22012# An object symbol dumper.
22013OBJDUMP=$lt_OBJDUMP
22014
22015# Method to check whether dependent libraries are shared objects.
22016deplibs_check_method=$lt_deplibs_check_method
22017
22018# Command to use when deplibs_check_method = "file_magic".
22019file_magic_cmd=$lt_file_magic_cmd
22020
22021# How to find potential files when deplibs_check_method = "file_magic".
22022file_magic_glob=$lt_file_magic_glob
22023
22024# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22025want_nocaseglob=$lt_want_nocaseglob
22026
22027# DLL creation program.
22028DLLTOOL=$lt_DLLTOOL
22029
22030# Command to associate shared and link libraries.
22031sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22032
22033# The archiver.
22034AR=$lt_AR
22035
22036# Flags to create an archive (by configure).
22037lt_ar_flags=$lt_ar_flags
22038
22039# Flags to create an archive.
22040AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22041
22042# How to feed a file listing to the archiver.
22043archiver_list_spec=$lt_archiver_list_spec
22044
22045# A symbol stripping program.
22046STRIP=$lt_STRIP
22047
22048# Commands used to install an old-style archive.
22049RANLIB=$lt_RANLIB
22050old_postinstall_cmds=$lt_old_postinstall_cmds
22051old_postuninstall_cmds=$lt_old_postuninstall_cmds
22052
22053# Whether to use a lock for old archive extraction.
22054lock_old_archive_extraction=$lock_old_archive_extraction
22055
22056# A C compiler.
22057LTCC=$lt_CC
22058
22059# LTCC compiler flags.
22060LTCFLAGS=$lt_CFLAGS
22061
22062# Take the output of nm and produce a listing of raw symbols and C names.
22063global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22064
22065# Transform the output of nm in a proper C declaration.
22066global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22067
22068# Transform the output of nm into a list of symbols to manually relocate.
22069global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22070
22071# Transform the output of nm in a C name address pair.
22072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22073
22074# Transform the output of nm in a C name address pair when lib prefix is needed.
22075global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22076
22077# The name lister interface.
22078nm_interface=$lt_lt_cv_nm_interface
22079
22080# Specify filename containing input files for \$NM.
22081nm_file_list_spec=$lt_nm_file_list_spec
22082
22083# The root where to search for dependent libraries,and where our libraries should be installed.
22084lt_sysroot=$lt_sysroot
22085
22086# Command to truncate a binary pipe.
22087lt_truncate_bin=$lt_lt_cv_truncate_bin
22088
22089# The name of the directory that contains temporary libtool files.
22090objdir=$objdir
22091
22092# Used to examine libraries when file_magic_cmd begins with "file".
22093MAGIC_CMD=$MAGIC_CMD
22094
22095# Must we lock files when doing compilation?
22096need_locks=$lt_need_locks
22097
22098# Manifest tool.
22099MANIFEST_TOOL=$lt_MANIFEST_TOOL
22100
22101# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22102DSYMUTIL=$lt_DSYMUTIL
22103
22104# Tool to change global to local symbols on Mac OS X.
22105NMEDIT=$lt_NMEDIT
22106
22107# Tool to manipulate fat objects and archives on Mac OS X.
22108LIPO=$lt_LIPO
22109
22110# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22111OTOOL=$lt_OTOOL
22112
22113# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22114OTOOL64=$lt_OTOOL64
22115
22116# Old archive suffix (normally "a").
22117libext=$libext
22118
22119# Shared library suffix (normally ".so").
22120shrext_cmds=$lt_shrext_cmds
22121
22122# The commands to extract the exported symbol list from a shared archive.
22123extract_expsyms_cmds=$lt_extract_expsyms_cmds
22124
22125# Variables whose values should be saved in libtool wrapper scripts and
22126# restored at link time.
22127variables_saved_for_relink=$lt_variables_saved_for_relink
22128
22129# Do we need the "lib" prefix for modules?
22130need_lib_prefix=$need_lib_prefix
22131
22132# Do we need a version for libraries?
22133need_version=$need_version
22134
22135# Library versioning type.
22136version_type=$version_type
22137
22138# Shared library runtime path variable.
22139runpath_var=$runpath_var
22140
22141# Shared library path variable.
22142shlibpath_var=$shlibpath_var
22143
22144# Is shlibpath searched before the hard-coded library search path?
22145shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22146
22147# Format of library name prefix.
22148libname_spec=$lt_libname_spec
22149
22150# List of archive names.  First name is the real one, the rest are links.
22151# The last name is the one that the linker finds with -lNAME
22152library_names_spec=$lt_library_names_spec
22153
22154# The coded name of the library, if different from the real name.
22155soname_spec=$lt_soname_spec
22156
22157# Permission mode override for installation of shared libraries.
22158install_override_mode=$lt_install_override_mode
22159
22160# Command to use after installation of a shared archive.
22161postinstall_cmds=$lt_postinstall_cmds
22162
22163# Command to use after uninstallation of a shared archive.
22164postuninstall_cmds=$lt_postuninstall_cmds
22165
22166# Commands used to finish a libtool library installation in a directory.
22167finish_cmds=$lt_finish_cmds
22168
22169# As "finish_cmds", except a single script fragment to be evaled but
22170# not shown.
22171finish_eval=$lt_finish_eval
22172
22173# Whether we should hardcode library paths into libraries.
22174hardcode_into_libs=$hardcode_into_libs
22175
22176# Compile-time system search path for libraries.
22177sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22178
22179# Detected run-time system search path for libraries.
22180sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22181
22182# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22183configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22184
22185# Whether dlopen is supported.
22186dlopen_support=$enable_dlopen
22187
22188# Whether dlopen of programs is supported.
22189dlopen_self=$enable_dlopen_self
22190
22191# Whether dlopen of statically linked programs is supported.
22192dlopen_self_static=$enable_dlopen_self_static
22193
22194# Commands to strip libraries.
22195old_striplib=$lt_old_striplib
22196striplib=$lt_striplib
22197
22198
22199# The linker used to build libraries.
22200LD=$lt_LD
22201
22202# How to create reloadable object files.
22203reload_flag=$lt_reload_flag
22204reload_cmds=$lt_reload_cmds
22205
22206# Commands used to build an old-style archive.
22207old_archive_cmds=$lt_old_archive_cmds
22208
22209# A language specific compiler.
22210CC=$lt_compiler
22211
22212# Is the compiler the GNU compiler?
22213with_gcc=$GCC
22214
22215# Compiler flag to turn off builtin functions.
22216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22217
22218# Additional compiler flags for building library objects.
22219pic_flag=$lt_lt_prog_compiler_pic
22220
22221# How to pass a linker flag through the compiler.
22222wl=$lt_lt_prog_compiler_wl
22223
22224# Compiler flag to prevent dynamic linking.
22225link_static_flag=$lt_lt_prog_compiler_static
22226
22227# Does compiler simultaneously support -c and -o options?
22228compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22229
22230# Whether or not to add -lc for building shared libraries.
22231build_libtool_need_lc=$archive_cmds_need_lc
22232
22233# Whether or not to disallow shared libs when runtime libs are static.
22234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22235
22236# Compiler flag to allow reflexive dlopens.
22237export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22238
22239# Compiler flag to generate shared objects directly from archives.
22240whole_archive_flag_spec=$lt_whole_archive_flag_spec
22241
22242# Whether the compiler copes with passing no objects directly.
22243compiler_needs_object=$lt_compiler_needs_object
22244
22245# Create an old-style archive from a shared archive.
22246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22247
22248# Create a temporary old-style archive to link instead of a shared archive.
22249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22250
22251# Commands used to build a shared archive.
22252archive_cmds=$lt_archive_cmds
22253archive_expsym_cmds=$lt_archive_expsym_cmds
22254
22255# Commands used to build a loadable module if different from building
22256# a shared archive.
22257module_cmds=$lt_module_cmds
22258module_expsym_cmds=$lt_module_expsym_cmds
22259
22260# Whether we are building with GNU ld or not.
22261with_gnu_ld=$lt_with_gnu_ld
22262
22263# Flag that allows shared libraries with undefined symbols to be built.
22264allow_undefined_flag=$lt_allow_undefined_flag
22265
22266# Flag that enforces no undefined symbols.
22267no_undefined_flag=$lt_no_undefined_flag
22268
22269# Flag to hardcode \$libdir into a binary during linking.
22270# This must work even if \$libdir does not exist
22271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22272
22273# Whether we need a single "-rpath" flag with a separated argument.
22274hardcode_libdir_separator=$lt_hardcode_libdir_separator
22275
22276# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22277# DIR into the resulting binary.
22278hardcode_direct=$hardcode_direct
22279
22280# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22281# DIR into the resulting binary and the resulting library dependency is
22282# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22283# library is relocated.
22284hardcode_direct_absolute=$hardcode_direct_absolute
22285
22286# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22287# into the resulting binary.
22288hardcode_minus_L=$hardcode_minus_L
22289
22290# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22291# into the resulting binary.
22292hardcode_shlibpath_var=$hardcode_shlibpath_var
22293
22294# Set to "yes" if building a shared library automatically hardcodes DIR
22295# into the library and all subsequent libraries and executables linked
22296# against it.
22297hardcode_automatic=$hardcode_automatic
22298
22299# Set to yes if linker adds runtime paths of dependent libraries
22300# to runtime path list.
22301inherit_rpath=$inherit_rpath
22302
22303# Whether libtool must link a program against all its dependency libraries.
22304link_all_deplibs=$link_all_deplibs
22305
22306# Set to "yes" if exported symbols are required.
22307always_export_symbols=$always_export_symbols
22308
22309# The commands to list exported symbols.
22310export_symbols_cmds=$lt_export_symbols_cmds
22311
22312# Symbols that should not be listed in the preloaded symbols.
22313exclude_expsyms=$lt_exclude_expsyms
22314
22315# Symbols that must always be exported.
22316include_expsyms=$lt_include_expsyms
22317
22318# Commands necessary for linking programs (against libraries) with templates.
22319prelink_cmds=$lt_prelink_cmds
22320
22321# Commands necessary for finishing linking programs.
22322postlink_cmds=$lt_postlink_cmds
22323
22324# Specify filename containing input files.
22325file_list_spec=$lt_file_list_spec
22326
22327# How to hardcode a shared library path into an executable.
22328hardcode_action=$hardcode_action
22329
22330# ### END LIBTOOL CONFIG
22331
22332_LT_EOF
22333
22334    cat <<'_LT_EOF' >> "$cfgfile"
22335
22336# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22337
22338# func_munge_path_list VARIABLE PATH
22339# -----------------------------------
22340# VARIABLE is name of variable containing _space_ separated list of
22341# directories to be munged by the contents of PATH, which is string
22342# having a format:
22343# "DIR[:DIR]:"
22344#       string "DIR[ DIR]" will be prepended to VARIABLE
22345# ":DIR[:DIR]"
22346#       string "DIR[ DIR]" will be appended to VARIABLE
22347# "DIRP[:DIRP]::[DIRA:]DIRA"
22348#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22349#       "DIRA[ DIRA]" will be appended to VARIABLE
22350# "DIR[:DIR]"
22351#       VARIABLE will be replaced by "DIR[ DIR]"
22352func_munge_path_list ()
22353{
22354    case x$2 in
22355    x)
22356        ;;
22357    *:)
22358        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22359        ;;
22360    x:*)
22361        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22362        ;;
22363    *::*)
22364        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22365        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22366        ;;
22367    *)
22368        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22369        ;;
22370    esac
22371}
22372
22373
22374# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22375func_cc_basename ()
22376{
22377    for cc_temp in $*""; do
22378      case $cc_temp in
22379        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22380        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22381        \-*) ;;
22382        *) break;;
22383      esac
22384    done
22385    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22386}
22387
22388
22389# ### END FUNCTIONS SHARED WITH CONFIGURE
22390
22391_LT_EOF
22392
22393  case $host_os in
22394  aix3*)
22395    cat <<\_LT_EOF >> "$cfgfile"
22396# AIX sometimes has problems with the GCC collect2 program.  For some
22397# reason, if we set the COLLECT_NAMES environment variable, the problems
22398# vanish in a puff of smoke.
22399if test set != "${COLLECT_NAMES+set}"; then
22400  COLLECT_NAMES=
22401  export COLLECT_NAMES
22402fi
22403_LT_EOF
22404    ;;
22405  esac
22406
22407
22408
22409ltmain=$ac_aux_dir/ltmain.sh
22410
22411
22412  # We use sed instead of cat because bash on DJGPP gets confused if
22413  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22414  # text mode, it properly converts lines to CR/LF.  This bash problem
22415  # is reportedly fixed, but why not run on old versions too?
22416  $SED '$q' "$ltmain" >> "$cfgfile" \
22417     || (rm -f "$cfgfile"; exit 1)
22418
22419   mv -f "$cfgfile" "$ofile" ||
22420    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22421  chmod +x "$ofile"
22422
22423 ;;
22424
22425  esac
22426done # for ac_tag
22427
22428
22429as_fn_exit 0
22430_ACEOF
22431ac_clean_files=$ac_clean_files_save
22432
22433test $ac_write_fail = 0 ||
22434  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22435
22436
22437# configure is writing to config.log, and then calls config.status.
22438# config.status does its own redirection, appending to config.log.
22439# Unfortunately, on DOS this fails, as config.log is still kept open
22440# by configure, so config.status won't be able to write to it; its
22441# output is simply discarded.  So we exec the FD to /dev/null,
22442# effectively closing config.log, so it can be properly (re)opened and
22443# appended to by config.status.  When coming back to configure, we
22444# need to make the FD available again.
22445if test "$no_create" != yes; then
22446  ac_cs_success=:
22447  ac_config_status_args=
22448  test "$silent" = yes &&
22449    ac_config_status_args="$ac_config_status_args --quiet"
22450  exec 5>/dev/null
22451  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22452  exec 5>>config.log
22453  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22454  # would make configure fail if this is the last instruction.
22455  $ac_cs_success || as_fn_exit 1
22456fi
22457if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22459printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22460fi
22461
22462
22463