configure revision 7cea3689
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXau 1.0.9.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXau/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
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'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/lib/libXau/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libXau'
593PACKAGE_TARNAME='libXau'
594PACKAGE_VERSION='1.0.9'
595PACKAGE_STRING='libXau 1.0.9'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXau/issues'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640MAKE_LINT_LIB_FALSE
641MAKE_LINT_LIB_TRUE
642LINTLIB
643LINT_FALSE
644LINT_TRUE
645LINT_FLAGS
646LINT
647XAU_LIBS
648XAU_CFLAGS
649MAN_SUBSTS
650XORG_MAN_PAGE
651ADMIN_MAN_DIR
652DRIVER_MAN_DIR
653MISC_MAN_DIR
654FILE_MAN_DIR
655LIB_MAN_DIR
656APP_MAN_DIR
657ADMIN_MAN_SUFFIX
658DRIVER_MAN_SUFFIX
659MISC_MAN_SUFFIX
660FILE_MAN_SUFFIX
661LIB_MAN_SUFFIX
662APP_MAN_SUFFIX
663INSTALL_CMD
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667CHANGELOG_CMD
668STRICT_CFLAGS
669CWARNFLAGS
670BASE_CFLAGS
671LT_SYS_LIBRARY_PATH
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681LN_S
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
687SED
688LIBTOOL
689OBJDUMP
690DLLTOOL
691AS
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707am__nodep
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__quote
712am__include
713DEPDIR
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737EGREP
738GREP
739CPP
740OBJEXT
741EXEEXT
742ac_ct_CC
743CPPFLAGS
744LDFLAGS
745CFLAGS
746CC
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_dependency_tracking
789enable_silent_rules
790enable_shared
791enable_static
792with_pic
793enable_fast_install
794with_aix_soname
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798enable_selective_werror
799enable_strict_compilation
800enable_xthreads
801with_lint
802enable_lint_library
803'
804      ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810LIBS
811CPPFLAGS
812CPP
813LT_SYS_LIBRARY_PATH
814PKG_CONFIG
815PKG_CONFIG_PATH
816PKG_CONFIG_LIBDIR
817XAU_CFLAGS
818XAU_LIBS
819LINT
820LINT_FLAGS'
821
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826ac_unrecognized_opts=
827ac_unrecognized_sep=
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
850# (The list follows the same order as the GNU Coding Standards.)
851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112    ac_prev=sbindir ;;
1113  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114  | --sbi=* | --sb=*)
1115    sbindir=$ac_optarg ;;
1116
1117  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119  | --sharedst | --shareds | --shared | --share | --shar \
1120  | --sha | --sh)
1121    ac_prev=sharedstatedir ;;
1122  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125  | --sha=* | --sh=*)
1126    sharedstatedir=$ac_optarg ;;
1127
1128  -site | --site | --sit)
1129    ac_prev=site ;;
1130  -site=* | --site=* | --sit=*)
1131    site=$ac_optarg ;;
1132
1133  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134    ac_prev=srcdir ;;
1135  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136    srcdir=$ac_optarg ;;
1137
1138  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139  | --syscon | --sysco | --sysc | --sys | --sy)
1140    ac_prev=sysconfdir ;;
1141  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143    sysconfdir=$ac_optarg ;;
1144
1145  -target | --target | --targe | --targ | --tar | --ta | --t)
1146    ac_prev=target_alias ;;
1147  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148    target_alias=$ac_optarg ;;
1149
1150  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151    verbose=yes ;;
1152
1153  -version | --version | --versio | --versi | --vers | -V)
1154    ac_init_version=: ;;
1155
1156  -with-* | --with-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=\$ac_optarg ;;
1171
1172  -without-* | --without-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=no ;;
1187
1188  --x)
1189    # Obsolete; use --with-x.
1190    with_x=yes ;;
1191
1192  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193  | --x-incl | --x-inc | --x-in | --x-i)
1194    ac_prev=x_includes ;;
1195  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197    x_includes=$ac_optarg ;;
1198
1199  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201    ac_prev=x_libraries ;;
1202  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204    x_libraries=$ac_optarg ;;
1205
1206  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207Try \`$0 --help' for more information"
1208    ;;
1209
1210  *=*)
1211    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212    # Reject names that are not valid shell variable names.
1213    case $ac_envvar in #(
1214      '' | [0-9]* | *[!_$as_cr_alnum]* )
1215      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216    esac
1217    eval $ac_envvar=\$ac_optarg
1218    export $ac_envvar ;;
1219
1220  *)
1221    # FIXME: should be removed in autoconf 3.0.
1222    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226    ;;
1227
1228  esac
1229done
1230
1231if test -n "$ac_prev"; then
1232  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233  as_fn_error $? "missing argument to $ac_option"
1234fi
1235
1236if test -n "$ac_unrecognized_opts"; then
1237  case $enable_option_checking in
1238    no) ;;
1239    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241  esac
1242fi
1243
1244# Check all directory arguments for consistency.
1245for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246		datadir sysconfdir sharedstatedir localstatedir includedir \
1247		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248		libdir localedir mandir
1249do
1250  eval ac_val=\$$ac_var
1251  # Remove trailing slashes.
1252  case $ac_val in
1253    */ )
1254      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255      eval $ac_var=\$ac_val;;
1256  esac
1257  # Be sure to have absolute directory names.
1258  case $ac_val in
1259    [\\/$]* | ?:[\\/]* )  continue;;
1260    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261  esac
1262  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263done
1264
1265# There might be people who depend on the old broken behavior: `$host'
1266# used to hold the argument of --host etc.
1267# FIXME: To remove some day.
1268build=$build_alias
1269host=$host_alias
1270target=$target_alias
1271
1272# FIXME: To remove some day.
1273if test "x$host_alias" != x; then
1274  if test "x$build_alias" = x; then
1275    cross_compiling=maybe
1276  elif test "x$build_alias" != "x$host_alias"; then
1277    cross_compiling=yes
1278  fi
1279fi
1280
1281ac_tool_prefix=
1282test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284test "$silent" = yes && exec 6>/dev/null
1285
1286
1287ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288ac_ls_di=`ls -di .` &&
1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290  as_fn_error $? "working directory cannot be determined"
1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292  as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295# Find the source files, if location was not specified.
1296if test -z "$srcdir"; then
1297  ac_srcdir_defaulted=yes
1298  # Try the directory containing this script, then the parent directory.
1299  ac_confdir=`$as_dirname -- "$as_myself" ||
1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301	 X"$as_myself" : 'X\(//\)[^/]' \| \
1302	 X"$as_myself" : 'X\(//\)$' \| \
1303	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304$as_echo X"$as_myself" |
1305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)[^/].*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\).*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  s/.*/./; q'`
1322  srcdir=$ac_confdir
1323  if test ! -r "$srcdir/$ac_unique_file"; then
1324    srcdir=..
1325  fi
1326else
1327  ac_srcdir_defaulted=no
1328fi
1329if test ! -r "$srcdir/$ac_unique_file"; then
1330  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332fi
1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334ac_abs_confdir=`(
1335	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336	pwd)`
1337# When building in place, set srcdir=.
1338if test "$ac_abs_confdir" = "$ac_pwd"; then
1339  srcdir=.
1340fi
1341# Remove unnecessary trailing slashes from srcdir.
1342# Double slashes in file names in object file debugging info
1343# mess up M-x gdb in Emacs.
1344case $srcdir in
1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346esac
1347for ac_var in $ac_precious_vars; do
1348  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_env_${ac_var}_value=\$${ac_var}
1350  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358  # Omit some internal or obsolete options to make the list less imposing.
1359  # This message is too long to be a string in the A/UX 3.1 sh.
1360  cat <<_ACEOF
1361\`configure' configures libXau 1.0.9 to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371  -h, --help              display this help and exit
1372      --help=short        display options specific to this package
1373      --help=recursive    display the short help of all the included packages
1374  -V, --version           display version information and exit
1375  -q, --quiet, --silent   do not print \`checking ...' messages
1376      --cache-file=FILE   cache test results in FILE [disabled]
1377  -C, --config-cache      alias for \`--cache-file=config.cache'
1378  -n, --no-create         do not create output files
1379      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381Installation directories:
1382  --prefix=PREFIX         install architecture-independent files in PREFIX
1383                          [$ac_default_prefix]
1384  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                          [PREFIX]
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
1395  --bindir=DIR            user executables [EPREFIX/bin]
1396  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397  --libexecdir=DIR        program executables [EPREFIX/libexec]
1398  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXau]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of libXau 1.0.9:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --enable-silent-rules   less verbose build output (undo: "make V=1")
1444  --disable-silent-rules  verbose build output (undo: "make V=0")
1445  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446  --enable-static[=PKGS]  build static libraries [default=yes]
1447  --enable-fast-install[=PKGS]
1448                          optimize for fast installation [default=yes]
1449  --disable-libtool-lock  avoid locking (might break parallel builds)
1450  --disable-selective-werror
1451                          Turn off selective compiler errors. (default:
1452                          enabled)
1453  --enable-strict-compilation
1454                          Enable all warnings from compiler and make them
1455                          errors (default: disabled)
1456  --disable-xthreads      Disable libXau support for Multithreading
1457  --enable-lint-library   Create lint library (default: disabled)
1458
1459Optional Packages:
1460  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463                          both]
1464  --with-aix-soname=aix|svr4|both
1465                          shared library versioning (aka "SONAME") variant to
1466                          provide on AIX, [default=aix].
1467  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1468  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1469                          compiler's sysroot if not specified).
1470  --with-lint             Use a lint-style source code checker (default:
1471                          disabled)
1472
1473Some influential environment variables:
1474  CC          C compiler command
1475  CFLAGS      C compiler flags
1476  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477              nonstandard directory <lib dir>
1478  LIBS        libraries to pass to the linker, e.g. -l<library>
1479  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480              you have headers in a nonstandard directory <include dir>
1481  CPP         C preprocessor
1482  LT_SYS_LIBRARY_PATH
1483              User-defined run-time library search path.
1484  PKG_CONFIG  path to pkg-config utility
1485  PKG_CONFIG_PATH
1486              directories to add to pkg-config's search path
1487  PKG_CONFIG_LIBDIR
1488              path overriding pkg-config's built-in search path
1489  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1490  XAU_LIBS    linker flags for XAU, overriding pkg-config
1491  LINT        Path to a lint-style command
1492  LINT_FLAGS  Flags for the lint-style command
1493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXau/issues>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503  # If there are subdirs, report their specific --help.
1504  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505    test -d "$ac_dir" ||
1506      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507      continue
1508    ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514  # A ".." for each directory in $ac_dir_suffix.
1515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516  case $ac_top_builddir_sub in
1517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519  esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527  .)  # We are building in place.
1528    ac_srcdir=.
1529    ac_top_srcdir=$ac_top_builddir_sub
1530    ac_abs_top_srcdir=$ac_pwd ;;
1531  [\\/]* | ?:[\\/]* )  # Absolute name.
1532    ac_srcdir=$srcdir$ac_dir_suffix;
1533    ac_top_srcdir=$srcdir
1534    ac_abs_top_srcdir=$srcdir ;;
1535  *) # Relative name.
1536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537    ac_top_srcdir=$ac_top_build_prefix$srcdir
1538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542    cd "$ac_dir" || { ac_status=$?; continue; }
1543    # Check for guested configure.
1544    if test -f "$ac_srcdir/configure.gnu"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547    elif test -f "$ac_srcdir/configure"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure" --help=recursive
1550    else
1551      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552    fi || ac_status=$?
1553    cd "$ac_pwd" || { ac_status=$?; break; }
1554  done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559  cat <<\_ACEOF
1560libXau configure 1.0.9
1561generated by GNU Autoconf 2.69
1562
1563Copyright (C) 2012 Free Software Foundation, Inc.
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567  exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  rm -f conftest.$ac_objext
1581  if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_compile") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } && {
1597	 test -z "$ac_c_werror_flag" ||
1598	 test ! -s conftest.err
1599       } && test -s conftest.$ac_objext; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  if { { ac_try="$ac_cpp conftest.$ac_ext"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } > conftest.i && {
1634	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       }; then :
1637  ac_retval=0
1638else
1639  $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642    ac_retval=1
1643fi
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645  as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_cpp
1648
1649# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652# the include files in INCLUDES and setting the cache variable VAR
1653# accordingly.
1654ac_fn_c_check_header_mongrel ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  if eval \${$3+:} false; then :
1658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if eval \${$3+:} false; then :
1661  $as_echo_n "(cached) " >&6
1662fi
1663eval ac_res=\$$3
1664	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666else
1667  # Is the header compilable?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669$as_echo_n "checking $2 usability... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h.  */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676  ac_header_compiler=yes
1677else
1678  ac_header_compiler=no
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682$as_echo "$ac_header_compiler" >&6; }
1683
1684# Is the header present?
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686$as_echo_n "checking $2 presence... " >&6; }
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h.  */
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_cpp "$LINENO"; then :
1692  ac_header_preproc=yes
1693else
1694  ac_header_preproc=no
1695fi
1696rm -f conftest.err conftest.i conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698$as_echo "$ac_header_preproc" >&6; }
1699
1700# So?  What about this header?
1701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702  yes:no: )
1703    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707    ;;
1708  no:yes:* )
1709    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1712$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1716$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719( $as_echo "## -------------------------------------------------------------------- ##
1720## Report this to https://gitlab.freedesktop.org/xorg/lib/libXau/issues ##
1721## -------------------------------------------------------------------- ##"
1722     ) | sed "s/^/$as_me: WARNING:     /" >&2
1723    ;;
1724esac
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729else
1730  eval "$3=\$ac_header_compiler"
1731fi
1732eval ac_res=\$$3
1733	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735fi
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738} # ac_fn_c_check_header_mongrel
1739
1740# ac_fn_c_try_run LINENO
1741# ----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743# that executables *can* be run.
1744ac_fn_c_try_run ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_link") 2>&5
1755  ac_status=$?
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758  { { case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_try") 2>&5
1765  ac_status=$?
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; }; }; then :
1768  ac_retval=0
1769else
1770  $as_echo "$as_me: program exited with status $ac_status" >&5
1771       $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774       ac_retval=$ac_status
1775fi
1776  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_run
1781
1782# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists and can be compiled using the include files in
1785# INCLUDES, setting the cache variable VAR accordingly.
1786ac_fn_c_check_header_compile ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if eval \${$3+:} false; then :
1792  $as_echo_n "(cached) " >&6
1793else
1794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  eval "$3=yes"
1801else
1802  eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_header_compile
1812
1813# ac_fn_c_try_link LINENO
1814# -----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_link ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  rm -f conftest.$ac_objext conftest$ac_exeext
1820  if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_link") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } && {
1836	 test -z "$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       } && test -s conftest$ac_exeext && {
1839	 test "$cross_compiling" = yes ||
1840	 test -x conftest$ac_exeext
1841       }; then :
1842  ac_retval=0
1843else
1844  $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847	ac_retval=1
1848fi
1849  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851  # interfere with the next link command; also delete a directory that is
1852  # left behind by Apple's compiler.  We do this before executing the actions.
1853  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855  as_fn_set_status $ac_retval
1856
1857} # ac_fn_c_try_link
1858
1859# ac_fn_c_check_func LINENO FUNC VAR
1860# ----------------------------------
1861# Tests whether FUNC exists, setting the cache variable VAR accordingly
1862ac_fn_c_check_func ()
1863{
1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868  $as_echo_n "(cached) " >&6
1869else
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1874#define $2 innocuous_$2
1875
1876/* System header to define __stub macros and hopefully few prototypes,
1877    which can conflict with char $2 (); below.
1878    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879    <limits.h> exists even on freestanding compilers.  */
1880
1881#ifdef __STDC__
1882# include <limits.h>
1883#else
1884# include <assert.h>
1885#endif
1886
1887#undef $2
1888
1889/* Override any GCC internal prototype to avoid an error.
1890   Use char because int might match the return type of a GCC
1891   builtin and then its argument prototype would still apply.  */
1892#ifdef __cplusplus
1893extern "C"
1894#endif
1895char $2 ();
1896/* The GNU C library defines this for functions which it implements
1897    to always fail with ENOSYS.  Some functions are actually named
1898    something starting with __ and the normal name is an alias.  */
1899#if defined __stub_$2 || defined __stub___$2
1900choke me
1901#endif
1902
1903int
1904main ()
1905{
1906return $2 ();
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_link "$LINENO"; then :
1912  eval "$3=yes"
1913else
1914  eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext \
1917    conftest$ac_exeext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924} # ac_fn_c_check_func
1925
1926# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927# ---------------------------------------------
1928# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929# accordingly.
1930ac_fn_c_check_decl ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  as_decl_name=`echo $2|sed 's/ *(.*//'`
1934  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int
1944main ()
1945{
1946#ifndef $as_decl_name
1947#ifdef __cplusplus
1948  (void) $as_decl_use;
1949#else
1950  (void) $as_decl_name;
1951#endif
1952#endif
1953
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959  eval "$3=yes"
1960else
1961  eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_c_check_decl
1971cat >config.log <<_ACEOF
1972This file contains any messages produced by compilers while
1973running configure, to aid debugging if configure makes a mistake.
1974
1975It was created by libXau $as_me 1.0.9, which was
1976generated by GNU Autoconf 2.69.  Invocation command line was
1977
1978  $ $0 $@
1979
1980_ACEOF
1981exec 5>>config.log
1982{
1983cat <<_ASUNAME
1984## --------- ##
1985## Platform. ##
1986## --------- ##
1987
1988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1996
1997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2004
2005_ASUNAME
2006
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012    $as_echo "PATH: $as_dir"
2013  done
2014IFS=$as_save_IFS
2015
2016} >&5
2017
2018cat >&5 <<_ACEOF
2019
2020
2021## ----------- ##
2022## Core tests. ##
2023## ----------- ##
2024
2025_ACEOF
2026
2027
2028# Keep a trace of the command line.
2029# Strip out --no-create and --no-recursion so they do not pile up.
2030# Strip out --silent because we don't want to record it for future runs.
2031# Also quote any args containing shell meta-characters.
2032# Make two passes to allow for proper duplicate-argument suppression.
2033ac_configure_args=
2034ac_configure_args0=
2035ac_configure_args1=
2036ac_must_keep_next=false
2037for ac_pass in 1 2
2038do
2039  for ac_arg
2040  do
2041    case $ac_arg in
2042    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044    | -silent | --silent | --silen | --sile | --sil)
2045      continue ;;
2046    *\'*)
2047      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048    esac
2049    case $ac_pass in
2050    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051    2)
2052      as_fn_append ac_configure_args1 " '$ac_arg'"
2053      if test $ac_must_keep_next = true; then
2054	ac_must_keep_next=false # Got value, back to normal.
2055      else
2056	case $ac_arg in
2057	  *=* | --config-cache | -C | -disable-* | --disable-* \
2058	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060	  | -with-* | --with-* | -without-* | --without-* | --x)
2061	    case "$ac_configure_args0 " in
2062	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063	    esac
2064	    ;;
2065	  -* ) ac_must_keep_next=true ;;
2066	esac
2067      fi
2068      as_fn_append ac_configure_args " '$ac_arg'"
2069      ;;
2070    esac
2071  done
2072done
2073{ ac_configure_args0=; unset ac_configure_args0;}
2074{ ac_configure_args1=; unset ac_configure_args1;}
2075
2076# When interrupted or exit'd, cleanup temporary files, and complete
2077# config.log.  We remove comments because anyway the quotes in there
2078# would cause problems or look ugly.
2079# WARNING: Use '\'' to represent an apostrophe within the trap.
2080# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081trap 'exit_status=$?
2082  # Save into config.log some information that might help in debugging.
2083  {
2084    echo
2085
2086    $as_echo "## ---------------- ##
2087## Cache variables. ##
2088## ---------------- ##"
2089    echo
2090    # The following way of writing the cache mishandles newlines in values,
2091(
2092  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093    eval ac_val=\$$ac_var
2094    case $ac_val in #(
2095    *${as_nl}*)
2096      case $ac_var in #(
2097      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099      esac
2100      case $ac_var in #(
2101      _ | IFS | as_nl) ;; #(
2102      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103      *) { eval $ac_var=; unset $ac_var;} ;;
2104      esac ;;
2105    esac
2106  done
2107  (set) 2>&1 |
2108    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109    *${as_nl}ac_space=\ *)
2110      sed -n \
2111	"s/'\''/'\''\\\\'\'''\''/g;
2112	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113      ;; #(
2114    *)
2115      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116      ;;
2117    esac |
2118    sort
2119)
2120    echo
2121
2122    $as_echo "## ----------------- ##
2123## Output variables. ##
2124## ----------------- ##"
2125    echo
2126    for ac_var in $ac_subst_vars
2127    do
2128      eval ac_val=\$$ac_var
2129      case $ac_val in
2130      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131      esac
2132      $as_echo "$ac_var='\''$ac_val'\''"
2133    done | sort
2134    echo
2135
2136    if test -n "$ac_subst_files"; then
2137      $as_echo "## ------------------- ##
2138## File substitutions. ##
2139## ------------------- ##"
2140      echo
2141      for ac_var in $ac_subst_files
2142      do
2143	eval ac_val=\$$ac_var
2144	case $ac_val in
2145	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146	esac
2147	$as_echo "$ac_var='\''$ac_val'\''"
2148      done | sort
2149      echo
2150    fi
2151
2152    if test -s confdefs.h; then
2153      $as_echo "## ----------- ##
2154## confdefs.h. ##
2155## ----------- ##"
2156      echo
2157      cat confdefs.h
2158      echo
2159    fi
2160    test "$ac_signal" != 0 &&
2161      $as_echo "$as_me: caught signal $ac_signal"
2162    $as_echo "$as_me: exit $exit_status"
2163  } >&5
2164  rm -f core *.core core.conftest.* &&
2165    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166    exit $exit_status
2167' 0
2168for ac_signal in 1 2 13 15; do
2169  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170done
2171ac_signal=0
2172
2173# confdefs.h avoids OS command line length limits that DEFS can exceed.
2174rm -f -r conftest* confdefs.h
2175
2176$as_echo "/* confdefs.h */" > confdefs.h
2177
2178# Predefined preprocessor variables.
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_NAME "$PACKAGE_NAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_VERSION "$PACKAGE_VERSION"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_STRING "$PACKAGE_STRING"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_URL "$PACKAGE_URL"
2202_ACEOF
2203
2204
2205# Let the site file select an alternate cache file if it wants to.
2206# Prefer an explicitly selected file to automatically selected ones.
2207ac_site_file1=NONE
2208ac_site_file2=NONE
2209if test -n "$CONFIG_SITE"; then
2210  # We do not want a PATH search for config.site.
2211  case $CONFIG_SITE in #((
2212    -*)  ac_site_file1=./$CONFIG_SITE;;
2213    */*) ac_site_file1=$CONFIG_SITE;;
2214    *)   ac_site_file1=./$CONFIG_SITE;;
2215  esac
2216elif test "x$prefix" != xNONE; then
2217  ac_site_file1=$prefix/share/config.site
2218  ac_site_file2=$prefix/etc/config.site
2219else
2220  ac_site_file1=$ac_default_prefix/share/config.site
2221  ac_site_file2=$ac_default_prefix/etc/config.site
2222fi
2223for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224do
2225  test "x$ac_site_file" = xNONE && continue
2226  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229    sed 's/^/| /' "$ac_site_file" >&5
2230    . "$ac_site_file" \
2231      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233as_fn_error $? "failed to load site script $ac_site_file
2234See \`config.log' for more details" "$LINENO" 5; }
2235  fi
2236done
2237
2238if test -r "$cache_file"; then
2239  # Some versions of bash will fail to source /dev/null (special files
2240  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2241  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243$as_echo "$as_me: loading cache $cache_file" >&6;}
2244    case $cache_file in
2245      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246      *)                      . "./$cache_file";;
2247    esac
2248  fi
2249else
2250  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251$as_echo "$as_me: creating cache $cache_file" >&6;}
2252  >$cache_file
2253fi
2254
2255# Check that the precious variables saved in the cache have kept the same
2256# value.
2257ac_cache_corrupted=false
2258for ac_var in $ac_precious_vars; do
2259  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260  eval ac_new_set=\$ac_env_${ac_var}_set
2261  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262  eval ac_new_val=\$ac_env_${ac_var}_value
2263  case $ac_old_set,$ac_new_set in
2264    set,)
2265      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267      ac_cache_corrupted=: ;;
2268    ,set)
2269      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271      ac_cache_corrupted=: ;;
2272    ,);;
2273    *)
2274      if test "x$ac_old_val" != "x$ac_new_val"; then
2275	# differences in whitespace do not lead to failure.
2276	ac_old_val_w=`echo x $ac_old_val`
2277	ac_new_val_w=`echo x $ac_new_val`
2278	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281	  ac_cache_corrupted=:
2282	else
2283	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285	  eval $ac_var=\$ac_old_val
2286	fi
2287	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2288$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2289	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2290$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2291      fi;;
2292  esac
2293  # Pass precious variables to config.status.
2294  if test "$ac_new_set" = set; then
2295    case $ac_new_val in
2296    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297    *) ac_arg=$ac_var=$ac_new_val ;;
2298    esac
2299    case " $ac_configure_args " in
2300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2301      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302    esac
2303  fi
2304done
2305if $ac_cache_corrupted; then
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311fi
2312## -------------------- ##
2313## Main body of script. ##
2314## -------------------- ##
2315
2316ac_ext=c
2317ac_cpp='$CPP $CPPFLAGS'
2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324ac_config_headers="$ac_config_headers config.h"
2325
2326ac_aux_dir=
2327for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2328  if test -f "$ac_dir/install-sh"; then
2329    ac_aux_dir=$ac_dir
2330    ac_install_sh="$ac_aux_dir/install-sh -c"
2331    break
2332  elif test -f "$ac_dir/install.sh"; then
2333    ac_aux_dir=$ac_dir
2334    ac_install_sh="$ac_aux_dir/install.sh -c"
2335    break
2336  elif test -f "$ac_dir/shtool"; then
2337    ac_aux_dir=$ac_dir
2338    ac_install_sh="$ac_aux_dir/shtool install -c"
2339    break
2340  fi
2341done
2342if test -z "$ac_aux_dir"; then
2343  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344fi
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2353
2354
2355# Expand $ac_aux_dir to an absolute path.
2356am_aux_dir=`cd "$ac_aux_dir" && pwd`
2357
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363if test -n "$ac_tool_prefix"; then
2364  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2365set dummy ${ac_tool_prefix}gcc; ac_word=$2
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367$as_echo_n "checking for $ac_word... " >&6; }
2368if ${ac_cv_prog_CC+:} false; then :
2369  $as_echo_n "(cached) " >&6
2370else
2371  if test -n "$CC"; then
2372  ac_cv_prog_CC="$CC" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379    for ac_exec_ext in '' $ac_executable_extensions; do
2380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386  done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391CC=$ac_cv_prog_CC
2392if test -n "$CC"; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394$as_echo "$CC" >&6; }
2395else
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
2398fi
2399
2400
2401fi
2402if test -z "$ac_cv_prog_CC"; then
2403  ac_ct_CC=$CC
2404  # Extract the first word of "gcc", so it can be a program name with args.
2405set dummy gcc; ac_word=$2
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407$as_echo_n "checking for $ac_word... " >&6; }
2408if ${ac_cv_prog_ac_ct_CC+:} false; then :
2409  $as_echo_n "(cached) " >&6
2410else
2411  if test -n "$ac_ct_CC"; then
2412  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417  IFS=$as_save_IFS
2418  test -z "$as_dir" && as_dir=.
2419    for ac_exec_ext in '' $ac_executable_extensions; do
2420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421    ac_cv_prog_ac_ct_CC="gcc"
2422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423    break 2
2424  fi
2425done
2426  done
2427IFS=$as_save_IFS
2428
2429fi
2430fi
2431ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432if test -n "$ac_ct_CC"; then
2433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2434$as_echo "$ac_ct_CC" >&6; }
2435else
2436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437$as_echo "no" >&6; }
2438fi
2439
2440  if test "x$ac_ct_CC" = x; then
2441    CC=""
2442  else
2443    case $cross_compiling:$ac_tool_warned in
2444yes:)
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2447ac_tool_warned=yes ;;
2448esac
2449    CC=$ac_ct_CC
2450  fi
2451else
2452  CC="$ac_cv_prog_CC"
2453fi
2454
2455if test -z "$CC"; then
2456          if test -n "$ac_tool_prefix"; then
2457    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458set dummy ${ac_tool_prefix}cc; ac_word=$2
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
2461if ${ac_cv_prog_CC+:} false; then :
2462  $as_echo_n "(cached) " >&6
2463else
2464  if test -n "$CC"; then
2465  ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472    for ac_exec_ext in '' $ac_executable_extensions; do
2473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474    ac_cv_prog_CC="${ac_tool_prefix}cc"
2475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476    break 2
2477  fi
2478done
2479  done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484CC=$ac_cv_prog_CC
2485if test -n "$CC"; then
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2487$as_echo "$CC" >&6; }
2488else
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490$as_echo "no" >&6; }
2491fi
2492
2493
2494  fi
2495fi
2496if test -z "$CC"; then
2497  # Extract the first word of "cc", so it can be a program name with args.
2498set dummy cc; ac_word=$2
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
2501if ${ac_cv_prog_CC+:} false; then :
2502  $as_echo_n "(cached) " >&6
2503else
2504  if test -n "$CC"; then
2505  ac_cv_prog_CC="$CC" # Let the user override the test.
2506else
2507  ac_prog_rejected=no
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513    for ac_exec_ext in '' $ac_executable_extensions; do
2514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516       ac_prog_rejected=yes
2517       continue
2518     fi
2519    ac_cv_prog_CC="cc"
2520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521    break 2
2522  fi
2523done
2524  done
2525IFS=$as_save_IFS
2526
2527if test $ac_prog_rejected = yes; then
2528  # We found a bogon in the path, so make sure we never use it.
2529  set dummy $ac_cv_prog_CC
2530  shift
2531  if test $# != 0; then
2532    # We chose a different compiler from the bogus one.
2533    # However, it has the same basename, so the bogon will be chosen
2534    # first if we set CC to just the basename; use the full file name.
2535    shift
2536    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537  fi
2538fi
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2544$as_echo "$CC" >&6; }
2545else
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548fi
2549
2550
2551fi
2552if test -z "$CC"; then
2553  if test -n "$ac_tool_prefix"; then
2554  for ac_prog in cl.exe
2555  do
2556    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if ${ac_cv_prog_CC+:} false; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  if test -n "$CC"; then
2564  ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571    for ac_exec_ext in '' $ac_executable_extensions; do
2572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578  done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2586$as_echo "$CC" >&6; }
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593    test -n "$CC" && break
2594  done
2595fi
2596if test -z "$CC"; then
2597  ac_ct_CC=$CC
2598  for ac_prog in cl.exe
2599do
2600  # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_ac_ct_CC+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$ac_ct_CC"; then
2608  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_ac_ct_CC="$ac_prog"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628if test -n "$ac_ct_CC"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2630$as_echo "$ac_ct_CC" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637  test -n "$ac_ct_CC" && break
2638done
2639
2640  if test "x$ac_ct_CC" = x; then
2641    CC=""
2642  else
2643    case $cross_compiling:$ac_tool_warned in
2644yes:)
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647ac_tool_warned=yes ;;
2648esac
2649    CC=$ac_ct_CC
2650  fi
2651fi
2652
2653fi
2654
2655
2656test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658as_fn_error $? "no acceptable C compiler found in \$PATH
2659See \`config.log' for more details" "$LINENO" 5; }
2660
2661# Provide some information about the compiler.
2662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2663set X $ac_compile
2664ac_compiler=$2
2665for ac_option in --version -v -V -qversion; do
2666  { { ac_try="$ac_compiler $ac_option >&5"
2667case "(($ac_try" in
2668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669  *) ac_try_echo=$ac_try;;
2670esac
2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672$as_echo "$ac_try_echo"; } >&5
2673  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2674  ac_status=$?
2675  if test -s conftest.err; then
2676    sed '10a\
2677... rest of stderr output deleted ...
2678         10q' conftest.err >conftest.er1
2679    cat conftest.er1 >&5
2680  fi
2681  rm -f conftest.er1 conftest.err
2682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2683  test $ac_status = 0; }
2684done
2685
2686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h.  */
2688
2689int
2690main ()
2691{
2692
2693  ;
2694  return 0;
2695}
2696_ACEOF
2697ac_clean_files_save=$ac_clean_files
2698ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2699# Try to create an executable without -o first, disregard a.out.
2700# It will help us diagnose broken compilers, and finding out an intuition
2701# of exeext.
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2703$as_echo_n "checking whether the C compiler works... " >&6; }
2704ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705
2706# The possible output files:
2707ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2708
2709ac_rmfiles=
2710for ac_file in $ac_files
2711do
2712  case $ac_file in
2713    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2714    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715  esac
2716done
2717rm -f $ac_rmfiles
2718
2719if { { ac_try="$ac_link_default"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726  (eval "$ac_link_default") 2>&5
2727  ac_status=$?
2728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729  test $ac_status = 0; }; then :
2730  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2731# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2732# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2733# so that the user can short-circuit this test for compilers unknown to
2734# Autoconf.
2735for ac_file in $ac_files ''
2736do
2737  test -f "$ac_file" || continue
2738  case $ac_file in
2739    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2740	;;
2741    [ab].out )
2742	# We found the default executable, but exeext='' is most
2743	# certainly right.
2744	break;;
2745    *.* )
2746	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747	then :; else
2748	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749	fi
2750	# We set ac_cv_exeext here because the later test for it is not
2751	# safe: cross compilers may not add the suffix if given an `-o'
2752	# argument, so we may need to know it at that point already.
2753	# Even if this section looks crufty: it has the advantage of
2754	# actually working.
2755	break;;
2756    * )
2757	break;;
2758  esac
2759done
2760test "$ac_cv_exeext" = no && ac_cv_exeext=
2761
2762else
2763  ac_file=''
2764fi
2765if test -z "$ac_file"; then :
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768$as_echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773as_fn_error 77 "C compiler cannot create executables
2774See \`config.log' for more details" "$LINENO" 5; }
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; }
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2780$as_echo_n "checking for C compiler default output file name... " >&6; }
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2782$as_echo "$ac_file" >&6; }
2783ac_exeext=$ac_cv_exeext
2784
2785rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2786ac_clean_files=$ac_clean_files_save
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2788$as_echo_n "checking for suffix of executables... " >&6; }
2789if { { ac_try="$ac_link"
2790case "(($ac_try" in
2791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792  *) ac_try_echo=$ac_try;;
2793esac
2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795$as_echo "$ac_try_echo"; } >&5
2796  (eval "$ac_link") 2>&5
2797  ac_status=$?
2798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799  test $ac_status = 0; }; then :
2800  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2801# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2802# work properly (i.e., refer to `conftest.exe'), while it won't with
2803# `rm'.
2804for ac_file in conftest.exe conftest conftest.*; do
2805  test -f "$ac_file" || continue
2806  case $ac_file in
2807    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2808    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809	  break;;
2810    * ) break;;
2811  esac
2812done
2813else
2814  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2817See \`config.log' for more details" "$LINENO" 5; }
2818fi
2819rm -f conftest conftest$ac_cv_exeext
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2821$as_echo "$ac_cv_exeext" >&6; }
2822
2823rm -f conftest.$ac_ext
2824EXEEXT=$ac_cv_exeext
2825ac_exeext=$EXEEXT
2826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h.  */
2828#include <stdio.h>
2829int
2830main ()
2831{
2832FILE *f = fopen ("conftest.out", "w");
2833 return ferror (f) || fclose (f) != 0;
2834
2835  ;
2836  return 0;
2837}
2838_ACEOF
2839ac_clean_files="$ac_clean_files conftest.out"
2840# Check that the compiler produces executables we can run.  If not, either
2841# the compiler is broken, or we cross compile.
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2843$as_echo_n "checking whether we are cross compiling... " >&6; }
2844if test "$cross_compiling" != yes; then
2845  { { ac_try="$ac_link"
2846case "(($ac_try" in
2847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848  *) ac_try_echo=$ac_try;;
2849esac
2850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2851$as_echo "$ac_try_echo"; } >&5
2852  (eval "$ac_link") 2>&5
2853  ac_status=$?
2854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855  test $ac_status = 0; }
2856  if { ac_try='./conftest$ac_cv_exeext'
2857  { { case "(($ac_try" in
2858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859  *) ac_try_echo=$ac_try;;
2860esac
2861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862$as_echo "$ac_try_echo"; } >&5
2863  (eval "$ac_try") 2>&5
2864  ac_status=$?
2865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866  test $ac_status = 0; }; }; then
2867    cross_compiling=no
2868  else
2869    if test "$cross_compiling" = maybe; then
2870	cross_compiling=yes
2871    else
2872	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874as_fn_error $? "cannot run C compiled programs.
2875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details" "$LINENO" 5; }
2877    fi
2878  fi
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2881$as_echo "$cross_compiling" >&6; }
2882
2883rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2884ac_clean_files=$ac_clean_files_save
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2886$as_echo_n "checking for suffix of object files... " >&6; }
2887if ${ac_cv_objext+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891/* end confdefs.h.  */
2892
2893int
2894main ()
2895{
2896
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901rm -f conftest.o conftest.obj
2902if { { ac_try="$ac_compile"
2903case "(($ac_try" in
2904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905  *) ac_try_echo=$ac_try;;
2906esac
2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908$as_echo "$ac_try_echo"; } >&5
2909  (eval "$ac_compile") 2>&5
2910  ac_status=$?
2911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912  test $ac_status = 0; }; then :
2913  for ac_file in conftest.o conftest.obj conftest.*; do
2914  test -f "$ac_file" || continue;
2915  case $ac_file in
2916    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2917    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2918       break;;
2919  esac
2920done
2921else
2922  $as_echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927as_fn_error $? "cannot compute suffix of object files: cannot compile
2928See \`config.log' for more details" "$LINENO" 5; }
2929fi
2930rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931fi
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2933$as_echo "$ac_cv_objext" >&6; }
2934OBJEXT=$ac_cv_objext
2935ac_objext=$OBJEXT
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2937$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2938if ${ac_cv_c_compiler_gnu+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h.  */
2943
2944int
2945main ()
2946{
2947#ifndef __GNUC__
2948       choke me
2949#endif
2950
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955if ac_fn_c_try_compile "$LINENO"; then :
2956  ac_compiler_gnu=yes
2957else
2958  ac_compiler_gnu=no
2959fi
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961ac_cv_c_compiler_gnu=$ac_compiler_gnu
2962
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2965$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2966if test $ac_compiler_gnu = yes; then
2967  GCC=yes
2968else
2969  GCC=
2970fi
2971ac_test_CFLAGS=${CFLAGS+set}
2972ac_save_CFLAGS=$CFLAGS
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2974$as_echo_n "checking whether $CC accepts -g... " >&6; }
2975if ${ac_cv_prog_cc_g+:} false; then :
2976  $as_echo_n "(cached) " >&6
2977else
2978  ac_save_c_werror_flag=$ac_c_werror_flag
2979   ac_c_werror_flag=yes
2980   ac_cv_prog_cc_g=no
2981   CFLAGS="-g"
2982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h.  */
2984
2985int
2986main ()
2987{
2988
2989  ;
2990  return 0;
2991}
2992_ACEOF
2993if ac_fn_c_try_compile "$LINENO"; then :
2994  ac_cv_prog_cc_g=yes
2995else
2996  CFLAGS=""
2997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_compile "$LINENO"; then :
3009
3010else
3011  ac_c_werror_flag=$ac_save_c_werror_flag
3012	 CFLAGS="-g"
3013	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h.  */
3015
3016int
3017main ()
3018{
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024if ac_fn_c_try_compile "$LINENO"; then :
3025  ac_cv_prog_cc_g=yes
3026fi
3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028fi
3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030fi
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032   ac_c_werror_flag=$ac_save_c_werror_flag
3033fi
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3035$as_echo "$ac_cv_prog_cc_g" >&6; }
3036if test "$ac_test_CFLAGS" = set; then
3037  CFLAGS=$ac_save_CFLAGS
3038elif test $ac_cv_prog_cc_g = yes; then
3039  if test "$GCC" = yes; then
3040    CFLAGS="-g -O2"
3041  else
3042    CFLAGS="-g"
3043  fi
3044else
3045  if test "$GCC" = yes; then
3046    CFLAGS="-O2"
3047  else
3048    CFLAGS=
3049  fi
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3052$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3053if ${ac_cv_prog_cc_c89+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  ac_cv_prog_cc_c89=no
3057ac_save_CC=$CC
3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h.  */
3060#include <stdarg.h>
3061#include <stdio.h>
3062struct stat;
3063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3064struct buf { int x; };
3065FILE * (*rcsopen) (struct buf *, struct stat *, int);
3066static char *e (p, i)
3067     char **p;
3068     int i;
3069{
3070  return p[i];
3071}
3072static char *f (char * (*g) (char **, int), char **p, ...)
3073{
3074  char *s;
3075  va_list v;
3076  va_start (v,p);
3077  s = g (p, va_arg (v,int));
3078  va_end (v);
3079  return s;
3080}
3081
3082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3083   function prototypes and stuff, but not '\xHH' hex character constants.
3084   These don't provoke an error unfortunately, instead are silently treated
3085   as 'x'.  The following induces an error, until -std is added to get
3086   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3087   array size at least.  It's necessary to write '\x00'==0 to get something
3088   that's true only with -std.  */
3089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3090
3091/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3092   inside strings and character constants.  */
3093#define FOO(x) 'x'
3094int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3095
3096int test (int i, double x);
3097struct s1 {int (*f) (int a);};
3098struct s2 {int (*f) (double a);};
3099int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3100int argc;
3101char **argv;
3102int
3103main ()
3104{
3105return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3111	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3112do
3113  CC="$ac_save_CC $ac_arg"
3114  if ac_fn_c_try_compile "$LINENO"; then :
3115  ac_cv_prog_cc_c89=$ac_arg
3116fi
3117rm -f core conftest.err conftest.$ac_objext
3118  test "x$ac_cv_prog_cc_c89" != "xno" && break
3119done
3120rm -f conftest.$ac_ext
3121CC=$ac_save_CC
3122
3123fi
3124# AC_CACHE_VAL
3125case "x$ac_cv_prog_cc_c89" in
3126  x)
3127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3128$as_echo "none needed" >&6; } ;;
3129  xno)
3130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3131$as_echo "unsupported" >&6; } ;;
3132  *)
3133    CC="$CC $ac_cv_prog_cc_c89"
3134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3135$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3136esac
3137if test "x$ac_cv_prog_cc_c89" != xno; then :
3138
3139fi
3140
3141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3153$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3154if ${am_cv_prog_cc_c_o+:} false; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168  # Make sure it works both with $CC and with simple cc.
3169  # Following AC_PROG_CC_C_O, we do the test twice because some
3170  # compilers refuse to overwrite an existing .o file with -o,
3171  # though they will create one.
3172  am_cv_prog_cc_c_o=yes
3173  for am_i in 1 2; do
3174    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3175   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } \
3179         && test -f conftest2.$ac_objext; then
3180      : OK
3181    else
3182      am_cv_prog_cc_c_o=no
3183      break
3184    fi
3185  done
3186  rm -f core conftest*
3187  unset am_i
3188fi
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3190$as_echo "$am_cv_prog_cc_c_o" >&6; }
3191if test "$am_cv_prog_cc_c_o" != yes; then
3192   # Losing compiler, so override with the script.
3193   # FIXME: It is wrong to rewrite CC.
3194   # But if we don't then we get into trouble of one sort or another.
3195   # A longer-term fix would be to have automake use am__CC in this case,
3196   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3197   CC="$am_aux_dir/compile $CC"
3198fi
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205
3206
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3213$as_echo_n "checking how to run the C preprocessor... " >&6; }
3214# On Suns, sometimes $CPP names a directory.
3215if test -n "$CPP" && test -d "$CPP"; then
3216  CPP=
3217fi
3218if test -z "$CPP"; then
3219  if ${ac_cv_prog_CPP+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222      # Double quotes because CPP needs to be expanded
3223    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224    do
3225      ac_preproc_ok=false
3226for ac_c_preproc_warn_flag in '' yes
3227do
3228  # Use a header file that comes with gcc, so configuring glibc
3229  # with a fresh cross-compiler works.
3230  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231  # <limits.h> exists even on freestanding compilers.
3232  # On the NeXT, cc -E runs the code through the compiler's parser,
3233  # not just through cpp. "Syntax error" is here to catch this case.
3234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h.  */
3236#ifdef __STDC__
3237# include <limits.h>
3238#else
3239# include <assert.h>
3240#endif
3241		     Syntax error
3242_ACEOF
3243if ac_fn_c_try_cpp "$LINENO"; then :
3244
3245else
3246  # Broken: fails on valid input.
3247continue
3248fi
3249rm -f conftest.err conftest.i conftest.$ac_ext
3250
3251  # OK, works on sane cases.  Now check whether nonexistent headers
3252  # can be detected and how.
3253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255#include <ac_nonexistent.h>
3256_ACEOF
3257if ac_fn_c_try_cpp "$LINENO"; then :
3258  # Broken: success on invalid input.
3259continue
3260else
3261  # Passes both tests.
3262ac_preproc_ok=:
3263break
3264fi
3265rm -f conftest.err conftest.i conftest.$ac_ext
3266
3267done
3268# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269rm -f conftest.i conftest.err conftest.$ac_ext
3270if $ac_preproc_ok; then :
3271  break
3272fi
3273
3274    done
3275    ac_cv_prog_CPP=$CPP
3276
3277fi
3278  CPP=$ac_cv_prog_CPP
3279else
3280  ac_cv_prog_CPP=$CPP
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3283$as_echo "$CPP" >&6; }
3284ac_preproc_ok=false
3285for ac_c_preproc_warn_flag in '' yes
3286do
3287  # Use a header file that comes with gcc, so configuring glibc
3288  # with a fresh cross-compiler works.
3289  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290  # <limits.h> exists even on freestanding compilers.
3291  # On the NeXT, cc -E runs the code through the compiler's parser,
3292  # not just through cpp. "Syntax error" is here to catch this case.
3293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h.  */
3295#ifdef __STDC__
3296# include <limits.h>
3297#else
3298# include <assert.h>
3299#endif
3300		     Syntax error
3301_ACEOF
3302if ac_fn_c_try_cpp "$LINENO"; then :
3303
3304else
3305  # Broken: fails on valid input.
3306continue
3307fi
3308rm -f conftest.err conftest.i conftest.$ac_ext
3309
3310  # OK, works on sane cases.  Now check whether nonexistent headers
3311  # can be detected and how.
3312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313/* end confdefs.h.  */
3314#include <ac_nonexistent.h>
3315_ACEOF
3316if ac_fn_c_try_cpp "$LINENO"; then :
3317  # Broken: success on invalid input.
3318continue
3319else
3320  # Passes both tests.
3321ac_preproc_ok=:
3322break
3323fi
3324rm -f conftest.err conftest.i conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.i conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then :
3330
3331else
3332  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3335See \`config.log' for more details" "$LINENO" 5; }
3336fi
3337
3338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343
3344
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3346$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3347if ${ac_cv_path_GREP+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  if test -z "$GREP"; then
3351  ac_path_GREP_found=false
3352  # Loop through the user's path and test for each of PROGNAME-LIST
3353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3355do
3356  IFS=$as_save_IFS
3357  test -z "$as_dir" && as_dir=.
3358    for ac_prog in grep ggrep; do
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3361      as_fn_executable_p "$ac_path_GREP" || continue
3362# Check for GNU ac_path_GREP and select it if it is found.
3363  # Check for GNU $ac_path_GREP
3364case `"$ac_path_GREP" --version 2>&1` in
3365*GNU*)
3366  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3367*)
3368  ac_count=0
3369  $as_echo_n 0123456789 >"conftest.in"
3370  while :
3371  do
3372    cat "conftest.in" "conftest.in" >"conftest.tmp"
3373    mv "conftest.tmp" "conftest.in"
3374    cp "conftest.in" "conftest.nl"
3375    $as_echo 'GREP' >> "conftest.nl"
3376    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3378    as_fn_arith $ac_count + 1 && ac_count=$as_val
3379    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3380      # Best one so far, save it but keep looking for a better one
3381      ac_cv_path_GREP="$ac_path_GREP"
3382      ac_path_GREP_max=$ac_count
3383    fi
3384    # 10*(2^10) chars as input seems more than enough
3385    test $ac_count -gt 10 && break
3386  done
3387  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3388esac
3389
3390      $ac_path_GREP_found && break 3
3391    done
3392  done
3393  done
3394IFS=$as_save_IFS
3395  if test -z "$ac_cv_path_GREP"; then
3396    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3397  fi
3398else
3399  ac_cv_path_GREP=$GREP
3400fi
3401
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3404$as_echo "$ac_cv_path_GREP" >&6; }
3405 GREP="$ac_cv_path_GREP"
3406
3407
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3409$as_echo_n "checking for egrep... " >&6; }
3410if ${ac_cv_path_EGREP+:} false; then :
3411  $as_echo_n "(cached) " >&6
3412else
3413  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3414   then ac_cv_path_EGREP="$GREP -E"
3415   else
3416     if test -z "$EGREP"; then
3417  ac_path_EGREP_found=false
3418  # Loop through the user's path and test for each of PROGNAME-LIST
3419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3421do
3422  IFS=$as_save_IFS
3423  test -z "$as_dir" && as_dir=.
3424    for ac_prog in egrep; do
3425    for ac_exec_ext in '' $ac_executable_extensions; do
3426      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3427      as_fn_executable_p "$ac_path_EGREP" || continue
3428# Check for GNU ac_path_EGREP and select it if it is found.
3429  # Check for GNU $ac_path_EGREP
3430case `"$ac_path_EGREP" --version 2>&1` in
3431*GNU*)
3432  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3433*)
3434  ac_count=0
3435  $as_echo_n 0123456789 >"conftest.in"
3436  while :
3437  do
3438    cat "conftest.in" "conftest.in" >"conftest.tmp"
3439    mv "conftest.tmp" "conftest.in"
3440    cp "conftest.in" "conftest.nl"
3441    $as_echo 'EGREP' >> "conftest.nl"
3442    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3444    as_fn_arith $ac_count + 1 && ac_count=$as_val
3445    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3446      # Best one so far, save it but keep looking for a better one
3447      ac_cv_path_EGREP="$ac_path_EGREP"
3448      ac_path_EGREP_max=$ac_count
3449    fi
3450    # 10*(2^10) chars as input seems more than enough
3451    test $ac_count -gt 10 && break
3452  done
3453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3454esac
3455
3456      $ac_path_EGREP_found && break 3
3457    done
3458  done
3459  done
3460IFS=$as_save_IFS
3461  if test -z "$ac_cv_path_EGREP"; then
3462    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3463  fi
3464else
3465  ac_cv_path_EGREP=$EGREP
3466fi
3467
3468   fi
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3471$as_echo "$ac_cv_path_EGREP" >&6; }
3472 EGREP="$ac_cv_path_EGREP"
3473
3474
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3476$as_echo_n "checking for ANSI C header files... " >&6; }
3477if ${ac_cv_header_stdc+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#include <stdlib.h>
3483#include <stdarg.h>
3484#include <string.h>
3485#include <float.h>
3486
3487int
3488main ()
3489{
3490
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"; then :
3496  ac_cv_header_stdc=yes
3497else
3498  ac_cv_header_stdc=no
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501
3502if test $ac_cv_header_stdc = yes; then
3503  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506#include <string.h>
3507
3508_ACEOF
3509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510  $EGREP "memchr" >/dev/null 2>&1; then :
3511
3512else
3513  ac_cv_header_stdc=no
3514fi
3515rm -f conftest*
3516
3517fi
3518
3519if test $ac_cv_header_stdc = yes; then
3520  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523#include <stdlib.h>
3524
3525_ACEOF
3526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527  $EGREP "free" >/dev/null 2>&1; then :
3528
3529else
3530  ac_cv_header_stdc=no
3531fi
3532rm -f conftest*
3533
3534fi
3535
3536if test $ac_cv_header_stdc = yes; then
3537  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3538  if test "$cross_compiling" = yes; then :
3539  :
3540else
3541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543#include <ctype.h>
3544#include <stdlib.h>
3545#if ((' ' & 0x0FF) == 0x020)
3546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3548#else
3549# define ISLOWER(c) \
3550		   (('a' <= (c) && (c) <= 'i') \
3551		     || ('j' <= (c) && (c) <= 'r') \
3552		     || ('s' <= (c) && (c) <= 'z'))
3553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3554#endif
3555
3556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3557int
3558main ()
3559{
3560  int i;
3561  for (i = 0; i < 256; i++)
3562    if (XOR (islower (i), ISLOWER (i))
3563	|| toupper (i) != TOUPPER (i))
3564      return 2;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_run "$LINENO"; then :
3569
3570else
3571  ac_cv_header_stdc=no
3572fi
3573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3574  conftest.$ac_objext conftest.beam conftest.$ac_ext
3575fi
3576
3577fi
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3580$as_echo "$ac_cv_header_stdc" >&6; }
3581if test $ac_cv_header_stdc = yes; then
3582
3583$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3584
3585fi
3586
3587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589		  inttypes.h stdint.h unistd.h
3590do :
3591  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3593"
3594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3595  cat >>confdefs.h <<_ACEOF
3596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597_ACEOF
3598
3599fi
3600
3601done
3602
3603
3604
3605  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3606if test "x$ac_cv_header_minix_config_h" = xyes; then :
3607  MINIX=yes
3608else
3609  MINIX=
3610fi
3611
3612
3613  if test "$MINIX" = yes; then
3614
3615$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3616
3617
3618$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3619
3620
3621$as_echo "#define _MINIX 1" >>confdefs.h
3622
3623  fi
3624
3625
3626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3627$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3628if ${ac_cv_safe_to_define___extensions__+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634#         define __EXTENSIONS__ 1
3635          $ac_includes_default
3636int
3637main ()
3638{
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644if ac_fn_c_try_compile "$LINENO"; then :
3645  ac_cv_safe_to_define___extensions__=yes
3646else
3647  ac_cv_safe_to_define___extensions__=no
3648fi
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3652$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3653  test $ac_cv_safe_to_define___extensions__ = yes &&
3654    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3655
3656  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3657
3658  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3659
3660  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3661
3662  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3663
3664
3665
3666# Initialize Automake
3667am__api_version='1.15'
3668
3669# Find a good install program.  We prefer a C program (faster),
3670# so one script is as good as another.  But avoid the broken or
3671# incompatible versions:
3672# SysV /etc/install, /usr/sbin/install
3673# SunOS /usr/etc/install
3674# IRIX /sbin/install
3675# AIX /bin/install
3676# AmigaOS /C/install, which installs bootblocks on floppy discs
3677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3678# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3680# OS/2's system install, which has a completely different semantic
3681# ./install, which can be erroneously created by make from ./install.sh.
3682# Reject install programs that cannot install multiple files.
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3684$as_echo_n "checking for a BSD-compatible install... " >&6; }
3685if test -z "$INSTALL"; then
3686if ${ac_cv_path_install+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  test -z "$as_dir" && as_dir=.
3694    # Account for people who put trailing slashes in PATH elements.
3695case $as_dir/ in #((
3696  ./ | .// | /[cC]/* | \
3697  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3698  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3699  /usr/ucb/* ) ;;
3700  *)
3701    # OSF1 and SCO ODT 3.0 have their own names for install.
3702    # Don't use installbsd from OSF since it installs stuff as root
3703    # by default.
3704    for ac_prog in ginstall scoinst install; do
3705      for ac_exec_ext in '' $ac_executable_extensions; do
3706	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3707	  if test $ac_prog = install &&
3708	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709	    # AIX install.  It has an incompatible calling convention.
3710	    :
3711	  elif test $ac_prog = install &&
3712	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713	    # program-specific install script used by HP pwplus--don't use.
3714	    :
3715	  else
3716	    rm -rf conftest.one conftest.two conftest.dir
3717	    echo one > conftest.one
3718	    echo two > conftest.two
3719	    mkdir conftest.dir
3720	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3721	      test -s conftest.one && test -s conftest.two &&
3722	      test -s conftest.dir/conftest.one &&
3723	      test -s conftest.dir/conftest.two
3724	    then
3725	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3726	      break 3
3727	    fi
3728	  fi
3729	fi
3730      done
3731    done
3732    ;;
3733esac
3734
3735  done
3736IFS=$as_save_IFS
3737
3738rm -rf conftest.one conftest.two conftest.dir
3739
3740fi
3741  if test "${ac_cv_path_install+set}" = set; then
3742    INSTALL=$ac_cv_path_install
3743  else
3744    # As a last resort, use the slow shell script.  Don't cache a
3745    # value for INSTALL within a source directory, because that will
3746    # break other packages using the cache if that directory is
3747    # removed, or if the value is a relative name.
3748    INSTALL=$ac_install_sh
3749  fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3752$as_echo "$INSTALL" >&6; }
3753
3754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3755# It thinks the first close brace ends the variable substitution.
3756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3757
3758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3759
3760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3763$as_echo_n "checking whether build environment is sane... " >&6; }
3764# Reject unsafe characters in $srcdir or the absolute working directory
3765# name.  Accept space and tab only in the latter.
3766am_lf='
3767'
3768case `pwd` in
3769  *[\\\"\#\$\&\'\`$am_lf]*)
3770    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3771esac
3772case $srcdir in
3773  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3774    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3775esac
3776
3777# Do 'set' in a subshell so we don't clobber the current shell's
3778# arguments.  Must try -L first in case configure is actually a
3779# symlink; some systems play weird games with the mod time of symlinks
3780# (eg FreeBSD returns the mod time of the symlink's containing
3781# directory).
3782if (
3783   am_has_slept=no
3784   for am_try in 1 2; do
3785     echo "timestamp, slept: $am_has_slept" > conftest.file
3786     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3787     if test "$*" = "X"; then
3788	# -L didn't work.
3789	set X `ls -t "$srcdir/configure" conftest.file`
3790     fi
3791     if test "$*" != "X $srcdir/configure conftest.file" \
3792	&& test "$*" != "X conftest.file $srcdir/configure"; then
3793
3794	# If neither matched, then we have a broken ls.  This can happen
3795	# if, for instance, CONFIG_SHELL is bash and it inherits a
3796	# broken ls alias from the environment.  This has actually
3797	# happened.  Such a system could not be considered "sane".
3798	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3799  alias in your environment" "$LINENO" 5
3800     fi
3801     if test "$2" = conftest.file || test $am_try -eq 2; then
3802       break
3803     fi
3804     # Just in case.
3805     sleep 1
3806     am_has_slept=yes
3807   done
3808   test "$2" = conftest.file
3809   )
3810then
3811   # Ok.
3812   :
3813else
3814   as_fn_error $? "newly created file is older than distributed files!
3815Check your system clock" "$LINENO" 5
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3818$as_echo "yes" >&6; }
3819# If we didn't sleep, we still need to ensure time stamps of config.status and
3820# generated files are strictly newer.
3821am_sleep_pid=
3822if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3823  ( sleep 1 ) &
3824  am_sleep_pid=$!
3825fi
3826
3827rm -f conftest.file
3828
3829test "$program_prefix" != NONE &&
3830  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3831# Use a double $ so make ignores it.
3832test "$program_suffix" != NONE &&
3833  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3834# Double any \ or $.
3835# By default was `s,x,x', remove it if useless.
3836ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3837program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3838
3839if test x"${MISSING+set}" != xset; then
3840  case $am_aux_dir in
3841  *\ * | *\	*)
3842    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3843  *)
3844    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3845  esac
3846fi
3847# Use eval to expand $SHELL
3848if eval "$MISSING --is-lightweight"; then
3849  am_missing_run="$MISSING "
3850else
3851  am_missing_run=
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3853$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3854fi
3855
3856if test x"${install_sh+set}" != xset; then
3857  case $am_aux_dir in
3858  *\ * | *\	*)
3859    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3860  *)
3861    install_sh="\${SHELL} $am_aux_dir/install-sh"
3862  esac
3863fi
3864
3865# Installed binaries are usually stripped using 'strip' when the user
3866# run "make install-strip".  However 'strip' might not be the right
3867# tool to use in cross-compilation environments, therefore Automake
3868# will honor the 'STRIP' environment variable to overrule this program.
3869if test "$cross_compiling" != no; then
3870  if test -n "$ac_tool_prefix"; then
3871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3872set dummy ${ac_tool_prefix}strip; ac_word=$2
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874$as_echo_n "checking for $ac_word... " >&6; }
3875if ${ac_cv_prog_STRIP+:} false; then :
3876  $as_echo_n "(cached) " >&6
3877else
3878  if test -n "$STRIP"; then
3879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3880else
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884  IFS=$as_save_IFS
3885  test -z "$as_dir" && as_dir=.
3886    for ac_exec_ext in '' $ac_executable_extensions; do
3887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890    break 2
3891  fi
3892done
3893  done
3894IFS=$as_save_IFS
3895
3896fi
3897fi
3898STRIP=$ac_cv_prog_STRIP
3899if test -n "$STRIP"; then
3900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3901$as_echo "$STRIP" >&6; }
3902else
3903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
3905fi
3906
3907
3908fi
3909if test -z "$ac_cv_prog_STRIP"; then
3910  ac_ct_STRIP=$STRIP
3911  # Extract the first word of "strip", so it can be a program name with args.
3912set dummy strip; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  if test -n "$ac_ct_STRIP"; then
3919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924  IFS=$as_save_IFS
3925  test -z "$as_dir" && as_dir=.
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928    ac_cv_prog_ac_ct_STRIP="strip"
3929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930    break 2
3931  fi
3932done
3933  done
3934IFS=$as_save_IFS
3935
3936fi
3937fi
3938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3939if test -n "$ac_ct_STRIP"; then
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3941$as_echo "$ac_ct_STRIP" >&6; }
3942else
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945fi
3946
3947  if test "x$ac_ct_STRIP" = x; then
3948    STRIP=":"
3949  else
3950    case $cross_compiling:$ac_tool_warned in
3951yes:)
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954ac_tool_warned=yes ;;
3955esac
3956    STRIP=$ac_ct_STRIP
3957  fi
3958else
3959  STRIP="$ac_cv_prog_STRIP"
3960fi
3961
3962fi
3963INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3966$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3967if test -z "$MKDIR_P"; then
3968  if ${ac_cv_path_mkdir+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3973do
3974  IFS=$as_save_IFS
3975  test -z "$as_dir" && as_dir=.
3976    for ac_prog in mkdir gmkdir; do
3977	 for ac_exec_ext in '' $ac_executable_extensions; do
3978	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3979	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3980	     'mkdir (GNU coreutils) '* | \
3981	     'mkdir (coreutils) '* | \
3982	     'mkdir (fileutils) '4.1*)
3983	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3984	       break 3;;
3985	   esac
3986	 done
3987       done
3988  done
3989IFS=$as_save_IFS
3990
3991fi
3992
3993  test -d ./--version && rmdir ./--version
3994  if test "${ac_cv_path_mkdir+set}" = set; then
3995    MKDIR_P="$ac_cv_path_mkdir -p"
3996  else
3997    # As a last resort, use the slow shell script.  Don't cache a
3998    # value for MKDIR_P within a source directory, because that will
3999    # break other packages using the cache if that directory is
4000    # removed, or if the value is a relative name.
4001    MKDIR_P="$ac_install_sh -d"
4002  fi
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4005$as_echo "$MKDIR_P" >&6; }
4006
4007for ac_prog in gawk mawk nawk awk
4008do
4009  # Extract the first word of "$ac_prog", so it can be a program name with args.
4010set dummy $ac_prog; ac_word=$2
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
4013if ${ac_cv_prog_AWK+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  if test -n "$AWK"; then
4017  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024    for ac_exec_ext in '' $ac_executable_extensions; do
4025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026    ac_cv_prog_AWK="$ac_prog"
4027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031  done
4032IFS=$as_save_IFS
4033
4034fi
4035fi
4036AWK=$ac_cv_prog_AWK
4037if test -n "$AWK"; then
4038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4039$as_echo "$AWK" >&6; }
4040else
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
4043fi
4044
4045
4046  test -n "$AWK" && break
4047done
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4050$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4051set x ${MAKE-make}
4052ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4053if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  cat >conftest.make <<\_ACEOF
4057SHELL = /bin/sh
4058all:
4059	@echo '@@@%%%=$(MAKE)=@@@%%%'
4060_ACEOF
4061# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4062case `${MAKE-make} -f conftest.make 2>/dev/null` in
4063  *@@@%%%=?*=@@@%%%*)
4064    eval ac_cv_prog_make_${ac_make}_set=yes;;
4065  *)
4066    eval ac_cv_prog_make_${ac_make}_set=no;;
4067esac
4068rm -f conftest.make
4069fi
4070if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4072$as_echo "yes" >&6; }
4073  SET_MAKE=
4074else
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
4077  SET_MAKE="MAKE=${MAKE-make}"
4078fi
4079
4080rm -rf .tst 2>/dev/null
4081mkdir .tst 2>/dev/null
4082if test -d .tst; then
4083  am__leading_dot=.
4084else
4085  am__leading_dot=_
4086fi
4087rmdir .tst 2>/dev/null
4088
4089DEPDIR="${am__leading_dot}deps"
4090
4091ac_config_commands="$ac_config_commands depfiles"
4092
4093
4094am_make=${MAKE-make}
4095cat > confinc << 'END'
4096am__doit:
4097	@echo this is the am__doit target
4098.PHONY: am__doit
4099END
4100# If we don't find an include directive, just comment out the code.
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4102$as_echo_n "checking for style of include used by $am_make... " >&6; }
4103am__include="#"
4104am__quote=
4105_am_result=none
4106# First try GNU make style include.
4107echo "include confinc" > confmf
4108# Ignore all kinds of additional output from 'make'.
4109case `$am_make -s -f confmf 2> /dev/null` in #(
4110*the\ am__doit\ target*)
4111  am__include=include
4112  am__quote=
4113  _am_result=GNU
4114  ;;
4115esac
4116# Now try BSD make style include.
4117if test "$am__include" = "#"; then
4118   echo '.include "confinc"' > confmf
4119   case `$am_make -s -f confmf 2> /dev/null` in #(
4120   *the\ am__doit\ target*)
4121     am__include=.include
4122     am__quote="\""
4123     _am_result=BSD
4124     ;;
4125   esac
4126fi
4127
4128
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4130$as_echo "$_am_result" >&6; }
4131rm -f confinc confmf
4132
4133# Check whether --enable-dependency-tracking was given.
4134if test "${enable_dependency_tracking+set}" = set; then :
4135  enableval=$enable_dependency_tracking;
4136fi
4137
4138if test "x$enable_dependency_tracking" != xno; then
4139  am_depcomp="$ac_aux_dir/depcomp"
4140  AMDEPBACKSLASH='\'
4141  am__nodep='_no'
4142fi
4143 if test "x$enable_dependency_tracking" != xno; then
4144  AMDEP_TRUE=
4145  AMDEP_FALSE='#'
4146else
4147  AMDEP_TRUE='#'
4148  AMDEP_FALSE=
4149fi
4150
4151
4152# Check whether --enable-silent-rules was given.
4153if test "${enable_silent_rules+set}" = set; then :
4154  enableval=$enable_silent_rules;
4155fi
4156
4157case $enable_silent_rules in # (((
4158  yes) AM_DEFAULT_VERBOSITY=0;;
4159   no) AM_DEFAULT_VERBOSITY=1;;
4160    *) AM_DEFAULT_VERBOSITY=1;;
4161esac
4162am_make=${MAKE-make}
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4164$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4165if ${am_cv_make_support_nested_variables+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  if $as_echo 'TRUE=$(BAR$(V))
4169BAR0=false
4170BAR1=true
4171V=1
4172am__doit:
4173	@$(TRUE)
4174.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4175  am_cv_make_support_nested_variables=yes
4176else
4177  am_cv_make_support_nested_variables=no
4178fi
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4181$as_echo "$am_cv_make_support_nested_variables" >&6; }
4182if test $am_cv_make_support_nested_variables = yes; then
4183    AM_V='$(V)'
4184  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4185else
4186  AM_V=$AM_DEFAULT_VERBOSITY
4187  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4188fi
4189AM_BACKSLASH='\'
4190
4191if test "`cd $srcdir && pwd`" != "`pwd`"; then
4192  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4193  # is not polluted with repeated "-I."
4194  am__isrc=' -I$(srcdir)'
4195  # test to see if srcdir already configured
4196  if test -f $srcdir/config.status; then
4197    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4198  fi
4199fi
4200
4201# test whether we have cygpath
4202if test -z "$CYGPATH_W"; then
4203  if (cygpath --version) >/dev/null 2>/dev/null; then
4204    CYGPATH_W='cygpath -w'
4205  else
4206    CYGPATH_W=echo
4207  fi
4208fi
4209
4210
4211# Define the identity of the package.
4212 PACKAGE='libXau'
4213 VERSION='1.0.9'
4214
4215
4216cat >>confdefs.h <<_ACEOF
4217#define PACKAGE "$PACKAGE"
4218_ACEOF
4219
4220
4221cat >>confdefs.h <<_ACEOF
4222#define VERSION "$VERSION"
4223_ACEOF
4224
4225# Some tools Automake needs.
4226
4227ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4228
4229
4230AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4231
4232
4233AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4234
4235
4236AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4237
4238
4239MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4240
4241# For better backward compatibility.  To be removed once Automake 1.9.x
4242# dies out for good.  For more background, see:
4243# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4244# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4245mkdir_p='$(MKDIR_P)'
4246
4247# We need awk for the "check" target (and possibly the TAP driver).  The
4248# system "awk" is bad on some platforms.
4249# Always define AMTAR for backward compatibility.  Yes, it's still used
4250# in the wild :-(  We should find a proper way to deprecate it ...
4251AMTAR='$${TAR-tar}'
4252
4253
4254# We'll loop over all known methods to create a tar archive until one works.
4255_am_tools='gnutar  pax cpio none'
4256
4257am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4258
4259
4260
4261
4262
4263depcc="$CC"   am_compiler_list=
4264
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4266$as_echo_n "checking dependency style of $depcc... " >&6; }
4267if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4271  # We make a subdir and do the tests there.  Otherwise we can end up
4272  # making bogus files that we don't know about and never remove.  For
4273  # instance it was reported that on HP-UX the gcc test will end up
4274  # making a dummy file named 'D' -- because '-MD' means "put the output
4275  # in D".
4276  rm -rf conftest.dir
4277  mkdir conftest.dir
4278  # Copy depcomp to subdir because otherwise we won't find it if we're
4279  # using a relative directory.
4280  cp "$am_depcomp" conftest.dir
4281  cd conftest.dir
4282  # We will build objects and dependencies in a subdirectory because
4283  # it helps to detect inapplicable dependency modes.  For instance
4284  # both Tru64's cc and ICC support -MD to output dependencies as a
4285  # side effect of compilation, but ICC will put the dependencies in
4286  # the current directory while Tru64 will put them in the object
4287  # directory.
4288  mkdir sub
4289
4290  am_cv_CC_dependencies_compiler_type=none
4291  if test "$am_compiler_list" = ""; then
4292     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4293  fi
4294  am__universal=false
4295  case " $depcc " in #(
4296     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4297     esac
4298
4299  for depmode in $am_compiler_list; do
4300    # Setup a source with many dependencies, because some compilers
4301    # like to wrap large dependency lists on column 80 (with \), and
4302    # we should not choose a depcomp mode which is confused by this.
4303    #
4304    # We need to recreate these files for each test, as the compiler may
4305    # overwrite some of them when testing with obscure command lines.
4306    # This happens at least with the AIX C compiler.
4307    : > sub/conftest.c
4308    for i in 1 2 3 4 5 6; do
4309      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4310      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4311      # Solaris 10 /bin/sh.
4312      echo '/* dummy */' > sub/conftst$i.h
4313    done
4314    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4315
4316    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4317    # mode.  It turns out that the SunPro C++ compiler does not properly
4318    # handle '-M -o', and we need to detect this.  Also, some Intel
4319    # versions had trouble with output in subdirs.
4320    am__obj=sub/conftest.${OBJEXT-o}
4321    am__minus_obj="-o $am__obj"
4322    case $depmode in
4323    gcc)
4324      # This depmode causes a compiler race in universal mode.
4325      test "$am__universal" = false || continue
4326      ;;
4327    nosideeffect)
4328      # After this tag, mechanisms are not by side-effect, so they'll
4329      # only be used when explicitly requested.
4330      if test "x$enable_dependency_tracking" = xyes; then
4331	continue
4332      else
4333	break
4334      fi
4335      ;;
4336    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4337      # This compiler won't grok '-c -o', but also, the minuso test has
4338      # not run yet.  These depmodes are late enough in the game, and
4339      # so weak that their functioning should not be impacted.
4340      am__obj=conftest.${OBJEXT-o}
4341      am__minus_obj=
4342      ;;
4343    none) break ;;
4344    esac
4345    if depmode=$depmode \
4346       source=sub/conftest.c object=$am__obj \
4347       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4348       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4349         >/dev/null 2>conftest.err &&
4350       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4351       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4352       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4353       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4354      # icc doesn't choke on unknown options, it will just issue warnings
4355      # or remarks (even with -Werror).  So we grep stderr for any message
4356      # that says an option was ignored or not supported.
4357      # When given -MP, icc 7.0 and 7.1 complain thusly:
4358      #   icc: Command line warning: ignoring option '-M'; no argument required
4359      # The diagnosis changed in icc 8.0:
4360      #   icc: Command line remark: option '-MP' not supported
4361      if (grep 'ignoring option' conftest.err ||
4362          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4363        am_cv_CC_dependencies_compiler_type=$depmode
4364        break
4365      fi
4366    fi
4367  done
4368
4369  cd ..
4370  rm -rf conftest.dir
4371else
4372  am_cv_CC_dependencies_compiler_type=none
4373fi
4374
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4377$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4378CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4379
4380 if
4381  test "x$enable_dependency_tracking" != xno \
4382  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4383  am__fastdepCC_TRUE=
4384  am__fastdepCC_FALSE='#'
4385else
4386  am__fastdepCC_TRUE='#'
4387  am__fastdepCC_FALSE=
4388fi
4389
4390
4391
4392# POSIX will say in a future version that running "rm -f" with no argument
4393# is OK; and we want to be able to make that assumption in our Makefile
4394# recipes.  So use an aggressive probe to check that the usage we want is
4395# actually supported "in the wild" to an acceptable degree.
4396# See automake bug#10828.
4397# To make any issue more visible, cause the running configure to be aborted
4398# by default if the 'rm' program in use doesn't match our expectations; the
4399# user can still override this though.
4400if rm -f && rm -fr && rm -rf; then : OK; else
4401  cat >&2 <<'END'
4402Oops!
4403
4404Your 'rm' program seems unable to run without file operands specified
4405on the command line, even when the '-f' option is present.  This is contrary
4406to the behaviour of most rm programs out there, and not conforming with
4407the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4408
4409Please tell bug-automake@gnu.org about your system, including the value
4410of your $PATH and any error possibly output before this message.  This
4411can help us improve future automake versions.
4412
4413END
4414  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4415    echo 'Configuration will proceed anyway, since you have set the' >&2
4416    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4417    echo >&2
4418  else
4419    cat >&2 <<'END'
4420Aborting the configuration process, to ensure you take notice of the issue.
4421
4422You can download and install GNU coreutils to get an 'rm' implementation
4423that behaves properly: <http://www.gnu.org/software/coreutils/>.
4424
4425If you want to complete the configuration process using your problematic
4426'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4427to "yes", and re-run configure.
4428
4429END
4430    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4431  fi
4432fi
4433
4434
4435# Initialize libtool
4436# Make sure we can run config.sub.
4437$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4438  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4441$as_echo_n "checking build system type... " >&6; }
4442if ${ac_cv_build+:} false; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  ac_build_alias=$build_alias
4446test "x$ac_build_alias" = x &&
4447  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4448test "x$ac_build_alias" = x &&
4449  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4451  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4452
4453fi
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4455$as_echo "$ac_cv_build" >&6; }
4456case $ac_cv_build in
4457*-*-*) ;;
4458*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4459esac
4460build=$ac_cv_build
4461ac_save_IFS=$IFS; IFS='-'
4462set x $ac_cv_build
4463shift
4464build_cpu=$1
4465build_vendor=$2
4466shift; shift
4467# Remember, the first character of IFS is used to create $*,
4468# except with old shells:
4469build_os=$*
4470IFS=$ac_save_IFS
4471case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4475$as_echo_n "checking host system type... " >&6; }
4476if ${ac_cv_host+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  if test "x$host_alias" = x; then
4480  ac_cv_host=$ac_cv_build
4481else
4482  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4483    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4484fi
4485
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4488$as_echo "$ac_cv_host" >&6; }
4489case $ac_cv_host in
4490*-*-*) ;;
4491*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4492esac
4493host=$ac_cv_host
4494ac_save_IFS=$IFS; IFS='-'
4495set x $ac_cv_host
4496shift
4497host_cpu=$1
4498host_vendor=$2
4499shift; shift
4500# Remember, the first character of IFS is used to create $*,
4501# except with old shells:
4502host_os=$*
4503IFS=$ac_save_IFS
4504case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4505
4506
4507enable_win32_dll=yes
4508
4509case $host in
4510*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4511  if test -n "$ac_tool_prefix"; then
4512  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}as; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if ${ac_cv_prog_AS+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -n "$AS"; then
4520  ac_cv_prog_AS="$AS" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_AS="${ac_tool_prefix}as"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539AS=$ac_cv_prog_AS
4540if test -n "$AS"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4542$as_echo "$AS" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548
4549fi
4550if test -z "$ac_cv_prog_AS"; then
4551  ac_ct_AS=$AS
4552  # Extract the first word of "as", so it can be a program name with args.
4553set dummy as; ac_word=$2
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if ${ac_cv_prog_ac_ct_AS+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -n "$ac_ct_AS"; then
4560  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569    ac_cv_prog_ac_ct_AS="as"
4570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579ac_ct_AS=$ac_cv_prog_ac_ct_AS
4580if test -n "$ac_ct_AS"; then
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4582$as_echo "$ac_ct_AS" >&6; }
4583else
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586fi
4587
4588  if test "x$ac_ct_AS" = x; then
4589    AS="false"
4590  else
4591    case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595ac_tool_warned=yes ;;
4596esac
4597    AS=$ac_ct_AS
4598  fi
4599else
4600  AS="$ac_cv_prog_AS"
4601fi
4602
4603  if test -n "$ac_tool_prefix"; then
4604  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4605set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if ${ac_cv_prog_DLLTOOL+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  if test -n "$DLLTOOL"; then
4612  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617  IFS=$as_save_IFS
4618  test -z "$as_dir" && as_dir=.
4619    for ac_exec_ext in '' $ac_executable_extensions; do
4620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623    break 2
4624  fi
4625done
4626  done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631DLLTOOL=$ac_cv_prog_DLLTOOL
4632if test -n "$DLLTOOL"; then
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4634$as_echo "$DLLTOOL" >&6; }
4635else
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641fi
4642if test -z "$ac_cv_prog_DLLTOOL"; then
4643  ac_ct_DLLTOOL=$DLLTOOL
4644  # Extract the first word of "dlltool", so it can be a program name with args.
4645set dummy dlltool; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  if test -n "$ac_ct_DLLTOOL"; then
4652  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  test -z "$as_dir" && as_dir=.
4659    for ac_exec_ext in '' $ac_executable_extensions; do
4660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663    break 2
4664  fi
4665done
4666  done
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4672if test -n "$ac_ct_DLLTOOL"; then
4673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4674$as_echo "$ac_ct_DLLTOOL" >&6; }
4675else
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677$as_echo "no" >&6; }
4678fi
4679
4680  if test "x$ac_ct_DLLTOOL" = x; then
4681    DLLTOOL="false"
4682  else
4683    case $cross_compiling:$ac_tool_warned in
4684yes:)
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687ac_tool_warned=yes ;;
4688esac
4689    DLLTOOL=$ac_ct_DLLTOOL
4690  fi
4691else
4692  DLLTOOL="$ac_cv_prog_DLLTOOL"
4693fi
4694
4695  if test -n "$ac_tool_prefix"; then
4696  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4697set dummy ${ac_tool_prefix}objdump; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_prog_OBJDUMP+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  if test -n "$OBJDUMP"; then
4704  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715    break 2
4716  fi
4717done
4718  done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723OBJDUMP=$ac_cv_prog_OBJDUMP
4724if test -n "$OBJDUMP"; then
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4726$as_echo "$OBJDUMP" >&6; }
4727else
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730fi
4731
4732
4733fi
4734if test -z "$ac_cv_prog_OBJDUMP"; then
4735  ac_ct_OBJDUMP=$OBJDUMP
4736  # Extract the first word of "objdump", so it can be a program name with args.
4737set dummy objdump; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4741  $as_echo_n "(cached) " >&6
4742else
4743  if test -n "$ac_ct_OBJDUMP"; then
4744  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751    for ac_exec_ext in '' $ac_executable_extensions; do
4752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758  done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
4763ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4764if test -n "$ac_ct_OBJDUMP"; then
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4766$as_echo "$ac_ct_OBJDUMP" >&6; }
4767else
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772  if test "x$ac_ct_OBJDUMP" = x; then
4773    OBJDUMP="false"
4774  else
4775    case $cross_compiling:$ac_tool_warned in
4776yes:)
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779ac_tool_warned=yes ;;
4780esac
4781    OBJDUMP=$ac_ct_OBJDUMP
4782  fi
4783else
4784  OBJDUMP="$ac_cv_prog_OBJDUMP"
4785fi
4786
4787  ;;
4788esac
4789
4790test -z "$AS" && AS=as
4791
4792
4793
4794
4795
4796test -z "$DLLTOOL" && DLLTOOL=dlltool
4797
4798
4799
4800
4801
4802test -z "$OBJDUMP" && OBJDUMP=objdump
4803
4804
4805
4806
4807
4808
4809
4810case `pwd` in
4811  *\ * | *\	*)
4812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4813$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4814esac
4815
4816
4817
4818macro_version='2.4.6'
4819macro_revision='2.4.6'
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833ltmain=$ac_aux_dir/ltmain.sh
4834
4835# Backslashify metacharacters that are still active within
4836# double-quoted strings.
4837sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4838
4839# Same as above, but do not quote variable references.
4840double_quote_subst='s/\(["`\\]\)/\\\1/g'
4841
4842# Sed substitution to delay expansion of an escaped shell variable in a
4843# double_quote_subst'ed string.
4844delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4845
4846# Sed substitution to delay expansion of an escaped single quote.
4847delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4848
4849# Sed substitution to avoid accidental globbing in evaled expressions
4850no_glob_subst='s/\*/\\\*/g'
4851
4852ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4853ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4854ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4857$as_echo_n "checking how to print strings... " >&6; }
4858# Test print first, because it will be a builtin if present.
4859if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4860   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4861  ECHO='print -r --'
4862elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4863  ECHO='printf %s\n'
4864else
4865  # Use this function as a fallback that always works.
4866  func_fallback_echo ()
4867  {
4868    eval 'cat <<_LTECHO_EOF
4869$1
4870_LTECHO_EOF'
4871  }
4872  ECHO='func_fallback_echo'
4873fi
4874
4875# func_echo_all arg...
4876# Invoke $ECHO with all args, space-separated.
4877func_echo_all ()
4878{
4879    $ECHO ""
4880}
4881
4882case $ECHO in
4883  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4884$as_echo "printf" >&6; } ;;
4885  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4886$as_echo "print -r" >&6; } ;;
4887  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4888$as_echo "cat" >&6; } ;;
4889esac
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4906if ${ac_cv_path_SED+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4910     for ac_i in 1 2 3 4 5 6 7; do
4911       ac_script="$ac_script$as_nl$ac_script"
4912     done
4913     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4914     { ac_script=; unset ac_script;}
4915     if test -z "$SED"; then
4916  ac_path_SED_found=false
4917  # Loop through the user's path and test for each of PROGNAME-LIST
4918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921  IFS=$as_save_IFS
4922  test -z "$as_dir" && as_dir=.
4923    for ac_prog in sed gsed; do
4924    for ac_exec_ext in '' $ac_executable_extensions; do
4925      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4926      as_fn_executable_p "$ac_path_SED" || continue
4927# Check for GNU ac_path_SED and select it if it is found.
4928  # Check for GNU $ac_path_SED
4929case `"$ac_path_SED" --version 2>&1` in
4930*GNU*)
4931  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4932*)
4933  ac_count=0
4934  $as_echo_n 0123456789 >"conftest.in"
4935  while :
4936  do
4937    cat "conftest.in" "conftest.in" >"conftest.tmp"
4938    mv "conftest.tmp" "conftest.in"
4939    cp "conftest.in" "conftest.nl"
4940    $as_echo '' >> "conftest.nl"
4941    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4942    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4943    as_fn_arith $ac_count + 1 && ac_count=$as_val
4944    if test $ac_count -gt ${ac_path_SED_max-0}; then
4945      # Best one so far, save it but keep looking for a better one
4946      ac_cv_path_SED="$ac_path_SED"
4947      ac_path_SED_max=$ac_count
4948    fi
4949    # 10*(2^10) chars as input seems more than enough
4950    test $ac_count -gt 10 && break
4951  done
4952  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4953esac
4954
4955      $ac_path_SED_found && break 3
4956    done
4957  done
4958  done
4959IFS=$as_save_IFS
4960  if test -z "$ac_cv_path_SED"; then
4961    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4962  fi
4963else
4964  ac_cv_path_SED=$SED
4965fi
4966
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4969$as_echo "$ac_cv_path_SED" >&6; }
4970 SED="$ac_cv_path_SED"
4971  rm -f conftest.sed
4972
4973test -z "$SED" && SED=sed
4974Xsed="$SED -e 1s/^X//"
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4987$as_echo_n "checking for fgrep... " >&6; }
4988if ${ac_cv_path_FGREP+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4992   then ac_cv_path_FGREP="$GREP -F"
4993   else
4994     if test -z "$FGREP"; then
4995  ac_path_FGREP_found=false
4996  # Loop through the user's path and test for each of PROGNAME-LIST
4997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_prog in fgrep; do
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5005      as_fn_executable_p "$ac_path_FGREP" || continue
5006# Check for GNU ac_path_FGREP and select it if it is found.
5007  # Check for GNU $ac_path_FGREP
5008case `"$ac_path_FGREP" --version 2>&1` in
5009*GNU*)
5010  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5011*)
5012  ac_count=0
5013  $as_echo_n 0123456789 >"conftest.in"
5014  while :
5015  do
5016    cat "conftest.in" "conftest.in" >"conftest.tmp"
5017    mv "conftest.tmp" "conftest.in"
5018    cp "conftest.in" "conftest.nl"
5019    $as_echo 'FGREP' >> "conftest.nl"
5020    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022    as_fn_arith $ac_count + 1 && ac_count=$as_val
5023    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5024      # Best one so far, save it but keep looking for a better one
5025      ac_cv_path_FGREP="$ac_path_FGREP"
5026      ac_path_FGREP_max=$ac_count
5027    fi
5028    # 10*(2^10) chars as input seems more than enough
5029    test $ac_count -gt 10 && break
5030  done
5031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032esac
5033
5034      $ac_path_FGREP_found && break 3
5035    done
5036  done
5037  done
5038IFS=$as_save_IFS
5039  if test -z "$ac_cv_path_FGREP"; then
5040    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041  fi
5042else
5043  ac_cv_path_FGREP=$FGREP
5044fi
5045
5046   fi
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5049$as_echo "$ac_cv_path_FGREP" >&6; }
5050 FGREP="$ac_cv_path_FGREP"
5051
5052
5053test -z "$GREP" && GREP=grep
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073# Check whether --with-gnu-ld was given.
5074if test "${with_gnu_ld+set}" = set; then :
5075  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5076else
5077  with_gnu_ld=no
5078fi
5079
5080ac_prog=ld
5081if test yes = "$GCC"; then
5082  # Check if gcc -print-prog-name=ld gives a path.
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5084$as_echo_n "checking for ld used by $CC... " >&6; }
5085  case $host in
5086  *-*-mingw*)
5087    # gcc leaves a trailing carriage return, which upsets mingw
5088    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5089  *)
5090    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5091  esac
5092  case $ac_prog in
5093    # Accept absolute paths.
5094    [\\/]* | ?:[\\/]*)
5095      re_direlt='/[^/][^/]*/\.\./'
5096      # Canonicalize the pathname of ld
5097      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5098      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5099	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5100      done
5101      test -z "$LD" && LD=$ac_prog
5102      ;;
5103  "")
5104    # If it fails, then pretend we aren't using GCC.
5105    ac_prog=ld
5106    ;;
5107  *)
5108    # If it is relative, then search for the first ld in PATH.
5109    with_gnu_ld=unknown
5110    ;;
5111  esac
5112elif test yes = "$with_gnu_ld"; then
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5114$as_echo_n "checking for GNU ld... " >&6; }
5115else
5116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5117$as_echo_n "checking for non-GNU ld... " >&6; }
5118fi
5119if ${lt_cv_path_LD+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  if test -z "$LD"; then
5123  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5124  for ac_dir in $PATH; do
5125    IFS=$lt_save_ifs
5126    test -z "$ac_dir" && ac_dir=.
5127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5128      lt_cv_path_LD=$ac_dir/$ac_prog
5129      # Check to see if the program is GNU ld.  I'd rather use --version,
5130      # but apparently some variants of GNU ld only accept -v.
5131      # Break only if it was the GNU/non-GNU ld that we prefer.
5132      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5133      *GNU* | *'with BFD'*)
5134	test no != "$with_gnu_ld" && break
5135	;;
5136      *)
5137	test yes != "$with_gnu_ld" && break
5138	;;
5139      esac
5140    fi
5141  done
5142  IFS=$lt_save_ifs
5143else
5144  lt_cv_path_LD=$LD # Let the user override the test with a path.
5145fi
5146fi
5147
5148LD=$lt_cv_path_LD
5149if test -n "$LD"; then
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5151$as_echo "$LD" >&6; }
5152else
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5158$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5159if ${lt_cv_prog_gnu_ld+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5163case `$LD -v 2>&1 </dev/null` in
5164*GNU* | *'with BFD'*)
5165  lt_cv_prog_gnu_ld=yes
5166  ;;
5167*)
5168  lt_cv_prog_gnu_ld=no
5169  ;;
5170esac
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5173$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5174with_gnu_ld=$lt_cv_prog_gnu_ld
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5185$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5186if ${lt_cv_path_NM+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  if test -n "$NM"; then
5190  # Let the user override the test.
5191  lt_cv_path_NM=$NM
5192else
5193  lt_nm_to_check=${ac_tool_prefix}nm
5194  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5195    lt_nm_to_check="$lt_nm_to_check nm"
5196  fi
5197  for lt_tmp_nm in $lt_nm_to_check; do
5198    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5199    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5200      IFS=$lt_save_ifs
5201      test -z "$ac_dir" && ac_dir=.
5202      tmp_nm=$ac_dir/$lt_tmp_nm
5203      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5204	# Check to see if the nm accepts a BSD-compat flag.
5205	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5206	#   nm: unknown option "B" ignored
5207	# Tru64's nm complains that /dev/null is an invalid object file
5208	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5209	case $build_os in
5210	mingw*) lt_bad_file=conftest.nm/nofile ;;
5211	*) lt_bad_file=/dev/null ;;
5212	esac
5213	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5214	*$lt_bad_file* | *'Invalid file or object type'*)
5215	  lt_cv_path_NM="$tmp_nm -B"
5216	  break 2
5217	  ;;
5218	*)
5219	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5220	  */dev/null*)
5221	    lt_cv_path_NM="$tmp_nm -p"
5222	    break 2
5223	    ;;
5224	  *)
5225	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5226	    continue # so that we can try to find one that supports BSD flags
5227	    ;;
5228	  esac
5229	  ;;
5230	esac
5231      fi
5232    done
5233    IFS=$lt_save_ifs
5234  done
5235  : ${lt_cv_path_NM=no}
5236fi
5237fi
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5239$as_echo "$lt_cv_path_NM" >&6; }
5240if test no != "$lt_cv_path_NM"; then
5241  NM=$lt_cv_path_NM
5242else
5243  # Didn't find any BSD compatible name lister, look for dumpbin.
5244  if test -n "$DUMPBIN"; then :
5245    # Let the user override the test.
5246  else
5247    if test -n "$ac_tool_prefix"; then
5248  for ac_prog in dumpbin "link -dump"
5249  do
5250    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_DUMPBIN+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  if test -n "$DUMPBIN"; then
5258  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263  IFS=$as_save_IFS
5264  test -z "$as_dir" && as_dir=.
5265    for ac_exec_ext in '' $ac_executable_extensions; do
5266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272  done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277DUMPBIN=$ac_cv_prog_DUMPBIN
5278if test -n "$DUMPBIN"; then
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5280$as_echo "$DUMPBIN" >&6; }
5281else
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286
5287    test -n "$DUMPBIN" && break
5288  done
5289fi
5290if test -z "$DUMPBIN"; then
5291  ac_ct_DUMPBIN=$DUMPBIN
5292  for ac_prog in dumpbin "link -dump"
5293do
5294  # Extract the first word of "$ac_prog", so it can be a program name with args.
5295set dummy $ac_prog; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  if test -n "$ac_ct_DUMPBIN"; then
5302  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_exec_ext in '' $ac_executable_extensions; do
5310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313    break 2
5314  fi
5315done
5316  done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5322if test -n "$ac_ct_DUMPBIN"; then
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5324$as_echo "$ac_ct_DUMPBIN" >&6; }
5325else
5326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331  test -n "$ac_ct_DUMPBIN" && break
5332done
5333
5334  if test "x$ac_ct_DUMPBIN" = x; then
5335    DUMPBIN=":"
5336  else
5337    case $cross_compiling:$ac_tool_warned in
5338yes:)
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343    DUMPBIN=$ac_ct_DUMPBIN
5344  fi
5345fi
5346
5347    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5348    *COFF*)
5349      DUMPBIN="$DUMPBIN -symbols -headers"
5350      ;;
5351    *)
5352      DUMPBIN=:
5353      ;;
5354    esac
5355  fi
5356
5357  if test : != "$DUMPBIN"; then
5358    NM=$DUMPBIN
5359  fi
5360fi
5361test -z "$NM" && NM=nm
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5369$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5370if ${lt_cv_nm_interface+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  lt_cv_nm_interface="BSD nm"
5374  echo "int some_variable = 0;" > conftest.$ac_ext
5375  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5376  (eval "$ac_compile" 2>conftest.err)
5377  cat conftest.err >&5
5378  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5379  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5380  cat conftest.err >&5
5381  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5382  cat conftest.out >&5
5383  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5384    lt_cv_nm_interface="MS dumpbin"
5385  fi
5386  rm -f conftest*
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5389$as_echo "$lt_cv_nm_interface" >&6; }
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5392$as_echo_n "checking whether ln -s works... " >&6; }
5393LN_S=$as_ln_s
5394if test "$LN_S" = "ln -s"; then
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396$as_echo "yes" >&6; }
5397else
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5399$as_echo "no, using $LN_S" >&6; }
5400fi
5401
5402# find the maximum length of command line arguments
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5404$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5405if ${lt_cv_sys_max_cmd_len+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408    i=0
5409  teststring=ABCD
5410
5411  case $build_os in
5412  msdosdjgpp*)
5413    # On DJGPP, this test can blow up pretty badly due to problems in libc
5414    # (any single argument exceeding 2000 bytes causes a buffer overrun
5415    # during glob expansion).  Even if it were fixed, the result of this
5416    # check would be larger than it should be.
5417    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5418    ;;
5419
5420  gnu*)
5421    # Under GNU Hurd, this test is not required because there is
5422    # no limit to the length of command line arguments.
5423    # Libtool will interpret -1 as no limit whatsoever
5424    lt_cv_sys_max_cmd_len=-1;
5425    ;;
5426
5427  cygwin* | mingw* | cegcc*)
5428    # On Win9x/ME, this test blows up -- it succeeds, but takes
5429    # about 5 minutes as the teststring grows exponentially.
5430    # Worse, since 9x/ME are not pre-emptively multitasking,
5431    # you end up with a "frozen" computer, even though with patience
5432    # the test eventually succeeds (with a max line length of 256k).
5433    # Instead, let's just punt: use the minimum linelength reported by
5434    # all of the supported platforms: 8192 (on NT/2K/XP).
5435    lt_cv_sys_max_cmd_len=8192;
5436    ;;
5437
5438  mint*)
5439    # On MiNT this can take a long time and run out of memory.
5440    lt_cv_sys_max_cmd_len=8192;
5441    ;;
5442
5443  amigaos*)
5444    # On AmigaOS with pdksh, this test takes hours, literally.
5445    # So we just punt and use a minimum line length of 8192.
5446    lt_cv_sys_max_cmd_len=8192;
5447    ;;
5448
5449  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5450    # This has been around since 386BSD, at least.  Likely further.
5451    if test -x /sbin/sysctl; then
5452      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5453    elif test -x /usr/sbin/sysctl; then
5454      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5455    else
5456      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5457    fi
5458    # And add a safety zone
5459    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461    ;;
5462
5463  interix*)
5464    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5465    lt_cv_sys_max_cmd_len=196608
5466    ;;
5467
5468  os2*)
5469    # The test takes a long time on OS/2.
5470    lt_cv_sys_max_cmd_len=8192
5471    ;;
5472
5473  osf*)
5474    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5475    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5476    # nice to cause kernel panics so lets avoid the loop below.
5477    # First set a reasonable default.
5478    lt_cv_sys_max_cmd_len=16384
5479    #
5480    if test -x /sbin/sysconfig; then
5481      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5482        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5483      esac
5484    fi
5485    ;;
5486  sco3.2v5*)
5487    lt_cv_sys_max_cmd_len=102400
5488    ;;
5489  sysv5* | sco5v6* | sysv4.2uw2*)
5490    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5491    if test -n "$kargmax"; then
5492      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5493    else
5494      lt_cv_sys_max_cmd_len=32768
5495    fi
5496    ;;
5497  *)
5498    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5499    if test -n "$lt_cv_sys_max_cmd_len" && \
5500       test undefined != "$lt_cv_sys_max_cmd_len"; then
5501      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5502      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5503    else
5504      # Make teststring a little bigger before we do anything with it.
5505      # a 1K string should be a reasonable start.
5506      for i in 1 2 3 4 5 6 7 8; do
5507        teststring=$teststring$teststring
5508      done
5509      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5510      # If test is not a shell built-in, we'll probably end up computing a
5511      # maximum length that is only half of the actual maximum length, but
5512      # we can't tell.
5513      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5514	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5515	      test 17 != "$i" # 1/2 MB should be enough
5516      do
5517        i=`expr $i + 1`
5518        teststring=$teststring$teststring
5519      done
5520      # Only check the string length outside the loop.
5521      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5522      teststring=
5523      # Add a significant safety factor because C++ compilers can tack on
5524      # massive amounts of additional arguments before passing them to the
5525      # linker.  It appears as though 1/2 is a usable value.
5526      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5527    fi
5528    ;;
5529  esac
5530
5531fi
5532
5533if test -n "$lt_cv_sys_max_cmd_len"; then
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5535$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5536else
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5538$as_echo "none" >&6; }
5539fi
5540max_cmd_len=$lt_cv_sys_max_cmd_len
5541
5542
5543
5544
5545
5546
5547: ${CP="cp -f"}
5548: ${MV="mv -f"}
5549: ${RM="rm -f"}
5550
5551if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5552  lt_unset=unset
5553else
5554  lt_unset=false
5555fi
5556
5557
5558
5559
5560
5561# test EBCDIC or ASCII
5562case `echo X|tr X '\101'` in
5563 A) # ASCII based system
5564    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5565  lt_SP2NL='tr \040 \012'
5566  lt_NL2SP='tr \015\012 \040\040'
5567  ;;
5568 *) # EBCDIC based system
5569  lt_SP2NL='tr \100 \n'
5570  lt_NL2SP='tr \r\n \100\100'
5571  ;;
5572esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5583$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5584if ${lt_cv_to_host_file_cmd+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  case $host in
5588  *-*-mingw* )
5589    case $build in
5590      *-*-mingw* ) # actually msys
5591        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5592        ;;
5593      *-*-cygwin* )
5594        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5595        ;;
5596      * ) # otherwise, assume *nix
5597        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5598        ;;
5599    esac
5600    ;;
5601  *-*-cygwin* )
5602    case $build in
5603      *-*-mingw* ) # actually msys
5604        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5605        ;;
5606      *-*-cygwin* )
5607        lt_cv_to_host_file_cmd=func_convert_file_noop
5608        ;;
5609      * ) # otherwise, assume *nix
5610        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5611        ;;
5612    esac
5613    ;;
5614  * ) # unhandled hosts (and "normal" native builds)
5615    lt_cv_to_host_file_cmd=func_convert_file_noop
5616    ;;
5617esac
5618
5619fi
5620
5621to_host_file_cmd=$lt_cv_to_host_file_cmd
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5623$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5624
5625
5626
5627
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5630$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5631if ${lt_cv_to_tool_file_cmd+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  #assume ordinary cross tools, or native build.
5635lt_cv_to_tool_file_cmd=func_convert_file_noop
5636case $host in
5637  *-*-mingw* )
5638    case $build in
5639      *-*-mingw* ) # actually msys
5640        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5641        ;;
5642    esac
5643    ;;
5644esac
5645
5646fi
5647
5648to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5650$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5651
5652
5653
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5657$as_echo_n "checking for $LD option to reload object files... " >&6; }
5658if ${lt_cv_ld_reload_flag+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661  lt_cv_ld_reload_flag='-r'
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664$as_echo "$lt_cv_ld_reload_flag" >&6; }
5665reload_flag=$lt_cv_ld_reload_flag
5666case $reload_flag in
5667"" | " "*) ;;
5668*) reload_flag=" $reload_flag" ;;
5669esac
5670reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671case $host_os in
5672  cygwin* | mingw* | pw32* | cegcc*)
5673    if test yes != "$GCC"; then
5674      reload_cmds=false
5675    fi
5676    ;;
5677  darwin*)
5678    if test yes = "$GCC"; then
5679      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5680    else
5681      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5682    fi
5683    ;;
5684esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694if test -n "$ac_tool_prefix"; then
5695  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}objdump; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if ${ac_cv_prog_OBJDUMP+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  if test -n "$OBJDUMP"; then
5703  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710    for ac_exec_ext in '' $ac_executable_extensions; do
5711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717  done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722OBJDUMP=$ac_cv_prog_OBJDUMP
5723if test -n "$OBJDUMP"; then
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725$as_echo "$OBJDUMP" >&6; }
5726else
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732fi
5733if test -z "$ac_cv_prog_OBJDUMP"; then
5734  ac_ct_OBJDUMP=$OBJDUMP
5735  # Extract the first word of "objdump", so it can be a program name with args.
5736set dummy objdump; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$ac_ct_OBJDUMP"; then
5743  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763if test -n "$ac_ct_OBJDUMP"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5765$as_echo "$ac_ct_OBJDUMP" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771  if test "x$ac_ct_OBJDUMP" = x; then
5772    OBJDUMP="false"
5773  else
5774    case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780    OBJDUMP=$ac_ct_OBJDUMP
5781  fi
5782else
5783  OBJDUMP="$ac_cv_prog_OBJDUMP"
5784fi
5785
5786test -z "$OBJDUMP" && OBJDUMP=objdump
5787
5788
5789
5790
5791
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795if ${lt_cv_deplibs_check_method+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  lt_cv_file_magic_cmd='$MAGIC_CMD'
5799lt_cv_file_magic_test_file=
5800lt_cv_deplibs_check_method='unknown'
5801# Need to set the preceding variable on all platforms that support
5802# interlibrary dependencies.
5803# 'none' -- dependencies not supported.
5804# 'unknown' -- same as none, but documents that we really don't know.
5805# 'pass_all' -- all dependencies passed with no checks.
5806# 'test_compile' -- check by making test program.
5807# 'file_magic [[regex]]' -- check by looking for files in library path
5808# that responds to the $file_magic_cmd with a given extended regex.
5809# If you have 'file' or equivalent on your system and you're not sure
5810# whether 'pass_all' will *always* work, you probably want this one.
5811
5812case $host_os in
5813aix[4-9]*)
5814  lt_cv_deplibs_check_method=pass_all
5815  ;;
5816
5817beos*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821bsdi[45]*)
5822  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823  lt_cv_file_magic_cmd='/usr/bin/file -L'
5824  lt_cv_file_magic_test_file=/shlib/libc.so
5825  ;;
5826
5827cygwin*)
5828  # func_win32_libid is a shell function defined in ltmain.sh
5829  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830  lt_cv_file_magic_cmd='func_win32_libid'
5831  ;;
5832
5833mingw* | pw32*)
5834  # Base MSYS/MinGW do not provide the 'file' command needed by
5835  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836  # unless we find 'file', for example because we are cross-compiling.
5837  if ( file / ) >/dev/null 2>&1; then
5838    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5839    lt_cv_file_magic_cmd='func_win32_libid'
5840  else
5841    # Keep this pattern in sync with the one in func_win32_libid.
5842    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5843    lt_cv_file_magic_cmd='$OBJDUMP -f'
5844  fi
5845  ;;
5846
5847cegcc*)
5848  # use the weaker test based on 'objdump'. See mingw*.
5849  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5850  lt_cv_file_magic_cmd='$OBJDUMP -f'
5851  ;;
5852
5853darwin* | rhapsody*)
5854  lt_cv_deplibs_check_method=pass_all
5855  ;;
5856
5857freebsd* | dragonfly*)
5858  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5859    case $host_cpu in
5860    i*86 )
5861      # Not sure whether the presence of OpenBSD here was a mistake.
5862      # Let's accept both of them until this is cleared up.
5863      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5864      lt_cv_file_magic_cmd=/usr/bin/file
5865      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5866      ;;
5867    esac
5868  else
5869    lt_cv_deplibs_check_method=pass_all
5870  fi
5871  ;;
5872
5873haiku*)
5874  lt_cv_deplibs_check_method=pass_all
5875  ;;
5876
5877hpux10.20* | hpux11*)
5878  lt_cv_file_magic_cmd=/usr/bin/file
5879  case $host_cpu in
5880  ia64*)
5881    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5882    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5883    ;;
5884  hppa*64*)
5885    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]'
5886    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5887    ;;
5888  *)
5889    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5890    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5891    ;;
5892  esac
5893  ;;
5894
5895interix[3-9]*)
5896  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5897  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5898  ;;
5899
5900irix5* | irix6* | nonstopux*)
5901  case $LD in
5902  *-32|*"-32 ") libmagic=32-bit;;
5903  *-n32|*"-n32 ") libmagic=N32;;
5904  *-64|*"-64 ") libmagic=64-bit;;
5905  *) libmagic=never-match;;
5906  esac
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910# This must be glibc/ELF.
5911linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915netbsd*)
5916  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5918  else
5919    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5920  fi
5921  ;;
5922
5923newos6*)
5924  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5925  lt_cv_file_magic_cmd=/usr/bin/file
5926  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5927  ;;
5928
5929*nto* | *qnx*)
5930  lt_cv_deplibs_check_method=pass_all
5931  ;;
5932
5933openbsd* | bitrig*)
5934  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5936  else
5937    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5938  fi
5939  ;;
5940
5941osf3* | osf4* | osf5*)
5942  lt_cv_deplibs_check_method=pass_all
5943  ;;
5944
5945rdos*)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948
5949solaris*)
5950  lt_cv_deplibs_check_method=pass_all
5951  ;;
5952
5953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5954  lt_cv_deplibs_check_method=pass_all
5955  ;;
5956
5957sysv4 | sysv4.3*)
5958  case $host_vendor in
5959  motorola)
5960    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]'
5961    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5962    ;;
5963  ncr)
5964    lt_cv_deplibs_check_method=pass_all
5965    ;;
5966  sequent)
5967    lt_cv_file_magic_cmd='/bin/file'
5968    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5969    ;;
5970  sni)
5971    lt_cv_file_magic_cmd='/bin/file'
5972    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5973    lt_cv_file_magic_test_file=/lib/libc.so
5974    ;;
5975  siemens)
5976    lt_cv_deplibs_check_method=pass_all
5977    ;;
5978  pc)
5979    lt_cv_deplibs_check_method=pass_all
5980    ;;
5981  esac
5982  ;;
5983
5984tpf*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987os2*)
5988  lt_cv_deplibs_check_method=pass_all
5989  ;;
5990esac
5991
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5994$as_echo "$lt_cv_deplibs_check_method" >&6; }
5995
5996file_magic_glob=
5997want_nocaseglob=no
5998if test "$build" = "$host"; then
5999  case $host_os in
6000  mingw* | pw32*)
6001    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6002      want_nocaseglob=yes
6003    else
6004      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6005    fi
6006    ;;
6007  esac
6008fi
6009
6010file_magic_cmd=$lt_cv_file_magic_cmd
6011deplibs_check_method=$lt_cv_deplibs_check_method
6012test -z "$deplibs_check_method" && deplibs_check_method=unknown
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035if test -n "$ac_tool_prefix"; then
6036  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6037set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
6040if ${ac_cv_prog_DLLTOOL+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  if test -n "$DLLTOOL"; then
6044  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049  IFS=$as_save_IFS
6050  test -z "$as_dir" && as_dir=.
6051    for ac_exec_ext in '' $ac_executable_extensions; do
6052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055    break 2
6056  fi
6057done
6058  done
6059IFS=$as_save_IFS
6060
6061fi
6062fi
6063DLLTOOL=$ac_cv_prog_DLLTOOL
6064if test -n "$DLLTOOL"; then
6065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6066$as_echo "$DLLTOOL" >&6; }
6067else
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
6070fi
6071
6072
6073fi
6074if test -z "$ac_cv_prog_DLLTOOL"; then
6075  ac_ct_DLLTOOL=$DLLTOOL
6076  # Extract the first word of "dlltool", so it can be a program name with args.
6077set dummy dlltool; ac_word=$2
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079$as_echo_n "checking for $ac_word... " >&6; }
6080if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  if test -n "$ac_ct_DLLTOOL"; then
6084  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6085else
6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087for as_dir in $PATH
6088do
6089  IFS=$as_save_IFS
6090  test -z "$as_dir" && as_dir=.
6091    for ac_exec_ext in '' $ac_executable_extensions; do
6092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095    break 2
6096  fi
6097done
6098  done
6099IFS=$as_save_IFS
6100
6101fi
6102fi
6103ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6104if test -n "$ac_ct_DLLTOOL"; then
6105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6106$as_echo "$ac_ct_DLLTOOL" >&6; }
6107else
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109$as_echo "no" >&6; }
6110fi
6111
6112  if test "x$ac_ct_DLLTOOL" = x; then
6113    DLLTOOL="false"
6114  else
6115    case $cross_compiling:$ac_tool_warned in
6116yes:)
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119ac_tool_warned=yes ;;
6120esac
6121    DLLTOOL=$ac_ct_DLLTOOL
6122  fi
6123else
6124  DLLTOOL="$ac_cv_prog_DLLTOOL"
6125fi
6126
6127test -z "$DLLTOOL" && DLLTOOL=dlltool
6128
6129
6130
6131
6132
6133
6134
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6136$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6137if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  lt_cv_sharedlib_from_linklib_cmd='unknown'
6141
6142case $host_os in
6143cygwin* | mingw* | pw32* | cegcc*)
6144  # two different shell functions defined in ltmain.sh;
6145  # decide which one to use based on capabilities of $DLLTOOL
6146  case `$DLLTOOL --help 2>&1` in
6147  *--identify-strict*)
6148    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6149    ;;
6150  *)
6151    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6152    ;;
6153  esac
6154  ;;
6155*)
6156  # fallback: assume linklib IS sharedlib
6157  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6158  ;;
6159esac
6160
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6163$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6164sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6165test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6166
6167
6168
6169
6170
6171
6172
6173if test -n "$ac_tool_prefix"; then
6174  for ac_prog in ar
6175  do
6176    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6177set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if ${ac_cv_prog_AR+:} false; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  if test -n "$AR"; then
6184  ac_cv_prog_AR="$AR" # Let the user override the test.
6185else
6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189  IFS=$as_save_IFS
6190  test -z "$as_dir" && as_dir=.
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203AR=$ac_cv_prog_AR
6204if test -n "$AR"; then
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6206$as_echo "$AR" >&6; }
6207else
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209$as_echo "no" >&6; }
6210fi
6211
6212
6213    test -n "$AR" && break
6214  done
6215fi
6216if test -z "$AR"; then
6217  ac_ct_AR=$AR
6218  for ac_prog in ar
6219do
6220  # Extract the first word of "$ac_prog", so it can be a program name with args.
6221set dummy $ac_prog; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
6224if ${ac_cv_prog_ac_ct_AR+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  if test -n "$ac_ct_AR"; then
6228  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233  IFS=$as_save_IFS
6234  test -z "$as_dir" && as_dir=.
6235    for ac_exec_ext in '' $ac_executable_extensions; do
6236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237    ac_cv_prog_ac_ct_AR="$ac_prog"
6238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239    break 2
6240  fi
6241done
6242  done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247ac_ct_AR=$ac_cv_prog_ac_ct_AR
6248if test -n "$ac_ct_AR"; then
6249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6250$as_echo "$ac_ct_AR" >&6; }
6251else
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256
6257  test -n "$ac_ct_AR" && break
6258done
6259
6260  if test "x$ac_ct_AR" = x; then
6261    AR="false"
6262  else
6263    case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269    AR=$ac_ct_AR
6270  fi
6271fi
6272
6273: ${AR=ar}
6274: ${AR_FLAGS=cru}
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6287$as_echo_n "checking for archiver @FILE support... " >&6; }
6288if ${lt_cv_ar_at_file+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  lt_cv_ar_at_file=no
6292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294
6295int
6296main ()
6297{
6298
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"; then :
6304  echo conftest.$ac_objext > conftest.lst
6305      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6306      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6307  (eval $lt_ar_try) 2>&5
6308  ac_status=$?
6309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310  test $ac_status = 0; }
6311      if test 0 -eq "$ac_status"; then
6312	# Ensure the archiver fails upon bogus file names.
6313	rm -f conftest.$ac_objext libconftest.a
6314	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6315  (eval $lt_ar_try) 2>&5
6316  ac_status=$?
6317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318  test $ac_status = 0; }
6319	if test 0 -ne "$ac_status"; then
6320          lt_cv_ar_at_file=@
6321        fi
6322      fi
6323      rm -f conftest.* libconftest.a
6324
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6330$as_echo "$lt_cv_ar_at_file" >&6; }
6331
6332if test no = "$lt_cv_ar_at_file"; then
6333  archiver_list_spec=
6334else
6335  archiver_list_spec=$lt_cv_ar_at_file
6336fi
6337
6338
6339
6340
6341
6342
6343
6344if test -n "$ac_tool_prefix"; then
6345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346set dummy ${ac_tool_prefix}strip; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_STRIP+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  if test -n "$STRIP"; then
6353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    for ac_exec_ext in '' $ac_executable_extensions; do
6361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367  done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372STRIP=$ac_cv_prog_STRIP
6373if test -n "$STRIP"; then
6374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6375$as_echo "$STRIP" >&6; }
6376else
6377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382fi
6383if test -z "$ac_cv_prog_STRIP"; then
6384  ac_ct_STRIP=$STRIP
6385  # Extract the first word of "strip", so it can be a program name with args.
6386set dummy strip; ac_word=$2
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
6389if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  if test -n "$ac_ct_STRIP"; then
6393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398  IFS=$as_save_IFS
6399  test -z "$as_dir" && as_dir=.
6400    for ac_exec_ext in '' $ac_executable_extensions; do
6401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402    ac_cv_prog_ac_ct_STRIP="strip"
6403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404    break 2
6405  fi
6406done
6407  done
6408IFS=$as_save_IFS
6409
6410fi
6411fi
6412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413if test -n "$ac_ct_STRIP"; then
6414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6415$as_echo "$ac_ct_STRIP" >&6; }
6416else
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418$as_echo "no" >&6; }
6419fi
6420
6421  if test "x$ac_ct_STRIP" = x; then
6422    STRIP=":"
6423  else
6424    case $cross_compiling:$ac_tool_warned in
6425yes:)
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428ac_tool_warned=yes ;;
6429esac
6430    STRIP=$ac_ct_STRIP
6431  fi
6432else
6433  STRIP="$ac_cv_prog_STRIP"
6434fi
6435
6436test -z "$STRIP" && STRIP=:
6437
6438
6439
6440
6441
6442
6443if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if ${ac_cv_prog_RANLIB+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  if test -n "$RANLIB"; then
6452  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466  done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6474$as_echo "$RANLIB" >&6; }
6475else
6476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_RANLIB"; then
6483  ac_ct_RANLIB=$RANLIB
6484  # Extract the first word of "ranlib", so it can be a program name with args.
6485set dummy ranlib; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_RANLIB"; then
6492  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_ac_ct_RANLIB="ranlib"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512if test -n "$ac_ct_RANLIB"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6514$as_echo "$ac_ct_RANLIB" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520  if test "x$ac_ct_RANLIB" = x; then
6521    RANLIB=":"
6522  else
6523    case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529    RANLIB=$ac_ct_RANLIB
6530  fi
6531else
6532  RANLIB="$ac_cv_prog_RANLIB"
6533fi
6534
6535test -z "$RANLIB" && RANLIB=:
6536
6537
6538
6539
6540
6541
6542# Determine commands to create old-style static archives.
6543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6544old_postinstall_cmds='chmod 644 $oldlib'
6545old_postuninstall_cmds=
6546
6547if test -n "$RANLIB"; then
6548  case $host_os in
6549  bitrig* | openbsd*)
6550    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6551    ;;
6552  *)
6553    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6554    ;;
6555  esac
6556  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6557fi
6558
6559case $host_os in
6560  darwin*)
6561    lock_old_archive_extraction=yes ;;
6562  *)
6563    lock_old_archive_extraction=no ;;
6564esac
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604# If no C compiler was specified, use CC.
6605LTCC=${LTCC-"$CC"}
6606
6607# If no C compiler flags were specified, use CFLAGS.
6608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609
6610# Allow CC to be a program name with arguments.
6611compiler=$CC
6612
6613
6614# Check for command to grab the raw symbol name followed by C symbol from nm.
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6616$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6617if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620
6621# These are sane defaults that work on at least a few old systems.
6622# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6623
6624# Character class describing NM global symbol codes.
6625symcode='[BCDEGRST]'
6626
6627# Regexp to match symbols that can be accessed directly from C.
6628sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6629
6630# Define system-specific variables.
6631case $host_os in
6632aix*)
6633  symcode='[BCDT]'
6634  ;;
6635cygwin* | mingw* | pw32* | cegcc*)
6636  symcode='[ABCDGISTW]'
6637  ;;
6638hpux*)
6639  if test ia64 = "$host_cpu"; then
6640    symcode='[ABCDEGRST]'
6641  fi
6642  ;;
6643irix* | nonstopux*)
6644  symcode='[BCDEGRST]'
6645  ;;
6646osf*)
6647  symcode='[BCDEGQRST]'
6648  ;;
6649solaris*)
6650  symcode='[BDRT]'
6651  ;;
6652sco3.2v5*)
6653  symcode='[DT]'
6654  ;;
6655sysv4.2uw2*)
6656  symcode='[DT]'
6657  ;;
6658sysv5* | sco5v6* | unixware* | OpenUNIX*)
6659  symcode='[ABDT]'
6660  ;;
6661sysv4)
6662  symcode='[DFNSTU]'
6663  ;;
6664esac
6665
6666# If we're using GNU nm, then use its standard symbol codes.
6667case `$NM -V 2>&1` in
6668*GNU* | *'with BFD'*)
6669  symcode='[ABCDGIRSTW]' ;;
6670esac
6671
6672if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6673  # Gets list of data symbols to import.
6674  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6675  # Adjust the below global symbol transforms to fixup imported variables.
6676  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6677  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6678  lt_c_name_lib_hook="\
6679  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6680  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6681else
6682  # Disable hooks by default.
6683  lt_cv_sys_global_symbol_to_import=
6684  lt_cdecl_hook=
6685  lt_c_name_hook=
6686  lt_c_name_lib_hook=
6687fi
6688
6689# Transform an extracted symbol line into a proper C declaration.
6690# Some systems (esp. on ia64) link data and code symbols differently,
6691# so use this general approach.
6692lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6693$lt_cdecl_hook\
6694" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6695" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6696
6697# Transform an extracted symbol line into symbol name and symbol address
6698lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6699$lt_c_name_hook\
6700" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6701" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6702
6703# Transform an extracted symbol line into symbol name with lib prefix and
6704# symbol address.
6705lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6706$lt_c_name_lib_hook\
6707" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6708" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6709" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6710
6711# Handle CRLF in mingw tool chain
6712opt_cr=
6713case $build_os in
6714mingw*)
6715  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6716  ;;
6717esac
6718
6719# Try without a prefix underscore, then with it.
6720for ac_symprfx in "" "_"; do
6721
6722  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6723  symxfrm="\\1 $ac_symprfx\\2 \\2"
6724
6725  # Write the raw and C identifiers.
6726  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6727    # Fake it for dumpbin and say T for any non-static function,
6728    # D for any global variable and I for any imported variable.
6729    # Also find C++ and __fastcall symbols from MSVC++,
6730    # which start with @ or ?.
6731    lt_cv_sys_global_symbol_pipe="$AWK '"\
6732"     {last_section=section; section=\$ 3};"\
6733"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6734"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6735"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6736"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6737"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6738"     \$ 0!~/External *\|/{next};"\
6739"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6740"     {if(hide[section]) next};"\
6741"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6742"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6743"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6744"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6745"     ' prfx=^$ac_symprfx"
6746  else
6747    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748  fi
6749  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6750
6751  # Check to see that the pipe works correctly.
6752  pipe_works=no
6753
6754  rm -f conftest*
6755  cat > conftest.$ac_ext <<_LT_EOF
6756#ifdef __cplusplus
6757extern "C" {
6758#endif
6759char nm_test_var;
6760void nm_test_func(void);
6761void nm_test_func(void){}
6762#ifdef __cplusplus
6763}
6764#endif
6765int main(){nm_test_var='a';nm_test_func();return(0);}
6766_LT_EOF
6767
6768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769  (eval $ac_compile) 2>&5
6770  ac_status=$?
6771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772  test $ac_status = 0; }; then
6773    # Now try to grab the symbols.
6774    nlist=conftest.nm
6775    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6776  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6777  ac_status=$?
6778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779  test $ac_status = 0; } && test -s "$nlist"; then
6780      # Try sorting and uniquifying the output.
6781      if sort "$nlist" | uniq > "$nlist"T; then
6782	mv -f "$nlist"T "$nlist"
6783      else
6784	rm -f "$nlist"T
6785      fi
6786
6787      # Make sure that we snagged all the symbols we need.
6788      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6789	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6790	  cat <<_LT_EOF > conftest.$ac_ext
6791/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6792#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6793/* DATA imports from DLLs on WIN32 can't be const, because runtime
6794   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6795# define LT_DLSYM_CONST
6796#elif defined __osf__
6797/* This system does not cope well with relocations in const data.  */
6798# define LT_DLSYM_CONST
6799#else
6800# define LT_DLSYM_CONST const
6801#endif
6802
6803#ifdef __cplusplus
6804extern "C" {
6805#endif
6806
6807_LT_EOF
6808	  # Now generate the symbol file.
6809	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6810
6811	  cat <<_LT_EOF >> conftest.$ac_ext
6812
6813/* The mapping between symbol names and symbols.  */
6814LT_DLSYM_CONST struct {
6815  const char *name;
6816  void       *address;
6817}
6818lt__PROGRAM__LTX_preloaded_symbols[] =
6819{
6820  { "@PROGRAM@", (void *) 0 },
6821_LT_EOF
6822	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6823	  cat <<\_LT_EOF >> conftest.$ac_ext
6824  {0, (void *) 0}
6825};
6826
6827/* This works around a problem in FreeBSD linker */
6828#ifdef FREEBSD_WORKAROUND
6829static const void *lt_preloaded_setup() {
6830  return lt__PROGRAM__LTX_preloaded_symbols;
6831}
6832#endif
6833
6834#ifdef __cplusplus
6835}
6836#endif
6837_LT_EOF
6838	  # Now try linking the two files.
6839	  mv conftest.$ac_objext conftstm.$ac_objext
6840	  lt_globsym_save_LIBS=$LIBS
6841	  lt_globsym_save_CFLAGS=$CFLAGS
6842	  LIBS=conftstm.$ac_objext
6843	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6844	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6845  (eval $ac_link) 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6849	    pipe_works=yes
6850	  fi
6851	  LIBS=$lt_globsym_save_LIBS
6852	  CFLAGS=$lt_globsym_save_CFLAGS
6853	else
6854	  echo "cannot find nm_test_func in $nlist" >&5
6855	fi
6856      else
6857	echo "cannot find nm_test_var in $nlist" >&5
6858      fi
6859    else
6860      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6861    fi
6862  else
6863    echo "$progname: failed program was:" >&5
6864    cat conftest.$ac_ext >&5
6865  fi
6866  rm -rf conftest* conftst*
6867
6868  # Do not use the global_symbol_pipe unless it works.
6869  if test yes = "$pipe_works"; then
6870    break
6871  else
6872    lt_cv_sys_global_symbol_pipe=
6873  fi
6874done
6875
6876fi
6877
6878if test -z "$lt_cv_sys_global_symbol_pipe"; then
6879  lt_cv_sys_global_symbol_to_cdecl=
6880fi
6881if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6883$as_echo "failed" >&6; }
6884else
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6886$as_echo "ok" >&6; }
6887fi
6888
6889# Response file support.
6890if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6891  nm_file_list_spec='@'
6892elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6893  nm_file_list_spec='@'
6894fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6933$as_echo_n "checking for sysroot... " >&6; }
6934
6935# Check whether --with-sysroot was given.
6936if test "${with_sysroot+set}" = set; then :
6937  withval=$with_sysroot;
6938else
6939  with_sysroot=no
6940fi
6941
6942
6943lt_sysroot=
6944case $with_sysroot in #(
6945 yes)
6946   if test yes = "$GCC"; then
6947     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6948   fi
6949   ;; #(
6950 /*)
6951   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6952   ;; #(
6953 no|'')
6954   ;; #(
6955 *)
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6957$as_echo "$with_sysroot" >&6; }
6958   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6959   ;;
6960esac
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6963$as_echo "${lt_sysroot:-no}" >&6; }
6964
6965
6966
6967
6968
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6970$as_echo_n "checking for a working dd... " >&6; }
6971if ${ac_cv_path_lt_DD+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  printf 0123456789abcdef0123456789abcdef >conftest.i
6975cat conftest.i conftest.i >conftest2.i
6976: ${lt_DD:=$DD}
6977if test -z "$lt_DD"; then
6978  ac_path_lt_DD_found=false
6979  # Loop through the user's path and test for each of PROGNAME-LIST
6980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985    for ac_prog in dd; do
6986    for ac_exec_ext in '' $ac_executable_extensions; do
6987      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6988      as_fn_executable_p "$ac_path_lt_DD" || continue
6989if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6990  cmp -s conftest.i conftest.out \
6991  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6992fi
6993      $ac_path_lt_DD_found && break 3
6994    done
6995  done
6996  done
6997IFS=$as_save_IFS
6998  if test -z "$ac_cv_path_lt_DD"; then
6999    :
7000  fi
7001else
7002  ac_cv_path_lt_DD=$lt_DD
7003fi
7004
7005rm -f conftest.i conftest2.i conftest.out
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7008$as_echo "$ac_cv_path_lt_DD" >&6; }
7009
7010
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7012$as_echo_n "checking how to truncate binary pipes... " >&6; }
7013if ${lt_cv_truncate_bin+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  printf 0123456789abcdef0123456789abcdef >conftest.i
7017cat conftest.i conftest.i >conftest2.i
7018lt_cv_truncate_bin=
7019if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7020  cmp -s conftest.i conftest.out \
7021  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7022fi
7023rm -f conftest.i conftest2.i conftest.out
7024test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7027$as_echo "$lt_cv_truncate_bin" >&6; }
7028
7029
7030
7031
7032
7033
7034
7035# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7036func_cc_basename ()
7037{
7038    for cc_temp in $*""; do
7039      case $cc_temp in
7040        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7041        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7042        \-*) ;;
7043        *) break;;
7044      esac
7045    done
7046    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7047}
7048
7049# Check whether --enable-libtool-lock was given.
7050if test "${enable_libtool_lock+set}" = set; then :
7051  enableval=$enable_libtool_lock;
7052fi
7053
7054test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7055
7056# Some flags need to be propagated to the compiler or linker for good
7057# libtool support.
7058case $host in
7059ia64-*-hpux*)
7060  # Find out what ABI is being produced by ac_compile, and set mode
7061  # options accordingly.
7062  echo 'int i;' > conftest.$ac_ext
7063  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064  (eval $ac_compile) 2>&5
7065  ac_status=$?
7066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067  test $ac_status = 0; }; then
7068    case `/usr/bin/file conftest.$ac_objext` in
7069      *ELF-32*)
7070	HPUX_IA64_MODE=32
7071	;;
7072      *ELF-64*)
7073	HPUX_IA64_MODE=64
7074	;;
7075    esac
7076  fi
7077  rm -rf conftest*
7078  ;;
7079*-*-irix6*)
7080  # Find out what ABI is being produced by ac_compile, and set linker
7081  # options accordingly.
7082  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7083  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084  (eval $ac_compile) 2>&5
7085  ac_status=$?
7086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087  test $ac_status = 0; }; then
7088    if test yes = "$lt_cv_prog_gnu_ld"; then
7089      case `/usr/bin/file conftest.$ac_objext` in
7090	*32-bit*)
7091	  LD="${LD-ld} -melf32bsmip"
7092	  ;;
7093	*N32*)
7094	  LD="${LD-ld} -melf32bmipn32"
7095	  ;;
7096	*64-bit*)
7097	  LD="${LD-ld} -melf64bmip"
7098	;;
7099      esac
7100    else
7101      case `/usr/bin/file conftest.$ac_objext` in
7102	*32-bit*)
7103	  LD="${LD-ld} -32"
7104	  ;;
7105	*N32*)
7106	  LD="${LD-ld} -n32"
7107	  ;;
7108	*64-bit*)
7109	  LD="${LD-ld} -64"
7110	  ;;
7111      esac
7112    fi
7113  fi
7114  rm -rf conftest*
7115  ;;
7116
7117mips64*-*linux*)
7118  # Find out what ABI is being produced by ac_compile, and set linker
7119  # options accordingly.
7120  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7121  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7122  (eval $ac_compile) 2>&5
7123  ac_status=$?
7124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125  test $ac_status = 0; }; then
7126    emul=elf
7127    case `/usr/bin/file conftest.$ac_objext` in
7128      *32-bit*)
7129	emul="${emul}32"
7130	;;
7131      *64-bit*)
7132	emul="${emul}64"
7133	;;
7134    esac
7135    case `/usr/bin/file conftest.$ac_objext` in
7136      *MSB*)
7137	emul="${emul}btsmip"
7138	;;
7139      *LSB*)
7140	emul="${emul}ltsmip"
7141	;;
7142    esac
7143    case `/usr/bin/file conftest.$ac_objext` in
7144      *N32*)
7145	emul="${emul}n32"
7146	;;
7147    esac
7148    LD="${LD-ld} -m $emul"
7149  fi
7150  rm -rf conftest*
7151  ;;
7152
7153x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7154s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7155  # Find out what ABI is being produced by ac_compile, and set linker
7156  # options accordingly.  Note that the listed cases only cover the
7157  # situations where additional linker options are needed (such as when
7158  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7159  # vice versa); the common cases where no linker options are needed do
7160  # not appear in the list.
7161  echo 'int i;' > conftest.$ac_ext
7162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163  (eval $ac_compile) 2>&5
7164  ac_status=$?
7165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166  test $ac_status = 0; }; then
7167    case `/usr/bin/file conftest.o` in
7168      *32-bit*)
7169	case $host in
7170	  x86_64-*kfreebsd*-gnu)
7171	    LD="${LD-ld} -m elf_i386_fbsd"
7172	    ;;
7173	  x86_64-*linux*)
7174	    case `/usr/bin/file conftest.o` in
7175	      *x86-64*)
7176		LD="${LD-ld} -m elf32_x86_64"
7177		;;
7178	      *)
7179		LD="${LD-ld} -m elf_i386"
7180		;;
7181	    esac
7182	    ;;
7183	  powerpc64le-*linux*)
7184	    LD="${LD-ld} -m elf32lppclinux"
7185	    ;;
7186	  powerpc64-*linux*)
7187	    LD="${LD-ld} -m elf32ppclinux"
7188	    ;;
7189	  s390x-*linux*)
7190	    LD="${LD-ld} -m elf_s390"
7191	    ;;
7192	  sparc64-*linux*)
7193	    LD="${LD-ld} -m elf32_sparc"
7194	    ;;
7195	esac
7196	;;
7197      *64-bit*)
7198	case $host in
7199	  x86_64-*kfreebsd*-gnu)
7200	    LD="${LD-ld} -m elf_x86_64_fbsd"
7201	    ;;
7202	  x86_64-*linux*)
7203	    LD="${LD-ld} -m elf_x86_64"
7204	    ;;
7205	  powerpcle-*linux*)
7206	    LD="${LD-ld} -m elf64lppc"
7207	    ;;
7208	  powerpc-*linux*)
7209	    LD="${LD-ld} -m elf64ppc"
7210	    ;;
7211	  s390*-*linux*|s390*-*tpf*)
7212	    LD="${LD-ld} -m elf64_s390"
7213	    ;;
7214	  sparc*-*linux*)
7215	    LD="${LD-ld} -m elf64_sparc"
7216	    ;;
7217	esac
7218	;;
7219    esac
7220  fi
7221  rm -rf conftest*
7222  ;;
7223
7224*-*-sco3.2v5*)
7225  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7226  SAVE_CFLAGS=$CFLAGS
7227  CFLAGS="$CFLAGS -belf"
7228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7229$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7230if ${lt_cv_cc_needs_belf+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  ac_ext=c
7234ac_cpp='$CPP $CPPFLAGS'
7235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238
7239     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241
7242int
7243main ()
7244{
7245
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_link "$LINENO"; then :
7251  lt_cv_cc_needs_belf=yes
7252else
7253  lt_cv_cc_needs_belf=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext \
7256    conftest$ac_exeext conftest.$ac_ext
7257     ac_ext=c
7258ac_cpp='$CPP $CPPFLAGS'
7259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7265$as_echo "$lt_cv_cc_needs_belf" >&6; }
7266  if test yes != "$lt_cv_cc_needs_belf"; then
7267    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7268    CFLAGS=$SAVE_CFLAGS
7269  fi
7270  ;;
7271*-*solaris*)
7272  # Find out what ABI is being produced by ac_compile, and set linker
7273  # options accordingly.
7274  echo 'int i;' > conftest.$ac_ext
7275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276  (eval $ac_compile) 2>&5
7277  ac_status=$?
7278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279  test $ac_status = 0; }; then
7280    case `/usr/bin/file conftest.o` in
7281    *64-bit*)
7282      case $lt_cv_prog_gnu_ld in
7283      yes*)
7284        case $host in
7285        i?86-*-solaris*|x86_64-*-solaris*)
7286          LD="${LD-ld} -m elf_x86_64"
7287          ;;
7288        sparc*-*-solaris*)
7289          LD="${LD-ld} -m elf64_sparc"
7290          ;;
7291        esac
7292        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7293        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7294          LD=${LD-ld}_sol2
7295        fi
7296        ;;
7297      *)
7298	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7299	  LD="${LD-ld} -64"
7300	fi
7301	;;
7302      esac
7303      ;;
7304    esac
7305  fi
7306  rm -rf conftest*
7307  ;;
7308esac
7309
7310need_locks=$enable_libtool_lock
7311
7312if test -n "$ac_tool_prefix"; then
7313  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}mt; ac_word=$2
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316$as_echo_n "checking for $ac_word... " >&6; }
7317if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  if test -n "$MANIFEST_TOOL"; then
7321  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7341if test -n "$MANIFEST_TOOL"; then
7342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7343$as_echo "$MANIFEST_TOOL" >&6; }
7344else
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346$as_echo "no" >&6; }
7347fi
7348
7349
7350fi
7351if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7352  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7353  # Extract the first word of "mt", so it can be a program name with args.
7354set dummy mt; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  if test -n "$ac_ct_MANIFEST_TOOL"; then
7361  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366  IFS=$as_save_IFS
7367  test -z "$as_dir" && as_dir=.
7368    for ac_exec_ext in '' $ac_executable_extensions; do
7369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372    break 2
7373  fi
7374done
7375  done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7381if test -n "$ac_ct_MANIFEST_TOOL"; then
7382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7383$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7384else
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7390    MANIFEST_TOOL=":"
7391  else
7392    case $cross_compiling:$ac_tool_warned in
7393yes:)
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396ac_tool_warned=yes ;;
7397esac
7398    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7399  fi
7400else
7401  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7402fi
7403
7404test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7406$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7407if ${lt_cv_path_mainfest_tool+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  lt_cv_path_mainfest_tool=no
7411  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7412  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7413  cat conftest.err >&5
7414  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7415    lt_cv_path_mainfest_tool=yes
7416  fi
7417  rm -f conftest*
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7420$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7421if test yes != "$lt_cv_path_mainfest_tool"; then
7422  MANIFEST_TOOL=:
7423fi
7424
7425
7426
7427
7428
7429
7430  case $host_os in
7431    rhapsody* | darwin*)
7432    if test -n "$ac_tool_prefix"; then
7433  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7434set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436$as_echo_n "checking for $ac_word... " >&6; }
7437if ${ac_cv_prog_DSYMUTIL+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  if test -n "$DSYMUTIL"; then
7441  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446  IFS=$as_save_IFS
7447  test -z "$as_dir" && as_dir=.
7448    for ac_exec_ext in '' $ac_executable_extensions; do
7449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452    break 2
7453  fi
7454done
7455  done
7456IFS=$as_save_IFS
7457
7458fi
7459fi
7460DSYMUTIL=$ac_cv_prog_DSYMUTIL
7461if test -n "$DSYMUTIL"; then
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7463$as_echo "$DSYMUTIL" >&6; }
7464else
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
7469
7470fi
7471if test -z "$ac_cv_prog_DSYMUTIL"; then
7472  ac_ct_DSYMUTIL=$DSYMUTIL
7473  # Extract the first word of "dsymutil", so it can be a program name with args.
7474set dummy dsymutil; ac_word=$2
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  if test -n "$ac_ct_DSYMUTIL"; then
7481  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488    for ac_exec_ext in '' $ac_executable_extensions; do
7489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495  done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
7500ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7501if test -n "$ac_ct_DSYMUTIL"; then
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7503$as_echo "$ac_ct_DSYMUTIL" >&6; }
7504else
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
7509  if test "x$ac_ct_DSYMUTIL" = x; then
7510    DSYMUTIL=":"
7511  else
7512    case $cross_compiling:$ac_tool_warned in
7513yes:)
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516ac_tool_warned=yes ;;
7517esac
7518    DSYMUTIL=$ac_ct_DSYMUTIL
7519  fi
7520else
7521  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7522fi
7523
7524    if test -n "$ac_tool_prefix"; then
7525  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7526set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528$as_echo_n "checking for $ac_word... " >&6; }
7529if ${ac_cv_prog_NMEDIT+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  if test -n "$NMEDIT"; then
7533  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7534else
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538  IFS=$as_save_IFS
7539  test -z "$as_dir" && as_dir=.
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_NMEDIT="${ac_tool_prefix}nmedit"
7543    $as_echo "$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
7552NMEDIT=$ac_cv_prog_NMEDIT
7553if test -n "$NMEDIT"; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7555$as_echo "$NMEDIT" >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560
7561
7562fi
7563if test -z "$ac_cv_prog_NMEDIT"; then
7564  ac_ct_NMEDIT=$NMEDIT
7565  # Extract the first word of "nmedit", so it can be a program name with args.
7566set dummy nmedit; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  if test -n "$ac_ct_NMEDIT"; then
7573  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580    for ac_exec_ext in '' $ac_executable_extensions; do
7581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587  done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7593if test -n "$ac_ct_NMEDIT"; then
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7595$as_echo "$ac_ct_NMEDIT" >&6; }
7596else
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601  if test "x$ac_ct_NMEDIT" = x; then
7602    NMEDIT=":"
7603  else
7604    case $cross_compiling:$ac_tool_warned in
7605yes:)
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608ac_tool_warned=yes ;;
7609esac
7610    NMEDIT=$ac_ct_NMEDIT
7611  fi
7612else
7613  NMEDIT="$ac_cv_prog_NMEDIT"
7614fi
7615
7616    if test -n "$ac_tool_prefix"; then
7617  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7618set dummy ${ac_tool_prefix}lipo; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if ${ac_cv_prog_LIPO+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  if test -n "$LIPO"; then
7625  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630  IFS=$as_save_IFS
7631  test -z "$as_dir" && as_dir=.
7632    for ac_exec_ext in '' $ac_executable_extensions; do
7633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636    break 2
7637  fi
7638done
7639  done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644LIPO=$ac_cv_prog_LIPO
7645if test -n "$LIPO"; then
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7647$as_echo "$LIPO" >&6; }
7648else
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653
7654fi
7655if test -z "$ac_cv_prog_LIPO"; then
7656  ac_ct_LIPO=$LIPO
7657  # Extract the first word of "lipo", so it can be a program name with args.
7658set dummy lipo; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7662  $as_echo_n "(cached) " >&6
7663else
7664  if test -n "$ac_ct_LIPO"; then
7665  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672    for ac_exec_ext in '' $ac_executable_extensions; do
7673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674    ac_cv_prog_ac_ct_LIPO="lipo"
7675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679  done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7685if test -n "$ac_ct_LIPO"; then
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7687$as_echo "$ac_ct_LIPO" >&6; }
7688else
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693  if test "x$ac_ct_LIPO" = x; then
7694    LIPO=":"
7695  else
7696    case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702    LIPO=$ac_ct_LIPO
7703  fi
7704else
7705  LIPO="$ac_cv_prog_LIPO"
7706fi
7707
7708    if test -n "$ac_tool_prefix"; then
7709  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}otool; ac_word=$2
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
7713if ${ac_cv_prog_OTOOL+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  if test -n "$OTOOL"; then
7717  ac_cv_prog_OTOOL="$OTOOL" # 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  test -z "$as_dir" && as_dir=.
7724    for ac_exec_ext in '' $ac_executable_extensions; do
7725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728    break 2
7729  fi
7730done
7731  done
7732IFS=$as_save_IFS
7733
7734fi
7735fi
7736OTOOL=$ac_cv_prog_OTOOL
7737if test -n "$OTOOL"; then
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7739$as_echo "$OTOOL" >&6; }
7740else
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744
7745
7746fi
7747if test -z "$ac_cv_prog_OTOOL"; then
7748  ac_ct_OTOOL=$OTOOL
7749  # Extract the first word of "otool", so it can be a program name with args.
7750set dummy otool; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  if test -n "$ac_ct_OTOOL"; then
7757  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764    for ac_exec_ext in '' $ac_executable_extensions; do
7765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766    ac_cv_prog_ac_ct_OTOOL="otool"
7767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771  done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7777if test -n "$ac_ct_OTOOL"; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7779$as_echo "$ac_ct_OTOOL" >&6; }
7780else
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785  if test "x$ac_ct_OTOOL" = x; then
7786    OTOOL=":"
7787  else
7788    case $cross_compiling:$ac_tool_warned in
7789yes:)
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792ac_tool_warned=yes ;;
7793esac
7794    OTOOL=$ac_ct_OTOOL
7795  fi
7796else
7797  OTOOL="$ac_cv_prog_OTOOL"
7798fi
7799
7800    if test -n "$ac_tool_prefix"; then
7801  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7802set dummy ${ac_tool_prefix}otool64; ac_word=$2
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
7805if ${ac_cv_prog_OTOOL64+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  if test -n "$OTOOL64"; then
7809  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814  IFS=$as_save_IFS
7815  test -z "$as_dir" && as_dir=.
7816    for ac_exec_ext in '' $ac_executable_extensions; do
7817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820    break 2
7821  fi
7822done
7823  done
7824IFS=$as_save_IFS
7825
7826fi
7827fi
7828OTOOL64=$ac_cv_prog_OTOOL64
7829if test -n "$OTOOL64"; then
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7831$as_echo "$OTOOL64" >&6; }
7832else
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835fi
7836
7837
7838fi
7839if test -z "$ac_cv_prog_OTOOL64"; then
7840  ac_ct_OTOOL64=$OTOOL64
7841  # Extract the first word of "otool64", so it can be a program name with args.
7842set dummy otool64; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$ac_ct_OTOOL64"; then
7849  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858    ac_cv_prog_ac_ct_OTOOL64="otool64"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7869if test -n "$ac_ct_OTOOL64"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7871$as_echo "$ac_ct_OTOOL64" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877  if test "x$ac_ct_OTOOL64" = x; then
7878    OTOOL64=":"
7879  else
7880    case $cross_compiling:$ac_tool_warned in
7881yes:)
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884ac_tool_warned=yes ;;
7885esac
7886    OTOOL64=$ac_ct_OTOOL64
7887  fi
7888else
7889  OTOOL64="$ac_cv_prog_OTOOL64"
7890fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7919$as_echo_n "checking for -single_module linker flag... " >&6; }
7920if ${lt_cv_apple_cc_single_mod+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  lt_cv_apple_cc_single_mod=no
7924      if test -z "$LT_MULTI_MODULE"; then
7925	# By default we will add the -single_module flag. You can override
7926	# by either setting the environment variable LT_MULTI_MODULE
7927	# non-empty at configure time, or by adding -multi_module to the
7928	# link flags.
7929	rm -rf libconftest.dylib*
7930	echo "int foo(void){return 1;}" > conftest.c
7931	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932-dynamiclib -Wl,-single_module conftest.c" >&5
7933	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935        _lt_result=$?
7936	# If there is a non-empty error log, and "single_module"
7937	# appears in it, assume the flag caused a linker warning
7938        if test -s conftest.err && $GREP single_module conftest.err; then
7939	  cat conftest.err >&5
7940	# Otherwise, if the output was created with a 0 exit code from
7941	# the compiler, it worked.
7942	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7943	  lt_cv_apple_cc_single_mod=yes
7944	else
7945	  cat conftest.err >&5
7946	fi
7947	rm -rf libconftest.dylib*
7948	rm -f conftest.*
7949      fi
7950fi
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7952$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7953
7954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7955$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7956if ${lt_cv_ld_exported_symbols_list+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  lt_cv_ld_exported_symbols_list=no
7960      save_LDFLAGS=$LDFLAGS
7961      echo "_main" > conftest.sym
7962      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965
7966int
7967main ()
7968{
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974if ac_fn_c_try_link "$LINENO"; then :
7975  lt_cv_ld_exported_symbols_list=yes
7976else
7977  lt_cv_ld_exported_symbols_list=no
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980    conftest$ac_exeext conftest.$ac_ext
7981	LDFLAGS=$save_LDFLAGS
7982
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7985$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7986
7987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7988$as_echo_n "checking for -force_load linker flag... " >&6; }
7989if ${lt_cv_ld_force_load+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  lt_cv_ld_force_load=no
7993      cat > conftest.c << _LT_EOF
7994int forced_loaded() { return 2;}
7995_LT_EOF
7996      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7997      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7998      echo "$AR cru libconftest.a conftest.o" >&5
7999      $AR cru libconftest.a conftest.o 2>&5
8000      echo "$RANLIB libconftest.a" >&5
8001      $RANLIB libconftest.a 2>&5
8002      cat > conftest.c << _LT_EOF
8003int main() { return 0;}
8004_LT_EOF
8005      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8006      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8007      _lt_result=$?
8008      if test -s conftest.err && $GREP force_load conftest.err; then
8009	cat conftest.err >&5
8010      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8011	lt_cv_ld_force_load=yes
8012      else
8013	cat conftest.err >&5
8014      fi
8015        rm -f conftest.err libconftest.a conftest conftest.c
8016        rm -rf conftest.dSYM
8017
8018fi
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8020$as_echo "$lt_cv_ld_force_load" >&6; }
8021    case $host_os in
8022    rhapsody* | darwin1.[012])
8023      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8024    darwin1.*)
8025      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8026    darwin*) # darwin 5.x on
8027      # if running on 10.5 or later, the deployment target defaults
8028      # to the OS version, if on x86, and 10.4, the deployment
8029      # target defaults to 10.4. Don't you love it?
8030      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8031	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8032	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8033	10.[012][,.]*)
8034	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8035	10.*)
8036	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8037      esac
8038    ;;
8039  esac
8040    if test yes = "$lt_cv_apple_cc_single_mod"; then
8041      _lt_dar_single_mod='$single_module'
8042    fi
8043    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8044      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8045    else
8046      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8047    fi
8048    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8049      _lt_dsymutil='~$DSYMUTIL $lib || :'
8050    else
8051      _lt_dsymutil=
8052    fi
8053    ;;
8054  esac
8055
8056# func_munge_path_list VARIABLE PATH
8057# -----------------------------------
8058# VARIABLE is name of variable containing _space_ separated list of
8059# directories to be munged by the contents of PATH, which is string
8060# having a format:
8061# "DIR[:DIR]:"
8062#       string "DIR[ DIR]" will be prepended to VARIABLE
8063# ":DIR[:DIR]"
8064#       string "DIR[ DIR]" will be appended to VARIABLE
8065# "DIRP[:DIRP]::[DIRA:]DIRA"
8066#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8067#       "DIRA[ DIRA]" will be appended to VARIABLE
8068# "DIR[:DIR]"
8069#       VARIABLE will be replaced by "DIR[ DIR]"
8070func_munge_path_list ()
8071{
8072    case x$2 in
8073    x)
8074        ;;
8075    *:)
8076        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8077        ;;
8078    x:*)
8079        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8080        ;;
8081    *::*)
8082        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8083        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8084        ;;
8085    *)
8086        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8087        ;;
8088    esac
8089}
8090
8091for ac_header in dlfcn.h
8092do :
8093  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8094"
8095if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8096  cat >>confdefs.h <<_ACEOF
8097#define HAVE_DLFCN_H 1
8098_ACEOF
8099
8100fi
8101
8102done
8103
8104
8105
8106
8107
8108# Set options
8109
8110
8111
8112        enable_dlopen=no
8113
8114
8115
8116            # Check whether --enable-shared was given.
8117if test "${enable_shared+set}" = set; then :
8118  enableval=$enable_shared; p=${PACKAGE-default}
8119    case $enableval in
8120    yes) enable_shared=yes ;;
8121    no) enable_shared=no ;;
8122    *)
8123      enable_shared=no
8124      # Look at the argument we got.  We use all the common list separators.
8125      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8126      for pkg in $enableval; do
8127	IFS=$lt_save_ifs
8128	if test "X$pkg" = "X$p"; then
8129	  enable_shared=yes
8130	fi
8131      done
8132      IFS=$lt_save_ifs
8133      ;;
8134    esac
8135else
8136  enable_shared=yes
8137fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147  # Check whether --enable-static was given.
8148if test "${enable_static+set}" = set; then :
8149  enableval=$enable_static; p=${PACKAGE-default}
8150    case $enableval in
8151    yes) enable_static=yes ;;
8152    no) enable_static=no ;;
8153    *)
8154     enable_static=no
8155      # Look at the argument we got.  We use all the common list separators.
8156      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8157      for pkg in $enableval; do
8158	IFS=$lt_save_ifs
8159	if test "X$pkg" = "X$p"; then
8160	  enable_static=yes
8161	fi
8162      done
8163      IFS=$lt_save_ifs
8164      ;;
8165    esac
8166else
8167  enable_static=yes
8168fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179# Check whether --with-pic was given.
8180if test "${with_pic+set}" = set; then :
8181  withval=$with_pic; lt_p=${PACKAGE-default}
8182    case $withval in
8183    yes|no) pic_mode=$withval ;;
8184    *)
8185      pic_mode=default
8186      # Look at the argument we got.  We use all the common list separators.
8187      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8188      for lt_pkg in $withval; do
8189	IFS=$lt_save_ifs
8190	if test "X$lt_pkg" = "X$lt_p"; then
8191	  pic_mode=yes
8192	fi
8193      done
8194      IFS=$lt_save_ifs
8195      ;;
8196    esac
8197else
8198  pic_mode=default
8199fi
8200
8201
8202
8203
8204
8205
8206
8207
8208  # Check whether --enable-fast-install was given.
8209if test "${enable_fast_install+set}" = set; then :
8210  enableval=$enable_fast_install; p=${PACKAGE-default}
8211    case $enableval in
8212    yes) enable_fast_install=yes ;;
8213    no) enable_fast_install=no ;;
8214    *)
8215      enable_fast_install=no
8216      # Look at the argument we got.  We use all the common list separators.
8217      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8218      for pkg in $enableval; do
8219	IFS=$lt_save_ifs
8220	if test "X$pkg" = "X$p"; then
8221	  enable_fast_install=yes
8222	fi
8223      done
8224      IFS=$lt_save_ifs
8225      ;;
8226    esac
8227else
8228  enable_fast_install=yes
8229fi
8230
8231
8232
8233
8234
8235
8236
8237
8238  shared_archive_member_spec=
8239case $host,$enable_shared in
8240power*-*-aix[5-9]*,yes)
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8242$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8243
8244# Check whether --with-aix-soname was given.
8245if test "${with_aix_soname+set}" = set; then :
8246  withval=$with_aix_soname; case $withval in
8247    aix|svr4|both)
8248      ;;
8249    *)
8250      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8251      ;;
8252    esac
8253    lt_cv_with_aix_soname=$with_aix_soname
8254else
8255  if ${lt_cv_with_aix_soname+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  lt_cv_with_aix_soname=aix
8259fi
8260
8261    with_aix_soname=$lt_cv_with_aix_soname
8262fi
8263
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8265$as_echo "$with_aix_soname" >&6; }
8266  if test aix != "$with_aix_soname"; then
8267    # For the AIX way of multilib, we name the shared archive member
8268    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8269    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8270    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8271    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8272    if test 64 = "${OBJECT_MODE-32}"; then
8273      shared_archive_member_spec=shr_64
8274    else
8275      shared_archive_member_spec=shr
8276    fi
8277  fi
8278  ;;
8279*)
8280  with_aix_soname=aix
8281  ;;
8282esac
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293# This can be used to rebuild libtool when needed
8294LIBTOOL_DEPS=$ltmain
8295
8296# Always use our own libtool.
8297LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328test -z "$LN_S" && LN_S="ln -s"
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343if test -n "${ZSH_VERSION+set}"; then
8344   setopt NO_GLOB_SUBST
8345fi
8346
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8348$as_echo_n "checking for objdir... " >&6; }
8349if ${lt_cv_objdir+:} false; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  rm -f .libs 2>/dev/null
8353mkdir .libs 2>/dev/null
8354if test -d .libs; then
8355  lt_cv_objdir=.libs
8356else
8357  # MS-DOS does not allow filenames that begin with a dot.
8358  lt_cv_objdir=_libs
8359fi
8360rmdir .libs 2>/dev/null
8361fi
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8363$as_echo "$lt_cv_objdir" >&6; }
8364objdir=$lt_cv_objdir
8365
8366
8367
8368
8369
8370cat >>confdefs.h <<_ACEOF
8371#define LT_OBJDIR "$lt_cv_objdir/"
8372_ACEOF
8373
8374
8375
8376
8377case $host_os in
8378aix3*)
8379  # AIX sometimes has problems with the GCC collect2 program.  For some
8380  # reason, if we set the COLLECT_NAMES environment variable, the problems
8381  # vanish in a puff of smoke.
8382  if test set != "${COLLECT_NAMES+set}"; then
8383    COLLECT_NAMES=
8384    export COLLECT_NAMES
8385  fi
8386  ;;
8387esac
8388
8389# Global variables:
8390ofile=libtool
8391can_build_shared=yes
8392
8393# All known linkers require a '.a' archive for static linking (except MSVC,
8394# which needs '.lib').
8395libext=a
8396
8397with_gnu_ld=$lt_cv_prog_gnu_ld
8398
8399old_CC=$CC
8400old_CFLAGS=$CFLAGS
8401
8402# Set sane defaults for various variables
8403test -z "$CC" && CC=cc
8404test -z "$LTCC" && LTCC=$CC
8405test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8406test -z "$LD" && LD=ld
8407test -z "$ac_objext" && ac_objext=o
8408
8409func_cc_basename $compiler
8410cc_basename=$func_cc_basename_result
8411
8412
8413# Only perform the check for file, if the check method requires it
8414test -z "$MAGIC_CMD" && MAGIC_CMD=file
8415case $deplibs_check_method in
8416file_magic*)
8417  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8419$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8420if ${lt_cv_path_MAGIC_CMD+:} false; then :
8421  $as_echo_n "(cached) " >&6
8422else
8423  case $MAGIC_CMD in
8424[\\/*] |  ?:[\\/]*)
8425  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8426  ;;
8427*)
8428  lt_save_MAGIC_CMD=$MAGIC_CMD
8429  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8430  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8431  for ac_dir in $ac_dummy; do
8432    IFS=$lt_save_ifs
8433    test -z "$ac_dir" && ac_dir=.
8434    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8435      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8436      if test -n "$file_magic_test_file"; then
8437	case $deplibs_check_method in
8438	"file_magic "*)
8439	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8440	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8441	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442	    $EGREP "$file_magic_regex" > /dev/null; then
8443	    :
8444	  else
8445	    cat <<_LT_EOF 1>&2
8446
8447*** Warning: the command libtool uses to detect shared libraries,
8448*** $file_magic_cmd, produces output that libtool cannot recognize.
8449*** The result is that libtool may fail to recognize shared libraries
8450*** as such.  This will affect the creation of libtool libraries that
8451*** depend on shared libraries, but programs linked with such libtool
8452*** libraries will work regardless of this problem.  Nevertheless, you
8453*** may want to report the problem to your system manager and/or to
8454*** bug-libtool@gnu.org
8455
8456_LT_EOF
8457	  fi ;;
8458	esac
8459      fi
8460      break
8461    fi
8462  done
8463  IFS=$lt_save_ifs
8464  MAGIC_CMD=$lt_save_MAGIC_CMD
8465  ;;
8466esac
8467fi
8468
8469MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8470if test -n "$MAGIC_CMD"; then
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8472$as_echo "$MAGIC_CMD" >&6; }
8473else
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478
8479
8480
8481
8482if test -z "$lt_cv_path_MAGIC_CMD"; then
8483  if test -n "$ac_tool_prefix"; then
8484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8485$as_echo_n "checking for file... " >&6; }
8486if ${lt_cv_path_MAGIC_CMD+:} false; then :
8487  $as_echo_n "(cached) " >&6
8488else
8489  case $MAGIC_CMD in
8490[\\/*] |  ?:[\\/]*)
8491  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8492  ;;
8493*)
8494  lt_save_MAGIC_CMD=$MAGIC_CMD
8495  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8496  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8497  for ac_dir in $ac_dummy; do
8498    IFS=$lt_save_ifs
8499    test -z "$ac_dir" && ac_dir=.
8500    if test -f "$ac_dir/file"; then
8501      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8502      if test -n "$file_magic_test_file"; then
8503	case $deplibs_check_method in
8504	"file_magic "*)
8505	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8506	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8507	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8508	    $EGREP "$file_magic_regex" > /dev/null; then
8509	    :
8510	  else
8511	    cat <<_LT_EOF 1>&2
8512
8513*** Warning: the command libtool uses to detect shared libraries,
8514*** $file_magic_cmd, produces output that libtool cannot recognize.
8515*** The result is that libtool may fail to recognize shared libraries
8516*** as such.  This will affect the creation of libtool libraries that
8517*** depend on shared libraries, but programs linked with such libtool
8518*** libraries will work regardless of this problem.  Nevertheless, you
8519*** may want to report the problem to your system manager and/or to
8520*** bug-libtool@gnu.org
8521
8522_LT_EOF
8523	  fi ;;
8524	esac
8525      fi
8526      break
8527    fi
8528  done
8529  IFS=$lt_save_ifs
8530  MAGIC_CMD=$lt_save_MAGIC_CMD
8531  ;;
8532esac
8533fi
8534
8535MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8536if test -n "$MAGIC_CMD"; then
8537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8538$as_echo "$MAGIC_CMD" >&6; }
8539else
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543
8544
8545  else
8546    MAGIC_CMD=:
8547  fi
8548fi
8549
8550  fi
8551  ;;
8552esac
8553
8554# Use C for the default configuration in the libtool script
8555
8556lt_save_CC=$CC
8557ac_ext=c
8558ac_cpp='$CPP $CPPFLAGS'
8559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561ac_compiler_gnu=$ac_cv_c_compiler_gnu
8562
8563
8564# Source file extension for C test sources.
8565ac_ext=c
8566
8567# Object file extension for compiled C test sources.
8568objext=o
8569objext=$objext
8570
8571# Code to be used in simple compile tests
8572lt_simple_compile_test_code="int some_variable = 0;"
8573
8574# Code to be used in simple link tests
8575lt_simple_link_test_code='int main(){return(0);}'
8576
8577
8578
8579
8580
8581
8582
8583# If no C compiler was specified, use CC.
8584LTCC=${LTCC-"$CC"}
8585
8586# If no C compiler flags were specified, use CFLAGS.
8587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8588
8589# Allow CC to be a program name with arguments.
8590compiler=$CC
8591
8592# Save the default compiler, since it gets overwritten when the other
8593# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8594compiler_DEFAULT=$CC
8595
8596# save warnings/boilerplate of simple test code
8597ac_outfile=conftest.$ac_objext
8598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600_lt_compiler_boilerplate=`cat conftest.err`
8601$RM conftest*
8602
8603ac_outfile=conftest.$ac_objext
8604echo "$lt_simple_link_test_code" >conftest.$ac_ext
8605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606_lt_linker_boilerplate=`cat conftest.err`
8607$RM -r conftest*
8608
8609
8610if test -n "$compiler"; then
8611
8612lt_prog_compiler_no_builtin_flag=
8613
8614if test yes = "$GCC"; then
8615  case $cc_basename in
8616  nvcc*)
8617    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8618  *)
8619    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620  esac
8621
8622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8623$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8624if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  lt_cv_prog_compiler_rtti_exceptions=no
8628   ac_outfile=conftest.$ac_objext
8629   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8631   # Insert the option either (1) after the last *FLAGS variable, or
8632   # (2) before a word containing "conftest.", or (3) at the end.
8633   # Note that $ac_compile itself does not contain backslashes and begins
8634   # with a dollar sign (not a hyphen), so the echo should work correctly.
8635   # The option is referenced via a variable to avoid confusing sed.
8636   lt_compile=`echo "$ac_compile" | $SED \
8637   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639   -e 's:$: $lt_compiler_flag:'`
8640   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8641   (eval "$lt_compile" 2>conftest.err)
8642   ac_status=$?
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   if (exit $ac_status) && test -s "$ac_outfile"; then
8646     # The compiler can only warn and ignore the option if not recognized
8647     # So say no if there are warnings other than the usual output.
8648     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651       lt_cv_prog_compiler_rtti_exceptions=yes
8652     fi
8653   fi
8654   $RM conftest*
8655
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8659
8660if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8661    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8662else
8663    :
8664fi
8665
8666fi
8667
8668
8669
8670
8671
8672
8673  lt_prog_compiler_wl=
8674lt_prog_compiler_pic=
8675lt_prog_compiler_static=
8676
8677
8678  if test yes = "$GCC"; then
8679    lt_prog_compiler_wl='-Wl,'
8680    lt_prog_compiler_static='-static'
8681
8682    case $host_os in
8683      aix*)
8684      # All AIX code is PIC.
8685      if test ia64 = "$host_cpu"; then
8686	# AIX 5 now supports IA64 processor
8687	lt_prog_compiler_static='-Bstatic'
8688      fi
8689      lt_prog_compiler_pic='-fPIC'
8690      ;;
8691
8692    amigaos*)
8693      case $host_cpu in
8694      powerpc)
8695            # see comment about AmigaOS4 .so support
8696            lt_prog_compiler_pic='-fPIC'
8697        ;;
8698      m68k)
8699            # FIXME: we need at least 68020 code to build shared libraries, but
8700            # adding the '-m68020' flag to GCC prevents building anything better,
8701            # like '-m68040'.
8702            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8703        ;;
8704      esac
8705      ;;
8706
8707    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8708      # PIC is the default for these OSes.
8709      ;;
8710
8711    mingw* | cygwin* | pw32* | os2* | cegcc*)
8712      # This hack is so that the source file can tell whether it is being
8713      # built for inclusion in a dll (and should export symbols for example).
8714      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8715      # (--disable-auto-import) libraries
8716      lt_prog_compiler_pic='-DDLL_EXPORT'
8717      case $host_os in
8718      os2*)
8719	lt_prog_compiler_static='$wl-static'
8720	;;
8721      esac
8722      ;;
8723
8724    darwin* | rhapsody*)
8725      # PIC is the default on this platform
8726      # Common symbols not allowed in MH_DYLIB files
8727      lt_prog_compiler_pic='-fno-common'
8728      ;;
8729
8730    haiku*)
8731      # PIC is the default for Haiku.
8732      # The "-static" flag exists, but is broken.
8733      lt_prog_compiler_static=
8734      ;;
8735
8736    hpux*)
8737      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8738      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8739      # sets the default TLS model and affects inlining.
8740      case $host_cpu in
8741      hppa*64*)
8742	# +Z the default
8743	;;
8744      *)
8745	lt_prog_compiler_pic='-fPIC'
8746	;;
8747      esac
8748      ;;
8749
8750    interix[3-9]*)
8751      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8752      # Instead, we relocate shared libraries at runtime.
8753      ;;
8754
8755    msdosdjgpp*)
8756      # Just because we use GCC doesn't mean we suddenly get shared libraries
8757      # on systems that don't support them.
8758      lt_prog_compiler_can_build_shared=no
8759      enable_shared=no
8760      ;;
8761
8762    *nto* | *qnx*)
8763      # QNX uses GNU C++, but need to define -shared option too, otherwise
8764      # it will coredump.
8765      lt_prog_compiler_pic='-fPIC -shared'
8766      ;;
8767
8768    sysv4*MP*)
8769      if test -d /usr/nec; then
8770	lt_prog_compiler_pic=-Kconform_pic
8771      fi
8772      ;;
8773
8774    *)
8775      lt_prog_compiler_pic='-fPIC'
8776      ;;
8777    esac
8778
8779    case $cc_basename in
8780    nvcc*) # Cuda Compiler Driver 2.2
8781      lt_prog_compiler_wl='-Xlinker '
8782      if test -n "$lt_prog_compiler_pic"; then
8783        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8784      fi
8785      ;;
8786    esac
8787  else
8788    # PORTME Check for flag to pass linker flags through the system compiler.
8789    case $host_os in
8790    aix*)
8791      lt_prog_compiler_wl='-Wl,'
8792      if test ia64 = "$host_cpu"; then
8793	# AIX 5 now supports IA64 processor
8794	lt_prog_compiler_static='-Bstatic'
8795      else
8796	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8797      fi
8798      ;;
8799
8800    darwin* | rhapsody*)
8801      # PIC is the default on this platform
8802      # Common symbols not allowed in MH_DYLIB files
8803      lt_prog_compiler_pic='-fno-common'
8804      case $cc_basename in
8805      nagfor*)
8806        # NAG Fortran compiler
8807        lt_prog_compiler_wl='-Wl,-Wl,,'
8808        lt_prog_compiler_pic='-PIC'
8809        lt_prog_compiler_static='-Bstatic'
8810        ;;
8811      esac
8812      ;;
8813
8814    mingw* | cygwin* | pw32* | os2* | cegcc*)
8815      # This hack is so that the source file can tell whether it is being
8816      # built for inclusion in a dll (and should export symbols for example).
8817      lt_prog_compiler_pic='-DDLL_EXPORT'
8818      case $host_os in
8819      os2*)
8820	lt_prog_compiler_static='$wl-static'
8821	;;
8822      esac
8823      ;;
8824
8825    hpux9* | hpux10* | hpux11*)
8826      lt_prog_compiler_wl='-Wl,'
8827      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8828      # not for PA HP-UX.
8829      case $host_cpu in
8830      hppa*64*|ia64*)
8831	# +Z the default
8832	;;
8833      *)
8834	lt_prog_compiler_pic='+Z'
8835	;;
8836      esac
8837      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8838      lt_prog_compiler_static='$wl-a ${wl}archive'
8839      ;;
8840
8841    irix5* | irix6* | nonstopux*)
8842      lt_prog_compiler_wl='-Wl,'
8843      # PIC (with -KPIC) is the default.
8844      lt_prog_compiler_static='-non_shared'
8845      ;;
8846
8847    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8848      case $cc_basename in
8849      # old Intel for x86_64, which still supported -KPIC.
8850      ecc*)
8851	lt_prog_compiler_wl='-Wl,'
8852	lt_prog_compiler_pic='-KPIC'
8853	lt_prog_compiler_static='-static'
8854        ;;
8855      # icc used to be incompatible with GCC.
8856      # ICC 10 doesn't accept -KPIC any more.
8857      icc* | ifort*)
8858	lt_prog_compiler_wl='-Wl,'
8859	lt_prog_compiler_pic='-fPIC'
8860	lt_prog_compiler_static='-static'
8861        ;;
8862      # Lahey Fortran 8.1.
8863      lf95*)
8864	lt_prog_compiler_wl='-Wl,'
8865	lt_prog_compiler_pic='--shared'
8866	lt_prog_compiler_static='--static'
8867	;;
8868      nagfor*)
8869	# NAG Fortran compiler
8870	lt_prog_compiler_wl='-Wl,-Wl,,'
8871	lt_prog_compiler_pic='-PIC'
8872	lt_prog_compiler_static='-Bstatic'
8873	;;
8874      tcc*)
8875	# Fabrice Bellard et al's Tiny C Compiler
8876	lt_prog_compiler_wl='-Wl,'
8877	lt_prog_compiler_pic='-fPIC'
8878	lt_prog_compiler_static='-static'
8879	;;
8880      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8881        # Portland Group compilers (*not* the Pentium gcc compiler,
8882	# which looks to be a dead project)
8883	lt_prog_compiler_wl='-Wl,'
8884	lt_prog_compiler_pic='-fpic'
8885	lt_prog_compiler_static='-Bstatic'
8886        ;;
8887      ccc*)
8888        lt_prog_compiler_wl='-Wl,'
8889        # All Alpha code is PIC.
8890        lt_prog_compiler_static='-non_shared'
8891        ;;
8892      xl* | bgxl* | bgf* | mpixl*)
8893	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8894	lt_prog_compiler_wl='-Wl,'
8895	lt_prog_compiler_pic='-qpic'
8896	lt_prog_compiler_static='-qstaticlink'
8897	;;
8898      *)
8899	case `$CC -V 2>&1 | sed 5q` in
8900	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8901	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8902	  lt_prog_compiler_pic='-KPIC'
8903	  lt_prog_compiler_static='-Bstatic'
8904	  lt_prog_compiler_wl=''
8905	  ;;
8906	*Sun\ F* | *Sun*Fortran*)
8907	  lt_prog_compiler_pic='-KPIC'
8908	  lt_prog_compiler_static='-Bstatic'
8909	  lt_prog_compiler_wl='-Qoption ld '
8910	  ;;
8911	*Sun\ C*)
8912	  # Sun C 5.9
8913	  lt_prog_compiler_pic='-KPIC'
8914	  lt_prog_compiler_static='-Bstatic'
8915	  lt_prog_compiler_wl='-Wl,'
8916	  ;;
8917        *Intel*\ [CF]*Compiler*)
8918	  lt_prog_compiler_wl='-Wl,'
8919	  lt_prog_compiler_pic='-fPIC'
8920	  lt_prog_compiler_static='-static'
8921	  ;;
8922	*Portland\ Group*)
8923	  lt_prog_compiler_wl='-Wl,'
8924	  lt_prog_compiler_pic='-fpic'
8925	  lt_prog_compiler_static='-Bstatic'
8926	  ;;
8927	esac
8928	;;
8929      esac
8930      ;;
8931
8932    newsos6)
8933      lt_prog_compiler_pic='-KPIC'
8934      lt_prog_compiler_static='-Bstatic'
8935      ;;
8936
8937    *nto* | *qnx*)
8938      # QNX uses GNU C++, but need to define -shared option too, otherwise
8939      # it will coredump.
8940      lt_prog_compiler_pic='-fPIC -shared'
8941      ;;
8942
8943    osf3* | osf4* | osf5*)
8944      lt_prog_compiler_wl='-Wl,'
8945      # All OSF/1 code is PIC.
8946      lt_prog_compiler_static='-non_shared'
8947      ;;
8948
8949    rdos*)
8950      lt_prog_compiler_static='-non_shared'
8951      ;;
8952
8953    solaris*)
8954      lt_prog_compiler_pic='-KPIC'
8955      lt_prog_compiler_static='-Bstatic'
8956      case $cc_basename in
8957      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8958	lt_prog_compiler_wl='-Qoption ld ';;
8959      *)
8960	lt_prog_compiler_wl='-Wl,';;
8961      esac
8962      ;;
8963
8964    sunos4*)
8965      lt_prog_compiler_wl='-Qoption ld '
8966      lt_prog_compiler_pic='-PIC'
8967      lt_prog_compiler_static='-Bstatic'
8968      ;;
8969
8970    sysv4 | sysv4.2uw2* | sysv4.3*)
8971      lt_prog_compiler_wl='-Wl,'
8972      lt_prog_compiler_pic='-KPIC'
8973      lt_prog_compiler_static='-Bstatic'
8974      ;;
8975
8976    sysv4*MP*)
8977      if test -d /usr/nec; then
8978	lt_prog_compiler_pic='-Kconform_pic'
8979	lt_prog_compiler_static='-Bstatic'
8980      fi
8981      ;;
8982
8983    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8984      lt_prog_compiler_wl='-Wl,'
8985      lt_prog_compiler_pic='-KPIC'
8986      lt_prog_compiler_static='-Bstatic'
8987      ;;
8988
8989    unicos*)
8990      lt_prog_compiler_wl='-Wl,'
8991      lt_prog_compiler_can_build_shared=no
8992      ;;
8993
8994    uts4*)
8995      lt_prog_compiler_pic='-pic'
8996      lt_prog_compiler_static='-Bstatic'
8997      ;;
8998
8999    *)
9000      lt_prog_compiler_can_build_shared=no
9001      ;;
9002    esac
9003  fi
9004
9005case $host_os in
9006  # For platforms that do not support PIC, -DPIC is meaningless:
9007  *djgpp*)
9008    lt_prog_compiler_pic=
9009    ;;
9010  *)
9011    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9012    ;;
9013esac
9014
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9016$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9017if ${lt_cv_prog_compiler_pic+:} false; then :
9018  $as_echo_n "(cached) " >&6
9019else
9020  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9021fi
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9023$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9024lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9025
9026#
9027# Check to make sure the PIC flag actually works.
9028#
9029if test -n "$lt_prog_compiler_pic"; then
9030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9031$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9032if ${lt_cv_prog_compiler_pic_works+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  lt_cv_prog_compiler_pic_works=no
9036   ac_outfile=conftest.$ac_objext
9037   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9039   # Insert the option either (1) after the last *FLAGS variable, or
9040   # (2) before a word containing "conftest.", or (3) at the end.
9041   # Note that $ac_compile itself does not contain backslashes and begins
9042   # with a dollar sign (not a hyphen), so the echo should work correctly.
9043   # The option is referenced via a variable to avoid confusing sed.
9044   lt_compile=`echo "$ac_compile" | $SED \
9045   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047   -e 's:$: $lt_compiler_flag:'`
9048   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9049   (eval "$lt_compile" 2>conftest.err)
9050   ac_status=$?
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   if (exit $ac_status) && test -s "$ac_outfile"; then
9054     # The compiler can only warn and ignore the option if not recognized
9055     # So say no if there are warnings other than the usual output.
9056     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9057     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9059       lt_cv_prog_compiler_pic_works=yes
9060     fi
9061   fi
9062   $RM conftest*
9063
9064fi
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9066$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9067
9068if test yes = "$lt_cv_prog_compiler_pic_works"; then
9069    case $lt_prog_compiler_pic in
9070     "" | " "*) ;;
9071     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9072     esac
9073else
9074    lt_prog_compiler_pic=
9075     lt_prog_compiler_can_build_shared=no
9076fi
9077
9078fi
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090#
9091# Check to make sure the static flag actually works.
9092#
9093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9096if ${lt_cv_prog_compiler_static_works+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  lt_cv_prog_compiler_static_works=no
9100   save_LDFLAGS=$LDFLAGS
9101   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9102   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9103   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9104     # The linker can only warn and ignore the option if not recognized
9105     # So say no if there are warnings
9106     if test -s conftest.err; then
9107       # Append any errors to the config.log.
9108       cat conftest.err 1>&5
9109       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9110       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111       if diff conftest.exp conftest.er2 >/dev/null; then
9112         lt_cv_prog_compiler_static_works=yes
9113       fi
9114     else
9115       lt_cv_prog_compiler_static_works=yes
9116     fi
9117   fi
9118   $RM -r conftest*
9119   LDFLAGS=$save_LDFLAGS
9120
9121fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9123$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9124
9125if test yes = "$lt_cv_prog_compiler_static_works"; then
9126    :
9127else
9128    lt_prog_compiler_static=
9129fi
9130
9131
9132
9133
9134
9135
9136
9137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139if ${lt_cv_prog_compiler_c_o+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  lt_cv_prog_compiler_c_o=no
9143   $RM -r conftest 2>/dev/null
9144   mkdir conftest
9145   cd conftest
9146   mkdir out
9147   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148
9149   lt_compiler_flag="-o out/conftest2.$ac_objext"
9150   # Insert the option either (1) after the last *FLAGS variable, or
9151   # (2) before a word containing "conftest.", or (3) at the end.
9152   # Note that $ac_compile itself does not contain backslashes and begins
9153   # with a dollar sign (not a hyphen), so the echo should work correctly.
9154   lt_compile=`echo "$ac_compile" | $SED \
9155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157   -e 's:$: $lt_compiler_flag:'`
9158   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159   (eval "$lt_compile" 2>out/conftest.err)
9160   ac_status=$?
9161   cat out/conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164   then
9165     # The compiler can only warn and ignore the option if not recognized
9166     # So say no if there are warnings
9167     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9168     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170       lt_cv_prog_compiler_c_o=yes
9171     fi
9172   fi
9173   chmod u+w . 2>&5
9174   $RM conftest*
9175   # SGI C++ compiler will create directory out/ii_files/ for
9176   # template instantiation
9177   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178   $RM out/* && rmdir out
9179   cd ..
9180   $RM -r conftest
9181   $RM conftest*
9182
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9186
9187
9188
9189
9190
9191
9192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9194if ${lt_cv_prog_compiler_c_o+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197  lt_cv_prog_compiler_c_o=no
9198   $RM -r conftest 2>/dev/null
9199   mkdir conftest
9200   cd conftest
9201   mkdir out
9202   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9203
9204   lt_compiler_flag="-o out/conftest2.$ac_objext"
9205   # Insert the option either (1) after the last *FLAGS variable, or
9206   # (2) before a word containing "conftest.", or (3) at the end.
9207   # Note that $ac_compile itself does not contain backslashes and begins
9208   # with a dollar sign (not a hyphen), so the echo should work correctly.
9209   lt_compile=`echo "$ac_compile" | $SED \
9210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212   -e 's:$: $lt_compiler_flag:'`
9213   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9214   (eval "$lt_compile" 2>out/conftest.err)
9215   ac_status=$?
9216   cat out/conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9219   then
9220     # The compiler can only warn and ignore the option if not recognized
9221     # So say no if there are warnings
9222     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9223     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9224     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9225       lt_cv_prog_compiler_c_o=yes
9226     fi
9227   fi
9228   chmod u+w . 2>&5
9229   $RM conftest*
9230   # SGI C++ compiler will create directory out/ii_files/ for
9231   # template instantiation
9232   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9233   $RM out/* && rmdir out
9234   cd ..
9235   $RM -r conftest
9236   $RM conftest*
9237
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9240$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9241
9242
9243
9244
9245hard_links=nottested
9246if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9247  # do not overwrite the value of need_locks provided by the user
9248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9249$as_echo_n "checking if we can lock with hard links... " >&6; }
9250  hard_links=yes
9251  $RM conftest*
9252  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9253  touch conftest.a
9254  ln conftest.a conftest.b 2>&5 || hard_links=no
9255  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9257$as_echo "$hard_links" >&6; }
9258  if test no = "$hard_links"; then
9259    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9260$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9261    need_locks=warn
9262  fi
9263else
9264  need_locks=no
9265fi
9266
9267
9268
9269
9270
9271
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9274
9275  runpath_var=
9276  allow_undefined_flag=
9277  always_export_symbols=no
9278  archive_cmds=
9279  archive_expsym_cmds=
9280  compiler_needs_object=no
9281  enable_shared_with_static_runtimes=no
9282  export_dynamic_flag_spec=
9283  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9284  hardcode_automatic=no
9285  hardcode_direct=no
9286  hardcode_direct_absolute=no
9287  hardcode_libdir_flag_spec=
9288  hardcode_libdir_separator=
9289  hardcode_minus_L=no
9290  hardcode_shlibpath_var=unsupported
9291  inherit_rpath=no
9292  link_all_deplibs=unknown
9293  module_cmds=
9294  module_expsym_cmds=
9295  old_archive_from_new_cmds=
9296  old_archive_from_expsyms_cmds=
9297  thread_safe_flag_spec=
9298  whole_archive_flag_spec=
9299  # include_expsyms should be a list of space-separated symbols to be *always*
9300  # included in the symbol list
9301  include_expsyms=
9302  # exclude_expsyms can be an extended regexp of symbols to exclude
9303  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9304  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9305  # as well as any symbol that contains 'd'.
9306  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9307  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9308  # platforms (ab)use it in PIC code, but their linkers get confused if
9309  # the symbol is explicitly referenced.  Since portable code cannot
9310  # rely on this symbol name, it's probably fine to never include it in
9311  # preloaded symbol tables.
9312  # Exclude shared library initialization/finalization symbols.
9313  extract_expsyms_cmds=
9314
9315  case $host_os in
9316  cygwin* | mingw* | pw32* | cegcc*)
9317    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9318    # When not using gcc, we currently assume that we are using
9319    # Microsoft Visual C++.
9320    if test yes != "$GCC"; then
9321      with_gnu_ld=no
9322    fi
9323    ;;
9324  interix*)
9325    # we just hope/assume this is gcc and not c89 (= MSVC++)
9326    with_gnu_ld=yes
9327    ;;
9328  openbsd* | bitrig*)
9329    with_gnu_ld=no
9330    ;;
9331  esac
9332
9333  ld_shlibs=yes
9334
9335  # On some targets, GNU ld is compatible enough with the native linker
9336  # that we're better off using the native interface for both.
9337  lt_use_gnu_ld_interface=no
9338  if test yes = "$with_gnu_ld"; then
9339    case $host_os in
9340      aix*)
9341	# The AIX port of GNU ld has always aspired to compatibility
9342	# with the native linker.  However, as the warning in the GNU ld
9343	# block says, versions before 2.19.5* couldn't really create working
9344	# shared libraries, regardless of the interface used.
9345	case `$LD -v 2>&1` in
9346	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9347	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9348	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9349	  *)
9350	    lt_use_gnu_ld_interface=yes
9351	    ;;
9352	esac
9353	;;
9354      *)
9355	lt_use_gnu_ld_interface=yes
9356	;;
9357    esac
9358  fi
9359
9360  if test yes = "$lt_use_gnu_ld_interface"; then
9361    # If archive_cmds runs LD, not CC, wlarc should be empty
9362    wlarc='$wl'
9363
9364    # Set some defaults for GNU ld with shared library support. These
9365    # are reset later if shared libraries are not supported. Putting them
9366    # here allows them to be overridden if necessary.
9367    runpath_var=LD_RUN_PATH
9368    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9369    export_dynamic_flag_spec='$wl--export-dynamic'
9370    # ancient GNU ld didn't support --whole-archive et. al.
9371    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9372      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9373    else
9374      whole_archive_flag_spec=
9375    fi
9376    supports_anon_versioning=no
9377    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9378      *GNU\ gold*) supports_anon_versioning=yes ;;
9379      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9380      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9381      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9382      *\ 2.11.*) ;; # other 2.11 versions
9383      *) supports_anon_versioning=yes ;;
9384    esac
9385
9386    # See if GNU ld supports shared libraries.
9387    case $host_os in
9388    aix[3-9]*)
9389      # On AIX/PPC, the GNU linker is very broken
9390      if test ia64 != "$host_cpu"; then
9391	ld_shlibs=no
9392	cat <<_LT_EOF 1>&2
9393
9394*** Warning: the GNU linker, at least up to release 2.19, is reported
9395*** to be unable to reliably create shared libraries on AIX.
9396*** Therefore, libtool is disabling shared libraries support.  If you
9397*** really care for shared libraries, you may want to install binutils
9398*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9399*** You will then need to restart the configuration process.
9400
9401_LT_EOF
9402      fi
9403      ;;
9404
9405    amigaos*)
9406      case $host_cpu in
9407      powerpc)
9408            # see comment about AmigaOS4 .so support
9409            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9410            archive_expsym_cmds=''
9411        ;;
9412      m68k)
9413            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)'
9414            hardcode_libdir_flag_spec='-L$libdir'
9415            hardcode_minus_L=yes
9416        ;;
9417      esac
9418      ;;
9419
9420    beos*)
9421      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9422	allow_undefined_flag=unsupported
9423	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9424	# support --undefined.  This deserves some investigation.  FIXME
9425	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9426      else
9427	ld_shlibs=no
9428      fi
9429      ;;
9430
9431    cygwin* | mingw* | pw32* | cegcc*)
9432      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9433      # as there is no search path for DLLs.
9434      hardcode_libdir_flag_spec='-L$libdir'
9435      export_dynamic_flag_spec='$wl--export-all-symbols'
9436      allow_undefined_flag=unsupported
9437      always_export_symbols=no
9438      enable_shared_with_static_runtimes=yes
9439      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'
9440      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9441
9442      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9443        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9444	# If the export-symbols file already is a .def file, use it as
9445	# is; otherwise, prepend EXPORTS...
9446	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9447          cp $export_symbols $output_objdir/$soname.def;
9448        else
9449          echo EXPORTS > $output_objdir/$soname.def;
9450          cat $export_symbols >> $output_objdir/$soname.def;
9451        fi~
9452        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9453      else
9454	ld_shlibs=no
9455      fi
9456      ;;
9457
9458    haiku*)
9459      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9460      link_all_deplibs=yes
9461      ;;
9462
9463    os2*)
9464      hardcode_libdir_flag_spec='-L$libdir'
9465      hardcode_minus_L=yes
9466      allow_undefined_flag=unsupported
9467      shrext_cmds=.dll
9468      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9469	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9470	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9471	$ECHO EXPORTS >> $output_objdir/$libname.def~
9472	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9473	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9474	emximp -o $lib $output_objdir/$libname.def'
9475      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9476	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9477	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9478	$ECHO EXPORTS >> $output_objdir/$libname.def~
9479	prefix_cmds="$SED"~
9480	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9481	  prefix_cmds="$prefix_cmds -e 1d";
9482	fi~
9483	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9484	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9485	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9486	emximp -o $lib $output_objdir/$libname.def'
9487      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9488      enable_shared_with_static_runtimes=yes
9489      ;;
9490
9491    interix[3-9]*)
9492      hardcode_direct=no
9493      hardcode_shlibpath_var=no
9494      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9495      export_dynamic_flag_spec='$wl-E'
9496      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9497      # Instead, shared libraries are loaded at an image base (0x10000000 by
9498      # default) and relocated if they conflict, which is a slow very memory
9499      # consuming and fragmenting process.  To avoid this, we pick a random,
9500      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9501      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9502      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9503      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'
9504      ;;
9505
9506    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9507      tmp_diet=no
9508      if test linux-dietlibc = "$host_os"; then
9509	case $cc_basename in
9510	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9511	esac
9512      fi
9513      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9514	 && test no = "$tmp_diet"
9515      then
9516	tmp_addflag=' $pic_flag'
9517	tmp_sharedflag='-shared'
9518	case $cc_basename,$host_cpu in
9519        pgcc*)				# Portland Group C compiler
9520	  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'
9521	  tmp_addflag=' $pic_flag'
9522	  ;;
9523	pgf77* | pgf90* | pgf95* | pgfortran*)
9524					# Portland Group f77 and f90 compilers
9525	  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'
9526	  tmp_addflag=' $pic_flag -Mnomain' ;;
9527	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9528	  tmp_addflag=' -i_dynamic' ;;
9529	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9530	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9531	ifc* | ifort*)			# Intel Fortran compiler
9532	  tmp_addflag=' -nofor_main' ;;
9533	lf95*)				# Lahey Fortran 8.1
9534	  whole_archive_flag_spec=
9535	  tmp_sharedflag='--shared' ;;
9536        nagfor*)                        # NAGFOR 5.3
9537          tmp_sharedflag='-Wl,-shared' ;;
9538	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9539	  tmp_sharedflag='-qmkshrobj'
9540	  tmp_addflag= ;;
9541	nvcc*)	# Cuda Compiler Driver 2.2
9542	  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'
9543	  compiler_needs_object=yes
9544	  ;;
9545	esac
9546	case `$CC -V 2>&1 | sed 5q` in
9547	*Sun\ C*)			# Sun C 5.9
9548	  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'
9549	  compiler_needs_object=yes
9550	  tmp_sharedflag='-G' ;;
9551	*Sun\ F*)			# Sun Fortran 8.3
9552	  tmp_sharedflag='-G' ;;
9553	esac
9554	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555
9556        if test yes = "$supports_anon_versioning"; then
9557          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9558            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9559            echo "local: *; };" >> $output_objdir/$libname.ver~
9560            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9561        fi
9562
9563	case $cc_basename in
9564	tcc*)
9565	  export_dynamic_flag_spec='-rdynamic'
9566	  ;;
9567	xlf* | bgf* | bgxlf* | mpixlf*)
9568	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9569	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9570	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9571	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9572	  if test yes = "$supports_anon_versioning"; then
9573	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9574              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9575              echo "local: *; };" >> $output_objdir/$libname.ver~
9576              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9577	  fi
9578	  ;;
9579	esac
9580      else
9581        ld_shlibs=no
9582      fi
9583      ;;
9584
9585    netbsd*)
9586      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9587	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9588	wlarc=
9589      else
9590	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9591	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9592      fi
9593      ;;
9594
9595    solaris*)
9596      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9597	ld_shlibs=no
9598	cat <<_LT_EOF 1>&2
9599
9600*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9601*** create shared libraries on Solaris systems.  Therefore, libtool
9602*** is disabling shared libraries support.  We urge you to upgrade GNU
9603*** binutils to release 2.9.1 or newer.  Another option is to modify
9604*** your PATH or compiler configuration so that the native linker is
9605*** used, and then restart.
9606
9607_LT_EOF
9608      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9609	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9610	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9611      else
9612	ld_shlibs=no
9613      fi
9614      ;;
9615
9616    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9617      case `$LD -v 2>&1` in
9618        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9619	ld_shlibs=no
9620	cat <<_LT_EOF 1>&2
9621
9622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9623*** reliably create shared libraries on SCO systems.  Therefore, libtool
9624*** is disabling shared libraries support.  We urge you to upgrade GNU
9625*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9626*** your PATH or compiler configuration so that the native linker is
9627*** used, and then restart.
9628
9629_LT_EOF
9630	;;
9631	*)
9632	  # For security reasons, it is highly recommended that you always
9633	  # use absolute paths for naming shared libraries, and exclude the
9634	  # DT_RUNPATH tag from executables and libraries.  But doing so
9635	  # requires that you compile everything twice, which is a pain.
9636	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9638	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9639	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9640	  else
9641	    ld_shlibs=no
9642	  fi
9643	;;
9644      esac
9645      ;;
9646
9647    sunos4*)
9648      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9649      wlarc=
9650      hardcode_direct=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    *)
9655      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9656	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9657	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9658      else
9659	ld_shlibs=no
9660      fi
9661      ;;
9662    esac
9663
9664    if test no = "$ld_shlibs"; then
9665      runpath_var=
9666      hardcode_libdir_flag_spec=
9667      export_dynamic_flag_spec=
9668      whole_archive_flag_spec=
9669    fi
9670  else
9671    # PORTME fill in a description of your system's linker (not GNU ld)
9672    case $host_os in
9673    aix3*)
9674      allow_undefined_flag=unsupported
9675      always_export_symbols=yes
9676      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'
9677      # Note: this linker hardcodes the directories in LIBPATH if there
9678      # are no directories specified by -L.
9679      hardcode_minus_L=yes
9680      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9681	# Neither direct hardcoding nor static linking is supported with a
9682	# broken collect2.
9683	hardcode_direct=unsupported
9684      fi
9685      ;;
9686
9687    aix[4-9]*)
9688      if test ia64 = "$host_cpu"; then
9689	# On IA64, the linker does run time linking by default, so we don't
9690	# have to do anything special.
9691	aix_use_runtimelinking=no
9692	exp_sym_flag='-Bexport'
9693	no_entry_flag=
9694      else
9695	# If we're using GNU nm, then we don't want the "-C" option.
9696	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9697	# Without the "-l" option, or with the "-B" option, AIX nm treats
9698	# weak defined symbols like other global defined symbols, whereas
9699	# GNU nm marks them as "W".
9700	# While the 'weak' keyword is ignored in the Export File, we need
9701	# it in the Import File for the 'aix-soname' feature, so we have
9702	# to replace the "-B" option with "-P" for AIX nm.
9703	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9704	  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'
9705	else
9706	  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 == "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'
9707	fi
9708	aix_use_runtimelinking=no
9709
9710	# Test if we are trying to use run time linking or normal
9711	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9712	# have runtime linking enabled, and use it for executables.
9713	# For shared libraries, we enable/disable runtime linking
9714	# depending on the kind of the shared library created -
9715	# when "with_aix_soname,aix_use_runtimelinking" is:
9716	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9717	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9718	#            lib.a           static archive
9719	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9720	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9721	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9722	#            lib.a(lib.so.V) shared, rtl:no
9723	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9724	#            lib.a           static archive
9725	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9726	  for ld_flag in $LDFLAGS; do
9727	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9728	    aix_use_runtimelinking=yes
9729	    break
9730	  fi
9731	  done
9732	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9733	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9734	    # so we don't have lib.a shared libs to link our executables.
9735	    # We have to force runtime linking in this case.
9736	    aix_use_runtimelinking=yes
9737	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9738	  fi
9739	  ;;
9740	esac
9741
9742	exp_sym_flag='-bexport'
9743	no_entry_flag='-bnoentry'
9744      fi
9745
9746      # When large executables or shared objects are built, AIX ld can
9747      # have problems creating the table of contents.  If linking a library
9748      # or program results in "error TOC overflow" add -mminimal-toc to
9749      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9750      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9751
9752      archive_cmds=''
9753      hardcode_direct=yes
9754      hardcode_direct_absolute=yes
9755      hardcode_libdir_separator=':'
9756      link_all_deplibs=yes
9757      file_list_spec='$wl-f,'
9758      case $with_aix_soname,$aix_use_runtimelinking in
9759      aix,*) ;; # traditional, no import file
9760      svr4,* | *,yes) # use import file
9761	# The Import File defines what to hardcode.
9762	hardcode_direct=no
9763	hardcode_direct_absolute=no
9764	;;
9765      esac
9766
9767      if test yes = "$GCC"; then
9768	case $host_os in aix4.[012]|aix4.[012].*)
9769	# We only want to do this on AIX 4.2 and lower, the check
9770	# below for broken collect2 doesn't work under 4.3+
9771	  collect2name=`$CC -print-prog-name=collect2`
9772	  if test -f "$collect2name" &&
9773	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9774	  then
9775	  # We have reworked collect2
9776	  :
9777	  else
9778	  # We have old collect2
9779	  hardcode_direct=unsupported
9780	  # It fails to find uninstalled libraries when the uninstalled
9781	  # path is not listed in the libpath.  Setting hardcode_minus_L
9782	  # to unsupported forces relinking
9783	  hardcode_minus_L=yes
9784	  hardcode_libdir_flag_spec='-L$libdir'
9785	  hardcode_libdir_separator=
9786	  fi
9787	  ;;
9788	esac
9789	shared_flag='-shared'
9790	if test yes = "$aix_use_runtimelinking"; then
9791	  shared_flag="$shared_flag "'$wl-G'
9792	fi
9793	# Need to ensure runtime linking is disabled for the traditional
9794	# shared library, or the linker may eventually find shared libraries
9795	# /with/ Import File - we do not want to mix them.
9796	shared_flag_aix='-shared'
9797	shared_flag_svr4='-shared $wl-G'
9798      else
9799	# not using gcc
9800	if test ia64 = "$host_cpu"; then
9801	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9802	# chokes on -Wl,-G. The following line is correct:
9803	  shared_flag='-G'
9804	else
9805	  if test yes = "$aix_use_runtimelinking"; then
9806	    shared_flag='$wl-G'
9807	  else
9808	    shared_flag='$wl-bM:SRE'
9809	  fi
9810	  shared_flag_aix='$wl-bM:SRE'
9811	  shared_flag_svr4='$wl-G'
9812	fi
9813      fi
9814
9815      export_dynamic_flag_spec='$wl-bexpall'
9816      # It seems that -bexpall does not export symbols beginning with
9817      # underscore (_), so it is better to generate a list of symbols to export.
9818      always_export_symbols=yes
9819      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9820	# Warning - without using the other runtime loading flags (-brtl),
9821	# -berok will link without error, but may produce a broken library.
9822	allow_undefined_flag='-berok'
9823        # Determine the default libpath from the value encoded in an
9824        # empty executable.
9825        if test set = "${lt_cv_aix_libpath+set}"; then
9826  aix_libpath=$lt_cv_aix_libpath
9827else
9828  if ${lt_cv_aix_libpath_+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833
9834int
9835main ()
9836{
9837
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
9843
9844  lt_aix_libpath_sed='
9845      /Import File Strings/,/^$/ {
9846	  /^0/ {
9847	      s/^0  *\([^ ]*\) *$/\1/
9848	      p
9849	  }
9850      }'
9851  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852  # Check for a 64-bit object if we didn't find anything.
9853  if test -z "$lt_cv_aix_libpath_"; then
9854    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855  fi
9856fi
9857rm -f core conftest.err conftest.$ac_objext \
9858    conftest$ac_exeext conftest.$ac_ext
9859  if test -z "$lt_cv_aix_libpath_"; then
9860    lt_cv_aix_libpath_=/usr/lib:/lib
9861  fi
9862
9863fi
9864
9865  aix_libpath=$lt_cv_aix_libpath_
9866fi
9867
9868        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9869        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
9870      else
9871	if test ia64 = "$host_cpu"; then
9872	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9873	  allow_undefined_flag="-z nodefs"
9874	  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"
9875	else
9876	 # Determine the default libpath from the value encoded in an
9877	 # empty executable.
9878	 if test set = "${lt_cv_aix_libpath+set}"; then
9879  aix_libpath=$lt_cv_aix_libpath
9880else
9881  if ${lt_cv_aix_libpath_+:} false; then :
9882  $as_echo_n "(cached) " >&6
9883else
9884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h.  */
9886
9887int
9888main ()
9889{
9890
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"; then :
9896
9897  lt_aix_libpath_sed='
9898      /Import File Strings/,/^$/ {
9899	  /^0/ {
9900	      s/^0  *\([^ ]*\) *$/\1/
9901	      p
9902	  }
9903      }'
9904  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905  # Check for a 64-bit object if we didn't find anything.
9906  if test -z "$lt_cv_aix_libpath_"; then
9907    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908  fi
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911    conftest$ac_exeext conftest.$ac_ext
9912  if test -z "$lt_cv_aix_libpath_"; then
9913    lt_cv_aix_libpath_=/usr/lib:/lib
9914  fi
9915
9916fi
9917
9918  aix_libpath=$lt_cv_aix_libpath_
9919fi
9920
9921	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9922	  # Warning - without using the other run time loading flags,
9923	  # -berok will link without error, but may produce a broken library.
9924	  no_undefined_flag=' $wl-bernotok'
9925	  allow_undefined_flag=' $wl-berok'
9926	  if test yes = "$with_gnu_ld"; then
9927	    # We only use this code for GNU lds that support --whole-archive.
9928	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9929	  else
9930	    # Exported symbols can be pulled into shared objects from archives
9931	    whole_archive_flag_spec='$convenience'
9932	  fi
9933	  archive_cmds_need_lc=yes
9934	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9935	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9936	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9937	  if test svr4 != "$with_aix_soname"; then
9938	    # This is similar to how AIX traditionally builds its shared libraries.
9939	    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'
9940	  fi
9941	  if test aix != "$with_aix_soname"; then
9942	    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'
9943	  else
9944	    # used by -dlpreopen to get the symbols
9945	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9946	  fi
9947	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9948	fi
9949      fi
9950      ;;
9951
9952    amigaos*)
9953      case $host_cpu in
9954      powerpc)
9955            # see comment about AmigaOS4 .so support
9956            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9957            archive_expsym_cmds=''
9958        ;;
9959      m68k)
9960            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)'
9961            hardcode_libdir_flag_spec='-L$libdir'
9962            hardcode_minus_L=yes
9963        ;;
9964      esac
9965      ;;
9966
9967    bsdi[45]*)
9968      export_dynamic_flag_spec=-rdynamic
9969      ;;
9970
9971    cygwin* | mingw* | pw32* | cegcc*)
9972      # When not using gcc, we currently assume that we are using
9973      # Microsoft Visual C++.
9974      # hardcode_libdir_flag_spec is actually meaningless, as there is
9975      # no search path for DLLs.
9976      case $cc_basename in
9977      cl*)
9978	# Native MSVC
9979	hardcode_libdir_flag_spec=' '
9980	allow_undefined_flag=unsupported
9981	always_export_symbols=yes
9982	file_list_spec='@'
9983	# Tell ltmain to make .lib files, not .a files.
9984	libext=lib
9985	# Tell ltmain to make .dll files, not .so files.
9986	shrext_cmds=.dll
9987	# FIXME: Setting linknames here is a bad hack.
9988	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9989	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9990            cp "$export_symbols" "$output_objdir/$soname.def";
9991            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9992          else
9993            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9994          fi~
9995          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9996          linknames='
9997	# The linker will not automatically build a static lib if we build a DLL.
9998	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9999	enable_shared_with_static_runtimes=yes
10000	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10001	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10002	# Don't use ranlib
10003	old_postinstall_cmds='chmod 644 $oldlib'
10004	postlink_cmds='lt_outputfile="@OUTPUT@"~
10005          lt_tool_outputfile="@TOOL_OUTPUT@"~
10006          case $lt_outputfile in
10007            *.exe|*.EXE) ;;
10008            *)
10009              lt_outputfile=$lt_outputfile.exe
10010              lt_tool_outputfile=$lt_tool_outputfile.exe
10011              ;;
10012          esac~
10013          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10014            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10015            $RM "$lt_outputfile.manifest";
10016          fi'
10017	;;
10018      *)
10019	# Assume MSVC wrapper
10020	hardcode_libdir_flag_spec=' '
10021	allow_undefined_flag=unsupported
10022	# Tell ltmain to make .lib files, not .a files.
10023	libext=lib
10024	# Tell ltmain to make .dll files, not .so files.
10025	shrext_cmds=.dll
10026	# FIXME: Setting linknames here is a bad hack.
10027	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10028	# The linker will automatically build a .lib file if we build a DLL.
10029	old_archive_from_new_cmds='true'
10030	# FIXME: Should let the user specify the lib program.
10031	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10032	enable_shared_with_static_runtimes=yes
10033	;;
10034      esac
10035      ;;
10036
10037    darwin* | rhapsody*)
10038
10039
10040  archive_cmds_need_lc=no
10041  hardcode_direct=no
10042  hardcode_automatic=yes
10043  hardcode_shlibpath_var=unsupported
10044  if test yes = "$lt_cv_ld_force_load"; then
10045    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\"`'
10046
10047  else
10048    whole_archive_flag_spec=''
10049  fi
10050  link_all_deplibs=yes
10051  allow_undefined_flag=$_lt_dar_allow_undefined
10052  case $cc_basename in
10053     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10054     *) _lt_dar_can_shared=$GCC ;;
10055  esac
10056  if test yes = "$_lt_dar_can_shared"; then
10057    output_verbose_link_cmd=func_echo_all
10058    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10059    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10060    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"
10061    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"
10062
10063  else
10064  ld_shlibs=no
10065  fi
10066
10067      ;;
10068
10069    dgux*)
10070      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071      hardcode_libdir_flag_spec='-L$libdir'
10072      hardcode_shlibpath_var=no
10073      ;;
10074
10075    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10076    # support.  Future versions do this automatically, but an explicit c++rt0.o
10077    # does not break anything, and helps significantly (at the cost of a little
10078    # extra space).
10079    freebsd2.2*)
10080      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10081      hardcode_libdir_flag_spec='-R$libdir'
10082      hardcode_direct=yes
10083      hardcode_shlibpath_var=no
10084      ;;
10085
10086    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10087    freebsd2.*)
10088      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089      hardcode_direct=yes
10090      hardcode_minus_L=yes
10091      hardcode_shlibpath_var=no
10092      ;;
10093
10094    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10095    freebsd* | dragonfly*)
10096      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10097      hardcode_libdir_flag_spec='-R$libdir'
10098      hardcode_direct=yes
10099      hardcode_shlibpath_var=no
10100      ;;
10101
10102    hpux9*)
10103      if test yes = "$GCC"; then
10104	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'
10105      else
10106	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'
10107      fi
10108      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10109      hardcode_libdir_separator=:
10110      hardcode_direct=yes
10111
10112      # hardcode_minus_L: Not really in the search PATH,
10113      # but as the default location of the library.
10114      hardcode_minus_L=yes
10115      export_dynamic_flag_spec='$wl-E'
10116      ;;
10117
10118    hpux10*)
10119      if test yes,no = "$GCC,$with_gnu_ld"; then
10120	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10121      else
10122	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10123      fi
10124      if test no = "$with_gnu_ld"; then
10125	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10126	hardcode_libdir_separator=:
10127	hardcode_direct=yes
10128	hardcode_direct_absolute=yes
10129	export_dynamic_flag_spec='$wl-E'
10130	# hardcode_minus_L: Not really in the search PATH,
10131	# but as the default location of the library.
10132	hardcode_minus_L=yes
10133      fi
10134      ;;
10135
10136    hpux11*)
10137      if test yes,no = "$GCC,$with_gnu_ld"; then
10138	case $host_cpu in
10139	hppa*64*)
10140	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10141	  ;;
10142	ia64*)
10143	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10144	  ;;
10145	*)
10146	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10147	  ;;
10148	esac
10149      else
10150	case $host_cpu in
10151	hppa*64*)
10152	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10153	  ;;
10154	ia64*)
10155	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10156	  ;;
10157	*)
10158
10159	  # Older versions of the 11.00 compiler do not understand -b yet
10160	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10161	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10162$as_echo_n "checking if $CC understands -b... " >&6; }
10163if ${lt_cv_prog_compiler__b+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  lt_cv_prog_compiler__b=no
10167   save_LDFLAGS=$LDFLAGS
10168   LDFLAGS="$LDFLAGS -b"
10169   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10170   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10171     # The linker can only warn and ignore the option if not recognized
10172     # So say no if there are warnings
10173     if test -s conftest.err; then
10174       # Append any errors to the config.log.
10175       cat conftest.err 1>&5
10176       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10177       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10178       if diff conftest.exp conftest.er2 >/dev/null; then
10179         lt_cv_prog_compiler__b=yes
10180       fi
10181     else
10182       lt_cv_prog_compiler__b=yes
10183     fi
10184   fi
10185   $RM -r conftest*
10186   LDFLAGS=$save_LDFLAGS
10187
10188fi
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10190$as_echo "$lt_cv_prog_compiler__b" >&6; }
10191
10192if test yes = "$lt_cv_prog_compiler__b"; then
10193    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10194else
10195    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10196fi
10197
10198	  ;;
10199	esac
10200      fi
10201      if test no = "$with_gnu_ld"; then
10202	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10203	hardcode_libdir_separator=:
10204
10205	case $host_cpu in
10206	hppa*64*|ia64*)
10207	  hardcode_direct=no
10208	  hardcode_shlibpath_var=no
10209	  ;;
10210	*)
10211	  hardcode_direct=yes
10212	  hardcode_direct_absolute=yes
10213	  export_dynamic_flag_spec='$wl-E'
10214
10215	  # hardcode_minus_L: Not really in the search PATH,
10216	  # but as the default location of the library.
10217	  hardcode_minus_L=yes
10218	  ;;
10219	esac
10220      fi
10221      ;;
10222
10223    irix5* | irix6* | nonstopux*)
10224      if test yes = "$GCC"; then
10225	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'
10226	# Try to use the -exported_symbol ld option, if it does not
10227	# work, assume that -exports_file does not work either and
10228	# implicitly export all symbols.
10229	# This should be the same for all languages, so no per-tag cache variable.
10230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10231$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10232if ${lt_cv_irix_exported_symbol+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  save_LDFLAGS=$LDFLAGS
10236	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10237	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int foo (void) { return 0; }
10240_ACEOF
10241if ac_fn_c_try_link "$LINENO"; then :
10242  lt_cv_irix_exported_symbol=yes
10243else
10244  lt_cv_irix_exported_symbol=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext \
10247    conftest$ac_exeext conftest.$ac_ext
10248           LDFLAGS=$save_LDFLAGS
10249fi
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10251$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10252	if test yes = "$lt_cv_irix_exported_symbol"; then
10253          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'
10254	fi
10255      else
10256	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'
10257	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'
10258      fi
10259      archive_cmds_need_lc='no'
10260      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10261      hardcode_libdir_separator=:
10262      inherit_rpath=yes
10263      link_all_deplibs=yes
10264      ;;
10265
10266    linux*)
10267      case $cc_basename in
10268      tcc*)
10269	# Fabrice Bellard et al's Tiny C Compiler
10270	ld_shlibs=yes
10271	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10272	;;
10273      esac
10274      ;;
10275
10276    netbsd*)
10277      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10278	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10279      else
10280	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10281      fi
10282      hardcode_libdir_flag_spec='-R$libdir'
10283      hardcode_direct=yes
10284      hardcode_shlibpath_var=no
10285      ;;
10286
10287    newsos6)
10288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289      hardcode_direct=yes
10290      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10291      hardcode_libdir_separator=:
10292      hardcode_shlibpath_var=no
10293      ;;
10294
10295    *nto* | *qnx*)
10296      ;;
10297
10298    openbsd* | bitrig*)
10299      if test -f /usr/libexec/ld.so; then
10300	hardcode_direct=yes
10301	hardcode_shlibpath_var=no
10302	hardcode_direct_absolute=yes
10303	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10304	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10306	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10307	  export_dynamic_flag_spec='$wl-E'
10308	else
10309	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10310	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10311	fi
10312      else
10313	ld_shlibs=no
10314      fi
10315      ;;
10316
10317    os2*)
10318      hardcode_libdir_flag_spec='-L$libdir'
10319      hardcode_minus_L=yes
10320      allow_undefined_flag=unsupported
10321      shrext_cmds=.dll
10322      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10323	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10324	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10325	$ECHO EXPORTS >> $output_objdir/$libname.def~
10326	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10327	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10328	emximp -o $lib $output_objdir/$libname.def'
10329      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10330	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10331	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10332	$ECHO EXPORTS >> $output_objdir/$libname.def~
10333	prefix_cmds="$SED"~
10334	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10335	  prefix_cmds="$prefix_cmds -e 1d";
10336	fi~
10337	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10338	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10339	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10340	emximp -o $lib $output_objdir/$libname.def'
10341      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10342      enable_shared_with_static_runtimes=yes
10343      ;;
10344
10345    osf3*)
10346      if test yes = "$GCC"; then
10347	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10348	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'
10349      else
10350	allow_undefined_flag=' -expect_unresolved \*'
10351	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'
10352      fi
10353      archive_cmds_need_lc='no'
10354      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10355      hardcode_libdir_separator=:
10356      ;;
10357
10358    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10359      if test yes = "$GCC"; then
10360	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10361	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'
10362	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10363      else
10364	allow_undefined_flag=' -expect_unresolved \*'
10365	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'
10366	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~
10367          $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'
10368
10369	# Both c and cxx compiler support -rpath directly
10370	hardcode_libdir_flag_spec='-rpath $libdir'
10371      fi
10372      archive_cmds_need_lc='no'
10373      hardcode_libdir_separator=:
10374      ;;
10375
10376    solaris*)
10377      no_undefined_flag=' -z defs'
10378      if test yes = "$GCC"; then
10379	wlarc='$wl'
10380	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10381	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10382          $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'
10383      else
10384	case `$CC -V 2>&1` in
10385	*"Compilers 5.0"*)
10386	  wlarc=''
10387	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10389            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10390	  ;;
10391	*)
10392	  wlarc='$wl'
10393	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10394	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10395            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10396	  ;;
10397	esac
10398      fi
10399      hardcode_libdir_flag_spec='-R$libdir'
10400      hardcode_shlibpath_var=no
10401      case $host_os in
10402      solaris2.[0-5] | solaris2.[0-5].*) ;;
10403      *)
10404	# The compiler driver will combine and reorder linker options,
10405	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10406	# but is careful enough not to reorder.
10407	# Supported since Solaris 2.6 (maybe 2.5.1?)
10408	if test yes = "$GCC"; then
10409	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10410	else
10411	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10412	fi
10413	;;
10414      esac
10415      link_all_deplibs=yes
10416      ;;
10417
10418    sunos4*)
10419      if test sequent = "$host_vendor"; then
10420	# Use $CC to link under sequent, because it throws in some extra .o
10421	# files that make .init and .fini sections work.
10422	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10423      else
10424	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10425      fi
10426      hardcode_libdir_flag_spec='-L$libdir'
10427      hardcode_direct=yes
10428      hardcode_minus_L=yes
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    sysv4)
10433      case $host_vendor in
10434	sni)
10435	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436	  hardcode_direct=yes # is this really true???
10437	;;
10438	siemens)
10439	  ## LD is ld it makes a PLAMLIB
10440	  ## CC just makes a GrossModule.
10441	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10442	  reload_cmds='$CC -r -o $output$reload_objs'
10443	  hardcode_direct=no
10444        ;;
10445	motorola)
10446	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10448	;;
10449      esac
10450      runpath_var='LD_RUN_PATH'
10451      hardcode_shlibpath_var=no
10452      ;;
10453
10454    sysv4.3*)
10455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456      hardcode_shlibpath_var=no
10457      export_dynamic_flag_spec='-Bexport'
10458      ;;
10459
10460    sysv4*MP*)
10461      if test -d /usr/nec; then
10462	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10463	hardcode_shlibpath_var=no
10464	runpath_var=LD_RUN_PATH
10465	hardcode_runpath_var=yes
10466	ld_shlibs=yes
10467      fi
10468      ;;
10469
10470    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10471      no_undefined_flag='$wl-z,text'
10472      archive_cmds_need_lc=no
10473      hardcode_shlibpath_var=no
10474      runpath_var='LD_RUN_PATH'
10475
10476      if test yes = "$GCC"; then
10477	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10479      else
10480	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482      fi
10483      ;;
10484
10485    sysv5* | sco3.2v5* | sco5v6*)
10486      # Note: We CANNOT use -z defs as we might desire, because we do not
10487      # link with -lc, and that would cause any symbols used from libc to
10488      # always be unresolved, which means just about no library would
10489      # ever link correctly.  If we're not using GNU ld we use -z text
10490      # though, which does catch some bad symbols but isn't as heavy-handed
10491      # as -z defs.
10492      no_undefined_flag='$wl-z,text'
10493      allow_undefined_flag='$wl-z,nodefs'
10494      archive_cmds_need_lc=no
10495      hardcode_shlibpath_var=no
10496      hardcode_libdir_flag_spec='$wl-R,$libdir'
10497      hardcode_libdir_separator=':'
10498      link_all_deplibs=yes
10499      export_dynamic_flag_spec='$wl-Bexport'
10500      runpath_var='LD_RUN_PATH'
10501
10502      if test yes = "$GCC"; then
10503	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10505      else
10506	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10508      fi
10509      ;;
10510
10511    uts4*)
10512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513      hardcode_libdir_flag_spec='-L$libdir'
10514      hardcode_shlibpath_var=no
10515      ;;
10516
10517    *)
10518      ld_shlibs=no
10519      ;;
10520    esac
10521
10522    if test sni = "$host_vendor"; then
10523      case $host in
10524      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10525	export_dynamic_flag_spec='$wl-Blargedynsym'
10526	;;
10527      esac
10528    fi
10529  fi
10530
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10532$as_echo "$ld_shlibs" >&6; }
10533test no = "$ld_shlibs" && can_build_shared=no
10534
10535with_gnu_ld=$with_gnu_ld
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551#
10552# Do we need to explicitly link libc?
10553#
10554case "x$archive_cmds_need_lc" in
10555x|xyes)
10556  # Assume -lc should be added
10557  archive_cmds_need_lc=yes
10558
10559  if test yes,yes = "$GCC,$enable_shared"; then
10560    case $archive_cmds in
10561    *'~'*)
10562      # FIXME: we may have to deal with multi-command sequences.
10563      ;;
10564    '$CC '*)
10565      # Test whether the compiler implicitly links with -lc since on some
10566      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10567      # to ld, don't add -lc before -lgcc.
10568      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10569$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10570if ${lt_cv_archive_cmds_need_lc+:} false; then :
10571  $as_echo_n "(cached) " >&6
10572else
10573  $RM conftest*
10574	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10575
10576	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10577  (eval $ac_compile) 2>&5
10578  ac_status=$?
10579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580  test $ac_status = 0; } 2>conftest.err; then
10581	  soname=conftest
10582	  lib=conftest
10583	  libobjs=conftest.$ac_objext
10584	  deplibs=
10585	  wl=$lt_prog_compiler_wl
10586	  pic_flag=$lt_prog_compiler_pic
10587	  compiler_flags=-v
10588	  linker_flags=-v
10589	  verstring=
10590	  output_objdir=.
10591	  libname=conftest
10592	  lt_save_allow_undefined_flag=$allow_undefined_flag
10593	  allow_undefined_flag=
10594	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10595  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10596  ac_status=$?
10597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598  test $ac_status = 0; }
10599	  then
10600	    lt_cv_archive_cmds_need_lc=no
10601	  else
10602	    lt_cv_archive_cmds_need_lc=yes
10603	  fi
10604	  allow_undefined_flag=$lt_save_allow_undefined_flag
10605	else
10606	  cat conftest.err 1>&5
10607	fi
10608	$RM conftest*
10609
10610fi
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10612$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10613      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10614      ;;
10615    esac
10616  fi
10617  ;;
10618esac
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10772$as_echo_n "checking dynamic linker characteristics... " >&6; }
10773
10774if test yes = "$GCC"; then
10775  case $host_os in
10776    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10777    *) lt_awk_arg='/^libraries:/' ;;
10778  esac
10779  case $host_os in
10780    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10781    *) lt_sed_strip_eq='s|=/|/|g' ;;
10782  esac
10783  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10784  case $lt_search_path_spec in
10785  *\;*)
10786    # if the path contains ";" then we assume it to be the separator
10787    # otherwise default to the standard path separator (i.e. ":") - it is
10788    # assumed that no part of a normal pathname contains ";" but that should
10789    # okay in the real world where ";" in dirpaths is itself problematic.
10790    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10791    ;;
10792  *)
10793    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10794    ;;
10795  esac
10796  # Ok, now we have the path, separated by spaces, we can step through it
10797  # and add multilib dir if necessary...
10798  lt_tmp_lt_search_path_spec=
10799  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10800  # ...but if some path component already ends with the multilib dir we assume
10801  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10802  case "$lt_multi_os_dir; $lt_search_path_spec " in
10803  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10804    lt_multi_os_dir=
10805    ;;
10806  esac
10807  for lt_sys_path in $lt_search_path_spec; do
10808    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10809      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10810    elif test -n "$lt_multi_os_dir"; then
10811      test -d "$lt_sys_path" && \
10812	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10813    fi
10814  done
10815  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10816BEGIN {RS = " "; FS = "/|\n";} {
10817  lt_foo = "";
10818  lt_count = 0;
10819  for (lt_i = NF; lt_i > 0; lt_i--) {
10820    if ($lt_i != "" && $lt_i != ".") {
10821      if ($lt_i == "..") {
10822        lt_count++;
10823      } else {
10824        if (lt_count == 0) {
10825          lt_foo = "/" $lt_i lt_foo;
10826        } else {
10827          lt_count--;
10828        }
10829      }
10830    }
10831  }
10832  if (lt_foo != "") { lt_freq[lt_foo]++; }
10833  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10834}'`
10835  # AWK program above erroneously prepends '/' to C:/dos/paths
10836  # for these hosts.
10837  case $host_os in
10838    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10839      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10840  esac
10841  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10842else
10843  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10844fi
10845library_names_spec=
10846libname_spec='lib$name'
10847soname_spec=
10848shrext_cmds=.so
10849postinstall_cmds=
10850postuninstall_cmds=
10851finish_cmds=
10852finish_eval=
10853shlibpath_var=
10854shlibpath_overrides_runpath=unknown
10855version_type=none
10856dynamic_linker="$host_os ld.so"
10857sys_lib_dlsearch_path_spec="/lib /usr/lib"
10858need_lib_prefix=unknown
10859hardcode_into_libs=no
10860
10861# when you set need_version to no, make sure it does not cause -set_version
10862# flags to be left without arguments
10863need_version=unknown
10864
10865
10866
10867case $host_os in
10868aix3*)
10869  version_type=linux # correct to gnu/linux during the next big refactor
10870  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10871  shlibpath_var=LIBPATH
10872
10873  # AIX 3 has no versioning support, so we append a major version to the name.
10874  soname_spec='$libname$release$shared_ext$major'
10875  ;;
10876
10877aix[4-9]*)
10878  version_type=linux # correct to gnu/linux during the next big refactor
10879  need_lib_prefix=no
10880  need_version=no
10881  hardcode_into_libs=yes
10882  if test ia64 = "$host_cpu"; then
10883    # AIX 5 supports IA64
10884    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10885    shlibpath_var=LD_LIBRARY_PATH
10886  else
10887    # With GCC up to 2.95.x, collect2 would create an import file
10888    # for dependence libraries.  The import file would start with
10889    # the line '#! .'.  This would cause the generated library to
10890    # depend on '.', always an invalid library.  This was fixed in
10891    # development snapshots of GCC prior to 3.0.
10892    case $host_os in
10893      aix4 | aix4.[01] | aix4.[01].*)
10894      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10895	   echo ' yes '
10896	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10897	:
10898      else
10899	can_build_shared=no
10900      fi
10901      ;;
10902    esac
10903    # Using Import Files as archive members, it is possible to support
10904    # filename-based versioning of shared library archives on AIX. While
10905    # this would work for both with and without runtime linking, it will
10906    # prevent static linking of such archives. So we do filename-based
10907    # shared library versioning with .so extension only, which is used
10908    # when both runtime linking and shared linking is enabled.
10909    # Unfortunately, runtime linking may impact performance, so we do
10910    # not want this to be the default eventually. Also, we use the
10911    # versioned .so libs for executables only if there is the -brtl
10912    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10913    # To allow for filename-based versioning support, we need to create
10914    # libNAME.so.V as an archive file, containing:
10915    # *) an Import File, referring to the versioned filename of the
10916    #    archive as well as the shared archive member, telling the
10917    #    bitwidth (32 or 64) of that shared object, and providing the
10918    #    list of exported symbols of that shared object, eventually
10919    #    decorated with the 'weak' keyword
10920    # *) the shared object with the F_LOADONLY flag set, to really avoid
10921    #    it being seen by the linker.
10922    # At run time we better use the real file rather than another symlink,
10923    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10924
10925    case $with_aix_soname,$aix_use_runtimelinking in
10926    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10927    # soname into executable. Probably we can add versioning support to
10928    # collect2, so additional links can be useful in future.
10929    aix,yes) # traditional libtool
10930      dynamic_linker='AIX unversionable lib.so'
10931      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10932      # instead of lib<name>.a to let people know that these are not
10933      # typical AIX shared libraries.
10934      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935      ;;
10936    aix,no) # traditional AIX only
10937      dynamic_linker='AIX lib.a(lib.so.V)'
10938      # We preserve .a as extension for shared libraries through AIX4.2
10939      # and later when we are not doing run time linking.
10940      library_names_spec='$libname$release.a $libname.a'
10941      soname_spec='$libname$release$shared_ext$major'
10942      ;;
10943    svr4,*) # full svr4 only
10944      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10945      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10946      # We do not specify a path in Import Files, so LIBPATH fires.
10947      shlibpath_overrides_runpath=yes
10948      ;;
10949    *,yes) # both, prefer svr4
10950      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10951      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10952      # unpreferred sharedlib libNAME.a needs extra handling
10953      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"'
10954      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"'
10955      # We do not specify a path in Import Files, so LIBPATH fires.
10956      shlibpath_overrides_runpath=yes
10957      ;;
10958    *,no) # both, prefer aix
10959      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10960      library_names_spec='$libname$release.a $libname.a'
10961      soname_spec='$libname$release$shared_ext$major'
10962      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10963      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)'
10964      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"'
10965      ;;
10966    esac
10967    shlibpath_var=LIBPATH
10968  fi
10969  ;;
10970
10971amigaos*)
10972  case $host_cpu in
10973  powerpc)
10974    # Since July 2007 AmigaOS4 officially supports .so libraries.
10975    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10976    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10977    ;;
10978  m68k)
10979    library_names_spec='$libname.ixlibrary $libname.a'
10980    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981    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'
10982    ;;
10983  esac
10984  ;;
10985
10986beos*)
10987  library_names_spec='$libname$shared_ext'
10988  dynamic_linker="$host_os ld.so"
10989  shlibpath_var=LIBRARY_PATH
10990  ;;
10991
10992bsdi[45]*)
10993  version_type=linux # correct to gnu/linux during the next big refactor
10994  need_version=no
10995  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10996  soname_spec='$libname$release$shared_ext$major'
10997  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10998  shlibpath_var=LD_LIBRARY_PATH
10999  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11000  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11001  # the default ld.so.conf also contains /usr/contrib/lib and
11002  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11003  # libtool to hard-code these into programs
11004  ;;
11005
11006cygwin* | mingw* | pw32* | cegcc*)
11007  version_type=windows
11008  shrext_cmds=.dll
11009  need_version=no
11010  need_lib_prefix=no
11011
11012  case $GCC,$cc_basename in
11013  yes,*)
11014    # gcc
11015    library_names_spec='$libname.dll.a'
11016    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11017    postinstall_cmds='base_file=`basename \$file`~
11018      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11019      dldir=$destdir/`dirname \$dlpath`~
11020      test -d \$dldir || mkdir -p \$dldir~
11021      $install_prog $dir/$dlname \$dldir/$dlname~
11022      chmod a+x \$dldir/$dlname~
11023      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11024        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11025      fi'
11026    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11027      dlpath=$dir/\$dldll~
11028       $RM \$dlpath'
11029    shlibpath_overrides_runpath=yes
11030
11031    case $host_os in
11032    cygwin*)
11033      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11034      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11035
11036      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11037      ;;
11038    mingw* | cegcc*)
11039      # MinGW DLLs use traditional 'lib' prefix
11040      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11041      ;;
11042    pw32*)
11043      # pw32 DLLs use 'pw' prefix rather than 'lib'
11044      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11045      ;;
11046    esac
11047    dynamic_linker='Win32 ld.exe'
11048    ;;
11049
11050  *,cl*)
11051    # Native MSVC
11052    libname_spec='$name'
11053    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11054    library_names_spec='$libname.dll.lib'
11055
11056    case $build_os in
11057    mingw*)
11058      sys_lib_search_path_spec=
11059      lt_save_ifs=$IFS
11060      IFS=';'
11061      for lt_path in $LIB
11062      do
11063        IFS=$lt_save_ifs
11064        # Let DOS variable expansion print the short 8.3 style file name.
11065        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11066        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11067      done
11068      IFS=$lt_save_ifs
11069      # Convert to MSYS style.
11070      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11071      ;;
11072    cygwin*)
11073      # Convert to unix form, then to dos form, then back to unix form
11074      # but this time dos style (no spaces!) so that the unix form looks
11075      # like /cygdrive/c/PROGRA~1:/cygdr...
11076      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11077      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11078      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11079      ;;
11080    *)
11081      sys_lib_search_path_spec=$LIB
11082      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11083        # It is most probably a Windows format PATH.
11084        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11085      else
11086        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11087      fi
11088      # FIXME: find the short name or the path components, as spaces are
11089      # common. (e.g. "Program Files" -> "PROGRA~1")
11090      ;;
11091    esac
11092
11093    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11094    postinstall_cmds='base_file=`basename \$file`~
11095      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11096      dldir=$destdir/`dirname \$dlpath`~
11097      test -d \$dldir || mkdir -p \$dldir~
11098      $install_prog $dir/$dlname \$dldir/$dlname'
11099    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11100      dlpath=$dir/\$dldll~
11101       $RM \$dlpath'
11102    shlibpath_overrides_runpath=yes
11103    dynamic_linker='Win32 link.exe'
11104    ;;
11105
11106  *)
11107    # Assume MSVC wrapper
11108    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11109    dynamic_linker='Win32 ld.exe'
11110    ;;
11111  esac
11112  # FIXME: first we should search . and the directory the executable is in
11113  shlibpath_var=PATH
11114  ;;
11115
11116darwin* | rhapsody*)
11117  dynamic_linker="$host_os dyld"
11118  version_type=darwin
11119  need_lib_prefix=no
11120  need_version=no
11121  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11122  soname_spec='$libname$release$major$shared_ext'
11123  shlibpath_overrides_runpath=yes
11124  shlibpath_var=DYLD_LIBRARY_PATH
11125  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11126
11127  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11128  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11129  ;;
11130
11131dgux*)
11132  version_type=linux # correct to gnu/linux during the next big refactor
11133  need_lib_prefix=no
11134  need_version=no
11135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136  soname_spec='$libname$release$shared_ext$major'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  ;;
11139
11140freebsd* | dragonfly*)
11141  # DragonFly does not have aout.  When/if they implement a new
11142  # versioning mechanism, adjust this.
11143  if test -x /usr/bin/objformat; then
11144    objformat=`/usr/bin/objformat`
11145  else
11146    case $host_os in
11147    freebsd[23].*) objformat=aout ;;
11148    *) objformat=elf ;;
11149    esac
11150  fi
11151  version_type=freebsd-$objformat
11152  case $version_type in
11153    freebsd-elf*)
11154      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155      soname_spec='$libname$release$shared_ext$major'
11156      need_version=no
11157      need_lib_prefix=no
11158      ;;
11159    freebsd-*)
11160      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11161      need_version=yes
11162      ;;
11163  esac
11164  shlibpath_var=LD_LIBRARY_PATH
11165  case $host_os in
11166  freebsd2.*)
11167    shlibpath_overrides_runpath=yes
11168    ;;
11169  freebsd3.[01]* | freebsdelf3.[01]*)
11170    shlibpath_overrides_runpath=yes
11171    hardcode_into_libs=yes
11172    ;;
11173  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11174  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11175    shlibpath_overrides_runpath=no
11176    hardcode_into_libs=yes
11177    ;;
11178  *) # from 4.6 on, and DragonFly
11179    shlibpath_overrides_runpath=yes
11180    hardcode_into_libs=yes
11181    ;;
11182  esac
11183  ;;
11184
11185haiku*)
11186  version_type=linux # correct to gnu/linux during the next big refactor
11187  need_lib_prefix=no
11188  need_version=no
11189  dynamic_linker="$host_os runtime_loader"
11190  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191  soname_spec='$libname$release$shared_ext$major'
11192  shlibpath_var=LIBRARY_PATH
11193  shlibpath_overrides_runpath=no
11194  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11195  hardcode_into_libs=yes
11196  ;;
11197
11198hpux9* | hpux10* | hpux11*)
11199  # Give a soname corresponding to the major version so that dld.sl refuses to
11200  # link against other versions.
11201  version_type=sunos
11202  need_lib_prefix=no
11203  need_version=no
11204  case $host_cpu in
11205  ia64*)
11206    shrext_cmds='.so'
11207    hardcode_into_libs=yes
11208    dynamic_linker="$host_os dld.so"
11209    shlibpath_var=LD_LIBRARY_PATH
11210    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11211    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11212    soname_spec='$libname$release$shared_ext$major'
11213    if test 32 = "$HPUX_IA64_MODE"; then
11214      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11215      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11216    else
11217      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11218      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11219    fi
11220    ;;
11221  hppa*64*)
11222    shrext_cmds='.sl'
11223    hardcode_into_libs=yes
11224    dynamic_linker="$host_os dld.sl"
11225    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11226    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11227    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228    soname_spec='$libname$release$shared_ext$major'
11229    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11230    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11231    ;;
11232  *)
11233    shrext_cmds='.sl'
11234    dynamic_linker="$host_os dld.sl"
11235    shlibpath_var=SHLIB_PATH
11236    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11237    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11238    soname_spec='$libname$release$shared_ext$major'
11239    ;;
11240  esac
11241  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11242  postinstall_cmds='chmod 555 $lib'
11243  # or fails outright, so override atomically:
11244  install_override_mode=555
11245  ;;
11246
11247interix[3-9]*)
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  need_lib_prefix=no
11250  need_version=no
11251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252  soname_spec='$libname$release$shared_ext$major'
11253  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11254  shlibpath_var=LD_LIBRARY_PATH
11255  shlibpath_overrides_runpath=no
11256  hardcode_into_libs=yes
11257  ;;
11258
11259irix5* | irix6* | nonstopux*)
11260  case $host_os in
11261    nonstopux*) version_type=nonstopux ;;
11262    *)
11263	if test yes = "$lt_cv_prog_gnu_ld"; then
11264		version_type=linux # correct to gnu/linux during the next big refactor
11265	else
11266		version_type=irix
11267	fi ;;
11268  esac
11269  need_lib_prefix=no
11270  need_version=no
11271  soname_spec='$libname$release$shared_ext$major'
11272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11273  case $host_os in
11274  irix5* | nonstopux*)
11275    libsuff= shlibsuff=
11276    ;;
11277  *)
11278    case $LD in # libtool.m4 will add one of these switches to LD
11279    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11280      libsuff= shlibsuff= libmagic=32-bit;;
11281    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11282      libsuff=32 shlibsuff=N32 libmagic=N32;;
11283    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11284      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11285    *) libsuff= shlibsuff= libmagic=never-match;;
11286    esac
11287    ;;
11288  esac
11289  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11290  shlibpath_overrides_runpath=no
11291  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11292  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11293  hardcode_into_libs=yes
11294  ;;
11295
11296# No shared lib support for Linux oldld, aout, or coff.
11297linux*oldld* | linux*aout* | linux*coff*)
11298  dynamic_linker=no
11299  ;;
11300
11301linux*android*)
11302  version_type=none # Android doesn't support versioned libraries.
11303  need_lib_prefix=no
11304  need_version=no
11305  library_names_spec='$libname$release$shared_ext'
11306  soname_spec='$libname$release$shared_ext'
11307  finish_cmds=
11308  shlibpath_var=LD_LIBRARY_PATH
11309  shlibpath_overrides_runpath=yes
11310
11311  # This implies no fast_install, which is unacceptable.
11312  # Some rework will be needed to allow for fast_install
11313  # before this can be enabled.
11314  hardcode_into_libs=yes
11315
11316  dynamic_linker='Android linker'
11317  # Don't embed -rpath directories since the linker doesn't support them.
11318  hardcode_libdir_flag_spec='-L$libdir'
11319  ;;
11320
11321# This must be glibc/ELF.
11322linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11323  version_type=linux # correct to gnu/linux during the next big refactor
11324  need_lib_prefix=no
11325  need_version=no
11326  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327  soname_spec='$libname$release$shared_ext$major'
11328  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11329  shlibpath_var=LD_LIBRARY_PATH
11330  shlibpath_overrides_runpath=no
11331
11332  # Some binutils ld are patched to set DT_RUNPATH
11333  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11334  $as_echo_n "(cached) " >&6
11335else
11336  lt_cv_shlibpath_overrides_runpath=no
11337    save_LDFLAGS=$LDFLAGS
11338    save_libdir=$libdir
11339    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11340	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343
11344int
11345main ()
11346{
11347
11348  ;
11349  return 0;
11350}
11351_ACEOF
11352if ac_fn_c_try_link "$LINENO"; then :
11353  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11354  lt_cv_shlibpath_overrides_runpath=yes
11355fi
11356fi
11357rm -f core conftest.err conftest.$ac_objext \
11358    conftest$ac_exeext conftest.$ac_ext
11359    LDFLAGS=$save_LDFLAGS
11360    libdir=$save_libdir
11361
11362fi
11363
11364  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11365
11366  # This implies no fast_install, which is unacceptable.
11367  # Some rework will be needed to allow for fast_install
11368  # before this can be enabled.
11369  hardcode_into_libs=yes
11370
11371  # Ideally, we could use ldconfig to report *all* directores which are
11372  # searched for libraries, however this is still not possible.  Aside from not
11373  # being certain /sbin/ldconfig is available, command
11374  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11375  # even though it is searched at run-time.  Try to do the best guess by
11376  # appending ld.so.conf contents (and includes) to the search path.
11377  if test -f /etc/ld.so.conf; then
11378    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' ' '`
11379    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11380  fi
11381
11382  # We used to test for /lib/ld.so.1 and disable shared libraries on
11383  # powerpc, because MkLinux only supported shared libraries with the
11384  # GNU dynamic linker.  Since this was broken with cross compilers,
11385  # most powerpc-linux boxes support dynamic linking these days and
11386  # people can always --disable-shared, the test was removed, and we
11387  # assume the GNU/Linux dynamic linker is in use.
11388  dynamic_linker='GNU/Linux ld.so'
11389  ;;
11390
11391netbsd*)
11392  version_type=sunos
11393  need_lib_prefix=no
11394  need_version=no
11395  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11396    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11397    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398    dynamic_linker='NetBSD (a.out) ld.so'
11399  else
11400    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401    soname_spec='$libname$release$shared_ext$major'
11402    dynamic_linker='NetBSD ld.elf_so'
11403  fi
11404  shlibpath_var=LD_LIBRARY_PATH
11405  shlibpath_overrides_runpath=yes
11406  hardcode_into_libs=yes
11407  ;;
11408
11409newsos6)
11410  version_type=linux # correct to gnu/linux during the next big refactor
11411  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11412  shlibpath_var=LD_LIBRARY_PATH
11413  shlibpath_overrides_runpath=yes
11414  ;;
11415
11416*nto* | *qnx*)
11417  version_type=qnx
11418  need_lib_prefix=no
11419  need_version=no
11420  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421  soname_spec='$libname$release$shared_ext$major'
11422  shlibpath_var=LD_LIBRARY_PATH
11423  shlibpath_overrides_runpath=no
11424  hardcode_into_libs=yes
11425  dynamic_linker='ldqnx.so'
11426  ;;
11427
11428openbsd* | bitrig*)
11429  version_type=sunos
11430  sys_lib_dlsearch_path_spec=/usr/lib
11431  need_lib_prefix=no
11432  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11433    need_version=no
11434  else
11435    need_version=yes
11436  fi
11437  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11438  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439  shlibpath_var=LD_LIBRARY_PATH
11440  shlibpath_overrides_runpath=yes
11441  ;;
11442
11443os2*)
11444  libname_spec='$name'
11445  version_type=windows
11446  shrext_cmds=.dll
11447  need_version=no
11448  need_lib_prefix=no
11449  # OS/2 can only load a DLL with a base name of 8 characters or less.
11450  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11451    v=$($ECHO $release$versuffix | tr -d .-);
11452    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11453    $ECHO $n$v`$shared_ext'
11454  library_names_spec='${libname}_dll.$libext'
11455  dynamic_linker='OS/2 ld.exe'
11456  shlibpath_var=BEGINLIBPATH
11457  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11458  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11459  postinstall_cmds='base_file=`basename \$file`~
11460    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11461    dldir=$destdir/`dirname \$dlpath`~
11462    test -d \$dldir || mkdir -p \$dldir~
11463    $install_prog $dir/$dlname \$dldir/$dlname~
11464    chmod a+x \$dldir/$dlname~
11465    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11466      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11467    fi'
11468  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11469    dlpath=$dir/\$dldll~
11470    $RM \$dlpath'
11471  ;;
11472
11473osf3* | osf4* | osf5*)
11474  version_type=osf
11475  need_lib_prefix=no
11476  need_version=no
11477  soname_spec='$libname$release$shared_ext$major'
11478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479  shlibpath_var=LD_LIBRARY_PATH
11480  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11481  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11482  ;;
11483
11484rdos*)
11485  dynamic_linker=no
11486  ;;
11487
11488solaris*)
11489  version_type=linux # correct to gnu/linux during the next big refactor
11490  need_lib_prefix=no
11491  need_version=no
11492  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11493  soname_spec='$libname$release$shared_ext$major'
11494  shlibpath_var=LD_LIBRARY_PATH
11495  shlibpath_overrides_runpath=yes
11496  hardcode_into_libs=yes
11497  # ldd complains unless libraries are executable
11498  postinstall_cmds='chmod +x $lib'
11499  ;;
11500
11501sunos4*)
11502  version_type=sunos
11503  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11504  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=yes
11507  if test yes = "$with_gnu_ld"; then
11508    need_lib_prefix=no
11509  fi
11510  need_version=yes
11511  ;;
11512
11513sysv4 | sysv4.3*)
11514  version_type=linux # correct to gnu/linux during the next big refactor
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  shlibpath_var=LD_LIBRARY_PATH
11518  case $host_vendor in
11519    sni)
11520      shlibpath_overrides_runpath=no
11521      need_lib_prefix=no
11522      runpath_var=LD_RUN_PATH
11523      ;;
11524    siemens)
11525      need_lib_prefix=no
11526      ;;
11527    motorola)
11528      need_lib_prefix=no
11529      need_version=no
11530      shlibpath_overrides_runpath=no
11531      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11532      ;;
11533  esac
11534  ;;
11535
11536sysv4*MP*)
11537  if test -d /usr/nec; then
11538    version_type=linux # correct to gnu/linux during the next big refactor
11539    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11540    soname_spec='$libname$shared_ext.$major'
11541    shlibpath_var=LD_LIBRARY_PATH
11542  fi
11543  ;;
11544
11545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11546  version_type=sco
11547  need_lib_prefix=no
11548  need_version=no
11549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11550  soname_spec='$libname$release$shared_ext$major'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  shlibpath_overrides_runpath=yes
11553  hardcode_into_libs=yes
11554  if test yes = "$with_gnu_ld"; then
11555    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11556  else
11557    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11558    case $host_os in
11559      sco3.2v5*)
11560        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11561	;;
11562    esac
11563  fi
11564  sys_lib_dlsearch_path_spec='/usr/lib'
11565  ;;
11566
11567tpf*)
11568  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11569  version_type=linux # correct to gnu/linux during the next big refactor
11570  need_lib_prefix=no
11571  need_version=no
11572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11573  shlibpath_var=LD_LIBRARY_PATH
11574  shlibpath_overrides_runpath=no
11575  hardcode_into_libs=yes
11576  ;;
11577
11578uts4*)
11579  version_type=linux # correct to gnu/linux during the next big refactor
11580  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581  soname_spec='$libname$release$shared_ext$major'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  ;;
11584
11585*)
11586  dynamic_linker=no
11587  ;;
11588esac
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11590$as_echo "$dynamic_linker" >&6; }
11591test no = "$dynamic_linker" && can_build_shared=no
11592
11593variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11594if test yes = "$GCC"; then
11595  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11596fi
11597
11598if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11599  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11600fi
11601
11602if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11603  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11604fi
11605
11606# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11607configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11608
11609# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11610func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11611
11612# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11613configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11712$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11713hardcode_action=
11714if test -n "$hardcode_libdir_flag_spec" ||
11715   test -n "$runpath_var" ||
11716   test yes = "$hardcode_automatic"; then
11717
11718  # We can hardcode non-existent directories.
11719  if test no != "$hardcode_direct" &&
11720     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11721     # have to relink, otherwise we might link with an installed library
11722     # when we should be linking with a yet-to-be-installed one
11723     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11724     test no != "$hardcode_minus_L"; then
11725    # Linking always hardcodes the temporary library directory.
11726    hardcode_action=relink
11727  else
11728    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11729    hardcode_action=immediate
11730  fi
11731else
11732  # We cannot hardcode anything, or else we can only hardcode existing
11733  # directories.
11734  hardcode_action=unsupported
11735fi
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11737$as_echo "$hardcode_action" >&6; }
11738
11739if test relink = "$hardcode_action" ||
11740   test yes = "$inherit_rpath"; then
11741  # Fast installation is not supported
11742  enable_fast_install=no
11743elif test yes = "$shlibpath_overrides_runpath" ||
11744     test no = "$enable_shared"; then
11745  # Fast installation is not necessary
11746  enable_fast_install=needless
11747fi
11748
11749
11750
11751
11752
11753
11754  if test yes != "$enable_dlopen"; then
11755  enable_dlopen=unknown
11756  enable_dlopen_self=unknown
11757  enable_dlopen_self_static=unknown
11758else
11759  lt_cv_dlopen=no
11760  lt_cv_dlopen_libs=
11761
11762  case $host_os in
11763  beos*)
11764    lt_cv_dlopen=load_add_on
11765    lt_cv_dlopen_libs=
11766    lt_cv_dlopen_self=yes
11767    ;;
11768
11769  mingw* | pw32* | cegcc*)
11770    lt_cv_dlopen=LoadLibrary
11771    lt_cv_dlopen_libs=
11772    ;;
11773
11774  cygwin*)
11775    lt_cv_dlopen=dlopen
11776    lt_cv_dlopen_libs=
11777    ;;
11778
11779  darwin*)
11780    # if libdl is installed we need to link against it
11781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11782$as_echo_n "checking for dlopen in -ldl... " >&6; }
11783if ${ac_cv_lib_dl_dlopen+:} false; then :
11784  $as_echo_n "(cached) " >&6
11785else
11786  ac_check_lib_save_LIBS=$LIBS
11787LIBS="-ldl  $LIBS"
11788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789/* end confdefs.h.  */
11790
11791/* Override any GCC internal prototype to avoid an error.
11792   Use char because int might match the return type of a GCC
11793   builtin and then its argument prototype would still apply.  */
11794#ifdef __cplusplus
11795extern "C"
11796#endif
11797char dlopen ();
11798int
11799main ()
11800{
11801return dlopen ();
11802  ;
11803  return 0;
11804}
11805_ACEOF
11806if ac_fn_c_try_link "$LINENO"; then :
11807  ac_cv_lib_dl_dlopen=yes
11808else
11809  ac_cv_lib_dl_dlopen=no
11810fi
11811rm -f core conftest.err conftest.$ac_objext \
11812    conftest$ac_exeext conftest.$ac_ext
11813LIBS=$ac_check_lib_save_LIBS
11814fi
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11816$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11817if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11818  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11819else
11820
11821    lt_cv_dlopen=dyld
11822    lt_cv_dlopen_libs=
11823    lt_cv_dlopen_self=yes
11824
11825fi
11826
11827    ;;
11828
11829  tpf*)
11830    # Don't try to run any link tests for TPF.  We know it's impossible
11831    # because TPF is a cross-compiler, and we know how we open DSOs.
11832    lt_cv_dlopen=dlopen
11833    lt_cv_dlopen_libs=
11834    lt_cv_dlopen_self=no
11835    ;;
11836
11837  *)
11838    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11839if test "x$ac_cv_func_shl_load" = xyes; then :
11840  lt_cv_dlopen=shl_load
11841else
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11843$as_echo_n "checking for shl_load in -ldld... " >&6; }
11844if ${ac_cv_lib_dld_shl_load+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  ac_check_lib_save_LIBS=$LIBS
11848LIBS="-ldld  $LIBS"
11849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h.  */
11851
11852/* Override any GCC internal prototype to avoid an error.
11853   Use char because int might match the return type of a GCC
11854   builtin and then its argument prototype would still apply.  */
11855#ifdef __cplusplus
11856extern "C"
11857#endif
11858char shl_load ();
11859int
11860main ()
11861{
11862return shl_load ();
11863  ;
11864  return 0;
11865}
11866_ACEOF
11867if ac_fn_c_try_link "$LINENO"; then :
11868  ac_cv_lib_dld_shl_load=yes
11869else
11870  ac_cv_lib_dld_shl_load=no
11871fi
11872rm -f core conftest.err conftest.$ac_objext \
11873    conftest$ac_exeext conftest.$ac_ext
11874LIBS=$ac_check_lib_save_LIBS
11875fi
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11877$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11878if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11879  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11880else
11881  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11882if test "x$ac_cv_func_dlopen" = xyes; then :
11883  lt_cv_dlopen=dlopen
11884else
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886$as_echo_n "checking for dlopen in -ldl... " >&6; }
11887if ${ac_cv_lib_dl_dlopen+:} false; then :
11888  $as_echo_n "(cached) " >&6
11889else
11890  ac_check_lib_save_LIBS=$LIBS
11891LIBS="-ldl  $LIBS"
11892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894
11895/* Override any GCC internal prototype to avoid an error.
11896   Use char because int might match the return type of a GCC
11897   builtin and then its argument prototype would still apply.  */
11898#ifdef __cplusplus
11899extern "C"
11900#endif
11901char dlopen ();
11902int
11903main ()
11904{
11905return dlopen ();
11906  ;
11907  return 0;
11908}
11909_ACEOF
11910if ac_fn_c_try_link "$LINENO"; then :
11911  ac_cv_lib_dl_dlopen=yes
11912else
11913  ac_cv_lib_dl_dlopen=no
11914fi
11915rm -f core conftest.err conftest.$ac_objext \
11916    conftest$ac_exeext conftest.$ac_ext
11917LIBS=$ac_check_lib_save_LIBS
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11922  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11923else
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11925$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11926if ${ac_cv_lib_svld_dlopen+:} false; then :
11927  $as_echo_n "(cached) " >&6
11928else
11929  ac_check_lib_save_LIBS=$LIBS
11930LIBS="-lsvld  $LIBS"
11931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932/* end confdefs.h.  */
11933
11934/* Override any GCC internal prototype to avoid an error.
11935   Use char because int might match the return type of a GCC
11936   builtin and then its argument prototype would still apply.  */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940char dlopen ();
11941int
11942main ()
11943{
11944return dlopen ();
11945  ;
11946  return 0;
11947}
11948_ACEOF
11949if ac_fn_c_try_link "$LINENO"; then :
11950  ac_cv_lib_svld_dlopen=yes
11951else
11952  ac_cv_lib_svld_dlopen=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext \
11955    conftest$ac_exeext conftest.$ac_ext
11956LIBS=$ac_check_lib_save_LIBS
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11959$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11960if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11961  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11962else
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11964$as_echo_n "checking for dld_link in -ldld... " >&6; }
11965if ${ac_cv_lib_dld_dld_link+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  ac_check_lib_save_LIBS=$LIBS
11969LIBS="-ldld  $LIBS"
11970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971/* end confdefs.h.  */
11972
11973/* Override any GCC internal prototype to avoid an error.
11974   Use char because int might match the return type of a GCC
11975   builtin and then its argument prototype would still apply.  */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char dld_link ();
11980int
11981main ()
11982{
11983return dld_link ();
11984  ;
11985  return 0;
11986}
11987_ACEOF
11988if ac_fn_c_try_link "$LINENO"; then :
11989  ac_cv_lib_dld_dld_link=yes
11990else
11991  ac_cv_lib_dld_dld_link=no
11992fi
11993rm -f core conftest.err conftest.$ac_objext \
11994    conftest$ac_exeext conftest.$ac_ext
11995LIBS=$ac_check_lib_save_LIBS
11996fi
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11998$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11999if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12000  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12001fi
12002
12003
12004fi
12005
12006
12007fi
12008
12009
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018    ;;
12019  esac
12020
12021  if test no = "$lt_cv_dlopen"; then
12022    enable_dlopen=no
12023  else
12024    enable_dlopen=yes
12025  fi
12026
12027  case $lt_cv_dlopen in
12028  dlopen)
12029    save_CPPFLAGS=$CPPFLAGS
12030    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12031
12032    save_LDFLAGS=$LDFLAGS
12033    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12034
12035    save_LIBS=$LIBS
12036    LIBS="$lt_cv_dlopen_libs $LIBS"
12037
12038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12039$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12040if ${lt_cv_dlopen_self+:} false; then :
12041  $as_echo_n "(cached) " >&6
12042else
12043  	  if test yes = "$cross_compiling"; then :
12044  lt_cv_dlopen_self=cross
12045else
12046  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12047  lt_status=$lt_dlunknown
12048  cat > conftest.$ac_ext <<_LT_EOF
12049#line $LINENO "configure"
12050#include "confdefs.h"
12051
12052#if HAVE_DLFCN_H
12053#include <dlfcn.h>
12054#endif
12055
12056#include <stdio.h>
12057
12058#ifdef RTLD_GLOBAL
12059#  define LT_DLGLOBAL		RTLD_GLOBAL
12060#else
12061#  ifdef DL_GLOBAL
12062#    define LT_DLGLOBAL		DL_GLOBAL
12063#  else
12064#    define LT_DLGLOBAL		0
12065#  endif
12066#endif
12067
12068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12069   find out it does not work in some platform. */
12070#ifndef LT_DLLAZY_OR_NOW
12071#  ifdef RTLD_LAZY
12072#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12073#  else
12074#    ifdef DL_LAZY
12075#      define LT_DLLAZY_OR_NOW		DL_LAZY
12076#    else
12077#      ifdef RTLD_NOW
12078#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12079#      else
12080#        ifdef DL_NOW
12081#          define LT_DLLAZY_OR_NOW	DL_NOW
12082#        else
12083#          define LT_DLLAZY_OR_NOW	0
12084#        endif
12085#      endif
12086#    endif
12087#  endif
12088#endif
12089
12090/* When -fvisibility=hidden is used, assume the code has been annotated
12091   correspondingly for the symbols needed.  */
12092#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12093int fnord () __attribute__((visibility("default")));
12094#endif
12095
12096int fnord () { return 42; }
12097int main ()
12098{
12099  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12100  int status = $lt_dlunknown;
12101
12102  if (self)
12103    {
12104      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12105      else
12106        {
12107	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12108          else puts (dlerror ());
12109	}
12110      /* dlclose (self); */
12111    }
12112  else
12113    puts (dlerror ());
12114
12115  return status;
12116}
12117_LT_EOF
12118  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12119  (eval $ac_link) 2>&5
12120  ac_status=$?
12121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12122  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12123    (./conftest; exit; ) >&5 2>/dev/null
12124    lt_status=$?
12125    case x$lt_status in
12126      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12127      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12128      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12129    esac
12130  else :
12131    # compilation failed
12132    lt_cv_dlopen_self=no
12133  fi
12134fi
12135rm -fr conftest*
12136
12137
12138fi
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12140$as_echo "$lt_cv_dlopen_self" >&6; }
12141
12142    if test yes = "$lt_cv_dlopen_self"; then
12143      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12144      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12145$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12146if ${lt_cv_dlopen_self_static+:} false; then :
12147  $as_echo_n "(cached) " >&6
12148else
12149  	  if test yes = "$cross_compiling"; then :
12150  lt_cv_dlopen_self_static=cross
12151else
12152  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12153  lt_status=$lt_dlunknown
12154  cat > conftest.$ac_ext <<_LT_EOF
12155#line $LINENO "configure"
12156#include "confdefs.h"
12157
12158#if HAVE_DLFCN_H
12159#include <dlfcn.h>
12160#endif
12161
12162#include <stdio.h>
12163
12164#ifdef RTLD_GLOBAL
12165#  define LT_DLGLOBAL		RTLD_GLOBAL
12166#else
12167#  ifdef DL_GLOBAL
12168#    define LT_DLGLOBAL		DL_GLOBAL
12169#  else
12170#    define LT_DLGLOBAL		0
12171#  endif
12172#endif
12173
12174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12175   find out it does not work in some platform. */
12176#ifndef LT_DLLAZY_OR_NOW
12177#  ifdef RTLD_LAZY
12178#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12179#  else
12180#    ifdef DL_LAZY
12181#      define LT_DLLAZY_OR_NOW		DL_LAZY
12182#    else
12183#      ifdef RTLD_NOW
12184#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12185#      else
12186#        ifdef DL_NOW
12187#          define LT_DLLAZY_OR_NOW	DL_NOW
12188#        else
12189#          define LT_DLLAZY_OR_NOW	0
12190#        endif
12191#      endif
12192#    endif
12193#  endif
12194#endif
12195
12196/* When -fvisibility=hidden is used, assume the code has been annotated
12197   correspondingly for the symbols needed.  */
12198#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12199int fnord () __attribute__((visibility("default")));
12200#endif
12201
12202int fnord () { return 42; }
12203int main ()
12204{
12205  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12206  int status = $lt_dlunknown;
12207
12208  if (self)
12209    {
12210      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12211      else
12212        {
12213	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12214          else puts (dlerror ());
12215	}
12216      /* dlclose (self); */
12217    }
12218  else
12219    puts (dlerror ());
12220
12221  return status;
12222}
12223_LT_EOF
12224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12225  (eval $ac_link) 2>&5
12226  ac_status=$?
12227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12228  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12229    (./conftest; exit; ) >&5 2>/dev/null
12230    lt_status=$?
12231    case x$lt_status in
12232      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12233      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12234      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12235    esac
12236  else :
12237    # compilation failed
12238    lt_cv_dlopen_self_static=no
12239  fi
12240fi
12241rm -fr conftest*
12242
12243
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12246$as_echo "$lt_cv_dlopen_self_static" >&6; }
12247    fi
12248
12249    CPPFLAGS=$save_CPPFLAGS
12250    LDFLAGS=$save_LDFLAGS
12251    LIBS=$save_LIBS
12252    ;;
12253  esac
12254
12255  case $lt_cv_dlopen_self in
12256  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12257  *) enable_dlopen_self=unknown ;;
12258  esac
12259
12260  case $lt_cv_dlopen_self_static in
12261  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12262  *) enable_dlopen_self_static=unknown ;;
12263  esac
12264fi
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282striplib=
12283old_striplib=
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12285$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12286if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12287  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12288  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12290$as_echo "yes" >&6; }
12291else
12292# FIXME - insert some real tests, host_os isn't really good enough
12293  case $host_os in
12294  darwin*)
12295    if test -n "$STRIP"; then
12296      striplib="$STRIP -x"
12297      old_striplib="$STRIP -S"
12298      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299$as_echo "yes" >&6; }
12300    else
12301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303    fi
12304    ;;
12305  *)
12306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
12308    ;;
12309  esac
12310fi
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323  # Report what library types will actually be built
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12325$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12327$as_echo "$can_build_shared" >&6; }
12328
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12330$as_echo_n "checking whether to build shared libraries... " >&6; }
12331  test no = "$can_build_shared" && enable_shared=no
12332
12333  # On AIX, shared libraries and static libraries use the same namespace, and
12334  # are all built from PIC.
12335  case $host_os in
12336  aix3*)
12337    test yes = "$enable_shared" && enable_static=no
12338    if test -n "$RANLIB"; then
12339      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12340      postinstall_cmds='$RANLIB $lib'
12341    fi
12342    ;;
12343
12344  aix[4-9]*)
12345    if test ia64 != "$host_cpu"; then
12346      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12347      yes,aix,yes) ;;			# shared object as lib.so file only
12348      yes,svr4,*) ;;			# shared object as lib.so archive member only
12349      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12350      esac
12351    fi
12352    ;;
12353  esac
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12355$as_echo "$enable_shared" >&6; }
12356
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12358$as_echo_n "checking whether to build static libraries... " >&6; }
12359  # Make sure either enable_shared or enable_static is yes.
12360  test yes = "$enable_shared" || enable_static=yes
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12362$as_echo "$enable_static" >&6; }
12363
12364
12365
12366
12367fi
12368ac_ext=c
12369ac_cpp='$CPP $CPPFLAGS'
12370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12372ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373
12374CC=$lt_save_CC
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390        ac_config_commands="$ac_config_commands libtool"
12391
12392
12393
12394
12395# Only expand once:
12396
12397
12398
12399# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12412$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12413if ${ac_cv_prog_cc_c99+:} false; then :
12414  $as_echo_n "(cached) " >&6
12415else
12416  ac_cv_prog_cc_c99=no
12417ac_save_CC=$CC
12418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419/* end confdefs.h.  */
12420#include <stdarg.h>
12421#include <stdbool.h>
12422#include <stdlib.h>
12423#include <wchar.h>
12424#include <stdio.h>
12425
12426// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12427#define debug(...) fprintf (stderr, __VA_ARGS__)
12428#define showlist(...) puts (#__VA_ARGS__)
12429#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12430static void
12431test_varargs_macros (void)
12432{
12433  int x = 1234;
12434  int y = 5678;
12435  debug ("Flag");
12436  debug ("X = %d\n", x);
12437  showlist (The first, second, and third items.);
12438  report (x>y, "x is %d but y is %d", x, y);
12439}
12440
12441// Check long long types.
12442#define BIG64 18446744073709551615ull
12443#define BIG32 4294967295ul
12444#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12445#if !BIG_OK
12446  your preprocessor is broken;
12447#endif
12448#if BIG_OK
12449#else
12450  your preprocessor is broken;
12451#endif
12452static long long int bignum = -9223372036854775807LL;
12453static unsigned long long int ubignum = BIG64;
12454
12455struct incomplete_array
12456{
12457  int datasize;
12458  double data[];
12459};
12460
12461struct named_init {
12462  int number;
12463  const wchar_t *name;
12464  double average;
12465};
12466
12467typedef const char *ccp;
12468
12469static inline int
12470test_restrict (ccp restrict text)
12471{
12472  // See if C++-style comments work.
12473  // Iterate through items via the restricted pointer.
12474  // Also check for declarations in for loops.
12475  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12476    continue;
12477  return 0;
12478}
12479
12480// Check varargs and va_copy.
12481static void
12482test_varargs (const char *format, ...)
12483{
12484  va_list args;
12485  va_start (args, format);
12486  va_list args_copy;
12487  va_copy (args_copy, args);
12488
12489  const char *str;
12490  int number;
12491  float fnumber;
12492
12493  while (*format)
12494    {
12495      switch (*format++)
12496	{
12497	case 's': // string
12498	  str = va_arg (args_copy, const char *);
12499	  break;
12500	case 'd': // int
12501	  number = va_arg (args_copy, int);
12502	  break;
12503	case 'f': // float
12504	  fnumber = va_arg (args_copy, double);
12505	  break;
12506	default:
12507	  break;
12508	}
12509    }
12510  va_end (args_copy);
12511  va_end (args);
12512}
12513
12514int
12515main ()
12516{
12517
12518  // Check bool.
12519  _Bool success = false;
12520
12521  // Check restrict.
12522  if (test_restrict ("String literal") == 0)
12523    success = true;
12524  char *restrict newvar = "Another string";
12525
12526  // Check varargs.
12527  test_varargs ("s, d' f .", "string", 65, 34.234);
12528  test_varargs_macros ();
12529
12530  // Check flexible array members.
12531  struct incomplete_array *ia =
12532    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12533  ia->datasize = 10;
12534  for (int i = 0; i < ia->datasize; ++i)
12535    ia->data[i] = i * 1.234;
12536
12537  // Check named initializers.
12538  struct named_init ni = {
12539    .number = 34,
12540    .name = L"Test wide string",
12541    .average = 543.34343,
12542  };
12543
12544  ni.number = 58;
12545
12546  int dynamic_array[ni.number];
12547  dynamic_array[ni.number - 1] = 543;
12548
12549  // work around unused variable warnings
12550  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12551	  || dynamic_array[ni.number - 1] != 543);
12552
12553  ;
12554  return 0;
12555}
12556_ACEOF
12557for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12558do
12559  CC="$ac_save_CC $ac_arg"
12560  if ac_fn_c_try_compile "$LINENO"; then :
12561  ac_cv_prog_cc_c99=$ac_arg
12562fi
12563rm -f core conftest.err conftest.$ac_objext
12564  test "x$ac_cv_prog_cc_c99" != "xno" && break
12565done
12566rm -f conftest.$ac_ext
12567CC=$ac_save_CC
12568
12569fi
12570# AC_CACHE_VAL
12571case "x$ac_cv_prog_cc_c99" in
12572  x)
12573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12574$as_echo "none needed" >&6; } ;;
12575  xno)
12576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12577$as_echo "unsupported" >&6; } ;;
12578  *)
12579    CC="$CC $ac_cv_prog_cc_c99"
12580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12581$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12582esac
12583if test "x$ac_cv_prog_cc_c99" != xno; then :
12584
12585fi
12586
12587
12588
12589
12590
12591
12592ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12593if test "x$ac_cv_have_decl___clang__" = xyes; then :
12594  CLANGCC="yes"
12595else
12596  CLANGCC="no"
12597fi
12598
12599ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12600if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12601  INTELCC="yes"
12602else
12603  INTELCC="no"
12604fi
12605
12606ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12607if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12608  SUNCC="yes"
12609else
12610  SUNCC="no"
12611fi
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12622	if test -n "$ac_tool_prefix"; then
12623  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12624set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626$as_echo_n "checking for $ac_word... " >&6; }
12627if ${ac_cv_path_PKG_CONFIG+:} false; then :
12628  $as_echo_n "(cached) " >&6
12629else
12630  case $PKG_CONFIG in
12631  [\\/]* | ?:[\\/]*)
12632  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12633  ;;
12634  *)
12635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636for as_dir in $PATH
12637do
12638  IFS=$as_save_IFS
12639  test -z "$as_dir" && as_dir=.
12640    for ac_exec_ext in '' $ac_executable_extensions; do
12641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644    break 2
12645  fi
12646done
12647  done
12648IFS=$as_save_IFS
12649
12650  ;;
12651esac
12652fi
12653PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12654if test -n "$PKG_CONFIG"; then
12655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12656$as_echo "$PKG_CONFIG" >&6; }
12657else
12658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
12660fi
12661
12662
12663fi
12664if test -z "$ac_cv_path_PKG_CONFIG"; then
12665  ac_pt_PKG_CONFIG=$PKG_CONFIG
12666  # Extract the first word of "pkg-config", so it can be a program name with args.
12667set dummy pkg-config; ac_word=$2
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669$as_echo_n "checking for $ac_word... " >&6; }
12670if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12671  $as_echo_n "(cached) " >&6
12672else
12673  case $ac_pt_PKG_CONFIG in
12674  [\\/]* | ?:[\\/]*)
12675  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12676  ;;
12677  *)
12678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679for as_dir in $PATH
12680do
12681  IFS=$as_save_IFS
12682  test -z "$as_dir" && as_dir=.
12683    for ac_exec_ext in '' $ac_executable_extensions; do
12684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12685    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687    break 2
12688  fi
12689done
12690  done
12691IFS=$as_save_IFS
12692
12693  ;;
12694esac
12695fi
12696ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12697if test -n "$ac_pt_PKG_CONFIG"; then
12698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12699$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12700else
12701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702$as_echo "no" >&6; }
12703fi
12704
12705  if test "x$ac_pt_PKG_CONFIG" = x; then
12706    PKG_CONFIG=""
12707  else
12708    case $cross_compiling:$ac_tool_warned in
12709yes:)
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12712ac_tool_warned=yes ;;
12713esac
12714    PKG_CONFIG=$ac_pt_PKG_CONFIG
12715  fi
12716else
12717  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12718fi
12719
12720fi
12721if test -n "$PKG_CONFIG"; then
12722	_pkg_min_version=0.9.0
12723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12724$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12725	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12726		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727$as_echo "yes" >&6; }
12728	else
12729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731		PKG_CONFIG=""
12732	fi
12733fi
12734
12735
12736
12737
12738
12739# Check whether --enable-selective-werror was given.
12740if test "${enable_selective_werror+set}" = set; then :
12741  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12742else
12743  SELECTIVE_WERROR=yes
12744fi
12745
12746
12747
12748
12749
12750# -v is too short to test reliably with XORG_TESTSET_CFLAG
12751if test "x$SUNCC" = "xyes"; then
12752    BASE_CFLAGS="-v"
12753else
12754    BASE_CFLAGS=""
12755fi
12756
12757# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771xorg_testset_save_CFLAGS="$CFLAGS"
12772
12773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12778  $as_echo_n "(cached) " >&6
12779else
12780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781/* end confdefs.h.  */
12782int i;
12783_ACEOF
12784if ac_fn_c_try_compile "$LINENO"; then :
12785  xorg_cv_cc_flag_unknown_warning_option=yes
12786else
12787  xorg_cv_cc_flag_unknown_warning_option=no
12788fi
12789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790fi
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12794	CFLAGS="$xorg_testset_save_CFLAGS"
12795fi
12796
12797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12800	fi
12801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12805  $as_echo_n "(cached) " >&6
12806else
12807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808/* end confdefs.h.  */
12809int i;
12810_ACEOF
12811if ac_fn_c_try_compile "$LINENO"; then :
12812  xorg_cv_cc_flag_unused_command_line_argument=yes
12813else
12814  xorg_cv_cc_flag_unused_command_line_argument=no
12815fi
12816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12821	CFLAGS="$xorg_testset_save_CFLAGS"
12822fi
12823
12824found="no"
12825
12826	if test $found = "no" ; then
12827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12829		fi
12830
12831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12833		fi
12834
12835		CFLAGS="$CFLAGS -Wall"
12836
12837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12838$as_echo_n "checking if $CC supports -Wall... " >&6; }
12839		cacheid=xorg_cv_cc_flag__Wall
12840		if eval \${$cacheid+:} false; then :
12841  $as_echo_n "(cached) " >&6
12842else
12843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844/* end confdefs.h.  */
12845int i;
12846int
12847main ()
12848{
12849
12850  ;
12851  return 0;
12852}
12853_ACEOF
12854if ac_fn_c_try_link "$LINENO"; then :
12855  eval $cacheid=yes
12856else
12857  eval $cacheid=no
12858fi
12859rm -f core conftest.err conftest.$ac_objext \
12860    conftest$ac_exeext conftest.$ac_ext
12861fi
12862
12863
12864		CFLAGS="$xorg_testset_save_CFLAGS"
12865
12866		eval supported=\$$cacheid
12867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12868$as_echo "$supported" >&6; }
12869		if test "$supported" = "yes" ; then
12870			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12871			found="yes"
12872		fi
12873	fi
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889xorg_testset_save_CFLAGS="$CFLAGS"
12890
12891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12896  $as_echo_n "(cached) " >&6
12897else
12898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899/* end confdefs.h.  */
12900int i;
12901_ACEOF
12902if ac_fn_c_try_compile "$LINENO"; then :
12903  xorg_cv_cc_flag_unknown_warning_option=yes
12904else
12905  xorg_cv_cc_flag_unknown_warning_option=no
12906fi
12907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908fi
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12912	CFLAGS="$xorg_testset_save_CFLAGS"
12913fi
12914
12915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12918	fi
12919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12923  $as_echo_n "(cached) " >&6
12924else
12925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926/* end confdefs.h.  */
12927int i;
12928_ACEOF
12929if ac_fn_c_try_compile "$LINENO"; then :
12930  xorg_cv_cc_flag_unused_command_line_argument=yes
12931else
12932  xorg_cv_cc_flag_unused_command_line_argument=no
12933fi
12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935fi
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12939	CFLAGS="$xorg_testset_save_CFLAGS"
12940fi
12941
12942found="no"
12943
12944	if test $found = "no" ; then
12945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12947		fi
12948
12949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12951		fi
12952
12953		CFLAGS="$CFLAGS -Wpointer-arith"
12954
12955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12956$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12957		cacheid=xorg_cv_cc_flag__Wpointer_arith
12958		if eval \${$cacheid+:} false; then :
12959  $as_echo_n "(cached) " >&6
12960else
12961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h.  */
12963int i;
12964int
12965main ()
12966{
12967
12968  ;
12969  return 0;
12970}
12971_ACEOF
12972if ac_fn_c_try_link "$LINENO"; then :
12973  eval $cacheid=yes
12974else
12975  eval $cacheid=no
12976fi
12977rm -f core conftest.err conftest.$ac_objext \
12978    conftest$ac_exeext conftest.$ac_ext
12979fi
12980
12981
12982		CFLAGS="$xorg_testset_save_CFLAGS"
12983
12984		eval supported=\$$cacheid
12985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12986$as_echo "$supported" >&6; }
12987		if test "$supported" = "yes" ; then
12988			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12989			found="yes"
12990		fi
12991	fi
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007xorg_testset_save_CFLAGS="$CFLAGS"
13008
13009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13014  $as_echo_n "(cached) " >&6
13015else
13016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h.  */
13018int i;
13019_ACEOF
13020if ac_fn_c_try_compile "$LINENO"; then :
13021  xorg_cv_cc_flag_unknown_warning_option=yes
13022else
13023  xorg_cv_cc_flag_unknown_warning_option=no
13024fi
13025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13030	CFLAGS="$xorg_testset_save_CFLAGS"
13031fi
13032
13033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036	fi
13037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h.  */
13045int i;
13046_ACEOF
13047if ac_fn_c_try_compile "$LINENO"; then :
13048  xorg_cv_cc_flag_unused_command_line_argument=yes
13049else
13050  xorg_cv_cc_flag_unused_command_line_argument=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053fi
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13057	CFLAGS="$xorg_testset_save_CFLAGS"
13058fi
13059
13060found="no"
13061
13062	if test $found = "no" ; then
13063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065		fi
13066
13067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13069		fi
13070
13071		CFLAGS="$CFLAGS -Wmissing-declarations"
13072
13073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13074$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13075		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13076		if eval \${$cacheid+:} false; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080/* end confdefs.h.  */
13081int i;
13082int
13083main ()
13084{
13085
13086  ;
13087  return 0;
13088}
13089_ACEOF
13090if ac_fn_c_try_link "$LINENO"; then :
13091  eval $cacheid=yes
13092else
13093  eval $cacheid=no
13094fi
13095rm -f core conftest.err conftest.$ac_objext \
13096    conftest$ac_exeext conftest.$ac_ext
13097fi
13098
13099
13100		CFLAGS="$xorg_testset_save_CFLAGS"
13101
13102		eval supported=\$$cacheid
13103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13104$as_echo "$supported" >&6; }
13105		if test "$supported" = "yes" ; then
13106			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13107			found="yes"
13108		fi
13109	fi
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125xorg_testset_save_CFLAGS="$CFLAGS"
13126
13127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136int i;
13137_ACEOF
13138if ac_fn_c_try_compile "$LINENO"; then :
13139  xorg_cv_cc_flag_unknown_warning_option=yes
13140else
13141  xorg_cv_cc_flag_unknown_warning_option=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13148	CFLAGS="$xorg_testset_save_CFLAGS"
13149fi
13150
13151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154	fi
13155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13159  $as_echo_n "(cached) " >&6
13160else
13161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h.  */
13163int i;
13164_ACEOF
13165if ac_fn_c_try_compile "$LINENO"; then :
13166  xorg_cv_cc_flag_unused_command_line_argument=yes
13167else
13168  xorg_cv_cc_flag_unused_command_line_argument=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171fi
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13175	CFLAGS="$xorg_testset_save_CFLAGS"
13176fi
13177
13178found="no"
13179
13180	if test $found = "no" ; then
13181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183		fi
13184
13185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187		fi
13188
13189		CFLAGS="$CFLAGS -Wformat=2"
13190
13191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13192$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13193		cacheid=xorg_cv_cc_flag__Wformat_2
13194		if eval \${$cacheid+:} false; then :
13195  $as_echo_n "(cached) " >&6
13196else
13197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198/* end confdefs.h.  */
13199int i;
13200int
13201main ()
13202{
13203
13204  ;
13205  return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209  eval $cacheid=yes
13210else
13211  eval $cacheid=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214    conftest$ac_exeext conftest.$ac_ext
13215fi
13216
13217
13218		CFLAGS="$xorg_testset_save_CFLAGS"
13219
13220		eval supported=\$$cacheid
13221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13222$as_echo "$supported" >&6; }
13223		if test "$supported" = "yes" ; then
13224			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13225			found="yes"
13226		fi
13227	fi
13228
13229	if test $found = "no" ; then
13230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232		fi
13233
13234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13236		fi
13237
13238		CFLAGS="$CFLAGS -Wformat"
13239
13240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13241$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13242		cacheid=xorg_cv_cc_flag__Wformat
13243		if eval \${$cacheid+:} false; then :
13244  $as_echo_n "(cached) " >&6
13245else
13246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h.  */
13248int i;
13249int
13250main ()
13251{
13252
13253  ;
13254  return 0;
13255}
13256_ACEOF
13257if ac_fn_c_try_link "$LINENO"; then :
13258  eval $cacheid=yes
13259else
13260  eval $cacheid=no
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263    conftest$ac_exeext conftest.$ac_ext
13264fi
13265
13266
13267		CFLAGS="$xorg_testset_save_CFLAGS"
13268
13269		eval supported=\$$cacheid
13270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13271$as_echo "$supported" >&6; }
13272		if test "$supported" = "yes" ; then
13273			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13274			found="yes"
13275		fi
13276	fi
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294xorg_testset_save_CFLAGS="$CFLAGS"
13295
13296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305int i;
13306_ACEOF
13307if ac_fn_c_try_compile "$LINENO"; then :
13308  xorg_cv_cc_flag_unknown_warning_option=yes
13309else
13310  xorg_cv_cc_flag_unknown_warning_option=no
13311fi
13312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313fi
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13317	CFLAGS="$xorg_testset_save_CFLAGS"
13318fi
13319
13320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323	fi
13324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13328  $as_echo_n "(cached) " >&6
13329else
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332int i;
13333_ACEOF
13334if ac_fn_c_try_compile "$LINENO"; then :
13335  xorg_cv_cc_flag_unused_command_line_argument=yes
13336else
13337  xorg_cv_cc_flag_unused_command_line_argument=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13344	CFLAGS="$xorg_testset_save_CFLAGS"
13345fi
13346
13347found="no"
13348
13349	if test $found = "no" ; then
13350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352		fi
13353
13354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13356		fi
13357
13358		CFLAGS="$CFLAGS -Wstrict-prototypes"
13359
13360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13361$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13362		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13363		if eval \${$cacheid+:} false; then :
13364  $as_echo_n "(cached) " >&6
13365else
13366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367/* end confdefs.h.  */
13368int i;
13369int
13370main ()
13371{
13372
13373  ;
13374  return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_link "$LINENO"; then :
13378  eval $cacheid=yes
13379else
13380  eval $cacheid=no
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383    conftest$ac_exeext conftest.$ac_ext
13384fi
13385
13386
13387		CFLAGS="$xorg_testset_save_CFLAGS"
13388
13389		eval supported=\$$cacheid
13390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13391$as_echo "$supported" >&6; }
13392		if test "$supported" = "yes" ; then
13393			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13394			found="yes"
13395		fi
13396	fi
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412xorg_testset_save_CFLAGS="$CFLAGS"
13413
13414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h.  */
13423int i;
13424_ACEOF
13425if ac_fn_c_try_compile "$LINENO"; then :
13426  xorg_cv_cc_flag_unknown_warning_option=yes
13427else
13428  xorg_cv_cc_flag_unknown_warning_option=no
13429fi
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13435	CFLAGS="$xorg_testset_save_CFLAGS"
13436fi
13437
13438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13441	fi
13442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13446  $as_echo_n "(cached) " >&6
13447else
13448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449/* end confdefs.h.  */
13450int i;
13451_ACEOF
13452if ac_fn_c_try_compile "$LINENO"; then :
13453  xorg_cv_cc_flag_unused_command_line_argument=yes
13454else
13455  xorg_cv_cc_flag_unused_command_line_argument=no
13456fi
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458fi
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13462	CFLAGS="$xorg_testset_save_CFLAGS"
13463fi
13464
13465found="no"
13466
13467	if test $found = "no" ; then
13468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13470		fi
13471
13472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13474		fi
13475
13476		CFLAGS="$CFLAGS -Wmissing-prototypes"
13477
13478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13479$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13480		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13481		if eval \${$cacheid+:} false; then :
13482  $as_echo_n "(cached) " >&6
13483else
13484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485/* end confdefs.h.  */
13486int i;
13487int
13488main ()
13489{
13490
13491  ;
13492  return 0;
13493}
13494_ACEOF
13495if ac_fn_c_try_link "$LINENO"; then :
13496  eval $cacheid=yes
13497else
13498  eval $cacheid=no
13499fi
13500rm -f core conftest.err conftest.$ac_objext \
13501    conftest$ac_exeext conftest.$ac_ext
13502fi
13503
13504
13505		CFLAGS="$xorg_testset_save_CFLAGS"
13506
13507		eval supported=\$$cacheid
13508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13509$as_echo "$supported" >&6; }
13510		if test "$supported" = "yes" ; then
13511			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13512			found="yes"
13513		fi
13514	fi
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530xorg_testset_save_CFLAGS="$CFLAGS"
13531
13532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541int i;
13542_ACEOF
13543if ac_fn_c_try_compile "$LINENO"; then :
13544  xorg_cv_cc_flag_unknown_warning_option=yes
13545else
13546  xorg_cv_cc_flag_unknown_warning_option=no
13547fi
13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549fi
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13553	CFLAGS="$xorg_testset_save_CFLAGS"
13554fi
13555
13556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13559	fi
13560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13564  $as_echo_n "(cached) " >&6
13565else
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568int i;
13569_ACEOF
13570if ac_fn_c_try_compile "$LINENO"; then :
13571  xorg_cv_cc_flag_unused_command_line_argument=yes
13572else
13573  xorg_cv_cc_flag_unused_command_line_argument=no
13574fi
13575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576fi
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13580	CFLAGS="$xorg_testset_save_CFLAGS"
13581fi
13582
13583found="no"
13584
13585	if test $found = "no" ; then
13586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13588		fi
13589
13590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13592		fi
13593
13594		CFLAGS="$CFLAGS -Wnested-externs"
13595
13596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13597$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13598		cacheid=xorg_cv_cc_flag__Wnested_externs
13599		if eval \${$cacheid+:} false; then :
13600  $as_echo_n "(cached) " >&6
13601else
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604int i;
13605int
13606main ()
13607{
13608
13609  ;
13610  return 0;
13611}
13612_ACEOF
13613if ac_fn_c_try_link "$LINENO"; then :
13614  eval $cacheid=yes
13615else
13616  eval $cacheid=no
13617fi
13618rm -f core conftest.err conftest.$ac_objext \
13619    conftest$ac_exeext conftest.$ac_ext
13620fi
13621
13622
13623		CFLAGS="$xorg_testset_save_CFLAGS"
13624
13625		eval supported=\$$cacheid
13626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13627$as_echo "$supported" >&6; }
13628		if test "$supported" = "yes" ; then
13629			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13630			found="yes"
13631		fi
13632	fi
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648xorg_testset_save_CFLAGS="$CFLAGS"
13649
13650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13655  $as_echo_n "(cached) " >&6
13656else
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659int i;
13660_ACEOF
13661if ac_fn_c_try_compile "$LINENO"; then :
13662  xorg_cv_cc_flag_unknown_warning_option=yes
13663else
13664  xorg_cv_cc_flag_unknown_warning_option=no
13665fi
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13671	CFLAGS="$xorg_testset_save_CFLAGS"
13672fi
13673
13674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13677	fi
13678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13682  $as_echo_n "(cached) " >&6
13683else
13684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685/* end confdefs.h.  */
13686int i;
13687_ACEOF
13688if ac_fn_c_try_compile "$LINENO"; then :
13689  xorg_cv_cc_flag_unused_command_line_argument=yes
13690else
13691  xorg_cv_cc_flag_unused_command_line_argument=no
13692fi
13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694fi
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13698	CFLAGS="$xorg_testset_save_CFLAGS"
13699fi
13700
13701found="no"
13702
13703	if test $found = "no" ; then
13704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13706		fi
13707
13708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13710		fi
13711
13712		CFLAGS="$CFLAGS -Wbad-function-cast"
13713
13714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13715$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13716		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13717		if eval \${$cacheid+:} false; then :
13718  $as_echo_n "(cached) " >&6
13719else
13720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721/* end confdefs.h.  */
13722int i;
13723int
13724main ()
13725{
13726
13727  ;
13728  return 0;
13729}
13730_ACEOF
13731if ac_fn_c_try_link "$LINENO"; then :
13732  eval $cacheid=yes
13733else
13734  eval $cacheid=no
13735fi
13736rm -f core conftest.err conftest.$ac_objext \
13737    conftest$ac_exeext conftest.$ac_ext
13738fi
13739
13740
13741		CFLAGS="$xorg_testset_save_CFLAGS"
13742
13743		eval supported=\$$cacheid
13744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13745$as_echo "$supported" >&6; }
13746		if test "$supported" = "yes" ; then
13747			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13748			found="yes"
13749		fi
13750	fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766xorg_testset_save_CFLAGS="$CFLAGS"
13767
13768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776/* end confdefs.h.  */
13777int i;
13778_ACEOF
13779if ac_fn_c_try_compile "$LINENO"; then :
13780  xorg_cv_cc_flag_unknown_warning_option=yes
13781else
13782  xorg_cv_cc_flag_unknown_warning_option=no
13783fi
13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785fi
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13789	CFLAGS="$xorg_testset_save_CFLAGS"
13790fi
13791
13792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13795	fi
13796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13800  $as_echo_n "(cached) " >&6
13801else
13802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803/* end confdefs.h.  */
13804int i;
13805_ACEOF
13806if ac_fn_c_try_compile "$LINENO"; then :
13807  xorg_cv_cc_flag_unused_command_line_argument=yes
13808else
13809  xorg_cv_cc_flag_unused_command_line_argument=no
13810fi
13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812fi
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13816	CFLAGS="$xorg_testset_save_CFLAGS"
13817fi
13818
13819found="no"
13820
13821	if test $found = "no" ; then
13822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13824		fi
13825
13826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13828		fi
13829
13830		CFLAGS="$CFLAGS -Wold-style-definition"
13831
13832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13833$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13834		cacheid=xorg_cv_cc_flag__Wold_style_definition
13835		if eval \${$cacheid+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839/* end confdefs.h.  */
13840int i;
13841int
13842main ()
13843{
13844
13845  ;
13846  return 0;
13847}
13848_ACEOF
13849if ac_fn_c_try_link "$LINENO"; then :
13850  eval $cacheid=yes
13851else
13852  eval $cacheid=no
13853fi
13854rm -f core conftest.err conftest.$ac_objext \
13855    conftest$ac_exeext conftest.$ac_ext
13856fi
13857
13858
13859		CFLAGS="$xorg_testset_save_CFLAGS"
13860
13861		eval supported=\$$cacheid
13862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13863$as_echo "$supported" >&6; }
13864		if test "$supported" = "yes" ; then
13865			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13866			found="yes"
13867		fi
13868	fi
13869
13870	if test $found = "no" ; then
13871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873		fi
13874
13875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13877		fi
13878
13879		CFLAGS="$CFLAGS -fd"
13880
13881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13882$as_echo_n "checking if $CC supports -fd... " >&6; }
13883		cacheid=xorg_cv_cc_flag__fd
13884		if eval \${$cacheid+:} false; then :
13885  $as_echo_n "(cached) " >&6
13886else
13887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889int i;
13890int
13891main ()
13892{
13893
13894  ;
13895  return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_link "$LINENO"; then :
13899  eval $cacheid=yes
13900else
13901  eval $cacheid=no
13902fi
13903rm -f core conftest.err conftest.$ac_objext \
13904    conftest$ac_exeext conftest.$ac_ext
13905fi
13906
13907
13908		CFLAGS="$xorg_testset_save_CFLAGS"
13909
13910		eval supported=\$$cacheid
13911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13912$as_echo "$supported" >&6; }
13913		if test "$supported" = "yes" ; then
13914			BASE_CFLAGS="$BASE_CFLAGS -fd"
13915			found="yes"
13916		fi
13917	fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933xorg_testset_save_CFLAGS="$CFLAGS"
13934
13935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941else
13942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943/* end confdefs.h.  */
13944int i;
13945_ACEOF
13946if ac_fn_c_try_compile "$LINENO"; then :
13947  xorg_cv_cc_flag_unknown_warning_option=yes
13948else
13949  xorg_cv_cc_flag_unknown_warning_option=no
13950fi
13951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13956	CFLAGS="$xorg_testset_save_CFLAGS"
13957fi
13958
13959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13962	fi
13963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970/* end confdefs.h.  */
13971int i;
13972_ACEOF
13973if ac_fn_c_try_compile "$LINENO"; then :
13974  xorg_cv_cc_flag_unused_command_line_argument=yes
13975else
13976  xorg_cv_cc_flag_unused_command_line_argument=no
13977fi
13978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13983	CFLAGS="$xorg_testset_save_CFLAGS"
13984fi
13985
13986found="no"
13987
13988	if test $found = "no" ; then
13989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991		fi
13992
13993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995		fi
13996
13997		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13998
13999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14000$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14001		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14002		if eval \${$cacheid+:} false; then :
14003  $as_echo_n "(cached) " >&6
14004else
14005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006/* end confdefs.h.  */
14007int i;
14008int
14009main ()
14010{
14011
14012  ;
14013  return 0;
14014}
14015_ACEOF
14016if ac_fn_c_try_link "$LINENO"; then :
14017  eval $cacheid=yes
14018else
14019  eval $cacheid=no
14020fi
14021rm -f core conftest.err conftest.$ac_objext \
14022    conftest$ac_exeext conftest.$ac_ext
14023fi
14024
14025
14026		CFLAGS="$xorg_testset_save_CFLAGS"
14027
14028		eval supported=\$$cacheid
14029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14030$as_echo "$supported" >&6; }
14031		if test "$supported" = "yes" ; then
14032			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14033			found="yes"
14034		fi
14035	fi
14036
14037
14038
14039
14040
14041# This chunk adds additional warnings that could catch undesired effects.
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055xorg_testset_save_CFLAGS="$CFLAGS"
14056
14057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14062  $as_echo_n "(cached) " >&6
14063else
14064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065/* end confdefs.h.  */
14066int i;
14067_ACEOF
14068if ac_fn_c_try_compile "$LINENO"; then :
14069  xorg_cv_cc_flag_unknown_warning_option=yes
14070else
14071  xorg_cv_cc_flag_unknown_warning_option=no
14072fi
14073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074fi
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14078	CFLAGS="$xorg_testset_save_CFLAGS"
14079fi
14080
14081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084	fi
14085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093int i;
14094_ACEOF
14095if ac_fn_c_try_compile "$LINENO"; then :
14096  xorg_cv_cc_flag_unused_command_line_argument=yes
14097else
14098  xorg_cv_cc_flag_unused_command_line_argument=no
14099fi
14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14105	CFLAGS="$xorg_testset_save_CFLAGS"
14106fi
14107
14108found="no"
14109
14110	if test $found = "no" ; then
14111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14113		fi
14114
14115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14117		fi
14118
14119		CFLAGS="$CFLAGS -Wunused"
14120
14121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14122$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14123		cacheid=xorg_cv_cc_flag__Wunused
14124		if eval \${$cacheid+:} false; then :
14125  $as_echo_n "(cached) " >&6
14126else
14127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128/* end confdefs.h.  */
14129int i;
14130int
14131main ()
14132{
14133
14134  ;
14135  return 0;
14136}
14137_ACEOF
14138if ac_fn_c_try_link "$LINENO"; then :
14139  eval $cacheid=yes
14140else
14141  eval $cacheid=no
14142fi
14143rm -f core conftest.err conftest.$ac_objext \
14144    conftest$ac_exeext conftest.$ac_ext
14145fi
14146
14147
14148		CFLAGS="$xorg_testset_save_CFLAGS"
14149
14150		eval supported=\$$cacheid
14151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14152$as_echo "$supported" >&6; }
14153		if test "$supported" = "yes" ; then
14154			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14155			found="yes"
14156		fi
14157	fi
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173xorg_testset_save_CFLAGS="$CFLAGS"
14174
14175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14180  $as_echo_n "(cached) " >&6
14181else
14182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184int i;
14185_ACEOF
14186if ac_fn_c_try_compile "$LINENO"; then :
14187  xorg_cv_cc_flag_unknown_warning_option=yes
14188else
14189  xorg_cv_cc_flag_unknown_warning_option=no
14190fi
14191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14196	CFLAGS="$xorg_testset_save_CFLAGS"
14197fi
14198
14199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202	fi
14203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14207  $as_echo_n "(cached) " >&6
14208else
14209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210/* end confdefs.h.  */
14211int i;
14212_ACEOF
14213if ac_fn_c_try_compile "$LINENO"; then :
14214  xorg_cv_cc_flag_unused_command_line_argument=yes
14215else
14216  xorg_cv_cc_flag_unused_command_line_argument=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219fi
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14223	CFLAGS="$xorg_testset_save_CFLAGS"
14224fi
14225
14226found="no"
14227
14228	if test $found = "no" ; then
14229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14231		fi
14232
14233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14235		fi
14236
14237		CFLAGS="$CFLAGS -Wuninitialized"
14238
14239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14240$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14241		cacheid=xorg_cv_cc_flag__Wuninitialized
14242		if eval \${$cacheid+:} false; then :
14243  $as_echo_n "(cached) " >&6
14244else
14245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247int i;
14248int
14249main ()
14250{
14251
14252  ;
14253  return 0;
14254}
14255_ACEOF
14256if ac_fn_c_try_link "$LINENO"; then :
14257  eval $cacheid=yes
14258else
14259  eval $cacheid=no
14260fi
14261rm -f core conftest.err conftest.$ac_objext \
14262    conftest$ac_exeext conftest.$ac_ext
14263fi
14264
14265
14266		CFLAGS="$xorg_testset_save_CFLAGS"
14267
14268		eval supported=\$$cacheid
14269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14270$as_echo "$supported" >&6; }
14271		if test "$supported" = "yes" ; then
14272			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14273			found="yes"
14274		fi
14275	fi
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291xorg_testset_save_CFLAGS="$CFLAGS"
14292
14293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14298  $as_echo_n "(cached) " >&6
14299else
14300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h.  */
14302int i;
14303_ACEOF
14304if ac_fn_c_try_compile "$LINENO"; then :
14305  xorg_cv_cc_flag_unknown_warning_option=yes
14306else
14307  xorg_cv_cc_flag_unknown_warning_option=no
14308fi
14309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310fi
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14314	CFLAGS="$xorg_testset_save_CFLAGS"
14315fi
14316
14317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14320	fi
14321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329int i;
14330_ACEOF
14331if ac_fn_c_try_compile "$LINENO"; then :
14332  xorg_cv_cc_flag_unused_command_line_argument=yes
14333else
14334  xorg_cv_cc_flag_unused_command_line_argument=no
14335fi
14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337fi
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14341	CFLAGS="$xorg_testset_save_CFLAGS"
14342fi
14343
14344found="no"
14345
14346	if test $found = "no" ; then
14347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14349		fi
14350
14351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14353		fi
14354
14355		CFLAGS="$CFLAGS -Wshadow"
14356
14357		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14358$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14359		cacheid=xorg_cv_cc_flag__Wshadow
14360		if eval \${$cacheid+:} false; then :
14361  $as_echo_n "(cached) " >&6
14362else
14363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h.  */
14365int i;
14366int
14367main ()
14368{
14369
14370  ;
14371  return 0;
14372}
14373_ACEOF
14374if ac_fn_c_try_link "$LINENO"; then :
14375  eval $cacheid=yes
14376else
14377  eval $cacheid=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext \
14380    conftest$ac_exeext conftest.$ac_ext
14381fi
14382
14383
14384		CFLAGS="$xorg_testset_save_CFLAGS"
14385
14386		eval supported=\$$cacheid
14387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14388$as_echo "$supported" >&6; }
14389		if test "$supported" = "yes" ; then
14390			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14391			found="yes"
14392		fi
14393	fi
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409xorg_testset_save_CFLAGS="$CFLAGS"
14410
14411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14416  $as_echo_n "(cached) " >&6
14417else
14418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419/* end confdefs.h.  */
14420int i;
14421_ACEOF
14422if ac_fn_c_try_compile "$LINENO"; then :
14423  xorg_cv_cc_flag_unknown_warning_option=yes
14424else
14425  xorg_cv_cc_flag_unknown_warning_option=no
14426fi
14427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14431	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14432	CFLAGS="$xorg_testset_save_CFLAGS"
14433fi
14434
14435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14436	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14437		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14438	fi
14439	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h.  */
14447int i;
14448_ACEOF
14449if ac_fn_c_try_compile "$LINENO"; then :
14450  xorg_cv_cc_flag_unused_command_line_argument=yes
14451else
14452  xorg_cv_cc_flag_unused_command_line_argument=no
14453fi
14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14459	CFLAGS="$xorg_testset_save_CFLAGS"
14460fi
14461
14462found="no"
14463
14464	if test $found = "no" ; then
14465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14467		fi
14468
14469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14471		fi
14472
14473		CFLAGS="$CFLAGS -Wmissing-noreturn"
14474
14475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14476$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14477		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14478		if eval \${$cacheid+:} false; then :
14479  $as_echo_n "(cached) " >&6
14480else
14481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482/* end confdefs.h.  */
14483int i;
14484int
14485main ()
14486{
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_link "$LINENO"; then :
14493  eval $cacheid=yes
14494else
14495  eval $cacheid=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext \
14498    conftest$ac_exeext conftest.$ac_ext
14499fi
14500
14501
14502		CFLAGS="$xorg_testset_save_CFLAGS"
14503
14504		eval supported=\$$cacheid
14505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14506$as_echo "$supported" >&6; }
14507		if test "$supported" = "yes" ; then
14508			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14509			found="yes"
14510		fi
14511	fi
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527xorg_testset_save_CFLAGS="$CFLAGS"
14528
14529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14534  $as_echo_n "(cached) " >&6
14535else
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539_ACEOF
14540if ac_fn_c_try_compile "$LINENO"; then :
14541  xorg_cv_cc_flag_unknown_warning_option=yes
14542else
14543  xorg_cv_cc_flag_unknown_warning_option=no
14544fi
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546fi
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14550	CFLAGS="$xorg_testset_save_CFLAGS"
14551fi
14552
14553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14556	fi
14557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564/* end confdefs.h.  */
14565int i;
14566_ACEOF
14567if ac_fn_c_try_compile "$LINENO"; then :
14568  xorg_cv_cc_flag_unused_command_line_argument=yes
14569else
14570  xorg_cv_cc_flag_unused_command_line_argument=no
14571fi
14572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573fi
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14577	CFLAGS="$xorg_testset_save_CFLAGS"
14578fi
14579
14580found="no"
14581
14582	if test $found = "no" ; then
14583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14585		fi
14586
14587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14589		fi
14590
14591		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14592
14593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14594$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14595		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14596		if eval \${$cacheid+:} false; then :
14597  $as_echo_n "(cached) " >&6
14598else
14599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h.  */
14601int i;
14602int
14603main ()
14604{
14605
14606  ;
14607  return 0;
14608}
14609_ACEOF
14610if ac_fn_c_try_link "$LINENO"; then :
14611  eval $cacheid=yes
14612else
14613  eval $cacheid=no
14614fi
14615rm -f core conftest.err conftest.$ac_objext \
14616    conftest$ac_exeext conftest.$ac_ext
14617fi
14618
14619
14620		CFLAGS="$xorg_testset_save_CFLAGS"
14621
14622		eval supported=\$$cacheid
14623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14624$as_echo "$supported" >&6; }
14625		if test "$supported" = "yes" ; then
14626			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14627			found="yes"
14628		fi
14629	fi
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645xorg_testset_save_CFLAGS="$CFLAGS"
14646
14647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14652  $as_echo_n "(cached) " >&6
14653else
14654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655/* end confdefs.h.  */
14656int i;
14657_ACEOF
14658if ac_fn_c_try_compile "$LINENO"; then :
14659  xorg_cv_cc_flag_unknown_warning_option=yes
14660else
14661  xorg_cv_cc_flag_unknown_warning_option=no
14662fi
14663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664fi
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14668	CFLAGS="$xorg_testset_save_CFLAGS"
14669fi
14670
14671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14674	fi
14675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14679  $as_echo_n "(cached) " >&6
14680else
14681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682/* end confdefs.h.  */
14683int i;
14684_ACEOF
14685if ac_fn_c_try_compile "$LINENO"; then :
14686  xorg_cv_cc_flag_unused_command_line_argument=yes
14687else
14688  xorg_cv_cc_flag_unused_command_line_argument=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691fi
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14695	CFLAGS="$xorg_testset_save_CFLAGS"
14696fi
14697
14698found="no"
14699
14700	if test $found = "no" ; then
14701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14703		fi
14704
14705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14707		fi
14708
14709		CFLAGS="$CFLAGS -Wredundant-decls"
14710
14711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14712$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14713		cacheid=xorg_cv_cc_flag__Wredundant_decls
14714		if eval \${$cacheid+:} false; then :
14715  $as_echo_n "(cached) " >&6
14716else
14717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719int i;
14720int
14721main ()
14722{
14723
14724  ;
14725  return 0;
14726}
14727_ACEOF
14728if ac_fn_c_try_link "$LINENO"; then :
14729  eval $cacheid=yes
14730else
14731  eval $cacheid=no
14732fi
14733rm -f core conftest.err conftest.$ac_objext \
14734    conftest$ac_exeext conftest.$ac_ext
14735fi
14736
14737
14738		CFLAGS="$xorg_testset_save_CFLAGS"
14739
14740		eval supported=\$$cacheid
14741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14742$as_echo "$supported" >&6; }
14743		if test "$supported" = "yes" ; then
14744			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14745			found="yes"
14746		fi
14747	fi
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763xorg_testset_save_CFLAGS="$CFLAGS"
14764
14765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14770  $as_echo_n "(cached) " >&6
14771else
14772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h.  */
14774int i;
14775_ACEOF
14776if ac_fn_c_try_compile "$LINENO"; then :
14777  xorg_cv_cc_flag_unknown_warning_option=yes
14778else
14779  xorg_cv_cc_flag_unknown_warning_option=no
14780fi
14781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782fi
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14786	CFLAGS="$xorg_testset_save_CFLAGS"
14787fi
14788
14789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14792	fi
14793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14797  $as_echo_n "(cached) " >&6
14798else
14799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800/* end confdefs.h.  */
14801int i;
14802_ACEOF
14803if ac_fn_c_try_compile "$LINENO"; then :
14804  xorg_cv_cc_flag_unused_command_line_argument=yes
14805else
14806  xorg_cv_cc_flag_unused_command_line_argument=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809fi
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14813	CFLAGS="$xorg_testset_save_CFLAGS"
14814fi
14815
14816found="no"
14817
14818	if test $found = "no" ; then
14819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14821		fi
14822
14823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825		fi
14826
14827		CFLAGS="$CFLAGS -Wlogical-op"
14828
14829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14830$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14831		cacheid=xorg_cv_cc_flag__Wlogical_op
14832		if eval \${$cacheid+:} false; then :
14833  $as_echo_n "(cached) " >&6
14834else
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837int i;
14838int
14839main ()
14840{
14841
14842  ;
14843  return 0;
14844}
14845_ACEOF
14846if ac_fn_c_try_link "$LINENO"; then :
14847  eval $cacheid=yes
14848else
14849  eval $cacheid=no
14850fi
14851rm -f core conftest.err conftest.$ac_objext \
14852    conftest$ac_exeext conftest.$ac_ext
14853fi
14854
14855
14856		CFLAGS="$xorg_testset_save_CFLAGS"
14857
14858		eval supported=\$$cacheid
14859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14860$as_echo "$supported" >&6; }
14861		if test "$supported" = "yes" ; then
14862			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14863			found="yes"
14864		fi
14865	fi
14866
14867
14868
14869# These are currently disabled because they are noisy.  They will be enabled
14870# in the future once the codebase is sufficiently modernized to silence
14871# them.  For now, I don't want them to drown out the other warnings.
14872# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14873# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14874# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14875
14876# Turn some warnings into errors, so we don't accidently get successful builds
14877# when there are problems that should be fixed.
14878
14879if test "x$SELECTIVE_WERROR" = "xyes" ; then
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893xorg_testset_save_CFLAGS="$CFLAGS"
14894
14895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14900  $as_echo_n "(cached) " >&6
14901else
14902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904int i;
14905_ACEOF
14906if ac_fn_c_try_compile "$LINENO"; then :
14907  xorg_cv_cc_flag_unknown_warning_option=yes
14908else
14909  xorg_cv_cc_flag_unknown_warning_option=no
14910fi
14911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14916	CFLAGS="$xorg_testset_save_CFLAGS"
14917fi
14918
14919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14922	fi
14923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14927  $as_echo_n "(cached) " >&6
14928else
14929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930/* end confdefs.h.  */
14931int i;
14932_ACEOF
14933if ac_fn_c_try_compile "$LINENO"; then :
14934  xorg_cv_cc_flag_unused_command_line_argument=yes
14935else
14936  xorg_cv_cc_flag_unused_command_line_argument=no
14937fi
14938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939fi
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14943	CFLAGS="$xorg_testset_save_CFLAGS"
14944fi
14945
14946found="no"
14947
14948	if test $found = "no" ; then
14949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951		fi
14952
14953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14955		fi
14956
14957		CFLAGS="$CFLAGS -Werror=implicit"
14958
14959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14960$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14961		cacheid=xorg_cv_cc_flag__Werror_implicit
14962		if eval \${$cacheid+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967int i;
14968int
14969main ()
14970{
14971
14972  ;
14973  return 0;
14974}
14975_ACEOF
14976if ac_fn_c_try_link "$LINENO"; then :
14977  eval $cacheid=yes
14978else
14979  eval $cacheid=no
14980fi
14981rm -f core conftest.err conftest.$ac_objext \
14982    conftest$ac_exeext conftest.$ac_ext
14983fi
14984
14985
14986		CFLAGS="$xorg_testset_save_CFLAGS"
14987
14988		eval supported=\$$cacheid
14989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14990$as_echo "$supported" >&6; }
14991		if test "$supported" = "yes" ; then
14992			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14993			found="yes"
14994		fi
14995	fi
14996
14997	if test $found = "no" ; then
14998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15000		fi
15001
15002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15004		fi
15005
15006		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15007
15008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15009$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15010		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15011		if eval \${$cacheid+:} false; then :
15012  $as_echo_n "(cached) " >&6
15013else
15014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h.  */
15016int i;
15017int
15018main ()
15019{
15020
15021  ;
15022  return 0;
15023}
15024_ACEOF
15025if ac_fn_c_try_link "$LINENO"; then :
15026  eval $cacheid=yes
15027else
15028  eval $cacheid=no
15029fi
15030rm -f core conftest.err conftest.$ac_objext \
15031    conftest$ac_exeext conftest.$ac_ext
15032fi
15033
15034
15035		CFLAGS="$xorg_testset_save_CFLAGS"
15036
15037		eval supported=\$$cacheid
15038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15039$as_echo "$supported" >&6; }
15040		if test "$supported" = "yes" ; then
15041			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15042			found="yes"
15043		fi
15044	fi
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060xorg_testset_save_CFLAGS="$CFLAGS"
15061
15062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15067  $as_echo_n "(cached) " >&6
15068else
15069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070/* end confdefs.h.  */
15071int i;
15072_ACEOF
15073if ac_fn_c_try_compile "$LINENO"; then :
15074  xorg_cv_cc_flag_unknown_warning_option=yes
15075else
15076  xorg_cv_cc_flag_unknown_warning_option=no
15077fi
15078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi
15080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15083	CFLAGS="$xorg_testset_save_CFLAGS"
15084fi
15085
15086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15089	fi
15090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098int i;
15099_ACEOF
15100if ac_fn_c_try_compile "$LINENO"; then :
15101  xorg_cv_cc_flag_unused_command_line_argument=yes
15102else
15103  xorg_cv_cc_flag_unused_command_line_argument=no
15104fi
15105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15110	CFLAGS="$xorg_testset_save_CFLAGS"
15111fi
15112
15113found="no"
15114
15115	if test $found = "no" ; then
15116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15118		fi
15119
15120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15122		fi
15123
15124		CFLAGS="$CFLAGS -Werror=nonnull"
15125
15126		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15127$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15128		cacheid=xorg_cv_cc_flag__Werror_nonnull
15129		if eval \${$cacheid+:} false; then :
15130  $as_echo_n "(cached) " >&6
15131else
15132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h.  */
15134int i;
15135int
15136main ()
15137{
15138
15139  ;
15140  return 0;
15141}
15142_ACEOF
15143if ac_fn_c_try_link "$LINENO"; then :
15144  eval $cacheid=yes
15145else
15146  eval $cacheid=no
15147fi
15148rm -f core conftest.err conftest.$ac_objext \
15149    conftest$ac_exeext conftest.$ac_ext
15150fi
15151
15152
15153		CFLAGS="$xorg_testset_save_CFLAGS"
15154
15155		eval supported=\$$cacheid
15156		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15157$as_echo "$supported" >&6; }
15158		if test "$supported" = "yes" ; then
15159			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15160			found="yes"
15161		fi
15162	fi
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178xorg_testset_save_CFLAGS="$CFLAGS"
15179
15180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15185  $as_echo_n "(cached) " >&6
15186else
15187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h.  */
15189int i;
15190_ACEOF
15191if ac_fn_c_try_compile "$LINENO"; then :
15192  xorg_cv_cc_flag_unknown_warning_option=yes
15193else
15194  xorg_cv_cc_flag_unknown_warning_option=no
15195fi
15196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197fi
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15201	CFLAGS="$xorg_testset_save_CFLAGS"
15202fi
15203
15204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15207	fi
15208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h.  */
15216int i;
15217_ACEOF
15218if ac_fn_c_try_compile "$LINENO"; then :
15219  xorg_cv_cc_flag_unused_command_line_argument=yes
15220else
15221  xorg_cv_cc_flag_unused_command_line_argument=no
15222fi
15223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224fi
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15228	CFLAGS="$xorg_testset_save_CFLAGS"
15229fi
15230
15231found="no"
15232
15233	if test $found = "no" ; then
15234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15236		fi
15237
15238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15240		fi
15241
15242		CFLAGS="$CFLAGS -Werror=init-self"
15243
15244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15245$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15246		cacheid=xorg_cv_cc_flag__Werror_init_self
15247		if eval \${$cacheid+:} false; then :
15248  $as_echo_n "(cached) " >&6
15249else
15250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h.  */
15252int i;
15253int
15254main ()
15255{
15256
15257  ;
15258  return 0;
15259}
15260_ACEOF
15261if ac_fn_c_try_link "$LINENO"; then :
15262  eval $cacheid=yes
15263else
15264  eval $cacheid=no
15265fi
15266rm -f core conftest.err conftest.$ac_objext \
15267    conftest$ac_exeext conftest.$ac_ext
15268fi
15269
15270
15271		CFLAGS="$xorg_testset_save_CFLAGS"
15272
15273		eval supported=\$$cacheid
15274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15275$as_echo "$supported" >&6; }
15276		if test "$supported" = "yes" ; then
15277			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15278			found="yes"
15279		fi
15280	fi
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296xorg_testset_save_CFLAGS="$CFLAGS"
15297
15298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15303  $as_echo_n "(cached) " >&6
15304else
15305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307int i;
15308_ACEOF
15309if ac_fn_c_try_compile "$LINENO"; then :
15310  xorg_cv_cc_flag_unknown_warning_option=yes
15311else
15312  xorg_cv_cc_flag_unknown_warning_option=no
15313fi
15314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315fi
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15319	CFLAGS="$xorg_testset_save_CFLAGS"
15320fi
15321
15322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15325	fi
15326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15330  $as_echo_n "(cached) " >&6
15331else
15332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h.  */
15334int i;
15335_ACEOF
15336if ac_fn_c_try_compile "$LINENO"; then :
15337  xorg_cv_cc_flag_unused_command_line_argument=yes
15338else
15339  xorg_cv_cc_flag_unused_command_line_argument=no
15340fi
15341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342fi
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15346	CFLAGS="$xorg_testset_save_CFLAGS"
15347fi
15348
15349found="no"
15350
15351	if test $found = "no" ; then
15352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15354		fi
15355
15356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15358		fi
15359
15360		CFLAGS="$CFLAGS -Werror=main"
15361
15362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15363$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15364		cacheid=xorg_cv_cc_flag__Werror_main
15365		if eval \${$cacheid+:} false; then :
15366  $as_echo_n "(cached) " >&6
15367else
15368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369/* end confdefs.h.  */
15370int i;
15371int
15372main ()
15373{
15374
15375  ;
15376  return 0;
15377}
15378_ACEOF
15379if ac_fn_c_try_link "$LINENO"; then :
15380  eval $cacheid=yes
15381else
15382  eval $cacheid=no
15383fi
15384rm -f core conftest.err conftest.$ac_objext \
15385    conftest$ac_exeext conftest.$ac_ext
15386fi
15387
15388
15389		CFLAGS="$xorg_testset_save_CFLAGS"
15390
15391		eval supported=\$$cacheid
15392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15393$as_echo "$supported" >&6; }
15394		if test "$supported" = "yes" ; then
15395			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15396			found="yes"
15397		fi
15398	fi
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414xorg_testset_save_CFLAGS="$CFLAGS"
15415
15416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15421  $as_echo_n "(cached) " >&6
15422else
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425int i;
15426_ACEOF
15427if ac_fn_c_try_compile "$LINENO"; then :
15428  xorg_cv_cc_flag_unknown_warning_option=yes
15429else
15430  xorg_cv_cc_flag_unknown_warning_option=no
15431fi
15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15437	CFLAGS="$xorg_testset_save_CFLAGS"
15438fi
15439
15440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443	fi
15444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452int i;
15453_ACEOF
15454if ac_fn_c_try_compile "$LINENO"; then :
15455  xorg_cv_cc_flag_unused_command_line_argument=yes
15456else
15457  xorg_cv_cc_flag_unused_command_line_argument=no
15458fi
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460fi
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15464	CFLAGS="$xorg_testset_save_CFLAGS"
15465fi
15466
15467found="no"
15468
15469	if test $found = "no" ; then
15470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15472		fi
15473
15474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15476		fi
15477
15478		CFLAGS="$CFLAGS -Werror=missing-braces"
15479
15480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15481$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15482		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15483		if eval \${$cacheid+:} false; then :
15484  $as_echo_n "(cached) " >&6
15485else
15486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488int i;
15489int
15490main ()
15491{
15492
15493  ;
15494  return 0;
15495}
15496_ACEOF
15497if ac_fn_c_try_link "$LINENO"; then :
15498  eval $cacheid=yes
15499else
15500  eval $cacheid=no
15501fi
15502rm -f core conftest.err conftest.$ac_objext \
15503    conftest$ac_exeext conftest.$ac_ext
15504fi
15505
15506
15507		CFLAGS="$xorg_testset_save_CFLAGS"
15508
15509		eval supported=\$$cacheid
15510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15511$as_echo "$supported" >&6; }
15512		if test "$supported" = "yes" ; then
15513			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15514			found="yes"
15515		fi
15516	fi
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532xorg_testset_save_CFLAGS="$CFLAGS"
15533
15534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15539  $as_echo_n "(cached) " >&6
15540else
15541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h.  */
15543int i;
15544_ACEOF
15545if ac_fn_c_try_compile "$LINENO"; then :
15546  xorg_cv_cc_flag_unknown_warning_option=yes
15547else
15548  xorg_cv_cc_flag_unknown_warning_option=no
15549fi
15550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551fi
15552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15555	CFLAGS="$xorg_testset_save_CFLAGS"
15556fi
15557
15558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561	fi
15562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15566  $as_echo_n "(cached) " >&6
15567else
15568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h.  */
15570int i;
15571_ACEOF
15572if ac_fn_c_try_compile "$LINENO"; then :
15573  xorg_cv_cc_flag_unused_command_line_argument=yes
15574else
15575  xorg_cv_cc_flag_unused_command_line_argument=no
15576fi
15577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578fi
15579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15582	CFLAGS="$xorg_testset_save_CFLAGS"
15583fi
15584
15585found="no"
15586
15587	if test $found = "no" ; then
15588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15590		fi
15591
15592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15594		fi
15595
15596		CFLAGS="$CFLAGS -Werror=sequence-point"
15597
15598		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15599$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15600		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15601		if eval \${$cacheid+:} false; then :
15602  $as_echo_n "(cached) " >&6
15603else
15604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606int i;
15607int
15608main ()
15609{
15610
15611  ;
15612  return 0;
15613}
15614_ACEOF
15615if ac_fn_c_try_link "$LINENO"; then :
15616  eval $cacheid=yes
15617else
15618  eval $cacheid=no
15619fi
15620rm -f core conftest.err conftest.$ac_objext \
15621    conftest$ac_exeext conftest.$ac_ext
15622fi
15623
15624
15625		CFLAGS="$xorg_testset_save_CFLAGS"
15626
15627		eval supported=\$$cacheid
15628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15629$as_echo "$supported" >&6; }
15630		if test "$supported" = "yes" ; then
15631			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15632			found="yes"
15633		fi
15634	fi
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650xorg_testset_save_CFLAGS="$CFLAGS"
15651
15652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h.  */
15661int i;
15662_ACEOF
15663if ac_fn_c_try_compile "$LINENO"; then :
15664  xorg_cv_cc_flag_unknown_warning_option=yes
15665else
15666  xorg_cv_cc_flag_unknown_warning_option=no
15667fi
15668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669fi
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15673	CFLAGS="$xorg_testset_save_CFLAGS"
15674fi
15675
15676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679	fi
15680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15684  $as_echo_n "(cached) " >&6
15685else
15686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687/* end confdefs.h.  */
15688int i;
15689_ACEOF
15690if ac_fn_c_try_compile "$LINENO"; then :
15691  xorg_cv_cc_flag_unused_command_line_argument=yes
15692else
15693  xorg_cv_cc_flag_unused_command_line_argument=no
15694fi
15695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15700	CFLAGS="$xorg_testset_save_CFLAGS"
15701fi
15702
15703found="no"
15704
15705	if test $found = "no" ; then
15706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15708		fi
15709
15710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15712		fi
15713
15714		CFLAGS="$CFLAGS -Werror=return-type"
15715
15716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15717$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15718		cacheid=xorg_cv_cc_flag__Werror_return_type
15719		if eval \${$cacheid+:} false; then :
15720  $as_echo_n "(cached) " >&6
15721else
15722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723/* end confdefs.h.  */
15724int i;
15725int
15726main ()
15727{
15728
15729  ;
15730  return 0;
15731}
15732_ACEOF
15733if ac_fn_c_try_link "$LINENO"; then :
15734  eval $cacheid=yes
15735else
15736  eval $cacheid=no
15737fi
15738rm -f core conftest.err conftest.$ac_objext \
15739    conftest$ac_exeext conftest.$ac_ext
15740fi
15741
15742
15743		CFLAGS="$xorg_testset_save_CFLAGS"
15744
15745		eval supported=\$$cacheid
15746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15747$as_echo "$supported" >&6; }
15748		if test "$supported" = "yes" ; then
15749			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15750			found="yes"
15751		fi
15752	fi
15753
15754	if test $found = "no" ; then
15755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757		fi
15758
15759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761		fi
15762
15763		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15764
15765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15766$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15767		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15768		if eval \${$cacheid+:} false; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772/* end confdefs.h.  */
15773int i;
15774int
15775main ()
15776{
15777
15778  ;
15779  return 0;
15780}
15781_ACEOF
15782if ac_fn_c_try_link "$LINENO"; then :
15783  eval $cacheid=yes
15784else
15785  eval $cacheid=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext \
15788    conftest$ac_exeext conftest.$ac_ext
15789fi
15790
15791
15792		CFLAGS="$xorg_testset_save_CFLAGS"
15793
15794		eval supported=\$$cacheid
15795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796$as_echo "$supported" >&6; }
15797		if test "$supported" = "yes" ; then
15798			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15799			found="yes"
15800		fi
15801	fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817xorg_testset_save_CFLAGS="$CFLAGS"
15818
15819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15824  $as_echo_n "(cached) " >&6
15825else
15826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h.  */
15828int i;
15829_ACEOF
15830if ac_fn_c_try_compile "$LINENO"; then :
15831  xorg_cv_cc_flag_unknown_warning_option=yes
15832else
15833  xorg_cv_cc_flag_unknown_warning_option=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15840	CFLAGS="$xorg_testset_save_CFLAGS"
15841fi
15842
15843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	fi
15847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15851  $as_echo_n "(cached) " >&6
15852else
15853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854/* end confdefs.h.  */
15855int i;
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"; then :
15858  xorg_cv_cc_flag_unused_command_line_argument=yes
15859else
15860  xorg_cv_cc_flag_unused_command_line_argument=no
15861fi
15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863fi
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15867	CFLAGS="$xorg_testset_save_CFLAGS"
15868fi
15869
15870found="no"
15871
15872	if test $found = "no" ; then
15873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875		fi
15876
15877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15879		fi
15880
15881		CFLAGS="$CFLAGS -Werror=trigraphs"
15882
15883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15884$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15885		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15886		if eval \${$cacheid+:} false; then :
15887  $as_echo_n "(cached) " >&6
15888else
15889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890/* end confdefs.h.  */
15891int i;
15892int
15893main ()
15894{
15895
15896  ;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_link "$LINENO"; then :
15901  eval $cacheid=yes
15902else
15903  eval $cacheid=no
15904fi
15905rm -f core conftest.err conftest.$ac_objext \
15906    conftest$ac_exeext conftest.$ac_ext
15907fi
15908
15909
15910		CFLAGS="$xorg_testset_save_CFLAGS"
15911
15912		eval supported=\$$cacheid
15913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15914$as_echo "$supported" >&6; }
15915		if test "$supported" = "yes" ; then
15916			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15917			found="yes"
15918		fi
15919	fi
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935xorg_testset_save_CFLAGS="$CFLAGS"
15936
15937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15942  $as_echo_n "(cached) " >&6
15943else
15944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946int i;
15947_ACEOF
15948if ac_fn_c_try_compile "$LINENO"; then :
15949  xorg_cv_cc_flag_unknown_warning_option=yes
15950else
15951  xorg_cv_cc_flag_unknown_warning_option=no
15952fi
15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954fi
15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15958	CFLAGS="$xorg_testset_save_CFLAGS"
15959fi
15960
15961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15964	fi
15965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15969  $as_echo_n "(cached) " >&6
15970else
15971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"; then :
15976  xorg_cv_cc_flag_unused_command_line_argument=yes
15977else
15978  xorg_cv_cc_flag_unused_command_line_argument=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981fi
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15985	CFLAGS="$xorg_testset_save_CFLAGS"
15986fi
15987
15988found="no"
15989
15990	if test $found = "no" ; then
15991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993		fi
15994
15995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15997		fi
15998
15999		CFLAGS="$CFLAGS -Werror=array-bounds"
16000
16001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16002$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16003		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16004		if eval \${$cacheid+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010int
16011main ()
16012{
16013
16014  ;
16015  return 0;
16016}
16017_ACEOF
16018if ac_fn_c_try_link "$LINENO"; then :
16019  eval $cacheid=yes
16020else
16021  eval $cacheid=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext \
16024    conftest$ac_exeext conftest.$ac_ext
16025fi
16026
16027
16028		CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030		eval supported=\$$cacheid
16031		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032$as_echo "$supported" >&6; }
16033		if test "$supported" = "yes" ; then
16034			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16035			found="yes"
16036		fi
16037	fi
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053xorg_testset_save_CFLAGS="$CFLAGS"
16054
16055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16056	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16060  $as_echo_n "(cached) " >&6
16061else
16062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063/* end confdefs.h.  */
16064int i;
16065_ACEOF
16066if ac_fn_c_try_compile "$LINENO"; then :
16067  xorg_cv_cc_flag_unknown_warning_option=yes
16068else
16069  xorg_cv_cc_flag_unknown_warning_option=no
16070fi
16071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16076	CFLAGS="$xorg_testset_save_CFLAGS"
16077fi
16078
16079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082	fi
16083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16087  $as_echo_n "(cached) " >&6
16088else
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092_ACEOF
16093if ac_fn_c_try_compile "$LINENO"; then :
16094  xorg_cv_cc_flag_unused_command_line_argument=yes
16095else
16096  xorg_cv_cc_flag_unused_command_line_argument=no
16097fi
16098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099fi
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16102	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16103	CFLAGS="$xorg_testset_save_CFLAGS"
16104fi
16105
16106found="no"
16107
16108	if test $found = "no" ; then
16109		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16110			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111		fi
16112
16113		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16114			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16115		fi
16116
16117		CFLAGS="$CFLAGS -Werror=write-strings"
16118
16119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16120$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16121		cacheid=xorg_cv_cc_flag__Werror_write_strings
16122		if eval \${$cacheid+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128int
16129main ()
16130{
16131
16132  ;
16133  return 0;
16134}
16135_ACEOF
16136if ac_fn_c_try_link "$LINENO"; then :
16137  eval $cacheid=yes
16138else
16139  eval $cacheid=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext \
16142    conftest$ac_exeext conftest.$ac_ext
16143fi
16144
16145
16146		CFLAGS="$xorg_testset_save_CFLAGS"
16147
16148		eval supported=\$$cacheid
16149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16150$as_echo "$supported" >&6; }
16151		if test "$supported" = "yes" ; then
16152			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16153			found="yes"
16154		fi
16155	fi
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171xorg_testset_save_CFLAGS="$CFLAGS"
16172
16173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181/* end confdefs.h.  */
16182int i;
16183_ACEOF
16184if ac_fn_c_try_compile "$LINENO"; then :
16185  xorg_cv_cc_flag_unknown_warning_option=yes
16186else
16187  xorg_cv_cc_flag_unknown_warning_option=no
16188fi
16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190fi
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16194	CFLAGS="$xorg_testset_save_CFLAGS"
16195fi
16196
16197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16200	fi
16201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16208/* end confdefs.h.  */
16209int i;
16210_ACEOF
16211if ac_fn_c_try_compile "$LINENO"; then :
16212  xorg_cv_cc_flag_unused_command_line_argument=yes
16213else
16214  xorg_cv_cc_flag_unused_command_line_argument=no
16215fi
16216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16220	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16221	CFLAGS="$xorg_testset_save_CFLAGS"
16222fi
16223
16224found="no"
16225
16226	if test $found = "no" ; then
16227		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16228			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229		fi
16230
16231		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16232			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16233		fi
16234
16235		CFLAGS="$CFLAGS -Werror=address"
16236
16237		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16238$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16239		cacheid=xorg_cv_cc_flag__Werror_address
16240		if eval \${$cacheid+:} false; then :
16241  $as_echo_n "(cached) " >&6
16242else
16243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245int i;
16246int
16247main ()
16248{
16249
16250  ;
16251  return 0;
16252}
16253_ACEOF
16254if ac_fn_c_try_link "$LINENO"; then :
16255  eval $cacheid=yes
16256else
16257  eval $cacheid=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext \
16260    conftest$ac_exeext conftest.$ac_ext
16261fi
16262
16263
16264		CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266		eval supported=\$$cacheid
16267		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268$as_echo "$supported" >&6; }
16269		if test "$supported" = "yes" ; then
16270			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16271			found="yes"
16272		fi
16273	fi
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289xorg_testset_save_CFLAGS="$CFLAGS"
16290
16291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16296  $as_echo_n "(cached) " >&6
16297else
16298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h.  */
16300int i;
16301_ACEOF
16302if ac_fn_c_try_compile "$LINENO"; then :
16303  xorg_cv_cc_flag_unknown_warning_option=yes
16304else
16305  xorg_cv_cc_flag_unknown_warning_option=no
16306fi
16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308fi
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16312	CFLAGS="$xorg_testset_save_CFLAGS"
16313fi
16314
16315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318	fi
16319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16323  $as_echo_n "(cached) " >&6
16324else
16325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327int i;
16328_ACEOF
16329if ac_fn_c_try_compile "$LINENO"; then :
16330  xorg_cv_cc_flag_unused_command_line_argument=yes
16331else
16332  xorg_cv_cc_flag_unused_command_line_argument=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335fi
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16339	CFLAGS="$xorg_testset_save_CFLAGS"
16340fi
16341
16342found="no"
16343
16344	if test $found = "no" ; then
16345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16347		fi
16348
16349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16351		fi
16352
16353		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16354
16355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16356$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16357		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16358		if eval \${$cacheid+:} false; then :
16359  $as_echo_n "(cached) " >&6
16360else
16361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362/* end confdefs.h.  */
16363int i;
16364int
16365main ()
16366{
16367
16368  ;
16369  return 0;
16370}
16371_ACEOF
16372if ac_fn_c_try_link "$LINENO"; then :
16373  eval $cacheid=yes
16374else
16375  eval $cacheid=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext \
16378    conftest$ac_exeext conftest.$ac_ext
16379fi
16380
16381
16382		CFLAGS="$xorg_testset_save_CFLAGS"
16383
16384		eval supported=\$$cacheid
16385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16386$as_echo "$supported" >&6; }
16387		if test "$supported" = "yes" ; then
16388			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16389			found="yes"
16390		fi
16391	fi
16392
16393	if test $found = "no" ; then
16394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16396		fi
16397
16398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16400		fi
16401
16402		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16403
16404		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16405$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16406		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16407		if eval \${$cacheid+:} false; then :
16408  $as_echo_n "(cached) " >&6
16409else
16410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412int i;
16413int
16414main ()
16415{
16416
16417  ;
16418  return 0;
16419}
16420_ACEOF
16421if ac_fn_c_try_link "$LINENO"; then :
16422  eval $cacheid=yes
16423else
16424  eval $cacheid=no
16425fi
16426rm -f core conftest.err conftest.$ac_objext \
16427    conftest$ac_exeext conftest.$ac_ext
16428fi
16429
16430
16431		CFLAGS="$xorg_testset_save_CFLAGS"
16432
16433		eval supported=\$$cacheid
16434		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16435$as_echo "$supported" >&6; }
16436		if test "$supported" = "yes" ; then
16437			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16438			found="yes"
16439		fi
16440	fi
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456xorg_testset_save_CFLAGS="$CFLAGS"
16457
16458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16463  $as_echo_n "(cached) " >&6
16464else
16465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466/* end confdefs.h.  */
16467int i;
16468_ACEOF
16469if ac_fn_c_try_compile "$LINENO"; then :
16470  xorg_cv_cc_flag_unknown_warning_option=yes
16471else
16472  xorg_cv_cc_flag_unknown_warning_option=no
16473fi
16474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475fi
16476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16479	CFLAGS="$xorg_testset_save_CFLAGS"
16480fi
16481
16482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16485	fi
16486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16490  $as_echo_n "(cached) " >&6
16491else
16492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493/* end confdefs.h.  */
16494int i;
16495_ACEOF
16496if ac_fn_c_try_compile "$LINENO"; then :
16497  xorg_cv_cc_flag_unused_command_line_argument=yes
16498else
16499  xorg_cv_cc_flag_unused_command_line_argument=no
16500fi
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502fi
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16506	CFLAGS="$xorg_testset_save_CFLAGS"
16507fi
16508
16509found="no"
16510
16511	if test $found = "no" ; then
16512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16514		fi
16515
16516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16518		fi
16519
16520		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16521
16522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16523$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16524		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16525		if eval \${$cacheid+:} false; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530int i;
16531int
16532main ()
16533{
16534
16535  ;
16536  return 0;
16537}
16538_ACEOF
16539if ac_fn_c_try_link "$LINENO"; then :
16540  eval $cacheid=yes
16541else
16542  eval $cacheid=no
16543fi
16544rm -f core conftest.err conftest.$ac_objext \
16545    conftest$ac_exeext conftest.$ac_ext
16546fi
16547
16548
16549		CFLAGS="$xorg_testset_save_CFLAGS"
16550
16551		eval supported=\$$cacheid
16552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16553$as_echo "$supported" >&6; }
16554		if test "$supported" = "yes" ; then
16555			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16556			found="yes"
16557		fi
16558	fi
16559
16560 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16561else
16562{ $as_echo "$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
16563$as_echo "$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;}
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577xorg_testset_save_CFLAGS="$CFLAGS"
16578
16579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16584  $as_echo_n "(cached) " >&6
16585else
16586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587/* end confdefs.h.  */
16588int i;
16589_ACEOF
16590if ac_fn_c_try_compile "$LINENO"; then :
16591  xorg_cv_cc_flag_unknown_warning_option=yes
16592else
16593  xorg_cv_cc_flag_unknown_warning_option=no
16594fi
16595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596fi
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16600	CFLAGS="$xorg_testset_save_CFLAGS"
16601fi
16602
16603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606	fi
16607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16611  $as_echo_n "(cached) " >&6
16612else
16613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h.  */
16615int i;
16616_ACEOF
16617if ac_fn_c_try_compile "$LINENO"; then :
16618  xorg_cv_cc_flag_unused_command_line_argument=yes
16619else
16620  xorg_cv_cc_flag_unused_command_line_argument=no
16621fi
16622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623fi
16624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16627	CFLAGS="$xorg_testset_save_CFLAGS"
16628fi
16629
16630found="no"
16631
16632	if test $found = "no" ; then
16633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16635		fi
16636
16637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16639		fi
16640
16641		CFLAGS="$CFLAGS -Wimplicit"
16642
16643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16644$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16645		cacheid=xorg_cv_cc_flag__Wimplicit
16646		if eval \${$cacheid+:} false; then :
16647  $as_echo_n "(cached) " >&6
16648else
16649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650/* end confdefs.h.  */
16651int i;
16652int
16653main ()
16654{
16655
16656  ;
16657  return 0;
16658}
16659_ACEOF
16660if ac_fn_c_try_link "$LINENO"; then :
16661  eval $cacheid=yes
16662else
16663  eval $cacheid=no
16664fi
16665rm -f core conftest.err conftest.$ac_objext \
16666    conftest$ac_exeext conftest.$ac_ext
16667fi
16668
16669
16670		CFLAGS="$xorg_testset_save_CFLAGS"
16671
16672		eval supported=\$$cacheid
16673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16674$as_echo "$supported" >&6; }
16675		if test "$supported" = "yes" ; then
16676			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16677			found="yes"
16678		fi
16679	fi
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695xorg_testset_save_CFLAGS="$CFLAGS"
16696
16697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16702  $as_echo_n "(cached) " >&6
16703else
16704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705/* end confdefs.h.  */
16706int i;
16707_ACEOF
16708if ac_fn_c_try_compile "$LINENO"; then :
16709  xorg_cv_cc_flag_unknown_warning_option=yes
16710else
16711  xorg_cv_cc_flag_unknown_warning_option=no
16712fi
16713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714fi
16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16718	CFLAGS="$xorg_testset_save_CFLAGS"
16719fi
16720
16721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724	fi
16725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16729  $as_echo_n "(cached) " >&6
16730else
16731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732/* end confdefs.h.  */
16733int i;
16734_ACEOF
16735if ac_fn_c_try_compile "$LINENO"; then :
16736  xorg_cv_cc_flag_unused_command_line_argument=yes
16737else
16738  xorg_cv_cc_flag_unused_command_line_argument=no
16739fi
16740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741fi
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16745	CFLAGS="$xorg_testset_save_CFLAGS"
16746fi
16747
16748found="no"
16749
16750	if test $found = "no" ; then
16751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753		fi
16754
16755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757		fi
16758
16759		CFLAGS="$CFLAGS -Wnonnull"
16760
16761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16762$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16763		cacheid=xorg_cv_cc_flag__Wnonnull
16764		if eval \${$cacheid+:} false; then :
16765  $as_echo_n "(cached) " >&6
16766else
16767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768/* end confdefs.h.  */
16769int i;
16770int
16771main ()
16772{
16773
16774  ;
16775  return 0;
16776}
16777_ACEOF
16778if ac_fn_c_try_link "$LINENO"; then :
16779  eval $cacheid=yes
16780else
16781  eval $cacheid=no
16782fi
16783rm -f core conftest.err conftest.$ac_objext \
16784    conftest$ac_exeext conftest.$ac_ext
16785fi
16786
16787
16788		CFLAGS="$xorg_testset_save_CFLAGS"
16789
16790		eval supported=\$$cacheid
16791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16792$as_echo "$supported" >&6; }
16793		if test "$supported" = "yes" ; then
16794			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16795			found="yes"
16796		fi
16797	fi
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813xorg_testset_save_CFLAGS="$CFLAGS"
16814
16815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16820  $as_echo_n "(cached) " >&6
16821else
16822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823/* end confdefs.h.  */
16824int i;
16825_ACEOF
16826if ac_fn_c_try_compile "$LINENO"; then :
16827  xorg_cv_cc_flag_unknown_warning_option=yes
16828else
16829  xorg_cv_cc_flag_unknown_warning_option=no
16830fi
16831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832fi
16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16836	CFLAGS="$xorg_testset_save_CFLAGS"
16837fi
16838
16839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16842	fi
16843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h.  */
16851int i;
16852_ACEOF
16853if ac_fn_c_try_compile "$LINENO"; then :
16854  xorg_cv_cc_flag_unused_command_line_argument=yes
16855else
16856  xorg_cv_cc_flag_unused_command_line_argument=no
16857fi
16858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859fi
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16863	CFLAGS="$xorg_testset_save_CFLAGS"
16864fi
16865
16866found="no"
16867
16868	if test $found = "no" ; then
16869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16871		fi
16872
16873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875		fi
16876
16877		CFLAGS="$CFLAGS -Winit-self"
16878
16879		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16880$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16881		cacheid=xorg_cv_cc_flag__Winit_self
16882		if eval \${$cacheid+:} false; then :
16883  $as_echo_n "(cached) " >&6
16884else
16885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886/* end confdefs.h.  */
16887int i;
16888int
16889main ()
16890{
16891
16892  ;
16893  return 0;
16894}
16895_ACEOF
16896if ac_fn_c_try_link "$LINENO"; then :
16897  eval $cacheid=yes
16898else
16899  eval $cacheid=no
16900fi
16901rm -f core conftest.err conftest.$ac_objext \
16902    conftest$ac_exeext conftest.$ac_ext
16903fi
16904
16905
16906		CFLAGS="$xorg_testset_save_CFLAGS"
16907
16908		eval supported=\$$cacheid
16909		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16910$as_echo "$supported" >&6; }
16911		if test "$supported" = "yes" ; then
16912			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16913			found="yes"
16914		fi
16915	fi
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931xorg_testset_save_CFLAGS="$CFLAGS"
16932
16933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16938  $as_echo_n "(cached) " >&6
16939else
16940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941/* end confdefs.h.  */
16942int i;
16943_ACEOF
16944if ac_fn_c_try_compile "$LINENO"; then :
16945  xorg_cv_cc_flag_unknown_warning_option=yes
16946else
16947  xorg_cv_cc_flag_unknown_warning_option=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950fi
16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16954	CFLAGS="$xorg_testset_save_CFLAGS"
16955fi
16956
16957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960	fi
16961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16965  $as_echo_n "(cached) " >&6
16966else
16967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968/* end confdefs.h.  */
16969int i;
16970_ACEOF
16971if ac_fn_c_try_compile "$LINENO"; then :
16972  xorg_cv_cc_flag_unused_command_line_argument=yes
16973else
16974  xorg_cv_cc_flag_unused_command_line_argument=no
16975fi
16976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16981	CFLAGS="$xorg_testset_save_CFLAGS"
16982fi
16983
16984found="no"
16985
16986	if test $found = "no" ; then
16987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989		fi
16990
16991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16993		fi
16994
16995		CFLAGS="$CFLAGS -Wmain"
16996
16997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16998$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16999		cacheid=xorg_cv_cc_flag__Wmain
17000		if eval \${$cacheid+:} false; then :
17001  $as_echo_n "(cached) " >&6
17002else
17003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h.  */
17005int i;
17006int
17007main ()
17008{
17009
17010  ;
17011  return 0;
17012}
17013_ACEOF
17014if ac_fn_c_try_link "$LINENO"; then :
17015  eval $cacheid=yes
17016else
17017  eval $cacheid=no
17018fi
17019rm -f core conftest.err conftest.$ac_objext \
17020    conftest$ac_exeext conftest.$ac_ext
17021fi
17022
17023
17024		CFLAGS="$xorg_testset_save_CFLAGS"
17025
17026		eval supported=\$$cacheid
17027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17028$as_echo "$supported" >&6; }
17029		if test "$supported" = "yes" ; then
17030			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17031			found="yes"
17032		fi
17033	fi
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049xorg_testset_save_CFLAGS="$CFLAGS"
17050
17051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17056  $as_echo_n "(cached) " >&6
17057else
17058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059/* end confdefs.h.  */
17060int i;
17061_ACEOF
17062if ac_fn_c_try_compile "$LINENO"; then :
17063  xorg_cv_cc_flag_unknown_warning_option=yes
17064else
17065  xorg_cv_cc_flag_unknown_warning_option=no
17066fi
17067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17068fi
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17071	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17072	CFLAGS="$xorg_testset_save_CFLAGS"
17073fi
17074
17075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17076	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17077		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17078	fi
17079	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17083  $as_echo_n "(cached) " >&6
17084else
17085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086/* end confdefs.h.  */
17087int i;
17088_ACEOF
17089if ac_fn_c_try_compile "$LINENO"; then :
17090  xorg_cv_cc_flag_unused_command_line_argument=yes
17091else
17092  xorg_cv_cc_flag_unused_command_line_argument=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17095fi
17096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17098	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17099	CFLAGS="$xorg_testset_save_CFLAGS"
17100fi
17101
17102found="no"
17103
17104	if test $found = "no" ; then
17105		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17106			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107		fi
17108
17109		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17110			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17111		fi
17112
17113		CFLAGS="$CFLAGS -Wmissing-braces"
17114
17115		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17116$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17117		cacheid=xorg_cv_cc_flag__Wmissing_braces
17118		if eval \${$cacheid+:} false; then :
17119  $as_echo_n "(cached) " >&6
17120else
17121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122/* end confdefs.h.  */
17123int i;
17124int
17125main ()
17126{
17127
17128  ;
17129  return 0;
17130}
17131_ACEOF
17132if ac_fn_c_try_link "$LINENO"; then :
17133  eval $cacheid=yes
17134else
17135  eval $cacheid=no
17136fi
17137rm -f core conftest.err conftest.$ac_objext \
17138    conftest$ac_exeext conftest.$ac_ext
17139fi
17140
17141
17142		CFLAGS="$xorg_testset_save_CFLAGS"
17143
17144		eval supported=\$$cacheid
17145		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17146$as_echo "$supported" >&6; }
17147		if test "$supported" = "yes" ; then
17148			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17149			found="yes"
17150		fi
17151	fi
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167xorg_testset_save_CFLAGS="$CFLAGS"
17168
17169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17174  $as_echo_n "(cached) " >&6
17175else
17176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h.  */
17178int i;
17179_ACEOF
17180if ac_fn_c_try_compile "$LINENO"; then :
17181  xorg_cv_cc_flag_unknown_warning_option=yes
17182else
17183  xorg_cv_cc_flag_unknown_warning_option=no
17184fi
17185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17186fi
17187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17190	CFLAGS="$xorg_testset_save_CFLAGS"
17191fi
17192
17193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17196	fi
17197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17201  $as_echo_n "(cached) " >&6
17202else
17203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204/* end confdefs.h.  */
17205int i;
17206_ACEOF
17207if ac_fn_c_try_compile "$LINENO"; then :
17208  xorg_cv_cc_flag_unused_command_line_argument=yes
17209else
17210  xorg_cv_cc_flag_unused_command_line_argument=no
17211fi
17212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17213fi
17214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17217	CFLAGS="$xorg_testset_save_CFLAGS"
17218fi
17219
17220found="no"
17221
17222	if test $found = "no" ; then
17223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17225		fi
17226
17227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17229		fi
17230
17231		CFLAGS="$CFLAGS -Wsequence-point"
17232
17233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17234$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17235		cacheid=xorg_cv_cc_flag__Wsequence_point
17236		if eval \${$cacheid+:} false; then :
17237  $as_echo_n "(cached) " >&6
17238else
17239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240/* end confdefs.h.  */
17241int i;
17242int
17243main ()
17244{
17245
17246  ;
17247  return 0;
17248}
17249_ACEOF
17250if ac_fn_c_try_link "$LINENO"; then :
17251  eval $cacheid=yes
17252else
17253  eval $cacheid=no
17254fi
17255rm -f core conftest.err conftest.$ac_objext \
17256    conftest$ac_exeext conftest.$ac_ext
17257fi
17258
17259
17260		CFLAGS="$xorg_testset_save_CFLAGS"
17261
17262		eval supported=\$$cacheid
17263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17264$as_echo "$supported" >&6; }
17265		if test "$supported" = "yes" ; then
17266			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17267			found="yes"
17268		fi
17269	fi
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285xorg_testset_save_CFLAGS="$CFLAGS"
17286
17287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17292  $as_echo_n "(cached) " >&6
17293else
17294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295/* end confdefs.h.  */
17296int i;
17297_ACEOF
17298if ac_fn_c_try_compile "$LINENO"; then :
17299  xorg_cv_cc_flag_unknown_warning_option=yes
17300else
17301  xorg_cv_cc_flag_unknown_warning_option=no
17302fi
17303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304fi
17305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17308	CFLAGS="$xorg_testset_save_CFLAGS"
17309fi
17310
17311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17314	fi
17315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17319  $as_echo_n "(cached) " >&6
17320else
17321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322/* end confdefs.h.  */
17323int i;
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"; then :
17326  xorg_cv_cc_flag_unused_command_line_argument=yes
17327else
17328  xorg_cv_cc_flag_unused_command_line_argument=no
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331fi
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17335	CFLAGS="$xorg_testset_save_CFLAGS"
17336fi
17337
17338found="no"
17339
17340	if test $found = "no" ; then
17341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17343		fi
17344
17345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17347		fi
17348
17349		CFLAGS="$CFLAGS -Wreturn-type"
17350
17351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17352$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17353		cacheid=xorg_cv_cc_flag__Wreturn_type
17354		if eval \${$cacheid+:} false; then :
17355  $as_echo_n "(cached) " >&6
17356else
17357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358/* end confdefs.h.  */
17359int i;
17360int
17361main ()
17362{
17363
17364  ;
17365  return 0;
17366}
17367_ACEOF
17368if ac_fn_c_try_link "$LINENO"; then :
17369  eval $cacheid=yes
17370else
17371  eval $cacheid=no
17372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374    conftest$ac_exeext conftest.$ac_ext
17375fi
17376
17377
17378		CFLAGS="$xorg_testset_save_CFLAGS"
17379
17380		eval supported=\$$cacheid
17381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17382$as_echo "$supported" >&6; }
17383		if test "$supported" = "yes" ; then
17384			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17385			found="yes"
17386		fi
17387	fi
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403xorg_testset_save_CFLAGS="$CFLAGS"
17404
17405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17410  $as_echo_n "(cached) " >&6
17411else
17412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413/* end confdefs.h.  */
17414int i;
17415_ACEOF
17416if ac_fn_c_try_compile "$LINENO"; then :
17417  xorg_cv_cc_flag_unknown_warning_option=yes
17418else
17419  xorg_cv_cc_flag_unknown_warning_option=no
17420fi
17421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422fi
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17426	CFLAGS="$xorg_testset_save_CFLAGS"
17427fi
17428
17429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17432	fi
17433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17437  $as_echo_n "(cached) " >&6
17438else
17439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h.  */
17441int i;
17442_ACEOF
17443if ac_fn_c_try_compile "$LINENO"; then :
17444  xorg_cv_cc_flag_unused_command_line_argument=yes
17445else
17446  xorg_cv_cc_flag_unused_command_line_argument=no
17447fi
17448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449fi
17450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17453	CFLAGS="$xorg_testset_save_CFLAGS"
17454fi
17455
17456found="no"
17457
17458	if test $found = "no" ; then
17459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17461		fi
17462
17463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17465		fi
17466
17467		CFLAGS="$CFLAGS -Wtrigraphs"
17468
17469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17470$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17471		cacheid=xorg_cv_cc_flag__Wtrigraphs
17472		if eval \${$cacheid+:} false; then :
17473  $as_echo_n "(cached) " >&6
17474else
17475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h.  */
17477int i;
17478int
17479main ()
17480{
17481
17482  ;
17483  return 0;
17484}
17485_ACEOF
17486if ac_fn_c_try_link "$LINENO"; then :
17487  eval $cacheid=yes
17488else
17489  eval $cacheid=no
17490fi
17491rm -f core conftest.err conftest.$ac_objext \
17492    conftest$ac_exeext conftest.$ac_ext
17493fi
17494
17495
17496		CFLAGS="$xorg_testset_save_CFLAGS"
17497
17498		eval supported=\$$cacheid
17499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17500$as_echo "$supported" >&6; }
17501		if test "$supported" = "yes" ; then
17502			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17503			found="yes"
17504		fi
17505	fi
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521xorg_testset_save_CFLAGS="$CFLAGS"
17522
17523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17528  $as_echo_n "(cached) " >&6
17529else
17530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h.  */
17532int i;
17533_ACEOF
17534if ac_fn_c_try_compile "$LINENO"; then :
17535  xorg_cv_cc_flag_unknown_warning_option=yes
17536else
17537  xorg_cv_cc_flag_unknown_warning_option=no
17538fi
17539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17540fi
17541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17544	CFLAGS="$xorg_testset_save_CFLAGS"
17545fi
17546
17547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550	fi
17551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558/* end confdefs.h.  */
17559int i;
17560_ACEOF
17561if ac_fn_c_try_compile "$LINENO"; then :
17562  xorg_cv_cc_flag_unused_command_line_argument=yes
17563else
17564  xorg_cv_cc_flag_unused_command_line_argument=no
17565fi
17566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17571	CFLAGS="$xorg_testset_save_CFLAGS"
17572fi
17573
17574found="no"
17575
17576	if test $found = "no" ; then
17577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17579		fi
17580
17581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583		fi
17584
17585		CFLAGS="$CFLAGS -Warray-bounds"
17586
17587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17588$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17589		cacheid=xorg_cv_cc_flag__Warray_bounds
17590		if eval \${$cacheid+:} false; then :
17591  $as_echo_n "(cached) " >&6
17592else
17593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594/* end confdefs.h.  */
17595int i;
17596int
17597main ()
17598{
17599
17600  ;
17601  return 0;
17602}
17603_ACEOF
17604if ac_fn_c_try_link "$LINENO"; then :
17605  eval $cacheid=yes
17606else
17607  eval $cacheid=no
17608fi
17609rm -f core conftest.err conftest.$ac_objext \
17610    conftest$ac_exeext conftest.$ac_ext
17611fi
17612
17613
17614		CFLAGS="$xorg_testset_save_CFLAGS"
17615
17616		eval supported=\$$cacheid
17617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17618$as_echo "$supported" >&6; }
17619		if test "$supported" = "yes" ; then
17620			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17621			found="yes"
17622		fi
17623	fi
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639xorg_testset_save_CFLAGS="$CFLAGS"
17640
17641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17643	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17644$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17645if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17646  $as_echo_n "(cached) " >&6
17647else
17648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649/* end confdefs.h.  */
17650int i;
17651_ACEOF
17652if ac_fn_c_try_compile "$LINENO"; then :
17653  xorg_cv_cc_flag_unknown_warning_option=yes
17654else
17655  xorg_cv_cc_flag_unknown_warning_option=no
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658fi
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17660$as_echo "$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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17671$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17672if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17673  $as_echo_n "(cached) " >&6
17674else
17675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676/* end confdefs.h.  */
17677int i;
17678_ACEOF
17679if ac_fn_c_try_compile "$LINENO"; then :
17680  xorg_cv_cc_flag_unused_command_line_argument=yes
17681else
17682  xorg_cv_cc_flag_unused_command_line_argument=no
17683fi
17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685fi
17686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17687$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17689	CFLAGS="$xorg_testset_save_CFLAGS"
17690fi
17691
17692found="no"
17693
17694	if test $found = "no" ; then
17695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17697		fi
17698
17699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17701		fi
17702
17703		CFLAGS="$CFLAGS -Wwrite-strings"
17704
17705		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17706$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17707		cacheid=xorg_cv_cc_flag__Wwrite_strings
17708		if eval \${$cacheid+:} false; then :
17709  $as_echo_n "(cached) " >&6
17710else
17711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712/* end confdefs.h.  */
17713int i;
17714int
17715main ()
17716{
17717
17718  ;
17719  return 0;
17720}
17721_ACEOF
17722if ac_fn_c_try_link "$LINENO"; then :
17723  eval $cacheid=yes
17724else
17725  eval $cacheid=no
17726fi
17727rm -f core conftest.err conftest.$ac_objext \
17728    conftest$ac_exeext conftest.$ac_ext
17729fi
17730
17731
17732		CFLAGS="$xorg_testset_save_CFLAGS"
17733
17734		eval supported=\$$cacheid
17735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17736$as_echo "$supported" >&6; }
17737		if test "$supported" = "yes" ; then
17738			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17739			found="yes"
17740		fi
17741	fi
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757xorg_testset_save_CFLAGS="$CFLAGS"
17758
17759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17762$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17763if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17764  $as_echo_n "(cached) " >&6
17765else
17766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767/* end confdefs.h.  */
17768int i;
17769_ACEOF
17770if ac_fn_c_try_compile "$LINENO"; then :
17771  xorg_cv_cc_flag_unknown_warning_option=yes
17772else
17773  xorg_cv_cc_flag_unknown_warning_option=no
17774fi
17775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776fi
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17778$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17780	CFLAGS="$xorg_testset_save_CFLAGS"
17781fi
17782
17783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786	fi
17787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17789$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17790if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17791  $as_echo_n "(cached) " >&6
17792else
17793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h.  */
17795int i;
17796_ACEOF
17797if ac_fn_c_try_compile "$LINENO"; then :
17798  xorg_cv_cc_flag_unused_command_line_argument=yes
17799else
17800  xorg_cv_cc_flag_unused_command_line_argument=no
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803fi
17804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17805$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17807	CFLAGS="$xorg_testset_save_CFLAGS"
17808fi
17809
17810found="no"
17811
17812	if test $found = "no" ; then
17813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17815		fi
17816
17817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17819		fi
17820
17821		CFLAGS="$CFLAGS -Waddress"
17822
17823		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17824$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17825		cacheid=xorg_cv_cc_flag__Waddress
17826		if eval \${$cacheid+:} false; then :
17827  $as_echo_n "(cached) " >&6
17828else
17829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830/* end confdefs.h.  */
17831int i;
17832int
17833main ()
17834{
17835
17836  ;
17837  return 0;
17838}
17839_ACEOF
17840if ac_fn_c_try_link "$LINENO"; then :
17841  eval $cacheid=yes
17842else
17843  eval $cacheid=no
17844fi
17845rm -f core conftest.err conftest.$ac_objext \
17846    conftest$ac_exeext conftest.$ac_ext
17847fi
17848
17849
17850		CFLAGS="$xorg_testset_save_CFLAGS"
17851
17852		eval supported=\$$cacheid
17853		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17854$as_echo "$supported" >&6; }
17855		if test "$supported" = "yes" ; then
17856			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17857			found="yes"
17858		fi
17859	fi
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875xorg_testset_save_CFLAGS="$CFLAGS"
17876
17877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17880$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17881if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17882  $as_echo_n "(cached) " >&6
17883else
17884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885/* end confdefs.h.  */
17886int i;
17887_ACEOF
17888if ac_fn_c_try_compile "$LINENO"; then :
17889  xorg_cv_cc_flag_unknown_warning_option=yes
17890else
17891  xorg_cv_cc_flag_unknown_warning_option=no
17892fi
17893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894fi
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17896$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17898	CFLAGS="$xorg_testset_save_CFLAGS"
17899fi
17900
17901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17904	fi
17905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17907$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17908if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17909  $as_echo_n "(cached) " >&6
17910else
17911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912/* end confdefs.h.  */
17913int i;
17914_ACEOF
17915if ac_fn_c_try_compile "$LINENO"; then :
17916  xorg_cv_cc_flag_unused_command_line_argument=yes
17917else
17918  xorg_cv_cc_flag_unused_command_line_argument=no
17919fi
17920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921fi
17922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17923$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17925	CFLAGS="$xorg_testset_save_CFLAGS"
17926fi
17927
17928found="no"
17929
17930	if test $found = "no" ; then
17931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17933		fi
17934
17935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17937		fi
17938
17939		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17940
17941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17942$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17943		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17944		if eval \${$cacheid+:} false; then :
17945  $as_echo_n "(cached) " >&6
17946else
17947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948/* end confdefs.h.  */
17949int i;
17950int
17951main ()
17952{
17953
17954  ;
17955  return 0;
17956}
17957_ACEOF
17958if ac_fn_c_try_link "$LINENO"; then :
17959  eval $cacheid=yes
17960else
17961  eval $cacheid=no
17962fi
17963rm -f core conftest.err conftest.$ac_objext \
17964    conftest$ac_exeext conftest.$ac_ext
17965fi
17966
17967
17968		CFLAGS="$xorg_testset_save_CFLAGS"
17969
17970		eval supported=\$$cacheid
17971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17972$as_echo "$supported" >&6; }
17973		if test "$supported" = "yes" ; then
17974			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17975			found="yes"
17976		fi
17977	fi
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993xorg_testset_save_CFLAGS="$CFLAGS"
17994
17995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18000  $as_echo_n "(cached) " >&6
18001else
18002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18003/* end confdefs.h.  */
18004int i;
18005_ACEOF
18006if ac_fn_c_try_compile "$LINENO"; then :
18007  xorg_cv_cc_flag_unknown_warning_option=yes
18008else
18009  xorg_cv_cc_flag_unknown_warning_option=no
18010fi
18011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012fi
18013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18016	CFLAGS="$xorg_testset_save_CFLAGS"
18017fi
18018
18019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18022	fi
18023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18027  $as_echo_n "(cached) " >&6
18028else
18029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030/* end confdefs.h.  */
18031int i;
18032_ACEOF
18033if ac_fn_c_try_compile "$LINENO"; then :
18034  xorg_cv_cc_flag_unused_command_line_argument=yes
18035else
18036  xorg_cv_cc_flag_unused_command_line_argument=no
18037fi
18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18039fi
18040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18043	CFLAGS="$xorg_testset_save_CFLAGS"
18044fi
18045
18046found="no"
18047
18048	if test $found = "no" ; then
18049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18051		fi
18052
18053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18055		fi
18056
18057		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18058
18059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18060$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18061		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18062		if eval \${$cacheid+:} false; then :
18063  $as_echo_n "(cached) " >&6
18064else
18065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h.  */
18067int i;
18068int
18069main ()
18070{
18071
18072  ;
18073  return 0;
18074}
18075_ACEOF
18076if ac_fn_c_try_link "$LINENO"; then :
18077  eval $cacheid=yes
18078else
18079  eval $cacheid=no
18080fi
18081rm -f core conftest.err conftest.$ac_objext \
18082    conftest$ac_exeext conftest.$ac_ext
18083fi
18084
18085
18086		CFLAGS="$xorg_testset_save_CFLAGS"
18087
18088		eval supported=\$$cacheid
18089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18090$as_echo "$supported" >&6; }
18091		if test "$supported" = "yes" ; then
18092			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18093			found="yes"
18094		fi
18095	fi
18096
18097
18098fi
18099
18100
18101
18102
18103
18104
18105
18106		CWARNFLAGS="$BASE_CFLAGS"
18107		if  test "x$GCC" = xyes ; then
18108		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18109		fi
18110
18111
18112
18113
18114
18115
18116
18117
18118# Check whether --enable-strict-compilation was given.
18119if test "${enable_strict_compilation+set}" = set; then :
18120  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18121else
18122  STRICT_COMPILE=no
18123fi
18124
18125
18126
18127
18128
18129
18130STRICT_CFLAGS=""
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144xorg_testset_save_CFLAGS="$CFLAGS"
18145
18146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18151  $as_echo_n "(cached) " >&6
18152else
18153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h.  */
18155int i;
18156_ACEOF
18157if ac_fn_c_try_compile "$LINENO"; then :
18158  xorg_cv_cc_flag_unknown_warning_option=yes
18159else
18160  xorg_cv_cc_flag_unknown_warning_option=no
18161fi
18162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163fi
18164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18167	CFLAGS="$xorg_testset_save_CFLAGS"
18168fi
18169
18170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18173	fi
18174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18178  $as_echo_n "(cached) " >&6
18179else
18180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"; then :
18185  xorg_cv_cc_flag_unused_command_line_argument=yes
18186else
18187  xorg_cv_cc_flag_unused_command_line_argument=no
18188fi
18189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190fi
18191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18194	CFLAGS="$xorg_testset_save_CFLAGS"
18195fi
18196
18197found="no"
18198
18199	if test $found = "no" ; then
18200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18202		fi
18203
18204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18206		fi
18207
18208		CFLAGS="$CFLAGS -pedantic"
18209
18210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18211$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18212		cacheid=xorg_cv_cc_flag__pedantic
18213		if eval \${$cacheid+:} false; then :
18214  $as_echo_n "(cached) " >&6
18215else
18216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217/* end confdefs.h.  */
18218int i;
18219int
18220main ()
18221{
18222
18223  ;
18224  return 0;
18225}
18226_ACEOF
18227if ac_fn_c_try_link "$LINENO"; then :
18228  eval $cacheid=yes
18229else
18230  eval $cacheid=no
18231fi
18232rm -f core conftest.err conftest.$ac_objext \
18233    conftest$ac_exeext conftest.$ac_ext
18234fi
18235
18236
18237		CFLAGS="$xorg_testset_save_CFLAGS"
18238
18239		eval supported=\$$cacheid
18240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18241$as_echo "$supported" >&6; }
18242		if test "$supported" = "yes" ; then
18243			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18244			found="yes"
18245		fi
18246	fi
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262xorg_testset_save_CFLAGS="$CFLAGS"
18263
18264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18269  $as_echo_n "(cached) " >&6
18270else
18271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272/* end confdefs.h.  */
18273int i;
18274_ACEOF
18275if ac_fn_c_try_compile "$LINENO"; then :
18276  xorg_cv_cc_flag_unknown_warning_option=yes
18277else
18278  xorg_cv_cc_flag_unknown_warning_option=no
18279fi
18280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18281fi
18282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18285	CFLAGS="$xorg_testset_save_CFLAGS"
18286fi
18287
18288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18291	fi
18292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18296  $as_echo_n "(cached) " >&6
18297else
18298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299/* end confdefs.h.  */
18300int i;
18301_ACEOF
18302if ac_fn_c_try_compile "$LINENO"; then :
18303  xorg_cv_cc_flag_unused_command_line_argument=yes
18304else
18305  xorg_cv_cc_flag_unused_command_line_argument=no
18306fi
18307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308fi
18309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18312	CFLAGS="$xorg_testset_save_CFLAGS"
18313fi
18314
18315found="no"
18316
18317	if test $found = "no" ; then
18318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18320		fi
18321
18322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18324		fi
18325
18326		CFLAGS="$CFLAGS -Werror"
18327
18328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18329$as_echo_n "checking if $CC supports -Werror... " >&6; }
18330		cacheid=xorg_cv_cc_flag__Werror
18331		if eval \${$cacheid+:} false; then :
18332  $as_echo_n "(cached) " >&6
18333else
18334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h.  */
18336int i;
18337int
18338main ()
18339{
18340
18341  ;
18342  return 0;
18343}
18344_ACEOF
18345if ac_fn_c_try_link "$LINENO"; then :
18346  eval $cacheid=yes
18347else
18348  eval $cacheid=no
18349fi
18350rm -f core conftest.err conftest.$ac_objext \
18351    conftest$ac_exeext conftest.$ac_ext
18352fi
18353
18354
18355		CFLAGS="$xorg_testset_save_CFLAGS"
18356
18357		eval supported=\$$cacheid
18358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18359$as_echo "$supported" >&6; }
18360		if test "$supported" = "yes" ; then
18361			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18362			found="yes"
18363		fi
18364	fi
18365
18366	if test $found = "no" ; then
18367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18369		fi
18370
18371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18373		fi
18374
18375		CFLAGS="$CFLAGS -errwarn"
18376
18377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18378$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18379		cacheid=xorg_cv_cc_flag__errwarn
18380		if eval \${$cacheid+:} false; then :
18381  $as_echo_n "(cached) " >&6
18382else
18383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385int i;
18386int
18387main ()
18388{
18389
18390  ;
18391  return 0;
18392}
18393_ACEOF
18394if ac_fn_c_try_link "$LINENO"; then :
18395  eval $cacheid=yes
18396else
18397  eval $cacheid=no
18398fi
18399rm -f core conftest.err conftest.$ac_objext \
18400    conftest$ac_exeext conftest.$ac_ext
18401fi
18402
18403
18404		CFLAGS="$xorg_testset_save_CFLAGS"
18405
18406		eval supported=\$$cacheid
18407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18408$as_echo "$supported" >&6; }
18409		if test "$supported" = "yes" ; then
18410			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18411			found="yes"
18412		fi
18413	fi
18414
18415
18416
18417# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18418# activate it with -Werror, so we add it here explicitly.
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432xorg_testset_save_CFLAGS="$CFLAGS"
18433
18434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18439  $as_echo_n "(cached) " >&6
18440else
18441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442/* end confdefs.h.  */
18443int i;
18444_ACEOF
18445if ac_fn_c_try_compile "$LINENO"; then :
18446  xorg_cv_cc_flag_unknown_warning_option=yes
18447else
18448  xorg_cv_cc_flag_unknown_warning_option=no
18449fi
18450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451fi
18452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18455	CFLAGS="$xorg_testset_save_CFLAGS"
18456fi
18457
18458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18461	fi
18462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18466  $as_echo_n "(cached) " >&6
18467else
18468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469/* end confdefs.h.  */
18470int i;
18471_ACEOF
18472if ac_fn_c_try_compile "$LINENO"; then :
18473  xorg_cv_cc_flag_unused_command_line_argument=yes
18474else
18475  xorg_cv_cc_flag_unused_command_line_argument=no
18476fi
18477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478fi
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18482	CFLAGS="$xorg_testset_save_CFLAGS"
18483fi
18484
18485found="no"
18486
18487	if test $found = "no" ; then
18488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18490		fi
18491
18492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18494		fi
18495
18496		CFLAGS="$CFLAGS -Werror=attributes"
18497
18498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18499$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18500		cacheid=xorg_cv_cc_flag__Werror_attributes
18501		if eval \${$cacheid+:} false; then :
18502  $as_echo_n "(cached) " >&6
18503else
18504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505/* end confdefs.h.  */
18506int i;
18507int
18508main ()
18509{
18510
18511  ;
18512  return 0;
18513}
18514_ACEOF
18515if ac_fn_c_try_link "$LINENO"; then :
18516  eval $cacheid=yes
18517else
18518  eval $cacheid=no
18519fi
18520rm -f core conftest.err conftest.$ac_objext \
18521    conftest$ac_exeext conftest.$ac_ext
18522fi
18523
18524
18525		CFLAGS="$xorg_testset_save_CFLAGS"
18526
18527		eval supported=\$$cacheid
18528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18529$as_echo "$supported" >&6; }
18530		if test "$supported" = "yes" ; then
18531			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18532			found="yes"
18533		fi
18534	fi
18535
18536
18537
18538if test "x$STRICT_COMPILE" = "xyes"; then
18539    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18540    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18541fi
18542
18543
18544
18545
18546
18547
18548cat >>confdefs.h <<_ACEOF
18549#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18550_ACEOF
18551
18552	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18553	if test "x$PVM" = "x"; then
18554		PVM="0"
18555	fi
18556
18557cat >>confdefs.h <<_ACEOF
18558#define PACKAGE_VERSION_MINOR $PVM
18559_ACEOF
18560
18561	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18562	if test "x$PVP" = "x"; then
18563		PVP="0"
18564	fi
18565
18566cat >>confdefs.h <<_ACEOF
18567#define PACKAGE_VERSION_PATCHLEVEL $PVP
18568_ACEOF
18569
18570
18571
18572CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18573mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18574|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18575echo 'git directory not found: installing possibly empty changelog.' >&2)"
18576
18577
18578
18579
18580macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18581INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18582mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18583|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18584echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18585
18586
18587
18588
18589
18590
18591if test x$APP_MAN_SUFFIX = x    ; then
18592    APP_MAN_SUFFIX=1
18593fi
18594if test x$APP_MAN_DIR = x    ; then
18595    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18596fi
18597
18598if test x$LIB_MAN_SUFFIX = x    ; then
18599    LIB_MAN_SUFFIX=3
18600fi
18601if test x$LIB_MAN_DIR = x    ; then
18602    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18603fi
18604
18605if test x$FILE_MAN_SUFFIX = x    ; then
18606    case $host_os in
18607	# Solaris 2.0 - 11 use SysV man page sections
18608	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18609	*)				FILE_MAN_SUFFIX=5  ;;
18610    esac
18611fi
18612if test x$FILE_MAN_DIR = x    ; then
18613    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18614fi
18615
18616if test x$MISC_MAN_SUFFIX = x    ; then
18617    case $host_os in
18618	# Solaris 2.0 - 11 use SysV man page sections
18619	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18620	*)				MISC_MAN_SUFFIX=7  ;;
18621    esac
18622fi
18623if test x$MISC_MAN_DIR = x    ; then
18624    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18625fi
18626
18627if test x$DRIVER_MAN_SUFFIX = x    ; then
18628    case $host_os in
18629	# Solaris 2.0 - 11 use SysV man page sections
18630	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18631	*)				DRIVER_MAN_SUFFIX=4  ;;
18632    esac
18633fi
18634if test x$DRIVER_MAN_DIR = x    ; then
18635    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18636fi
18637
18638if test x$ADMIN_MAN_SUFFIX = x    ; then
18639    case $host_os in
18640	# Solaris 2.0 - 11 use SysV man page sections
18641	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18642	*)				ADMIN_MAN_SUFFIX=8  ;;
18643    esac
18644fi
18645if test x$ADMIN_MAN_DIR = x    ; then
18646    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18647fi
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663XORG_MAN_PAGE="X Version 11"
18664
18665MAN_SUBSTS="\
18666	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18667	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18668	-e 's|__xservername__|Xorg|g' \
18669	-e 's|__xconfigfile__|xorg.conf|g' \
18670	-e 's|__projectroot__|\$(prefix)|g' \
18671	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18672	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18673	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18674	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18675	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18676	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18677	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18678
18679
18680
18681# Check whether --enable-silent-rules was given.
18682if test "${enable_silent_rules+set}" = set; then :
18683  enableval=$enable_silent_rules;
18684fi
18685
18686case $enable_silent_rules in # (((
18687  yes) AM_DEFAULT_VERBOSITY=0;;
18688   no) AM_DEFAULT_VERBOSITY=1;;
18689    *) AM_DEFAULT_VERBOSITY=0;;
18690esac
18691am_make=${MAKE-make}
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18693$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18694if ${am_cv_make_support_nested_variables+:} false; then :
18695  $as_echo_n "(cached) " >&6
18696else
18697  if $as_echo 'TRUE=$(BAR$(V))
18698BAR0=false
18699BAR1=true
18700V=1
18701am__doit:
18702	@$(TRUE)
18703.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18704  am_cv_make_support_nested_variables=yes
18705else
18706  am_cv_make_support_nested_variables=no
18707fi
18708fi
18709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18710$as_echo "$am_cv_make_support_nested_variables" >&6; }
18711if test $am_cv_make_support_nested_variables = yes; then
18712    AM_V='$(V)'
18713  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18714else
18715  AM_V=$AM_DEFAULT_VERBOSITY
18716  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18717fi
18718AM_BACKSLASH='\'
18719
18720
18721
18722# Checks for programs.
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18724$as_echo_n "checking whether ln -s works... " >&6; }
18725LN_S=$as_ln_s
18726if test "$LN_S" = "ln -s"; then
18727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18728$as_echo "yes" >&6; }
18729else
18730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18731$as_echo "no, using $LN_S" >&6; }
18732fi
18733
18734
18735# Checks for library functions.
18736for ac_func in pathconf
18737do :
18738  ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
18739if test "x$ac_cv_func_pathconf" = xyes; then :
18740  cat >>confdefs.h <<_ACEOF
18741#define HAVE_PATHCONF 1
18742_ACEOF
18743
18744fi
18745done
18746
18747
18748# Obtain compiler/linker options for depedencies
18749
18750pkg_failed=no
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
18752$as_echo_n "checking for XAU... " >&6; }
18753
18754if test -n "$XAU_CFLAGS"; then
18755    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
18756 elif test -n "$PKG_CONFIG"; then
18757    if test -n "$PKG_CONFIG" && \
18758    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
18759  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
18760  ac_status=$?
18761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762  test $ac_status = 0; }; then
18763  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
18764		      test "x$?" != "x0" && pkg_failed=yes
18765else
18766  pkg_failed=yes
18767fi
18768 else
18769    pkg_failed=untried
18770fi
18771if test -n "$XAU_LIBS"; then
18772    pkg_cv_XAU_LIBS="$XAU_LIBS"
18773 elif test -n "$PKG_CONFIG"; then
18774    if test -n "$PKG_CONFIG" && \
18775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
18776  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
18777  ac_status=$?
18778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18779  test $ac_status = 0; }; then
18780  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
18781		      test "x$?" != "x0" && pkg_failed=yes
18782else
18783  pkg_failed=yes
18784fi
18785 else
18786    pkg_failed=untried
18787fi
18788
18789
18790
18791if test $pkg_failed = yes; then
18792   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793$as_echo "no" >&6; }
18794
18795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18796        _pkg_short_errors_supported=yes
18797else
18798        _pkg_short_errors_supported=no
18799fi
18800        if test $_pkg_short_errors_supported = yes; then
18801	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
18802        else
18803	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
18804        fi
18805	# Put the nasty error message in config.log where it belongs
18806	echo "$XAU_PKG_ERRORS" >&5
18807
18808	as_fn_error $? "Package requirements (xproto) were not met:
18809
18810$XAU_PKG_ERRORS
18811
18812Consider adjusting the PKG_CONFIG_PATH environment variable if you
18813installed software in a non-standard prefix.
18814
18815Alternatively, you may set the environment variables XAU_CFLAGS
18816and XAU_LIBS to avoid the need to call pkg-config.
18817See the pkg-config man page for more details." "$LINENO" 5
18818elif test $pkg_failed = untried; then
18819     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820$as_echo "no" >&6; }
18821	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18823as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18824is in your PATH or set the PKG_CONFIG environment variable to the full
18825path to pkg-config.
18826
18827Alternatively, you may set the environment variables XAU_CFLAGS
18828and XAU_LIBS to avoid the need to call pkg-config.
18829See the pkg-config man page for more details.
18830
18831To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18832See \`config.log' for more details" "$LINENO" 5; }
18833else
18834	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
18835	XAU_LIBS=$pkg_cv_XAU_LIBS
18836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18837$as_echo "yes" >&6; }
18838
18839fi
18840
18841# Check whether --enable-xthreads was given.
18842if test "${enable_xthreads+set}" = set; then :
18843  enableval=$enable_xthreads; xthreads=$enableval
18844else
18845  xthreads=yes
18846fi
18847
18848
18849if test "x$xthreads" = "xyes" ; then
18850
18851$as_echo "#define XTHREADS 1" >>confdefs.h
18852
18853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
18854$as_echo_n "checking for gethostbyname_r in -lc... " >&6; }
18855if ${ac_cv_lib_c_gethostbyname_r+:} false; then :
18856  $as_echo_n "(cached) " >&6
18857else
18858  ac_check_lib_save_LIBS=$LIBS
18859LIBS="-lc  $LIBS"
18860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861/* end confdefs.h.  */
18862
18863/* Override any GCC internal prototype to avoid an error.
18864   Use char because int might match the return type of a GCC
18865   builtin and then its argument prototype would still apply.  */
18866#ifdef __cplusplus
18867extern "C"
18868#endif
18869char gethostbyname_r ();
18870int
18871main ()
18872{
18873return gethostbyname_r ();
18874  ;
18875  return 0;
18876}
18877_ACEOF
18878if ac_fn_c_try_link "$LINENO"; then :
18879  ac_cv_lib_c_gethostbyname_r=yes
18880else
18881  ac_cv_lib_c_gethostbyname_r=no
18882fi
18883rm -f core conftest.err conftest.$ac_objext \
18884    conftest$ac_exeext conftest.$ac_ext
18885LIBS=$ac_check_lib_save_LIBS
18886fi
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
18888$as_echo "$ac_cv_lib_c_gethostbyname_r" >&6; }
18889if test "x$ac_cv_lib_c_gethostbyname_r" = xyes; then :
18890  mtsafe=yes
18891fi
18892
18893    if test "x$mtsafe" = "x" ; then
18894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
18895$as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
18896if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
18897  $as_echo_n "(cached) " >&6
18898else
18899  ac_check_lib_save_LIBS=$LIBS
18900LIBS="-lnsl  $LIBS"
18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902/* end confdefs.h.  */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905   Use char because int might match the return type of a GCC
18906   builtin and then its argument prototype would still apply.  */
18907#ifdef __cplusplus
18908extern "C"
18909#endif
18910char gethostbyname_r ();
18911int
18912main ()
18913{
18914return gethostbyname_r ();
18915  ;
18916  return 0;
18917}
18918_ACEOF
18919if ac_fn_c_try_link "$LINENO"; then :
18920  ac_cv_lib_nsl_gethostbyname_r=yes
18921else
18922  ac_cv_lib_nsl_gethostbyname_r=no
18923fi
18924rm -f core conftest.err conftest.$ac_objext \
18925    conftest$ac_exeext conftest.$ac_ext
18926LIBS=$ac_check_lib_save_LIBS
18927fi
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18929$as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
18930if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
18931  mtsafe=yes
18932fi
18933
18934    fi
18935    if test "x$mtsafe" = "xyes" ; then
18936
18937$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
18938
18939    fi
18940
18941# XXX incomplete, please fill this in
18942    case $host_os in
18943    solaris*)
18944	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
18945    esac
18946    XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
18947fi
18948
18949# Allow checking code with lint, sparse, etc.
18950
18951
18952
18953
18954
18955# Check whether --with-lint was given.
18956if test "${with_lint+set}" = set; then :
18957  withval=$with_lint; use_lint=$withval
18958else
18959  use_lint=no
18960fi
18961
18962
18963# Obtain platform specific info like program name and options
18964# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18965case $host_os in
18966  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18967	lint_name=splint
18968	lint_options="-badflag"
18969	;;
18970  *freebsd* | *netbsd*)
18971	lint_name=lint
18972	lint_options="-u -b"
18973	;;
18974  *solaris*)
18975	lint_name=lint
18976	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18977	;;
18978esac
18979
18980# Test for the presence of the program (either guessed by the code or spelled out by the user)
18981if test "x$use_lint" = x"yes" ; then
18982   # Extract the first word of "$lint_name", so it can be a program name with args.
18983set dummy $lint_name; ac_word=$2
18984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18985$as_echo_n "checking for $ac_word... " >&6; }
18986if ${ac_cv_path_LINT+:} false; then :
18987  $as_echo_n "(cached) " >&6
18988else
18989  case $LINT in
18990  [\\/]* | ?:[\\/]*)
18991  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18992  ;;
18993  *)
18994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18995for as_dir in $PATH
18996do
18997  IFS=$as_save_IFS
18998  test -z "$as_dir" && as_dir=.
18999    for ac_exec_ext in '' $ac_executable_extensions; do
19000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19001    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
19002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19003    break 2
19004  fi
19005done
19006  done
19007IFS=$as_save_IFS
19008
19009  ;;
19010esac
19011fi
19012LINT=$ac_cv_path_LINT
19013if test -n "$LINT"; then
19014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19015$as_echo "$LINT" >&6; }
19016else
19017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19018$as_echo "no" >&6; }
19019fi
19020
19021
19022   if test "x$LINT" = "x"; then
19023        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19024   fi
19025elif test "x$use_lint" = x"no" ; then
19026   if test "x$LINT" != "x"; then
19027      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19028$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19029   fi
19030else
19031   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19032fi
19033
19034# User supplied flags override default flags
19035if test "x$LINT_FLAGS" != "x"; then
19036   lint_options=$LINT_FLAGS
19037fi
19038
19039LINT_FLAGS=$lint_options
19040
19041 if test "x$LINT" != x; then
19042  LINT_TRUE=
19043  LINT_FALSE='#'
19044else
19045  LINT_TRUE='#'
19046  LINT_FALSE=
19047fi
19048
19049
19050
19051
19052
19053# Check whether --enable-lint-library was given.
19054if test "${enable_lint_library+set}" = set; then :
19055  enableval=$enable_lint_library; make_lint_lib=$enableval
19056else
19057  make_lint_lib=no
19058fi
19059
19060
19061if test "x$make_lint_lib" = x"yes" ; then
19062   LINTLIB=llib-lXau.ln
19063   if test "x$LINT" = "x"; then
19064        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
19065   fi
19066elif test "x$make_lint_lib" != x"no" ; then
19067   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
19068fi
19069
19070
19071 if test x$make_lint_lib != xno; then
19072  MAKE_LINT_LIB_TRUE=
19073  MAKE_LINT_LIB_FALSE='#'
19074else
19075  MAKE_LINT_LIB_TRUE='#'
19076  MAKE_LINT_LIB_FALSE=
19077fi
19078
19079
19080
19081LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
19082
19083ac_config_files="$ac_config_files Makefile man/Makefile xau.pc"
19084
19085cat >confcache <<\_ACEOF
19086# This file is a shell script that caches the results of configure
19087# tests run on this system so they can be shared between configure
19088# scripts and configure runs, see configure's option --config-cache.
19089# It is not useful on other systems.  If it contains results you don't
19090# want to keep, you may remove or edit it.
19091#
19092# config.status only pays attention to the cache file if you give it
19093# the --recheck option to rerun configure.
19094#
19095# `ac_cv_env_foo' variables (set or unset) will be overridden when
19096# loading this file, other *unset* `ac_cv_foo' will be assigned the
19097# following values.
19098
19099_ACEOF
19100
19101# The following way of writing the cache mishandles newlines in values,
19102# but we know of no workaround that is simple, portable, and efficient.
19103# So, we kill variables containing newlines.
19104# Ultrix sh set writes to stderr and can't be redirected directly,
19105# and sets the high bit in the cache file unless we assign to the vars.
19106(
19107  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19108    eval ac_val=\$$ac_var
19109    case $ac_val in #(
19110    *${as_nl}*)
19111      case $ac_var in #(
19112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19114      esac
19115      case $ac_var in #(
19116      _ | IFS | as_nl) ;; #(
19117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19118      *) { eval $ac_var=; unset $ac_var;} ;;
19119      esac ;;
19120    esac
19121  done
19122
19123  (set) 2>&1 |
19124    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19125    *${as_nl}ac_space=\ *)
19126      # `set' does not quote correctly, so add quotes: double-quote
19127      # substitution turns \\\\ into \\, and sed turns \\ into \.
19128      sed -n \
19129	"s/'/'\\\\''/g;
19130	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19131      ;; #(
19132    *)
19133      # `set' quotes correctly as required by POSIX, so do not add quotes.
19134      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19135      ;;
19136    esac |
19137    sort
19138) |
19139  sed '
19140     /^ac_cv_env_/b end
19141     t clear
19142     :clear
19143     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19144     t end
19145     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19146     :end' >>confcache
19147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19148  if test -w "$cache_file"; then
19149    if test "x$cache_file" != "x/dev/null"; then
19150      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19151$as_echo "$as_me: updating cache $cache_file" >&6;}
19152      if test ! -f "$cache_file" || test -h "$cache_file"; then
19153	cat confcache >"$cache_file"
19154      else
19155        case $cache_file in #(
19156        */* | ?:*)
19157	  mv -f confcache "$cache_file"$$ &&
19158	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19159        *)
19160	  mv -f confcache "$cache_file" ;;
19161	esac
19162      fi
19163    fi
19164  else
19165    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19166$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19167  fi
19168fi
19169rm -f confcache
19170
19171test "x$prefix" = xNONE && prefix=$ac_default_prefix
19172# Let make expand exec_prefix.
19173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19174
19175DEFS=-DHAVE_CONFIG_H
19176
19177ac_libobjs=
19178ac_ltlibobjs=
19179U=
19180for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19181  # 1. Remove the extension, and $U if already installed.
19182  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19183  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19184  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19185  #    will be set to the directory where LIBOBJS objects are built.
19186  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19187  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19188done
19189LIBOBJS=$ac_libobjs
19190
19191LTLIBOBJS=$ac_ltlibobjs
19192
19193
19194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19195$as_echo_n "checking that generated files are newer than configure... " >&6; }
19196   if test -n "$am_sleep_pid"; then
19197     # Hide warnings about reused PIDs.
19198     wait $am_sleep_pid 2>/dev/null
19199   fi
19200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19201$as_echo "done" >&6; }
19202if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19203  as_fn_error $? "conditional \"AMDEP\" was never defined.
19204Usually this means the macro was only invoked conditionally." "$LINENO" 5
19205fi
19206if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19207  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19208Usually this means the macro was only invoked conditionally." "$LINENO" 5
19209fi
19210 if test -n "$EXEEXT"; then
19211  am__EXEEXT_TRUE=
19212  am__EXEEXT_FALSE='#'
19213else
19214  am__EXEEXT_TRUE='#'
19215  am__EXEEXT_FALSE=
19216fi
19217
19218if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19219  as_fn_error $? "conditional \"LINT\" was never defined.
19220Usually this means the macro was only invoked conditionally." "$LINENO" 5
19221fi
19222if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
19223  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
19224Usually this means the macro was only invoked conditionally." "$LINENO" 5
19225fi
19226
19227: "${CONFIG_STATUS=./config.status}"
19228ac_write_fail=0
19229ac_clean_files_save=$ac_clean_files
19230ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19231{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19232$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19233as_write_fail=0
19234cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19235#! $SHELL
19236# Generated by $as_me.
19237# Run this file to recreate the current configuration.
19238# Compiler output produced by configure, useful for debugging
19239# configure, is in config.log if it exists.
19240
19241debug=false
19242ac_cs_recheck=false
19243ac_cs_silent=false
19244
19245SHELL=\${CONFIG_SHELL-$SHELL}
19246export SHELL
19247_ASEOF
19248cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19249## -------------------- ##
19250## M4sh Initialization. ##
19251## -------------------- ##
19252
19253# Be more Bourne compatible
19254DUALCASE=1; export DUALCASE # for MKS sh
19255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19256  emulate sh
19257  NULLCMD=:
19258  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19259  # is contrary to our usage.  Disable this feature.
19260  alias -g '${1+"$@"}'='"$@"'
19261  setopt NO_GLOB_SUBST
19262else
19263  case `(set -o) 2>/dev/null` in #(
19264  *posix*) :
19265    set -o posix ;; #(
19266  *) :
19267     ;;
19268esac
19269fi
19270
19271
19272as_nl='
19273'
19274export as_nl
19275# Printing a long string crashes Solaris 7 /usr/bin/printf.
19276as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19279# Prefer a ksh shell builtin over an external printf program on Solaris,
19280# but without wasting forks for bash or zsh.
19281if test -z "$BASH_VERSION$ZSH_VERSION" \
19282    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19283  as_echo='print -r --'
19284  as_echo_n='print -rn --'
19285elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19286  as_echo='printf %s\n'
19287  as_echo_n='printf %s'
19288else
19289  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19290    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19291    as_echo_n='/usr/ucb/echo -n'
19292  else
19293    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19294    as_echo_n_body='eval
19295      arg=$1;
19296      case $arg in #(
19297      *"$as_nl"*)
19298	expr "X$arg" : "X\\(.*\\)$as_nl";
19299	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19300      esac;
19301      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19302    '
19303    export as_echo_n_body
19304    as_echo_n='sh -c $as_echo_n_body as_echo'
19305  fi
19306  export as_echo_body
19307  as_echo='sh -c $as_echo_body as_echo'
19308fi
19309
19310# The user is always right.
19311if test "${PATH_SEPARATOR+set}" != set; then
19312  PATH_SEPARATOR=:
19313  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19314    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19315      PATH_SEPARATOR=';'
19316  }
19317fi
19318
19319
19320# IFS
19321# We need space, tab and new line, in precisely that order.  Quoting is
19322# there to prevent editors from complaining about space-tab.
19323# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19324# splitting by setting IFS to empty value.)
19325IFS=" ""	$as_nl"
19326
19327# Find who we are.  Look in the path if we contain no directory separator.
19328as_myself=
19329case $0 in #((
19330  *[\\/]* ) as_myself=$0 ;;
19331  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19332for as_dir in $PATH
19333do
19334  IFS=$as_save_IFS
19335  test -z "$as_dir" && as_dir=.
19336    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19337  done
19338IFS=$as_save_IFS
19339
19340     ;;
19341esac
19342# We did not find ourselves, most probably we were run as `sh COMMAND'
19343# in which case we are not to be found in the path.
19344if test "x$as_myself" = x; then
19345  as_myself=$0
19346fi
19347if test ! -f "$as_myself"; then
19348  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19349  exit 1
19350fi
19351
19352# Unset variables that we do not need and which cause bugs (e.g. in
19353# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19354# suppresses any "Segmentation fault" message there.  '((' could
19355# trigger a bug in pdksh 5.2.14.
19356for as_var in BASH_ENV ENV MAIL MAILPATH
19357do eval test x\${$as_var+set} = xset \
19358  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19359done
19360PS1='$ '
19361PS2='> '
19362PS4='+ '
19363
19364# NLS nuisances.
19365LC_ALL=C
19366export LC_ALL
19367LANGUAGE=C
19368export LANGUAGE
19369
19370# CDPATH.
19371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19372
19373
19374# as_fn_error STATUS ERROR [LINENO LOG_FD]
19375# ----------------------------------------
19376# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19377# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19378# script with STATUS, using 1 if that was 0.
19379as_fn_error ()
19380{
19381  as_status=$1; test $as_status -eq 0 && as_status=1
19382  if test "$4"; then
19383    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19384    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19385  fi
19386  $as_echo "$as_me: error: $2" >&2
19387  as_fn_exit $as_status
19388} # as_fn_error
19389
19390
19391# as_fn_set_status STATUS
19392# -----------------------
19393# Set $? to STATUS, without forking.
19394as_fn_set_status ()
19395{
19396  return $1
19397} # as_fn_set_status
19398
19399# as_fn_exit STATUS
19400# -----------------
19401# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19402as_fn_exit ()
19403{
19404  set +e
19405  as_fn_set_status $1
19406  exit $1
19407} # as_fn_exit
19408
19409# as_fn_unset VAR
19410# ---------------
19411# Portably unset VAR.
19412as_fn_unset ()
19413{
19414  { eval $1=; unset $1;}
19415}
19416as_unset=as_fn_unset
19417# as_fn_append VAR VALUE
19418# ----------------------
19419# Append the text in VALUE to the end of the definition contained in VAR. Take
19420# advantage of any shell optimizations that allow amortized linear growth over
19421# repeated appends, instead of the typical quadratic growth present in naive
19422# implementations.
19423if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19424  eval 'as_fn_append ()
19425  {
19426    eval $1+=\$2
19427  }'
19428else
19429  as_fn_append ()
19430  {
19431    eval $1=\$$1\$2
19432  }
19433fi # as_fn_append
19434
19435# as_fn_arith ARG...
19436# ------------------
19437# Perform arithmetic evaluation on the ARGs, and store the result in the
19438# global $as_val. Take advantage of shells that can avoid forks. The arguments
19439# must be portable across $(()) and expr.
19440if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19441  eval 'as_fn_arith ()
19442  {
19443    as_val=$(( $* ))
19444  }'
19445else
19446  as_fn_arith ()
19447  {
19448    as_val=`expr "$@" || test $? -eq 1`
19449  }
19450fi # as_fn_arith
19451
19452
19453if expr a : '\(a\)' >/dev/null 2>&1 &&
19454   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19455  as_expr=expr
19456else
19457  as_expr=false
19458fi
19459
19460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19461  as_basename=basename
19462else
19463  as_basename=false
19464fi
19465
19466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19467  as_dirname=dirname
19468else
19469  as_dirname=false
19470fi
19471
19472as_me=`$as_basename -- "$0" ||
19473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19474	 X"$0" : 'X\(//\)$' \| \
19475	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19476$as_echo X/"$0" |
19477    sed '/^.*\/\([^/][^/]*\)\/*$/{
19478	    s//\1/
19479	    q
19480	  }
19481	  /^X\/\(\/\/\)$/{
19482	    s//\1/
19483	    q
19484	  }
19485	  /^X\/\(\/\).*/{
19486	    s//\1/
19487	    q
19488	  }
19489	  s/.*/./; q'`
19490
19491# Avoid depending upon Character Ranges.
19492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19495as_cr_digits='0123456789'
19496as_cr_alnum=$as_cr_Letters$as_cr_digits
19497
19498ECHO_C= ECHO_N= ECHO_T=
19499case `echo -n x` in #(((((
19500-n*)
19501  case `echo 'xy\c'` in
19502  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19503  xy)  ECHO_C='\c';;
19504  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19505       ECHO_T='	';;
19506  esac;;
19507*)
19508  ECHO_N='-n';;
19509esac
19510
19511rm -f conf$$ conf$$.exe conf$$.file
19512if test -d conf$$.dir; then
19513  rm -f conf$$.dir/conf$$.file
19514else
19515  rm -f conf$$.dir
19516  mkdir conf$$.dir 2>/dev/null
19517fi
19518if (echo >conf$$.file) 2>/dev/null; then
19519  if ln -s conf$$.file conf$$ 2>/dev/null; then
19520    as_ln_s='ln -s'
19521    # ... but there are two gotchas:
19522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19524    # In both cases, we have to default to `cp -pR'.
19525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19526      as_ln_s='cp -pR'
19527  elif ln conf$$.file conf$$ 2>/dev/null; then
19528    as_ln_s=ln
19529  else
19530    as_ln_s='cp -pR'
19531  fi
19532else
19533  as_ln_s='cp -pR'
19534fi
19535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19536rmdir conf$$.dir 2>/dev/null
19537
19538
19539# as_fn_mkdir_p
19540# -------------
19541# Create "$as_dir" as a directory, including parents if necessary.
19542as_fn_mkdir_p ()
19543{
19544
19545  case $as_dir in #(
19546  -*) as_dir=./$as_dir;;
19547  esac
19548  test -d "$as_dir" || eval $as_mkdir_p || {
19549    as_dirs=
19550    while :; do
19551      case $as_dir in #(
19552      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19553      *) as_qdir=$as_dir;;
19554      esac
19555      as_dirs="'$as_qdir' $as_dirs"
19556      as_dir=`$as_dirname -- "$as_dir" ||
19557$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19558	 X"$as_dir" : 'X\(//\)[^/]' \| \
19559	 X"$as_dir" : 'X\(//\)$' \| \
19560	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19561$as_echo X"$as_dir" |
19562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19563	    s//\1/
19564	    q
19565	  }
19566	  /^X\(\/\/\)[^/].*/{
19567	    s//\1/
19568	    q
19569	  }
19570	  /^X\(\/\/\)$/{
19571	    s//\1/
19572	    q
19573	  }
19574	  /^X\(\/\).*/{
19575	    s//\1/
19576	    q
19577	  }
19578	  s/.*/./; q'`
19579      test -d "$as_dir" && break
19580    done
19581    test -z "$as_dirs" || eval "mkdir $as_dirs"
19582  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19583
19584
19585} # as_fn_mkdir_p
19586if mkdir -p . 2>/dev/null; then
19587  as_mkdir_p='mkdir -p "$as_dir"'
19588else
19589  test -d ./-p && rmdir ./-p
19590  as_mkdir_p=false
19591fi
19592
19593
19594# as_fn_executable_p FILE
19595# -----------------------
19596# Test if FILE is an executable regular file.
19597as_fn_executable_p ()
19598{
19599  test -f "$1" && test -x "$1"
19600} # as_fn_executable_p
19601as_test_x='test -x'
19602as_executable_p=as_fn_executable_p
19603
19604# Sed expression to map a string onto a valid CPP name.
19605as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19606
19607# Sed expression to map a string onto a valid variable name.
19608as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19609
19610
19611exec 6>&1
19612## ----------------------------------- ##
19613## Main body of $CONFIG_STATUS script. ##
19614## ----------------------------------- ##
19615_ASEOF
19616test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19617
19618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19619# Save the log message, to keep $0 and so on meaningful, and to
19620# report actual input values of CONFIG_FILES etc. instead of their
19621# values after options handling.
19622ac_log="
19623This file was extended by libXau $as_me 1.0.9, which was
19624generated by GNU Autoconf 2.69.  Invocation command line was
19625
19626  CONFIG_FILES    = $CONFIG_FILES
19627  CONFIG_HEADERS  = $CONFIG_HEADERS
19628  CONFIG_LINKS    = $CONFIG_LINKS
19629  CONFIG_COMMANDS = $CONFIG_COMMANDS
19630  $ $0 $@
19631
19632on `(hostname || uname -n) 2>/dev/null | sed 1q`
19633"
19634
19635_ACEOF
19636
19637case $ac_config_files in *"
19638"*) set x $ac_config_files; shift; ac_config_files=$*;;
19639esac
19640
19641case $ac_config_headers in *"
19642"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19643esac
19644
19645
19646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19647# Files that config.status was made for.
19648config_files="$ac_config_files"
19649config_headers="$ac_config_headers"
19650config_commands="$ac_config_commands"
19651
19652_ACEOF
19653
19654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19655ac_cs_usage="\
19656\`$as_me' instantiates files and other configuration actions
19657from templates according to the current configuration.  Unless the files
19658and actions are specified as TAGs, all are instantiated by default.
19659
19660Usage: $0 [OPTION]... [TAG]...
19661
19662  -h, --help       print this help, then exit
19663  -V, --version    print version number and configuration settings, then exit
19664      --config     print configuration, then exit
19665  -q, --quiet, --silent
19666                   do not print progress messages
19667  -d, --debug      don't remove temporary files
19668      --recheck    update $as_me by reconfiguring in the same conditions
19669      --file=FILE[:TEMPLATE]
19670                   instantiate the configuration file FILE
19671      --header=FILE[:TEMPLATE]
19672                   instantiate the configuration header FILE
19673
19674Configuration files:
19675$config_files
19676
19677Configuration headers:
19678$config_headers
19679
19680Configuration commands:
19681$config_commands
19682
19683Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXau/issues>."
19684
19685_ACEOF
19686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19687ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19688ac_cs_version="\\
19689libXau config.status 1.0.9
19690configured by $0, generated by GNU Autoconf 2.69,
19691  with options \\"\$ac_cs_config\\"
19692
19693Copyright (C) 2012 Free Software Foundation, Inc.
19694This config.status script is free software; the Free Software Foundation
19695gives unlimited permission to copy, distribute and modify it."
19696
19697ac_pwd='$ac_pwd'
19698srcdir='$srcdir'
19699INSTALL='$INSTALL'
19700MKDIR_P='$MKDIR_P'
19701AWK='$AWK'
19702test -n "\$AWK" || AWK=awk
19703_ACEOF
19704
19705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19706# The default lists apply if the user does not specify any file.
19707ac_need_defaults=:
19708while test $# != 0
19709do
19710  case $1 in
19711  --*=?*)
19712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19713    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19714    ac_shift=:
19715    ;;
19716  --*=)
19717    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19718    ac_optarg=
19719    ac_shift=:
19720    ;;
19721  *)
19722    ac_option=$1
19723    ac_optarg=$2
19724    ac_shift=shift
19725    ;;
19726  esac
19727
19728  case $ac_option in
19729  # Handling of the options.
19730  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19731    ac_cs_recheck=: ;;
19732  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19733    $as_echo "$ac_cs_version"; exit ;;
19734  --config | --confi | --conf | --con | --co | --c )
19735    $as_echo "$ac_cs_config"; exit ;;
19736  --debug | --debu | --deb | --de | --d | -d )
19737    debug=: ;;
19738  --file | --fil | --fi | --f )
19739    $ac_shift
19740    case $ac_optarg in
19741    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19742    '') as_fn_error $? "missing file argument" ;;
19743    esac
19744    as_fn_append CONFIG_FILES " '$ac_optarg'"
19745    ac_need_defaults=false;;
19746  --header | --heade | --head | --hea )
19747    $ac_shift
19748    case $ac_optarg in
19749    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19750    esac
19751    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19752    ac_need_defaults=false;;
19753  --he | --h)
19754    # Conflict between --help and --header
19755    as_fn_error $? "ambiguous option: \`$1'
19756Try \`$0 --help' for more information.";;
19757  --help | --hel | -h )
19758    $as_echo "$ac_cs_usage"; exit ;;
19759  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19760  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19761    ac_cs_silent=: ;;
19762
19763  # This is an error.
19764  -*) as_fn_error $? "unrecognized option: \`$1'
19765Try \`$0 --help' for more information." ;;
19766
19767  *) as_fn_append ac_config_targets " $1"
19768     ac_need_defaults=false ;;
19769
19770  esac
19771  shift
19772done
19773
19774ac_configure_extra_args=
19775
19776if $ac_cs_silent; then
19777  exec 6>/dev/null
19778  ac_configure_extra_args="$ac_configure_extra_args --silent"
19779fi
19780
19781_ACEOF
19782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19783if \$ac_cs_recheck; then
19784  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19785  shift
19786  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19787  CONFIG_SHELL='$SHELL'
19788  export CONFIG_SHELL
19789  exec "\$@"
19790fi
19791
19792_ACEOF
19793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19794exec 5>>config.log
19795{
19796  echo
19797  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19798## Running $as_me. ##
19799_ASBOX
19800  $as_echo "$ac_log"
19801} >&5
19802
19803_ACEOF
19804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805#
19806# INIT-COMMANDS
19807#
19808AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19809
19810
19811# The HP-UX ksh and POSIX shell print the target directory to stdout
19812# if CDPATH is set.
19813(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19814
19815sed_quote_subst='$sed_quote_subst'
19816double_quote_subst='$double_quote_subst'
19817delay_variable_subst='$delay_variable_subst'
19818AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19819DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19820OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19821macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19822macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19823enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19824enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19825pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19826enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19827shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19828SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19829ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19830PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19831host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19832host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19833host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19834build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19835build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19836build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19837SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19838Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19839GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19840EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19841FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19842LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19843NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19844LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19845max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19846ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19847exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19848lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19849lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19850lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19851lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19852lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19853reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19854reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19855deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19856file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19857file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19858want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19859sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19860AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19861AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19862archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19863STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19864RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19865old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19866old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19867old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19868lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19869CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19870CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19871compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19872GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19873lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19874lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19875lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19876lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19877lt_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"`'
19878lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19879nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19880lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19881lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19882objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19883MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19884lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19885lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19886lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19887lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19888lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19889need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19890MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19891DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19892NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19893LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19894OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19895OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19896libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19897shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19898extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19899archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19900enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19901export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19902whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19903compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19904old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19905old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19906archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19907archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19908module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19909module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19910with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19911allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19912no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19913hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19914hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19915hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19916hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19917hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19918hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19919hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19920inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19921link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19922always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19923export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19924exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19925include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19926prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19927postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19928file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19929variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19930need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19931need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19932version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19933runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19934shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19935shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19936libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19937library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19938soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19939install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19940postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19941postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19942finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19943finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19944hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19945sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19946configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19947configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19948hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19949enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19950enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19951enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19952old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19953striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19954
19955LTCC='$LTCC'
19956LTCFLAGS='$LTCFLAGS'
19957compiler='$compiler_DEFAULT'
19958
19959# A function that is used when there is no print builtin or printf.
19960func_fallback_echo ()
19961{
19962  eval 'cat <<_LTECHO_EOF
19963\$1
19964_LTECHO_EOF'
19965}
19966
19967# Quote evaled strings.
19968for var in AS \
19969DLLTOOL \
19970OBJDUMP \
19971SHELL \
19972ECHO \
19973PATH_SEPARATOR \
19974SED \
19975GREP \
19976EGREP \
19977FGREP \
19978LD \
19979NM \
19980LN_S \
19981lt_SP2NL \
19982lt_NL2SP \
19983reload_flag \
19984deplibs_check_method \
19985file_magic_cmd \
19986file_magic_glob \
19987want_nocaseglob \
19988sharedlib_from_linklib_cmd \
19989AR \
19990AR_FLAGS \
19991archiver_list_spec \
19992STRIP \
19993RANLIB \
19994CC \
19995CFLAGS \
19996compiler \
19997lt_cv_sys_global_symbol_pipe \
19998lt_cv_sys_global_symbol_to_cdecl \
19999lt_cv_sys_global_symbol_to_import \
20000lt_cv_sys_global_symbol_to_c_name_address \
20001lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20002lt_cv_nm_interface \
20003nm_file_list_spec \
20004lt_cv_truncate_bin \
20005lt_prog_compiler_no_builtin_flag \
20006lt_prog_compiler_pic \
20007lt_prog_compiler_wl \
20008lt_prog_compiler_static \
20009lt_cv_prog_compiler_c_o \
20010need_locks \
20011MANIFEST_TOOL \
20012DSYMUTIL \
20013NMEDIT \
20014LIPO \
20015OTOOL \
20016OTOOL64 \
20017shrext_cmds \
20018export_dynamic_flag_spec \
20019whole_archive_flag_spec \
20020compiler_needs_object \
20021with_gnu_ld \
20022allow_undefined_flag \
20023no_undefined_flag \
20024hardcode_libdir_flag_spec \
20025hardcode_libdir_separator \
20026exclude_expsyms \
20027include_expsyms \
20028file_list_spec \
20029variables_saved_for_relink \
20030libname_spec \
20031library_names_spec \
20032soname_spec \
20033install_override_mode \
20034finish_eval \
20035old_striplib \
20036striplib; do
20037    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20038    *[\\\\\\\`\\"\\\$]*)
20039      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20040      ;;
20041    *)
20042      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20043      ;;
20044    esac
20045done
20046
20047# Double-quote double-evaled strings.
20048for var in reload_cmds \
20049old_postinstall_cmds \
20050old_postuninstall_cmds \
20051old_archive_cmds \
20052extract_expsyms_cmds \
20053old_archive_from_new_cmds \
20054old_archive_from_expsyms_cmds \
20055archive_cmds \
20056archive_expsym_cmds \
20057module_cmds \
20058module_expsym_cmds \
20059export_symbols_cmds \
20060prelink_cmds \
20061postlink_cmds \
20062postinstall_cmds \
20063postuninstall_cmds \
20064finish_cmds \
20065sys_lib_search_path_spec \
20066configure_time_dlsearch_path \
20067configure_time_lt_sys_library_path; do
20068    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20069    *[\\\\\\\`\\"\\\$]*)
20070      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20071      ;;
20072    *)
20073      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20074      ;;
20075    esac
20076done
20077
20078ac_aux_dir='$ac_aux_dir'
20079
20080# See if we are running on zsh, and set the options that allow our
20081# commands through without removal of \ escapes INIT.
20082if test -n "\${ZSH_VERSION+set}"; then
20083   setopt NO_GLOB_SUBST
20084fi
20085
20086
20087    PACKAGE='$PACKAGE'
20088    VERSION='$VERSION'
20089    RM='$RM'
20090    ofile='$ofile'
20091
20092
20093
20094
20095_ACEOF
20096
20097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20098
20099# Handling of arguments.
20100for ac_config_target in $ac_config_targets
20101do
20102  case $ac_config_target in
20103    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20104    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20105    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20106    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20107    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20108    "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
20109
20110  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20111  esac
20112done
20113
20114
20115# If the user did not use the arguments to specify the items to instantiate,
20116# then the envvar interface is used.  Set only those that are not.
20117# We use the long form for the default assignment because of an extremely
20118# bizarre bug on SunOS 4.1.3.
20119if $ac_need_defaults; then
20120  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20121  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20122  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20123fi
20124
20125# Have a temporary directory for convenience.  Make it in the build tree
20126# simply because there is no reason against having it here, and in addition,
20127# creating and moving files from /tmp can sometimes cause problems.
20128# Hook for its removal unless debugging.
20129# Note that there is a small window in which the directory will not be cleaned:
20130# after its creation but before its name has been assigned to `$tmp'.
20131$debug ||
20132{
20133  tmp= ac_tmp=
20134  trap 'exit_status=$?
20135  : "${ac_tmp:=$tmp}"
20136  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20137' 0
20138  trap 'as_fn_exit 1' 1 2 13 15
20139}
20140# Create a (secure) tmp directory for tmp files.
20141
20142{
20143  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20144  test -d "$tmp"
20145}  ||
20146{
20147  tmp=./conf$$-$RANDOM
20148  (umask 077 && mkdir "$tmp")
20149} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20150ac_tmp=$tmp
20151
20152# Set up the scripts for CONFIG_FILES section.
20153# No need to generate them if there are no CONFIG_FILES.
20154# This happens for instance with `./config.status config.h'.
20155if test -n "$CONFIG_FILES"; then
20156
20157
20158ac_cr=`echo X | tr X '\015'`
20159# On cygwin, bash can eat \r inside `` if the user requested igncr.
20160# But we know of no other shell where ac_cr would be empty at this
20161# point, so we can use a bashism as a fallback.
20162if test "x$ac_cr" = x; then
20163  eval ac_cr=\$\'\\r\'
20164fi
20165ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20166if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20167  ac_cs_awk_cr='\\r'
20168else
20169  ac_cs_awk_cr=$ac_cr
20170fi
20171
20172echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20173_ACEOF
20174
20175
20176{
20177  echo "cat >conf$$subs.awk <<_ACEOF" &&
20178  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20179  echo "_ACEOF"
20180} >conf$$subs.sh ||
20181  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20182ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20183ac_delim='%!_!# '
20184for ac_last_try in false false false false false :; do
20185  . ./conf$$subs.sh ||
20186    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20187
20188  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20189  if test $ac_delim_n = $ac_delim_num; then
20190    break
20191  elif $ac_last_try; then
20192    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20193  else
20194    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20195  fi
20196done
20197rm -f conf$$subs.sh
20198
20199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20200cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20201_ACEOF
20202sed -n '
20203h
20204s/^/S["/; s/!.*/"]=/
20205p
20206g
20207s/^[^!]*!//
20208:repl
20209t repl
20210s/'"$ac_delim"'$//
20211t delim
20212:nl
20213h
20214s/\(.\{148\}\)..*/\1/
20215t more1
20216s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20217p
20218n
20219b repl
20220:more1
20221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20222p
20223g
20224s/.\{148\}//
20225t nl
20226:delim
20227h
20228s/\(.\{148\}\)..*/\1/
20229t more2
20230s/["\\]/\\&/g; s/^/"/; s/$/"/
20231p
20232b
20233:more2
20234s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20235p
20236g
20237s/.\{148\}//
20238t delim
20239' <conf$$subs.awk | sed '
20240/^[^""]/{
20241  N
20242  s/\n//
20243}
20244' >>$CONFIG_STATUS || ac_write_fail=1
20245rm -f conf$$subs.awk
20246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20247_ACAWK
20248cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20249  for (key in S) S_is_set[key] = 1
20250  FS = ""
20251
20252}
20253{
20254  line = $ 0
20255  nfields = split(line, field, "@")
20256  substed = 0
20257  len = length(field[1])
20258  for (i = 2; i < nfields; i++) {
20259    key = field[i]
20260    keylen = length(key)
20261    if (S_is_set[key]) {
20262      value = S[key]
20263      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20264      len += length(value) + length(field[++i])
20265      substed = 1
20266    } else
20267      len += 1 + keylen
20268  }
20269
20270  print line
20271}
20272
20273_ACAWK
20274_ACEOF
20275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20276if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20277  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20278else
20279  cat
20280fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20281  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20282_ACEOF
20283
20284# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20285# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20286# trailing colons and then remove the whole line if VPATH becomes empty
20287# (actually we leave an empty line to preserve line numbers).
20288if test "x$srcdir" = x.; then
20289  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20290h
20291s///
20292s/^/:/
20293s/[	 ]*$/:/
20294s/:\$(srcdir):/:/g
20295s/:\${srcdir}:/:/g
20296s/:@srcdir@:/:/g
20297s/^:*//
20298s/:*$//
20299x
20300s/\(=[	 ]*\).*/\1/
20301G
20302s/\n//
20303s/^[^=]*=[	 ]*$//
20304}'
20305fi
20306
20307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20308fi # test -n "$CONFIG_FILES"
20309
20310# Set up the scripts for CONFIG_HEADERS section.
20311# No need to generate them if there are no CONFIG_HEADERS.
20312# This happens for instance with `./config.status Makefile'.
20313if test -n "$CONFIG_HEADERS"; then
20314cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20315BEGIN {
20316_ACEOF
20317
20318# Transform confdefs.h into an awk script `defines.awk', embedded as
20319# here-document in config.status, that substitutes the proper values into
20320# config.h.in to produce config.h.
20321
20322# Create a delimiter string that does not exist in confdefs.h, to ease
20323# handling of long lines.
20324ac_delim='%!_!# '
20325for ac_last_try in false false :; do
20326  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20327  if test -z "$ac_tt"; then
20328    break
20329  elif $ac_last_try; then
20330    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20331  else
20332    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20333  fi
20334done
20335
20336# For the awk script, D is an array of macro values keyed by name,
20337# likewise P contains macro parameters if any.  Preserve backslash
20338# newline sequences.
20339
20340ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20341sed -n '
20342s/.\{148\}/&'"$ac_delim"'/g
20343t rset
20344:rset
20345s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20346t def
20347d
20348:def
20349s/\\$//
20350t bsnl
20351s/["\\]/\\&/g
20352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20353D["\1"]=" \3"/p
20354s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20355d
20356:bsnl
20357s/["\\]/\\&/g
20358s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20359D["\1"]=" \3\\\\\\n"\\/p
20360t cont
20361s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20362t cont
20363d
20364:cont
20365n
20366s/.\{148\}/&'"$ac_delim"'/g
20367t clear
20368:clear
20369s/\\$//
20370t bsnlc
20371s/["\\]/\\&/g; s/^/"/; s/$/"/p
20372d
20373:bsnlc
20374s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20375b cont
20376' <confdefs.h | sed '
20377s/'"$ac_delim"'/"\\\
20378"/g' >>$CONFIG_STATUS || ac_write_fail=1
20379
20380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20381  for (key in D) D_is_set[key] = 1
20382  FS = ""
20383}
20384/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20385  line = \$ 0
20386  split(line, arg, " ")
20387  if (arg[1] == "#") {
20388    defundef = arg[2]
20389    mac1 = arg[3]
20390  } else {
20391    defundef = substr(arg[1], 2)
20392    mac1 = arg[2]
20393  }
20394  split(mac1, mac2, "(") #)
20395  macro = mac2[1]
20396  prefix = substr(line, 1, index(line, defundef) - 1)
20397  if (D_is_set[macro]) {
20398    # Preserve the white space surrounding the "#".
20399    print prefix "define", macro P[macro] D[macro]
20400    next
20401  } else {
20402    # Replace #undef with comments.  This is necessary, for example,
20403    # in the case of _POSIX_SOURCE, which is predefined and required
20404    # on some systems where configure will not decide to define it.
20405    if (defundef == "undef") {
20406      print "/*", prefix defundef, macro, "*/"
20407      next
20408    }
20409  }
20410}
20411{ print }
20412_ACAWK
20413_ACEOF
20414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20415  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20416fi # test -n "$CONFIG_HEADERS"
20417
20418
20419eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20420shift
20421for ac_tag
20422do
20423  case $ac_tag in
20424  :[FHLC]) ac_mode=$ac_tag; continue;;
20425  esac
20426  case $ac_mode$ac_tag in
20427  :[FHL]*:*);;
20428  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20429  :[FH]-) ac_tag=-:-;;
20430  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20431  esac
20432  ac_save_IFS=$IFS
20433  IFS=:
20434  set x $ac_tag
20435  IFS=$ac_save_IFS
20436  shift
20437  ac_file=$1
20438  shift
20439
20440  case $ac_mode in
20441  :L) ac_source=$1;;
20442  :[FH])
20443    ac_file_inputs=
20444    for ac_f
20445    do
20446      case $ac_f in
20447      -) ac_f="$ac_tmp/stdin";;
20448      *) # Look for the file first in the build tree, then in the source tree
20449	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20450	 # because $ac_f cannot contain `:'.
20451	 test -f "$ac_f" ||
20452	   case $ac_f in
20453	   [\\/$]*) false;;
20454	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20455	   esac ||
20456	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20457      esac
20458      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20459      as_fn_append ac_file_inputs " '$ac_f'"
20460    done
20461
20462    # Let's still pretend it is `configure' which instantiates (i.e., don't
20463    # use $as_me), people would be surprised to read:
20464    #    /* config.h.  Generated by config.status.  */
20465    configure_input='Generated from '`
20466	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20467	`' by configure.'
20468    if test x"$ac_file" != x-; then
20469      configure_input="$ac_file.  $configure_input"
20470      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20471$as_echo "$as_me: creating $ac_file" >&6;}
20472    fi
20473    # Neutralize special characters interpreted by sed in replacement strings.
20474    case $configure_input in #(
20475    *\&* | *\|* | *\\* )
20476       ac_sed_conf_input=`$as_echo "$configure_input" |
20477       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20478    *) ac_sed_conf_input=$configure_input;;
20479    esac
20480
20481    case $ac_tag in
20482    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20483      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20484    esac
20485    ;;
20486  esac
20487
20488  ac_dir=`$as_dirname -- "$ac_file" ||
20489$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20490	 X"$ac_file" : 'X\(//\)[^/]' \| \
20491	 X"$ac_file" : 'X\(//\)$' \| \
20492	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20493$as_echo X"$ac_file" |
20494    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20495	    s//\1/
20496	    q
20497	  }
20498	  /^X\(\/\/\)[^/].*/{
20499	    s//\1/
20500	    q
20501	  }
20502	  /^X\(\/\/\)$/{
20503	    s//\1/
20504	    q
20505	  }
20506	  /^X\(\/\).*/{
20507	    s//\1/
20508	    q
20509	  }
20510	  s/.*/./; q'`
20511  as_dir="$ac_dir"; as_fn_mkdir_p
20512  ac_builddir=.
20513
20514case "$ac_dir" in
20515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20516*)
20517  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20518  # A ".." for each directory in $ac_dir_suffix.
20519  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20520  case $ac_top_builddir_sub in
20521  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20522  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20523  esac ;;
20524esac
20525ac_abs_top_builddir=$ac_pwd
20526ac_abs_builddir=$ac_pwd$ac_dir_suffix
20527# for backward compatibility:
20528ac_top_builddir=$ac_top_build_prefix
20529
20530case $srcdir in
20531  .)  # We are building in place.
20532    ac_srcdir=.
20533    ac_top_srcdir=$ac_top_builddir_sub
20534    ac_abs_top_srcdir=$ac_pwd ;;
20535  [\\/]* | ?:[\\/]* )  # Absolute name.
20536    ac_srcdir=$srcdir$ac_dir_suffix;
20537    ac_top_srcdir=$srcdir
20538    ac_abs_top_srcdir=$srcdir ;;
20539  *) # Relative name.
20540    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20541    ac_top_srcdir=$ac_top_build_prefix$srcdir
20542    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20543esac
20544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20545
20546
20547  case $ac_mode in
20548  :F)
20549  #
20550  # CONFIG_FILE
20551  #
20552
20553  case $INSTALL in
20554  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20555  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20556  esac
20557  ac_MKDIR_P=$MKDIR_P
20558  case $MKDIR_P in
20559  [\\/$]* | ?:[\\/]* ) ;;
20560  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20561  esac
20562_ACEOF
20563
20564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20565# If the template does not know about datarootdir, expand it.
20566# FIXME: This hack should be removed a few years after 2.60.
20567ac_datarootdir_hack=; ac_datarootdir_seen=
20568ac_sed_dataroot='
20569/datarootdir/ {
20570  p
20571  q
20572}
20573/@datadir@/p
20574/@docdir@/p
20575/@infodir@/p
20576/@localedir@/p
20577/@mandir@/p'
20578case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20579*datarootdir*) ac_datarootdir_seen=yes;;
20580*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20582$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20583_ACEOF
20584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20585  ac_datarootdir_hack='
20586  s&@datadir@&$datadir&g
20587  s&@docdir@&$docdir&g
20588  s&@infodir@&$infodir&g
20589  s&@localedir@&$localedir&g
20590  s&@mandir@&$mandir&g
20591  s&\\\${datarootdir}&$datarootdir&g' ;;
20592esac
20593_ACEOF
20594
20595# Neutralize VPATH when `$srcdir' = `.'.
20596# Shell code in configure.ac might set extrasub.
20597# FIXME: do we really want to maintain this feature?
20598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20599ac_sed_extra="$ac_vpsub
20600$extrasub
20601_ACEOF
20602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20603:t
20604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20605s|@configure_input@|$ac_sed_conf_input|;t t
20606s&@top_builddir@&$ac_top_builddir_sub&;t t
20607s&@top_build_prefix@&$ac_top_build_prefix&;t t
20608s&@srcdir@&$ac_srcdir&;t t
20609s&@abs_srcdir@&$ac_abs_srcdir&;t t
20610s&@top_srcdir@&$ac_top_srcdir&;t t
20611s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20612s&@builddir@&$ac_builddir&;t t
20613s&@abs_builddir@&$ac_abs_builddir&;t t
20614s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20615s&@INSTALL@&$ac_INSTALL&;t t
20616s&@MKDIR_P@&$ac_MKDIR_P&;t t
20617$ac_datarootdir_hack
20618"
20619eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20620  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20621
20622test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20623  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20624  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20625      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20627which seems to be undefined.  Please make sure it is defined" >&5
20628$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20629which seems to be undefined.  Please make sure it is defined" >&2;}
20630
20631  rm -f "$ac_tmp/stdin"
20632  case $ac_file in
20633  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20634  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20635  esac \
20636  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20637 ;;
20638  :H)
20639  #
20640  # CONFIG_HEADER
20641  #
20642  if test x"$ac_file" != x-; then
20643    {
20644      $as_echo "/* $configure_input  */" \
20645      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20646    } >"$ac_tmp/config.h" \
20647      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20648    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20649      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20650$as_echo "$as_me: $ac_file is unchanged" >&6;}
20651    else
20652      rm -f "$ac_file"
20653      mv "$ac_tmp/config.h" "$ac_file" \
20654	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20655    fi
20656  else
20657    $as_echo "/* $configure_input  */" \
20658      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20659      || as_fn_error $? "could not create -" "$LINENO" 5
20660  fi
20661# Compute "$ac_file"'s index in $config_headers.
20662_am_arg="$ac_file"
20663_am_stamp_count=1
20664for _am_header in $config_headers :; do
20665  case $_am_header in
20666    $_am_arg | $_am_arg:* )
20667      break ;;
20668    * )
20669      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20670  esac
20671done
20672echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20673$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20674	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20675	 X"$_am_arg" : 'X\(//\)$' \| \
20676	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20677$as_echo X"$_am_arg" |
20678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20679	    s//\1/
20680	    q
20681	  }
20682	  /^X\(\/\/\)[^/].*/{
20683	    s//\1/
20684	    q
20685	  }
20686	  /^X\(\/\/\)$/{
20687	    s//\1/
20688	    q
20689	  }
20690	  /^X\(\/\).*/{
20691	    s//\1/
20692	    q
20693	  }
20694	  s/.*/./; q'`/stamp-h$_am_stamp_count
20695 ;;
20696
20697  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20698$as_echo "$as_me: executing $ac_file commands" >&6;}
20699 ;;
20700  esac
20701
20702
20703  case $ac_file$ac_mode in
20704    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20705  # Older Autoconf quotes --file arguments for eval, but not when files
20706  # are listed without --file.  Let's play safe and only enable the eval
20707  # if we detect the quoting.
20708  case $CONFIG_FILES in
20709  *\'*) eval set x "$CONFIG_FILES" ;;
20710  *)   set x $CONFIG_FILES ;;
20711  esac
20712  shift
20713  for mf
20714  do
20715    # Strip MF so we end up with the name of the file.
20716    mf=`echo "$mf" | sed -e 's/:.*$//'`
20717    # Check whether this is an Automake generated Makefile or not.
20718    # We used to match only the files named 'Makefile.in', but
20719    # some people rename them; so instead we look at the file content.
20720    # Grep'ing the first line is not enough: some people post-process
20721    # each Makefile.in and add a new line on top of each file to say so.
20722    # Grep'ing the whole file is not good either: AIX grep has a line
20723    # limit of 2048, but all sed's we know have understand at least 4000.
20724    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20725      dirpart=`$as_dirname -- "$mf" ||
20726$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20727	 X"$mf" : 'X\(//\)[^/]' \| \
20728	 X"$mf" : 'X\(//\)$' \| \
20729	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20730$as_echo X"$mf" |
20731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20732	    s//\1/
20733	    q
20734	  }
20735	  /^X\(\/\/\)[^/].*/{
20736	    s//\1/
20737	    q
20738	  }
20739	  /^X\(\/\/\)$/{
20740	    s//\1/
20741	    q
20742	  }
20743	  /^X\(\/\).*/{
20744	    s//\1/
20745	    q
20746	  }
20747	  s/.*/./; q'`
20748    else
20749      continue
20750    fi
20751    # Extract the definition of DEPDIR, am__include, and am__quote
20752    # from the Makefile without running 'make'.
20753    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20754    test -z "$DEPDIR" && continue
20755    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20756    test -z "$am__include" && continue
20757    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20758    # Find all dependency output files, they are included files with
20759    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20760    # simplest approach to changing $(DEPDIR) to its actual value in the
20761    # expansion.
20762    for file in `sed -n "
20763      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20764	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20765      # Make sure the directory exists.
20766      test -f "$dirpart/$file" && continue
20767      fdir=`$as_dirname -- "$file" ||
20768$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20769	 X"$file" : 'X\(//\)[^/]' \| \
20770	 X"$file" : 'X\(//\)$' \| \
20771	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20772$as_echo X"$file" |
20773    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20774	    s//\1/
20775	    q
20776	  }
20777	  /^X\(\/\/\)[^/].*/{
20778	    s//\1/
20779	    q
20780	  }
20781	  /^X\(\/\/\)$/{
20782	    s//\1/
20783	    q
20784	  }
20785	  /^X\(\/\).*/{
20786	    s//\1/
20787	    q
20788	  }
20789	  s/.*/./; q'`
20790      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20791      # echo "creating $dirpart/$file"
20792      echo '# dummy' > "$dirpart/$file"
20793    done
20794  done
20795}
20796 ;;
20797    "libtool":C)
20798
20799    # See if we are running on zsh, and set the options that allow our
20800    # commands through without removal of \ escapes.
20801    if test -n "${ZSH_VERSION+set}"; then
20802      setopt NO_GLOB_SUBST
20803    fi
20804
20805    cfgfile=${ofile}T
20806    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20807    $RM "$cfgfile"
20808
20809    cat <<_LT_EOF >> "$cfgfile"
20810#! $SHELL
20811# Generated automatically by $as_me ($PACKAGE) $VERSION
20812# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20813# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20814
20815# Provide generalized library-building support services.
20816# Written by Gordon Matzigkeit, 1996
20817
20818# Copyright (C) 2014 Free Software Foundation, Inc.
20819# This is free software; see the source for copying conditions.  There is NO
20820# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20821
20822# GNU Libtool is free software; you can redistribute it and/or modify
20823# it under the terms of the GNU General Public License as published by
20824# the Free Software Foundation; either version 2 of of the License, or
20825# (at your option) any later version.
20826#
20827# As a special exception to the GNU General Public License, if you
20828# distribute this file as part of a program or library that is built
20829# using GNU Libtool, you may include this file under the  same
20830# distribution terms that you use for the rest of that program.
20831#
20832# GNU Libtool is distributed in the hope that it will be useful, but
20833# WITHOUT ANY WARRANTY; without even the implied warranty of
20834# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20835# GNU General Public License for more details.
20836#
20837# You should have received a copy of the GNU General Public License
20838# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20839
20840
20841# The names of the tagged configurations supported by this script.
20842available_tags=''
20843
20844# Configured defaults for sys_lib_dlsearch_path munging.
20845: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20846
20847# ### BEGIN LIBTOOL CONFIG
20848
20849# Assembler program.
20850AS=$lt_AS
20851
20852# DLL creation program.
20853DLLTOOL=$lt_DLLTOOL
20854
20855# Object dumper program.
20856OBJDUMP=$lt_OBJDUMP
20857
20858# Which release of libtool.m4 was used?
20859macro_version=$macro_version
20860macro_revision=$macro_revision
20861
20862# Whether or not to build shared libraries.
20863build_libtool_libs=$enable_shared
20864
20865# Whether or not to build static libraries.
20866build_old_libs=$enable_static
20867
20868# What type of objects to build.
20869pic_mode=$pic_mode
20870
20871# Whether or not to optimize for fast installation.
20872fast_install=$enable_fast_install
20873
20874# Shared archive member basename,for filename based shared library versioning on AIX.
20875shared_archive_member_spec=$shared_archive_member_spec
20876
20877# Shell to use when invoking shell scripts.
20878SHELL=$lt_SHELL
20879
20880# An echo program that protects backslashes.
20881ECHO=$lt_ECHO
20882
20883# The PATH separator for the build system.
20884PATH_SEPARATOR=$lt_PATH_SEPARATOR
20885
20886# The host system.
20887host_alias=$host_alias
20888host=$host
20889host_os=$host_os
20890
20891# The build system.
20892build_alias=$build_alias
20893build=$build
20894build_os=$build_os
20895
20896# A sed program that does not truncate output.
20897SED=$lt_SED
20898
20899# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20900Xsed="\$SED -e 1s/^X//"
20901
20902# A grep program that handles long lines.
20903GREP=$lt_GREP
20904
20905# An ERE matcher.
20906EGREP=$lt_EGREP
20907
20908# A literal string matcher.
20909FGREP=$lt_FGREP
20910
20911# A BSD- or MS-compatible name lister.
20912NM=$lt_NM
20913
20914# Whether we need soft or hard links.
20915LN_S=$lt_LN_S
20916
20917# What is the maximum length of a command?
20918max_cmd_len=$max_cmd_len
20919
20920# Object file suffix (normally "o").
20921objext=$ac_objext
20922
20923# Executable file suffix (normally "").
20924exeext=$exeext
20925
20926# whether the shell understands "unset".
20927lt_unset=$lt_unset
20928
20929# turn spaces into newlines.
20930SP2NL=$lt_lt_SP2NL
20931
20932# turn newlines into spaces.
20933NL2SP=$lt_lt_NL2SP
20934
20935# convert \$build file names to \$host format.
20936to_host_file_cmd=$lt_cv_to_host_file_cmd
20937
20938# convert \$build files to toolchain format.
20939to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20940
20941# Method to check whether dependent libraries are shared objects.
20942deplibs_check_method=$lt_deplibs_check_method
20943
20944# Command to use when deplibs_check_method = "file_magic".
20945file_magic_cmd=$lt_file_magic_cmd
20946
20947# How to find potential files when deplibs_check_method = "file_magic".
20948file_magic_glob=$lt_file_magic_glob
20949
20950# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20951want_nocaseglob=$lt_want_nocaseglob
20952
20953# Command to associate shared and link libraries.
20954sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20955
20956# The archiver.
20957AR=$lt_AR
20958
20959# Flags to create an archive.
20960AR_FLAGS=$lt_AR_FLAGS
20961
20962# How to feed a file listing to the archiver.
20963archiver_list_spec=$lt_archiver_list_spec
20964
20965# A symbol stripping program.
20966STRIP=$lt_STRIP
20967
20968# Commands used to install an old-style archive.
20969RANLIB=$lt_RANLIB
20970old_postinstall_cmds=$lt_old_postinstall_cmds
20971old_postuninstall_cmds=$lt_old_postuninstall_cmds
20972
20973# Whether to use a lock for old archive extraction.
20974lock_old_archive_extraction=$lock_old_archive_extraction
20975
20976# A C compiler.
20977LTCC=$lt_CC
20978
20979# LTCC compiler flags.
20980LTCFLAGS=$lt_CFLAGS
20981
20982# Take the output of nm and produce a listing of raw symbols and C names.
20983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20984
20985# Transform the output of nm in a proper C declaration.
20986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20987
20988# Transform the output of nm into a list of symbols to manually relocate.
20989global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20990
20991# Transform the output of nm in a C name address pair.
20992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20993
20994# Transform the output of nm in a C name address pair when lib prefix is needed.
20995global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20996
20997# The name lister interface.
20998nm_interface=$lt_lt_cv_nm_interface
20999
21000# Specify filename containing input files for \$NM.
21001nm_file_list_spec=$lt_nm_file_list_spec
21002
21003# The root where to search for dependent libraries,and where our libraries should be installed.
21004lt_sysroot=$lt_sysroot
21005
21006# Command to truncate a binary pipe.
21007lt_truncate_bin=$lt_lt_cv_truncate_bin
21008
21009# The name of the directory that contains temporary libtool files.
21010objdir=$objdir
21011
21012# Used to examine libraries when file_magic_cmd begins with "file".
21013MAGIC_CMD=$MAGIC_CMD
21014
21015# Must we lock files when doing compilation?
21016need_locks=$lt_need_locks
21017
21018# Manifest tool.
21019MANIFEST_TOOL=$lt_MANIFEST_TOOL
21020
21021# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21022DSYMUTIL=$lt_DSYMUTIL
21023
21024# Tool to change global to local symbols on Mac OS X.
21025NMEDIT=$lt_NMEDIT
21026
21027# Tool to manipulate fat objects and archives on Mac OS X.
21028LIPO=$lt_LIPO
21029
21030# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21031OTOOL=$lt_OTOOL
21032
21033# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21034OTOOL64=$lt_OTOOL64
21035
21036# Old archive suffix (normally "a").
21037libext=$libext
21038
21039# Shared library suffix (normally ".so").
21040shrext_cmds=$lt_shrext_cmds
21041
21042# The commands to extract the exported symbol list from a shared archive.
21043extract_expsyms_cmds=$lt_extract_expsyms_cmds
21044
21045# Variables whose values should be saved in libtool wrapper scripts and
21046# restored at link time.
21047variables_saved_for_relink=$lt_variables_saved_for_relink
21048
21049# Do we need the "lib" prefix for modules?
21050need_lib_prefix=$need_lib_prefix
21051
21052# Do we need a version for libraries?
21053need_version=$need_version
21054
21055# Library versioning type.
21056version_type=$version_type
21057
21058# Shared library runtime path variable.
21059runpath_var=$runpath_var
21060
21061# Shared library path variable.
21062shlibpath_var=$shlibpath_var
21063
21064# Is shlibpath searched before the hard-coded library search path?
21065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21066
21067# Format of library name prefix.
21068libname_spec=$lt_libname_spec
21069
21070# List of archive names.  First name is the real one, the rest are links.
21071# The last name is the one that the linker finds with -lNAME
21072library_names_spec=$lt_library_names_spec
21073
21074# The coded name of the library, if different from the real name.
21075soname_spec=$lt_soname_spec
21076
21077# Permission mode override for installation of shared libraries.
21078install_override_mode=$lt_install_override_mode
21079
21080# Command to use after installation of a shared archive.
21081postinstall_cmds=$lt_postinstall_cmds
21082
21083# Command to use after uninstallation of a shared archive.
21084postuninstall_cmds=$lt_postuninstall_cmds
21085
21086# Commands used to finish a libtool library installation in a directory.
21087finish_cmds=$lt_finish_cmds
21088
21089# As "finish_cmds", except a single script fragment to be evaled but
21090# not shown.
21091finish_eval=$lt_finish_eval
21092
21093# Whether we should hardcode library paths into libraries.
21094hardcode_into_libs=$hardcode_into_libs
21095
21096# Compile-time system search path for libraries.
21097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21098
21099# Detected run-time system search path for libraries.
21100sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21101
21102# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21103configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21104
21105# Whether dlopen is supported.
21106dlopen_support=$enable_dlopen
21107
21108# Whether dlopen of programs is supported.
21109dlopen_self=$enable_dlopen_self
21110
21111# Whether dlopen of statically linked programs is supported.
21112dlopen_self_static=$enable_dlopen_self_static
21113
21114# Commands to strip libraries.
21115old_striplib=$lt_old_striplib
21116striplib=$lt_striplib
21117
21118
21119# The linker used to build libraries.
21120LD=$lt_LD
21121
21122# How to create reloadable object files.
21123reload_flag=$lt_reload_flag
21124reload_cmds=$lt_reload_cmds
21125
21126# Commands used to build an old-style archive.
21127old_archive_cmds=$lt_old_archive_cmds
21128
21129# A language specific compiler.
21130CC=$lt_compiler
21131
21132# Is the compiler the GNU compiler?
21133with_gcc=$GCC
21134
21135# Compiler flag to turn off builtin functions.
21136no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21137
21138# Additional compiler flags for building library objects.
21139pic_flag=$lt_lt_prog_compiler_pic
21140
21141# How to pass a linker flag through the compiler.
21142wl=$lt_lt_prog_compiler_wl
21143
21144# Compiler flag to prevent dynamic linking.
21145link_static_flag=$lt_lt_prog_compiler_static
21146
21147# Does compiler simultaneously support -c and -o options?
21148compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21149
21150# Whether or not to add -lc for building shared libraries.
21151build_libtool_need_lc=$archive_cmds_need_lc
21152
21153# Whether or not to disallow shared libs when runtime libs are static.
21154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21155
21156# Compiler flag to allow reflexive dlopens.
21157export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21158
21159# Compiler flag to generate shared objects directly from archives.
21160whole_archive_flag_spec=$lt_whole_archive_flag_spec
21161
21162# Whether the compiler copes with passing no objects directly.
21163compiler_needs_object=$lt_compiler_needs_object
21164
21165# Create an old-style archive from a shared archive.
21166old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21167
21168# Create a temporary old-style archive to link instead of a shared archive.
21169old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21170
21171# Commands used to build a shared archive.
21172archive_cmds=$lt_archive_cmds
21173archive_expsym_cmds=$lt_archive_expsym_cmds
21174
21175# Commands used to build a loadable module if different from building
21176# a shared archive.
21177module_cmds=$lt_module_cmds
21178module_expsym_cmds=$lt_module_expsym_cmds
21179
21180# Whether we are building with GNU ld or not.
21181with_gnu_ld=$lt_with_gnu_ld
21182
21183# Flag that allows shared libraries with undefined symbols to be built.
21184allow_undefined_flag=$lt_allow_undefined_flag
21185
21186# Flag that enforces no undefined symbols.
21187no_undefined_flag=$lt_no_undefined_flag
21188
21189# Flag to hardcode \$libdir into a binary during linking.
21190# This must work even if \$libdir does not exist
21191hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21192
21193# Whether we need a single "-rpath" flag with a separated argument.
21194hardcode_libdir_separator=$lt_hardcode_libdir_separator
21195
21196# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21197# DIR into the resulting binary.
21198hardcode_direct=$hardcode_direct
21199
21200# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21201# DIR into the resulting binary and the resulting library dependency is
21202# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21203# library is relocated.
21204hardcode_direct_absolute=$hardcode_direct_absolute
21205
21206# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21207# into the resulting binary.
21208hardcode_minus_L=$hardcode_minus_L
21209
21210# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21211# into the resulting binary.
21212hardcode_shlibpath_var=$hardcode_shlibpath_var
21213
21214# Set to "yes" if building a shared library automatically hardcodes DIR
21215# into the library and all subsequent libraries and executables linked
21216# against it.
21217hardcode_automatic=$hardcode_automatic
21218
21219# Set to yes if linker adds runtime paths of dependent libraries
21220# to runtime path list.
21221inherit_rpath=$inherit_rpath
21222
21223# Whether libtool must link a program against all its dependency libraries.
21224link_all_deplibs=$link_all_deplibs
21225
21226# Set to "yes" if exported symbols are required.
21227always_export_symbols=$always_export_symbols
21228
21229# The commands to list exported symbols.
21230export_symbols_cmds=$lt_export_symbols_cmds
21231
21232# Symbols that should not be listed in the preloaded symbols.
21233exclude_expsyms=$lt_exclude_expsyms
21234
21235# Symbols that must always be exported.
21236include_expsyms=$lt_include_expsyms
21237
21238# Commands necessary for linking programs (against libraries) with templates.
21239prelink_cmds=$lt_prelink_cmds
21240
21241# Commands necessary for finishing linking programs.
21242postlink_cmds=$lt_postlink_cmds
21243
21244# Specify filename containing input files.
21245file_list_spec=$lt_file_list_spec
21246
21247# How to hardcode a shared library path into an executable.
21248hardcode_action=$hardcode_action
21249
21250# ### END LIBTOOL CONFIG
21251
21252_LT_EOF
21253
21254    cat <<'_LT_EOF' >> "$cfgfile"
21255
21256# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21257
21258# func_munge_path_list VARIABLE PATH
21259# -----------------------------------
21260# VARIABLE is name of variable containing _space_ separated list of
21261# directories to be munged by the contents of PATH, which is string
21262# having a format:
21263# "DIR[:DIR]:"
21264#       string "DIR[ DIR]" will be prepended to VARIABLE
21265# ":DIR[:DIR]"
21266#       string "DIR[ DIR]" will be appended to VARIABLE
21267# "DIRP[:DIRP]::[DIRA:]DIRA"
21268#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21269#       "DIRA[ DIRA]" will be appended to VARIABLE
21270# "DIR[:DIR]"
21271#       VARIABLE will be replaced by "DIR[ DIR]"
21272func_munge_path_list ()
21273{
21274    case x$2 in
21275    x)
21276        ;;
21277    *:)
21278        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21279        ;;
21280    x:*)
21281        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21282        ;;
21283    *::*)
21284        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21285        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21286        ;;
21287    *)
21288        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21289        ;;
21290    esac
21291}
21292
21293
21294# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21295func_cc_basename ()
21296{
21297    for cc_temp in $*""; do
21298      case $cc_temp in
21299        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21300        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21301        \-*) ;;
21302        *) break;;
21303      esac
21304    done
21305    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21306}
21307
21308
21309# ### END FUNCTIONS SHARED WITH CONFIGURE
21310
21311_LT_EOF
21312
21313  case $host_os in
21314  aix3*)
21315    cat <<\_LT_EOF >> "$cfgfile"
21316# AIX sometimes has problems with the GCC collect2 program.  For some
21317# reason, if we set the COLLECT_NAMES environment variable, the problems
21318# vanish in a puff of smoke.
21319if test set != "${COLLECT_NAMES+set}"; then
21320  COLLECT_NAMES=
21321  export COLLECT_NAMES
21322fi
21323_LT_EOF
21324    ;;
21325  esac
21326
21327
21328ltmain=$ac_aux_dir/ltmain.sh
21329
21330
21331  # We use sed instead of cat because bash on DJGPP gets confused if
21332  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21333  # text mode, it properly converts lines to CR/LF.  This bash problem
21334  # is reportedly fixed, but why not run on old versions too?
21335  sed '$q' "$ltmain" >> "$cfgfile" \
21336     || (rm -f "$cfgfile"; exit 1)
21337
21338   mv -f "$cfgfile" "$ofile" ||
21339    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21340  chmod +x "$ofile"
21341
21342 ;;
21343
21344  esac
21345done # for ac_tag
21346
21347
21348as_fn_exit 0
21349_ACEOF
21350ac_clean_files=$ac_clean_files_save
21351
21352test $ac_write_fail = 0 ||
21353  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21354
21355
21356# configure is writing to config.log, and then calls config.status.
21357# config.status does its own redirection, appending to config.log.
21358# Unfortunately, on DOS this fails, as config.log is still kept open
21359# by configure, so config.status won't be able to write to it; its
21360# output is simply discarded.  So we exec the FD to /dev/null,
21361# effectively closing config.log, so it can be properly (re)opened and
21362# appended to by config.status.  When coming back to configure, we
21363# need to make the FD available again.
21364if test "$no_create" != yes; then
21365  ac_cs_success=:
21366  ac_config_status_args=
21367  test "$silent" = yes &&
21368    ac_config_status_args="$ac_config_status_args --quiet"
21369  exec 5>/dev/null
21370  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21371  exec 5>>config.log
21372  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21373  # would make configure fail if this is the last instruction.
21374  $ac_cs_success || as_fn_exit 1
21375fi
21376if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21377  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21378$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21379fi
21380
21381