configure revision 65d490d0
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-suntcx 1.1.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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='xf86-video-suntcx'
593PACKAGE_TARNAME='xf86-video-suntcx'
594PACKAGE_VERSION='1.1.2'
595PACKAGE_STRING='xf86-video-suntcx 1.1.2'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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
640DRIVER_NAME
641moduledir
642XORG_LIBS
643XORG_CFLAGS
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650RANLIB
651ac_ct_AR
652AR
653DLLTOOL
654OBJDUMP
655LN_S
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661LIBTOOL
662AM_BACKSLASH
663AM_DEFAULT_VERBOSITY
664AM_DEFAULT_V
665AM_V
666MAN_SUBSTS
667XORG_MAN_PAGE
668ADMIN_MAN_DIR
669DRIVER_MAN_DIR
670MISC_MAN_DIR
671FILE_MAN_DIR
672LIB_MAN_DIR
673APP_MAN_DIR
674ADMIN_MAN_SUFFIX
675DRIVER_MAN_SUFFIX
676MISC_MAN_SUFFIX
677FILE_MAN_SUFFIX
678LIB_MAN_SUFFIX
679APP_MAN_SUFFIX
680SED
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689INSTALL_CMD
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
693CHANGELOG_CMD
694STRICT_CFLAGS
695CWARNFLAGS
696BASE_CFLAGS
697EGREP
698GREP
699CPP
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717MAINT
718MAINTAINER_MODE_FALSE
719MAINTAINER_MODE_TRUE
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_maintainer_mode
785enable_dependency_tracking
786enable_selective_werror
787enable_strict_compilation
788enable_silent_rules
789enable_static
790enable_shared
791with_pic
792enable_fast_install
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796with_xorg_module_dir
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810XORG_CFLAGS
811XORG_LIBS'
812
813
814# Initialize some variables set by options.
815ac_init_help=
816ac_init_version=false
817ac_unrecognized_opts=
818ac_unrecognized_sep=
819# The variables have the same names as the options, with
820# dashes changed to underlines.
821cache_file=/dev/null
822exec_prefix=NONE
823no_create=
824no_recursion=
825prefix=NONE
826program_prefix=NONE
827program_suffix=NONE
828program_transform_name=s,x,x,
829silent=
830site=
831srcdir=
832verbose=
833x_includes=NONE
834x_libraries=NONE
835
836# Installation directory options.
837# These are left unexpanded so users can "make install exec_prefix=/foo"
838# and all the variables that are supposed to be based on exec_prefix
839# by default will actually change.
840# Use braces instead of parens because sh, perl, etc. also accept them.
841# (The list follows the same order as the GNU Coding Standards.)
842bindir='${exec_prefix}/bin'
843sbindir='${exec_prefix}/sbin'
844libexecdir='${exec_prefix}/libexec'
845datarootdir='${prefix}/share'
846datadir='${datarootdir}'
847sysconfdir='${prefix}/etc'
848sharedstatedir='${prefix}/com'
849localstatedir='${prefix}/var'
850includedir='${prefix}/include'
851oldincludedir='/usr/include'
852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853infodir='${datarootdir}/info'
854htmldir='${docdir}'
855dvidir='${docdir}'
856pdfdir='${docdir}'
857psdir='${docdir}'
858libdir='${exec_prefix}/lib'
859localedir='${datarootdir}/locale'
860mandir='${datarootdir}/man'
861
862ac_prev=
863ac_dashdash=
864for ac_option
865do
866  # If the previous option needs an argument, assign it.
867  if test -n "$ac_prev"; then
868    eval $ac_prev=\$ac_option
869    ac_prev=
870    continue
871  fi
872
873  case $ac_option in
874  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875  *=)   ac_optarg= ;;
876  *)    ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=no ;;
932
933  -docdir | --docdir | --docdi | --doc | --do)
934    ac_prev=docdir ;;
935  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936    docdir=$ac_optarg ;;
937
938  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939    ac_prev=dvidir ;;
940  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941    dvidir=$ac_optarg ;;
942
943  -enable-* | --enable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=\$ac_optarg ;;
958
959  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961  | --exec | --exe | --ex)
962    ac_prev=exec_prefix ;;
963  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965  | --exec=* | --exe=* | --ex=*)
966    exec_prefix=$ac_optarg ;;
967
968  -gas | --gas | --ga | --g)
969    # Obsolete; use --with-gas.
970    with_gas=yes ;;
971
972  -help | --help | --hel | --he | -h)
973    ac_init_help=long ;;
974  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975    ac_init_help=recursive ;;
976  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977    ac_init_help=short ;;
978
979  -host | --host | --hos | --ho)
980    ac_prev=host_alias ;;
981  -host=* | --host=* | --hos=* | --ho=*)
982    host_alias=$ac_optarg ;;
983
984  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985    ac_prev=htmldir ;;
986  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987  | --ht=*)
988    htmldir=$ac_optarg ;;
989
990  -includedir | --includedir | --includedi | --included | --include \
991  | --includ | --inclu | --incl | --inc)
992    ac_prev=includedir ;;
993  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994  | --includ=* | --inclu=* | --incl=* | --inc=*)
995    includedir=$ac_optarg ;;
996
997  -infodir | --infodir | --infodi | --infod | --info | --inf)
998    ac_prev=infodir ;;
999  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000    infodir=$ac_optarg ;;
1001
1002  -libdir | --libdir | --libdi | --libd)
1003    ac_prev=libdir ;;
1004  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005    libdir=$ac_optarg ;;
1006
1007  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008  | --libexe | --libex | --libe)
1009    ac_prev=libexecdir ;;
1010  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011  | --libexe=* | --libex=* | --libe=*)
1012    libexecdir=$ac_optarg ;;
1013
1014  -localedir | --localedir | --localedi | --localed | --locale)
1015    ac_prev=localedir ;;
1016  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017    localedir=$ac_optarg ;;
1018
1019  -localstatedir | --localstatedir | --localstatedi | --localstated \
1020  | --localstate | --localstat | --localsta | --localst | --locals)
1021    ac_prev=localstatedir ;;
1022  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024    localstatedir=$ac_optarg ;;
1025
1026  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027    ac_prev=mandir ;;
1028  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029    mandir=$ac_optarg ;;
1030
1031  -nfp | --nfp | --nf)
1032    # Obsolete; use --without-fp.
1033    with_fp=no ;;
1034
1035  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036  | --no-cr | --no-c | -n)
1037    no_create=yes ;;
1038
1039  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041    no_recursion=yes ;;
1042
1043  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045  | --oldin | --oldi | --old | --ol | --o)
1046    ac_prev=oldincludedir ;;
1047  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050    oldincludedir=$ac_optarg ;;
1051
1052  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053    ac_prev=prefix ;;
1054  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055    prefix=$ac_optarg ;;
1056
1057  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058  | --program-pre | --program-pr | --program-p)
1059    ac_prev=program_prefix ;;
1060  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062    program_prefix=$ac_optarg ;;
1063
1064  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065  | --program-suf | --program-su | --program-s)
1066    ac_prev=program_suffix ;;
1067  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069    program_suffix=$ac_optarg ;;
1070
1071  -program-transform-name | --program-transform-name \
1072  | --program-transform-nam | --program-transform-na \
1073  | --program-transform-n | --program-transform- \
1074  | --program-transform | --program-transfor \
1075  | --program-transfo | --program-transf \
1076  | --program-trans | --program-tran \
1077  | --progr-tra | --program-tr | --program-t)
1078    ac_prev=program_transform_name ;;
1079  -program-transform-name=* | --program-transform-name=* \
1080  | --program-transform-nam=* | --program-transform-na=* \
1081  | --program-transform-n=* | --program-transform-=* \
1082  | --program-transform=* | --program-transfor=* \
1083  | --program-transfo=* | --program-transf=* \
1084  | --program-trans=* | --program-tran=* \
1085  | --progr-tra=* | --program-tr=* | --program-t=*)
1086    program_transform_name=$ac_optarg ;;
1087
1088  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089    ac_prev=pdfdir ;;
1090  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091    pdfdir=$ac_optarg ;;
1092
1093  -psdir | --psdir | --psdi | --psd | --ps)
1094    ac_prev=psdir ;;
1095  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096    psdir=$ac_optarg ;;
1097
1098  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099  | -silent | --silent | --silen | --sile | --sil)
1100    silent=yes ;;
1101
1102  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103    ac_prev=sbindir ;;
1104  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105  | --sbi=* | --sb=*)
1106    sbindir=$ac_optarg ;;
1107
1108  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110  | --sharedst | --shareds | --shared | --share | --shar \
1111  | --sha | --sh)
1112    ac_prev=sharedstatedir ;;
1113  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116  | --sha=* | --sh=*)
1117    sharedstatedir=$ac_optarg ;;
1118
1119  -site | --site | --sit)
1120    ac_prev=site ;;
1121  -site=* | --site=* | --sit=*)
1122    site=$ac_optarg ;;
1123
1124  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125    ac_prev=srcdir ;;
1126  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127    srcdir=$ac_optarg ;;
1128
1129  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130  | --syscon | --sysco | --sysc | --sys | --sy)
1131    ac_prev=sysconfdir ;;
1132  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134    sysconfdir=$ac_optarg ;;
1135
1136  -target | --target | --targe | --targ | --tar | --ta | --t)
1137    ac_prev=target_alias ;;
1138  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139    target_alias=$ac_optarg ;;
1140
1141  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142    verbose=yes ;;
1143
1144  -version | --version | --versio | --versi | --vers | -V)
1145    ac_init_version=: ;;
1146
1147  -with-* | --with-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=\$ac_optarg ;;
1162
1163  -without-* | --without-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=no ;;
1178
1179  --x)
1180    # Obsolete; use --with-x.
1181    with_x=yes ;;
1182
1183  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184  | --x-incl | --x-inc | --x-in | --x-i)
1185    ac_prev=x_includes ;;
1186  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188    x_includes=$ac_optarg ;;
1189
1190  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192    ac_prev=x_libraries ;;
1193  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195    x_libraries=$ac_optarg ;;
1196
1197  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information"
1199    ;;
1200
1201  *=*)
1202    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203    # Reject names that are not valid shell variable names.
1204    case $ac_envvar in #(
1205      '' | [0-9]* | *[!_$as_cr_alnum]* )
1206      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207    esac
1208    eval $ac_envvar=\$ac_optarg
1209    export $ac_envvar ;;
1210
1211  *)
1212    # FIXME: should be removed in autoconf 3.0.
1213    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217    ;;
1218
1219  esac
1220done
1221
1222if test -n "$ac_prev"; then
1223  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224  as_fn_error $? "missing argument to $ac_option"
1225fi
1226
1227if test -n "$ac_unrecognized_opts"; then
1228  case $enable_option_checking in
1229    no) ;;
1230    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232  esac
1233fi
1234
1235# Check all directory arguments for consistency.
1236for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237		datadir sysconfdir sharedstatedir localstatedir includedir \
1238		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239		libdir localedir mandir
1240do
1241  eval ac_val=\$$ac_var
1242  # Remove trailing slashes.
1243  case $ac_val in
1244    */ )
1245      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246      eval $ac_var=\$ac_val;;
1247  esac
1248  # Be sure to have absolute directory names.
1249  case $ac_val in
1250    [\\/$]* | ?:[\\/]* )  continue;;
1251    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252  esac
1253  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254done
1255
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265  if test "x$build_alias" = x; then
1266    cross_compiling=maybe
1267  elif test "x$build_alias" != "x$host_alias"; then
1268    cross_compiling=yes
1269  fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
1277
1278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281  as_fn_error $? "working directory cannot be determined"
1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283  as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286# Find the source files, if location was not specified.
1287if test -z "$srcdir"; then
1288  ac_srcdir_defaulted=yes
1289  # Try the directory containing this script, then the parent directory.
1290  ac_confdir=`$as_dirname -- "$as_myself" ||
1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292	 X"$as_myself" : 'X\(//\)[^/]' \| \
1293	 X"$as_myself" : 'X\(//\)$' \| \
1294	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295$as_echo X"$as_myself" |
1296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)[^/].*/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)$/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\).*/{
1309	    s//\1/
1310	    q
1311	  }
1312	  s/.*/./; q'`
1313  srcdir=$ac_confdir
1314  if test ! -r "$srcdir/$ac_unique_file"; then
1315    srcdir=..
1316  fi
1317else
1318  ac_srcdir_defaulted=no
1319fi
1320if test ! -r "$srcdir/$ac_unique_file"; then
1321  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323fi
1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325ac_abs_confdir=`(
1326	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327	pwd)`
1328# When building in place, set srcdir=.
1329if test "$ac_abs_confdir" = "$ac_pwd"; then
1330  srcdir=.
1331fi
1332# Remove unnecessary trailing slashes from srcdir.
1333# Double slashes in file names in object file debugging info
1334# mess up M-x gdb in Emacs.
1335case $srcdir in
1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337esac
1338for ac_var in $ac_precious_vars; do
1339  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_env_${ac_var}_value=\$${ac_var}
1341  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343done
1344
1345#
1346# Report the --help message.
1347#
1348if test "$ac_init_help" = "long"; then
1349  # Omit some internal or obsolete options to make the list less imposing.
1350  # This message is too long to be a string in the A/UX 3.1 sh.
1351  cat <<_ACEOF
1352\`configure' configures xf86-video-suntcx 1.1.2 to adapt to many kinds of systems.
1353
1354Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359Defaults for the options are specified in brackets.
1360
1361Configuration:
1362  -h, --help              display this help and exit
1363      --help=short        display options specific to this package
1364      --help=recursive    display the short help of all the included packages
1365  -V, --version           display version information and exit
1366  -q, --quiet, --silent   do not print \`checking ...' messages
1367      --cache-file=FILE   cache test results in FILE [disabled]
1368  -C, --config-cache      alias for \`--cache-file=config.cache'
1369  -n, --no-create         do not create output files
1370      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372Installation directories:
1373  --prefix=PREFIX         install architecture-independent files in PREFIX
1374                          [$ac_default_prefix]
1375  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                          [PREFIX]
1377
1378By default, \`make install' will install all the files in
1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381for instance \`--prefix=\$HOME'.
1382
1383For better control, use the options below.
1384
1385Fine tuning of the installation directories:
1386  --bindir=DIR            user executables [EPREFIX/bin]
1387  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388  --libexecdir=DIR        program executables [EPREFIX/libexec]
1389  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392  --libdir=DIR            object code libraries [EPREFIX/lib]
1393  --includedir=DIR        C header files [PREFIX/include]
1394  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397  --infodir=DIR           info documentation [DATAROOTDIR/info]
1398  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399  --mandir=DIR            man documentation [DATAROOTDIR/man]
1400  --docdir=DIR            documentation root
1401                          [DATAROOTDIR/doc/xf86-video-suntcx]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=PREFIX            prepend PREFIX to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xf86-video-suntcx 1.1.2:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --enable-maintainer-mode
1432                          enable make rules and dependencies not useful (and
1433                          sometimes confusing) to the casual installer
1434  --enable-dependency-tracking
1435                          do not reject slow dependency extractors
1436  --disable-dependency-tracking
1437                          speeds up one-time build
1438  --disable-selective-werror
1439                          Turn off selective compiler errors. (default:
1440                          enabled)
1441  --enable-strict-compilation
1442                          Enable all warnings from compiler and make them
1443                          errors (default: disabled)
1444  --enable-silent-rules   less verbose build output (undo: "make V=1")
1445  --disable-silent-rules  verbose build output (undo: "make V=0")
1446  --enable-static[=PKGS]  build static libraries [default=no]
1447  --enable-shared[=PKGS]  build shared libraries [default=yes]
1448  --enable-fast-install[=PKGS]
1449                          optimize for fast installation [default=yes]
1450  --disable-libtool-lock  avoid locking (might break parallel builds)
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-pic              try to use only PIC/non-PIC objects [default=use
1456                          both]
1457  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1458  --with-sysroot=DIR Search for dependent libraries within DIR
1459                        (or the compiler's sysroot if not specified).
1460  --with-xorg-module-dir=DIR
1461                          Default xorg module directory
1462                          [[default=$libdir/xorg/modules]]
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  CPP         C preprocessor
1473  PKG_CONFIG  path to pkg-config utility
1474  PKG_CONFIG_PATH
1475              directories to add to pkg-config's search path
1476  PKG_CONFIG_LIBDIR
1477              path overriding pkg-config's built-in search path
1478  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1479  XORG_LIBS   linker flags for XORG, overriding pkg-config
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
1484Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1485_ACEOF
1486ac_status=$?
1487fi
1488
1489if test "$ac_init_help" = "recursive"; then
1490  # If there are subdirs, report their specific --help.
1491  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492    test -d "$ac_dir" ||
1493      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494      continue
1495    ac_builddir=.
1496
1497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
1500  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501  # A ".." for each directory in $ac_dir_suffix.
1502  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503  case $ac_top_builddir_sub in
1504  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506  esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
1512
1513case $srcdir in
1514  .)  # We are building in place.
1515    ac_srcdir=.
1516    ac_top_srcdir=$ac_top_builddir_sub
1517    ac_abs_top_srcdir=$ac_pwd ;;
1518  [\\/]* | ?:[\\/]* )  # Absolute name.
1519    ac_srcdir=$srcdir$ac_dir_suffix;
1520    ac_top_srcdir=$srcdir
1521    ac_abs_top_srcdir=$srcdir ;;
1522  *) # Relative name.
1523    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524    ac_top_srcdir=$ac_top_build_prefix$srcdir
1525    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526esac
1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529    cd "$ac_dir" || { ac_status=$?; continue; }
1530    # Check for guested configure.
1531    if test -f "$ac_srcdir/configure.gnu"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534    elif test -f "$ac_srcdir/configure"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure" --help=recursive
1537    else
1538      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539    fi || ac_status=$?
1540    cd "$ac_pwd" || { ac_status=$?; break; }
1541  done
1542fi
1543
1544test -n "$ac_init_help" && exit $ac_status
1545if $ac_init_version; then
1546  cat <<\_ACEOF
1547xf86-video-suntcx configure 1.1.2
1548generated by GNU Autoconf 2.69
1549
1550Copyright (C) 2012 Free Software Foundation, Inc.
1551This configure script is free software; the Free Software Foundation
1552gives unlimited permission to copy, distribute and modify it.
1553_ACEOF
1554  exit
1555fi
1556
1557## ------------------------ ##
1558## Autoconf initialization. ##
1559## ------------------------ ##
1560
1561# ac_fn_c_try_compile LINENO
1562# --------------------------
1563# Try to compile conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_compile ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  rm -f conftest.$ac_objext
1568  if { { ac_try="$ac_compile"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_compile") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } && {
1584	 test -z "$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       } && test -s conftest.$ac_objext; then :
1587  ac_retval=0
1588else
1589  $as_echo "$as_me: failed program was:" >&5
1590sed 's/^/| /' conftest.$ac_ext >&5
1591
1592	ac_retval=1
1593fi
1594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595  as_fn_set_status $ac_retval
1596
1597} # ac_fn_c_try_compile
1598
1599# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1600# ---------------------------------------------
1601# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1602# accordingly.
1603ac_fn_c_check_decl ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  as_decl_name=`echo $2|sed 's/ *(.*//'`
1607  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1609$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1610if eval \${$3+:} false; then :
1611  $as_echo_n "(cached) " >&6
1612else
1613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615$4
1616int
1617main ()
1618{
1619#ifndef $as_decl_name
1620#ifdef __cplusplus
1621  (void) $as_decl_use;
1622#else
1623  (void) $as_decl_name;
1624#endif
1625#endif
1626
1627  ;
1628  return 0;
1629}
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
1632  eval "$3=yes"
1633else
1634  eval "$3=no"
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637fi
1638eval ac_res=\$$3
1639	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640$as_echo "$ac_res" >&6; }
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642
1643} # ac_fn_c_check_decl
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } > conftest.i && {
1667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       }; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675    ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_cpp
1681
1682# ac_fn_c_try_run LINENO
1683# ----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685# that executables *can* be run.
1686ac_fn_c_try_run ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700  { { case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_try") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; }; }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: program exited with status $ac_status" >&5
1713       $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716       ac_retval=$ac_status
1717fi
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_run
1723
1724# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists and can be compiled using the include files in
1727# INCLUDES, setting the cache variable VAR accordingly.
1728ac_fn_c_check_header_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742  eval "$3=yes"
1743else
1744  eval "$3=no"
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753} # ac_fn_c_check_header_compile
1754
1755# ac_fn_c_try_link LINENO
1756# -----------------------
1757# Try to link conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_link ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  rm -f conftest.$ac_objext conftest$ac_exeext
1762  if { { ac_try="$ac_link"
1763case "(($ac_try" in
1764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765  *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769  (eval "$ac_link") 2>conftest.err
1770  ac_status=$?
1771  if test -s conftest.err; then
1772    grep -v '^ *+' conftest.err >conftest.er1
1773    cat conftest.er1 >&5
1774    mv -f conftest.er1 conftest.err
1775  fi
1776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777  test $ac_status = 0; } && {
1778	 test -z "$ac_c_werror_flag" ||
1779	 test ! -s conftest.err
1780       } && test -s conftest$ac_exeext && {
1781	 test "$cross_compiling" = yes ||
1782	 test -x conftest$ac_exeext
1783       }; then :
1784  ac_retval=0
1785else
1786  $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789	ac_retval=1
1790fi
1791  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793  # interfere with the next link command; also delete a directory that is
1794  # left behind by Apple's compiler.  We do this before executing the actions.
1795  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_link
1800
1801# ac_fn_c_check_func LINENO FUNC VAR
1802# ----------------------------------
1803# Tests whether FUNC exists, setting the cache variable VAR accordingly
1804ac_fn_c_check_func ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
1809if eval \${$3+:} false; then :
1810  $as_echo_n "(cached) " >&6
1811else
1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1816#define $2 innocuous_$2
1817
1818/* System header to define __stub macros and hopefully few prototypes,
1819    which can conflict with char $2 (); below.
1820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821    <limits.h> exists even on freestanding compilers.  */
1822
1823#ifdef __STDC__
1824# include <limits.h>
1825#else
1826# include <assert.h>
1827#endif
1828
1829#undef $2
1830
1831/* Override any GCC internal prototype to avoid an error.
1832   Use char because int might match the return type of a GCC
1833   builtin and then its argument prototype would still apply.  */
1834#ifdef __cplusplus
1835extern "C"
1836#endif
1837char $2 ();
1838/* The GNU C library defines this for functions which it implements
1839    to always fail with ENOSYS.  Some functions are actually named
1840    something starting with __ and the normal name is an alias.  */
1841#if defined __stub_$2 || defined __stub___$2
1842choke me
1843#endif
1844
1845int
1846main ()
1847{
1848return $2 ();
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_link "$LINENO"; then :
1854  eval "$3=yes"
1855else
1856  eval "$3=no"
1857fi
1858rm -f core conftest.err conftest.$ac_objext \
1859    conftest$ac_exeext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_func
1867cat >config.log <<_ACEOF
1868This file contains any messages produced by compilers while
1869running configure, to aid debugging if configure makes a mistake.
1870
1871It was created by xf86-video-suntcx $as_me 1.1.2, which was
1872generated by GNU Autoconf 2.69.  Invocation command line was
1873
1874  $ $0 $@
1875
1876_ACEOF
1877exec 5>>config.log
1878{
1879cat <<_ASUNAME
1880## --------- ##
1881## Platform. ##
1882## --------- ##
1883
1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
1893/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
1901_ASUNAME
1902
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906  IFS=$as_save_IFS
1907  test -z "$as_dir" && as_dir=.
1908    $as_echo "PATH: $as_dir"
1909  done
1910IFS=$as_save_IFS
1911
1912} >&5
1913
1914cat >&5 <<_ACEOF
1915
1916
1917## ----------- ##
1918## Core tests. ##
1919## ----------- ##
1920
1921_ACEOF
1922
1923
1924# Keep a trace of the command line.
1925# Strip out --no-create and --no-recursion so they do not pile up.
1926# Strip out --silent because we don't want to record it for future runs.
1927# Also quote any args containing shell meta-characters.
1928# Make two passes to allow for proper duplicate-argument suppression.
1929ac_configure_args=
1930ac_configure_args0=
1931ac_configure_args1=
1932ac_must_keep_next=false
1933for ac_pass in 1 2
1934do
1935  for ac_arg
1936  do
1937    case $ac_arg in
1938    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940    | -silent | --silent | --silen | --sile | --sil)
1941      continue ;;
1942    *\'*)
1943      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944    esac
1945    case $ac_pass in
1946    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947    2)
1948      as_fn_append ac_configure_args1 " '$ac_arg'"
1949      if test $ac_must_keep_next = true; then
1950	ac_must_keep_next=false # Got value, back to normal.
1951      else
1952	case $ac_arg in
1953	  *=* | --config-cache | -C | -disable-* | --disable-* \
1954	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956	  | -with-* | --with-* | -without-* | --without-* | --x)
1957	    case "$ac_configure_args0 " in
1958	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959	    esac
1960	    ;;
1961	  -* ) ac_must_keep_next=true ;;
1962	esac
1963      fi
1964      as_fn_append ac_configure_args " '$ac_arg'"
1965      ;;
1966    esac
1967  done
1968done
1969{ ac_configure_args0=; unset ac_configure_args0;}
1970{ ac_configure_args1=; unset ac_configure_args1;}
1971
1972# When interrupted or exit'd, cleanup temporary files, and complete
1973# config.log.  We remove comments because anyway the quotes in there
1974# would cause problems or look ugly.
1975# WARNING: Use '\'' to represent an apostrophe within the trap.
1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977trap 'exit_status=$?
1978  # Save into config.log some information that might help in debugging.
1979  {
1980    echo
1981
1982    $as_echo "## ---------------- ##
1983## Cache variables. ##
1984## ---------------- ##"
1985    echo
1986    # The following way of writing the cache mishandles newlines in values,
1987(
1988  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989    eval ac_val=\$$ac_var
1990    case $ac_val in #(
1991    *${as_nl}*)
1992      case $ac_var in #(
1993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995      esac
1996      case $ac_var in #(
1997      _ | IFS | as_nl) ;; #(
1998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999      *) { eval $ac_var=; unset $ac_var;} ;;
2000      esac ;;
2001    esac
2002  done
2003  (set) 2>&1 |
2004    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005    *${as_nl}ac_space=\ *)
2006      sed -n \
2007	"s/'\''/'\''\\\\'\'''\''/g;
2008	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009      ;; #(
2010    *)
2011      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012      ;;
2013    esac |
2014    sort
2015)
2016    echo
2017
2018    $as_echo "## ----------------- ##
2019## Output variables. ##
2020## ----------------- ##"
2021    echo
2022    for ac_var in $ac_subst_vars
2023    do
2024      eval ac_val=\$$ac_var
2025      case $ac_val in
2026      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027      esac
2028      $as_echo "$ac_var='\''$ac_val'\''"
2029    done | sort
2030    echo
2031
2032    if test -n "$ac_subst_files"; then
2033      $as_echo "## ------------------- ##
2034## File substitutions. ##
2035## ------------------- ##"
2036      echo
2037      for ac_var in $ac_subst_files
2038      do
2039	eval ac_val=\$$ac_var
2040	case $ac_val in
2041	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042	esac
2043	$as_echo "$ac_var='\''$ac_val'\''"
2044      done | sort
2045      echo
2046    fi
2047
2048    if test -s confdefs.h; then
2049      $as_echo "## ----------- ##
2050## confdefs.h. ##
2051## ----------- ##"
2052      echo
2053      cat confdefs.h
2054      echo
2055    fi
2056    test "$ac_signal" != 0 &&
2057      $as_echo "$as_me: caught signal $ac_signal"
2058    $as_echo "$as_me: exit $exit_status"
2059  } >&5
2060  rm -f core *.core core.conftest.* &&
2061    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062    exit $exit_status
2063' 0
2064for ac_signal in 1 2 13 15; do
2065  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066done
2067ac_signal=0
2068
2069# confdefs.h avoids OS command line length limits that DEFS can exceed.
2070rm -f -r conftest* confdefs.h
2071
2072$as_echo "/* confdefs.h */" > confdefs.h
2073
2074# Predefined preprocessor variables.
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_NAME "$PACKAGE_NAME"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_VERSION "$PACKAGE_VERSION"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_STRING "$PACKAGE_STRING"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_URL "$PACKAGE_URL"
2098_ACEOF
2099
2100
2101# Let the site file select an alternate cache file if it wants to.
2102# Prefer an explicitly selected file to automatically selected ones.
2103ac_site_file1=NONE
2104ac_site_file2=NONE
2105if test -n "$CONFIG_SITE"; then
2106  # We do not want a PATH search for config.site.
2107  case $CONFIG_SITE in #((
2108    -*)  ac_site_file1=./$CONFIG_SITE;;
2109    */*) ac_site_file1=$CONFIG_SITE;;
2110    *)   ac_site_file1=./$CONFIG_SITE;;
2111  esac
2112elif test "x$prefix" != xNONE; then
2113  ac_site_file1=$prefix/share/config.site
2114  ac_site_file2=$prefix/etc/config.site
2115else
2116  ac_site_file1=$ac_default_prefix/share/config.site
2117  ac_site_file2=$ac_default_prefix/etc/config.site
2118fi
2119for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120do
2121  test "x$ac_site_file" = xNONE && continue
2122  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125    sed 's/^/| /' "$ac_site_file" >&5
2126    . "$ac_site_file" \
2127      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129as_fn_error $? "failed to load site script $ac_site_file
2130See \`config.log' for more details" "$LINENO" 5; }
2131  fi
2132done
2133
2134if test -r "$cache_file"; then
2135  # Some versions of bash will fail to source /dev/null (special files
2136  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2137  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139$as_echo "$as_me: loading cache $cache_file" >&6;}
2140    case $cache_file in
2141      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142      *)                      . "./$cache_file";;
2143    esac
2144  fi
2145else
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147$as_echo "$as_me: creating cache $cache_file" >&6;}
2148  >$cache_file
2149fi
2150
2151# Check that the precious variables saved in the cache have kept the same
2152# value.
2153ac_cache_corrupted=false
2154for ac_var in $ac_precious_vars; do
2155  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156  eval ac_new_set=\$ac_env_${ac_var}_set
2157  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158  eval ac_new_val=\$ac_env_${ac_var}_value
2159  case $ac_old_set,$ac_new_set in
2160    set,)
2161      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163      ac_cache_corrupted=: ;;
2164    ,set)
2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167      ac_cache_corrupted=: ;;
2168    ,);;
2169    *)
2170      if test "x$ac_old_val" != "x$ac_new_val"; then
2171	# differences in whitespace do not lead to failure.
2172	ac_old_val_w=`echo x $ac_old_val`
2173	ac_new_val_w=`echo x $ac_new_val`
2174	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177	  ac_cache_corrupted=:
2178	else
2179	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181	  eval $ac_var=\$ac_old_val
2182	fi
2183	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2184$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2185	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2186$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2187      fi;;
2188  esac
2189  # Pass precious variables to config.status.
2190  if test "$ac_new_set" = set; then
2191    case $ac_new_val in
2192    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193    *) ac_arg=$ac_var=$ac_new_val ;;
2194    esac
2195    case " $ac_configure_args " in
2196      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2197      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198    esac
2199  fi
2200done
2201if $ac_cache_corrupted; then
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207fi
2208## -------------------- ##
2209## Main body of script. ##
2210## -------------------- ##
2211
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220ac_config_headers="$ac_config_headers config.h"
2221
2222ac_aux_dir=
2223for ac_dir in . "$srcdir"/.; do
2224  if test -f "$ac_dir/install-sh"; then
2225    ac_aux_dir=$ac_dir
2226    ac_install_sh="$ac_aux_dir/install-sh -c"
2227    break
2228  elif test -f "$ac_dir/install.sh"; then
2229    ac_aux_dir=$ac_dir
2230    ac_install_sh="$ac_aux_dir/install.sh -c"
2231    break
2232  elif test -f "$ac_dir/shtool"; then
2233    ac_aux_dir=$ac_dir
2234    ac_install_sh="$ac_aux_dir/shtool install -c"
2235    break
2236  fi
2237done
2238if test -z "$ac_aux_dir"; then
2239  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2240fi
2241
2242# These three variables are undocumented and unsupported,
2243# and are intended to be withdrawn in a future Autoconf release.
2244# They can cause serious problems if a builder's source tree is in a directory
2245# whose full name contains unusual characters.
2246ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2247ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2248ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2249
2250
2251
2252# Initialize Automake
2253am__api_version='1.12'
2254
2255# Find a good install program.  We prefer a C program (faster),
2256# so one script is as good as another.  But avoid the broken or
2257# incompatible versions:
2258# SysV /etc/install, /usr/sbin/install
2259# SunOS /usr/etc/install
2260# IRIX /sbin/install
2261# AIX /bin/install
2262# AmigaOS /C/install, which installs bootblocks on floppy discs
2263# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266# OS/2's system install, which has a completely different semantic
2267# ./install, which can be erroneously created by make from ./install.sh.
2268# Reject install programs that cannot install multiple files.
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2270$as_echo_n "checking for a BSD-compatible install... " >&6; }
2271if test -z "$INSTALL"; then
2272if ${ac_cv_path_install+:} false; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280    # Account for people who put trailing slashes in PATH elements.
2281case $as_dir/ in #((
2282  ./ | .// | /[cC]/* | \
2283  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2285  /usr/ucb/* ) ;;
2286  *)
2287    # OSF1 and SCO ODT 3.0 have their own names for install.
2288    # Don't use installbsd from OSF since it installs stuff as root
2289    # by default.
2290    for ac_prog in ginstall scoinst install; do
2291      for ac_exec_ext in '' $ac_executable_extensions; do
2292	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2293	  if test $ac_prog = install &&
2294	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295	    # AIX install.  It has an incompatible calling convention.
2296	    :
2297	  elif test $ac_prog = install &&
2298	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299	    # program-specific install script used by HP pwplus--don't use.
2300	    :
2301	  else
2302	    rm -rf conftest.one conftest.two conftest.dir
2303	    echo one > conftest.one
2304	    echo two > conftest.two
2305	    mkdir conftest.dir
2306	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2307	      test -s conftest.one && test -s conftest.two &&
2308	      test -s conftest.dir/conftest.one &&
2309	      test -s conftest.dir/conftest.two
2310	    then
2311	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2312	      break 3
2313	    fi
2314	  fi
2315	fi
2316      done
2317    done
2318    ;;
2319esac
2320
2321  done
2322IFS=$as_save_IFS
2323
2324rm -rf conftest.one conftest.two conftest.dir
2325
2326fi
2327  if test "${ac_cv_path_install+set}" = set; then
2328    INSTALL=$ac_cv_path_install
2329  else
2330    # As a last resort, use the slow shell script.  Don't cache a
2331    # value for INSTALL within a source directory, because that will
2332    # break other packages using the cache if that directory is
2333    # removed, or if the value is a relative name.
2334    INSTALL=$ac_install_sh
2335  fi
2336fi
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2338$as_echo "$INSTALL" >&6; }
2339
2340# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341# It thinks the first close brace ends the variable substitution.
2342test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2343
2344test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2345
2346test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2347
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2349$as_echo_n "checking whether build environment is sane... " >&6; }
2350# Reject unsafe characters in $srcdir or the absolute working directory
2351# name.  Accept space and tab only in the latter.
2352am_lf='
2353'
2354case `pwd` in
2355  *[\\\"\#\$\&\'\`$am_lf]*)
2356    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2357esac
2358case $srcdir in
2359  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2360    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2361esac
2362
2363# Do 'set' in a subshell so we don't clobber the current shell's
2364# arguments.  Must try -L first in case configure is actually a
2365# symlink; some systems play weird games with the mod time of symlinks
2366# (eg FreeBSD returns the mod time of the symlink's containing
2367# directory).
2368if (
2369   am_has_slept=no
2370   for am_try in 1 2; do
2371     echo "timestamp, slept: $am_has_slept" > conftest.file
2372     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2373     if test "$*" = "X"; then
2374	# -L didn't work.
2375	set X `ls -t "$srcdir/configure" conftest.file`
2376     fi
2377     if test "$*" != "X $srcdir/configure conftest.file" \
2378	&& test "$*" != "X conftest.file $srcdir/configure"; then
2379
2380	# If neither matched, then we have a broken ls.  This can happen
2381	# if, for instance, CONFIG_SHELL is bash and it inherits a
2382	# broken ls alias from the environment.  This has actually
2383	# happened.  Such a system could not be considered "sane".
2384	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2385  alias in your environment" "$LINENO" 5
2386     fi
2387     if test "$2" = conftest.file || test $am_try -eq 2; then
2388       break
2389     fi
2390     # Just in case.
2391     sleep 1
2392     am_has_slept=yes
2393   done
2394   test "$2" = conftest.file
2395   )
2396then
2397   # Ok.
2398   :
2399else
2400   as_fn_error $? "newly created file is older than distributed files!
2401Check your system clock" "$LINENO" 5
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404$as_echo "yes" >&6; }
2405# If we didn't sleep, we still need to ensure time stamps of config.status and
2406# generated files are strictly newer.
2407am_sleep_pid=
2408if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2409  ( sleep 1 ) &
2410  am_sleep_pid=$!
2411fi
2412
2413rm -f conftest.file
2414
2415test "$program_prefix" != NONE &&
2416  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2417# Use a double $ so make ignores it.
2418test "$program_suffix" != NONE &&
2419  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2420# Double any \ or $.
2421# By default was `s,x,x', remove it if useless.
2422ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2423program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2424
2425# expand $ac_aux_dir to an absolute path
2426am_aux_dir=`cd $ac_aux_dir && pwd`
2427
2428if test x"${MISSING+set}" != xset; then
2429  case $am_aux_dir in
2430  *\ * | *\	*)
2431    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2432  *)
2433    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2434  esac
2435fi
2436# Use eval to expand $SHELL
2437if eval "$MISSING --run true"; then
2438  am_missing_run="$MISSING --run "
2439else
2440  am_missing_run=
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2442$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2443fi
2444
2445if test x"${install_sh}" != xset; then
2446  case $am_aux_dir in
2447  *\ * | *\	*)
2448    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2449  *)
2450    install_sh="\${SHELL} $am_aux_dir/install-sh"
2451  esac
2452fi
2453
2454# Installed binaries are usually stripped using 'strip' when the user
2455# run "make install-strip".  However 'strip' might not be the right
2456# tool to use in cross-compilation environments, therefore Automake
2457# will honor the 'STRIP' environment variable to overrule this program.
2458if test "$cross_compiling" != no; then
2459  if test -n "$ac_tool_prefix"; then
2460  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461set dummy ${ac_tool_prefix}strip; ac_word=$2
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if ${ac_cv_prog_STRIP+:} false; then :
2465  $as_echo_n "(cached) " >&6
2466else
2467  if test -n "$STRIP"; then
2468  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475    for ac_exec_ext in '' $ac_executable_extensions; do
2476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482  done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487STRIP=$ac_cv_prog_STRIP
2488if test -n "$STRIP"; then
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2490$as_echo "$STRIP" >&6; }
2491else
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
2494fi
2495
2496
2497fi
2498if test -z "$ac_cv_prog_STRIP"; then
2499  ac_ct_STRIP=$STRIP
2500  # Extract the first word of "strip", so it can be a program name with args.
2501set dummy strip; ac_word=$2
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2503$as_echo_n "checking for $ac_word... " >&6; }
2504if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2505  $as_echo_n "(cached) " >&6
2506else
2507  if test -n "$ac_ct_STRIP"; then
2508  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515    for ac_exec_ext in '' $ac_executable_extensions; do
2516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517    ac_cv_prog_ac_ct_STRIP="strip"
2518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519    break 2
2520  fi
2521done
2522  done
2523IFS=$as_save_IFS
2524
2525fi
2526fi
2527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528if test -n "$ac_ct_STRIP"; then
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2530$as_echo "$ac_ct_STRIP" >&6; }
2531else
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533$as_echo "no" >&6; }
2534fi
2535
2536  if test "x$ac_ct_STRIP" = x; then
2537    STRIP=":"
2538  else
2539    case $cross_compiling:$ac_tool_warned in
2540yes:)
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2543ac_tool_warned=yes ;;
2544esac
2545    STRIP=$ac_ct_STRIP
2546  fi
2547else
2548  STRIP="$ac_cv_prog_STRIP"
2549fi
2550
2551fi
2552INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2555$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2556if test -z "$MKDIR_P"; then
2557  if ${ac_cv_path_mkdir+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562do
2563  IFS=$as_save_IFS
2564  test -z "$as_dir" && as_dir=.
2565    for ac_prog in mkdir gmkdir; do
2566	 for ac_exec_ext in '' $ac_executable_extensions; do
2567	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2568	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2569	     'mkdir (GNU coreutils) '* | \
2570	     'mkdir (coreutils) '* | \
2571	     'mkdir (fileutils) '4.1*)
2572	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2573	       break 3;;
2574	   esac
2575	 done
2576       done
2577  done
2578IFS=$as_save_IFS
2579
2580fi
2581
2582  test -d ./--version && rmdir ./--version
2583  if test "${ac_cv_path_mkdir+set}" = set; then
2584    MKDIR_P="$ac_cv_path_mkdir -p"
2585  else
2586    # As a last resort, use the slow shell script.  Don't cache a
2587    # value for MKDIR_P within a source directory, because that will
2588    # break other packages using the cache if that directory is
2589    # removed, or if the value is a relative name.
2590    MKDIR_P="$ac_install_sh -d"
2591  fi
2592fi
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2594$as_echo "$MKDIR_P" >&6; }
2595
2596for ac_prog in gawk mawk nawk awk
2597do
2598  # Extract the first word of "$ac_prog", so it can be a program name with args.
2599set dummy $ac_prog; ac_word=$2
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if ${ac_cv_prog_AWK+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test -n "$AWK"; then
2606  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611  IFS=$as_save_IFS
2612  test -z "$as_dir" && as_dir=.
2613    for ac_exec_ext in '' $ac_executable_extensions; do
2614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615    ac_cv_prog_AWK="$ac_prog"
2616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617    break 2
2618  fi
2619done
2620  done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625AWK=$ac_cv_prog_AWK
2626if test -n "$AWK"; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2628$as_echo "$AWK" >&6; }
2629else
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634
2635  test -n "$AWK" && break
2636done
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2639$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2640set x ${MAKE-make}
2641ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2642if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  cat >conftest.make <<\_ACEOF
2646SHELL = /bin/sh
2647all:
2648	@echo '@@@%%%=$(MAKE)=@@@%%%'
2649_ACEOF
2650# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2651case `${MAKE-make} -f conftest.make 2>/dev/null` in
2652  *@@@%%%=?*=@@@%%%*)
2653    eval ac_cv_prog_make_${ac_make}_set=yes;;
2654  *)
2655    eval ac_cv_prog_make_${ac_make}_set=no;;
2656esac
2657rm -f conftest.make
2658fi
2659if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661$as_echo "yes" >&6; }
2662  SET_MAKE=
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666  SET_MAKE="MAKE=${MAKE-make}"
2667fi
2668
2669rm -rf .tst 2>/dev/null
2670mkdir .tst 2>/dev/null
2671if test -d .tst; then
2672  am__leading_dot=.
2673else
2674  am__leading_dot=_
2675fi
2676rmdir .tst 2>/dev/null
2677
2678if test "`cd $srcdir && pwd`" != "`pwd`"; then
2679  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2680  # is not polluted with repeated "-I."
2681  am__isrc=' -I$(srcdir)'
2682  # test to see if srcdir already configured
2683  if test -f $srcdir/config.status; then
2684    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2685  fi
2686fi
2687
2688# test whether we have cygpath
2689if test -z "$CYGPATH_W"; then
2690  if (cygpath --version) >/dev/null 2>/dev/null; then
2691    CYGPATH_W='cygpath -w'
2692  else
2693    CYGPATH_W=echo
2694  fi
2695fi
2696
2697
2698# Define the identity of the package.
2699 PACKAGE='xf86-video-suntcx'
2700 VERSION='1.1.2'
2701
2702
2703cat >>confdefs.h <<_ACEOF
2704#define PACKAGE "$PACKAGE"
2705_ACEOF
2706
2707
2708cat >>confdefs.h <<_ACEOF
2709#define VERSION "$VERSION"
2710_ACEOF
2711
2712# Some tools Automake needs.
2713
2714ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2715
2716
2717AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2718
2719
2720AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2721
2722
2723AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2724
2725
2726MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2727
2728# For better backward compatibility.  To be removed once Automake 1.9.x
2729# dies out for good.  For more background, see:
2730# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2731# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2732mkdir_p='$(MKDIR_P)'
2733
2734# We need awk for the "check" target.  The system "awk" is bad on
2735# some platforms.
2736# Always define AMTAR for backward compatibility.  Yes, it's still used
2737# in the wild :-(  We should find a proper way to deprecate it ...
2738AMTAR='$${TAR-tar}'
2739
2740am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2741
2742
2743
2744
2745
2746
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2748$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2749    # Check whether --enable-maintainer-mode was given.
2750if test "${enable_maintainer_mode+set}" = set; then :
2751  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2752else
2753  USE_MAINTAINER_MODE=no
2754fi
2755
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2757$as_echo "$USE_MAINTAINER_MODE" >&6; }
2758   if test $USE_MAINTAINER_MODE = yes; then
2759  MAINTAINER_MODE_TRUE=
2760  MAINTAINER_MODE_FALSE='#'
2761else
2762  MAINTAINER_MODE_TRUE='#'
2763  MAINTAINER_MODE_FALSE=
2764fi
2765
2766  MAINT=$MAINTAINER_MODE_TRUE
2767
2768
2769
2770# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782DEPDIR="${am__leading_dot}deps"
2783
2784ac_config_commands="$ac_config_commands depfiles"
2785
2786
2787am_make=${MAKE-make}
2788cat > confinc << 'END'
2789am__doit:
2790	@echo this is the am__doit target
2791.PHONY: am__doit
2792END
2793# If we don't find an include directive, just comment out the code.
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2795$as_echo_n "checking for style of include used by $am_make... " >&6; }
2796am__include="#"
2797am__quote=
2798_am_result=none
2799# First try GNU make style include.
2800echo "include confinc" > confmf
2801# Ignore all kinds of additional output from 'make'.
2802case `$am_make -s -f confmf 2> /dev/null` in #(
2803*the\ am__doit\ target*)
2804  am__include=include
2805  am__quote=
2806  _am_result=GNU
2807  ;;
2808esac
2809# Now try BSD make style include.
2810if test "$am__include" = "#"; then
2811   echo '.include "confinc"' > confmf
2812   case `$am_make -s -f confmf 2> /dev/null` in #(
2813   *the\ am__doit\ target*)
2814     am__include=.include
2815     am__quote="\""
2816     _am_result=BSD
2817     ;;
2818   esac
2819fi
2820
2821
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2823$as_echo "$_am_result" >&6; }
2824rm -f confinc confmf
2825
2826# Check whether --enable-dependency-tracking was given.
2827if test "${enable_dependency_tracking+set}" = set; then :
2828  enableval=$enable_dependency_tracking;
2829fi
2830
2831if test "x$enable_dependency_tracking" != xno; then
2832  am_depcomp="$ac_aux_dir/depcomp"
2833  AMDEPBACKSLASH='\'
2834  am__nodep='_no'
2835fi
2836 if test "x$enable_dependency_tracking" != xno; then
2837  AMDEP_TRUE=
2838  AMDEP_FALSE='#'
2839else
2840  AMDEP_TRUE='#'
2841  AMDEP_FALSE=
2842fi
2843
2844
2845ac_ext=c
2846ac_cpp='$CPP $CPPFLAGS'
2847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850if test -n "$ac_tool_prefix"; then
2851  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852set dummy ${ac_tool_prefix}gcc; ac_word=$2
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if ${ac_cv_prog_CC+:} false; then :
2856  $as_echo_n "(cached) " >&6
2857else
2858  if test -n "$CC"; then
2859  ac_cv_prog_CC="$CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866    for ac_exec_ext in '' $ac_executable_extensions; do
2867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873  done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878CC=$ac_cv_prog_CC
2879if test -n "$CC"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881$as_echo "$CC" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888fi
2889if test -z "$ac_cv_prog_CC"; then
2890  ac_ct_CC=$CC
2891  # Extract the first word of "gcc", so it can be a program name with args.
2892set dummy gcc; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_ac_ct_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$ac_ct_CC"; then
2899  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_ac_ct_CC="gcc"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921$as_echo "$ac_ct_CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927  if test "x$ac_ct_CC" = x; then
2928    CC=""
2929  else
2930    case $cross_compiling:$ac_tool_warned in
2931yes:)
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934ac_tool_warned=yes ;;
2935esac
2936    CC=$ac_ct_CC
2937  fi
2938else
2939  CC="$ac_cv_prog_CC"
2940fi
2941
2942if test -z "$CC"; then
2943          if test -n "$ac_tool_prefix"; then
2944    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}cc; ac_word=$2
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if ${ac_cv_prog_CC+:} false; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961    ac_cv_prog_CC="${ac_tool_prefix}cc"
2962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974$as_echo "$CC" >&6; }
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981  fi
2982fi
2983if test -z "$CC"; then
2984  # Extract the first word of "cc", so it can be a program name with args.
2985set dummy cc; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if ${ac_cv_prog_CC+:} false; then :
2989  $as_echo_n "(cached) " >&6
2990else
2991  if test -n "$CC"; then
2992  ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
2994  ac_prog_rejected=no
2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH
2997do
2998  IFS=$as_save_IFS
2999  test -z "$as_dir" && as_dir=.
3000    for ac_exec_ext in '' $ac_executable_extensions; do
3001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003       ac_prog_rejected=yes
3004       continue
3005     fi
3006    ac_cv_prog_CC="cc"
3007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008    break 2
3009  fi
3010done
3011  done
3012IFS=$as_save_IFS
3013
3014if test $ac_prog_rejected = yes; then
3015  # We found a bogon in the path, so make sure we never use it.
3016  set dummy $ac_cv_prog_CC
3017  shift
3018  if test $# != 0; then
3019    # We chose a different compiler from the bogus one.
3020    # However, it has the same basename, so the bogon will be chosen
3021    # first if we set CC to just the basename; use the full file name.
3022    shift
3023    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024  fi
3025fi
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031$as_echo "$CC" >&6; }
3032else
3033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034$as_echo "no" >&6; }
3035fi
3036
3037
3038fi
3039if test -z "$CC"; then
3040  if test -n "$ac_tool_prefix"; then
3041  for ac_prog in cl.exe
3042  do
3043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if ${ac_cv_prog_CC+:} false; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  if test -n "$CC"; then
3051  ac_cv_prog_CC="$CC" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062    break 2
3063  fi
3064done
3065  done
3066IFS=$as_save_IFS
3067
3068fi
3069fi
3070CC=$ac_cv_prog_CC
3071if test -n "$CC"; then
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073$as_echo "$CC" >&6; }
3074else
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077fi
3078
3079
3080    test -n "$CC" && break
3081  done
3082fi
3083if test -z "$CC"; then
3084  ac_ct_CC=$CC
3085  for ac_prog in cl.exe
3086do
3087  # Extract the first word of "$ac_prog", so it can be a program name with args.
3088set dummy $ac_prog; ac_word=$2
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090$as_echo_n "checking for $ac_word... " >&6; }
3091if ${ac_cv_prog_ac_ct_CC+:} false; then :
3092  $as_echo_n "(cached) " >&6
3093else
3094  if test -n "$ac_ct_CC"; then
3095  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102    for ac_exec_ext in '' $ac_executable_extensions; do
3103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104    ac_cv_prog_ac_ct_CC="$ac_prog"
3105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106    break 2
3107  fi
3108done
3109  done
3110IFS=$as_save_IFS
3111
3112fi
3113fi
3114ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115if test -n "$ac_ct_CC"; then
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117$as_echo "$ac_ct_CC" >&6; }
3118else
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124  test -n "$ac_ct_CC" && break
3125done
3126
3127  if test "x$ac_ct_CC" = x; then
3128    CC=""
3129  else
3130    case $cross_compiling:$ac_tool_warned in
3131yes:)
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134ac_tool_warned=yes ;;
3135esac
3136    CC=$ac_ct_CC
3137  fi
3138fi
3139
3140fi
3141
3142
3143test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "no acceptable C compiler found in \$PATH
3146See \`config.log' for more details" "$LINENO" 5; }
3147
3148# Provide some information about the compiler.
3149$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150set X $ac_compile
3151ac_compiler=$2
3152for ac_option in --version -v -V -qversion; do
3153  { { ac_try="$ac_compiler $ac_option >&5"
3154case "(($ac_try" in
3155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156  *) ac_try_echo=$ac_try;;
3157esac
3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159$as_echo "$ac_try_echo"; } >&5
3160  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3161  ac_status=$?
3162  if test -s conftest.err; then
3163    sed '10a\
3164... rest of stderr output deleted ...
3165         10q' conftest.err >conftest.er1
3166    cat conftest.er1 >&5
3167  fi
3168  rm -f conftest.er1 conftest.err
3169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170  test $ac_status = 0; }
3171done
3172
3173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174/* end confdefs.h.  */
3175
3176int
3177main ()
3178{
3179
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184ac_clean_files_save=$ac_clean_files
3185ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3186# Try to create an executable without -o first, disregard a.out.
3187# It will help us diagnose broken compilers, and finding out an intuition
3188# of exeext.
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3190$as_echo_n "checking whether the C compiler works... " >&6; }
3191ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3192
3193# The possible output files:
3194ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195
3196ac_rmfiles=
3197for ac_file in $ac_files
3198do
3199  case $ac_file in
3200    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3201    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202  esac
3203done
3204rm -f $ac_rmfiles
3205
3206if { { ac_try="$ac_link_default"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
3213  (eval "$ac_link_default") 2>&5
3214  ac_status=$?
3215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216  test $ac_status = 0; }; then :
3217  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3219# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3220# so that the user can short-circuit this test for compilers unknown to
3221# Autoconf.
3222for ac_file in $ac_files ''
3223do
3224  test -f "$ac_file" || continue
3225  case $ac_file in
3226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227	;;
3228    [ab].out )
3229	# We found the default executable, but exeext='' is most
3230	# certainly right.
3231	break;;
3232    *.* )
3233	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3234	then :; else
3235	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236	fi
3237	# We set ac_cv_exeext here because the later test for it is not
3238	# safe: cross compilers may not add the suffix if given an `-o'
3239	# argument, so we may need to know it at that point already.
3240	# Even if this section looks crufty: it has the advantage of
3241	# actually working.
3242	break;;
3243    * )
3244	break;;
3245  esac
3246done
3247test "$ac_cv_exeext" = no && ac_cv_exeext=
3248
3249else
3250  ac_file=''
3251fi
3252if test -z "$ac_file"; then :
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255$as_echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error 77 "C compiler cannot create executables
3261See \`config.log' for more details" "$LINENO" 5; }
3262else
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264$as_echo "yes" >&6; }
3265fi
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267$as_echo_n "checking for C compiler default output file name... " >&6; }
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3269$as_echo "$ac_file" >&6; }
3270ac_exeext=$ac_cv_exeext
3271
3272rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3273ac_clean_files=$ac_clean_files_save
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3275$as_echo_n "checking for suffix of executables... " >&6; }
3276if { { ac_try="$ac_link"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
3283  (eval "$ac_link") 2>&5
3284  ac_status=$?
3285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286  test $ac_status = 0; }; then :
3287  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3288# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3289# work properly (i.e., refer to `conftest.exe'), while it won't with
3290# `rm'.
3291for ac_file in conftest.exe conftest conftest.*; do
3292  test -f "$ac_file" || continue
3293  case $ac_file in
3294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296	  break;;
3297    * ) break;;
3298  esac
3299done
3300else
3301  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3304See \`config.log' for more details" "$LINENO" 5; }
3305fi
3306rm -f conftest conftest$ac_cv_exeext
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3308$as_echo "$ac_cv_exeext" >&6; }
3309
3310rm -f conftest.$ac_ext
3311EXEEXT=$ac_cv_exeext
3312ac_exeext=$EXEEXT
3313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315#include <stdio.h>
3316int
3317main ()
3318{
3319FILE *f = fopen ("conftest.out", "w");
3320 return ferror (f) || fclose (f) != 0;
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326ac_clean_files="$ac_clean_files conftest.out"
3327# Check that the compiler produces executables we can run.  If not, either
3328# the compiler is broken, or we cross compile.
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3330$as_echo_n "checking whether we are cross compiling... " >&6; }
3331if test "$cross_compiling" != yes; then
3332  { { ac_try="$ac_link"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339  (eval "$ac_link") 2>&5
3340  ac_status=$?
3341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342  test $ac_status = 0; }
3343  if { ac_try='./conftest$ac_cv_exeext'
3344  { { case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_try") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353  test $ac_status = 0; }; }; then
3354    cross_compiling=no
3355  else
3356    if test "$cross_compiling" = maybe; then
3357	cross_compiling=yes
3358    else
3359	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361as_fn_error $? "cannot run C compiled programs.
3362If you meant to cross compile, use \`--host'.
3363See \`config.log' for more details" "$LINENO" 5; }
3364    fi
3365  fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3368$as_echo "$cross_compiling" >&6; }
3369
3370rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3371ac_clean_files=$ac_clean_files_save
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3373$as_echo_n "checking for suffix of object files... " >&6; }
3374if ${ac_cv_objext+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388rm -f conftest.o conftest.obj
3389if { { ac_try="$ac_compile"
3390case "(($ac_try" in
3391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392  *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396  (eval "$ac_compile") 2>&5
3397  ac_status=$?
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; }; then :
3400  for ac_file in conftest.o conftest.obj conftest.*; do
3401  test -f "$ac_file" || continue;
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3404    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3405       break;;
3406  esac
3407done
3408else
3409  $as_echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error $? "cannot compute suffix of object files: cannot compile
3415See \`config.log' for more details" "$LINENO" 5; }
3416fi
3417rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3420$as_echo "$ac_cv_objext" >&6; }
3421OBJEXT=$ac_cv_objext
3422ac_objext=$OBJEXT
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3424$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3425if ${ac_cv_c_compiler_gnu+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434#ifndef __GNUC__
3435       choke me
3436#endif
3437
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442if ac_fn_c_try_compile "$LINENO"; then :
3443  ac_compiler_gnu=yes
3444else
3445  ac_compiler_gnu=no
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3452$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3453if test $ac_compiler_gnu = yes; then
3454  GCC=yes
3455else
3456  GCC=
3457fi
3458ac_test_CFLAGS=${CFLAGS+set}
3459ac_save_CFLAGS=$CFLAGS
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3461$as_echo_n "checking whether $CC accepts -g... " >&6; }
3462if ${ac_cv_prog_cc_g+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  ac_save_c_werror_flag=$ac_c_werror_flag
3466   ac_c_werror_flag=yes
3467   ac_cv_prog_cc_g=no
3468   CFLAGS="-g"
3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481  ac_cv_prog_cc_g=yes
3482else
3483  CFLAGS=""
3484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486
3487int
3488main ()
3489{
3490
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"; then :
3496
3497else
3498  ac_c_werror_flag=$ac_save_c_werror_flag
3499	 CFLAGS="-g"
3500	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h.  */
3502
3503int
3504main ()
3505{
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_compile "$LINENO"; then :
3512  ac_cv_prog_cc_g=yes
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519   ac_c_werror_flag=$ac_save_c_werror_flag
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3522$as_echo "$ac_cv_prog_cc_g" >&6; }
3523if test "$ac_test_CFLAGS" = set; then
3524  CFLAGS=$ac_save_CFLAGS
3525elif test $ac_cv_prog_cc_g = yes; then
3526  if test "$GCC" = yes; then
3527    CFLAGS="-g -O2"
3528  else
3529    CFLAGS="-g"
3530  fi
3531else
3532  if test "$GCC" = yes; then
3533    CFLAGS="-O2"
3534  else
3535    CFLAGS=
3536  fi
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3539$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3540if ${ac_cv_prog_cc_c89+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  ac_cv_prog_cc_c89=no
3544ac_save_CC=$CC
3545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547#include <stdarg.h>
3548#include <stdio.h>
3549struct stat;
3550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3551struct buf { int x; };
3552FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553static char *e (p, i)
3554     char **p;
3555     int i;
3556{
3557  return p[i];
3558}
3559static char *f (char * (*g) (char **, int), char **p, ...)
3560{
3561  char *s;
3562  va_list v;
3563  va_start (v,p);
3564  s = g (p, va_arg (v,int));
3565  va_end (v);
3566  return s;
3567}
3568
3569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3570   function prototypes and stuff, but not '\xHH' hex character constants.
3571   These don't provoke an error unfortunately, instead are silently treated
3572   as 'x'.  The following induces an error, until -std is added to get
3573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3574   array size at least.  It's necessary to write '\x00'==0 to get something
3575   that's true only with -std.  */
3576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577
3578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579   inside strings and character constants.  */
3580#define FOO(x) 'x'
3581int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582
3583int test (int i, double x);
3584struct s1 {int (*f) (int a);};
3585struct s2 {int (*f) (double a);};
3586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587int argc;
3588char **argv;
3589int
3590main ()
3591{
3592return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599do
3600  CC="$ac_save_CC $ac_arg"
3601  if ac_fn_c_try_compile "$LINENO"; then :
3602  ac_cv_prog_cc_c89=$ac_arg
3603fi
3604rm -f core conftest.err conftest.$ac_objext
3605  test "x$ac_cv_prog_cc_c89" != "xno" && break
3606done
3607rm -f conftest.$ac_ext
3608CC=$ac_save_CC
3609
3610fi
3611# AC_CACHE_VAL
3612case "x$ac_cv_prog_cc_c89" in
3613  x)
3614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615$as_echo "none needed" >&6; } ;;
3616  xno)
3617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618$as_echo "unsupported" >&6; } ;;
3619  *)
3620    CC="$CC $ac_cv_prog_cc_c89"
3621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3623esac
3624if test "x$ac_cv_prog_cc_c89" != xno; then :
3625
3626fi
3627
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634depcc="$CC"   am_compiler_list=
3635
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3637$as_echo_n "checking dependency style of $depcc... " >&6; }
3638if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3642  # We make a subdir and do the tests there.  Otherwise we can end up
3643  # making bogus files that we don't know about and never remove.  For
3644  # instance it was reported that on HP-UX the gcc test will end up
3645  # making a dummy file named 'D' -- because '-MD' means "put the output
3646  # in D".
3647  rm -rf conftest.dir
3648  mkdir conftest.dir
3649  # Copy depcomp to subdir because otherwise we won't find it if we're
3650  # using a relative directory.
3651  cp "$am_depcomp" conftest.dir
3652  cd conftest.dir
3653  # We will build objects and dependencies in a subdirectory because
3654  # it helps to detect inapplicable dependency modes.  For instance
3655  # both Tru64's cc and ICC support -MD to output dependencies as a
3656  # side effect of compilation, but ICC will put the dependencies in
3657  # the current directory while Tru64 will put them in the object
3658  # directory.
3659  mkdir sub
3660
3661  am_cv_CC_dependencies_compiler_type=none
3662  if test "$am_compiler_list" = ""; then
3663     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664  fi
3665  am__universal=false
3666  case " $depcc " in #(
3667     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3668     esac
3669
3670  for depmode in $am_compiler_list; do
3671    # Setup a source with many dependencies, because some compilers
3672    # like to wrap large dependency lists on column 80 (with \), and
3673    # we should not choose a depcomp mode which is confused by this.
3674    #
3675    # We need to recreate these files for each test, as the compiler may
3676    # overwrite some of them when testing with obscure command lines.
3677    # This happens at least with the AIX C compiler.
3678    : > sub/conftest.c
3679    for i in 1 2 3 4 5 6; do
3680      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3681      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3682      # Solaris 10 /bin/sh.
3683      echo '/* dummy */' > sub/conftst$i.h
3684    done
3685    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3686
3687    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3688    # mode.  It turns out that the SunPro C++ compiler does not properly
3689    # handle '-M -o', and we need to detect this.  Also, some Intel
3690    # versions had trouble with output in subdirs.
3691    am__obj=sub/conftest.${OBJEXT-o}
3692    am__minus_obj="-o $am__obj"
3693    case $depmode in
3694    gcc)
3695      # This depmode causes a compiler race in universal mode.
3696      test "$am__universal" = false || continue
3697      ;;
3698    nosideeffect)
3699      # After this tag, mechanisms are not by side-effect, so they'll
3700      # only be used when explicitly requested.
3701      if test "x$enable_dependency_tracking" = xyes; then
3702	continue
3703      else
3704	break
3705      fi
3706      ;;
3707    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3708      # This compiler won't grok '-c -o', but also, the minuso test has
3709      # not run yet.  These depmodes are late enough in the game, and
3710      # so weak that their functioning should not be impacted.
3711      am__obj=conftest.${OBJEXT-o}
3712      am__minus_obj=
3713      ;;
3714    none) break ;;
3715    esac
3716    if depmode=$depmode \
3717       source=sub/conftest.c object=$am__obj \
3718       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3719       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3720         >/dev/null 2>conftest.err &&
3721       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3722       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3723       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3724       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725      # icc doesn't choke on unknown options, it will just issue warnings
3726      # or remarks (even with -Werror).  So we grep stderr for any message
3727      # that says an option was ignored or not supported.
3728      # When given -MP, icc 7.0 and 7.1 complain thusly:
3729      #   icc: Command line warning: ignoring option '-M'; no argument required
3730      # The diagnosis changed in icc 8.0:
3731      #   icc: Command line remark: option '-MP' not supported
3732      if (grep 'ignoring option' conftest.err ||
3733          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3734        am_cv_CC_dependencies_compiler_type=$depmode
3735        break
3736      fi
3737    fi
3738  done
3739
3740  cd ..
3741  rm -rf conftest.dir
3742else
3743  am_cv_CC_dependencies_compiler_type=none
3744fi
3745
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3748$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3749CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3750
3751 if
3752  test "x$enable_dependency_tracking" != xno \
3753  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754  am__fastdepCC_TRUE=
3755  am__fastdepCC_FALSE='#'
3756else
3757  am__fastdepCC_TRUE='#'
3758  am__fastdepCC_FALSE=
3759fi
3760
3761
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3763$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3764if ${ac_cv_prog_cc_c99+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  ac_cv_prog_cc_c99=no
3768ac_save_CC=$CC
3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h.  */
3771#include <stdarg.h>
3772#include <stdbool.h>
3773#include <stdlib.h>
3774#include <wchar.h>
3775#include <stdio.h>
3776
3777// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3778#define debug(...) fprintf (stderr, __VA_ARGS__)
3779#define showlist(...) puts (#__VA_ARGS__)
3780#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3781static void
3782test_varargs_macros (void)
3783{
3784  int x = 1234;
3785  int y = 5678;
3786  debug ("Flag");
3787  debug ("X = %d\n", x);
3788  showlist (The first, second, and third items.);
3789  report (x>y, "x is %d but y is %d", x, y);
3790}
3791
3792// Check long long types.
3793#define BIG64 18446744073709551615ull
3794#define BIG32 4294967295ul
3795#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3796#if !BIG_OK
3797  your preprocessor is broken;
3798#endif
3799#if BIG_OK
3800#else
3801  your preprocessor is broken;
3802#endif
3803static long long int bignum = -9223372036854775807LL;
3804static unsigned long long int ubignum = BIG64;
3805
3806struct incomplete_array
3807{
3808  int datasize;
3809  double data[];
3810};
3811
3812struct named_init {
3813  int number;
3814  const wchar_t *name;
3815  double average;
3816};
3817
3818typedef const char *ccp;
3819
3820static inline int
3821test_restrict (ccp restrict text)
3822{
3823  // See if C++-style comments work.
3824  // Iterate through items via the restricted pointer.
3825  // Also check for declarations in for loops.
3826  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3827    continue;
3828  return 0;
3829}
3830
3831// Check varargs and va_copy.
3832static void
3833test_varargs (const char *format, ...)
3834{
3835  va_list args;
3836  va_start (args, format);
3837  va_list args_copy;
3838  va_copy (args_copy, args);
3839
3840  const char *str;
3841  int number;
3842  float fnumber;
3843
3844  while (*format)
3845    {
3846      switch (*format++)
3847	{
3848	case 's': // string
3849	  str = va_arg (args_copy, const char *);
3850	  break;
3851	case 'd': // int
3852	  number = va_arg (args_copy, int);
3853	  break;
3854	case 'f': // float
3855	  fnumber = va_arg (args_copy, double);
3856	  break;
3857	default:
3858	  break;
3859	}
3860    }
3861  va_end (args_copy);
3862  va_end (args);
3863}
3864
3865int
3866main ()
3867{
3868
3869  // Check bool.
3870  _Bool success = false;
3871
3872  // Check restrict.
3873  if (test_restrict ("String literal") == 0)
3874    success = true;
3875  char *restrict newvar = "Another string";
3876
3877  // Check varargs.
3878  test_varargs ("s, d' f .", "string", 65, 34.234);
3879  test_varargs_macros ();
3880
3881  // Check flexible array members.
3882  struct incomplete_array *ia =
3883    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3884  ia->datasize = 10;
3885  for (int i = 0; i < ia->datasize; ++i)
3886    ia->data[i] = i * 1.234;
3887
3888  // Check named initializers.
3889  struct named_init ni = {
3890    .number = 34,
3891    .name = L"Test wide string",
3892    .average = 543.34343,
3893  };
3894
3895  ni.number = 58;
3896
3897  int dynamic_array[ni.number];
3898  dynamic_array[ni.number - 1] = 543;
3899
3900  // work around unused variable warnings
3901  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3902	  || dynamic_array[ni.number - 1] != 543);
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3909do
3910  CC="$ac_save_CC $ac_arg"
3911  if ac_fn_c_try_compile "$LINENO"; then :
3912  ac_cv_prog_cc_c99=$ac_arg
3913fi
3914rm -f core conftest.err conftest.$ac_objext
3915  test "x$ac_cv_prog_cc_c99" != "xno" && break
3916done
3917rm -f conftest.$ac_ext
3918CC=$ac_save_CC
3919
3920fi
3921# AC_CACHE_VAL
3922case "x$ac_cv_prog_cc_c99" in
3923  x)
3924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925$as_echo "none needed" >&6; } ;;
3926  xno)
3927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928$as_echo "unsupported" >&6; } ;;
3929  *)
3930    CC="$CC $ac_cv_prog_cc_c99"
3931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3932$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3933esac
3934if test "x$ac_cv_prog_cc_c99" != xno; then :
3935
3936fi
3937
3938
3939
3940ac_ext=c
3941ac_cpp='$CPP $CPPFLAGS'
3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3946$as_echo_n "checking how to run the C preprocessor... " >&6; }
3947# On Suns, sometimes $CPP names a directory.
3948if test -n "$CPP" && test -d "$CPP"; then
3949  CPP=
3950fi
3951if test -z "$CPP"; then
3952  if ${ac_cv_prog_CPP+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955      # Double quotes because CPP needs to be expanded
3956    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3957    do
3958      ac_preproc_ok=false
3959for ac_c_preproc_warn_flag in '' yes
3960do
3961  # Use a header file that comes with gcc, so configuring glibc
3962  # with a fresh cross-compiler works.
3963  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964  # <limits.h> exists even on freestanding compilers.
3965  # On the NeXT, cc -E runs the code through the compiler's parser,
3966  # not just through cpp. "Syntax error" is here to catch this case.
3967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968/* end confdefs.h.  */
3969#ifdef __STDC__
3970# include <limits.h>
3971#else
3972# include <assert.h>
3973#endif
3974		     Syntax error
3975_ACEOF
3976if ac_fn_c_try_cpp "$LINENO"; then :
3977
3978else
3979  # Broken: fails on valid input.
3980continue
3981fi
3982rm -f conftest.err conftest.i conftest.$ac_ext
3983
3984  # OK, works on sane cases.  Now check whether nonexistent headers
3985  # can be detected and how.
3986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h.  */
3988#include <ac_nonexistent.h>
3989_ACEOF
3990if ac_fn_c_try_cpp "$LINENO"; then :
3991  # Broken: success on invalid input.
3992continue
3993else
3994  # Passes both tests.
3995ac_preproc_ok=:
3996break
3997fi
3998rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000done
4001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002rm -f conftest.i conftest.err conftest.$ac_ext
4003if $ac_preproc_ok; then :
4004  break
4005fi
4006
4007    done
4008    ac_cv_prog_CPP=$CPP
4009
4010fi
4011  CPP=$ac_cv_prog_CPP
4012else
4013  ac_cv_prog_CPP=$CPP
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4016$as_echo "$CPP" >&6; }
4017ac_preproc_ok=false
4018for ac_c_preproc_warn_flag in '' yes
4019do
4020  # Use a header file that comes with gcc, so configuring glibc
4021  # with a fresh cross-compiler works.
4022  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023  # <limits.h> exists even on freestanding compilers.
4024  # On the NeXT, cc -E runs the code through the compiler's parser,
4025  # not just through cpp. "Syntax error" is here to catch this case.
4026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028#ifdef __STDC__
4029# include <limits.h>
4030#else
4031# include <assert.h>
4032#endif
4033		     Syntax error
4034_ACEOF
4035if ac_fn_c_try_cpp "$LINENO"; then :
4036
4037else
4038  # Broken: fails on valid input.
4039continue
4040fi
4041rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043  # OK, works on sane cases.  Now check whether nonexistent headers
4044  # can be detected and how.
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047#include <ac_nonexistent.h>
4048_ACEOF
4049if ac_fn_c_try_cpp "$LINENO"; then :
4050  # Broken: success on invalid input.
4051continue
4052else
4053  # Passes both tests.
4054ac_preproc_ok=:
4055break
4056fi
4057rm -f conftest.err conftest.i conftest.$ac_ext
4058
4059done
4060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061rm -f conftest.i conftest.err conftest.$ac_ext
4062if $ac_preproc_ok; then :
4063
4064else
4065  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4068See \`config.log' for more details" "$LINENO" 5; }
4069fi
4070
4071ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080if ${ac_cv_path_GREP+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test -z "$GREP"; then
4084  ac_path_GREP_found=false
4085  # Loop through the user's path and test for each of PROGNAME-LIST
4086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4088do
4089  IFS=$as_save_IFS
4090  test -z "$as_dir" && as_dir=.
4091    for ac_prog in grep ggrep; do
4092    for ac_exec_ext in '' $ac_executable_extensions; do
4093      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4094      as_fn_executable_p "$ac_path_GREP" || continue
4095# Check for GNU ac_path_GREP and select it if it is found.
4096  # Check for GNU $ac_path_GREP
4097case `"$ac_path_GREP" --version 2>&1` in
4098*GNU*)
4099  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4100*)
4101  ac_count=0
4102  $as_echo_n 0123456789 >"conftest.in"
4103  while :
4104  do
4105    cat "conftest.in" "conftest.in" >"conftest.tmp"
4106    mv "conftest.tmp" "conftest.in"
4107    cp "conftest.in" "conftest.nl"
4108    $as_echo 'GREP' >> "conftest.nl"
4109    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111    as_fn_arith $ac_count + 1 && ac_count=$as_val
4112    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113      # Best one so far, save it but keep looking for a better one
4114      ac_cv_path_GREP="$ac_path_GREP"
4115      ac_path_GREP_max=$ac_count
4116    fi
4117    # 10*(2^10) chars as input seems more than enough
4118    test $ac_count -gt 10 && break
4119  done
4120  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121esac
4122
4123      $ac_path_GREP_found && break 3
4124    done
4125  done
4126  done
4127IFS=$as_save_IFS
4128  if test -z "$ac_cv_path_GREP"; then
4129    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4130  fi
4131else
4132  ac_cv_path_GREP=$GREP
4133fi
4134
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137$as_echo "$ac_cv_path_GREP" >&6; }
4138 GREP="$ac_cv_path_GREP"
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142$as_echo_n "checking for egrep... " >&6; }
4143if ${ac_cv_path_EGREP+:} false; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4147   then ac_cv_path_EGREP="$GREP -E"
4148   else
4149     if test -z "$EGREP"; then
4150  ac_path_EGREP_found=false
4151  # Loop through the user's path and test for each of PROGNAME-LIST
4152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157    for ac_prog in egrep; do
4158    for ac_exec_ext in '' $ac_executable_extensions; do
4159      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160      as_fn_executable_p "$ac_path_EGREP" || continue
4161# Check for GNU ac_path_EGREP and select it if it is found.
4162  # Check for GNU $ac_path_EGREP
4163case `"$ac_path_EGREP" --version 2>&1` in
4164*GNU*)
4165  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4166*)
4167  ac_count=0
4168  $as_echo_n 0123456789 >"conftest.in"
4169  while :
4170  do
4171    cat "conftest.in" "conftest.in" >"conftest.tmp"
4172    mv "conftest.tmp" "conftest.in"
4173    cp "conftest.in" "conftest.nl"
4174    $as_echo 'EGREP' >> "conftest.nl"
4175    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177    as_fn_arith $ac_count + 1 && ac_count=$as_val
4178    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179      # Best one so far, save it but keep looking for a better one
4180      ac_cv_path_EGREP="$ac_path_EGREP"
4181      ac_path_EGREP_max=$ac_count
4182    fi
4183    # 10*(2^10) chars as input seems more than enough
4184    test $ac_count -gt 10 && break
4185  done
4186  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187esac
4188
4189      $ac_path_EGREP_found && break 3
4190    done
4191  done
4192  done
4193IFS=$as_save_IFS
4194  if test -z "$ac_cv_path_EGREP"; then
4195    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196  fi
4197else
4198  ac_cv_path_EGREP=$EGREP
4199fi
4200
4201   fi
4202fi
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204$as_echo "$ac_cv_path_EGREP" >&6; }
4205 EGREP="$ac_cv_path_EGREP"
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4209$as_echo_n "checking for ANSI C header files... " >&6; }
4210if ${ac_cv_header_stdc+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215#include <stdlib.h>
4216#include <stdarg.h>
4217#include <string.h>
4218#include <float.h>
4219
4220int
4221main ()
4222{
4223
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228if ac_fn_c_try_compile "$LINENO"; then :
4229  ac_cv_header_stdc=yes
4230else
4231  ac_cv_header_stdc=no
4232fi
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234
4235if test $ac_cv_header_stdc = yes; then
4236  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <string.h>
4240
4241_ACEOF
4242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243  $EGREP "memchr" >/dev/null 2>&1; then :
4244
4245else
4246  ac_cv_header_stdc=no
4247fi
4248rm -f conftest*
4249
4250fi
4251
4252if test $ac_cv_header_stdc = yes; then
4253  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h.  */
4256#include <stdlib.h>
4257
4258_ACEOF
4259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260  $EGREP "free" >/dev/null 2>&1; then :
4261
4262else
4263  ac_cv_header_stdc=no
4264fi
4265rm -f conftest*
4266
4267fi
4268
4269if test $ac_cv_header_stdc = yes; then
4270  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271  if test "$cross_compiling" = yes; then :
4272  :
4273else
4274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#include <ctype.h>
4277#include <stdlib.h>
4278#if ((' ' & 0x0FF) == 0x020)
4279# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281#else
4282# define ISLOWER(c) \
4283		   (('a' <= (c) && (c) <= 'i') \
4284		     || ('j' <= (c) && (c) <= 'r') \
4285		     || ('s' <= (c) && (c) <= 'z'))
4286# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4287#endif
4288
4289#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290int
4291main ()
4292{
4293  int i;
4294  for (i = 0; i < 256; i++)
4295    if (XOR (islower (i), ISLOWER (i))
4296	|| toupper (i) != TOUPPER (i))
4297      return 2;
4298  return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_run "$LINENO"; then :
4302
4303else
4304  ac_cv_header_stdc=no
4305fi
4306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4307  conftest.$ac_objext conftest.beam conftest.$ac_ext
4308fi
4309
4310fi
4311fi
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4313$as_echo "$ac_cv_header_stdc" >&6; }
4314if test $ac_cv_header_stdc = yes; then
4315
4316$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4317
4318fi
4319
4320# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322		  inttypes.h stdint.h unistd.h
4323do :
4324  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4326"
4327if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4328  cat >>confdefs.h <<_ACEOF
4329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330_ACEOF
4331
4332fi
4333
4334done
4335
4336
4337
4338
4339
4340
4341ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4342if test "x$ac_cv_have_decl___clang__" = xyes; then :
4343  CLANGCC="yes"
4344else
4345  CLANGCC="no"
4346fi
4347
4348ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4349if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4350  INTELCC="yes"
4351else
4352  INTELCC="no"
4353fi
4354
4355ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4356if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4357  SUNCC="yes"
4358else
4359  SUNCC="no"
4360fi
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4371	if test -n "$ac_tool_prefix"; then
4372  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4373set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
4376if ${ac_cv_path_PKG_CONFIG+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  case $PKG_CONFIG in
4380  [\\/]* | ?:[\\/]*)
4381  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4382  ;;
4383  *)
4384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387  IFS=$as_save_IFS
4388  test -z "$as_dir" && as_dir=.
4389    for ac_exec_ext in '' $ac_executable_extensions; do
4390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393    break 2
4394  fi
4395done
4396  done
4397IFS=$as_save_IFS
4398
4399  ;;
4400esac
4401fi
4402PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4403if test -n "$PKG_CONFIG"; then
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4405$as_echo "$PKG_CONFIG" >&6; }
4406else
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
4410
4411
4412fi
4413if test -z "$ac_cv_path_PKG_CONFIG"; then
4414  ac_pt_PKG_CONFIG=$PKG_CONFIG
4415  # Extract the first word of "pkg-config", so it can be a program name with args.
4416set dummy pkg-config; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  case $ac_pt_PKG_CONFIG in
4423  [\\/]* | ?:[\\/]*)
4424  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4425  ;;
4426  *)
4427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432    for ac_exec_ext in '' $ac_executable_extensions; do
4433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436    break 2
4437  fi
4438done
4439  done
4440IFS=$as_save_IFS
4441
4442  ;;
4443esac
4444fi
4445ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4446if test -n "$ac_pt_PKG_CONFIG"; then
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4448$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453
4454  if test "x$ac_pt_PKG_CONFIG" = x; then
4455    PKG_CONFIG=""
4456  else
4457    case $cross_compiling:$ac_tool_warned in
4458yes:)
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461ac_tool_warned=yes ;;
4462esac
4463    PKG_CONFIG=$ac_pt_PKG_CONFIG
4464  fi
4465else
4466  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4467fi
4468
4469fi
4470if test -n "$PKG_CONFIG"; then
4471	_pkg_min_version=0.9.0
4472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4473$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4474	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476$as_echo "yes" >&6; }
4477	else
4478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479$as_echo "no" >&6; }
4480		PKG_CONFIG=""
4481	fi
4482fi
4483# Make sure we can run config.sub.
4484$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4485  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4488$as_echo_n "checking build system type... " >&6; }
4489if ${ac_cv_build+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  ac_build_alias=$build_alias
4493test "x$ac_build_alias" = x &&
4494  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4495test "x$ac_build_alias" = x &&
4496  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4497ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4498  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4499
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4502$as_echo "$ac_cv_build" >&6; }
4503case $ac_cv_build in
4504*-*-*) ;;
4505*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4506esac
4507build=$ac_cv_build
4508ac_save_IFS=$IFS; IFS='-'
4509set x $ac_cv_build
4510shift
4511build_cpu=$1
4512build_vendor=$2
4513shift; shift
4514# Remember, the first character of IFS is used to create $*,
4515# except with old shells:
4516build_os=$*
4517IFS=$ac_save_IFS
4518case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4519
4520
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4522$as_echo_n "checking host system type... " >&6; }
4523if ${ac_cv_host+:} false; then :
4524  $as_echo_n "(cached) " >&6
4525else
4526  if test "x$host_alias" = x; then
4527  ac_cv_host=$ac_cv_build
4528else
4529  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4530    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4531fi
4532
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4535$as_echo "$ac_cv_host" >&6; }
4536case $ac_cv_host in
4537*-*-*) ;;
4538*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4539esac
4540host=$ac_cv_host
4541ac_save_IFS=$IFS; IFS='-'
4542set x $ac_cv_host
4543shift
4544host_cpu=$1
4545host_vendor=$2
4546shift; shift
4547# Remember, the first character of IFS is used to create $*,
4548# except with old shells:
4549host_os=$*
4550IFS=$ac_save_IFS
4551case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4552
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4555$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4556if ${ac_cv_path_SED+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4560     for ac_i in 1 2 3 4 5 6 7; do
4561       ac_script="$ac_script$as_nl$ac_script"
4562     done
4563     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4564     { ac_script=; unset ac_script;}
4565     if test -z "$SED"; then
4566  ac_path_SED_found=false
4567  # Loop through the user's path and test for each of PROGNAME-LIST
4568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573    for ac_prog in sed gsed; do
4574    for ac_exec_ext in '' $ac_executable_extensions; do
4575      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4576      as_fn_executable_p "$ac_path_SED" || continue
4577# Check for GNU ac_path_SED and select it if it is found.
4578  # Check for GNU $ac_path_SED
4579case `"$ac_path_SED" --version 2>&1` in
4580*GNU*)
4581  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4582*)
4583  ac_count=0
4584  $as_echo_n 0123456789 >"conftest.in"
4585  while :
4586  do
4587    cat "conftest.in" "conftest.in" >"conftest.tmp"
4588    mv "conftest.tmp" "conftest.in"
4589    cp "conftest.in" "conftest.nl"
4590    $as_echo '' >> "conftest.nl"
4591    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593    as_fn_arith $ac_count + 1 && ac_count=$as_val
4594    if test $ac_count -gt ${ac_path_SED_max-0}; then
4595      # Best one so far, save it but keep looking for a better one
4596      ac_cv_path_SED="$ac_path_SED"
4597      ac_path_SED_max=$ac_count
4598    fi
4599    # 10*(2^10) chars as input seems more than enough
4600    test $ac_count -gt 10 && break
4601  done
4602  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603esac
4604
4605      $ac_path_SED_found && break 3
4606    done
4607  done
4608  done
4609IFS=$as_save_IFS
4610  if test -z "$ac_cv_path_SED"; then
4611    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4612  fi
4613else
4614  ac_cv_path_SED=$SED
4615fi
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4619$as_echo "$ac_cv_path_SED" >&6; }
4620 SED="$ac_cv_path_SED"
4621  rm -f conftest.sed
4622
4623
4624
4625
4626
4627
4628# Check whether --enable-selective-werror was given.
4629if test "${enable_selective_werror+set}" = set; then :
4630  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4631else
4632  SELECTIVE_WERROR=yes
4633fi
4634
4635
4636
4637
4638
4639# -v is too short to test reliably with XORG_TESTSET_CFLAG
4640if test "x$SUNCC" = "xyes"; then
4641    BASE_CFLAGS="-v"
4642else
4643    BASE_CFLAGS=""
4644fi
4645
4646# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660xorg_testset_save_CFLAGS="$CFLAGS"
4661
4662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4667  $as_echo_n "(cached) " >&6
4668else
4669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670/* end confdefs.h.  */
4671int i;
4672_ACEOF
4673if ac_fn_c_try_compile "$LINENO"; then :
4674  xorg_cv_cc_flag_unknown_warning_option=yes
4675else
4676  xorg_cv_cc_flag_unknown_warning_option=no
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4683	CFLAGS="$xorg_testset_save_CFLAGS"
4684fi
4685
4686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4689	fi
4690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4694  $as_echo_n "(cached) " >&6
4695else
4696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h.  */
4698int i;
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"; then :
4701  xorg_cv_cc_flag_unused_command_line_argument=yes
4702else
4703  xorg_cv_cc_flag_unused_command_line_argument=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4710	CFLAGS="$xorg_testset_save_CFLAGS"
4711fi
4712
4713found="no"
4714
4715	if test $found = "no" ; then
4716		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4718		fi
4719
4720		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4722		fi
4723
4724		CFLAGS="$CFLAGS -Wall"
4725
4726		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4727$as_echo_n "checking if $CC supports -Wall... " >&6; }
4728		cacheid=xorg_cv_cc_flag__Wall
4729		if eval \${$cacheid+:} false; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734int i;
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_link "$LINENO"; then :
4744  eval $cacheid=yes
4745else
4746  eval $cacheid=no
4747fi
4748rm -f core conftest.err conftest.$ac_objext \
4749    conftest$ac_exeext conftest.$ac_ext
4750fi
4751
4752
4753		CFLAGS="$xorg_testset_save_CFLAGS"
4754
4755		eval supported=\$$cacheid
4756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4757$as_echo "$supported" >&6; }
4758		if test "$supported" = "yes" ; then
4759			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4760			found="yes"
4761		fi
4762	fi
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778xorg_testset_save_CFLAGS="$CFLAGS"
4779
4780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h.  */
4789int i;
4790_ACEOF
4791if ac_fn_c_try_compile "$LINENO"; then :
4792  xorg_cv_cc_flag_unknown_warning_option=yes
4793else
4794  xorg_cv_cc_flag_unknown_warning_option=no
4795fi
4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4800	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4801	CFLAGS="$xorg_testset_save_CFLAGS"
4802fi
4803
4804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4805	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4807	fi
4808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4812  $as_echo_n "(cached) " >&6
4813else
4814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815/* end confdefs.h.  */
4816int i;
4817_ACEOF
4818if ac_fn_c_try_compile "$LINENO"; then :
4819  xorg_cv_cc_flag_unused_command_line_argument=yes
4820else
4821  xorg_cv_cc_flag_unused_command_line_argument=no
4822fi
4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4828	CFLAGS="$xorg_testset_save_CFLAGS"
4829fi
4830
4831found="no"
4832
4833	if test $found = "no" ; then
4834		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836		fi
4837
4838		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840		fi
4841
4842		CFLAGS="$CFLAGS -Wpointer-arith"
4843
4844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4845$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4846		cacheid=xorg_cv_cc_flag__Wpointer_arith
4847		if eval \${$cacheid+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852int i;
4853int
4854main ()
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_link "$LINENO"; then :
4862  eval $cacheid=yes
4863else
4864  eval $cacheid=no
4865fi
4866rm -f core conftest.err conftest.$ac_objext \
4867    conftest$ac_exeext conftest.$ac_ext
4868fi
4869
4870
4871		CFLAGS="$xorg_testset_save_CFLAGS"
4872
4873		eval supported=\$$cacheid
4874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4875$as_echo "$supported" >&6; }
4876		if test "$supported" = "yes" ; then
4877			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4878			found="yes"
4879		fi
4880	fi
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896xorg_testset_save_CFLAGS="$CFLAGS"
4897
4898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907int i;
4908_ACEOF
4909if ac_fn_c_try_compile "$LINENO"; then :
4910  xorg_cv_cc_flag_unknown_warning_option=yes
4911else
4912  xorg_cv_cc_flag_unknown_warning_option=no
4913fi
4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4918	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4919	CFLAGS="$xorg_testset_save_CFLAGS"
4920fi
4921
4922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4923	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4924		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4925	fi
4926	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934int i;
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"; then :
4937  xorg_cv_cc_flag_unused_command_line_argument=yes
4938else
4939  xorg_cv_cc_flag_unused_command_line_argument=no
4940fi
4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4945	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4946	CFLAGS="$xorg_testset_save_CFLAGS"
4947fi
4948
4949found="no"
4950
4951	if test $found = "no" ; then
4952		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4953			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4954		fi
4955
4956		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4957			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958		fi
4959
4960		CFLAGS="$CFLAGS -Wmissing-declarations"
4961
4962		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4963$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4964		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4965		if eval \${$cacheid+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970int i;
4971int
4972main ()
4973{
4974
4975  ;
4976  return 0;
4977}
4978_ACEOF
4979if ac_fn_c_try_link "$LINENO"; then :
4980  eval $cacheid=yes
4981else
4982  eval $cacheid=no
4983fi
4984rm -f core conftest.err conftest.$ac_objext \
4985    conftest$ac_exeext conftest.$ac_ext
4986fi
4987
4988
4989		CFLAGS="$xorg_testset_save_CFLAGS"
4990
4991		eval supported=\$$cacheid
4992		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4993$as_echo "$supported" >&6; }
4994		if test "$supported" = "yes" ; then
4995			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4996			found="yes"
4997		fi
4998	fi
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014xorg_testset_save_CFLAGS="$CFLAGS"
5015
5016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025int i;
5026_ACEOF
5027if ac_fn_c_try_compile "$LINENO"; then :
5028  xorg_cv_cc_flag_unknown_warning_option=yes
5029else
5030  xorg_cv_cc_flag_unknown_warning_option=no
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033fi
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037	CFLAGS="$xorg_testset_save_CFLAGS"
5038fi
5039
5040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043	fi
5044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052int i;
5053_ACEOF
5054if ac_fn_c_try_compile "$LINENO"; then :
5055  xorg_cv_cc_flag_unused_command_line_argument=yes
5056else
5057  xorg_cv_cc_flag_unused_command_line_argument=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064	CFLAGS="$xorg_testset_save_CFLAGS"
5065fi
5066
5067found="no"
5068
5069	if test $found = "no" ; then
5070		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072		fi
5073
5074		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076		fi
5077
5078		CFLAGS="$CFLAGS -Wformat=2"
5079
5080		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5081$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5082		cacheid=xorg_cv_cc_flag__Wformat_2
5083		if eval \${$cacheid+:} false; then :
5084  $as_echo_n "(cached) " >&6
5085else
5086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088int i;
5089int
5090main ()
5091{
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_link "$LINENO"; then :
5098  eval $cacheid=yes
5099else
5100  eval $cacheid=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext \
5103    conftest$ac_exeext conftest.$ac_ext
5104fi
5105
5106
5107		CFLAGS="$xorg_testset_save_CFLAGS"
5108
5109		eval supported=\$$cacheid
5110		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111$as_echo "$supported" >&6; }
5112		if test "$supported" = "yes" ; then
5113			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5114			found="yes"
5115		fi
5116	fi
5117
5118	if test $found = "no" ; then
5119		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121		fi
5122
5123		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5125		fi
5126
5127		CFLAGS="$CFLAGS -Wformat"
5128
5129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5130$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5131		cacheid=xorg_cv_cc_flag__Wformat
5132		if eval \${$cacheid+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137int i;
5138int
5139main ()
5140{
5141
5142  ;
5143  return 0;
5144}
5145_ACEOF
5146if ac_fn_c_try_link "$LINENO"; then :
5147  eval $cacheid=yes
5148else
5149  eval $cacheid=no
5150fi
5151rm -f core conftest.err conftest.$ac_objext \
5152    conftest$ac_exeext conftest.$ac_ext
5153fi
5154
5155
5156		CFLAGS="$xorg_testset_save_CFLAGS"
5157
5158		eval supported=\$$cacheid
5159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5160$as_echo "$supported" >&6; }
5161		if test "$supported" = "yes" ; then
5162			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5163			found="yes"
5164		fi
5165	fi
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183xorg_testset_save_CFLAGS="$CFLAGS"
5184
5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194int i;
5195_ACEOF
5196if ac_fn_c_try_compile "$LINENO"; then :
5197  xorg_cv_cc_flag_unknown_warning_option=yes
5198else
5199  xorg_cv_cc_flag_unknown_warning_option=no
5200fi
5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5206	CFLAGS="$xorg_testset_save_CFLAGS"
5207fi
5208
5209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212	fi
5213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h.  */
5221int i;
5222_ACEOF
5223if ac_fn_c_try_compile "$LINENO"; then :
5224  xorg_cv_cc_flag_unused_command_line_argument=yes
5225else
5226  xorg_cv_cc_flag_unused_command_line_argument=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5233	CFLAGS="$xorg_testset_save_CFLAGS"
5234fi
5235
5236found="no"
5237
5238	if test $found = "no" ; then
5239		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241		fi
5242
5243		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245		fi
5246
5247		CFLAGS="$CFLAGS -Wstrict-prototypes"
5248
5249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5250$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5251		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5252		if eval \${$cacheid+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258int
5259main ()
5260{
5261
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_link "$LINENO"; then :
5267  eval $cacheid=yes
5268else
5269  eval $cacheid=no
5270fi
5271rm -f core conftest.err conftest.$ac_objext \
5272    conftest$ac_exeext conftest.$ac_ext
5273fi
5274
5275
5276		CFLAGS="$xorg_testset_save_CFLAGS"
5277
5278		eval supported=\$$cacheid
5279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5280$as_echo "$supported" >&6; }
5281		if test "$supported" = "yes" ; then
5282			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5283			found="yes"
5284		fi
5285	fi
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301xorg_testset_save_CFLAGS="$CFLAGS"
5302
5303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311/* end confdefs.h.  */
5312int i;
5313_ACEOF
5314if ac_fn_c_try_compile "$LINENO"; then :
5315  xorg_cv_cc_flag_unknown_warning_option=yes
5316else
5317  xorg_cv_cc_flag_unknown_warning_option=no
5318fi
5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5324	CFLAGS="$xorg_testset_save_CFLAGS"
5325fi
5326
5327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5330	fi
5331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h.  */
5339int i;
5340_ACEOF
5341if ac_fn_c_try_compile "$LINENO"; then :
5342  xorg_cv_cc_flag_unused_command_line_argument=yes
5343else
5344  xorg_cv_cc_flag_unused_command_line_argument=no
5345fi
5346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5351	CFLAGS="$xorg_testset_save_CFLAGS"
5352fi
5353
5354found="no"
5355
5356	if test $found = "no" ; then
5357		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359		fi
5360
5361		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363		fi
5364
5365		CFLAGS="$CFLAGS -Wmissing-prototypes"
5366
5367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5368$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5369		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5370		if eval \${$cacheid+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375int i;
5376int
5377main ()
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_link "$LINENO"; then :
5385  eval $cacheid=yes
5386else
5387  eval $cacheid=no
5388fi
5389rm -f core conftest.err conftest.$ac_objext \
5390    conftest$ac_exeext conftest.$ac_ext
5391fi
5392
5393
5394		CFLAGS="$xorg_testset_save_CFLAGS"
5395
5396		eval supported=\$$cacheid
5397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5398$as_echo "$supported" >&6; }
5399		if test "$supported" = "yes" ; then
5400			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5401			found="yes"
5402		fi
5403	fi
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419xorg_testset_save_CFLAGS="$CFLAGS"
5420
5421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h.  */
5430int i;
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"; then :
5433  xorg_cv_cc_flag_unknown_warning_option=yes
5434else
5435  xorg_cv_cc_flag_unknown_warning_option=no
5436fi
5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5442	CFLAGS="$xorg_testset_save_CFLAGS"
5443fi
5444
5445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448	fi
5449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457int i;
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460  xorg_cv_cc_flag_unused_command_line_argument=yes
5461else
5462  xorg_cv_cc_flag_unused_command_line_argument=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5469	CFLAGS="$xorg_testset_save_CFLAGS"
5470fi
5471
5472found="no"
5473
5474	if test $found = "no" ; then
5475		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477		fi
5478
5479		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481		fi
5482
5483		CFLAGS="$CFLAGS -Wnested-externs"
5484
5485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5486$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5487		cacheid=xorg_cv_cc_flag__Wnested_externs
5488		if eval \${$cacheid+:} false; then :
5489  $as_echo_n "(cached) " >&6
5490else
5491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493int i;
5494int
5495main ()
5496{
5497
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_link "$LINENO"; then :
5503  eval $cacheid=yes
5504else
5505  eval $cacheid=no
5506fi
5507rm -f core conftest.err conftest.$ac_objext \
5508    conftest$ac_exeext conftest.$ac_ext
5509fi
5510
5511
5512		CFLAGS="$xorg_testset_save_CFLAGS"
5513
5514		eval supported=\$$cacheid
5515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5516$as_echo "$supported" >&6; }
5517		if test "$supported" = "yes" ; then
5518			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5519			found="yes"
5520		fi
5521	fi
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537xorg_testset_save_CFLAGS="$CFLAGS"
5538
5539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5544  $as_echo_n "(cached) " >&6
5545else
5546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h.  */
5548int i;
5549_ACEOF
5550if ac_fn_c_try_compile "$LINENO"; then :
5551  xorg_cv_cc_flag_unknown_warning_option=yes
5552else
5553  xorg_cv_cc_flag_unknown_warning_option=no
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5560	CFLAGS="$xorg_testset_save_CFLAGS"
5561fi
5562
5563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566	fi
5567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574/* end confdefs.h.  */
5575int i;
5576_ACEOF
5577if ac_fn_c_try_compile "$LINENO"; then :
5578  xorg_cv_cc_flag_unused_command_line_argument=yes
5579else
5580  xorg_cv_cc_flag_unused_command_line_argument=no
5581fi
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583fi
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587	CFLAGS="$xorg_testset_save_CFLAGS"
5588fi
5589
5590found="no"
5591
5592	if test $found = "no" ; then
5593		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595		fi
5596
5597		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599		fi
5600
5601		CFLAGS="$CFLAGS -Wbad-function-cast"
5602
5603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5604$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5605		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5606		if eval \${$cacheid+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h.  */
5611int i;
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_link "$LINENO"; then :
5621  eval $cacheid=yes
5622else
5623  eval $cacheid=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext \
5626    conftest$ac_exeext conftest.$ac_ext
5627fi
5628
5629
5630		CFLAGS="$xorg_testset_save_CFLAGS"
5631
5632		eval supported=\$$cacheid
5633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5634$as_echo "$supported" >&6; }
5635		if test "$supported" = "yes" ; then
5636			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5637			found="yes"
5638		fi
5639	fi
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655xorg_testset_save_CFLAGS="$CFLAGS"
5656
5657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h.  */
5666int i;
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669  xorg_cv_cc_flag_unknown_warning_option=yes
5670else
5671  xorg_cv_cc_flag_unknown_warning_option=no
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5678	CFLAGS="$xorg_testset_save_CFLAGS"
5679fi
5680
5681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684	fi
5685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693int i;
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696  xorg_cv_cc_flag_unused_command_line_argument=yes
5697else
5698  xorg_cv_cc_flag_unused_command_line_argument=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5705	CFLAGS="$xorg_testset_save_CFLAGS"
5706fi
5707
5708found="no"
5709
5710	if test $found = "no" ; then
5711		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5713		fi
5714
5715		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717		fi
5718
5719		CFLAGS="$CFLAGS -Wold-style-definition"
5720
5721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5722$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5723		cacheid=xorg_cv_cc_flag__Wold_style_definition
5724		if eval \${$cacheid+:} false; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728/* end confdefs.h.  */
5729int i;
5730int
5731main ()
5732{
5733
5734  ;
5735  return 0;
5736}
5737_ACEOF
5738if ac_fn_c_try_link "$LINENO"; then :
5739  eval $cacheid=yes
5740else
5741  eval $cacheid=no
5742fi
5743rm -f core conftest.err conftest.$ac_objext \
5744    conftest$ac_exeext conftest.$ac_ext
5745fi
5746
5747
5748		CFLAGS="$xorg_testset_save_CFLAGS"
5749
5750		eval supported=\$$cacheid
5751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5752$as_echo "$supported" >&6; }
5753		if test "$supported" = "yes" ; then
5754			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5755			found="yes"
5756		fi
5757	fi
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773xorg_testset_save_CFLAGS="$CFLAGS"
5774
5775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783/* end confdefs.h.  */
5784int i;
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787  xorg_cv_cc_flag_unknown_warning_option=yes
5788else
5789  xorg_cv_cc_flag_unknown_warning_option=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796	CFLAGS="$xorg_testset_save_CFLAGS"
5797fi
5798
5799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802	fi
5803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h.  */
5811int i;
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"; then :
5814  xorg_cv_cc_flag_unused_command_line_argument=yes
5815else
5816  xorg_cv_cc_flag_unused_command_line_argument=no
5817fi
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819fi
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5823	CFLAGS="$xorg_testset_save_CFLAGS"
5824fi
5825
5826found="no"
5827
5828	if test $found = "no" ; then
5829		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831		fi
5832
5833		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835		fi
5836
5837		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5838
5839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5840$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5841		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5842		if eval \${$cacheid+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846/* end confdefs.h.  */
5847int i;
5848int
5849main ()
5850{
5851
5852  ;
5853  return 0;
5854}
5855_ACEOF
5856if ac_fn_c_try_link "$LINENO"; then :
5857  eval $cacheid=yes
5858else
5859  eval $cacheid=no
5860fi
5861rm -f core conftest.err conftest.$ac_objext \
5862    conftest$ac_exeext conftest.$ac_ext
5863fi
5864
5865
5866		CFLAGS="$xorg_testset_save_CFLAGS"
5867
5868		eval supported=\$$cacheid
5869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5870$as_echo "$supported" >&6; }
5871		if test "$supported" = "yes" ; then
5872			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5873			found="yes"
5874		fi
5875	fi
5876
5877
5878
5879
5880
5881# This chunk adds additional warnings that could catch undesired effects.
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895xorg_testset_save_CFLAGS="$CFLAGS"
5896
5897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h.  */
5906int i;
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909  xorg_cv_cc_flag_unknown_warning_option=yes
5910else
5911  xorg_cv_cc_flag_unknown_warning_option=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5924	fi
5925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933int i;
5934_ACEOF
5935if ac_fn_c_try_compile "$LINENO"; then :
5936  xorg_cv_cc_flag_unused_command_line_argument=yes
5937else
5938  xorg_cv_cc_flag_unused_command_line_argument=no
5939fi
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5945	CFLAGS="$xorg_testset_save_CFLAGS"
5946fi
5947
5948found="no"
5949
5950	if test $found = "no" ; then
5951		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5953		fi
5954
5955		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5957		fi
5958
5959		CFLAGS="$CFLAGS -Wunused"
5960
5961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5962$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5963		cacheid=xorg_cv_cc_flag__Wunused
5964		if eval \${$cacheid+:} false; then :
5965  $as_echo_n "(cached) " >&6
5966else
5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969int i;
5970int
5971main ()
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"; then :
5979  eval $cacheid=yes
5980else
5981  eval $cacheid=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext \
5984    conftest$ac_exeext conftest.$ac_ext
5985fi
5986
5987
5988		CFLAGS="$xorg_testset_save_CFLAGS"
5989
5990		eval supported=\$$cacheid
5991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5992$as_echo "$supported" >&6; }
5993		if test "$supported" = "yes" ; then
5994			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5995			found="yes"
5996		fi
5997	fi
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013xorg_testset_save_CFLAGS="$CFLAGS"
6014
6015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h.  */
6024int i;
6025_ACEOF
6026if ac_fn_c_try_compile "$LINENO"; then :
6027  xorg_cv_cc_flag_unknown_warning_option=yes
6028else
6029  xorg_cv_cc_flag_unknown_warning_option=no
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6036	CFLAGS="$xorg_testset_save_CFLAGS"
6037fi
6038
6039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042	fi
6043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054  xorg_cv_cc_flag_unused_command_line_argument=yes
6055else
6056  xorg_cv_cc_flag_unused_command_line_argument=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6063	CFLAGS="$xorg_testset_save_CFLAGS"
6064fi
6065
6066found="no"
6067
6068	if test $found = "no" ; then
6069		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071		fi
6072
6073		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075		fi
6076
6077		CFLAGS="$CFLAGS -Wuninitialized"
6078
6079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6080$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6081		cacheid=xorg_cv_cc_flag__Wuninitialized
6082		if eval \${$cacheid+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h.  */
6087int i;
6088int
6089main ()
6090{
6091
6092  ;
6093  return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_link "$LINENO"; then :
6097  eval $cacheid=yes
6098else
6099  eval $cacheid=no
6100fi
6101rm -f core conftest.err conftest.$ac_objext \
6102    conftest$ac_exeext conftest.$ac_ext
6103fi
6104
6105
6106		CFLAGS="$xorg_testset_save_CFLAGS"
6107
6108		eval supported=\$$cacheid
6109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6110$as_echo "$supported" >&6; }
6111		if test "$supported" = "yes" ; then
6112			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6113			found="yes"
6114		fi
6115	fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131xorg_testset_save_CFLAGS="$CFLAGS"
6132
6133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143_ACEOF
6144if ac_fn_c_try_compile "$LINENO"; then :
6145  xorg_cv_cc_flag_unknown_warning_option=yes
6146else
6147  xorg_cv_cc_flag_unknown_warning_option=no
6148fi
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6154	CFLAGS="$xorg_testset_save_CFLAGS"
6155fi
6156
6157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160	fi
6161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170_ACEOF
6171if ac_fn_c_try_compile "$LINENO"; then :
6172  xorg_cv_cc_flag_unused_command_line_argument=yes
6173else
6174  xorg_cv_cc_flag_unused_command_line_argument=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6181	CFLAGS="$xorg_testset_save_CFLAGS"
6182fi
6183
6184found="no"
6185
6186	if test $found = "no" ; then
6187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189		fi
6190
6191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6193		fi
6194
6195		CFLAGS="$CFLAGS -Wshadow"
6196
6197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6198$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6199		cacheid=xorg_cv_cc_flag__Wshadow
6200		if eval \${$cacheid+:} false; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205int i;
6206int
6207main ()
6208{
6209
6210  ;
6211  return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_link "$LINENO"; then :
6215  eval $cacheid=yes
6216else
6217  eval $cacheid=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext \
6220    conftest$ac_exeext conftest.$ac_ext
6221fi
6222
6223
6224		CFLAGS="$xorg_testset_save_CFLAGS"
6225
6226		eval supported=\$$cacheid
6227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6228$as_echo "$supported" >&6; }
6229		if test "$supported" = "yes" ; then
6230			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6231			found="yes"
6232		fi
6233	fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249xorg_testset_save_CFLAGS="$CFLAGS"
6250
6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260int i;
6261_ACEOF
6262if ac_fn_c_try_compile "$LINENO"; then :
6263  xorg_cv_cc_flag_unknown_warning_option=yes
6264else
6265  xorg_cv_cc_flag_unknown_warning_option=no
6266fi
6267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6272	CFLAGS="$xorg_testset_save_CFLAGS"
6273fi
6274
6275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278	fi
6279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287int i;
6288_ACEOF
6289if ac_fn_c_try_compile "$LINENO"; then :
6290  xorg_cv_cc_flag_unused_command_line_argument=yes
6291else
6292  xorg_cv_cc_flag_unused_command_line_argument=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6299	CFLAGS="$xorg_testset_save_CFLAGS"
6300fi
6301
6302found="no"
6303
6304	if test $found = "no" ; then
6305		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6307		fi
6308
6309		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6311		fi
6312
6313		CFLAGS="$CFLAGS -Wcast-qual"
6314
6315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6316$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6317		cacheid=xorg_cv_cc_flag__Wcast_qual
6318		if eval \${$cacheid+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323int i;
6324int
6325main ()
6326{
6327
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_link "$LINENO"; then :
6333  eval $cacheid=yes
6334else
6335  eval $cacheid=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext \
6338    conftest$ac_exeext conftest.$ac_ext
6339fi
6340
6341
6342		CFLAGS="$xorg_testset_save_CFLAGS"
6343
6344		eval supported=\$$cacheid
6345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6346$as_echo "$supported" >&6; }
6347		if test "$supported" = "yes" ; then
6348			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6349			found="yes"
6350		fi
6351	fi
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367xorg_testset_save_CFLAGS="$CFLAGS"
6368
6369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h.  */
6378int i;
6379_ACEOF
6380if ac_fn_c_try_compile "$LINENO"; then :
6381  xorg_cv_cc_flag_unknown_warning_option=yes
6382else
6383  xorg_cv_cc_flag_unknown_warning_option=no
6384fi
6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386fi
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6390	CFLAGS="$xorg_testset_save_CFLAGS"
6391fi
6392
6393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396	fi
6397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h.  */
6405int i;
6406_ACEOF
6407if ac_fn_c_try_compile "$LINENO"; then :
6408  xorg_cv_cc_flag_unused_command_line_argument=yes
6409else
6410  xorg_cv_cc_flag_unused_command_line_argument=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6417	CFLAGS="$xorg_testset_save_CFLAGS"
6418fi
6419
6420found="no"
6421
6422	if test $found = "no" ; then
6423		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425		fi
6426
6427		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429		fi
6430
6431		CFLAGS="$CFLAGS -Wmissing-noreturn"
6432
6433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6434$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6435		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6436		if eval \${$cacheid+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441int i;
6442int
6443main ()
6444{
6445
6446  ;
6447  return 0;
6448}
6449_ACEOF
6450if ac_fn_c_try_link "$LINENO"; then :
6451  eval $cacheid=yes
6452else
6453  eval $cacheid=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456    conftest$ac_exeext conftest.$ac_ext
6457fi
6458
6459
6460		CFLAGS="$xorg_testset_save_CFLAGS"
6461
6462		eval supported=\$$cacheid
6463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464$as_echo "$supported" >&6; }
6465		if test "$supported" = "yes" ; then
6466			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6467			found="yes"
6468		fi
6469	fi
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485xorg_testset_save_CFLAGS="$CFLAGS"
6486
6487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496int i;
6497_ACEOF
6498if ac_fn_c_try_compile "$LINENO"; then :
6499  xorg_cv_cc_flag_unknown_warning_option=yes
6500else
6501  xorg_cv_cc_flag_unknown_warning_option=no
6502fi
6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6508	CFLAGS="$xorg_testset_save_CFLAGS"
6509fi
6510
6511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514	fi
6515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h.  */
6523int i;
6524_ACEOF
6525if ac_fn_c_try_compile "$LINENO"; then :
6526  xorg_cv_cc_flag_unused_command_line_argument=yes
6527else
6528  xorg_cv_cc_flag_unused_command_line_argument=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6535	CFLAGS="$xorg_testset_save_CFLAGS"
6536fi
6537
6538found="no"
6539
6540	if test $found = "no" ; then
6541		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6543		fi
6544
6545		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6547		fi
6548
6549		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6550
6551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6552$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6553		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6554		if eval \${$cacheid+:} false; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559int i;
6560int
6561main ()
6562{
6563
6564  ;
6565  return 0;
6566}
6567_ACEOF
6568if ac_fn_c_try_link "$LINENO"; then :
6569  eval $cacheid=yes
6570else
6571  eval $cacheid=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext \
6574    conftest$ac_exeext conftest.$ac_ext
6575fi
6576
6577
6578		CFLAGS="$xorg_testset_save_CFLAGS"
6579
6580		eval supported=\$$cacheid
6581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6582$as_echo "$supported" >&6; }
6583		if test "$supported" = "yes" ; then
6584			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6585			found="yes"
6586		fi
6587	fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603xorg_testset_save_CFLAGS="$CFLAGS"
6604
6605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614int i;
6615_ACEOF
6616if ac_fn_c_try_compile "$LINENO"; then :
6617  xorg_cv_cc_flag_unknown_warning_option=yes
6618else
6619  xorg_cv_cc_flag_unknown_warning_option=no
6620fi
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622fi
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6626	CFLAGS="$xorg_testset_save_CFLAGS"
6627fi
6628
6629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632	fi
6633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641int i;
6642_ACEOF
6643if ac_fn_c_try_compile "$LINENO"; then :
6644  xorg_cv_cc_flag_unused_command_line_argument=yes
6645else
6646  xorg_cv_cc_flag_unused_command_line_argument=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6653	CFLAGS="$xorg_testset_save_CFLAGS"
6654fi
6655
6656found="no"
6657
6658	if test $found = "no" ; then
6659		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661		fi
6662
6663		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6665		fi
6666
6667		CFLAGS="$CFLAGS -Wredundant-decls"
6668
6669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6670$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6671		cacheid=xorg_cv_cc_flag__Wredundant_decls
6672		if eval \${$cacheid+:} false; then :
6673  $as_echo_n "(cached) " >&6
6674else
6675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h.  */
6677int i;
6678int
6679main ()
6680{
6681
6682  ;
6683  return 0;
6684}
6685_ACEOF
6686if ac_fn_c_try_link "$LINENO"; then :
6687  eval $cacheid=yes
6688else
6689  eval $cacheid=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext \
6692    conftest$ac_exeext conftest.$ac_ext
6693fi
6694
6695
6696		CFLAGS="$xorg_testset_save_CFLAGS"
6697
6698		eval supported=\$$cacheid
6699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6700$as_echo "$supported" >&6; }
6701		if test "$supported" = "yes" ; then
6702			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6703			found="yes"
6704		fi
6705	fi
6706
6707
6708
6709# These are currently disabled because they are noisy.  They will be enabled
6710# in the future once the codebase is sufficiently modernized to silence
6711# them.  For now, I don't want them to drown out the other warnings.
6712# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6713# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6714# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6715
6716# Turn some warnings into errors, so we don't accidently get successful builds
6717# when there are problems that should be fixed.
6718
6719if test "x$SELECTIVE_WERROR" = "xyes" ; then
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733xorg_testset_save_CFLAGS="$CFLAGS"
6734
6735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745_ACEOF
6746if ac_fn_c_try_compile "$LINENO"; then :
6747  xorg_cv_cc_flag_unknown_warning_option=yes
6748else
6749  xorg_cv_cc_flag_unknown_warning_option=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752fi
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6756	CFLAGS="$xorg_testset_save_CFLAGS"
6757fi
6758
6759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6762	fi
6763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771int i;
6772_ACEOF
6773if ac_fn_c_try_compile "$LINENO"; then :
6774  xorg_cv_cc_flag_unused_command_line_argument=yes
6775else
6776  xorg_cv_cc_flag_unused_command_line_argument=no
6777fi
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6783	CFLAGS="$xorg_testset_save_CFLAGS"
6784fi
6785
6786found="no"
6787
6788	if test $found = "no" ; then
6789		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791		fi
6792
6793		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795		fi
6796
6797		CFLAGS="$CFLAGS -Werror=implicit"
6798
6799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6800$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6801		cacheid=xorg_cv_cc_flag__Werror_implicit
6802		if eval \${$cacheid+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816if ac_fn_c_try_link "$LINENO"; then :
6817  eval $cacheid=yes
6818else
6819  eval $cacheid=no
6820fi
6821rm -f core conftest.err conftest.$ac_objext \
6822    conftest$ac_exeext conftest.$ac_ext
6823fi
6824
6825
6826		CFLAGS="$xorg_testset_save_CFLAGS"
6827
6828		eval supported=\$$cacheid
6829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6830$as_echo "$supported" >&6; }
6831		if test "$supported" = "yes" ; then
6832			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6833			found="yes"
6834		fi
6835	fi
6836
6837	if test $found = "no" ; then
6838		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840		fi
6841
6842		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6844		fi
6845
6846		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6847
6848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6849$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6850		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6851		if eval \${$cacheid+:} false; then :
6852  $as_echo_n "(cached) " >&6
6853else
6854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h.  */
6856int i;
6857int
6858main ()
6859{
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_link "$LINENO"; then :
6866  eval $cacheid=yes
6867else
6868  eval $cacheid=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext \
6871    conftest$ac_exeext conftest.$ac_ext
6872fi
6873
6874
6875		CFLAGS="$xorg_testset_save_CFLAGS"
6876
6877		eval supported=\$$cacheid
6878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6879$as_echo "$supported" >&6; }
6880		if test "$supported" = "yes" ; then
6881			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6882			found="yes"
6883		fi
6884	fi
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900xorg_testset_save_CFLAGS="$CFLAGS"
6901
6902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911int i;
6912_ACEOF
6913if ac_fn_c_try_compile "$LINENO"; then :
6914  xorg_cv_cc_flag_unknown_warning_option=yes
6915else
6916  xorg_cv_cc_flag_unknown_warning_option=no
6917fi
6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919fi
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6923	CFLAGS="$xorg_testset_save_CFLAGS"
6924fi
6925
6926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6929	fi
6930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939_ACEOF
6940if ac_fn_c_try_compile "$LINENO"; then :
6941  xorg_cv_cc_flag_unused_command_line_argument=yes
6942else
6943  xorg_cv_cc_flag_unused_command_line_argument=no
6944fi
6945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946fi
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6950	CFLAGS="$xorg_testset_save_CFLAGS"
6951fi
6952
6953found="no"
6954
6955	if test $found = "no" ; then
6956		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6958		fi
6959
6960		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962		fi
6963
6964		CFLAGS="$CFLAGS -Werror=nonnull"
6965
6966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6967$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6968		cacheid=xorg_cv_cc_flag__Werror_nonnull
6969		if eval \${$cacheid+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975int
6976main ()
6977{
6978
6979  ;
6980  return 0;
6981}
6982_ACEOF
6983if ac_fn_c_try_link "$LINENO"; then :
6984  eval $cacheid=yes
6985else
6986  eval $cacheid=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext \
6989    conftest$ac_exeext conftest.$ac_ext
6990fi
6991
6992
6993		CFLAGS="$xorg_testset_save_CFLAGS"
6994
6995		eval supported=\$$cacheid
6996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6997$as_echo "$supported" >&6; }
6998		if test "$supported" = "yes" ; then
6999			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7000			found="yes"
7001		fi
7002	fi
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018xorg_testset_save_CFLAGS="$CFLAGS"
7019
7020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h.  */
7029int i;
7030_ACEOF
7031if ac_fn_c_try_compile "$LINENO"; then :
7032  xorg_cv_cc_flag_unknown_warning_option=yes
7033else
7034  xorg_cv_cc_flag_unknown_warning_option=no
7035fi
7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7041	CFLAGS="$xorg_testset_save_CFLAGS"
7042fi
7043
7044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047	fi
7048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056int i;
7057_ACEOF
7058if ac_fn_c_try_compile "$LINENO"; then :
7059  xorg_cv_cc_flag_unused_command_line_argument=yes
7060else
7061  xorg_cv_cc_flag_unused_command_line_argument=no
7062fi
7063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064fi
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7068	CFLAGS="$xorg_testset_save_CFLAGS"
7069fi
7070
7071found="no"
7072
7073	if test $found = "no" ; then
7074		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076		fi
7077
7078		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080		fi
7081
7082		CFLAGS="$CFLAGS -Werror=init-self"
7083
7084		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7085$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7086		cacheid=xorg_cv_cc_flag__Werror_init_self
7087		if eval \${$cacheid+:} false; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092int i;
7093int
7094main ()
7095{
7096
7097  ;
7098  return 0;
7099}
7100_ACEOF
7101if ac_fn_c_try_link "$LINENO"; then :
7102  eval $cacheid=yes
7103else
7104  eval $cacheid=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext \
7107    conftest$ac_exeext conftest.$ac_ext
7108fi
7109
7110
7111		CFLAGS="$xorg_testset_save_CFLAGS"
7112
7113		eval supported=\$$cacheid
7114		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7115$as_echo "$supported" >&6; }
7116		if test "$supported" = "yes" ; then
7117			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7118			found="yes"
7119		fi
7120	fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136xorg_testset_save_CFLAGS="$CFLAGS"
7137
7138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147int i;
7148_ACEOF
7149if ac_fn_c_try_compile "$LINENO"; then :
7150  xorg_cv_cc_flag_unknown_warning_option=yes
7151else
7152  xorg_cv_cc_flag_unknown_warning_option=no
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7159	CFLAGS="$xorg_testset_save_CFLAGS"
7160fi
7161
7162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7165	fi
7166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h.  */
7174int i;
7175_ACEOF
7176if ac_fn_c_try_compile "$LINENO"; then :
7177  xorg_cv_cc_flag_unused_command_line_argument=yes
7178else
7179  xorg_cv_cc_flag_unused_command_line_argument=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7186	CFLAGS="$xorg_testset_save_CFLAGS"
7187fi
7188
7189found="no"
7190
7191	if test $found = "no" ; then
7192		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7194		fi
7195
7196		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7198		fi
7199
7200		CFLAGS="$CFLAGS -Werror=main"
7201
7202		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7203$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7204		cacheid=xorg_cv_cc_flag__Werror_main
7205		if eval \${$cacheid+:} false; then :
7206  $as_echo_n "(cached) " >&6
7207else
7208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h.  */
7210int i;
7211int
7212main ()
7213{
7214
7215  ;
7216  return 0;
7217}
7218_ACEOF
7219if ac_fn_c_try_link "$LINENO"; then :
7220  eval $cacheid=yes
7221else
7222  eval $cacheid=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext \
7225    conftest$ac_exeext conftest.$ac_ext
7226fi
7227
7228
7229		CFLAGS="$xorg_testset_save_CFLAGS"
7230
7231		eval supported=\$$cacheid
7232		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7233$as_echo "$supported" >&6; }
7234		if test "$supported" = "yes" ; then
7235			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7236			found="yes"
7237		fi
7238	fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254xorg_testset_save_CFLAGS="$CFLAGS"
7255
7256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264/* end confdefs.h.  */
7265int i;
7266_ACEOF
7267if ac_fn_c_try_compile "$LINENO"; then :
7268  xorg_cv_cc_flag_unknown_warning_option=yes
7269else
7270  xorg_cv_cc_flag_unknown_warning_option=no
7271fi
7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273fi
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7277	CFLAGS="$xorg_testset_save_CFLAGS"
7278fi
7279
7280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7283	fi
7284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h.  */
7292int i;
7293_ACEOF
7294if ac_fn_c_try_compile "$LINENO"; then :
7295  xorg_cv_cc_flag_unused_command_line_argument=yes
7296else
7297  xorg_cv_cc_flag_unused_command_line_argument=no
7298fi
7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300fi
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7304	CFLAGS="$xorg_testset_save_CFLAGS"
7305fi
7306
7307found="no"
7308
7309	if test $found = "no" ; then
7310		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312		fi
7313
7314		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7316		fi
7317
7318		CFLAGS="$CFLAGS -Werror=missing-braces"
7319
7320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7321$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7322		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7323		if eval \${$cacheid+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328int i;
7329int
7330main ()
7331{
7332
7333  ;
7334  return 0;
7335}
7336_ACEOF
7337if ac_fn_c_try_link "$LINENO"; then :
7338  eval $cacheid=yes
7339else
7340  eval $cacheid=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext \
7343    conftest$ac_exeext conftest.$ac_ext
7344fi
7345
7346
7347		CFLAGS="$xorg_testset_save_CFLAGS"
7348
7349		eval supported=\$$cacheid
7350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7351$as_echo "$supported" >&6; }
7352		if test "$supported" = "yes" ; then
7353			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7354			found="yes"
7355		fi
7356	fi
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372xorg_testset_save_CFLAGS="$CFLAGS"
7373
7374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7379  $as_echo_n "(cached) " >&6
7380else
7381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383int i;
7384_ACEOF
7385if ac_fn_c_try_compile "$LINENO"; then :
7386  xorg_cv_cc_flag_unknown_warning_option=yes
7387else
7388  xorg_cv_cc_flag_unknown_warning_option=no
7389fi
7390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395	CFLAGS="$xorg_testset_save_CFLAGS"
7396fi
7397
7398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401	fi
7402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411_ACEOF
7412if ac_fn_c_try_compile "$LINENO"; then :
7413  xorg_cv_cc_flag_unused_command_line_argument=yes
7414else
7415  xorg_cv_cc_flag_unused_command_line_argument=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425found="no"
7426
7427	if test $found = "no" ; then
7428		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430		fi
7431
7432		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7434		fi
7435
7436		CFLAGS="$CFLAGS -Werror=sequence-point"
7437
7438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7439$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7440		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7441		if eval \${$cacheid+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446int i;
7447int
7448main ()
7449{
7450
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_link "$LINENO"; then :
7456  eval $cacheid=yes
7457else
7458  eval $cacheid=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext \
7461    conftest$ac_exeext conftest.$ac_ext
7462fi
7463
7464
7465		CFLAGS="$xorg_testset_save_CFLAGS"
7466
7467		eval supported=\$$cacheid
7468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469$as_echo "$supported" >&6; }
7470		if test "$supported" = "yes" ; then
7471			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7472			found="yes"
7473		fi
7474	fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490xorg_testset_save_CFLAGS="$CFLAGS"
7491
7492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h.  */
7501int i;
7502_ACEOF
7503if ac_fn_c_try_compile "$LINENO"; then :
7504  xorg_cv_cc_flag_unknown_warning_option=yes
7505else
7506  xorg_cv_cc_flag_unknown_warning_option=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7513	CFLAGS="$xorg_testset_save_CFLAGS"
7514fi
7515
7516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519	fi
7520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h.  */
7528int i;
7529_ACEOF
7530if ac_fn_c_try_compile "$LINENO"; then :
7531  xorg_cv_cc_flag_unused_command_line_argument=yes
7532else
7533  xorg_cv_cc_flag_unused_command_line_argument=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536fi
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7540	CFLAGS="$xorg_testset_save_CFLAGS"
7541fi
7542
7543found="no"
7544
7545	if test $found = "no" ; then
7546		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548		fi
7549
7550		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7552		fi
7553
7554		CFLAGS="$CFLAGS -Werror=return-type"
7555
7556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7557$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7558		cacheid=xorg_cv_cc_flag__Werror_return_type
7559		if eval \${$cacheid+:} false; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564int i;
7565int
7566main ()
7567{
7568
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573if ac_fn_c_try_link "$LINENO"; then :
7574  eval $cacheid=yes
7575else
7576  eval $cacheid=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext \
7579    conftest$ac_exeext conftest.$ac_ext
7580fi
7581
7582
7583		CFLAGS="$xorg_testset_save_CFLAGS"
7584
7585		eval supported=\$$cacheid
7586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7587$as_echo "$supported" >&6; }
7588		if test "$supported" = "yes" ; then
7589			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7590			found="yes"
7591		fi
7592	fi
7593
7594	if test $found = "no" ; then
7595		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597		fi
7598
7599		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601		fi
7602
7603		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7604
7605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7606$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7607		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7608		if eval \${$cacheid+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613int i;
7614int
7615main ()
7616{
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622if ac_fn_c_try_link "$LINENO"; then :
7623  eval $cacheid=yes
7624else
7625  eval $cacheid=no
7626fi
7627rm -f core conftest.err conftest.$ac_objext \
7628    conftest$ac_exeext conftest.$ac_ext
7629fi
7630
7631
7632		CFLAGS="$xorg_testset_save_CFLAGS"
7633
7634		eval supported=\$$cacheid
7635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7636$as_echo "$supported" >&6; }
7637		if test "$supported" = "yes" ; then
7638			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7639			found="yes"
7640		fi
7641	fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657xorg_testset_save_CFLAGS="$CFLAGS"
7658
7659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h.  */
7668int i;
7669_ACEOF
7670if ac_fn_c_try_compile "$LINENO"; then :
7671  xorg_cv_cc_flag_unknown_warning_option=yes
7672else
7673  xorg_cv_cc_flag_unknown_warning_option=no
7674fi
7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676fi
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7680	CFLAGS="$xorg_testset_save_CFLAGS"
7681fi
7682
7683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7686	fi
7687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695int i;
7696_ACEOF
7697if ac_fn_c_try_compile "$LINENO"; then :
7698  xorg_cv_cc_flag_unused_command_line_argument=yes
7699else
7700  xorg_cv_cc_flag_unused_command_line_argument=no
7701fi
7702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703fi
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7707	CFLAGS="$xorg_testset_save_CFLAGS"
7708fi
7709
7710found="no"
7711
7712	if test $found = "no" ; then
7713		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7715		fi
7716
7717		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719		fi
7720
7721		CFLAGS="$CFLAGS -Werror=trigraphs"
7722
7723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7724$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7725		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7726		if eval \${$cacheid+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h.  */
7731int i;
7732int
7733main ()
7734{
7735
7736  ;
7737  return 0;
7738}
7739_ACEOF
7740if ac_fn_c_try_link "$LINENO"; then :
7741  eval $cacheid=yes
7742else
7743  eval $cacheid=no
7744fi
7745rm -f core conftest.err conftest.$ac_objext \
7746    conftest$ac_exeext conftest.$ac_ext
7747fi
7748
7749
7750		CFLAGS="$xorg_testset_save_CFLAGS"
7751
7752		eval supported=\$$cacheid
7753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7754$as_echo "$supported" >&6; }
7755		if test "$supported" = "yes" ; then
7756			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7757			found="yes"
7758		fi
7759	fi
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775xorg_testset_save_CFLAGS="$CFLAGS"
7776
7777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7782  $as_echo_n "(cached) " >&6
7783else
7784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h.  */
7786int i;
7787_ACEOF
7788if ac_fn_c_try_compile "$LINENO"; then :
7789  xorg_cv_cc_flag_unknown_warning_option=yes
7790else
7791  xorg_cv_cc_flag_unknown_warning_option=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794fi
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7798	CFLAGS="$xorg_testset_save_CFLAGS"
7799fi
7800
7801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804	fi
7805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813int i;
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"; then :
7816  xorg_cv_cc_flag_unused_command_line_argument=yes
7817else
7818  xorg_cv_cc_flag_unused_command_line_argument=no
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7825	CFLAGS="$xorg_testset_save_CFLAGS"
7826fi
7827
7828found="no"
7829
7830	if test $found = "no" ; then
7831		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833		fi
7834
7835		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837		fi
7838
7839		CFLAGS="$CFLAGS -Werror=array-bounds"
7840
7841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7842$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7843		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7844		if eval \${$cacheid+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849int i;
7850int
7851main ()
7852{
7853
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858if ac_fn_c_try_link "$LINENO"; then :
7859  eval $cacheid=yes
7860else
7861  eval $cacheid=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext \
7864    conftest$ac_exeext conftest.$ac_ext
7865fi
7866
7867
7868		CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870		eval supported=\$$cacheid
7871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872$as_echo "$supported" >&6; }
7873		if test "$supported" = "yes" ; then
7874			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7875			found="yes"
7876		fi
7877	fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7900  $as_echo_n "(cached) " >&6
7901else
7902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h.  */
7904int i;
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"; then :
7907  xorg_cv_cc_flag_unknown_warning_option=yes
7908else
7909  xorg_cv_cc_flag_unknown_warning_option=no
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7916	CFLAGS="$xorg_testset_save_CFLAGS"
7917fi
7918
7919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7922	fi
7923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h.  */
7931int i;
7932_ACEOF
7933if ac_fn_c_try_compile "$LINENO"; then :
7934  xorg_cv_cc_flag_unused_command_line_argument=yes
7935else
7936  xorg_cv_cc_flag_unused_command_line_argument=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7943	CFLAGS="$xorg_testset_save_CFLAGS"
7944fi
7945
7946found="no"
7947
7948	if test $found = "no" ; then
7949		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951		fi
7952
7953		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7955		fi
7956
7957		CFLAGS="$CFLAGS -Werror=write-strings"
7958
7959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7960$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7961		cacheid=xorg_cv_cc_flag__Werror_write_strings
7962		if eval \${$cacheid+:} false; then :
7963  $as_echo_n "(cached) " >&6
7964else
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967int i;
7968int
7969main ()
7970{
7971
7972  ;
7973  return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_link "$LINENO"; then :
7977  eval $cacheid=yes
7978else
7979  eval $cacheid=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext \
7982    conftest$ac_exeext conftest.$ac_ext
7983fi
7984
7985
7986		CFLAGS="$xorg_testset_save_CFLAGS"
7987
7988		eval supported=\$$cacheid
7989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7990$as_echo "$supported" >&6; }
7991		if test "$supported" = "yes" ; then
7992			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7993			found="yes"
7994		fi
7995	fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011xorg_testset_save_CFLAGS="$CFLAGS"
8012
8013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022int i;
8023_ACEOF
8024if ac_fn_c_try_compile "$LINENO"; then :
8025  xorg_cv_cc_flag_unknown_warning_option=yes
8026else
8027  xorg_cv_cc_flag_unknown_warning_option=no
8028fi
8029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8034	CFLAGS="$xorg_testset_save_CFLAGS"
8035fi
8036
8037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040	fi
8041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h.  */
8049int i;
8050_ACEOF
8051if ac_fn_c_try_compile "$LINENO"; then :
8052  xorg_cv_cc_flag_unused_command_line_argument=yes
8053else
8054  xorg_cv_cc_flag_unused_command_line_argument=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057fi
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8061	CFLAGS="$xorg_testset_save_CFLAGS"
8062fi
8063
8064found="no"
8065
8066	if test $found = "no" ; then
8067		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069		fi
8070
8071		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8073		fi
8074
8075		CFLAGS="$CFLAGS -Werror=address"
8076
8077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8078$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8079		cacheid=xorg_cv_cc_flag__Werror_address
8080		if eval \${$cacheid+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085int i;
8086int
8087main ()
8088{
8089
8090  ;
8091  return 0;
8092}
8093_ACEOF
8094if ac_fn_c_try_link "$LINENO"; then :
8095  eval $cacheid=yes
8096else
8097  eval $cacheid=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext \
8100    conftest$ac_exeext conftest.$ac_ext
8101fi
8102
8103
8104		CFLAGS="$xorg_testset_save_CFLAGS"
8105
8106		eval supported=\$$cacheid
8107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8108$as_echo "$supported" >&6; }
8109		if test "$supported" = "yes" ; then
8110			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8111			found="yes"
8112		fi
8113	fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129xorg_testset_save_CFLAGS="$CFLAGS"
8130
8131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8136  $as_echo_n "(cached) " >&6
8137else
8138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139/* end confdefs.h.  */
8140int i;
8141_ACEOF
8142if ac_fn_c_try_compile "$LINENO"; then :
8143  xorg_cv_cc_flag_unknown_warning_option=yes
8144else
8145  xorg_cv_cc_flag_unknown_warning_option=no
8146fi
8147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148fi
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8152	CFLAGS="$xorg_testset_save_CFLAGS"
8153fi
8154
8155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8158	fi
8159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8163  $as_echo_n "(cached) " >&6
8164else
8165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h.  */
8167int i;
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"; then :
8170  xorg_cv_cc_flag_unused_command_line_argument=yes
8171else
8172  xorg_cv_cc_flag_unused_command_line_argument=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8179	CFLAGS="$xorg_testset_save_CFLAGS"
8180fi
8181
8182found="no"
8183
8184	if test $found = "no" ; then
8185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187		fi
8188
8189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191		fi
8192
8193		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8194
8195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8196$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8197		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8198		if eval \${$cacheid+:} false; then :
8199  $as_echo_n "(cached) " >&6
8200else
8201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202/* end confdefs.h.  */
8203int i;
8204int
8205main ()
8206{
8207
8208  ;
8209  return 0;
8210}
8211_ACEOF
8212if ac_fn_c_try_link "$LINENO"; then :
8213  eval $cacheid=yes
8214else
8215  eval $cacheid=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext \
8218    conftest$ac_exeext conftest.$ac_ext
8219fi
8220
8221
8222		CFLAGS="$xorg_testset_save_CFLAGS"
8223
8224		eval supported=\$$cacheid
8225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8226$as_echo "$supported" >&6; }
8227		if test "$supported" = "yes" ; then
8228			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8229			found="yes"
8230		fi
8231	fi
8232
8233	if test $found = "no" ; then
8234		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236		fi
8237
8238		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240		fi
8241
8242		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8243
8244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8245$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8246		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8247		if eval \${$cacheid+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252int i;
8253int
8254main ()
8255{
8256
8257  ;
8258  return 0;
8259}
8260_ACEOF
8261if ac_fn_c_try_link "$LINENO"; then :
8262  eval $cacheid=yes
8263else
8264  eval $cacheid=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext \
8267    conftest$ac_exeext conftest.$ac_ext
8268fi
8269
8270
8271		CFLAGS="$xorg_testset_save_CFLAGS"
8272
8273		eval supported=\$$cacheid
8274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8275$as_echo "$supported" >&6; }
8276		if test "$supported" = "yes" ; then
8277			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8278			found="yes"
8279		fi
8280	fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296xorg_testset_save_CFLAGS="$CFLAGS"
8297
8298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8303  $as_echo_n "(cached) " >&6
8304else
8305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307int i;
8308_ACEOF
8309if ac_fn_c_try_compile "$LINENO"; then :
8310  xorg_cv_cc_flag_unknown_warning_option=yes
8311else
8312  xorg_cv_cc_flag_unknown_warning_option=no
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315fi
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8319	CFLAGS="$xorg_testset_save_CFLAGS"
8320fi
8321
8322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325	fi
8326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333/* end confdefs.h.  */
8334int i;
8335_ACEOF
8336if ac_fn_c_try_compile "$LINENO"; then :
8337  xorg_cv_cc_flag_unused_command_line_argument=yes
8338else
8339  xorg_cv_cc_flag_unused_command_line_argument=no
8340fi
8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342fi
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8346	CFLAGS="$xorg_testset_save_CFLAGS"
8347fi
8348
8349found="no"
8350
8351	if test $found = "no" ; then
8352		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354		fi
8355
8356		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358		fi
8359
8360		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8361
8362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8363$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8364		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8365		if eval \${$cacheid+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369/* end confdefs.h.  */
8370int i;
8371int
8372main ()
8373{
8374
8375  ;
8376  return 0;
8377}
8378_ACEOF
8379if ac_fn_c_try_link "$LINENO"; then :
8380  eval $cacheid=yes
8381else
8382  eval $cacheid=no
8383fi
8384rm -f core conftest.err conftest.$ac_objext \
8385    conftest$ac_exeext conftest.$ac_ext
8386fi
8387
8388
8389		CFLAGS="$xorg_testset_save_CFLAGS"
8390
8391		eval supported=\$$cacheid
8392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8393$as_echo "$supported" >&6; }
8394		if test "$supported" = "yes" ; then
8395			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8396			found="yes"
8397		fi
8398	fi
8399
8400 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8401else
8402{ $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
8403$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;}
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417xorg_testset_save_CFLAGS="$CFLAGS"
8418
8419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429_ACEOF
8430if ac_fn_c_try_compile "$LINENO"; then :
8431  xorg_cv_cc_flag_unknown_warning_option=yes
8432else
8433  xorg_cv_cc_flag_unknown_warning_option=no
8434fi
8435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8440	CFLAGS="$xorg_testset_save_CFLAGS"
8441fi
8442
8443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446	fi
8447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8451  $as_echo_n "(cached) " >&6
8452else
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455int i;
8456_ACEOF
8457if ac_fn_c_try_compile "$LINENO"; then :
8458  xorg_cv_cc_flag_unused_command_line_argument=yes
8459else
8460  xorg_cv_cc_flag_unused_command_line_argument=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463fi
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8467	CFLAGS="$xorg_testset_save_CFLAGS"
8468fi
8469
8470found="no"
8471
8472	if test $found = "no" ; then
8473		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475		fi
8476
8477		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479		fi
8480
8481		CFLAGS="$CFLAGS -Wimplicit"
8482
8483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8484$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8485		cacheid=xorg_cv_cc_flag__Wimplicit
8486		if eval \${$cacheid+:} false; then :
8487  $as_echo_n "(cached) " >&6
8488else
8489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491int i;
8492int
8493main ()
8494{
8495
8496  ;
8497  return 0;
8498}
8499_ACEOF
8500if ac_fn_c_try_link "$LINENO"; then :
8501  eval $cacheid=yes
8502else
8503  eval $cacheid=no
8504fi
8505rm -f core conftest.err conftest.$ac_objext \
8506    conftest$ac_exeext conftest.$ac_ext
8507fi
8508
8509
8510		CFLAGS="$xorg_testset_save_CFLAGS"
8511
8512		eval supported=\$$cacheid
8513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8514$as_echo "$supported" >&6; }
8515		if test "$supported" = "yes" ; then
8516			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8517			found="yes"
8518		fi
8519	fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535xorg_testset_save_CFLAGS="$CFLAGS"
8536
8537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8542  $as_echo_n "(cached) " >&6
8543else
8544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545/* end confdefs.h.  */
8546int i;
8547_ACEOF
8548if ac_fn_c_try_compile "$LINENO"; then :
8549  xorg_cv_cc_flag_unknown_warning_option=yes
8550else
8551  xorg_cv_cc_flag_unknown_warning_option=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8558	CFLAGS="$xorg_testset_save_CFLAGS"
8559fi
8560
8561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564	fi
8565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573int i;
8574_ACEOF
8575if ac_fn_c_try_compile "$LINENO"; then :
8576  xorg_cv_cc_flag_unused_command_line_argument=yes
8577else
8578  xorg_cv_cc_flag_unused_command_line_argument=no
8579fi
8580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581fi
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8585	CFLAGS="$xorg_testset_save_CFLAGS"
8586fi
8587
8588found="no"
8589
8590	if test $found = "no" ; then
8591		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8593		fi
8594
8595		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597		fi
8598
8599		CFLAGS="$CFLAGS -Wnonnull"
8600
8601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8602$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8603		cacheid=xorg_cv_cc_flag__Wnonnull
8604		if eval \${$cacheid+:} false; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610int
8611main ()
8612{
8613
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_link "$LINENO"; then :
8619  eval $cacheid=yes
8620else
8621  eval $cacheid=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext \
8624    conftest$ac_exeext conftest.$ac_ext
8625fi
8626
8627
8628		CFLAGS="$xorg_testset_save_CFLAGS"
8629
8630		eval supported=\$$cacheid
8631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632$as_echo "$supported" >&6; }
8633		if test "$supported" = "yes" ; then
8634			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8635			found="yes"
8636		fi
8637	fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653xorg_testset_save_CFLAGS="$CFLAGS"
8654
8655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664int i;
8665_ACEOF
8666if ac_fn_c_try_compile "$LINENO"; then :
8667  xorg_cv_cc_flag_unknown_warning_option=yes
8668else
8669  xorg_cv_cc_flag_unknown_warning_option=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8676	CFLAGS="$xorg_testset_save_CFLAGS"
8677fi
8678
8679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682	fi
8683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691int i;
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694  xorg_cv_cc_flag_unused_command_line_argument=yes
8695else
8696  xorg_cv_cc_flag_unused_command_line_argument=no
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8703	CFLAGS="$xorg_testset_save_CFLAGS"
8704fi
8705
8706found="no"
8707
8708	if test $found = "no" ; then
8709		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711		fi
8712
8713		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8715		fi
8716
8717		CFLAGS="$CFLAGS -Winit-self"
8718
8719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8720$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8721		cacheid=xorg_cv_cc_flag__Winit_self
8722		if eval \${$cacheid+:} false; then :
8723  $as_echo_n "(cached) " >&6
8724else
8725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h.  */
8727int i;
8728int
8729main ()
8730{
8731
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736if ac_fn_c_try_link "$LINENO"; then :
8737  eval $cacheid=yes
8738else
8739  eval $cacheid=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext \
8742    conftest$ac_exeext conftest.$ac_ext
8743fi
8744
8745
8746		CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748		eval supported=\$$cacheid
8749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750$as_echo "$supported" >&6; }
8751		if test "$supported" = "yes" ; then
8752			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8753			found="yes"
8754		fi
8755	fi
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771xorg_testset_save_CFLAGS="$CFLAGS"
8772
8773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782int i;
8783_ACEOF
8784if ac_fn_c_try_compile "$LINENO"; then :
8785  xorg_cv_cc_flag_unknown_warning_option=yes
8786else
8787  xorg_cv_cc_flag_unknown_warning_option=no
8788fi
8789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790fi
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8794	CFLAGS="$xorg_testset_save_CFLAGS"
8795fi
8796
8797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800	fi
8801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h.  */
8809int i;
8810_ACEOF
8811if ac_fn_c_try_compile "$LINENO"; then :
8812  xorg_cv_cc_flag_unused_command_line_argument=yes
8813else
8814  xorg_cv_cc_flag_unused_command_line_argument=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817fi
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8821	CFLAGS="$xorg_testset_save_CFLAGS"
8822fi
8823
8824found="no"
8825
8826	if test $found = "no" ; then
8827		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8829		fi
8830
8831		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8833		fi
8834
8835		CFLAGS="$CFLAGS -Wmain"
8836
8837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8838$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8839		cacheid=xorg_cv_cc_flag__Wmain
8840		if eval \${$cacheid+:} false; then :
8841  $as_echo_n "(cached) " >&6
8842else
8843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h.  */
8845int i;
8846int
8847main ()
8848{
8849
8850  ;
8851  return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855  eval $cacheid=yes
8856else
8857  eval $cacheid=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext \
8860    conftest$ac_exeext conftest.$ac_ext
8861fi
8862
8863
8864		CFLAGS="$xorg_testset_save_CFLAGS"
8865
8866		eval supported=\$$cacheid
8867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8868$as_echo "$supported" >&6; }
8869		if test "$supported" = "yes" ; then
8870			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8871			found="yes"
8872		fi
8873	fi
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889xorg_testset_save_CFLAGS="$CFLAGS"
8890
8891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8896  $as_echo_n "(cached) " >&6
8897else
8898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h.  */
8900int i;
8901_ACEOF
8902if ac_fn_c_try_compile "$LINENO"; then :
8903  xorg_cv_cc_flag_unknown_warning_option=yes
8904else
8905  xorg_cv_cc_flag_unknown_warning_option=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908fi
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8912	CFLAGS="$xorg_testset_save_CFLAGS"
8913fi
8914
8915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8918	fi
8919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8923  $as_echo_n "(cached) " >&6
8924else
8925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926/* end confdefs.h.  */
8927int i;
8928_ACEOF
8929if ac_fn_c_try_compile "$LINENO"; then :
8930  xorg_cv_cc_flag_unused_command_line_argument=yes
8931else
8932  xorg_cv_cc_flag_unused_command_line_argument=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8939	CFLAGS="$xorg_testset_save_CFLAGS"
8940fi
8941
8942found="no"
8943
8944	if test $found = "no" ; then
8945		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947		fi
8948
8949		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8951		fi
8952
8953		CFLAGS="$CFLAGS -Wmissing-braces"
8954
8955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8956$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8957		cacheid=xorg_cv_cc_flag__Wmissing_braces
8958		if eval \${$cacheid+:} false; then :
8959  $as_echo_n "(cached) " >&6
8960else
8961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h.  */
8963int i;
8964int
8965main ()
8966{
8967
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_link "$LINENO"; then :
8973  eval $cacheid=yes
8974else
8975  eval $cacheid=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext \
8978    conftest$ac_exeext conftest.$ac_ext
8979fi
8980
8981
8982		CFLAGS="$xorg_testset_save_CFLAGS"
8983
8984		eval supported=\$$cacheid
8985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8986$as_echo "$supported" >&6; }
8987		if test "$supported" = "yes" ; then
8988			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8989			found="yes"
8990		fi
8991	fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007xorg_testset_save_CFLAGS="$CFLAGS"
9008
9009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018int i;
9019_ACEOF
9020if ac_fn_c_try_compile "$LINENO"; then :
9021  xorg_cv_cc_flag_unknown_warning_option=yes
9022else
9023  xorg_cv_cc_flag_unknown_warning_option=no
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026fi
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9030	CFLAGS="$xorg_testset_save_CFLAGS"
9031fi
9032
9033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036	fi
9037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h.  */
9045int i;
9046_ACEOF
9047if ac_fn_c_try_compile "$LINENO"; then :
9048  xorg_cv_cc_flag_unused_command_line_argument=yes
9049else
9050  xorg_cv_cc_flag_unused_command_line_argument=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053fi
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9057	CFLAGS="$xorg_testset_save_CFLAGS"
9058fi
9059
9060found="no"
9061
9062	if test $found = "no" ; then
9063		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065		fi
9066
9067		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9069		fi
9070
9071		CFLAGS="$CFLAGS -Wsequence-point"
9072
9073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9074$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9075		cacheid=xorg_cv_cc_flag__Wsequence_point
9076		if eval \${$cacheid+:} false; then :
9077  $as_echo_n "(cached) " >&6
9078else
9079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080/* end confdefs.h.  */
9081int i;
9082int
9083main ()
9084{
9085
9086  ;
9087  return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_link "$LINENO"; then :
9091  eval $cacheid=yes
9092else
9093  eval $cacheid=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext \
9096    conftest$ac_exeext conftest.$ac_ext
9097fi
9098
9099
9100		CFLAGS="$xorg_testset_save_CFLAGS"
9101
9102		eval supported=\$$cacheid
9103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9104$as_echo "$supported" >&6; }
9105		if test "$supported" = "yes" ; then
9106			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9107			found="yes"
9108		fi
9109	fi
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125xorg_testset_save_CFLAGS="$CFLAGS"
9126
9127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9132  $as_echo_n "(cached) " >&6
9133else
9134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135/* end confdefs.h.  */
9136int i;
9137_ACEOF
9138if ac_fn_c_try_compile "$LINENO"; then :
9139  xorg_cv_cc_flag_unknown_warning_option=yes
9140else
9141  xorg_cv_cc_flag_unknown_warning_option=no
9142fi
9143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9148	CFLAGS="$xorg_testset_save_CFLAGS"
9149fi
9150
9151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154	fi
9155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9159  $as_echo_n "(cached) " >&6
9160else
9161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162/* end confdefs.h.  */
9163int i;
9164_ACEOF
9165if ac_fn_c_try_compile "$LINENO"; then :
9166  xorg_cv_cc_flag_unused_command_line_argument=yes
9167else
9168  xorg_cv_cc_flag_unused_command_line_argument=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171fi
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9175	CFLAGS="$xorg_testset_save_CFLAGS"
9176fi
9177
9178found="no"
9179
9180	if test $found = "no" ; then
9181		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183		fi
9184
9185		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9187		fi
9188
9189		CFLAGS="$CFLAGS -Wreturn-type"
9190
9191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9192$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9193		cacheid=xorg_cv_cc_flag__Wreturn_type
9194		if eval \${$cacheid+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199int i;
9200int
9201main ()
9202{
9203
9204  ;
9205  return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209  eval $cacheid=yes
9210else
9211  eval $cacheid=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214    conftest$ac_exeext conftest.$ac_ext
9215fi
9216
9217
9218		CFLAGS="$xorg_testset_save_CFLAGS"
9219
9220		eval supported=\$$cacheid
9221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9222$as_echo "$supported" >&6; }
9223		if test "$supported" = "yes" ; then
9224			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9225			found="yes"
9226		fi
9227	fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243xorg_testset_save_CFLAGS="$CFLAGS"
9244
9245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254int i;
9255_ACEOF
9256if ac_fn_c_try_compile "$LINENO"; then :
9257  xorg_cv_cc_flag_unknown_warning_option=yes
9258else
9259  xorg_cv_cc_flag_unknown_warning_option=no
9260fi
9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262fi
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9266	CFLAGS="$xorg_testset_save_CFLAGS"
9267fi
9268
9269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272	fi
9273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281int i;
9282_ACEOF
9283if ac_fn_c_try_compile "$LINENO"; then :
9284  xorg_cv_cc_flag_unused_command_line_argument=yes
9285else
9286  xorg_cv_cc_flag_unused_command_line_argument=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289fi
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9293	CFLAGS="$xorg_testset_save_CFLAGS"
9294fi
9295
9296found="no"
9297
9298	if test $found = "no" ; then
9299		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301		fi
9302
9303		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9305		fi
9306
9307		CFLAGS="$CFLAGS -Wtrigraphs"
9308
9309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9310$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9311		cacheid=xorg_cv_cc_flag__Wtrigraphs
9312		if eval \${$cacheid+:} false; then :
9313  $as_echo_n "(cached) " >&6
9314else
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318int
9319main ()
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"; then :
9327  eval $cacheid=yes
9328else
9329  eval $cacheid=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext \
9332    conftest$ac_exeext conftest.$ac_ext
9333fi
9334
9335
9336		CFLAGS="$xorg_testset_save_CFLAGS"
9337
9338		eval supported=\$$cacheid
9339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9340$as_echo "$supported" >&6; }
9341		if test "$supported" = "yes" ; then
9342			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9343			found="yes"
9344		fi
9345	fi
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361xorg_testset_save_CFLAGS="$CFLAGS"
9362
9363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h.  */
9372int i;
9373_ACEOF
9374if ac_fn_c_try_compile "$LINENO"; then :
9375  xorg_cv_cc_flag_unknown_warning_option=yes
9376else
9377  xorg_cv_cc_flag_unknown_warning_option=no
9378fi
9379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380fi
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9384	CFLAGS="$xorg_testset_save_CFLAGS"
9385fi
9386
9387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9390	fi
9391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9395  $as_echo_n "(cached) " >&6
9396else
9397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399int i;
9400_ACEOF
9401if ac_fn_c_try_compile "$LINENO"; then :
9402  xorg_cv_cc_flag_unused_command_line_argument=yes
9403else
9404  xorg_cv_cc_flag_unused_command_line_argument=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407fi
9408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9411	CFLAGS="$xorg_testset_save_CFLAGS"
9412fi
9413
9414found="no"
9415
9416	if test $found = "no" ; then
9417		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9419		fi
9420
9421		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9423		fi
9424
9425		CFLAGS="$CFLAGS -Warray-bounds"
9426
9427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9428$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9429		cacheid=xorg_cv_cc_flag__Warray_bounds
9430		if eval \${$cacheid+:} false; then :
9431  $as_echo_n "(cached) " >&6
9432else
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435int i;
9436int
9437main ()
9438{
9439
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444if ac_fn_c_try_link "$LINENO"; then :
9445  eval $cacheid=yes
9446else
9447  eval $cacheid=no
9448fi
9449rm -f core conftest.err conftest.$ac_objext \
9450    conftest$ac_exeext conftest.$ac_ext
9451fi
9452
9453
9454		CFLAGS="$xorg_testset_save_CFLAGS"
9455
9456		eval supported=\$$cacheid
9457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9458$as_echo "$supported" >&6; }
9459		if test "$supported" = "yes" ; then
9460			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9461			found="yes"
9462		fi
9463	fi
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479xorg_testset_save_CFLAGS="$CFLAGS"
9480
9481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9486  $as_echo_n "(cached) " >&6
9487else
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491_ACEOF
9492if ac_fn_c_try_compile "$LINENO"; then :
9493  xorg_cv_cc_flag_unknown_warning_option=yes
9494else
9495  xorg_cv_cc_flag_unknown_warning_option=no
9496fi
9497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498fi
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9502	CFLAGS="$xorg_testset_save_CFLAGS"
9503fi
9504
9505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9508	fi
9509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9513  $as_echo_n "(cached) " >&6
9514else
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518_ACEOF
9519if ac_fn_c_try_compile "$LINENO"; then :
9520  xorg_cv_cc_flag_unused_command_line_argument=yes
9521else
9522  xorg_cv_cc_flag_unused_command_line_argument=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9529	CFLAGS="$xorg_testset_save_CFLAGS"
9530fi
9531
9532found="no"
9533
9534	if test $found = "no" ; then
9535		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9537		fi
9538
9539		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9541		fi
9542
9543		CFLAGS="$CFLAGS -Wwrite-strings"
9544
9545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9546$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9547		cacheid=xorg_cv_cc_flag__Wwrite_strings
9548		if eval \${$cacheid+:} false; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552/* end confdefs.h.  */
9553int i;
9554int
9555main ()
9556{
9557
9558  ;
9559  return 0;
9560}
9561_ACEOF
9562if ac_fn_c_try_link "$LINENO"; then :
9563  eval $cacheid=yes
9564else
9565  eval $cacheid=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext conftest.$ac_ext
9569fi
9570
9571
9572		CFLAGS="$xorg_testset_save_CFLAGS"
9573
9574		eval supported=\$$cacheid
9575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9576$as_echo "$supported" >&6; }
9577		if test "$supported" = "yes" ; then
9578			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9579			found="yes"
9580		fi
9581	fi
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597xorg_testset_save_CFLAGS="$CFLAGS"
9598
9599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"; then :
9611  xorg_cv_cc_flag_unknown_warning_option=yes
9612else
9613  xorg_cv_cc_flag_unknown_warning_option=no
9614fi
9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9620	CFLAGS="$xorg_testset_save_CFLAGS"
9621fi
9622
9623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626	fi
9627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9631  $as_echo_n "(cached) " >&6
9632else
9633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h.  */
9635int i;
9636_ACEOF
9637if ac_fn_c_try_compile "$LINENO"; then :
9638  xorg_cv_cc_flag_unused_command_line_argument=yes
9639else
9640  xorg_cv_cc_flag_unused_command_line_argument=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643fi
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9647	CFLAGS="$xorg_testset_save_CFLAGS"
9648fi
9649
9650found="no"
9651
9652	if test $found = "no" ; then
9653		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655		fi
9656
9657		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9659		fi
9660
9661		CFLAGS="$CFLAGS -Waddress"
9662
9663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9664$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9665		cacheid=xorg_cv_cc_flag__Waddress
9666		if eval \${$cacheid+:} false; then :
9667  $as_echo_n "(cached) " >&6
9668else
9669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670/* end confdefs.h.  */
9671int i;
9672int
9673main ()
9674{
9675
9676  ;
9677  return 0;
9678}
9679_ACEOF
9680if ac_fn_c_try_link "$LINENO"; then :
9681  eval $cacheid=yes
9682else
9683  eval $cacheid=no
9684fi
9685rm -f core conftest.err conftest.$ac_objext \
9686    conftest$ac_exeext conftest.$ac_ext
9687fi
9688
9689
9690		CFLAGS="$xorg_testset_save_CFLAGS"
9691
9692		eval supported=\$$cacheid
9693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9694$as_echo "$supported" >&6; }
9695		if test "$supported" = "yes" ; then
9696			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9697			found="yes"
9698		fi
9699	fi
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715xorg_testset_save_CFLAGS="$CFLAGS"
9716
9717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726int i;
9727_ACEOF
9728if ac_fn_c_try_compile "$LINENO"; then :
9729  xorg_cv_cc_flag_unknown_warning_option=yes
9730else
9731  xorg_cv_cc_flag_unknown_warning_option=no
9732fi
9733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9738	CFLAGS="$xorg_testset_save_CFLAGS"
9739fi
9740
9741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744	fi
9745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9749  $as_echo_n "(cached) " >&6
9750else
9751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752/* end confdefs.h.  */
9753int i;
9754_ACEOF
9755if ac_fn_c_try_compile "$LINENO"; then :
9756  xorg_cv_cc_flag_unused_command_line_argument=yes
9757else
9758  xorg_cv_cc_flag_unused_command_line_argument=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761fi
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9765	CFLAGS="$xorg_testset_save_CFLAGS"
9766fi
9767
9768found="no"
9769
9770	if test $found = "no" ; then
9771		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773		fi
9774
9775		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777		fi
9778
9779		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9780
9781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9782$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9783		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9784		if eval \${$cacheid+:} false; then :
9785  $as_echo_n "(cached) " >&6
9786else
9787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789int i;
9790int
9791main ()
9792{
9793
9794  ;
9795  return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"; then :
9799  eval $cacheid=yes
9800else
9801  eval $cacheid=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext \
9804    conftest$ac_exeext conftest.$ac_ext
9805fi
9806
9807
9808		CFLAGS="$xorg_testset_save_CFLAGS"
9809
9810		eval supported=\$$cacheid
9811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9812$as_echo "$supported" >&6; }
9813		if test "$supported" = "yes" ; then
9814			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9815			found="yes"
9816		fi
9817	fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833xorg_testset_save_CFLAGS="$CFLAGS"
9834
9835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h.  */
9844int i;
9845_ACEOF
9846if ac_fn_c_try_compile "$LINENO"; then :
9847  xorg_cv_cc_flag_unknown_warning_option=yes
9848else
9849  xorg_cv_cc_flag_unknown_warning_option=no
9850fi
9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9856	CFLAGS="$xorg_testset_save_CFLAGS"
9857fi
9858
9859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	fi
9863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872_ACEOF
9873if ac_fn_c_try_compile "$LINENO"; then :
9874  xorg_cv_cc_flag_unused_command_line_argument=yes
9875else
9876  xorg_cv_cc_flag_unused_command_line_argument=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886found="no"
9887
9888	if test $found = "no" ; then
9889		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891		fi
9892
9893		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895		fi
9896
9897		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9898
9899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9900$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9901		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9902		if eval \${$cacheid+:} false; then :
9903  $as_echo_n "(cached) " >&6
9904else
9905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906/* end confdefs.h.  */
9907int i;
9908int
9909main ()
9910{
9911
9912  ;
9913  return 0;
9914}
9915_ACEOF
9916if ac_fn_c_try_link "$LINENO"; then :
9917  eval $cacheid=yes
9918else
9919  eval $cacheid=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext \
9922    conftest$ac_exeext conftest.$ac_ext
9923fi
9924
9925
9926		CFLAGS="$xorg_testset_save_CFLAGS"
9927
9928		eval supported=\$$cacheid
9929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930$as_echo "$supported" >&6; }
9931		if test "$supported" = "yes" ; then
9932			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9933			found="yes"
9934		fi
9935	fi
9936
9937
9938fi
9939
9940
9941
9942
9943
9944
9945
9946		CWARNFLAGS="$BASE_CFLAGS"
9947		if  test "x$GCC" = xyes ; then
9948		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9949		fi
9950
9951
9952
9953
9954
9955
9956
9957
9958# Check whether --enable-strict-compilation was given.
9959if test "${enable_strict_compilation+set}" = set; then :
9960  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9961else
9962  STRICT_COMPILE=no
9963fi
9964
9965
9966
9967
9968
9969
9970STRICT_CFLAGS=""
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984xorg_testset_save_CFLAGS="$CFLAGS"
9985
9986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996_ACEOF
9997if ac_fn_c_try_compile "$LINENO"; then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022int i;
10023_ACEOF
10024if ac_fn_c_try_compile "$LINENO"; then :
10025  xorg_cv_cc_flag_unused_command_line_argument=yes
10026else
10027  xorg_cv_cc_flag_unused_command_line_argument=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10034	CFLAGS="$xorg_testset_save_CFLAGS"
10035fi
10036
10037found="no"
10038
10039	if test $found = "no" ; then
10040		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042		fi
10043
10044		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10046		fi
10047
10048		CFLAGS="$CFLAGS -pedantic"
10049
10050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10051$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10052		cacheid=xorg_cv_cc_flag__pedantic
10053		if eval \${$cacheid+:} false; then :
10054  $as_echo_n "(cached) " >&6
10055else
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058int i;
10059int
10060main ()
10061{
10062
10063  ;
10064  return 0;
10065}
10066_ACEOF
10067if ac_fn_c_try_link "$LINENO"; then :
10068  eval $cacheid=yes
10069else
10070  eval $cacheid=no
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074fi
10075
10076
10077		CFLAGS="$xorg_testset_save_CFLAGS"
10078
10079		eval supported=\$$cacheid
10080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10081$as_echo "$supported" >&6; }
10082		if test "$supported" = "yes" ; then
10083			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10084			found="yes"
10085		fi
10086	fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102xorg_testset_save_CFLAGS="$CFLAGS"
10103
10104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112/* end confdefs.h.  */
10113int i;
10114_ACEOF
10115if ac_fn_c_try_compile "$LINENO"; then :
10116  xorg_cv_cc_flag_unknown_warning_option=yes
10117else
10118  xorg_cv_cc_flag_unknown_warning_option=no
10119fi
10120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10125	CFLAGS="$xorg_testset_save_CFLAGS"
10126fi
10127
10128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131	fi
10132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10136  $as_echo_n "(cached) " >&6
10137else
10138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int i;
10141_ACEOF
10142if ac_fn_c_try_compile "$LINENO"; then :
10143  xorg_cv_cc_flag_unused_command_line_argument=yes
10144else
10145  xorg_cv_cc_flag_unused_command_line_argument=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10152	CFLAGS="$xorg_testset_save_CFLAGS"
10153fi
10154
10155found="no"
10156
10157	if test $found = "no" ; then
10158		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160		fi
10161
10162		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10164		fi
10165
10166		CFLAGS="$CFLAGS -Werror"
10167
10168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10169$as_echo_n "checking if $CC supports -Werror... " >&6; }
10170		cacheid=xorg_cv_cc_flag__Werror
10171		if eval \${$cacheid+:} false; then :
10172  $as_echo_n "(cached) " >&6
10173else
10174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176int i;
10177int
10178main ()
10179{
10180
10181  ;
10182  return 0;
10183}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186  eval $cacheid=yes
10187else
10188  eval $cacheid=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191    conftest$ac_exeext conftest.$ac_ext
10192fi
10193
10194
10195		CFLAGS="$xorg_testset_save_CFLAGS"
10196
10197		eval supported=\$$cacheid
10198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10199$as_echo "$supported" >&6; }
10200		if test "$supported" = "yes" ; then
10201			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10202			found="yes"
10203		fi
10204	fi
10205
10206	if test $found = "no" ; then
10207		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209		fi
10210
10211		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10213		fi
10214
10215		CFLAGS="$CFLAGS -errwarn"
10216
10217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10218$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10219		cacheid=xorg_cv_cc_flag__errwarn
10220		if eval \${$cacheid+:} false; then :
10221  $as_echo_n "(cached) " >&6
10222else
10223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224/* end confdefs.h.  */
10225int i;
10226int
10227main ()
10228{
10229
10230  ;
10231  return 0;
10232}
10233_ACEOF
10234if ac_fn_c_try_link "$LINENO"; then :
10235  eval $cacheid=yes
10236else
10237  eval $cacheid=no
10238fi
10239rm -f core conftest.err conftest.$ac_objext \
10240    conftest$ac_exeext conftest.$ac_ext
10241fi
10242
10243
10244		CFLAGS="$xorg_testset_save_CFLAGS"
10245
10246		eval supported=\$$cacheid
10247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10248$as_echo "$supported" >&6; }
10249		if test "$supported" = "yes" ; then
10250			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10251			found="yes"
10252		fi
10253	fi
10254
10255
10256
10257# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10258# activate it with -Werror, so we add it here explicitly.
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272xorg_testset_save_CFLAGS="$CFLAGS"
10273
10274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283int i;
10284_ACEOF
10285if ac_fn_c_try_compile "$LINENO"; then :
10286  xorg_cv_cc_flag_unknown_warning_option=yes
10287else
10288  xorg_cv_cc_flag_unknown_warning_option=no
10289fi
10290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10291fi
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10295	CFLAGS="$xorg_testset_save_CFLAGS"
10296fi
10297
10298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301	fi
10302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309/* end confdefs.h.  */
10310int i;
10311_ACEOF
10312if ac_fn_c_try_compile "$LINENO"; then :
10313  xorg_cv_cc_flag_unused_command_line_argument=yes
10314else
10315  xorg_cv_cc_flag_unused_command_line_argument=no
10316fi
10317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318fi
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10322	CFLAGS="$xorg_testset_save_CFLAGS"
10323fi
10324
10325found="no"
10326
10327	if test $found = "no" ; then
10328		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330		fi
10331
10332		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10334		fi
10335
10336		CFLAGS="$CFLAGS -Werror=attributes"
10337
10338		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10339$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10340		cacheid=xorg_cv_cc_flag__Werror_attributes
10341		if eval \${$cacheid+:} false; then :
10342  $as_echo_n "(cached) " >&6
10343else
10344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int i;
10347int
10348main ()
10349{
10350
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355if ac_fn_c_try_link "$LINENO"; then :
10356  eval $cacheid=yes
10357else
10358  eval $cacheid=no
10359fi
10360rm -f core conftest.err conftest.$ac_objext \
10361    conftest$ac_exeext conftest.$ac_ext
10362fi
10363
10364
10365		CFLAGS="$xorg_testset_save_CFLAGS"
10366
10367		eval supported=\$$cacheid
10368		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10369$as_echo "$supported" >&6; }
10370		if test "$supported" = "yes" ; then
10371			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10372			found="yes"
10373		fi
10374	fi
10375
10376
10377
10378if test "x$STRICT_COMPILE" = "xyes"; then
10379    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10380    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10381fi
10382
10383
10384
10385
10386
10387
10388cat >>confdefs.h <<_ACEOF
10389#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10390_ACEOF
10391
10392	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10393	if test "x$PVM" = "x"; then
10394		PVM="0"
10395	fi
10396
10397cat >>confdefs.h <<_ACEOF
10398#define PACKAGE_VERSION_MINOR $PVM
10399_ACEOF
10400
10401	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10402	if test "x$PVP" = "x"; then
10403		PVP="0"
10404	fi
10405
10406cat >>confdefs.h <<_ACEOF
10407#define PACKAGE_VERSION_PATCHLEVEL $PVP
10408_ACEOF
10409
10410
10411
10412CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10413mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10414|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10415echo 'git directory not found: installing possibly empty changelog.' >&2)"
10416
10417
10418
10419
10420macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10421INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10422mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10423|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10424echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10425
10426
10427
10428
10429
10430
10431if test x$APP_MAN_SUFFIX = x    ; then
10432    APP_MAN_SUFFIX=1
10433fi
10434if test x$APP_MAN_DIR = x    ; then
10435    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10436fi
10437
10438if test x$LIB_MAN_SUFFIX = x    ; then
10439    LIB_MAN_SUFFIX=3
10440fi
10441if test x$LIB_MAN_DIR = x    ; then
10442    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10443fi
10444
10445if test x$FILE_MAN_SUFFIX = x    ; then
10446    case $host_os in
10447	solaris*)	FILE_MAN_SUFFIX=4  ;;
10448	*)		FILE_MAN_SUFFIX=5  ;;
10449    esac
10450fi
10451if test x$FILE_MAN_DIR = x    ; then
10452    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10453fi
10454
10455if test x$MISC_MAN_SUFFIX = x    ; then
10456    case $host_os in
10457	solaris*)	MISC_MAN_SUFFIX=5  ;;
10458	*)		MISC_MAN_SUFFIX=7  ;;
10459    esac
10460fi
10461if test x$MISC_MAN_DIR = x    ; then
10462    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10463fi
10464
10465if test x$DRIVER_MAN_SUFFIX = x    ; then
10466    case $host_os in
10467	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10468	*)		DRIVER_MAN_SUFFIX=4  ;;
10469    esac
10470fi
10471if test x$DRIVER_MAN_DIR = x    ; then
10472    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10473fi
10474
10475if test x$ADMIN_MAN_SUFFIX = x    ; then
10476    case $host_os in
10477	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10478	*)		ADMIN_MAN_SUFFIX=8  ;;
10479    esac
10480fi
10481if test x$ADMIN_MAN_DIR = x    ; then
10482    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10483fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499XORG_MAN_PAGE="X Version 11"
10500
10501MAN_SUBSTS="\
10502	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10503	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10504	-e 's|__xservername__|Xorg|g' \
10505	-e 's|__xconfigfile__|xorg.conf|g' \
10506	-e 's|__projectroot__|\$(prefix)|g' \
10507	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10508	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10509	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10510	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10511	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10512	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10513	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10514
10515
10516
10517# Check whether --enable-silent-rules was given.
10518if test "${enable_silent_rules+set}" = set; then :
10519  enableval=$enable_silent_rules;
10520fi
10521
10522case $enable_silent_rules in # (((
10523  yes) AM_DEFAULT_VERBOSITY=0;;
10524   no) AM_DEFAULT_VERBOSITY=1;;
10525    *) AM_DEFAULT_VERBOSITY=0;;
10526esac
10527am_make=${MAKE-make}
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10529$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10530if ${am_cv_make_support_nested_variables+:} false; then :
10531  $as_echo_n "(cached) " >&6
10532else
10533  if $as_echo 'TRUE=$(BAR$(V))
10534BAR0=false
10535BAR1=true
10536V=1
10537am__doit:
10538	@$(TRUE)
10539.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10540  am_cv_make_support_nested_variables=yes
10541else
10542  am_cv_make_support_nested_variables=no
10543fi
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10546$as_echo "$am_cv_make_support_nested_variables" >&6; }
10547if test $am_cv_make_support_nested_variables = yes; then
10548    AM_V='$(V)'
10549  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10550else
10551  AM_V=$AM_DEFAULT_VERBOSITY
10552  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10553fi
10554AM_BACKSLASH='\'
10555
10556
10557
10558# Initialize libtool
10559# Check whether --enable-static was given.
10560if test "${enable_static+set}" = set; then :
10561  enableval=$enable_static; p=${PACKAGE-default}
10562    case $enableval in
10563    yes) enable_static=yes ;;
10564    no) enable_static=no ;;
10565    *)
10566     enable_static=no
10567      # Look at the argument we got.  We use all the common list separators.
10568      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10569      for pkg in $enableval; do
10570	IFS="$lt_save_ifs"
10571	if test "X$pkg" = "X$p"; then
10572	  enable_static=yes
10573	fi
10574      done
10575      IFS="$lt_save_ifs"
10576      ;;
10577    esac
10578else
10579  enable_static=no
10580fi
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590case `pwd` in
10591  *\ * | *\	*)
10592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10593$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10594esac
10595
10596
10597
10598macro_version='2.4'
10599macro_revision='1.3293'
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613ltmain="$ac_aux_dir/ltmain.sh"
10614
10615# Backslashify metacharacters that are still active within
10616# double-quoted strings.
10617sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10618
10619# Same as above, but do not quote variable references.
10620double_quote_subst='s/\(["`\\]\)/\\\1/g'
10621
10622# Sed substitution to delay expansion of an escaped shell variable in a
10623# double_quote_subst'ed string.
10624delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10625
10626# Sed substitution to delay expansion of an escaped single quote.
10627delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10628
10629# Sed substitution to avoid accidental globbing in evaled expressions
10630no_glob_subst='s/\*/\\\*/g'
10631
10632ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10634ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10635
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10637$as_echo_n "checking how to print strings... " >&6; }
10638# Test print first, because it will be a builtin if present.
10639if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10640   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10641  ECHO='print -r --'
10642elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10643  ECHO='printf %s\n'
10644else
10645  # Use this function as a fallback that always works.
10646  func_fallback_echo ()
10647  {
10648    eval 'cat <<_LTECHO_EOF
10649$1
10650_LTECHO_EOF'
10651  }
10652  ECHO='func_fallback_echo'
10653fi
10654
10655# func_echo_all arg...
10656# Invoke $ECHO with all args, space-separated.
10657func_echo_all ()
10658{
10659    $ECHO ""
10660}
10661
10662case "$ECHO" in
10663  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10664$as_echo "printf" >&6; } ;;
10665  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10666$as_echo "print -r" >&6; } ;;
10667  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10668$as_echo "cat" >&6; } ;;
10669esac
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10685$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10686if ${ac_cv_path_SED+:} false; then :
10687  $as_echo_n "(cached) " >&6
10688else
10689            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10690     for ac_i in 1 2 3 4 5 6 7; do
10691       ac_script="$ac_script$as_nl$ac_script"
10692     done
10693     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10694     { ac_script=; unset ac_script;}
10695     if test -z "$SED"; then
10696  ac_path_SED_found=false
10697  # Loop through the user's path and test for each of PROGNAME-LIST
10698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699for as_dir in $PATH
10700do
10701  IFS=$as_save_IFS
10702  test -z "$as_dir" && as_dir=.
10703    for ac_prog in sed gsed; do
10704    for ac_exec_ext in '' $ac_executable_extensions; do
10705      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10706      as_fn_executable_p "$ac_path_SED" || continue
10707# Check for GNU ac_path_SED and select it if it is found.
10708  # Check for GNU $ac_path_SED
10709case `"$ac_path_SED" --version 2>&1` in
10710*GNU*)
10711  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10712*)
10713  ac_count=0
10714  $as_echo_n 0123456789 >"conftest.in"
10715  while :
10716  do
10717    cat "conftest.in" "conftest.in" >"conftest.tmp"
10718    mv "conftest.tmp" "conftest.in"
10719    cp "conftest.in" "conftest.nl"
10720    $as_echo '' >> "conftest.nl"
10721    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10722    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10723    as_fn_arith $ac_count + 1 && ac_count=$as_val
10724    if test $ac_count -gt ${ac_path_SED_max-0}; then
10725      # Best one so far, save it but keep looking for a better one
10726      ac_cv_path_SED="$ac_path_SED"
10727      ac_path_SED_max=$ac_count
10728    fi
10729    # 10*(2^10) chars as input seems more than enough
10730    test $ac_count -gt 10 && break
10731  done
10732  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10733esac
10734
10735      $ac_path_SED_found && break 3
10736    done
10737  done
10738  done
10739IFS=$as_save_IFS
10740  if test -z "$ac_cv_path_SED"; then
10741    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10742  fi
10743else
10744  ac_cv_path_SED=$SED
10745fi
10746
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10749$as_echo "$ac_cv_path_SED" >&6; }
10750 SED="$ac_cv_path_SED"
10751  rm -f conftest.sed
10752
10753test -z "$SED" && SED=sed
10754Xsed="$SED -e 1s/^X//"
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10767$as_echo_n "checking for fgrep... " >&6; }
10768if ${ac_cv_path_FGREP+:} false; then :
10769  $as_echo_n "(cached) " >&6
10770else
10771  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10772   then ac_cv_path_FGREP="$GREP -F"
10773   else
10774     if test -z "$FGREP"; then
10775  ac_path_FGREP_found=false
10776  # Loop through the user's path and test for each of PROGNAME-LIST
10777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10779do
10780  IFS=$as_save_IFS
10781  test -z "$as_dir" && as_dir=.
10782    for ac_prog in fgrep; do
10783    for ac_exec_ext in '' $ac_executable_extensions; do
10784      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10785      as_fn_executable_p "$ac_path_FGREP" || continue
10786# Check for GNU ac_path_FGREP and select it if it is found.
10787  # Check for GNU $ac_path_FGREP
10788case `"$ac_path_FGREP" --version 2>&1` in
10789*GNU*)
10790  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10791*)
10792  ac_count=0
10793  $as_echo_n 0123456789 >"conftest.in"
10794  while :
10795  do
10796    cat "conftest.in" "conftest.in" >"conftest.tmp"
10797    mv "conftest.tmp" "conftest.in"
10798    cp "conftest.in" "conftest.nl"
10799    $as_echo 'FGREP' >> "conftest.nl"
10800    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10801    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10802    as_fn_arith $ac_count + 1 && ac_count=$as_val
10803    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10804      # Best one so far, save it but keep looking for a better one
10805      ac_cv_path_FGREP="$ac_path_FGREP"
10806      ac_path_FGREP_max=$ac_count
10807    fi
10808    # 10*(2^10) chars as input seems more than enough
10809    test $ac_count -gt 10 && break
10810  done
10811  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10812esac
10813
10814      $ac_path_FGREP_found && break 3
10815    done
10816  done
10817  done
10818IFS=$as_save_IFS
10819  if test -z "$ac_cv_path_FGREP"; then
10820    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10821  fi
10822else
10823  ac_cv_path_FGREP=$FGREP
10824fi
10825
10826   fi
10827fi
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10829$as_echo "$ac_cv_path_FGREP" >&6; }
10830 FGREP="$ac_cv_path_FGREP"
10831
10832
10833test -z "$GREP" && GREP=grep
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853# Check whether --with-gnu-ld was given.
10854if test "${with_gnu_ld+set}" = set; then :
10855  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10856else
10857  with_gnu_ld=no
10858fi
10859
10860ac_prog=ld
10861if test "$GCC" = yes; then
10862  # Check if gcc -print-prog-name=ld gives a path.
10863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10864$as_echo_n "checking for ld used by $CC... " >&6; }
10865  case $host in
10866  *-*-mingw*)
10867    # gcc leaves a trailing carriage return which upsets mingw
10868    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10869  *)
10870    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10871  esac
10872  case $ac_prog in
10873    # Accept absolute paths.
10874    [\\/]* | ?:[\\/]*)
10875      re_direlt='/[^/][^/]*/\.\./'
10876      # Canonicalize the pathname of ld
10877      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10878      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10879	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10880      done
10881      test -z "$LD" && LD="$ac_prog"
10882      ;;
10883  "")
10884    # If it fails, then pretend we aren't using GCC.
10885    ac_prog=ld
10886    ;;
10887  *)
10888    # If it is relative, then search for the first ld in PATH.
10889    with_gnu_ld=unknown
10890    ;;
10891  esac
10892elif test "$with_gnu_ld" = yes; then
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10894$as_echo_n "checking for GNU ld... " >&6; }
10895else
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10897$as_echo_n "checking for non-GNU ld... " >&6; }
10898fi
10899if ${lt_cv_path_LD+:} false; then :
10900  $as_echo_n "(cached) " >&6
10901else
10902  if test -z "$LD"; then
10903  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10904  for ac_dir in $PATH; do
10905    IFS="$lt_save_ifs"
10906    test -z "$ac_dir" && ac_dir=.
10907    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10908      lt_cv_path_LD="$ac_dir/$ac_prog"
10909      # Check to see if the program is GNU ld.  I'd rather use --version,
10910      # but apparently some variants of GNU ld only accept -v.
10911      # Break only if it was the GNU/non-GNU ld that we prefer.
10912      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10913      *GNU* | *'with BFD'*)
10914	test "$with_gnu_ld" != no && break
10915	;;
10916      *)
10917	test "$with_gnu_ld" != yes && break
10918	;;
10919      esac
10920    fi
10921  done
10922  IFS="$lt_save_ifs"
10923else
10924  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10925fi
10926fi
10927
10928LD="$lt_cv_path_LD"
10929if test -n "$LD"; then
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10931$as_echo "$LD" >&6; }
10932else
10933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935fi
10936test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10938$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10939if ${lt_cv_prog_gnu_ld+:} false; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10943case `$LD -v 2>&1 </dev/null` in
10944*GNU* | *'with BFD'*)
10945  lt_cv_prog_gnu_ld=yes
10946  ;;
10947*)
10948  lt_cv_prog_gnu_ld=no
10949  ;;
10950esac
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10953$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10954with_gnu_ld=$lt_cv_prog_gnu_ld
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10965$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10966if ${lt_cv_path_NM+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  if test -n "$NM"; then
10970  # Let the user override the test.
10971  lt_cv_path_NM="$NM"
10972else
10973  lt_nm_to_check="${ac_tool_prefix}nm"
10974  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10975    lt_nm_to_check="$lt_nm_to_check nm"
10976  fi
10977  for lt_tmp_nm in $lt_nm_to_check; do
10978    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10979    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10980      IFS="$lt_save_ifs"
10981      test -z "$ac_dir" && ac_dir=.
10982      tmp_nm="$ac_dir/$lt_tmp_nm"
10983      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10984	# Check to see if the nm accepts a BSD-compat flag.
10985	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10986	#   nm: unknown option "B" ignored
10987	# Tru64's nm complains that /dev/null is an invalid object file
10988	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10989	*/dev/null* | *'Invalid file or object type'*)
10990	  lt_cv_path_NM="$tmp_nm -B"
10991	  break
10992	  ;;
10993	*)
10994	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10995	  */dev/null*)
10996	    lt_cv_path_NM="$tmp_nm -p"
10997	    break
10998	    ;;
10999	  *)
11000	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11001	    continue # so that we can try to find one that supports BSD flags
11002	    ;;
11003	  esac
11004	  ;;
11005	esac
11006      fi
11007    done
11008    IFS="$lt_save_ifs"
11009  done
11010  : ${lt_cv_path_NM=no}
11011fi
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11014$as_echo "$lt_cv_path_NM" >&6; }
11015if test "$lt_cv_path_NM" != "no"; then
11016  NM="$lt_cv_path_NM"
11017else
11018  # Didn't find any BSD compatible name lister, look for dumpbin.
11019  if test -n "$DUMPBIN"; then :
11020    # Let the user override the test.
11021  else
11022    if test -n "$ac_tool_prefix"; then
11023  for ac_prog in dumpbin "link -dump"
11024  do
11025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028$as_echo_n "checking for $ac_word... " >&6; }
11029if ${ac_cv_prog_DUMPBIN+:} false; then :
11030  $as_echo_n "(cached) " >&6
11031else
11032  if test -n "$DUMPBIN"; then
11033  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11034else
11035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038  IFS=$as_save_IFS
11039  test -z "$as_dir" && as_dir=.
11040    for ac_exec_ext in '' $ac_executable_extensions; do
11041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044    break 2
11045  fi
11046done
11047  done
11048IFS=$as_save_IFS
11049
11050fi
11051fi
11052DUMPBIN=$ac_cv_prog_DUMPBIN
11053if test -n "$DUMPBIN"; then
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11055$as_echo "$DUMPBIN" >&6; }
11056else
11057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058$as_echo "no" >&6; }
11059fi
11060
11061
11062    test -n "$DUMPBIN" && break
11063  done
11064fi
11065if test -z "$DUMPBIN"; then
11066  ac_ct_DUMPBIN=$DUMPBIN
11067  for ac_prog in dumpbin "link -dump"
11068do
11069  # Extract the first word of "$ac_prog", so it can be a program name with args.
11070set dummy $ac_prog; ac_word=$2
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11074  $as_echo_n "(cached) " >&6
11075else
11076  if test -n "$ac_ct_DUMPBIN"; then
11077  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082  IFS=$as_save_IFS
11083  test -z "$as_dir" && as_dir=.
11084    for ac_exec_ext in '' $ac_executable_extensions; do
11085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088    break 2
11089  fi
11090done
11091  done
11092IFS=$as_save_IFS
11093
11094fi
11095fi
11096ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11097if test -n "$ac_ct_DUMPBIN"; then
11098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11099$as_echo "$ac_ct_DUMPBIN" >&6; }
11100else
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
11103fi
11104
11105
11106  test -n "$ac_ct_DUMPBIN" && break
11107done
11108
11109  if test "x$ac_ct_DUMPBIN" = x; then
11110    DUMPBIN=":"
11111  else
11112    case $cross_compiling:$ac_tool_warned in
11113yes:)
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11116ac_tool_warned=yes ;;
11117esac
11118    DUMPBIN=$ac_ct_DUMPBIN
11119  fi
11120fi
11121
11122    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11123    *COFF*)
11124      DUMPBIN="$DUMPBIN -symbols"
11125      ;;
11126    *)
11127      DUMPBIN=:
11128      ;;
11129    esac
11130  fi
11131
11132  if test "$DUMPBIN" != ":"; then
11133    NM="$DUMPBIN"
11134  fi
11135fi
11136test -z "$NM" && NM=nm
11137
11138
11139
11140
11141
11142
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11144$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11145if ${lt_cv_nm_interface+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  lt_cv_nm_interface="BSD nm"
11149  echo "int some_variable = 0;" > conftest.$ac_ext
11150  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11151  (eval "$ac_compile" 2>conftest.err)
11152  cat conftest.err >&5
11153  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11154  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11155  cat conftest.err >&5
11156  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11157  cat conftest.out >&5
11158  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11159    lt_cv_nm_interface="MS dumpbin"
11160  fi
11161  rm -f conftest*
11162fi
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11164$as_echo "$lt_cv_nm_interface" >&6; }
11165
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11167$as_echo_n "checking whether ln -s works... " >&6; }
11168LN_S=$as_ln_s
11169if test "$LN_S" = "ln -s"; then
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171$as_echo "yes" >&6; }
11172else
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11174$as_echo "no, using $LN_S" >&6; }
11175fi
11176
11177# find the maximum length of command line arguments
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11179$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11180if ${lt_cv_sys_max_cmd_len+:} false; then :
11181  $as_echo_n "(cached) " >&6
11182else
11183    i=0
11184  teststring="ABCD"
11185
11186  case $build_os in
11187  msdosdjgpp*)
11188    # On DJGPP, this test can blow up pretty badly due to problems in libc
11189    # (any single argument exceeding 2000 bytes causes a buffer overrun
11190    # during glob expansion).  Even if it were fixed, the result of this
11191    # check would be larger than it should be.
11192    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11193    ;;
11194
11195  gnu*)
11196    # Under GNU Hurd, this test is not required because there is
11197    # no limit to the length of command line arguments.
11198    # Libtool will interpret -1 as no limit whatsoever
11199    lt_cv_sys_max_cmd_len=-1;
11200    ;;
11201
11202  cygwin* | mingw* | cegcc*)
11203    # On Win9x/ME, this test blows up -- it succeeds, but takes
11204    # about 5 minutes as the teststring grows exponentially.
11205    # Worse, since 9x/ME are not pre-emptively multitasking,
11206    # you end up with a "frozen" computer, even though with patience
11207    # the test eventually succeeds (with a max line length of 256k).
11208    # Instead, let's just punt: use the minimum linelength reported by
11209    # all of the supported platforms: 8192 (on NT/2K/XP).
11210    lt_cv_sys_max_cmd_len=8192;
11211    ;;
11212
11213  mint*)
11214    # On MiNT this can take a long time and run out of memory.
11215    lt_cv_sys_max_cmd_len=8192;
11216    ;;
11217
11218  amigaos*)
11219    # On AmigaOS with pdksh, this test takes hours, literally.
11220    # So we just punt and use a minimum line length of 8192.
11221    lt_cv_sys_max_cmd_len=8192;
11222    ;;
11223
11224  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11225    # This has been around since 386BSD, at least.  Likely further.
11226    if test -x /sbin/sysctl; then
11227      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11228    elif test -x /usr/sbin/sysctl; then
11229      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11230    else
11231      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11232    fi
11233    # And add a safety zone
11234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11235    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11236    ;;
11237
11238  interix*)
11239    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11240    lt_cv_sys_max_cmd_len=196608
11241    ;;
11242
11243  osf*)
11244    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11245    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11246    # nice to cause kernel panics so lets avoid the loop below.
11247    # First set a reasonable default.
11248    lt_cv_sys_max_cmd_len=16384
11249    #
11250    if test -x /sbin/sysconfig; then
11251      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11252        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11253      esac
11254    fi
11255    ;;
11256  sco3.2v5*)
11257    lt_cv_sys_max_cmd_len=102400
11258    ;;
11259  sysv5* | sco5v6* | sysv4.2uw2*)
11260    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11261    if test -n "$kargmax"; then
11262      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11263    else
11264      lt_cv_sys_max_cmd_len=32768
11265    fi
11266    ;;
11267  *)
11268    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11269    if test -n "$lt_cv_sys_max_cmd_len"; then
11270      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11271      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11272    else
11273      # Make teststring a little bigger before we do anything with it.
11274      # a 1K string should be a reasonable start.
11275      for i in 1 2 3 4 5 6 7 8 ; do
11276        teststring=$teststring$teststring
11277      done
11278      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11279      # If test is not a shell built-in, we'll probably end up computing a
11280      # maximum length that is only half of the actual maximum length, but
11281      # we can't tell.
11282      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11283	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11284	      test $i != 17 # 1/2 MB should be enough
11285      do
11286        i=`expr $i + 1`
11287        teststring=$teststring$teststring
11288      done
11289      # Only check the string length outside the loop.
11290      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11291      teststring=
11292      # Add a significant safety factor because C++ compilers can tack on
11293      # massive amounts of additional arguments before passing them to the
11294      # linker.  It appears as though 1/2 is a usable value.
11295      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11296    fi
11297    ;;
11298  esac
11299
11300fi
11301
11302if test -n $lt_cv_sys_max_cmd_len ; then
11303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11304$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11305else
11306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11307$as_echo "none" >&6; }
11308fi
11309max_cmd_len=$lt_cv_sys_max_cmd_len
11310
11311
11312
11313
11314
11315
11316: ${CP="cp -f"}
11317: ${MV="mv -f"}
11318: ${RM="rm -f"}
11319
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11321$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11322# Try some XSI features
11323xsi_shell=no
11324( _lt_dummy="a/b/c"
11325  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11326      = c,a/b,b/c, \
11327    && eval 'test $(( 1 + 1 )) -eq 2 \
11328    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11329  && xsi_shell=yes
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11331$as_echo "$xsi_shell" >&6; }
11332
11333
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11335$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11336lt_shell_append=no
11337( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11338    >/dev/null 2>&1 \
11339  && lt_shell_append=yes
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11341$as_echo "$lt_shell_append" >&6; }
11342
11343
11344if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11345  lt_unset=unset
11346else
11347  lt_unset=false
11348fi
11349
11350
11351
11352
11353
11354# test EBCDIC or ASCII
11355case `echo X|tr X '\101'` in
11356 A) # ASCII based system
11357    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11358  lt_SP2NL='tr \040 \012'
11359  lt_NL2SP='tr \015\012 \040\040'
11360  ;;
11361 *) # EBCDIC based system
11362  lt_SP2NL='tr \100 \n'
11363  lt_NL2SP='tr \r\n \100\100'
11364  ;;
11365esac
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11376$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11377if ${lt_cv_to_host_file_cmd+:} false; then :
11378  $as_echo_n "(cached) " >&6
11379else
11380  case $host in
11381  *-*-mingw* )
11382    case $build in
11383      *-*-mingw* ) # actually msys
11384        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11385        ;;
11386      *-*-cygwin* )
11387        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11388        ;;
11389      * ) # otherwise, assume *nix
11390        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11391        ;;
11392    esac
11393    ;;
11394  *-*-cygwin* )
11395    case $build in
11396      *-*-mingw* ) # actually msys
11397        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11398        ;;
11399      *-*-cygwin* )
11400        lt_cv_to_host_file_cmd=func_convert_file_noop
11401        ;;
11402      * ) # otherwise, assume *nix
11403        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11404        ;;
11405    esac
11406    ;;
11407  * ) # unhandled hosts (and "normal" native builds)
11408    lt_cv_to_host_file_cmd=func_convert_file_noop
11409    ;;
11410esac
11411
11412fi
11413
11414to_host_file_cmd=$lt_cv_to_host_file_cmd
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11416$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11417
11418
11419
11420
11421
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11423$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11424if ${lt_cv_to_tool_file_cmd+:} false; then :
11425  $as_echo_n "(cached) " >&6
11426else
11427  #assume ordinary cross tools, or native build.
11428lt_cv_to_tool_file_cmd=func_convert_file_noop
11429case $host in
11430  *-*-mingw* )
11431    case $build in
11432      *-*-mingw* ) # actually msys
11433        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11434        ;;
11435    esac
11436    ;;
11437esac
11438
11439fi
11440
11441to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11443$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11444
11445
11446
11447
11448
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11450$as_echo_n "checking for $LD option to reload object files... " >&6; }
11451if ${lt_cv_ld_reload_flag+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454  lt_cv_ld_reload_flag='-r'
11455fi
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11457$as_echo "$lt_cv_ld_reload_flag" >&6; }
11458reload_flag=$lt_cv_ld_reload_flag
11459case $reload_flag in
11460"" | " "*) ;;
11461*) reload_flag=" $reload_flag" ;;
11462esac
11463reload_cmds='$LD$reload_flag -o $output$reload_objs'
11464case $host_os in
11465  cygwin* | mingw* | pw32* | cegcc*)
11466    if test "$GCC" != yes; then
11467      reload_cmds=false
11468    fi
11469    ;;
11470  darwin*)
11471    if test "$GCC" = yes; then
11472      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11473    else
11474      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11475    fi
11476    ;;
11477esac
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487if test -n "$ac_tool_prefix"; then
11488  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11489set dummy ${ac_tool_prefix}objdump; ac_word=$2
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11491$as_echo_n "checking for $ac_word... " >&6; }
11492if ${ac_cv_prog_OBJDUMP+:} false; then :
11493  $as_echo_n "(cached) " >&6
11494else
11495  if test -n "$OBJDUMP"; then
11496  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11497else
11498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499for as_dir in $PATH
11500do
11501  IFS=$as_save_IFS
11502  test -z "$as_dir" && as_dir=.
11503    for ac_exec_ext in '' $ac_executable_extensions; do
11504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507    break 2
11508  fi
11509done
11510  done
11511IFS=$as_save_IFS
11512
11513fi
11514fi
11515OBJDUMP=$ac_cv_prog_OBJDUMP
11516if test -n "$OBJDUMP"; then
11517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11518$as_echo "$OBJDUMP" >&6; }
11519else
11520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521$as_echo "no" >&6; }
11522fi
11523
11524
11525fi
11526if test -z "$ac_cv_prog_OBJDUMP"; then
11527  ac_ct_OBJDUMP=$OBJDUMP
11528  # Extract the first word of "objdump", so it can be a program name with args.
11529set dummy objdump; ac_word=$2
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531$as_echo_n "checking for $ac_word... " >&6; }
11532if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  if test -n "$ac_ct_OBJDUMP"; then
11536  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11537else
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541  IFS=$as_save_IFS
11542  test -z "$as_dir" && as_dir=.
11543    for ac_exec_ext in '' $ac_executable_extensions; do
11544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547    break 2
11548  fi
11549done
11550  done
11551IFS=$as_save_IFS
11552
11553fi
11554fi
11555ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11556if test -n "$ac_ct_OBJDUMP"; then
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11558$as_echo "$ac_ct_OBJDUMP" >&6; }
11559else
11560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
11562fi
11563
11564  if test "x$ac_ct_OBJDUMP" = x; then
11565    OBJDUMP="false"
11566  else
11567    case $cross_compiling:$ac_tool_warned in
11568yes:)
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11571ac_tool_warned=yes ;;
11572esac
11573    OBJDUMP=$ac_ct_OBJDUMP
11574  fi
11575else
11576  OBJDUMP="$ac_cv_prog_OBJDUMP"
11577fi
11578
11579test -z "$OBJDUMP" && OBJDUMP=objdump
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11590$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11591if ${lt_cv_deplibs_check_method+:} false; then :
11592  $as_echo_n "(cached) " >&6
11593else
11594  lt_cv_file_magic_cmd='$MAGIC_CMD'
11595lt_cv_file_magic_test_file=
11596lt_cv_deplibs_check_method='unknown'
11597# Need to set the preceding variable on all platforms that support
11598# interlibrary dependencies.
11599# 'none' -- dependencies not supported.
11600# `unknown' -- same as none, but documents that we really don't know.
11601# 'pass_all' -- all dependencies passed with no checks.
11602# 'test_compile' -- check by making test program.
11603# 'file_magic [[regex]]' -- check by looking for files in library path
11604# which responds to the $file_magic_cmd with a given extended regex.
11605# If you have `file' or equivalent on your system and you're not sure
11606# whether `pass_all' will *always* work, you probably want this one.
11607
11608case $host_os in
11609aix[4-9]*)
11610  lt_cv_deplibs_check_method=pass_all
11611  ;;
11612
11613beos*)
11614  lt_cv_deplibs_check_method=pass_all
11615  ;;
11616
11617bsdi[45]*)
11618  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11619  lt_cv_file_magic_cmd='/usr/bin/file -L'
11620  lt_cv_file_magic_test_file=/shlib/libc.so
11621  ;;
11622
11623cygwin*)
11624  # func_win32_libid is a shell function defined in ltmain.sh
11625  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11626  lt_cv_file_magic_cmd='func_win32_libid'
11627  ;;
11628
11629mingw* | pw32*)
11630  # Base MSYS/MinGW do not provide the 'file' command needed by
11631  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11632  # unless we find 'file', for example because we are cross-compiling.
11633  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11634  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11635    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11636    lt_cv_file_magic_cmd='func_win32_libid'
11637  else
11638    # Keep this pattern in sync with the one in func_win32_libid.
11639    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11640    lt_cv_file_magic_cmd='$OBJDUMP -f'
11641  fi
11642  ;;
11643
11644cegcc*)
11645  # use the weaker test based on 'objdump'. See mingw*.
11646  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11647  lt_cv_file_magic_cmd='$OBJDUMP -f'
11648  ;;
11649
11650darwin* | rhapsody*)
11651  lt_cv_deplibs_check_method=pass_all
11652  ;;
11653
11654freebsd* | dragonfly*)
11655  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11656    case $host_cpu in
11657    i*86 )
11658      # Not sure whether the presence of OpenBSD here was a mistake.
11659      # Let's accept both of them until this is cleared up.
11660      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11661      lt_cv_file_magic_cmd=/usr/bin/file
11662      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11663      ;;
11664    esac
11665  else
11666    lt_cv_deplibs_check_method=pass_all
11667  fi
11668  ;;
11669
11670gnu*)
11671  lt_cv_deplibs_check_method=pass_all
11672  ;;
11673
11674haiku*)
11675  lt_cv_deplibs_check_method=pass_all
11676  ;;
11677
11678hpux10.20* | hpux11*)
11679  lt_cv_file_magic_cmd=/usr/bin/file
11680  case $host_cpu in
11681  ia64*)
11682    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11683    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11684    ;;
11685  hppa*64*)
11686    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]'
11687    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11688    ;;
11689  *)
11690    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11691    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11692    ;;
11693  esac
11694  ;;
11695
11696interix[3-9]*)
11697  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11698  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11699  ;;
11700
11701irix5* | irix6* | nonstopux*)
11702  case $LD in
11703  *-32|*"-32 ") libmagic=32-bit;;
11704  *-n32|*"-n32 ") libmagic=N32;;
11705  *-64|*"-64 ") libmagic=64-bit;;
11706  *) libmagic=never-match;;
11707  esac
11708  lt_cv_deplibs_check_method=pass_all
11709  ;;
11710
11711# This must be Linux ELF.
11712linux* | k*bsd*-gnu | kopensolaris*-gnu)
11713  lt_cv_deplibs_check_method=pass_all
11714  ;;
11715
11716netbsd*)
11717  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11718    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11719  else
11720    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11721  fi
11722  ;;
11723
11724newos6*)
11725  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11726  lt_cv_file_magic_cmd=/usr/bin/file
11727  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11728  ;;
11729
11730*nto* | *qnx*)
11731  lt_cv_deplibs_check_method=pass_all
11732  ;;
11733
11734openbsd*)
11735  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11736    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11737  else
11738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11739  fi
11740  ;;
11741
11742osf3* | osf4* | osf5*)
11743  lt_cv_deplibs_check_method=pass_all
11744  ;;
11745
11746rdos*)
11747  lt_cv_deplibs_check_method=pass_all
11748  ;;
11749
11750solaris*)
11751  lt_cv_deplibs_check_method=pass_all
11752  ;;
11753
11754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11755  lt_cv_deplibs_check_method=pass_all
11756  ;;
11757
11758sysv4 | sysv4.3*)
11759  case $host_vendor in
11760  motorola)
11761    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]'
11762    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11763    ;;
11764  ncr)
11765    lt_cv_deplibs_check_method=pass_all
11766    ;;
11767  sequent)
11768    lt_cv_file_magic_cmd='/bin/file'
11769    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11770    ;;
11771  sni)
11772    lt_cv_file_magic_cmd='/bin/file'
11773    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11774    lt_cv_file_magic_test_file=/lib/libc.so
11775    ;;
11776  siemens)
11777    lt_cv_deplibs_check_method=pass_all
11778    ;;
11779  pc)
11780    lt_cv_deplibs_check_method=pass_all
11781    ;;
11782  esac
11783  ;;
11784
11785tpf*)
11786  lt_cv_deplibs_check_method=pass_all
11787  ;;
11788esac
11789
11790fi
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11792$as_echo "$lt_cv_deplibs_check_method" >&6; }
11793
11794file_magic_glob=
11795want_nocaseglob=no
11796if test "$build" = "$host"; then
11797  case $host_os in
11798  mingw* | pw32*)
11799    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11800      want_nocaseglob=yes
11801    else
11802      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11803    fi
11804    ;;
11805  esac
11806fi
11807
11808file_magic_cmd=$lt_cv_file_magic_cmd
11809deplibs_check_method=$lt_cv_deplibs_check_method
11810test -z "$deplibs_check_method" && deplibs_check_method=unknown
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833if test -n "$ac_tool_prefix"; then
11834  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11835set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837$as_echo_n "checking for $ac_word... " >&6; }
11838if ${ac_cv_prog_DLLTOOL+:} false; then :
11839  $as_echo_n "(cached) " >&6
11840else
11841  if test -n "$DLLTOOL"; then
11842  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11843else
11844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845for as_dir in $PATH
11846do
11847  IFS=$as_save_IFS
11848  test -z "$as_dir" && as_dir=.
11849    for ac_exec_ext in '' $ac_executable_extensions; do
11850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853    break 2
11854  fi
11855done
11856  done
11857IFS=$as_save_IFS
11858
11859fi
11860fi
11861DLLTOOL=$ac_cv_prog_DLLTOOL
11862if test -n "$DLLTOOL"; then
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11864$as_echo "$DLLTOOL" >&6; }
11865else
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869
11870
11871fi
11872if test -z "$ac_cv_prog_DLLTOOL"; then
11873  ac_ct_DLLTOOL=$DLLTOOL
11874  # Extract the first word of "dlltool", so it can be a program name with args.
11875set dummy dlltool; ac_word=$2
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877$as_echo_n "checking for $ac_word... " >&6; }
11878if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11879  $as_echo_n "(cached) " >&6
11880else
11881  if test -n "$ac_ct_DLLTOOL"; then
11882  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11883else
11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887  IFS=$as_save_IFS
11888  test -z "$as_dir" && as_dir=.
11889    for ac_exec_ext in '' $ac_executable_extensions; do
11890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893    break 2
11894  fi
11895done
11896  done
11897IFS=$as_save_IFS
11898
11899fi
11900fi
11901ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11902if test -n "$ac_ct_DLLTOOL"; then
11903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11904$as_echo "$ac_ct_DLLTOOL" >&6; }
11905else
11906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907$as_echo "no" >&6; }
11908fi
11909
11910  if test "x$ac_ct_DLLTOOL" = x; then
11911    DLLTOOL="false"
11912  else
11913    case $cross_compiling:$ac_tool_warned in
11914yes:)
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11917ac_tool_warned=yes ;;
11918esac
11919    DLLTOOL=$ac_ct_DLLTOOL
11920  fi
11921else
11922  DLLTOOL="$ac_cv_prog_DLLTOOL"
11923fi
11924
11925test -z "$DLLTOOL" && DLLTOOL=dlltool
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11937$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11938if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  lt_cv_sharedlib_from_linklib_cmd='unknown'
11942
11943case $host_os in
11944cygwin* | mingw* | pw32* | cegcc*)
11945  # two different shell functions defined in ltmain.sh
11946  # decide which to use based on capabilities of $DLLTOOL
11947  case `$DLLTOOL --help 2>&1` in
11948  *--identify-strict*)
11949    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11950    ;;
11951  *)
11952    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11953    ;;
11954  esac
11955  ;;
11956*)
11957  # fallback: assume linklib IS sharedlib
11958  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11959  ;;
11960esac
11961
11962fi
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11964$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11965sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11966test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11967
11968
11969
11970
11971
11972
11973
11974if test -n "$ac_tool_prefix"; then
11975  for ac_prog in ar
11976  do
11977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980$as_echo_n "checking for $ac_word... " >&6; }
11981if ${ac_cv_prog_AR+:} false; then :
11982  $as_echo_n "(cached) " >&6
11983else
11984  if test -n "$AR"; then
11985  ac_cv_prog_AR="$AR" # Let the user override the test.
11986else
11987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990  IFS=$as_save_IFS
11991  test -z "$as_dir" && as_dir=.
11992    for ac_exec_ext in '' $ac_executable_extensions; do
11993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996    break 2
11997  fi
11998done
11999  done
12000IFS=$as_save_IFS
12001
12002fi
12003fi
12004AR=$ac_cv_prog_AR
12005if test -n "$AR"; then
12006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12007$as_echo "$AR" >&6; }
12008else
12009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
12011fi
12012
12013
12014    test -n "$AR" && break
12015  done
12016fi
12017if test -z "$AR"; then
12018  ac_ct_AR=$AR
12019  for ac_prog in ar
12020do
12021  # Extract the first word of "$ac_prog", so it can be a program name with args.
12022set dummy $ac_prog; ac_word=$2
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024$as_echo_n "checking for $ac_word... " >&6; }
12025if ${ac_cv_prog_ac_ct_AR+:} false; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  if test -n "$ac_ct_AR"; then
12029  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12030else
12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034  IFS=$as_save_IFS
12035  test -z "$as_dir" && as_dir=.
12036    for ac_exec_ext in '' $ac_executable_extensions; do
12037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038    ac_cv_prog_ac_ct_AR="$ac_prog"
12039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040    break 2
12041  fi
12042done
12043  done
12044IFS=$as_save_IFS
12045
12046fi
12047fi
12048ac_ct_AR=$ac_cv_prog_ac_ct_AR
12049if test -n "$ac_ct_AR"; then
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12051$as_echo "$ac_ct_AR" >&6; }
12052else
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
12055fi
12056
12057
12058  test -n "$ac_ct_AR" && break
12059done
12060
12061  if test "x$ac_ct_AR" = x; then
12062    AR="false"
12063  else
12064    case $cross_compiling:$ac_tool_warned in
12065yes:)
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12068ac_tool_warned=yes ;;
12069esac
12070    AR=$ac_ct_AR
12071  fi
12072fi
12073
12074: ${AR=ar}
12075: ${AR_FLAGS=cru}
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12088$as_echo_n "checking for archiver @FILE support... " >&6; }
12089if ${lt_cv_ar_at_file+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  lt_cv_ar_at_file=no
12093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096int
12097main ()
12098{
12099
12100  ;
12101  return 0;
12102}
12103_ACEOF
12104if ac_fn_c_try_compile "$LINENO"; then :
12105  echo conftest.$ac_objext > conftest.lst
12106      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12107      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12108  (eval $lt_ar_try) 2>&5
12109  ac_status=$?
12110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111  test $ac_status = 0; }
12112      if test "$ac_status" -eq 0; then
12113	# Ensure the archiver fails upon bogus file names.
12114	rm -f conftest.$ac_objext libconftest.a
12115	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12116  (eval $lt_ar_try) 2>&5
12117  ac_status=$?
12118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119  test $ac_status = 0; }
12120	if test "$ac_status" -ne 0; then
12121          lt_cv_ar_at_file=@
12122        fi
12123      fi
12124      rm -f conftest.* libconftest.a
12125
12126fi
12127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128
12129fi
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12131$as_echo "$lt_cv_ar_at_file" >&6; }
12132
12133if test "x$lt_cv_ar_at_file" = xno; then
12134  archiver_list_spec=
12135else
12136  archiver_list_spec=$lt_cv_ar_at_file
12137fi
12138
12139
12140
12141
12142
12143
12144
12145if test -n "$ac_tool_prefix"; then
12146  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12147set dummy ${ac_tool_prefix}strip; ac_word=$2
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149$as_echo_n "checking for $ac_word... " >&6; }
12150if ${ac_cv_prog_STRIP+:} false; then :
12151  $as_echo_n "(cached) " >&6
12152else
12153  if test -n "$STRIP"; then
12154  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12155else
12156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157for as_dir in $PATH
12158do
12159  IFS=$as_save_IFS
12160  test -z "$as_dir" && as_dir=.
12161    for ac_exec_ext in '' $ac_executable_extensions; do
12162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165    break 2
12166  fi
12167done
12168  done
12169IFS=$as_save_IFS
12170
12171fi
12172fi
12173STRIP=$ac_cv_prog_STRIP
12174if test -n "$STRIP"; then
12175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12176$as_echo "$STRIP" >&6; }
12177else
12178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179$as_echo "no" >&6; }
12180fi
12181
12182
12183fi
12184if test -z "$ac_cv_prog_STRIP"; then
12185  ac_ct_STRIP=$STRIP
12186  # Extract the first word of "strip", so it can be a program name with args.
12187set dummy strip; ac_word=$2
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189$as_echo_n "checking for $ac_word... " >&6; }
12190if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12191  $as_echo_n "(cached) " >&6
12192else
12193  if test -n "$ac_ct_STRIP"; then
12194  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12195else
12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197for as_dir in $PATH
12198do
12199  IFS=$as_save_IFS
12200  test -z "$as_dir" && as_dir=.
12201    for ac_exec_ext in '' $ac_executable_extensions; do
12202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203    ac_cv_prog_ac_ct_STRIP="strip"
12204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205    break 2
12206  fi
12207done
12208  done
12209IFS=$as_save_IFS
12210
12211fi
12212fi
12213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12214if test -n "$ac_ct_STRIP"; then
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12216$as_echo "$ac_ct_STRIP" >&6; }
12217else
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220fi
12221
12222  if test "x$ac_ct_STRIP" = x; then
12223    STRIP=":"
12224  else
12225    case $cross_compiling:$ac_tool_warned in
12226yes:)
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12229ac_tool_warned=yes ;;
12230esac
12231    STRIP=$ac_ct_STRIP
12232  fi
12233else
12234  STRIP="$ac_cv_prog_STRIP"
12235fi
12236
12237test -z "$STRIP" && STRIP=:
12238
12239
12240
12241
12242
12243
12244if test -n "$ac_tool_prefix"; then
12245  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
12249if ${ac_cv_prog_RANLIB+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  if test -n "$RANLIB"; then
12253  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12254else
12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258  IFS=$as_save_IFS
12259  test -z "$as_dir" && as_dir=.
12260    for ac_exec_ext in '' $ac_executable_extensions; do
12261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264    break 2
12265  fi
12266done
12267  done
12268IFS=$as_save_IFS
12269
12270fi
12271fi
12272RANLIB=$ac_cv_prog_RANLIB
12273if test -n "$RANLIB"; then
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12275$as_echo "$RANLIB" >&6; }
12276else
12277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278$as_echo "no" >&6; }
12279fi
12280
12281
12282fi
12283if test -z "$ac_cv_prog_RANLIB"; then
12284  ac_ct_RANLIB=$RANLIB
12285  # Extract the first word of "ranlib", so it can be a program name with args.
12286set dummy ranlib; ac_word=$2
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288$as_echo_n "checking for $ac_word... " >&6; }
12289if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12290  $as_echo_n "(cached) " >&6
12291else
12292  if test -n "$ac_ct_RANLIB"; then
12293  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12294else
12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296for as_dir in $PATH
12297do
12298  IFS=$as_save_IFS
12299  test -z "$as_dir" && as_dir=.
12300    for ac_exec_ext in '' $ac_executable_extensions; do
12301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302    ac_cv_prog_ac_ct_RANLIB="ranlib"
12303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304    break 2
12305  fi
12306done
12307  done
12308IFS=$as_save_IFS
12309
12310fi
12311fi
12312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12313if test -n "$ac_ct_RANLIB"; then
12314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12315$as_echo "$ac_ct_RANLIB" >&6; }
12316else
12317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318$as_echo "no" >&6; }
12319fi
12320
12321  if test "x$ac_ct_RANLIB" = x; then
12322    RANLIB=":"
12323  else
12324    case $cross_compiling:$ac_tool_warned in
12325yes:)
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12328ac_tool_warned=yes ;;
12329esac
12330    RANLIB=$ac_ct_RANLIB
12331  fi
12332else
12333  RANLIB="$ac_cv_prog_RANLIB"
12334fi
12335
12336test -z "$RANLIB" && RANLIB=:
12337
12338
12339
12340
12341
12342
12343# Determine commands to create old-style static archives.
12344old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12345old_postinstall_cmds='chmod 644 $oldlib'
12346old_postuninstall_cmds=
12347
12348if test -n "$RANLIB"; then
12349  case $host_os in
12350  openbsd*)
12351    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12352    ;;
12353  *)
12354    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12355    ;;
12356  esac
12357  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12358fi
12359
12360case $host_os in
12361  darwin*)
12362    lock_old_archive_extraction=yes ;;
12363  *)
12364    lock_old_archive_extraction=no ;;
12365esac
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405# If no C compiler was specified, use CC.
12406LTCC=${LTCC-"$CC"}
12407
12408# If no C compiler flags were specified, use CFLAGS.
12409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12410
12411# Allow CC to be a program name with arguments.
12412compiler=$CC
12413
12414
12415# Check for command to grab the raw symbol name followed by C symbol from nm.
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12417$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12418if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12419  $as_echo_n "(cached) " >&6
12420else
12421
12422# These are sane defaults that work on at least a few old systems.
12423# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12424
12425# Character class describing NM global symbol codes.
12426symcode='[BCDEGRST]'
12427
12428# Regexp to match symbols that can be accessed directly from C.
12429sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12430
12431# Define system-specific variables.
12432case $host_os in
12433aix*)
12434  symcode='[BCDT]'
12435  ;;
12436cygwin* | mingw* | pw32* | cegcc*)
12437  symcode='[ABCDGISTW]'
12438  ;;
12439hpux*)
12440  if test "$host_cpu" = ia64; then
12441    symcode='[ABCDEGRST]'
12442  fi
12443  ;;
12444irix* | nonstopux*)
12445  symcode='[BCDEGRST]'
12446  ;;
12447osf*)
12448  symcode='[BCDEGQRST]'
12449  ;;
12450solaris*)
12451  symcode='[BDRT]'
12452  ;;
12453sco3.2v5*)
12454  symcode='[DT]'
12455  ;;
12456sysv4.2uw2*)
12457  symcode='[DT]'
12458  ;;
12459sysv5* | sco5v6* | unixware* | OpenUNIX*)
12460  symcode='[ABDT]'
12461  ;;
12462sysv4)
12463  symcode='[DFNSTU]'
12464  ;;
12465esac
12466
12467# If we're using GNU nm, then use its standard symbol codes.
12468case `$NM -V 2>&1` in
12469*GNU* | *'with BFD'*)
12470  symcode='[ABCDGIRSTW]' ;;
12471esac
12472
12473# Transform an extracted symbol line into a proper C declaration.
12474# Some systems (esp. on ia64) link data and code symbols differently,
12475# so use this general approach.
12476lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12477
12478# Transform an extracted symbol line into symbol name and symbol address
12479lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12481
12482# Handle CRLF in mingw tool chain
12483opt_cr=
12484case $build_os in
12485mingw*)
12486  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12487  ;;
12488esac
12489
12490# Try without a prefix underscore, then with it.
12491for ac_symprfx in "" "_"; do
12492
12493  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12494  symxfrm="\\1 $ac_symprfx\\2 \\2"
12495
12496  # Write the raw and C identifiers.
12497  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12498    # Fake it for dumpbin and say T for any non-static function
12499    # and D for any global variable.
12500    # Also find C++ and __fastcall symbols from MSVC++,
12501    # which start with @ or ?.
12502    lt_cv_sys_global_symbol_pipe="$AWK '"\
12503"     {last_section=section; section=\$ 3};"\
12504"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12505"     \$ 0!~/External *\|/{next};"\
12506"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12507"     {if(hide[section]) next};"\
12508"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12509"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12510"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12511"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12512"     ' prfx=^$ac_symprfx"
12513  else
12514    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12515  fi
12516  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12517
12518  # Check to see that the pipe works correctly.
12519  pipe_works=no
12520
12521  rm -f conftest*
12522  cat > conftest.$ac_ext <<_LT_EOF
12523#ifdef __cplusplus
12524extern "C" {
12525#endif
12526char nm_test_var;
12527void nm_test_func(void);
12528void nm_test_func(void){}
12529#ifdef __cplusplus
12530}
12531#endif
12532int main(){nm_test_var='a';nm_test_func();return(0);}
12533_LT_EOF
12534
12535  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12536  (eval $ac_compile) 2>&5
12537  ac_status=$?
12538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539  test $ac_status = 0; }; then
12540    # Now try to grab the symbols.
12541    nlist=conftest.nm
12542    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12543  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12544  ac_status=$?
12545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546  test $ac_status = 0; } && test -s "$nlist"; then
12547      # Try sorting and uniquifying the output.
12548      if sort "$nlist" | uniq > "$nlist"T; then
12549	mv -f "$nlist"T "$nlist"
12550      else
12551	rm -f "$nlist"T
12552      fi
12553
12554      # Make sure that we snagged all the symbols we need.
12555      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12556	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12557	  cat <<_LT_EOF > conftest.$ac_ext
12558/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12559#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12560/* DATA imports from DLLs on WIN32 con't be const, because runtime
12561   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12562# define LT_DLSYM_CONST
12563#elif defined(__osf__)
12564/* This system does not cope well with relocations in const data.  */
12565# define LT_DLSYM_CONST
12566#else
12567# define LT_DLSYM_CONST const
12568#endif
12569
12570#ifdef __cplusplus
12571extern "C" {
12572#endif
12573
12574_LT_EOF
12575	  # Now generate the symbol file.
12576	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12577
12578	  cat <<_LT_EOF >> conftest.$ac_ext
12579
12580/* The mapping between symbol names and symbols.  */
12581LT_DLSYM_CONST struct {
12582  const char *name;
12583  void       *address;
12584}
12585lt__PROGRAM__LTX_preloaded_symbols[] =
12586{
12587  { "@PROGRAM@", (void *) 0 },
12588_LT_EOF
12589	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12590	  cat <<\_LT_EOF >> conftest.$ac_ext
12591  {0, (void *) 0}
12592};
12593
12594/* This works around a problem in FreeBSD linker */
12595#ifdef FREEBSD_WORKAROUND
12596static const void *lt_preloaded_setup() {
12597  return lt__PROGRAM__LTX_preloaded_symbols;
12598}
12599#endif
12600
12601#ifdef __cplusplus
12602}
12603#endif
12604_LT_EOF
12605	  # Now try linking the two files.
12606	  mv conftest.$ac_objext conftstm.$ac_objext
12607	  lt_globsym_save_LIBS=$LIBS
12608	  lt_globsym_save_CFLAGS=$CFLAGS
12609	  LIBS="conftstm.$ac_objext"
12610	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12611	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12612  (eval $ac_link) 2>&5
12613  ac_status=$?
12614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12616	    pipe_works=yes
12617	  fi
12618	  LIBS=$lt_globsym_save_LIBS
12619	  CFLAGS=$lt_globsym_save_CFLAGS
12620	else
12621	  echo "cannot find nm_test_func in $nlist" >&5
12622	fi
12623      else
12624	echo "cannot find nm_test_var in $nlist" >&5
12625      fi
12626    else
12627      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12628    fi
12629  else
12630    echo "$progname: failed program was:" >&5
12631    cat conftest.$ac_ext >&5
12632  fi
12633  rm -rf conftest* conftst*
12634
12635  # Do not use the global_symbol_pipe unless it works.
12636  if test "$pipe_works" = yes; then
12637    break
12638  else
12639    lt_cv_sys_global_symbol_pipe=
12640  fi
12641done
12642
12643fi
12644
12645if test -z "$lt_cv_sys_global_symbol_pipe"; then
12646  lt_cv_sys_global_symbol_to_cdecl=
12647fi
12648if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12650$as_echo "failed" >&6; }
12651else
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12653$as_echo "ok" >&6; }
12654fi
12655
12656# Response file support.
12657if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12658  nm_file_list_spec='@'
12659elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12660  nm_file_list_spec='@'
12661fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12690$as_echo_n "checking for sysroot... " >&6; }
12691
12692# Check whether --with-sysroot was given.
12693if test "${with_sysroot+set}" = set; then :
12694  withval=$with_sysroot;
12695else
12696  with_sysroot=no
12697fi
12698
12699
12700lt_sysroot=
12701case ${with_sysroot} in #(
12702 yes)
12703   if test "$GCC" = yes; then
12704     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12705   fi
12706   ;; #(
12707 /*)
12708   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12709   ;; #(
12710 no|'')
12711   ;; #(
12712 *)
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12714$as_echo "${with_sysroot}" >&6; }
12715   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12716   ;;
12717esac
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12720$as_echo "${lt_sysroot:-no}" >&6; }
12721
12722
12723
12724
12725
12726# Check whether --enable-libtool-lock was given.
12727if test "${enable_libtool_lock+set}" = set; then :
12728  enableval=$enable_libtool_lock;
12729fi
12730
12731test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12732
12733# Some flags need to be propagated to the compiler or linker for good
12734# libtool support.
12735case $host in
12736ia64-*-hpux*)
12737  # Find out which ABI we are using.
12738  echo 'int i;' > conftest.$ac_ext
12739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12740  (eval $ac_compile) 2>&5
12741  ac_status=$?
12742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743  test $ac_status = 0; }; then
12744    case `/usr/bin/file conftest.$ac_objext` in
12745      *ELF-32*)
12746	HPUX_IA64_MODE="32"
12747	;;
12748      *ELF-64*)
12749	HPUX_IA64_MODE="64"
12750	;;
12751    esac
12752  fi
12753  rm -rf conftest*
12754  ;;
12755*-*-irix6*)
12756  # Find out which ABI we are using.
12757  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12759  (eval $ac_compile) 2>&5
12760  ac_status=$?
12761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12762  test $ac_status = 0; }; then
12763    if test "$lt_cv_prog_gnu_ld" = yes; then
12764      case `/usr/bin/file conftest.$ac_objext` in
12765	*32-bit*)
12766	  LD="${LD-ld} -melf32bsmip"
12767	  ;;
12768	*N32*)
12769	  LD="${LD-ld} -melf32bmipn32"
12770	  ;;
12771	*64-bit*)
12772	  LD="${LD-ld} -melf64bmip"
12773	;;
12774      esac
12775    else
12776      case `/usr/bin/file conftest.$ac_objext` in
12777	*32-bit*)
12778	  LD="${LD-ld} -32"
12779	  ;;
12780	*N32*)
12781	  LD="${LD-ld} -n32"
12782	  ;;
12783	*64-bit*)
12784	  LD="${LD-ld} -64"
12785	  ;;
12786      esac
12787    fi
12788  fi
12789  rm -rf conftest*
12790  ;;
12791
12792x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12793s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12794  # Find out which ABI we are using.
12795  echo 'int i;' > conftest.$ac_ext
12796  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12797  (eval $ac_compile) 2>&5
12798  ac_status=$?
12799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12800  test $ac_status = 0; }; then
12801    case `/usr/bin/file conftest.o` in
12802      *32-bit*)
12803	case $host in
12804	  x86_64-*kfreebsd*-gnu)
12805	    LD="${LD-ld} -m elf_i386_fbsd"
12806	    ;;
12807	  x86_64-*linux*)
12808	    LD="${LD-ld} -m elf_i386"
12809	    ;;
12810	  ppc64-*linux*|powerpc64-*linux*)
12811	    LD="${LD-ld} -m elf32ppclinux"
12812	    ;;
12813	  s390x-*linux*)
12814	    LD="${LD-ld} -m elf_s390"
12815	    ;;
12816	  sparc64-*linux*)
12817	    LD="${LD-ld} -m elf32_sparc"
12818	    ;;
12819	esac
12820	;;
12821      *64-bit*)
12822	case $host in
12823	  x86_64-*kfreebsd*-gnu)
12824	    LD="${LD-ld} -m elf_x86_64_fbsd"
12825	    ;;
12826	  x86_64-*linux*)
12827	    LD="${LD-ld} -m elf_x86_64"
12828	    ;;
12829	  ppc*-*linux*|powerpc*-*linux*)
12830	    LD="${LD-ld} -m elf64ppc"
12831	    ;;
12832	  s390*-*linux*|s390*-*tpf*)
12833	    LD="${LD-ld} -m elf64_s390"
12834	    ;;
12835	  sparc*-*linux*)
12836	    LD="${LD-ld} -m elf64_sparc"
12837	    ;;
12838	esac
12839	;;
12840    esac
12841  fi
12842  rm -rf conftest*
12843  ;;
12844
12845*-*-sco3.2v5*)
12846  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12847  SAVE_CFLAGS="$CFLAGS"
12848  CFLAGS="$CFLAGS -belf"
12849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12850$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12851if ${lt_cv_cc_needs_belf+:} false; then :
12852  $as_echo_n "(cached) " >&6
12853else
12854  ac_ext=c
12855ac_cpp='$CPP $CPPFLAGS'
12856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12858ac_compiler_gnu=$ac_cv_c_compiler_gnu
12859
12860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862
12863int
12864main ()
12865{
12866
12867  ;
12868  return 0;
12869}
12870_ACEOF
12871if ac_fn_c_try_link "$LINENO"; then :
12872  lt_cv_cc_needs_belf=yes
12873else
12874  lt_cv_cc_needs_belf=no
12875fi
12876rm -f core conftest.err conftest.$ac_objext \
12877    conftest$ac_exeext conftest.$ac_ext
12878     ac_ext=c
12879ac_cpp='$CPP $CPPFLAGS'
12880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12886$as_echo "$lt_cv_cc_needs_belf" >&6; }
12887  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12888    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12889    CFLAGS="$SAVE_CFLAGS"
12890  fi
12891  ;;
12892sparc*-*solaris*)
12893  # Find out which ABI we are using.
12894  echo 'int i;' > conftest.$ac_ext
12895  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12896  (eval $ac_compile) 2>&5
12897  ac_status=$?
12898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899  test $ac_status = 0; }; then
12900    case `/usr/bin/file conftest.o` in
12901    *64-bit*)
12902      case $lt_cv_prog_gnu_ld in
12903      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12904      *)
12905	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12906	  LD="${LD-ld} -64"
12907	fi
12908	;;
12909      esac
12910      ;;
12911    esac
12912  fi
12913  rm -rf conftest*
12914  ;;
12915esac
12916
12917need_locks="$enable_libtool_lock"
12918
12919if test -n "$ac_tool_prefix"; then
12920  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12921set dummy ${ac_tool_prefix}mt; ac_word=$2
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923$as_echo_n "checking for $ac_word... " >&6; }
12924if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12925  $as_echo_n "(cached) " >&6
12926else
12927  if test -n "$MANIFEST_TOOL"; then
12928  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12929else
12930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933  IFS=$as_save_IFS
12934  test -z "$as_dir" && as_dir=.
12935    for ac_exec_ext in '' $ac_executable_extensions; do
12936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12937    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939    break 2
12940  fi
12941done
12942  done
12943IFS=$as_save_IFS
12944
12945fi
12946fi
12947MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12948if test -n "$MANIFEST_TOOL"; then
12949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12950$as_echo "$MANIFEST_TOOL" >&6; }
12951else
12952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953$as_echo "no" >&6; }
12954fi
12955
12956
12957fi
12958if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12959  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12960  # Extract the first word of "mt", so it can be a program name with args.
12961set dummy mt; ac_word=$2
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963$as_echo_n "checking for $ac_word... " >&6; }
12964if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  if test -n "$ac_ct_MANIFEST_TOOL"; then
12968  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12969else
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973  IFS=$as_save_IFS
12974  test -z "$as_dir" && as_dir=.
12975    for ac_exec_ext in '' $ac_executable_extensions; do
12976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979    break 2
12980  fi
12981done
12982  done
12983IFS=$as_save_IFS
12984
12985fi
12986fi
12987ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12988if test -n "$ac_ct_MANIFEST_TOOL"; then
12989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12990$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12991else
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
12994fi
12995
12996  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12997    MANIFEST_TOOL=":"
12998  else
12999    case $cross_compiling:$ac_tool_warned in
13000yes:)
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13003ac_tool_warned=yes ;;
13004esac
13005    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13006  fi
13007else
13008  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13009fi
13010
13011test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13013$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13014if ${lt_cv_path_mainfest_tool+:} false; then :
13015  $as_echo_n "(cached) " >&6
13016else
13017  lt_cv_path_mainfest_tool=no
13018  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13019  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13020  cat conftest.err >&5
13021  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13022    lt_cv_path_mainfest_tool=yes
13023  fi
13024  rm -f conftest*
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13027$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13028if test "x$lt_cv_path_mainfest_tool" != xyes; then
13029  MANIFEST_TOOL=:
13030fi
13031
13032
13033
13034
13035
13036
13037  case $host_os in
13038    rhapsody* | darwin*)
13039    if test -n "$ac_tool_prefix"; then
13040  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13041set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
13044if ${ac_cv_prog_DSYMUTIL+:} false; then :
13045  $as_echo_n "(cached) " >&6
13046else
13047  if test -n "$DSYMUTIL"; then
13048  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13049else
13050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051for as_dir in $PATH
13052do
13053  IFS=$as_save_IFS
13054  test -z "$as_dir" && as_dir=.
13055    for ac_exec_ext in '' $ac_executable_extensions; do
13056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059    break 2
13060  fi
13061done
13062  done
13063IFS=$as_save_IFS
13064
13065fi
13066fi
13067DSYMUTIL=$ac_cv_prog_DSYMUTIL
13068if test -n "$DSYMUTIL"; then
13069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13070$as_echo "$DSYMUTIL" >&6; }
13071else
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
13074fi
13075
13076
13077fi
13078if test -z "$ac_cv_prog_DSYMUTIL"; then
13079  ac_ct_DSYMUTIL=$DSYMUTIL
13080  # Extract the first word of "dsymutil", so it can be a program name with args.
13081set dummy dsymutil; ac_word=$2
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083$as_echo_n "checking for $ac_word... " >&6; }
13084if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  if test -n "$ac_ct_DSYMUTIL"; then
13088  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13089else
13090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $PATH
13092do
13093  IFS=$as_save_IFS
13094  test -z "$as_dir" && as_dir=.
13095    for ac_exec_ext in '' $ac_executable_extensions; do
13096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13097    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13099    break 2
13100  fi
13101done
13102  done
13103IFS=$as_save_IFS
13104
13105fi
13106fi
13107ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13108if test -n "$ac_ct_DSYMUTIL"; then
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13110$as_echo "$ac_ct_DSYMUTIL" >&6; }
13111else
13112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
13114fi
13115
13116  if test "x$ac_ct_DSYMUTIL" = x; then
13117    DSYMUTIL=":"
13118  else
13119    case $cross_compiling:$ac_tool_warned in
13120yes:)
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13123ac_tool_warned=yes ;;
13124esac
13125    DSYMUTIL=$ac_ct_DSYMUTIL
13126  fi
13127else
13128  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13129fi
13130
13131    if test -n "$ac_tool_prefix"; then
13132  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13133set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135$as_echo_n "checking for $ac_word... " >&6; }
13136if ${ac_cv_prog_NMEDIT+:} false; then :
13137  $as_echo_n "(cached) " >&6
13138else
13139  if test -n "$NMEDIT"; then
13140  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13141else
13142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143for as_dir in $PATH
13144do
13145  IFS=$as_save_IFS
13146  test -z "$as_dir" && as_dir=.
13147    for ac_exec_ext in '' $ac_executable_extensions; do
13148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13149    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151    break 2
13152  fi
13153done
13154  done
13155IFS=$as_save_IFS
13156
13157fi
13158fi
13159NMEDIT=$ac_cv_prog_NMEDIT
13160if test -n "$NMEDIT"; then
13161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13162$as_echo "$NMEDIT" >&6; }
13163else
13164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165$as_echo "no" >&6; }
13166fi
13167
13168
13169fi
13170if test -z "$ac_cv_prog_NMEDIT"; then
13171  ac_ct_NMEDIT=$NMEDIT
13172  # Extract the first word of "nmedit", so it can be a program name with args.
13173set dummy nmedit; ac_word=$2
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13177  $as_echo_n "(cached) " >&6
13178else
13179  if test -n "$ac_ct_NMEDIT"; then
13180  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  test -z "$as_dir" && as_dir=.
13187    for ac_exec_ext in '' $ac_executable_extensions; do
13188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191    break 2
13192  fi
13193done
13194  done
13195IFS=$as_save_IFS
13196
13197fi
13198fi
13199ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13200if test -n "$ac_ct_NMEDIT"; then
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13202$as_echo "$ac_ct_NMEDIT" >&6; }
13203else
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
13206fi
13207
13208  if test "x$ac_ct_NMEDIT" = x; then
13209    NMEDIT=":"
13210  else
13211    case $cross_compiling:$ac_tool_warned in
13212yes:)
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13215ac_tool_warned=yes ;;
13216esac
13217    NMEDIT=$ac_ct_NMEDIT
13218  fi
13219else
13220  NMEDIT="$ac_cv_prog_NMEDIT"
13221fi
13222
13223    if test -n "$ac_tool_prefix"; then
13224  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13225set dummy ${ac_tool_prefix}lipo; ac_word=$2
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227$as_echo_n "checking for $ac_word... " >&6; }
13228if ${ac_cv_prog_LIPO+:} false; then :
13229  $as_echo_n "(cached) " >&6
13230else
13231  if test -n "$LIPO"; then
13232  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13233else
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237  IFS=$as_save_IFS
13238  test -z "$as_dir" && as_dir=.
13239    for ac_exec_ext in '' $ac_executable_extensions; do
13240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243    break 2
13244  fi
13245done
13246  done
13247IFS=$as_save_IFS
13248
13249fi
13250fi
13251LIPO=$ac_cv_prog_LIPO
13252if test -n "$LIPO"; then
13253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13254$as_echo "$LIPO" >&6; }
13255else
13256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
13258fi
13259
13260
13261fi
13262if test -z "$ac_cv_prog_LIPO"; then
13263  ac_ct_LIPO=$LIPO
13264  # Extract the first word of "lipo", so it can be a program name with args.
13265set dummy lipo; ac_word=$2
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13269  $as_echo_n "(cached) " >&6
13270else
13271  if test -n "$ac_ct_LIPO"; then
13272  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277  IFS=$as_save_IFS
13278  test -z "$as_dir" && as_dir=.
13279    for ac_exec_ext in '' $ac_executable_extensions; do
13280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13281    ac_cv_prog_ac_ct_LIPO="lipo"
13282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283    break 2
13284  fi
13285done
13286  done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13292if test -n "$ac_ct_LIPO"; then
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13294$as_echo "$ac_ct_LIPO" >&6; }
13295else
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298fi
13299
13300  if test "x$ac_ct_LIPO" = x; then
13301    LIPO=":"
13302  else
13303    case $cross_compiling:$ac_tool_warned in
13304yes:)
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307ac_tool_warned=yes ;;
13308esac
13309    LIPO=$ac_ct_LIPO
13310  fi
13311else
13312  LIPO="$ac_cv_prog_LIPO"
13313fi
13314
13315    if test -n "$ac_tool_prefix"; then
13316  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13317set dummy ${ac_tool_prefix}otool; ac_word=$2
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319$as_echo_n "checking for $ac_word... " >&6; }
13320if ${ac_cv_prog_OTOOL+:} false; then :
13321  $as_echo_n "(cached) " >&6
13322else
13323  if test -n "$OTOOL"; then
13324  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329  IFS=$as_save_IFS
13330  test -z "$as_dir" && as_dir=.
13331    for ac_exec_ext in '' $ac_executable_extensions; do
13332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13333    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335    break 2
13336  fi
13337done
13338  done
13339IFS=$as_save_IFS
13340
13341fi
13342fi
13343OTOOL=$ac_cv_prog_OTOOL
13344if test -n "$OTOOL"; then
13345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13346$as_echo "$OTOOL" >&6; }
13347else
13348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
13350fi
13351
13352
13353fi
13354if test -z "$ac_cv_prog_OTOOL"; then
13355  ac_ct_OTOOL=$OTOOL
13356  # Extract the first word of "otool", so it can be a program name with args.
13357set dummy otool; ac_word=$2
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359$as_echo_n "checking for $ac_word... " >&6; }
13360if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  if test -n "$ac_ct_OTOOL"; then
13364  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13365else
13366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367for as_dir in $PATH
13368do
13369  IFS=$as_save_IFS
13370  test -z "$as_dir" && as_dir=.
13371    for ac_exec_ext in '' $ac_executable_extensions; do
13372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13373    ac_cv_prog_ac_ct_OTOOL="otool"
13374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375    break 2
13376  fi
13377done
13378  done
13379IFS=$as_save_IFS
13380
13381fi
13382fi
13383ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13384if test -n "$ac_ct_OTOOL"; then
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13386$as_echo "$ac_ct_OTOOL" >&6; }
13387else
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
13390fi
13391
13392  if test "x$ac_ct_OTOOL" = x; then
13393    OTOOL=":"
13394  else
13395    case $cross_compiling:$ac_tool_warned in
13396yes:)
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13399ac_tool_warned=yes ;;
13400esac
13401    OTOOL=$ac_ct_OTOOL
13402  fi
13403else
13404  OTOOL="$ac_cv_prog_OTOOL"
13405fi
13406
13407    if test -n "$ac_tool_prefix"; then
13408  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13409set dummy ${ac_tool_prefix}otool64; ac_word=$2
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13411$as_echo_n "checking for $ac_word... " >&6; }
13412if ${ac_cv_prog_OTOOL64+:} false; then :
13413  $as_echo_n "(cached) " >&6
13414else
13415  if test -n "$OTOOL64"; then
13416  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13417else
13418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419for as_dir in $PATH
13420do
13421  IFS=$as_save_IFS
13422  test -z "$as_dir" && as_dir=.
13423    for ac_exec_ext in '' $ac_executable_extensions; do
13424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427    break 2
13428  fi
13429done
13430  done
13431IFS=$as_save_IFS
13432
13433fi
13434fi
13435OTOOL64=$ac_cv_prog_OTOOL64
13436if test -n "$OTOOL64"; then
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13438$as_echo "$OTOOL64" >&6; }
13439else
13440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441$as_echo "no" >&6; }
13442fi
13443
13444
13445fi
13446if test -z "$ac_cv_prog_OTOOL64"; then
13447  ac_ct_OTOOL64=$OTOOL64
13448  # Extract the first word of "otool64", so it can be a program name with args.
13449set dummy otool64; ac_word=$2
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451$as_echo_n "checking for $ac_word... " >&6; }
13452if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455  if test -n "$ac_ct_OTOOL64"; then
13456  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13457else
13458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459for as_dir in $PATH
13460do
13461  IFS=$as_save_IFS
13462  test -z "$as_dir" && as_dir=.
13463    for ac_exec_ext in '' $ac_executable_extensions; do
13464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13465    ac_cv_prog_ac_ct_OTOOL64="otool64"
13466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467    break 2
13468  fi
13469done
13470  done
13471IFS=$as_save_IFS
13472
13473fi
13474fi
13475ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13476if test -n "$ac_ct_OTOOL64"; then
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13478$as_echo "$ac_ct_OTOOL64" >&6; }
13479else
13480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
13482fi
13483
13484  if test "x$ac_ct_OTOOL64" = x; then
13485    OTOOL64=":"
13486  else
13487    case $cross_compiling:$ac_tool_warned in
13488yes:)
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13491ac_tool_warned=yes ;;
13492esac
13493    OTOOL64=$ac_ct_OTOOL64
13494  fi
13495else
13496  OTOOL64="$ac_cv_prog_OTOOL64"
13497fi
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13526$as_echo_n "checking for -single_module linker flag... " >&6; }
13527if ${lt_cv_apple_cc_single_mod+:} false; then :
13528  $as_echo_n "(cached) " >&6
13529else
13530  lt_cv_apple_cc_single_mod=no
13531      if test -z "${LT_MULTI_MODULE}"; then
13532	# By default we will add the -single_module flag. You can override
13533	# by either setting the environment variable LT_MULTI_MODULE
13534	# non-empty at configure time, or by adding -multi_module to the
13535	# link flags.
13536	rm -rf libconftest.dylib*
13537	echo "int foo(void){return 1;}" > conftest.c
13538	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13539-dynamiclib -Wl,-single_module conftest.c" >&5
13540	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13541	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13542        _lt_result=$?
13543	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13544	  lt_cv_apple_cc_single_mod=yes
13545	else
13546	  cat conftest.err >&5
13547	fi
13548	rm -rf libconftest.dylib*
13549	rm -f conftest.*
13550      fi
13551fi
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13553$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13555$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13556if ${lt_cv_ld_exported_symbols_list+:} false; then :
13557  $as_echo_n "(cached) " >&6
13558else
13559  lt_cv_ld_exported_symbols_list=no
13560      save_LDFLAGS=$LDFLAGS
13561      echo "_main" > conftest.sym
13562      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13563      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564/* end confdefs.h.  */
13565
13566int
13567main ()
13568{
13569
13570  ;
13571  return 0;
13572}
13573_ACEOF
13574if ac_fn_c_try_link "$LINENO"; then :
13575  lt_cv_ld_exported_symbols_list=yes
13576else
13577  lt_cv_ld_exported_symbols_list=no
13578fi
13579rm -f core conftest.err conftest.$ac_objext \
13580    conftest$ac_exeext conftest.$ac_ext
13581	LDFLAGS="$save_LDFLAGS"
13582
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13585$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13587$as_echo_n "checking for -force_load linker flag... " >&6; }
13588if ${lt_cv_ld_force_load+:} false; then :
13589  $as_echo_n "(cached) " >&6
13590else
13591  lt_cv_ld_force_load=no
13592      cat > conftest.c << _LT_EOF
13593int forced_loaded() { return 2;}
13594_LT_EOF
13595      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13596      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13597      echo "$AR cru libconftest.a conftest.o" >&5
13598      $AR cru libconftest.a conftest.o 2>&5
13599      echo "$RANLIB libconftest.a" >&5
13600      $RANLIB libconftest.a 2>&5
13601      cat > conftest.c << _LT_EOF
13602int main() { return 0;}
13603_LT_EOF
13604      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13605      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13606      _lt_result=$?
13607      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13608	lt_cv_ld_force_load=yes
13609      else
13610	cat conftest.err >&5
13611      fi
13612        rm -f conftest.err libconftest.a conftest conftest.c
13613        rm -rf conftest.dSYM
13614
13615fi
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13617$as_echo "$lt_cv_ld_force_load" >&6; }
13618    case $host_os in
13619    rhapsody* | darwin1.[012])
13620      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13621    darwin1.*)
13622      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13623    darwin*) # darwin 5.x on
13624      # if running on 10.5 or later, the deployment target defaults
13625      # to the OS version, if on x86, and 10.4, the deployment
13626      # target defaults to 10.4. Don't you love it?
13627      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13628	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13629	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13630	10.[012]*)
13631	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13632	10.*)
13633	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13634      esac
13635    ;;
13636  esac
13637    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13638      _lt_dar_single_mod='$single_module'
13639    fi
13640    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13641      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13642    else
13643      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13644    fi
13645    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13646      _lt_dsymutil='~$DSYMUTIL $lib || :'
13647    else
13648      _lt_dsymutil=
13649    fi
13650    ;;
13651  esac
13652
13653for ac_header in dlfcn.h
13654do :
13655  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13656"
13657if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13658  cat >>confdefs.h <<_ACEOF
13659#define HAVE_DLFCN_H 1
13660_ACEOF
13661
13662fi
13663
13664done
13665
13666
13667
13668
13669
13670# Set options
13671
13672
13673
13674        enable_dlopen=no
13675
13676
13677  enable_win32_dll=no
13678
13679
13680            # Check whether --enable-shared was given.
13681if test "${enable_shared+set}" = set; then :
13682  enableval=$enable_shared; p=${PACKAGE-default}
13683    case $enableval in
13684    yes) enable_shared=yes ;;
13685    no) enable_shared=no ;;
13686    *)
13687      enable_shared=no
13688      # Look at the argument we got.  We use all the common list separators.
13689      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13690      for pkg in $enableval; do
13691	IFS="$lt_save_ifs"
13692	if test "X$pkg" = "X$p"; then
13693	  enable_shared=yes
13694	fi
13695      done
13696      IFS="$lt_save_ifs"
13697      ;;
13698    esac
13699else
13700  enable_shared=yes
13701fi
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713# Check whether --with-pic was given.
13714if test "${with_pic+set}" = set; then :
13715  withval=$with_pic; pic_mode="$withval"
13716else
13717  pic_mode=default
13718fi
13719
13720
13721test -z "$pic_mode" && pic_mode=default
13722
13723
13724
13725
13726
13727
13728
13729  # Check whether --enable-fast-install was given.
13730if test "${enable_fast_install+set}" = set; then :
13731  enableval=$enable_fast_install; p=${PACKAGE-default}
13732    case $enableval in
13733    yes) enable_fast_install=yes ;;
13734    no) enable_fast_install=no ;;
13735    *)
13736      enable_fast_install=no
13737      # Look at the argument we got.  We use all the common list separators.
13738      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13739      for pkg in $enableval; do
13740	IFS="$lt_save_ifs"
13741	if test "X$pkg" = "X$p"; then
13742	  enable_fast_install=yes
13743	fi
13744      done
13745      IFS="$lt_save_ifs"
13746      ;;
13747    esac
13748else
13749  enable_fast_install=yes
13750fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762# This can be used to rebuild libtool when needed
13763LIBTOOL_DEPS="$ltmain"
13764
13765# Always use our own libtool.
13766LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793test -z "$LN_S" && LN_S="ln -s"
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808if test -n "${ZSH_VERSION+set}" ; then
13809   setopt NO_GLOB_SUBST
13810fi
13811
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13813$as_echo_n "checking for objdir... " >&6; }
13814if ${lt_cv_objdir+:} false; then :
13815  $as_echo_n "(cached) " >&6
13816else
13817  rm -f .libs 2>/dev/null
13818mkdir .libs 2>/dev/null
13819if test -d .libs; then
13820  lt_cv_objdir=.libs
13821else
13822  # MS-DOS does not allow filenames that begin with a dot.
13823  lt_cv_objdir=_libs
13824fi
13825rmdir .libs 2>/dev/null
13826fi
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13828$as_echo "$lt_cv_objdir" >&6; }
13829objdir=$lt_cv_objdir
13830
13831
13832
13833
13834
13835cat >>confdefs.h <<_ACEOF
13836#define LT_OBJDIR "$lt_cv_objdir/"
13837_ACEOF
13838
13839
13840
13841
13842case $host_os in
13843aix3*)
13844  # AIX sometimes has problems with the GCC collect2 program.  For some
13845  # reason, if we set the COLLECT_NAMES environment variable, the problems
13846  # vanish in a puff of smoke.
13847  if test "X${COLLECT_NAMES+set}" != Xset; then
13848    COLLECT_NAMES=
13849    export COLLECT_NAMES
13850  fi
13851  ;;
13852esac
13853
13854# Global variables:
13855ofile=libtool
13856can_build_shared=yes
13857
13858# All known linkers require a `.a' archive for static linking (except MSVC,
13859# which needs '.lib').
13860libext=a
13861
13862with_gnu_ld="$lt_cv_prog_gnu_ld"
13863
13864old_CC="$CC"
13865old_CFLAGS="$CFLAGS"
13866
13867# Set sane defaults for various variables
13868test -z "$CC" && CC=cc
13869test -z "$LTCC" && LTCC=$CC
13870test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13871test -z "$LD" && LD=ld
13872test -z "$ac_objext" && ac_objext=o
13873
13874for cc_temp in $compiler""; do
13875  case $cc_temp in
13876    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13877    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13878    \-*) ;;
13879    *) break;;
13880  esac
13881done
13882cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13883
13884
13885# Only perform the check for file, if the check method requires it
13886test -z "$MAGIC_CMD" && MAGIC_CMD=file
13887case $deplibs_check_method in
13888file_magic*)
13889  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13891$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13892if ${lt_cv_path_MAGIC_CMD+:} false; then :
13893  $as_echo_n "(cached) " >&6
13894else
13895  case $MAGIC_CMD in
13896[\\/*] |  ?:[\\/]*)
13897  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13898  ;;
13899*)
13900  lt_save_MAGIC_CMD="$MAGIC_CMD"
13901  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13902  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13903  for ac_dir in $ac_dummy; do
13904    IFS="$lt_save_ifs"
13905    test -z "$ac_dir" && ac_dir=.
13906    if test -f $ac_dir/${ac_tool_prefix}file; then
13907      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13908      if test -n "$file_magic_test_file"; then
13909	case $deplibs_check_method in
13910	"file_magic "*)
13911	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13912	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13913	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13914	    $EGREP "$file_magic_regex" > /dev/null; then
13915	    :
13916	  else
13917	    cat <<_LT_EOF 1>&2
13918
13919*** Warning: the command libtool uses to detect shared libraries,
13920*** $file_magic_cmd, produces output that libtool cannot recognize.
13921*** The result is that libtool may fail to recognize shared libraries
13922*** as such.  This will affect the creation of libtool libraries that
13923*** depend on shared libraries, but programs linked with such libtool
13924*** libraries will work regardless of this problem.  Nevertheless, you
13925*** may want to report the problem to your system manager and/or to
13926*** bug-libtool@gnu.org
13927
13928_LT_EOF
13929	  fi ;;
13930	esac
13931      fi
13932      break
13933    fi
13934  done
13935  IFS="$lt_save_ifs"
13936  MAGIC_CMD="$lt_save_MAGIC_CMD"
13937  ;;
13938esac
13939fi
13940
13941MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13942if test -n "$MAGIC_CMD"; then
13943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13944$as_echo "$MAGIC_CMD" >&6; }
13945else
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
13948fi
13949
13950
13951
13952
13953
13954if test -z "$lt_cv_path_MAGIC_CMD"; then
13955  if test -n "$ac_tool_prefix"; then
13956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13957$as_echo_n "checking for file... " >&6; }
13958if ${lt_cv_path_MAGIC_CMD+:} false; then :
13959  $as_echo_n "(cached) " >&6
13960else
13961  case $MAGIC_CMD in
13962[\\/*] |  ?:[\\/]*)
13963  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13964  ;;
13965*)
13966  lt_save_MAGIC_CMD="$MAGIC_CMD"
13967  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13968  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13969  for ac_dir in $ac_dummy; do
13970    IFS="$lt_save_ifs"
13971    test -z "$ac_dir" && ac_dir=.
13972    if test -f $ac_dir/file; then
13973      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13974      if test -n "$file_magic_test_file"; then
13975	case $deplibs_check_method in
13976	"file_magic "*)
13977	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13978	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13979	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13980	    $EGREP "$file_magic_regex" > /dev/null; then
13981	    :
13982	  else
13983	    cat <<_LT_EOF 1>&2
13984
13985*** Warning: the command libtool uses to detect shared libraries,
13986*** $file_magic_cmd, produces output that libtool cannot recognize.
13987*** The result is that libtool may fail to recognize shared libraries
13988*** as such.  This will affect the creation of libtool libraries that
13989*** depend on shared libraries, but programs linked with such libtool
13990*** libraries will work regardless of this problem.  Nevertheless, you
13991*** may want to report the problem to your system manager and/or to
13992*** bug-libtool@gnu.org
13993
13994_LT_EOF
13995	  fi ;;
13996	esac
13997      fi
13998      break
13999    fi
14000  done
14001  IFS="$lt_save_ifs"
14002  MAGIC_CMD="$lt_save_MAGIC_CMD"
14003  ;;
14004esac
14005fi
14006
14007MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14008if test -n "$MAGIC_CMD"; then
14009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14010$as_echo "$MAGIC_CMD" >&6; }
14011else
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013$as_echo "no" >&6; }
14014fi
14015
14016
14017  else
14018    MAGIC_CMD=:
14019  fi
14020fi
14021
14022  fi
14023  ;;
14024esac
14025
14026# Use C for the default configuration in the libtool script
14027
14028lt_save_CC="$CC"
14029ac_ext=c
14030ac_cpp='$CPP $CPPFLAGS'
14031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14033ac_compiler_gnu=$ac_cv_c_compiler_gnu
14034
14035
14036# Source file extension for C test sources.
14037ac_ext=c
14038
14039# Object file extension for compiled C test sources.
14040objext=o
14041objext=$objext
14042
14043# Code to be used in simple compile tests
14044lt_simple_compile_test_code="int some_variable = 0;"
14045
14046# Code to be used in simple link tests
14047lt_simple_link_test_code='int main(){return(0);}'
14048
14049
14050
14051
14052
14053
14054
14055# If no C compiler was specified, use CC.
14056LTCC=${LTCC-"$CC"}
14057
14058# If no C compiler flags were specified, use CFLAGS.
14059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14060
14061# Allow CC to be a program name with arguments.
14062compiler=$CC
14063
14064# Save the default compiler, since it gets overwritten when the other
14065# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14066compiler_DEFAULT=$CC
14067
14068# save warnings/boilerplate of simple test code
14069ac_outfile=conftest.$ac_objext
14070echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14072_lt_compiler_boilerplate=`cat conftest.err`
14073$RM conftest*
14074
14075ac_outfile=conftest.$ac_objext
14076echo "$lt_simple_link_test_code" >conftest.$ac_ext
14077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078_lt_linker_boilerplate=`cat conftest.err`
14079$RM -r conftest*
14080
14081
14082if test -n "$compiler"; then
14083
14084lt_prog_compiler_no_builtin_flag=
14085
14086if test "$GCC" = yes; then
14087  case $cc_basename in
14088  nvcc*)
14089    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14090  *)
14091    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14092  esac
14093
14094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14095$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14096if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  lt_cv_prog_compiler_rtti_exceptions=no
14100   ac_outfile=conftest.$ac_objext
14101   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14102   lt_compiler_flag="-fno-rtti -fno-exceptions"
14103   # Insert the option either (1) after the last *FLAGS variable, or
14104   # (2) before a word containing "conftest.", or (3) at the end.
14105   # Note that $ac_compile itself does not contain backslashes and begins
14106   # with a dollar sign (not a hyphen), so the echo should work correctly.
14107   # The option is referenced via a variable to avoid confusing sed.
14108   lt_compile=`echo "$ac_compile" | $SED \
14109   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14110   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14111   -e 's:$: $lt_compiler_flag:'`
14112   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14113   (eval "$lt_compile" 2>conftest.err)
14114   ac_status=$?
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   if (exit $ac_status) && test -s "$ac_outfile"; then
14118     # The compiler can only warn and ignore the option if not recognized
14119     # So say no if there are warnings other than the usual output.
14120     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14121     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14122     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14123       lt_cv_prog_compiler_rtti_exceptions=yes
14124     fi
14125   fi
14126   $RM conftest*
14127
14128fi
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14130$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14131
14132if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14133    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14134else
14135    :
14136fi
14137
14138fi
14139
14140
14141
14142
14143
14144
14145  lt_prog_compiler_wl=
14146lt_prog_compiler_pic=
14147lt_prog_compiler_static=
14148
14149
14150  if test "$GCC" = yes; then
14151    lt_prog_compiler_wl='-Wl,'
14152    lt_prog_compiler_static='-static'
14153
14154    case $host_os in
14155      aix*)
14156      # All AIX code is PIC.
14157      if test "$host_cpu" = ia64; then
14158	# AIX 5 now supports IA64 processor
14159	lt_prog_compiler_static='-Bstatic'
14160      fi
14161      ;;
14162
14163    amigaos*)
14164      case $host_cpu in
14165      powerpc)
14166            # see comment about AmigaOS4 .so support
14167            lt_prog_compiler_pic='-fPIC'
14168        ;;
14169      m68k)
14170            # FIXME: we need at least 68020 code to build shared libraries, but
14171            # adding the `-m68020' flag to GCC prevents building anything better,
14172            # like `-m68040'.
14173            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14174        ;;
14175      esac
14176      ;;
14177
14178    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179      # PIC is the default for these OSes.
14180      ;;
14181
14182    mingw* | cygwin* | pw32* | os2* | cegcc*)
14183      # This hack is so that the source file can tell whether it is being
14184      # built for inclusion in a dll (and should export symbols for example).
14185      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14186      # (--disable-auto-import) libraries
14187      lt_prog_compiler_pic='-DDLL_EXPORT'
14188      ;;
14189
14190    darwin* | rhapsody*)
14191      # PIC is the default on this platform
14192      # Common symbols not allowed in MH_DYLIB files
14193      lt_prog_compiler_pic='-fno-common'
14194      ;;
14195
14196    haiku*)
14197      # PIC is the default for Haiku.
14198      # The "-static" flag exists, but is broken.
14199      lt_prog_compiler_static=
14200      ;;
14201
14202    hpux*)
14203      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14204      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14205      # sets the default TLS model and affects inlining.
14206      case $host_cpu in
14207      hppa*64*)
14208	# +Z the default
14209	;;
14210      *)
14211	lt_prog_compiler_pic='-fPIC'
14212	;;
14213      esac
14214      ;;
14215
14216    interix[3-9]*)
14217      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14218      # Instead, we relocate shared libraries at runtime.
14219      ;;
14220
14221    msdosdjgpp*)
14222      # Just because we use GCC doesn't mean we suddenly get shared libraries
14223      # on systems that don't support them.
14224      lt_prog_compiler_can_build_shared=no
14225      enable_shared=no
14226      ;;
14227
14228    *nto* | *qnx*)
14229      # QNX uses GNU C++, but need to define -shared option too, otherwise
14230      # it will coredump.
14231      lt_prog_compiler_pic='-fPIC -shared'
14232      ;;
14233
14234    sysv4*MP*)
14235      if test -d /usr/nec; then
14236	lt_prog_compiler_pic=-Kconform_pic
14237      fi
14238      ;;
14239
14240    *)
14241      lt_prog_compiler_pic='-fPIC'
14242      ;;
14243    esac
14244
14245    case $cc_basename in
14246    nvcc*) # Cuda Compiler Driver 2.2
14247      lt_prog_compiler_wl='-Xlinker '
14248      lt_prog_compiler_pic='-Xcompiler -fPIC'
14249      ;;
14250    esac
14251  else
14252    # PORTME Check for flag to pass linker flags through the system compiler.
14253    case $host_os in
14254    aix*)
14255      lt_prog_compiler_wl='-Wl,'
14256      if test "$host_cpu" = ia64; then
14257	# AIX 5 now supports IA64 processor
14258	lt_prog_compiler_static='-Bstatic'
14259      else
14260	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14261      fi
14262      ;;
14263
14264    mingw* | cygwin* | pw32* | os2* | cegcc*)
14265      # This hack is so that the source file can tell whether it is being
14266      # built for inclusion in a dll (and should export symbols for example).
14267      lt_prog_compiler_pic='-DDLL_EXPORT'
14268      ;;
14269
14270    hpux9* | hpux10* | hpux11*)
14271      lt_prog_compiler_wl='-Wl,'
14272      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14273      # not for PA HP-UX.
14274      case $host_cpu in
14275      hppa*64*|ia64*)
14276	# +Z the default
14277	;;
14278      *)
14279	lt_prog_compiler_pic='+Z'
14280	;;
14281      esac
14282      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14283      lt_prog_compiler_static='${wl}-a ${wl}archive'
14284      ;;
14285
14286    irix5* | irix6* | nonstopux*)
14287      lt_prog_compiler_wl='-Wl,'
14288      # PIC (with -KPIC) is the default.
14289      lt_prog_compiler_static='-non_shared'
14290      ;;
14291
14292    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14293      case $cc_basename in
14294      # old Intel for x86_64 which still supported -KPIC.
14295      ecc*)
14296	lt_prog_compiler_wl='-Wl,'
14297	lt_prog_compiler_pic='-KPIC'
14298	lt_prog_compiler_static='-static'
14299        ;;
14300      # icc used to be incompatible with GCC.
14301      # ICC 10 doesn't accept -KPIC any more.
14302      icc* | ifort*)
14303	lt_prog_compiler_wl='-Wl,'
14304	lt_prog_compiler_pic='-fPIC'
14305	lt_prog_compiler_static='-static'
14306        ;;
14307      # Lahey Fortran 8.1.
14308      lf95*)
14309	lt_prog_compiler_wl='-Wl,'
14310	lt_prog_compiler_pic='--shared'
14311	lt_prog_compiler_static='--static'
14312	;;
14313      nagfor*)
14314	# NAG Fortran compiler
14315	lt_prog_compiler_wl='-Wl,-Wl,,'
14316	lt_prog_compiler_pic='-PIC'
14317	lt_prog_compiler_static='-Bstatic'
14318	;;
14319      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14320        # Portland Group compilers (*not* the Pentium gcc compiler,
14321	# which looks to be a dead project)
14322	lt_prog_compiler_wl='-Wl,'
14323	lt_prog_compiler_pic='-fpic'
14324	lt_prog_compiler_static='-Bstatic'
14325        ;;
14326      ccc*)
14327        lt_prog_compiler_wl='-Wl,'
14328        # All Alpha code is PIC.
14329        lt_prog_compiler_static='-non_shared'
14330        ;;
14331      xl* | bgxl* | bgf* | mpixl*)
14332	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14333	lt_prog_compiler_wl='-Wl,'
14334	lt_prog_compiler_pic='-qpic'
14335	lt_prog_compiler_static='-qstaticlink'
14336	;;
14337      *)
14338	case `$CC -V 2>&1 | sed 5q` in
14339	*Sun\ F* | *Sun*Fortran*)
14340	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14341	  lt_prog_compiler_pic='-KPIC'
14342	  lt_prog_compiler_static='-Bstatic'
14343	  lt_prog_compiler_wl=''
14344	  ;;
14345	*Sun\ C*)
14346	  # Sun C 5.9
14347	  lt_prog_compiler_pic='-KPIC'
14348	  lt_prog_compiler_static='-Bstatic'
14349	  lt_prog_compiler_wl='-Wl,'
14350	  ;;
14351	esac
14352	;;
14353      esac
14354      ;;
14355
14356    newsos6)
14357      lt_prog_compiler_pic='-KPIC'
14358      lt_prog_compiler_static='-Bstatic'
14359      ;;
14360
14361    *nto* | *qnx*)
14362      # QNX uses GNU C++, but need to define -shared option too, otherwise
14363      # it will coredump.
14364      lt_prog_compiler_pic='-fPIC -shared'
14365      ;;
14366
14367    osf3* | osf4* | osf5*)
14368      lt_prog_compiler_wl='-Wl,'
14369      # All OSF/1 code is PIC.
14370      lt_prog_compiler_static='-non_shared'
14371      ;;
14372
14373    rdos*)
14374      lt_prog_compiler_static='-non_shared'
14375      ;;
14376
14377    solaris*)
14378      lt_prog_compiler_pic='-KPIC'
14379      lt_prog_compiler_static='-Bstatic'
14380      case $cc_basename in
14381      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14382	lt_prog_compiler_wl='-Qoption ld ';;
14383      *)
14384	lt_prog_compiler_wl='-Wl,';;
14385      esac
14386      ;;
14387
14388    sunos4*)
14389      lt_prog_compiler_wl='-Qoption ld '
14390      lt_prog_compiler_pic='-PIC'
14391      lt_prog_compiler_static='-Bstatic'
14392      ;;
14393
14394    sysv4 | sysv4.2uw2* | sysv4.3*)
14395      lt_prog_compiler_wl='-Wl,'
14396      lt_prog_compiler_pic='-KPIC'
14397      lt_prog_compiler_static='-Bstatic'
14398      ;;
14399
14400    sysv4*MP*)
14401      if test -d /usr/nec ;then
14402	lt_prog_compiler_pic='-Kconform_pic'
14403	lt_prog_compiler_static='-Bstatic'
14404      fi
14405      ;;
14406
14407    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14408      lt_prog_compiler_wl='-Wl,'
14409      lt_prog_compiler_pic='-KPIC'
14410      lt_prog_compiler_static='-Bstatic'
14411      ;;
14412
14413    unicos*)
14414      lt_prog_compiler_wl='-Wl,'
14415      lt_prog_compiler_can_build_shared=no
14416      ;;
14417
14418    uts4*)
14419      lt_prog_compiler_pic='-pic'
14420      lt_prog_compiler_static='-Bstatic'
14421      ;;
14422
14423    *)
14424      lt_prog_compiler_can_build_shared=no
14425      ;;
14426    esac
14427  fi
14428
14429case $host_os in
14430  # For platforms which do not support PIC, -DPIC is meaningless:
14431  *djgpp*)
14432    lt_prog_compiler_pic=
14433    ;;
14434  *)
14435    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14436    ;;
14437esac
14438
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14440$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14441if ${lt_cv_prog_compiler_pic+:} false; then :
14442  $as_echo_n "(cached) " >&6
14443else
14444  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14447$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14448lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14449
14450#
14451# Check to make sure the PIC flag actually works.
14452#
14453if test -n "$lt_prog_compiler_pic"; then
14454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14455$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14456if ${lt_cv_prog_compiler_pic_works+:} false; then :
14457  $as_echo_n "(cached) " >&6
14458else
14459  lt_cv_prog_compiler_pic_works=no
14460   ac_outfile=conftest.$ac_objext
14461   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14462   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14463   # Insert the option either (1) after the last *FLAGS variable, or
14464   # (2) before a word containing "conftest.", or (3) at the end.
14465   # Note that $ac_compile itself does not contain backslashes and begins
14466   # with a dollar sign (not a hyphen), so the echo should work correctly.
14467   # The option is referenced via a variable to avoid confusing sed.
14468   lt_compile=`echo "$ac_compile" | $SED \
14469   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14470   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471   -e 's:$: $lt_compiler_flag:'`
14472   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14473   (eval "$lt_compile" 2>conftest.err)
14474   ac_status=$?
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   if (exit $ac_status) && test -s "$ac_outfile"; then
14478     # The compiler can only warn and ignore the option if not recognized
14479     # So say no if there are warnings other than the usual output.
14480     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14481     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14482     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14483       lt_cv_prog_compiler_pic_works=yes
14484     fi
14485   fi
14486   $RM conftest*
14487
14488fi
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14490$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14491
14492if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14493    case $lt_prog_compiler_pic in
14494     "" | " "*) ;;
14495     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14496     esac
14497else
14498    lt_prog_compiler_pic=
14499     lt_prog_compiler_can_build_shared=no
14500fi
14501
14502fi
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514#
14515# Check to make sure the static flag actually works.
14516#
14517wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14520if ${lt_cv_prog_compiler_static_works+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523  lt_cv_prog_compiler_static_works=no
14524   save_LDFLAGS="$LDFLAGS"
14525   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14527   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528     # The linker can only warn and ignore the option if not recognized
14529     # So say no if there are warnings
14530     if test -s conftest.err; then
14531       # Append any errors to the config.log.
14532       cat conftest.err 1>&5
14533       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14534       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535       if diff conftest.exp conftest.er2 >/dev/null; then
14536         lt_cv_prog_compiler_static_works=yes
14537       fi
14538     else
14539       lt_cv_prog_compiler_static_works=yes
14540     fi
14541   fi
14542   $RM -r conftest*
14543   LDFLAGS="$save_LDFLAGS"
14544
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14547$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14548
14549if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14550    :
14551else
14552    lt_prog_compiler_static=
14553fi
14554
14555
14556
14557
14558
14559
14560
14561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14562$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14563if ${lt_cv_prog_compiler_c_o+:} false; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  lt_cv_prog_compiler_c_o=no
14567   $RM -r conftest 2>/dev/null
14568   mkdir conftest
14569   cd conftest
14570   mkdir out
14571   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572
14573   lt_compiler_flag="-o out/conftest2.$ac_objext"
14574   # Insert the option either (1) after the last *FLAGS variable, or
14575   # (2) before a word containing "conftest.", or (3) at the end.
14576   # Note that $ac_compile itself does not contain backslashes and begins
14577   # with a dollar sign (not a hyphen), so the echo should work correctly.
14578   lt_compile=`echo "$ac_compile" | $SED \
14579   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581   -e 's:$: $lt_compiler_flag:'`
14582   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14583   (eval "$lt_compile" 2>out/conftest.err)
14584   ac_status=$?
14585   cat out/conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14588   then
14589     # The compiler can only warn and ignore the option if not recognized
14590     # So say no if there are warnings
14591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14592     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14593     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14594       lt_cv_prog_compiler_c_o=yes
14595     fi
14596   fi
14597   chmod u+w . 2>&5
14598   $RM conftest*
14599   # SGI C++ compiler will create directory out/ii_files/ for
14600   # template instantiation
14601   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14602   $RM out/* && rmdir out
14603   cd ..
14604   $RM -r conftest
14605   $RM conftest*
14606
14607fi
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14609$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14610
14611
14612
14613
14614
14615
14616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14617$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14618if ${lt_cv_prog_compiler_c_o+:} false; then :
14619  $as_echo_n "(cached) " >&6
14620else
14621  lt_cv_prog_compiler_c_o=no
14622   $RM -r conftest 2>/dev/null
14623   mkdir conftest
14624   cd conftest
14625   mkdir out
14626   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14627
14628   lt_compiler_flag="-o out/conftest2.$ac_objext"
14629   # Insert the option either (1) after the last *FLAGS variable, or
14630   # (2) before a word containing "conftest.", or (3) at the end.
14631   # Note that $ac_compile itself does not contain backslashes and begins
14632   # with a dollar sign (not a hyphen), so the echo should work correctly.
14633   lt_compile=`echo "$ac_compile" | $SED \
14634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14636   -e 's:$: $lt_compiler_flag:'`
14637   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14638   (eval "$lt_compile" 2>out/conftest.err)
14639   ac_status=$?
14640   cat out/conftest.err >&5
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14643   then
14644     # The compiler can only warn and ignore the option if not recognized
14645     # So say no if there are warnings
14646     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14647     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14648     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14649       lt_cv_prog_compiler_c_o=yes
14650     fi
14651   fi
14652   chmod u+w . 2>&5
14653   $RM conftest*
14654   # SGI C++ compiler will create directory out/ii_files/ for
14655   # template instantiation
14656   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14657   $RM out/* && rmdir out
14658   cd ..
14659   $RM -r conftest
14660   $RM conftest*
14661
14662fi
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14664$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14665
14666
14667
14668
14669hard_links="nottested"
14670if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14671  # do not overwrite the value of need_locks provided by the user
14672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14673$as_echo_n "checking if we can lock with hard links... " >&6; }
14674  hard_links=yes
14675  $RM conftest*
14676  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14677  touch conftest.a
14678  ln conftest.a conftest.b 2>&5 || hard_links=no
14679  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14681$as_echo "$hard_links" >&6; }
14682  if test "$hard_links" = no; then
14683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14684$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14685    need_locks=warn
14686  fi
14687else
14688  need_locks=no
14689fi
14690
14691
14692
14693
14694
14695
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14698
14699  runpath_var=
14700  allow_undefined_flag=
14701  always_export_symbols=no
14702  archive_cmds=
14703  archive_expsym_cmds=
14704  compiler_needs_object=no
14705  enable_shared_with_static_runtimes=no
14706  export_dynamic_flag_spec=
14707  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14708  hardcode_automatic=no
14709  hardcode_direct=no
14710  hardcode_direct_absolute=no
14711  hardcode_libdir_flag_spec=
14712  hardcode_libdir_flag_spec_ld=
14713  hardcode_libdir_separator=
14714  hardcode_minus_L=no
14715  hardcode_shlibpath_var=unsupported
14716  inherit_rpath=no
14717  link_all_deplibs=unknown
14718  module_cmds=
14719  module_expsym_cmds=
14720  old_archive_from_new_cmds=
14721  old_archive_from_expsyms_cmds=
14722  thread_safe_flag_spec=
14723  whole_archive_flag_spec=
14724  # include_expsyms should be a list of space-separated symbols to be *always*
14725  # included in the symbol list
14726  include_expsyms=
14727  # exclude_expsyms can be an extended regexp of symbols to exclude
14728  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14729  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14730  # as well as any symbol that contains `d'.
14731  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14732  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14733  # platforms (ab)use it in PIC code, but their linkers get confused if
14734  # the symbol is explicitly referenced.  Since portable code cannot
14735  # rely on this symbol name, it's probably fine to never include it in
14736  # preloaded symbol tables.
14737  # Exclude shared library initialization/finalization symbols.
14738  extract_expsyms_cmds=
14739
14740  case $host_os in
14741  cygwin* | mingw* | pw32* | cegcc*)
14742    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14743    # When not using gcc, we currently assume that we are using
14744    # Microsoft Visual C++.
14745    if test "$GCC" != yes; then
14746      with_gnu_ld=no
14747    fi
14748    ;;
14749  interix*)
14750    # we just hope/assume this is gcc and not c89 (= MSVC++)
14751    with_gnu_ld=yes
14752    ;;
14753  openbsd*)
14754    with_gnu_ld=no
14755    ;;
14756  esac
14757
14758  ld_shlibs=yes
14759
14760  # On some targets, GNU ld is compatible enough with the native linker
14761  # that we're better off using the native interface for both.
14762  lt_use_gnu_ld_interface=no
14763  if test "$with_gnu_ld" = yes; then
14764    case $host_os in
14765      aix*)
14766	# The AIX port of GNU ld has always aspired to compatibility
14767	# with the native linker.  However, as the warning in the GNU ld
14768	# block says, versions before 2.19.5* couldn't really create working
14769	# shared libraries, regardless of the interface used.
14770	case `$LD -v 2>&1` in
14771	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14772	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14773	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14774	  *)
14775	    lt_use_gnu_ld_interface=yes
14776	    ;;
14777	esac
14778	;;
14779      *)
14780	lt_use_gnu_ld_interface=yes
14781	;;
14782    esac
14783  fi
14784
14785  if test "$lt_use_gnu_ld_interface" = yes; then
14786    # If archive_cmds runs LD, not CC, wlarc should be empty
14787    wlarc='${wl}'
14788
14789    # Set some defaults for GNU ld with shared library support. These
14790    # are reset later if shared libraries are not supported. Putting them
14791    # here allows them to be overridden if necessary.
14792    runpath_var=LD_RUN_PATH
14793    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14794    export_dynamic_flag_spec='${wl}--export-dynamic'
14795    # ancient GNU ld didn't support --whole-archive et. al.
14796    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14797      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14798    else
14799      whole_archive_flag_spec=
14800    fi
14801    supports_anon_versioning=no
14802    case `$LD -v 2>&1` in
14803      *GNU\ gold*) supports_anon_versioning=yes ;;
14804      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14805      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14806      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14807      *\ 2.11.*) ;; # other 2.11 versions
14808      *) supports_anon_versioning=yes ;;
14809    esac
14810
14811    # See if GNU ld supports shared libraries.
14812    case $host_os in
14813    aix[3-9]*)
14814      # On AIX/PPC, the GNU linker is very broken
14815      if test "$host_cpu" != ia64; then
14816	ld_shlibs=no
14817	cat <<_LT_EOF 1>&2
14818
14819*** Warning: the GNU linker, at least up to release 2.19, is reported
14820*** to be unable to reliably create shared libraries on AIX.
14821*** Therefore, libtool is disabling shared libraries support.  If you
14822*** really care for shared libraries, you may want to install binutils
14823*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14824*** You will then need to restart the configuration process.
14825
14826_LT_EOF
14827      fi
14828      ;;
14829
14830    amigaos*)
14831      case $host_cpu in
14832      powerpc)
14833            # see comment about AmigaOS4 .so support
14834            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835            archive_expsym_cmds=''
14836        ;;
14837      m68k)
14838            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)'
14839            hardcode_libdir_flag_spec='-L$libdir'
14840            hardcode_minus_L=yes
14841        ;;
14842      esac
14843      ;;
14844
14845    beos*)
14846      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14847	allow_undefined_flag=unsupported
14848	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14849	# support --undefined.  This deserves some investigation.  FIXME
14850	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851      else
14852	ld_shlibs=no
14853      fi
14854      ;;
14855
14856    cygwin* | mingw* | pw32* | cegcc*)
14857      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14858      # as there is no search path for DLLs.
14859      hardcode_libdir_flag_spec='-L$libdir'
14860      export_dynamic_flag_spec='${wl}--export-all-symbols'
14861      allow_undefined_flag=unsupported
14862      always_export_symbols=no
14863      enable_shared_with_static_runtimes=yes
14864      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'
14865      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14866
14867      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14868        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14869	# If the export-symbols file already is a .def file (1st line
14870	# is EXPORTS), use it as is; otherwise, prepend...
14871	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14872	  cp $export_symbols $output_objdir/$soname.def;
14873	else
14874	  echo EXPORTS > $output_objdir/$soname.def;
14875	  cat $export_symbols >> $output_objdir/$soname.def;
14876	fi~
14877	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14878      else
14879	ld_shlibs=no
14880      fi
14881      ;;
14882
14883    haiku*)
14884      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14885      link_all_deplibs=yes
14886      ;;
14887
14888    interix[3-9]*)
14889      hardcode_direct=no
14890      hardcode_shlibpath_var=no
14891      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14892      export_dynamic_flag_spec='${wl}-E'
14893      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14894      # Instead, shared libraries are loaded at an image base (0x10000000 by
14895      # default) and relocated if they conflict, which is a slow very memory
14896      # consuming and fragmenting process.  To avoid this, we pick a random,
14897      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14898      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14899      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14900      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'
14901      ;;
14902
14903    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14904      tmp_diet=no
14905      if test "$host_os" = linux-dietlibc; then
14906	case $cc_basename in
14907	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14908	esac
14909      fi
14910      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14911	 && test "$tmp_diet" = no
14912      then
14913	tmp_addflag=' $pic_flag'
14914	tmp_sharedflag='-shared'
14915	case $cc_basename,$host_cpu in
14916        pgcc*)				# Portland Group C compiler
14917	  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'
14918	  tmp_addflag=' $pic_flag'
14919	  ;;
14920	pgf77* | pgf90* | pgf95* | pgfortran*)
14921					# Portland Group f77 and f90 compilers
14922	  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'
14923	  tmp_addflag=' $pic_flag -Mnomain' ;;
14924	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14925	  tmp_addflag=' -i_dynamic' ;;
14926	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14927	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14928	ifc* | ifort*)			# Intel Fortran compiler
14929	  tmp_addflag=' -nofor_main' ;;
14930	lf95*)				# Lahey Fortran 8.1
14931	  whole_archive_flag_spec=
14932	  tmp_sharedflag='--shared' ;;
14933	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14934	  tmp_sharedflag='-qmkshrobj'
14935	  tmp_addflag= ;;
14936	nvcc*)	# Cuda Compiler Driver 2.2
14937	  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'
14938	  compiler_needs_object=yes
14939	  ;;
14940	esac
14941	case `$CC -V 2>&1 | sed 5q` in
14942	*Sun\ C*)			# Sun C 5.9
14943	  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'
14944	  compiler_needs_object=yes
14945	  tmp_sharedflag='-G' ;;
14946	*Sun\ F*)			# Sun Fortran 8.3
14947	  tmp_sharedflag='-G' ;;
14948	esac
14949	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950
14951        if test "x$supports_anon_versioning" = xyes; then
14952          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14953	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14954	    echo "local: *; };" >> $output_objdir/$libname.ver~
14955	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14956        fi
14957
14958	case $cc_basename in
14959	xlf* | bgf* | bgxlf* | mpixlf*)
14960	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14961	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14962	  hardcode_libdir_flag_spec=
14963	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
14964	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14965	  if test "x$supports_anon_versioning" = xyes; then
14966	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14967	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14968	      echo "local: *; };" >> $output_objdir/$libname.ver~
14969	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14970	  fi
14971	  ;;
14972	esac
14973      else
14974        ld_shlibs=no
14975      fi
14976      ;;
14977
14978    netbsd*)
14979      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14980	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14981	wlarc=
14982      else
14983	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14985      fi
14986      ;;
14987
14988    solaris*)
14989      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14990	ld_shlibs=no
14991	cat <<_LT_EOF 1>&2
14992
14993*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14994*** create shared libraries on Solaris systems.  Therefore, libtool
14995*** is disabling shared libraries support.  We urge you to upgrade GNU
14996*** binutils to release 2.9.1 or newer.  Another option is to modify
14997*** your PATH or compiler configuration so that the native linker is
14998*** used, and then restart.
14999
15000_LT_EOF
15001      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15002	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15004      else
15005	ld_shlibs=no
15006      fi
15007      ;;
15008
15009    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15010      case `$LD -v 2>&1` in
15011        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15012	ld_shlibs=no
15013	cat <<_LT_EOF 1>&2
15014
15015*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15016*** reliably create shared libraries on SCO systems.  Therefore, libtool
15017*** is disabling shared libraries support.  We urge you to upgrade GNU
15018*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15019*** your PATH or compiler configuration so that the native linker is
15020*** used, and then restart.
15021
15022_LT_EOF
15023	;;
15024	*)
15025	  # For security reasons, it is highly recommended that you always
15026	  # use absolute paths for naming shared libraries, and exclude the
15027	  # DT_RUNPATH tag from executables and libraries.  But doing so
15028	  # requires that you compile everything twice, which is a pain.
15029	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15030	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15031	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15033	  else
15034	    ld_shlibs=no
15035	  fi
15036	;;
15037      esac
15038      ;;
15039
15040    sunos4*)
15041      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15042      wlarc=
15043      hardcode_direct=yes
15044      hardcode_shlibpath_var=no
15045      ;;
15046
15047    *)
15048      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15049	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15051      else
15052	ld_shlibs=no
15053      fi
15054      ;;
15055    esac
15056
15057    if test "$ld_shlibs" = no; then
15058      runpath_var=
15059      hardcode_libdir_flag_spec=
15060      export_dynamic_flag_spec=
15061      whole_archive_flag_spec=
15062    fi
15063  else
15064    # PORTME fill in a description of your system's linker (not GNU ld)
15065    case $host_os in
15066    aix3*)
15067      allow_undefined_flag=unsupported
15068      always_export_symbols=yes
15069      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'
15070      # Note: this linker hardcodes the directories in LIBPATH if there
15071      # are no directories specified by -L.
15072      hardcode_minus_L=yes
15073      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15074	# Neither direct hardcoding nor static linking is supported with a
15075	# broken collect2.
15076	hardcode_direct=unsupported
15077      fi
15078      ;;
15079
15080    aix[4-9]*)
15081      if test "$host_cpu" = ia64; then
15082	# On IA64, the linker does run time linking by default, so we don't
15083	# have to do anything special.
15084	aix_use_runtimelinking=no
15085	exp_sym_flag='-Bexport'
15086	no_entry_flag=""
15087      else
15088	# If we're using GNU nm, then we don't want the "-C" option.
15089	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15090	# Also, AIX nm treats weak defined symbols like other global
15091	# defined symbols, whereas GNU nm marks them as "W".
15092	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15093	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15094	else
15095	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15096	fi
15097	aix_use_runtimelinking=no
15098
15099	# Test if we are trying to use run time linking or normal
15100	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15101	# need to do runtime linking.
15102	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15103	  for ld_flag in $LDFLAGS; do
15104	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15105	    aix_use_runtimelinking=yes
15106	    break
15107	  fi
15108	  done
15109	  ;;
15110	esac
15111
15112	exp_sym_flag='-bexport'
15113	no_entry_flag='-bnoentry'
15114      fi
15115
15116      # When large executables or shared objects are built, AIX ld can
15117      # have problems creating the table of contents.  If linking a library
15118      # or program results in "error TOC overflow" add -mminimal-toc to
15119      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15120      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15121
15122      archive_cmds=''
15123      hardcode_direct=yes
15124      hardcode_direct_absolute=yes
15125      hardcode_libdir_separator=':'
15126      link_all_deplibs=yes
15127      file_list_spec='${wl}-f,'
15128
15129      if test "$GCC" = yes; then
15130	case $host_os in aix4.[012]|aix4.[012].*)
15131	# We only want to do this on AIX 4.2 and lower, the check
15132	# below for broken collect2 doesn't work under 4.3+
15133	  collect2name=`${CC} -print-prog-name=collect2`
15134	  if test -f "$collect2name" &&
15135	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15136	  then
15137	  # We have reworked collect2
15138	  :
15139	  else
15140	  # We have old collect2
15141	  hardcode_direct=unsupported
15142	  # It fails to find uninstalled libraries when the uninstalled
15143	  # path is not listed in the libpath.  Setting hardcode_minus_L
15144	  # to unsupported forces relinking
15145	  hardcode_minus_L=yes
15146	  hardcode_libdir_flag_spec='-L$libdir'
15147	  hardcode_libdir_separator=
15148	  fi
15149	  ;;
15150	esac
15151	shared_flag='-shared'
15152	if test "$aix_use_runtimelinking" = yes; then
15153	  shared_flag="$shared_flag "'${wl}-G'
15154	fi
15155      else
15156	# not using gcc
15157	if test "$host_cpu" = ia64; then
15158	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15159	# chokes on -Wl,-G. The following line is correct:
15160	  shared_flag='-G'
15161	else
15162	  if test "$aix_use_runtimelinking" = yes; then
15163	    shared_flag='${wl}-G'
15164	  else
15165	    shared_flag='${wl}-bM:SRE'
15166	  fi
15167	fi
15168      fi
15169
15170      export_dynamic_flag_spec='${wl}-bexpall'
15171      # It seems that -bexpall does not export symbols beginning with
15172      # underscore (_), so it is better to generate a list of symbols to export.
15173      always_export_symbols=yes
15174      if test "$aix_use_runtimelinking" = yes; then
15175	# Warning - without using the other runtime loading flags (-brtl),
15176	# -berok will link without error, but may produce a broken library.
15177	allow_undefined_flag='-berok'
15178        # Determine the default libpath from the value encoded in an
15179        # empty executable.
15180        if test "${lt_cv_aix_libpath+set}" = set; then
15181  aix_libpath=$lt_cv_aix_libpath
15182else
15183  if ${lt_cv_aix_libpath_+:} false; then :
15184  $as_echo_n "(cached) " >&6
15185else
15186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h.  */
15188
15189int
15190main ()
15191{
15192
15193  ;
15194  return 0;
15195}
15196_ACEOF
15197if ac_fn_c_try_link "$LINENO"; then :
15198
15199  lt_aix_libpath_sed='
15200      /Import File Strings/,/^$/ {
15201	  /^0/ {
15202	      s/^0  *\([^ ]*\) *$/\1/
15203	      p
15204	  }
15205      }'
15206  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15207  # Check for a 64-bit object if we didn't find anything.
15208  if test -z "$lt_cv_aix_libpath_"; then
15209    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210  fi
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214  if test -z "$lt_cv_aix_libpath_"; then
15215    lt_cv_aix_libpath_="/usr/lib:/lib"
15216  fi
15217
15218fi
15219
15220  aix_libpath=$lt_cv_aix_libpath_
15221fi
15222
15223        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15224        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15225      else
15226	if test "$host_cpu" = ia64; then
15227	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15228	  allow_undefined_flag="-z nodefs"
15229	  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"
15230	else
15231	 # Determine the default libpath from the value encoded in an
15232	 # empty executable.
15233	 if test "${lt_cv_aix_libpath+set}" = set; then
15234  aix_libpath=$lt_cv_aix_libpath
15235else
15236  if ${lt_cv_aix_libpath_+:} false; then :
15237  $as_echo_n "(cached) " >&6
15238else
15239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240/* end confdefs.h.  */
15241
15242int
15243main ()
15244{
15245
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250if ac_fn_c_try_link "$LINENO"; then :
15251
15252  lt_aix_libpath_sed='
15253      /Import File Strings/,/^$/ {
15254	  /^0/ {
15255	      s/^0  *\([^ ]*\) *$/\1/
15256	      p
15257	  }
15258      }'
15259  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15260  # Check for a 64-bit object if we didn't find anything.
15261  if test -z "$lt_cv_aix_libpath_"; then
15262    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15263  fi
15264fi
15265rm -f core conftest.err conftest.$ac_objext \
15266    conftest$ac_exeext conftest.$ac_ext
15267  if test -z "$lt_cv_aix_libpath_"; then
15268    lt_cv_aix_libpath_="/usr/lib:/lib"
15269  fi
15270
15271fi
15272
15273  aix_libpath=$lt_cv_aix_libpath_
15274fi
15275
15276	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15277	  # Warning - without using the other run time loading flags,
15278	  # -berok will link without error, but may produce a broken library.
15279	  no_undefined_flag=' ${wl}-bernotok'
15280	  allow_undefined_flag=' ${wl}-berok'
15281	  if test "$with_gnu_ld" = yes; then
15282	    # We only use this code for GNU lds that support --whole-archive.
15283	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15284	  else
15285	    # Exported symbols can be pulled into shared objects from archives
15286	    whole_archive_flag_spec='$convenience'
15287	  fi
15288	  archive_cmds_need_lc=yes
15289	  # This is similar to how AIX traditionally builds its shared libraries.
15290	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15291	fi
15292      fi
15293      ;;
15294
15295    amigaos*)
15296      case $host_cpu in
15297      powerpc)
15298            # see comment about AmigaOS4 .so support
15299            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15300            archive_expsym_cmds=''
15301        ;;
15302      m68k)
15303            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)'
15304            hardcode_libdir_flag_spec='-L$libdir'
15305            hardcode_minus_L=yes
15306        ;;
15307      esac
15308      ;;
15309
15310    bsdi[45]*)
15311      export_dynamic_flag_spec=-rdynamic
15312      ;;
15313
15314    cygwin* | mingw* | pw32* | cegcc*)
15315      # When not using gcc, we currently assume that we are using
15316      # Microsoft Visual C++.
15317      # hardcode_libdir_flag_spec is actually meaningless, as there is
15318      # no search path for DLLs.
15319      case $cc_basename in
15320      cl*)
15321	# Native MSVC
15322	hardcode_libdir_flag_spec=' '
15323	allow_undefined_flag=unsupported
15324	always_export_symbols=yes
15325	file_list_spec='@'
15326	# Tell ltmain to make .lib files, not .a files.
15327	libext=lib
15328	# Tell ltmain to make .dll files, not .so files.
15329	shrext_cmds=".dll"
15330	# FIXME: Setting linknames here is a bad hack.
15331	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15332	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15333	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15334	  else
15335	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15336	  fi~
15337	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15338	  linknames='
15339	# The linker will not automatically build a static lib if we build a DLL.
15340	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15341	enable_shared_with_static_runtimes=yes
15342	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15343	# Don't use ranlib
15344	old_postinstall_cmds='chmod 644 $oldlib'
15345	postlink_cmds='lt_outputfile="@OUTPUT@"~
15346	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15347	  case $lt_outputfile in
15348	    *.exe|*.EXE) ;;
15349	    *)
15350	      lt_outputfile="$lt_outputfile.exe"
15351	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15352	      ;;
15353	  esac~
15354	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15355	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15356	    $RM "$lt_outputfile.manifest";
15357	  fi'
15358	;;
15359      *)
15360	# Assume MSVC wrapper
15361	hardcode_libdir_flag_spec=' '
15362	allow_undefined_flag=unsupported
15363	# Tell ltmain to make .lib files, not .a files.
15364	libext=lib
15365	# Tell ltmain to make .dll files, not .so files.
15366	shrext_cmds=".dll"
15367	# FIXME: Setting linknames here is a bad hack.
15368	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15369	# The linker will automatically build a .lib file if we build a DLL.
15370	old_archive_from_new_cmds='true'
15371	# FIXME: Should let the user specify the lib program.
15372	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15373	enable_shared_with_static_runtimes=yes
15374	;;
15375      esac
15376      ;;
15377
15378    darwin* | rhapsody*)
15379
15380
15381  archive_cmds_need_lc=no
15382  hardcode_direct=no
15383  hardcode_automatic=yes
15384  hardcode_shlibpath_var=unsupported
15385  if test "$lt_cv_ld_force_load" = "yes"; then
15386    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\"`'
15387  else
15388    whole_archive_flag_spec=''
15389  fi
15390  link_all_deplibs=yes
15391  allow_undefined_flag="$_lt_dar_allow_undefined"
15392  case $cc_basename in
15393     ifort*) _lt_dar_can_shared=yes ;;
15394     *) _lt_dar_can_shared=$GCC ;;
15395  esac
15396  if test "$_lt_dar_can_shared" = "yes"; then
15397    output_verbose_link_cmd=func_echo_all
15398    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15399    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15400    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}"
15401    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}"
15402
15403  else
15404  ld_shlibs=no
15405  fi
15406
15407      ;;
15408
15409    dgux*)
15410      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15411      hardcode_libdir_flag_spec='-L$libdir'
15412      hardcode_shlibpath_var=no
15413      ;;
15414
15415    freebsd1*)
15416      ld_shlibs=no
15417      ;;
15418
15419    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15420    # support.  Future versions do this automatically, but an explicit c++rt0.o
15421    # does not break anything, and helps significantly (at the cost of a little
15422    # extra space).
15423    freebsd2.2*)
15424      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15425      hardcode_libdir_flag_spec='-R$libdir'
15426      hardcode_direct=yes
15427      hardcode_shlibpath_var=no
15428      ;;
15429
15430    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15431    freebsd2*)
15432      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15433      hardcode_direct=yes
15434      hardcode_minus_L=yes
15435      hardcode_shlibpath_var=no
15436      ;;
15437
15438    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15439    freebsd* | dragonfly*)
15440      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15441      hardcode_libdir_flag_spec='-R$libdir'
15442      hardcode_direct=yes
15443      hardcode_shlibpath_var=no
15444      ;;
15445
15446    hpux9*)
15447      if test "$GCC" = yes; then
15448	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15449      else
15450	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15451      fi
15452      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15453      hardcode_libdir_separator=:
15454      hardcode_direct=yes
15455
15456      # hardcode_minus_L: Not really in the search PATH,
15457      # but as the default location of the library.
15458      hardcode_minus_L=yes
15459      export_dynamic_flag_spec='${wl}-E'
15460      ;;
15461
15462    hpux10*)
15463      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15464	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15465      else
15466	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15467      fi
15468      if test "$with_gnu_ld" = no; then
15469	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15470	hardcode_libdir_flag_spec_ld='+b $libdir'
15471	hardcode_libdir_separator=:
15472	hardcode_direct=yes
15473	hardcode_direct_absolute=yes
15474	export_dynamic_flag_spec='${wl}-E'
15475	# hardcode_minus_L: Not really in the search PATH,
15476	# but as the default location of the library.
15477	hardcode_minus_L=yes
15478      fi
15479      ;;
15480
15481    hpux11*)
15482      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15483	case $host_cpu in
15484	hppa*64*)
15485	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15486	  ;;
15487	ia64*)
15488	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15489	  ;;
15490	*)
15491	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15492	  ;;
15493	esac
15494      else
15495	case $host_cpu in
15496	hppa*64*)
15497	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498	  ;;
15499	ia64*)
15500	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15501	  ;;
15502	*)
15503
15504	  # Older versions of the 11.00 compiler do not understand -b yet
15505	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15506	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15507$as_echo_n "checking if $CC understands -b... " >&6; }
15508if ${lt_cv_prog_compiler__b+:} false; then :
15509  $as_echo_n "(cached) " >&6
15510else
15511  lt_cv_prog_compiler__b=no
15512   save_LDFLAGS="$LDFLAGS"
15513   LDFLAGS="$LDFLAGS -b"
15514   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15515   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15516     # The linker can only warn and ignore the option if not recognized
15517     # So say no if there are warnings
15518     if test -s conftest.err; then
15519       # Append any errors to the config.log.
15520       cat conftest.err 1>&5
15521       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15522       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15523       if diff conftest.exp conftest.er2 >/dev/null; then
15524         lt_cv_prog_compiler__b=yes
15525       fi
15526     else
15527       lt_cv_prog_compiler__b=yes
15528     fi
15529   fi
15530   $RM -r conftest*
15531   LDFLAGS="$save_LDFLAGS"
15532
15533fi
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15535$as_echo "$lt_cv_prog_compiler__b" >&6; }
15536
15537if test x"$lt_cv_prog_compiler__b" = xyes; then
15538    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15539else
15540    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15541fi
15542
15543	  ;;
15544	esac
15545      fi
15546      if test "$with_gnu_ld" = no; then
15547	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15548	hardcode_libdir_separator=:
15549
15550	case $host_cpu in
15551	hppa*64*|ia64*)
15552	  hardcode_direct=no
15553	  hardcode_shlibpath_var=no
15554	  ;;
15555	*)
15556	  hardcode_direct=yes
15557	  hardcode_direct_absolute=yes
15558	  export_dynamic_flag_spec='${wl}-E'
15559
15560	  # hardcode_minus_L: Not really in the search PATH,
15561	  # but as the default location of the library.
15562	  hardcode_minus_L=yes
15563	  ;;
15564	esac
15565      fi
15566      ;;
15567
15568    irix5* | irix6* | nonstopux*)
15569      if test "$GCC" = yes; then
15570	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'
15571	# Try to use the -exported_symbol ld option, if it does not
15572	# work, assume that -exports_file does not work either and
15573	# implicitly export all symbols.
15574	# This should be the same for all languages, so no per-tag cache variable.
15575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15576$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15577if ${lt_cv_irix_exported_symbol+:} false; then :
15578  $as_echo_n "(cached) " >&6
15579else
15580  save_LDFLAGS="$LDFLAGS"
15581	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15582	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583/* end confdefs.h.  */
15584int foo (void) { return 0; }
15585_ACEOF
15586if ac_fn_c_try_link "$LINENO"; then :
15587  lt_cv_irix_exported_symbol=yes
15588else
15589  lt_cv_irix_exported_symbol=no
15590fi
15591rm -f core conftest.err conftest.$ac_objext \
15592    conftest$ac_exeext conftest.$ac_ext
15593           LDFLAGS="$save_LDFLAGS"
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15596$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15597	if test "$lt_cv_irix_exported_symbol" = yes; then
15598          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'
15599	fi
15600      else
15601	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'
15602	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'
15603      fi
15604      archive_cmds_need_lc='no'
15605      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15606      hardcode_libdir_separator=:
15607      inherit_rpath=yes
15608      link_all_deplibs=yes
15609      ;;
15610
15611    netbsd*)
15612      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15614      else
15615	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15616      fi
15617      hardcode_libdir_flag_spec='-R$libdir'
15618      hardcode_direct=yes
15619      hardcode_shlibpath_var=no
15620      ;;
15621
15622    newsos6)
15623      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624      hardcode_direct=yes
15625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15626      hardcode_libdir_separator=:
15627      hardcode_shlibpath_var=no
15628      ;;
15629
15630    *nto* | *qnx*)
15631      ;;
15632
15633    openbsd*)
15634      if test -f /usr/libexec/ld.so; then
15635	hardcode_direct=yes
15636	hardcode_shlibpath_var=no
15637	hardcode_direct_absolute=yes
15638	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15639	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15640	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15641	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15642	  export_dynamic_flag_spec='${wl}-E'
15643	else
15644	  case $host_os in
15645	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15646	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647	     hardcode_libdir_flag_spec='-R$libdir'
15648	     ;;
15649	   *)
15650	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15652	     ;;
15653	  esac
15654	fi
15655      else
15656	ld_shlibs=no
15657      fi
15658      ;;
15659
15660    os2*)
15661      hardcode_libdir_flag_spec='-L$libdir'
15662      hardcode_minus_L=yes
15663      allow_undefined_flag=unsupported
15664      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15665      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15666      ;;
15667
15668    osf3*)
15669      if test "$GCC" = yes; then
15670	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15671	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'
15672      else
15673	allow_undefined_flag=' -expect_unresolved \*'
15674	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'
15675      fi
15676      archive_cmds_need_lc='no'
15677      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15678      hardcode_libdir_separator=:
15679      ;;
15680
15681    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15682      if test "$GCC" = yes; then
15683	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15684	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'
15685	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686      else
15687	allow_undefined_flag=' -expect_unresolved \*'
15688	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'
15689	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~
15690	$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'
15691
15692	# Both c and cxx compiler support -rpath directly
15693	hardcode_libdir_flag_spec='-rpath $libdir'
15694      fi
15695      archive_cmds_need_lc='no'
15696      hardcode_libdir_separator=:
15697      ;;
15698
15699    solaris*)
15700      no_undefined_flag=' -z defs'
15701      if test "$GCC" = yes; then
15702	wlarc='${wl}'
15703	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15704	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15705	  $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'
15706      else
15707	case `$CC -V 2>&1` in
15708	*"Compilers 5.0"*)
15709	  wlarc=''
15710	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15712	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15713	  ;;
15714	*)
15715	  wlarc='${wl}'
15716	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15717	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15718	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15719	  ;;
15720	esac
15721      fi
15722      hardcode_libdir_flag_spec='-R$libdir'
15723      hardcode_shlibpath_var=no
15724      case $host_os in
15725      solaris2.[0-5] | solaris2.[0-5].*) ;;
15726      *)
15727	# The compiler driver will combine and reorder linker options,
15728	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15729	# but is careful enough not to reorder.
15730	# Supported since Solaris 2.6 (maybe 2.5.1?)
15731	if test "$GCC" = yes; then
15732	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15733	else
15734	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15735	fi
15736	;;
15737      esac
15738      link_all_deplibs=yes
15739      ;;
15740
15741    sunos4*)
15742      if test "x$host_vendor" = xsequent; then
15743	# Use $CC to link under sequent, because it throws in some extra .o
15744	# files that make .init and .fini sections work.
15745	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15746      else
15747	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15748      fi
15749      hardcode_libdir_flag_spec='-L$libdir'
15750      hardcode_direct=yes
15751      hardcode_minus_L=yes
15752      hardcode_shlibpath_var=no
15753      ;;
15754
15755    sysv4)
15756      case $host_vendor in
15757	sni)
15758	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759	  hardcode_direct=yes # is this really true???
15760	;;
15761	siemens)
15762	  ## LD is ld it makes a PLAMLIB
15763	  ## CC just makes a GrossModule.
15764	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15765	  reload_cmds='$CC -r -o $output$reload_objs'
15766	  hardcode_direct=no
15767        ;;
15768	motorola)
15769	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15771	;;
15772      esac
15773      runpath_var='LD_RUN_PATH'
15774      hardcode_shlibpath_var=no
15775      ;;
15776
15777    sysv4.3*)
15778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15779      hardcode_shlibpath_var=no
15780      export_dynamic_flag_spec='-Bexport'
15781      ;;
15782
15783    sysv4*MP*)
15784      if test -d /usr/nec; then
15785	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15786	hardcode_shlibpath_var=no
15787	runpath_var=LD_RUN_PATH
15788	hardcode_runpath_var=yes
15789	ld_shlibs=yes
15790      fi
15791      ;;
15792
15793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15794      no_undefined_flag='${wl}-z,text'
15795      archive_cmds_need_lc=no
15796      hardcode_shlibpath_var=no
15797      runpath_var='LD_RUN_PATH'
15798
15799      if test "$GCC" = yes; then
15800	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15801	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15802      else
15803	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15804	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805      fi
15806      ;;
15807
15808    sysv5* | sco3.2v5* | sco5v6*)
15809      # Note: We can NOT use -z defs as we might desire, because we do not
15810      # link with -lc, and that would cause any symbols used from libc to
15811      # always be unresolved, which means just about no library would
15812      # ever link correctly.  If we're not using GNU ld we use -z text
15813      # though, which does catch some bad symbols but isn't as heavy-handed
15814      # as -z defs.
15815      no_undefined_flag='${wl}-z,text'
15816      allow_undefined_flag='${wl}-z,nodefs'
15817      archive_cmds_need_lc=no
15818      hardcode_shlibpath_var=no
15819      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15820      hardcode_libdir_separator=':'
15821      link_all_deplibs=yes
15822      export_dynamic_flag_spec='${wl}-Bexport'
15823      runpath_var='LD_RUN_PATH'
15824
15825      if test "$GCC" = yes; then
15826	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15827	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15828      else
15829	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15830	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831      fi
15832      ;;
15833
15834    uts4*)
15835      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836      hardcode_libdir_flag_spec='-L$libdir'
15837      hardcode_shlibpath_var=no
15838      ;;
15839
15840    *)
15841      ld_shlibs=no
15842      ;;
15843    esac
15844
15845    if test x$host_vendor = xsni; then
15846      case $host in
15847      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15848	export_dynamic_flag_spec='${wl}-Blargedynsym'
15849	;;
15850      esac
15851    fi
15852  fi
15853
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15855$as_echo "$ld_shlibs" >&6; }
15856test "$ld_shlibs" = no && can_build_shared=no
15857
15858with_gnu_ld=$with_gnu_ld
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874#
15875# Do we need to explicitly link libc?
15876#
15877case "x$archive_cmds_need_lc" in
15878x|xyes)
15879  # Assume -lc should be added
15880  archive_cmds_need_lc=yes
15881
15882  if test "$enable_shared" = yes && test "$GCC" = yes; then
15883    case $archive_cmds in
15884    *'~'*)
15885      # FIXME: we may have to deal with multi-command sequences.
15886      ;;
15887    '$CC '*)
15888      # Test whether the compiler implicitly links with -lc since on some
15889      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15890      # to ld, don't add -lc before -lgcc.
15891      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15892$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15893if ${lt_cv_archive_cmds_need_lc+:} false; then :
15894  $as_echo_n "(cached) " >&6
15895else
15896  $RM conftest*
15897	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15898
15899	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15900  (eval $ac_compile) 2>&5
15901  ac_status=$?
15902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15903  test $ac_status = 0; } 2>conftest.err; then
15904	  soname=conftest
15905	  lib=conftest
15906	  libobjs=conftest.$ac_objext
15907	  deplibs=
15908	  wl=$lt_prog_compiler_wl
15909	  pic_flag=$lt_prog_compiler_pic
15910	  compiler_flags=-v
15911	  linker_flags=-v
15912	  verstring=
15913	  output_objdir=.
15914	  libname=conftest
15915	  lt_save_allow_undefined_flag=$allow_undefined_flag
15916	  allow_undefined_flag=
15917	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15918  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15919  ac_status=$?
15920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921  test $ac_status = 0; }
15922	  then
15923	    lt_cv_archive_cmds_need_lc=no
15924	  else
15925	    lt_cv_archive_cmds_need_lc=yes
15926	  fi
15927	  allow_undefined_flag=$lt_save_allow_undefined_flag
15928	else
15929	  cat conftest.err 1>&5
15930	fi
15931	$RM conftest*
15932
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15935$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15936      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15937      ;;
15938    esac
15939  fi
15940  ;;
15941esac
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16100$as_echo_n "checking dynamic linker characteristics... " >&6; }
16101
16102if test "$GCC" = yes; then
16103  case $host_os in
16104    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16105    *) lt_awk_arg="/^libraries:/" ;;
16106  esac
16107  case $host_os in
16108    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16109    *) lt_sed_strip_eq="s,=/,/,g" ;;
16110  esac
16111  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16112  case $lt_search_path_spec in
16113  *\;*)
16114    # if the path contains ";" then we assume it to be the separator
16115    # otherwise default to the standard path separator (i.e. ":") - it is
16116    # assumed that no part of a normal pathname contains ";" but that should
16117    # okay in the real world where ";" in dirpaths is itself problematic.
16118    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16119    ;;
16120  *)
16121    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16122    ;;
16123  esac
16124  # Ok, now we have the path, separated by spaces, we can step through it
16125  # and add multilib dir if necessary.
16126  lt_tmp_lt_search_path_spec=
16127  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16128  for lt_sys_path in $lt_search_path_spec; do
16129    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16130      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16131    else
16132      test -d "$lt_sys_path" && \
16133	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16134    fi
16135  done
16136  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16137BEGIN {RS=" "; FS="/|\n";} {
16138  lt_foo="";
16139  lt_count=0;
16140  for (lt_i = NF; lt_i > 0; lt_i--) {
16141    if ($lt_i != "" && $lt_i != ".") {
16142      if ($lt_i == "..") {
16143        lt_count++;
16144      } else {
16145        if (lt_count == 0) {
16146          lt_foo="/" $lt_i lt_foo;
16147        } else {
16148          lt_count--;
16149        }
16150      }
16151    }
16152  }
16153  if (lt_foo != "") { lt_freq[lt_foo]++; }
16154  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16155}'`
16156  # AWK program above erroneously prepends '/' to C:/dos/paths
16157  # for these hosts.
16158  case $host_os in
16159    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16160      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16161  esac
16162  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16163else
16164  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16165fi
16166library_names_spec=
16167libname_spec='lib$name'
16168soname_spec=
16169shrext_cmds=".so"
16170postinstall_cmds=
16171postuninstall_cmds=
16172finish_cmds=
16173finish_eval=
16174shlibpath_var=
16175shlibpath_overrides_runpath=unknown
16176version_type=none
16177dynamic_linker="$host_os ld.so"
16178sys_lib_dlsearch_path_spec="/lib /usr/lib"
16179need_lib_prefix=unknown
16180hardcode_into_libs=no
16181
16182# when you set need_version to no, make sure it does not cause -set_version
16183# flags to be left without arguments
16184need_version=unknown
16185
16186case $host_os in
16187aix3*)
16188  version_type=linux
16189  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16190  shlibpath_var=LIBPATH
16191
16192  # AIX 3 has no versioning support, so we append a major version to the name.
16193  soname_spec='${libname}${release}${shared_ext}$major'
16194  ;;
16195
16196aix[4-9]*)
16197  version_type=linux
16198  need_lib_prefix=no
16199  need_version=no
16200  hardcode_into_libs=yes
16201  if test "$host_cpu" = ia64; then
16202    # AIX 5 supports IA64
16203    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16204    shlibpath_var=LD_LIBRARY_PATH
16205  else
16206    # With GCC up to 2.95.x, collect2 would create an import file
16207    # for dependence libraries.  The import file would start with
16208    # the line `#! .'.  This would cause the generated library to
16209    # depend on `.', always an invalid library.  This was fixed in
16210    # development snapshots of GCC prior to 3.0.
16211    case $host_os in
16212      aix4 | aix4.[01] | aix4.[01].*)
16213      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16214	   echo ' yes '
16215	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16216	:
16217      else
16218	can_build_shared=no
16219      fi
16220      ;;
16221    esac
16222    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16223    # soname into executable. Probably we can add versioning support to
16224    # collect2, so additional links can be useful in future.
16225    if test "$aix_use_runtimelinking" = yes; then
16226      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16227      # instead of lib<name>.a to let people know that these are not
16228      # typical AIX shared libraries.
16229      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230    else
16231      # We preserve .a as extension for shared libraries through AIX4.2
16232      # and later when we are not doing run time linking.
16233      library_names_spec='${libname}${release}.a $libname.a'
16234      soname_spec='${libname}${release}${shared_ext}$major'
16235    fi
16236    shlibpath_var=LIBPATH
16237  fi
16238  ;;
16239
16240amigaos*)
16241  case $host_cpu in
16242  powerpc)
16243    # Since July 2007 AmigaOS4 officially supports .so libraries.
16244    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16245    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246    ;;
16247  m68k)
16248    library_names_spec='$libname.ixlibrary $libname.a'
16249    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16250    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16251    ;;
16252  esac
16253  ;;
16254
16255beos*)
16256  library_names_spec='${libname}${shared_ext}'
16257  dynamic_linker="$host_os ld.so"
16258  shlibpath_var=LIBRARY_PATH
16259  ;;
16260
16261bsdi[45]*)
16262  version_type=linux
16263  need_version=no
16264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265  soname_spec='${libname}${release}${shared_ext}$major'
16266  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16267  shlibpath_var=LD_LIBRARY_PATH
16268  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16269  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16270  # the default ld.so.conf also contains /usr/contrib/lib and
16271  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16272  # libtool to hard-code these into programs
16273  ;;
16274
16275cygwin* | mingw* | pw32* | cegcc*)
16276  version_type=windows
16277  shrext_cmds=".dll"
16278  need_version=no
16279  need_lib_prefix=no
16280
16281  case $GCC,$cc_basename in
16282  yes,*)
16283    # gcc
16284    library_names_spec='$libname.dll.a'
16285    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16286    postinstall_cmds='base_file=`basename \${file}`~
16287      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16288      dldir=$destdir/`dirname \$dlpath`~
16289      test -d \$dldir || mkdir -p \$dldir~
16290      $install_prog $dir/$dlname \$dldir/$dlname~
16291      chmod a+x \$dldir/$dlname~
16292      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16293        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16294      fi'
16295    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16296      dlpath=$dir/\$dldll~
16297       $RM \$dlpath'
16298    shlibpath_overrides_runpath=yes
16299
16300    case $host_os in
16301    cygwin*)
16302      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16303      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16304
16305      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16306      ;;
16307    mingw* | cegcc*)
16308      # MinGW DLLs use traditional 'lib' prefix
16309      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16310      ;;
16311    pw32*)
16312      # pw32 DLLs use 'pw' prefix rather than 'lib'
16313      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16314      ;;
16315    esac
16316    dynamic_linker='Win32 ld.exe'
16317    ;;
16318
16319  *,cl*)
16320    # Native MSVC
16321    libname_spec='$name'
16322    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16323    library_names_spec='${libname}.dll.lib'
16324
16325    case $build_os in
16326    mingw*)
16327      sys_lib_search_path_spec=
16328      lt_save_ifs=$IFS
16329      IFS=';'
16330      for lt_path in $LIB
16331      do
16332        IFS=$lt_save_ifs
16333        # Let DOS variable expansion print the short 8.3 style file name.
16334        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16335        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16336      done
16337      IFS=$lt_save_ifs
16338      # Convert to MSYS style.
16339      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16340      ;;
16341    cygwin*)
16342      # Convert to unix form, then to dos form, then back to unix form
16343      # but this time dos style (no spaces!) so that the unix form looks
16344      # like /cygdrive/c/PROGRA~1:/cygdr...
16345      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16346      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16347      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16348      ;;
16349    *)
16350      sys_lib_search_path_spec="$LIB"
16351      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16352        # It is most probably a Windows format PATH.
16353        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16354      else
16355        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16356      fi
16357      # FIXME: find the short name or the path components, as spaces are
16358      # common. (e.g. "Program Files" -> "PROGRA~1")
16359      ;;
16360    esac
16361
16362    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16363    postinstall_cmds='base_file=`basename \${file}`~
16364      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16365      dldir=$destdir/`dirname \$dlpath`~
16366      test -d \$dldir || mkdir -p \$dldir~
16367      $install_prog $dir/$dlname \$dldir/$dlname'
16368    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16369      dlpath=$dir/\$dldll~
16370       $RM \$dlpath'
16371    shlibpath_overrides_runpath=yes
16372    dynamic_linker='Win32 link.exe'
16373    ;;
16374
16375  *)
16376    # Assume MSVC wrapper
16377    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16378    dynamic_linker='Win32 ld.exe'
16379    ;;
16380  esac
16381  # FIXME: first we should search . and the directory the executable is in
16382  shlibpath_var=PATH
16383  ;;
16384
16385darwin* | rhapsody*)
16386  dynamic_linker="$host_os dyld"
16387  version_type=darwin
16388  need_lib_prefix=no
16389  need_version=no
16390  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16391  soname_spec='${libname}${release}${major}$shared_ext'
16392  shlibpath_overrides_runpath=yes
16393  shlibpath_var=DYLD_LIBRARY_PATH
16394  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16395
16396  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16397  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16398  ;;
16399
16400dgux*)
16401  version_type=linux
16402  need_lib_prefix=no
16403  need_version=no
16404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16405  soname_spec='${libname}${release}${shared_ext}$major'
16406  shlibpath_var=LD_LIBRARY_PATH
16407  ;;
16408
16409freebsd1*)
16410  dynamic_linker=no
16411  ;;
16412
16413freebsd* | dragonfly*)
16414  # DragonFly does not have aout.  When/if they implement a new
16415  # versioning mechanism, adjust this.
16416  if test -x /usr/bin/objformat; then
16417    objformat=`/usr/bin/objformat`
16418  else
16419    case $host_os in
16420    freebsd[123]*) objformat=aout ;;
16421    *) objformat=elf ;;
16422    esac
16423  fi
16424  # Handle Gentoo/FreeBSD as it was Linux
16425  case $host_vendor in
16426    gentoo)
16427      version_type=linux ;;
16428    *)
16429      version_type=freebsd-$objformat ;;
16430  esac
16431
16432  case $version_type in
16433    freebsd-elf*)
16434      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16435      need_version=no
16436      need_lib_prefix=no
16437      ;;
16438    freebsd-*)
16439      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16440      need_version=yes
16441      ;;
16442    linux)
16443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16444      soname_spec='${libname}${release}${shared_ext}$major'
16445      need_lib_prefix=no
16446      need_version=no
16447      ;;
16448  esac
16449  shlibpath_var=LD_LIBRARY_PATH
16450  case $host_os in
16451  freebsd2*)
16452    shlibpath_overrides_runpath=yes
16453    ;;
16454  freebsd3.[01]* | freebsdelf3.[01]*)
16455    shlibpath_overrides_runpath=yes
16456    hardcode_into_libs=yes
16457    ;;
16458  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16459  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16460    shlibpath_overrides_runpath=no
16461    hardcode_into_libs=yes
16462    ;;
16463  *) # from 4.6 on, and DragonFly
16464    shlibpath_overrides_runpath=yes
16465    hardcode_into_libs=yes
16466    ;;
16467  esac
16468  ;;
16469
16470gnu*)
16471  version_type=linux
16472  need_lib_prefix=no
16473  need_version=no
16474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16475  soname_spec='${libname}${release}${shared_ext}$major'
16476  shlibpath_var=LD_LIBRARY_PATH
16477  hardcode_into_libs=yes
16478  ;;
16479
16480haiku*)
16481  version_type=linux
16482  need_lib_prefix=no
16483  need_version=no
16484  dynamic_linker="$host_os runtime_loader"
16485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16486  soname_spec='${libname}${release}${shared_ext}$major'
16487  shlibpath_var=LIBRARY_PATH
16488  shlibpath_overrides_runpath=yes
16489  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16490  hardcode_into_libs=yes
16491  ;;
16492
16493hpux9* | hpux10* | hpux11*)
16494  # Give a soname corresponding to the major version so that dld.sl refuses to
16495  # link against other versions.
16496  version_type=sunos
16497  need_lib_prefix=no
16498  need_version=no
16499  case $host_cpu in
16500  ia64*)
16501    shrext_cmds='.so'
16502    hardcode_into_libs=yes
16503    dynamic_linker="$host_os dld.so"
16504    shlibpath_var=LD_LIBRARY_PATH
16505    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507    soname_spec='${libname}${release}${shared_ext}$major'
16508    if test "X$HPUX_IA64_MODE" = X32; then
16509      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16510    else
16511      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16512    fi
16513    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16514    ;;
16515  hppa*64*)
16516    shrext_cmds='.sl'
16517    hardcode_into_libs=yes
16518    dynamic_linker="$host_os dld.sl"
16519    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16520    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522    soname_spec='${libname}${release}${shared_ext}$major'
16523    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16524    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16525    ;;
16526  *)
16527    shrext_cmds='.sl'
16528    dynamic_linker="$host_os dld.sl"
16529    shlibpath_var=SHLIB_PATH
16530    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532    soname_spec='${libname}${release}${shared_ext}$major'
16533    ;;
16534  esac
16535  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16536  postinstall_cmds='chmod 555 $lib'
16537  # or fails outright, so override atomically:
16538  install_override_mode=555
16539  ;;
16540
16541interix[3-9]*)
16542  version_type=linux
16543  need_lib_prefix=no
16544  need_version=no
16545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16546  soname_spec='${libname}${release}${shared_ext}$major'
16547  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16548  shlibpath_var=LD_LIBRARY_PATH
16549  shlibpath_overrides_runpath=no
16550  hardcode_into_libs=yes
16551  ;;
16552
16553irix5* | irix6* | nonstopux*)
16554  case $host_os in
16555    nonstopux*) version_type=nonstopux ;;
16556    *)
16557	if test "$lt_cv_prog_gnu_ld" = yes; then
16558		version_type=linux
16559	else
16560		version_type=irix
16561	fi ;;
16562  esac
16563  need_lib_prefix=no
16564  need_version=no
16565  soname_spec='${libname}${release}${shared_ext}$major'
16566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16567  case $host_os in
16568  irix5* | nonstopux*)
16569    libsuff= shlibsuff=
16570    ;;
16571  *)
16572    case $LD in # libtool.m4 will add one of these switches to LD
16573    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16574      libsuff= shlibsuff= libmagic=32-bit;;
16575    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16576      libsuff=32 shlibsuff=N32 libmagic=N32;;
16577    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16578      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16579    *) libsuff= shlibsuff= libmagic=never-match;;
16580    esac
16581    ;;
16582  esac
16583  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16584  shlibpath_overrides_runpath=no
16585  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16586  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16587  hardcode_into_libs=yes
16588  ;;
16589
16590# No shared lib support for Linux oldld, aout, or coff.
16591linux*oldld* | linux*aout* | linux*coff*)
16592  dynamic_linker=no
16593  ;;
16594
16595# This must be Linux ELF.
16596linux* | k*bsd*-gnu | kopensolaris*-gnu)
16597  version_type=linux
16598  need_lib_prefix=no
16599  need_version=no
16600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601  soname_spec='${libname}${release}${shared_ext}$major'
16602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16603  shlibpath_var=LD_LIBRARY_PATH
16604  shlibpath_overrides_runpath=no
16605
16606  # Some binutils ld are patched to set DT_RUNPATH
16607  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16608  $as_echo_n "(cached) " >&6
16609else
16610  lt_cv_shlibpath_overrides_runpath=no
16611    save_LDFLAGS=$LDFLAGS
16612    save_libdir=$libdir
16613    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16614	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616/* end confdefs.h.  */
16617
16618int
16619main ()
16620{
16621
16622  ;
16623  return 0;
16624}
16625_ACEOF
16626if ac_fn_c_try_link "$LINENO"; then :
16627  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16628  lt_cv_shlibpath_overrides_runpath=yes
16629fi
16630fi
16631rm -f core conftest.err conftest.$ac_objext \
16632    conftest$ac_exeext conftest.$ac_ext
16633    LDFLAGS=$save_LDFLAGS
16634    libdir=$save_libdir
16635
16636fi
16637
16638  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16639
16640  # This implies no fast_install, which is unacceptable.
16641  # Some rework will be needed to allow for fast_install
16642  # before this can be enabled.
16643  hardcode_into_libs=yes
16644
16645  # Append ld.so.conf contents to the search path
16646  if test -f /etc/ld.so.conf; then
16647    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' ' '`
16648    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16649  fi
16650
16651  # We used to test for /lib/ld.so.1 and disable shared libraries on
16652  # powerpc, because MkLinux only supported shared libraries with the
16653  # GNU dynamic linker.  Since this was broken with cross compilers,
16654  # most powerpc-linux boxes support dynamic linking these days and
16655  # people can always --disable-shared, the test was removed, and we
16656  # assume the GNU/Linux dynamic linker is in use.
16657  dynamic_linker='GNU/Linux ld.so'
16658  ;;
16659
16660netbsd*)
16661  version_type=sunos
16662  need_lib_prefix=no
16663  need_version=no
16664  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16666    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16667    dynamic_linker='NetBSD (a.out) ld.so'
16668  else
16669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16670    soname_spec='${libname}${release}${shared_ext}$major'
16671    dynamic_linker='NetBSD ld.elf_so'
16672  fi
16673  shlibpath_var=LD_LIBRARY_PATH
16674  shlibpath_overrides_runpath=yes
16675  hardcode_into_libs=yes
16676  ;;
16677
16678newsos6)
16679  version_type=linux
16680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681  shlibpath_var=LD_LIBRARY_PATH
16682  shlibpath_overrides_runpath=yes
16683  ;;
16684
16685*nto* | *qnx*)
16686  version_type=qnx
16687  need_lib_prefix=no
16688  need_version=no
16689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690  soname_spec='${libname}${release}${shared_ext}$major'
16691  shlibpath_var=LD_LIBRARY_PATH
16692  shlibpath_overrides_runpath=no
16693  hardcode_into_libs=yes
16694  dynamic_linker='ldqnx.so'
16695  ;;
16696
16697openbsd*)
16698  version_type=sunos
16699  sys_lib_dlsearch_path_spec="/usr/lib"
16700  need_lib_prefix=no
16701  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16702  case $host_os in
16703    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16704    *)				need_version=no  ;;
16705  esac
16706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16708  shlibpath_var=LD_LIBRARY_PATH
16709  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16710    case $host_os in
16711      openbsd2.[89] | openbsd2.[89].*)
16712	shlibpath_overrides_runpath=no
16713	;;
16714      *)
16715	shlibpath_overrides_runpath=yes
16716	;;
16717      esac
16718  else
16719    shlibpath_overrides_runpath=yes
16720  fi
16721  ;;
16722
16723os2*)
16724  libname_spec='$name'
16725  shrext_cmds=".dll"
16726  need_lib_prefix=no
16727  library_names_spec='$libname${shared_ext} $libname.a'
16728  dynamic_linker='OS/2 ld.exe'
16729  shlibpath_var=LIBPATH
16730  ;;
16731
16732osf3* | osf4* | osf5*)
16733  version_type=osf
16734  need_lib_prefix=no
16735  need_version=no
16736  soname_spec='${libname}${release}${shared_ext}$major'
16737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738  shlibpath_var=LD_LIBRARY_PATH
16739  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16740  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16741  ;;
16742
16743rdos*)
16744  dynamic_linker=no
16745  ;;
16746
16747solaris*)
16748  version_type=linux
16749  need_lib_prefix=no
16750  need_version=no
16751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752  soname_spec='${libname}${release}${shared_ext}$major'
16753  shlibpath_var=LD_LIBRARY_PATH
16754  shlibpath_overrides_runpath=yes
16755  hardcode_into_libs=yes
16756  # ldd complains unless libraries are executable
16757  postinstall_cmds='chmod +x $lib'
16758  ;;
16759
16760sunos4*)
16761  version_type=sunos
16762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16763  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16764  shlibpath_var=LD_LIBRARY_PATH
16765  shlibpath_overrides_runpath=yes
16766  if test "$with_gnu_ld" = yes; then
16767    need_lib_prefix=no
16768  fi
16769  need_version=yes
16770  ;;
16771
16772sysv4 | sysv4.3*)
16773  version_type=linux
16774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775  soname_spec='${libname}${release}${shared_ext}$major'
16776  shlibpath_var=LD_LIBRARY_PATH
16777  case $host_vendor in
16778    sni)
16779      shlibpath_overrides_runpath=no
16780      need_lib_prefix=no
16781      runpath_var=LD_RUN_PATH
16782      ;;
16783    siemens)
16784      need_lib_prefix=no
16785      ;;
16786    motorola)
16787      need_lib_prefix=no
16788      need_version=no
16789      shlibpath_overrides_runpath=no
16790      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16791      ;;
16792  esac
16793  ;;
16794
16795sysv4*MP*)
16796  if test -d /usr/nec ;then
16797    version_type=linux
16798    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16799    soname_spec='$libname${shared_ext}.$major'
16800    shlibpath_var=LD_LIBRARY_PATH
16801  fi
16802  ;;
16803
16804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16805  version_type=freebsd-elf
16806  need_lib_prefix=no
16807  need_version=no
16808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16809  soname_spec='${libname}${release}${shared_ext}$major'
16810  shlibpath_var=LD_LIBRARY_PATH
16811  shlibpath_overrides_runpath=yes
16812  hardcode_into_libs=yes
16813  if test "$with_gnu_ld" = yes; then
16814    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16815  else
16816    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16817    case $host_os in
16818      sco3.2v5*)
16819        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16820	;;
16821    esac
16822  fi
16823  sys_lib_dlsearch_path_spec='/usr/lib'
16824  ;;
16825
16826tpf*)
16827  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16828  version_type=linux
16829  need_lib_prefix=no
16830  need_version=no
16831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16832  shlibpath_var=LD_LIBRARY_PATH
16833  shlibpath_overrides_runpath=no
16834  hardcode_into_libs=yes
16835  ;;
16836
16837uts4*)
16838  version_type=linux
16839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840  soname_spec='${libname}${release}${shared_ext}$major'
16841  shlibpath_var=LD_LIBRARY_PATH
16842  ;;
16843
16844*)
16845  dynamic_linker=no
16846  ;;
16847esac
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16849$as_echo "$dynamic_linker" >&6; }
16850test "$dynamic_linker" = no && can_build_shared=no
16851
16852variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16853if test "$GCC" = yes; then
16854  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16855fi
16856
16857if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16858  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16859fi
16860if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16861  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16862fi
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16956$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16957hardcode_action=
16958if test -n "$hardcode_libdir_flag_spec" ||
16959   test -n "$runpath_var" ||
16960   test "X$hardcode_automatic" = "Xyes" ; then
16961
16962  # We can hardcode non-existent directories.
16963  if test "$hardcode_direct" != no &&
16964     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16965     # have to relink, otherwise we might link with an installed library
16966     # when we should be linking with a yet-to-be-installed one
16967     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16968     test "$hardcode_minus_L" != no; then
16969    # Linking always hardcodes the temporary library directory.
16970    hardcode_action=relink
16971  else
16972    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16973    hardcode_action=immediate
16974  fi
16975else
16976  # We cannot hardcode anything, or else we can only hardcode existing
16977  # directories.
16978  hardcode_action=unsupported
16979fi
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16981$as_echo "$hardcode_action" >&6; }
16982
16983if test "$hardcode_action" = relink ||
16984   test "$inherit_rpath" = yes; then
16985  # Fast installation is not supported
16986  enable_fast_install=no
16987elif test "$shlibpath_overrides_runpath" = yes ||
16988     test "$enable_shared" = no; then
16989  # Fast installation is not necessary
16990  enable_fast_install=needless
16991fi
16992
16993
16994
16995
16996
16997
16998  if test "x$enable_dlopen" != xyes; then
16999  enable_dlopen=unknown
17000  enable_dlopen_self=unknown
17001  enable_dlopen_self_static=unknown
17002else
17003  lt_cv_dlopen=no
17004  lt_cv_dlopen_libs=
17005
17006  case $host_os in
17007  beos*)
17008    lt_cv_dlopen="load_add_on"
17009    lt_cv_dlopen_libs=
17010    lt_cv_dlopen_self=yes
17011    ;;
17012
17013  mingw* | pw32* | cegcc*)
17014    lt_cv_dlopen="LoadLibrary"
17015    lt_cv_dlopen_libs=
17016    ;;
17017
17018  cygwin*)
17019    lt_cv_dlopen="dlopen"
17020    lt_cv_dlopen_libs=
17021    ;;
17022
17023  darwin*)
17024  # if libdl is installed we need to link against it
17025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17026$as_echo_n "checking for dlopen in -ldl... " >&6; }
17027if ${ac_cv_lib_dl_dlopen+:} false; then :
17028  $as_echo_n "(cached) " >&6
17029else
17030  ac_check_lib_save_LIBS=$LIBS
17031LIBS="-ldl  $LIBS"
17032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h.  */
17034
17035/* Override any GCC internal prototype to avoid an error.
17036   Use char because int might match the return type of a GCC
17037   builtin and then its argument prototype would still apply.  */
17038#ifdef __cplusplus
17039extern "C"
17040#endif
17041char dlopen ();
17042int
17043main ()
17044{
17045return dlopen ();
17046  ;
17047  return 0;
17048}
17049_ACEOF
17050if ac_fn_c_try_link "$LINENO"; then :
17051  ac_cv_lib_dl_dlopen=yes
17052else
17053  ac_cv_lib_dl_dlopen=no
17054fi
17055rm -f core conftest.err conftest.$ac_objext \
17056    conftest$ac_exeext conftest.$ac_ext
17057LIBS=$ac_check_lib_save_LIBS
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17060$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17061if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17062  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17063else
17064
17065    lt_cv_dlopen="dyld"
17066    lt_cv_dlopen_libs=
17067    lt_cv_dlopen_self=yes
17068
17069fi
17070
17071    ;;
17072
17073  *)
17074    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17075if test "x$ac_cv_func_shl_load" = xyes; then :
17076  lt_cv_dlopen="shl_load"
17077else
17078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17079$as_echo_n "checking for shl_load in -ldld... " >&6; }
17080if ${ac_cv_lib_dld_shl_load+:} false; then :
17081  $as_echo_n "(cached) " >&6
17082else
17083  ac_check_lib_save_LIBS=$LIBS
17084LIBS="-ldld  $LIBS"
17085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086/* end confdefs.h.  */
17087
17088/* Override any GCC internal prototype to avoid an error.
17089   Use char because int might match the return type of a GCC
17090   builtin and then its argument prototype would still apply.  */
17091#ifdef __cplusplus
17092extern "C"
17093#endif
17094char shl_load ();
17095int
17096main ()
17097{
17098return shl_load ();
17099  ;
17100  return 0;
17101}
17102_ACEOF
17103if ac_fn_c_try_link "$LINENO"; then :
17104  ac_cv_lib_dld_shl_load=yes
17105else
17106  ac_cv_lib_dld_shl_load=no
17107fi
17108rm -f core conftest.err conftest.$ac_objext \
17109    conftest$ac_exeext conftest.$ac_ext
17110LIBS=$ac_check_lib_save_LIBS
17111fi
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17113$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17114if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17115  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17116else
17117  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17118if test "x$ac_cv_func_dlopen" = xyes; then :
17119  lt_cv_dlopen="dlopen"
17120else
17121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17122$as_echo_n "checking for dlopen in -ldl... " >&6; }
17123if ${ac_cv_lib_dl_dlopen+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  ac_check_lib_save_LIBS=$LIBS
17127LIBS="-ldl  $LIBS"
17128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h.  */
17130
17131/* Override any GCC internal prototype to avoid an error.
17132   Use char because int might match the return type of a GCC
17133   builtin and then its argument prototype would still apply.  */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137char dlopen ();
17138int
17139main ()
17140{
17141return dlopen ();
17142  ;
17143  return 0;
17144}
17145_ACEOF
17146if ac_fn_c_try_link "$LINENO"; then :
17147  ac_cv_lib_dl_dlopen=yes
17148else
17149  ac_cv_lib_dl_dlopen=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext \
17152    conftest$ac_exeext conftest.$ac_ext
17153LIBS=$ac_check_lib_save_LIBS
17154fi
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17156$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17157if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17158  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17159else
17160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17161$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17162if ${ac_cv_lib_svld_dlopen+:} false; then :
17163  $as_echo_n "(cached) " >&6
17164else
17165  ac_check_lib_save_LIBS=$LIBS
17166LIBS="-lsvld  $LIBS"
17167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168/* end confdefs.h.  */
17169
17170/* Override any GCC internal prototype to avoid an error.
17171   Use char because int might match the return type of a GCC
17172   builtin and then its argument prototype would still apply.  */
17173#ifdef __cplusplus
17174extern "C"
17175#endif
17176char dlopen ();
17177int
17178main ()
17179{
17180return dlopen ();
17181  ;
17182  return 0;
17183}
17184_ACEOF
17185if ac_fn_c_try_link "$LINENO"; then :
17186  ac_cv_lib_svld_dlopen=yes
17187else
17188  ac_cv_lib_svld_dlopen=no
17189fi
17190rm -f core conftest.err conftest.$ac_objext \
17191    conftest$ac_exeext conftest.$ac_ext
17192LIBS=$ac_check_lib_save_LIBS
17193fi
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17195$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17196if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17197  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17198else
17199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17200$as_echo_n "checking for dld_link in -ldld... " >&6; }
17201if ${ac_cv_lib_dld_dld_link+:} false; then :
17202  $as_echo_n "(cached) " >&6
17203else
17204  ac_check_lib_save_LIBS=$LIBS
17205LIBS="-ldld  $LIBS"
17206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208
17209/* Override any GCC internal prototype to avoid an error.
17210   Use char because int might match the return type of a GCC
17211   builtin and then its argument prototype would still apply.  */
17212#ifdef __cplusplus
17213extern "C"
17214#endif
17215char dld_link ();
17216int
17217main ()
17218{
17219return dld_link ();
17220  ;
17221  return 0;
17222}
17223_ACEOF
17224if ac_fn_c_try_link "$LINENO"; then :
17225  ac_cv_lib_dld_dld_link=yes
17226else
17227  ac_cv_lib_dld_dld_link=no
17228fi
17229rm -f core conftest.err conftest.$ac_objext \
17230    conftest$ac_exeext conftest.$ac_ext
17231LIBS=$ac_check_lib_save_LIBS
17232fi
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17234$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17235if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17236  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17237fi
17238
17239
17240fi
17241
17242
17243fi
17244
17245
17246fi
17247
17248
17249fi
17250
17251
17252fi
17253
17254    ;;
17255  esac
17256
17257  if test "x$lt_cv_dlopen" != xno; then
17258    enable_dlopen=yes
17259  else
17260    enable_dlopen=no
17261  fi
17262
17263  case $lt_cv_dlopen in
17264  dlopen)
17265    save_CPPFLAGS="$CPPFLAGS"
17266    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17267
17268    save_LDFLAGS="$LDFLAGS"
17269    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17270
17271    save_LIBS="$LIBS"
17272    LIBS="$lt_cv_dlopen_libs $LIBS"
17273
17274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17275$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17276if ${lt_cv_dlopen_self+:} false; then :
17277  $as_echo_n "(cached) " >&6
17278else
17279  	  if test "$cross_compiling" = yes; then :
17280  lt_cv_dlopen_self=cross
17281else
17282  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17283  lt_status=$lt_dlunknown
17284  cat > conftest.$ac_ext <<_LT_EOF
17285#line $LINENO "configure"
17286#include "confdefs.h"
17287
17288#if HAVE_DLFCN_H
17289#include <dlfcn.h>
17290#endif
17291
17292#include <stdio.h>
17293
17294#ifdef RTLD_GLOBAL
17295#  define LT_DLGLOBAL		RTLD_GLOBAL
17296#else
17297#  ifdef DL_GLOBAL
17298#    define LT_DLGLOBAL		DL_GLOBAL
17299#  else
17300#    define LT_DLGLOBAL		0
17301#  endif
17302#endif
17303
17304/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17305   find out it does not work in some platform. */
17306#ifndef LT_DLLAZY_OR_NOW
17307#  ifdef RTLD_LAZY
17308#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17309#  else
17310#    ifdef DL_LAZY
17311#      define LT_DLLAZY_OR_NOW		DL_LAZY
17312#    else
17313#      ifdef RTLD_NOW
17314#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17315#      else
17316#        ifdef DL_NOW
17317#          define LT_DLLAZY_OR_NOW	DL_NOW
17318#        else
17319#          define LT_DLLAZY_OR_NOW	0
17320#        endif
17321#      endif
17322#    endif
17323#  endif
17324#endif
17325
17326/* When -fvisbility=hidden is used, assume the code has been annotated
17327   correspondingly for the symbols needed.  */
17328#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17329int fnord () __attribute__((visibility("default")));
17330#endif
17331
17332int fnord () { return 42; }
17333int main ()
17334{
17335  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17336  int status = $lt_dlunknown;
17337
17338  if (self)
17339    {
17340      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17341      else
17342        {
17343	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17344          else puts (dlerror ());
17345	}
17346      /* dlclose (self); */
17347    }
17348  else
17349    puts (dlerror ());
17350
17351  return status;
17352}
17353_LT_EOF
17354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17355  (eval $ac_link) 2>&5
17356  ac_status=$?
17357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17359    (./conftest; exit; ) >&5 2>/dev/null
17360    lt_status=$?
17361    case x$lt_status in
17362      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17363      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17364      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17365    esac
17366  else :
17367    # compilation failed
17368    lt_cv_dlopen_self=no
17369  fi
17370fi
17371rm -fr conftest*
17372
17373
17374fi
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17376$as_echo "$lt_cv_dlopen_self" >&6; }
17377
17378    if test "x$lt_cv_dlopen_self" = xyes; then
17379      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17380      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17381$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17382if ${lt_cv_dlopen_self_static+:} false; then :
17383  $as_echo_n "(cached) " >&6
17384else
17385  	  if test "$cross_compiling" = yes; then :
17386  lt_cv_dlopen_self_static=cross
17387else
17388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17389  lt_status=$lt_dlunknown
17390  cat > conftest.$ac_ext <<_LT_EOF
17391#line $LINENO "configure"
17392#include "confdefs.h"
17393
17394#if HAVE_DLFCN_H
17395#include <dlfcn.h>
17396#endif
17397
17398#include <stdio.h>
17399
17400#ifdef RTLD_GLOBAL
17401#  define LT_DLGLOBAL		RTLD_GLOBAL
17402#else
17403#  ifdef DL_GLOBAL
17404#    define LT_DLGLOBAL		DL_GLOBAL
17405#  else
17406#    define LT_DLGLOBAL		0
17407#  endif
17408#endif
17409
17410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17411   find out it does not work in some platform. */
17412#ifndef LT_DLLAZY_OR_NOW
17413#  ifdef RTLD_LAZY
17414#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17415#  else
17416#    ifdef DL_LAZY
17417#      define LT_DLLAZY_OR_NOW		DL_LAZY
17418#    else
17419#      ifdef RTLD_NOW
17420#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17421#      else
17422#        ifdef DL_NOW
17423#          define LT_DLLAZY_OR_NOW	DL_NOW
17424#        else
17425#          define LT_DLLAZY_OR_NOW	0
17426#        endif
17427#      endif
17428#    endif
17429#  endif
17430#endif
17431
17432/* When -fvisbility=hidden is used, assume the code has been annotated
17433   correspondingly for the symbols needed.  */
17434#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17435int fnord () __attribute__((visibility("default")));
17436#endif
17437
17438int fnord () { return 42; }
17439int main ()
17440{
17441  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17442  int status = $lt_dlunknown;
17443
17444  if (self)
17445    {
17446      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17447      else
17448        {
17449	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17450          else puts (dlerror ());
17451	}
17452      /* dlclose (self); */
17453    }
17454  else
17455    puts (dlerror ());
17456
17457  return status;
17458}
17459_LT_EOF
17460  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17461  (eval $ac_link) 2>&5
17462  ac_status=$?
17463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17464  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17465    (./conftest; exit; ) >&5 2>/dev/null
17466    lt_status=$?
17467    case x$lt_status in
17468      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17469      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17470      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17471    esac
17472  else :
17473    # compilation failed
17474    lt_cv_dlopen_self_static=no
17475  fi
17476fi
17477rm -fr conftest*
17478
17479
17480fi
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17482$as_echo "$lt_cv_dlopen_self_static" >&6; }
17483    fi
17484
17485    CPPFLAGS="$save_CPPFLAGS"
17486    LDFLAGS="$save_LDFLAGS"
17487    LIBS="$save_LIBS"
17488    ;;
17489  esac
17490
17491  case $lt_cv_dlopen_self in
17492  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17493  *) enable_dlopen_self=unknown ;;
17494  esac
17495
17496  case $lt_cv_dlopen_self_static in
17497  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17498  *) enable_dlopen_self_static=unknown ;;
17499  esac
17500fi
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518striplib=
17519old_striplib=
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17521$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17522if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17523  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17524  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17526$as_echo "yes" >&6; }
17527else
17528# FIXME - insert some real tests, host_os isn't really good enough
17529  case $host_os in
17530  darwin*)
17531    if test -n "$STRIP" ; then
17532      striplib="$STRIP -x"
17533      old_striplib="$STRIP -S"
17534      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17535$as_echo "yes" >&6; }
17536    else
17537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538$as_echo "no" >&6; }
17539    fi
17540    ;;
17541  *)
17542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543$as_echo "no" >&6; }
17544    ;;
17545  esac
17546fi
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559  # Report which library types will actually be built
17560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17561$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17563$as_echo "$can_build_shared" >&6; }
17564
17565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17566$as_echo_n "checking whether to build shared libraries... " >&6; }
17567  test "$can_build_shared" = "no" && enable_shared=no
17568
17569  # On AIX, shared libraries and static libraries use the same namespace, and
17570  # are all built from PIC.
17571  case $host_os in
17572  aix3*)
17573    test "$enable_shared" = yes && enable_static=no
17574    if test -n "$RANLIB"; then
17575      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17576      postinstall_cmds='$RANLIB $lib'
17577    fi
17578    ;;
17579
17580  aix[4-9]*)
17581    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17582      test "$enable_shared" = yes && enable_static=no
17583    fi
17584    ;;
17585  esac
17586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17587$as_echo "$enable_shared" >&6; }
17588
17589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17590$as_echo_n "checking whether to build static libraries... " >&6; }
17591  # Make sure either enable_shared or enable_static is yes.
17592  test "$enable_shared" = yes || enable_static=yes
17593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17594$as_echo "$enable_static" >&6; }
17595
17596
17597
17598
17599fi
17600ac_ext=c
17601ac_cpp='$CPP $CPPFLAGS'
17602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604ac_compiler_gnu=$ac_cv_c_compiler_gnu
17605
17606CC="$lt_save_CC"
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620        ac_config_commands="$ac_config_commands libtool"
17621
17622
17623
17624
17625# Only expand once:
17626
17627
17628
17629
17630
17631# Define a configure option for an alternate module directory
17632
17633# Check whether --with-xorg-module-dir was given.
17634if test "${with_xorg_module_dir+set}" = set; then :
17635  withval=$with_xorg_module_dir; moduledir="$withval"
17636else
17637  moduledir="$libdir/xorg/modules"
17638fi
17639
17640
17641# Store the list of server defined optional extensions in REQUIRED_MODULES
17642
17643
17644	SAVE_CFLAGS="$CFLAGS"
17645	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17646	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647/* end confdefs.h.  */
17648
17649#include "xorg-server.h"
17650#if !defined RANDR
17651#error RANDR not defined
17652#endif
17653
17654int
17655main ()
17656{
17657
17658  ;
17659  return 0;
17660}
17661_ACEOF
17662if ac_fn_c_try_compile "$LINENO"; then :
17663  _EXT_CHECK=yes
17664else
17665  _EXT_CHECK=no
17666fi
17667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668	CFLAGS="$SAVE_CFLAGS"
17669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17670$as_echo_n "checking if RANDR is defined... " >&6; }
17671	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17672$as_echo "$_EXT_CHECK" >&6; }
17673	if test "$_EXT_CHECK" != no; then
17674		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17675	fi
17676
17677
17678
17679	SAVE_CFLAGS="$CFLAGS"
17680	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17681	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682/* end confdefs.h.  */
17683
17684#include "xorg-server.h"
17685#if !defined RENDER
17686#error RENDER not defined
17687#endif
17688
17689int
17690main ()
17691{
17692
17693  ;
17694  return 0;
17695}
17696_ACEOF
17697if ac_fn_c_try_compile "$LINENO"; then :
17698  _EXT_CHECK=yes
17699else
17700  _EXT_CHECK=no
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703	CFLAGS="$SAVE_CFLAGS"
17704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17705$as_echo_n "checking if RENDER is defined... " >&6; }
17706	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17707$as_echo "$_EXT_CHECK" >&6; }
17708	if test "$_EXT_CHECK" != no; then
17709		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17710	fi
17711
17712
17713# Obtain compiler/linker options for the driver dependencies
17714
17715pkg_failed=no
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17717$as_echo_n "checking for XORG... " >&6; }
17718
17719if test -n "$XORG_CFLAGS"; then
17720    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17721 elif test -n "$PKG_CONFIG"; then
17722    if test -n "$PKG_CONFIG" && \
17723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17724  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17725  ac_status=$?
17726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17727  test $ac_status = 0; }; then
17728  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17729		      test "x$?" != "x0" && pkg_failed=yes
17730else
17731  pkg_failed=yes
17732fi
17733 else
17734    pkg_failed=untried
17735fi
17736if test -n "$XORG_LIBS"; then
17737    pkg_cv_XORG_LIBS="$XORG_LIBS"
17738 elif test -n "$PKG_CONFIG"; then
17739    if test -n "$PKG_CONFIG" && \
17740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17741  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17742  ac_status=$?
17743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744  test $ac_status = 0; }; then
17745  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17746		      test "x$?" != "x0" && pkg_failed=yes
17747else
17748  pkg_failed=yes
17749fi
17750 else
17751    pkg_failed=untried
17752fi
17753
17754
17755
17756if test $pkg_failed = yes; then
17757   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17758$as_echo "no" >&6; }
17759
17760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17761        _pkg_short_errors_supported=yes
17762else
17763        _pkg_short_errors_supported=no
17764fi
17765        if test $_pkg_short_errors_supported = yes; then
17766	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17767        else
17768	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17769        fi
17770	# Put the nasty error message in config.log where it belongs
17771	echo "$XORG_PKG_ERRORS" >&5
17772
17773	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17774
17775$XORG_PKG_ERRORS
17776
17777Consider adjusting the PKG_CONFIG_PATH environment variable if you
17778installed software in a non-standard prefix.
17779
17780Alternatively, you may set the environment variables XORG_CFLAGS
17781and XORG_LIBS to avoid the need to call pkg-config.
17782See the pkg-config man page for more details." "$LINENO" 5
17783elif test $pkg_failed = untried; then
17784     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785$as_echo "no" >&6; }
17786	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17788as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17789is in your PATH or set the PKG_CONFIG environment variable to the full
17790path to pkg-config.
17791
17792Alternatively, you may set the environment variables XORG_CFLAGS
17793and XORG_LIBS to avoid the need to call pkg-config.
17794See the pkg-config man page for more details.
17795
17796To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17797See \`config.log' for more details" "$LINENO" 5; }
17798else
17799	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17800	XORG_LIBS=$pkg_cv_XORG_LIBS
17801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17802$as_echo "yes" >&6; }
17803
17804fi
17805
17806# Checks for libraries.
17807
17808
17809
17810DRIVER_NAME=suntcx
17811
17812
17813ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
17814
17815cat >confcache <<\_ACEOF
17816# This file is a shell script that caches the results of configure
17817# tests run on this system so they can be shared between configure
17818# scripts and configure runs, see configure's option --config-cache.
17819# It is not useful on other systems.  If it contains results you don't
17820# want to keep, you may remove or edit it.
17821#
17822# config.status only pays attention to the cache file if you give it
17823# the --recheck option to rerun configure.
17824#
17825# `ac_cv_env_foo' variables (set or unset) will be overridden when
17826# loading this file, other *unset* `ac_cv_foo' will be assigned the
17827# following values.
17828
17829_ACEOF
17830
17831# The following way of writing the cache mishandles newlines in values,
17832# but we know of no workaround that is simple, portable, and efficient.
17833# So, we kill variables containing newlines.
17834# Ultrix sh set writes to stderr and can't be redirected directly,
17835# and sets the high bit in the cache file unless we assign to the vars.
17836(
17837  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17838    eval ac_val=\$$ac_var
17839    case $ac_val in #(
17840    *${as_nl}*)
17841      case $ac_var in #(
17842      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17844      esac
17845      case $ac_var in #(
17846      _ | IFS | as_nl) ;; #(
17847      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17848      *) { eval $ac_var=; unset $ac_var;} ;;
17849      esac ;;
17850    esac
17851  done
17852
17853  (set) 2>&1 |
17854    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17855    *${as_nl}ac_space=\ *)
17856      # `set' does not quote correctly, so add quotes: double-quote
17857      # substitution turns \\\\ into \\, and sed turns \\ into \.
17858      sed -n \
17859	"s/'/'\\\\''/g;
17860	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17861      ;; #(
17862    *)
17863      # `set' quotes correctly as required by POSIX, so do not add quotes.
17864      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17865      ;;
17866    esac |
17867    sort
17868) |
17869  sed '
17870     /^ac_cv_env_/b end
17871     t clear
17872     :clear
17873     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17874     t end
17875     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17876     :end' >>confcache
17877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17878  if test -w "$cache_file"; then
17879    if test "x$cache_file" != "x/dev/null"; then
17880      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17881$as_echo "$as_me: updating cache $cache_file" >&6;}
17882      if test ! -f "$cache_file" || test -h "$cache_file"; then
17883	cat confcache >"$cache_file"
17884      else
17885        case $cache_file in #(
17886        */* | ?:*)
17887	  mv -f confcache "$cache_file"$$ &&
17888	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17889        *)
17890	  mv -f confcache "$cache_file" ;;
17891	esac
17892      fi
17893    fi
17894  else
17895    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17896$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17897  fi
17898fi
17899rm -f confcache
17900
17901test "x$prefix" = xNONE && prefix=$ac_default_prefix
17902# Let make expand exec_prefix.
17903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17904
17905DEFS=-DHAVE_CONFIG_H
17906
17907ac_libobjs=
17908ac_ltlibobjs=
17909U=
17910for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17911  # 1. Remove the extension, and $U if already installed.
17912  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17913  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17914  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17915  #    will be set to the directory where LIBOBJS objects are built.
17916  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17917  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17918done
17919LIBOBJS=$ac_libobjs
17920
17921LTLIBOBJS=$ac_ltlibobjs
17922
17923
17924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17925$as_echo_n "checking that generated files are newer than configure... " >&6; }
17926   if test -n "$am_sleep_pid"; then
17927     # Hide warnings about reused PIDs.
17928     wait $am_sleep_pid 2>/dev/null
17929   fi
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17931$as_echo "done" >&6; }
17932 if test -n "$EXEEXT"; then
17933  am__EXEEXT_TRUE=
17934  am__EXEEXT_FALSE='#'
17935else
17936  am__EXEEXT_TRUE='#'
17937  am__EXEEXT_FALSE=
17938fi
17939
17940if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17941  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17942Usually this means the macro was only invoked conditionally." "$LINENO" 5
17943fi
17944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17945  as_fn_error $? "conditional \"AMDEP\" was never defined.
17946Usually this means the macro was only invoked conditionally." "$LINENO" 5
17947fi
17948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17949  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17950Usually this means the macro was only invoked conditionally." "$LINENO" 5
17951fi
17952
17953: "${CONFIG_STATUS=./config.status}"
17954ac_write_fail=0
17955ac_clean_files_save=$ac_clean_files
17956ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17957{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17958$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17959as_write_fail=0
17960cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17961#! $SHELL
17962# Generated by $as_me.
17963# Run this file to recreate the current configuration.
17964# Compiler output produced by configure, useful for debugging
17965# configure, is in config.log if it exists.
17966
17967debug=false
17968ac_cs_recheck=false
17969ac_cs_silent=false
17970
17971SHELL=\${CONFIG_SHELL-$SHELL}
17972export SHELL
17973_ASEOF
17974cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17975## -------------------- ##
17976## M4sh Initialization. ##
17977## -------------------- ##
17978
17979# Be more Bourne compatible
17980DUALCASE=1; export DUALCASE # for MKS sh
17981if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17982  emulate sh
17983  NULLCMD=:
17984  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17985  # is contrary to our usage.  Disable this feature.
17986  alias -g '${1+"$@"}'='"$@"'
17987  setopt NO_GLOB_SUBST
17988else
17989  case `(set -o) 2>/dev/null` in #(
17990  *posix*) :
17991    set -o posix ;; #(
17992  *) :
17993     ;;
17994esac
17995fi
17996
17997
17998as_nl='
17999'
18000export as_nl
18001# Printing a long string crashes Solaris 7 /usr/bin/printf.
18002as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18003as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18005# Prefer a ksh shell builtin over an external printf program on Solaris,
18006# but without wasting forks for bash or zsh.
18007if test -z "$BASH_VERSION$ZSH_VERSION" \
18008    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18009  as_echo='print -r --'
18010  as_echo_n='print -rn --'
18011elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18012  as_echo='printf %s\n'
18013  as_echo_n='printf %s'
18014else
18015  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18016    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18017    as_echo_n='/usr/ucb/echo -n'
18018  else
18019    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18020    as_echo_n_body='eval
18021      arg=$1;
18022      case $arg in #(
18023      *"$as_nl"*)
18024	expr "X$arg" : "X\\(.*\\)$as_nl";
18025	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18026      esac;
18027      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18028    '
18029    export as_echo_n_body
18030    as_echo_n='sh -c $as_echo_n_body as_echo'
18031  fi
18032  export as_echo_body
18033  as_echo='sh -c $as_echo_body as_echo'
18034fi
18035
18036# The user is always right.
18037if test "${PATH_SEPARATOR+set}" != set; then
18038  PATH_SEPARATOR=:
18039  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18040    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18041      PATH_SEPARATOR=';'
18042  }
18043fi
18044
18045
18046# IFS
18047# We need space, tab and new line, in precisely that order.  Quoting is
18048# there to prevent editors from complaining about space-tab.
18049# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18050# splitting by setting IFS to empty value.)
18051IFS=" ""	$as_nl"
18052
18053# Find who we are.  Look in the path if we contain no directory separator.
18054as_myself=
18055case $0 in #((
18056  *[\\/]* ) as_myself=$0 ;;
18057  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058for as_dir in $PATH
18059do
18060  IFS=$as_save_IFS
18061  test -z "$as_dir" && as_dir=.
18062    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18063  done
18064IFS=$as_save_IFS
18065
18066     ;;
18067esac
18068# We did not find ourselves, most probably we were run as `sh COMMAND'
18069# in which case we are not to be found in the path.
18070if test "x$as_myself" = x; then
18071  as_myself=$0
18072fi
18073if test ! -f "$as_myself"; then
18074  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18075  exit 1
18076fi
18077
18078# Unset variables that we do not need and which cause bugs (e.g. in
18079# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18080# suppresses any "Segmentation fault" message there.  '((' could
18081# trigger a bug in pdksh 5.2.14.
18082for as_var in BASH_ENV ENV MAIL MAILPATH
18083do eval test x\${$as_var+set} = xset \
18084  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18085done
18086PS1='$ '
18087PS2='> '
18088PS4='+ '
18089
18090# NLS nuisances.
18091LC_ALL=C
18092export LC_ALL
18093LANGUAGE=C
18094export LANGUAGE
18095
18096# CDPATH.
18097(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18098
18099
18100# as_fn_error STATUS ERROR [LINENO LOG_FD]
18101# ----------------------------------------
18102# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18103# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18104# script with STATUS, using 1 if that was 0.
18105as_fn_error ()
18106{
18107  as_status=$1; test $as_status -eq 0 && as_status=1
18108  if test "$4"; then
18109    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18110    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18111  fi
18112  $as_echo "$as_me: error: $2" >&2
18113  as_fn_exit $as_status
18114} # as_fn_error
18115
18116
18117# as_fn_set_status STATUS
18118# -----------------------
18119# Set $? to STATUS, without forking.
18120as_fn_set_status ()
18121{
18122  return $1
18123} # as_fn_set_status
18124
18125# as_fn_exit STATUS
18126# -----------------
18127# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18128as_fn_exit ()
18129{
18130  set +e
18131  as_fn_set_status $1
18132  exit $1
18133} # as_fn_exit
18134
18135# as_fn_unset VAR
18136# ---------------
18137# Portably unset VAR.
18138as_fn_unset ()
18139{
18140  { eval $1=; unset $1;}
18141}
18142as_unset=as_fn_unset
18143# as_fn_append VAR VALUE
18144# ----------------------
18145# Append the text in VALUE to the end of the definition contained in VAR. Take
18146# advantage of any shell optimizations that allow amortized linear growth over
18147# repeated appends, instead of the typical quadratic growth present in naive
18148# implementations.
18149if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18150  eval 'as_fn_append ()
18151  {
18152    eval $1+=\$2
18153  }'
18154else
18155  as_fn_append ()
18156  {
18157    eval $1=\$$1\$2
18158  }
18159fi # as_fn_append
18160
18161# as_fn_arith ARG...
18162# ------------------
18163# Perform arithmetic evaluation on the ARGs, and store the result in the
18164# global $as_val. Take advantage of shells that can avoid forks. The arguments
18165# must be portable across $(()) and expr.
18166if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18167  eval 'as_fn_arith ()
18168  {
18169    as_val=$(( $* ))
18170  }'
18171else
18172  as_fn_arith ()
18173  {
18174    as_val=`expr "$@" || test $? -eq 1`
18175  }
18176fi # as_fn_arith
18177
18178
18179if expr a : '\(a\)' >/dev/null 2>&1 &&
18180   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18181  as_expr=expr
18182else
18183  as_expr=false
18184fi
18185
18186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18187  as_basename=basename
18188else
18189  as_basename=false
18190fi
18191
18192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18193  as_dirname=dirname
18194else
18195  as_dirname=false
18196fi
18197
18198as_me=`$as_basename -- "$0" ||
18199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18200	 X"$0" : 'X\(//\)$' \| \
18201	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18202$as_echo X/"$0" |
18203    sed '/^.*\/\([^/][^/]*\)\/*$/{
18204	    s//\1/
18205	    q
18206	  }
18207	  /^X\/\(\/\/\)$/{
18208	    s//\1/
18209	    q
18210	  }
18211	  /^X\/\(\/\).*/{
18212	    s//\1/
18213	    q
18214	  }
18215	  s/.*/./; q'`
18216
18217# Avoid depending upon Character Ranges.
18218as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18220as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18221as_cr_digits='0123456789'
18222as_cr_alnum=$as_cr_Letters$as_cr_digits
18223
18224ECHO_C= ECHO_N= ECHO_T=
18225case `echo -n x` in #(((((
18226-n*)
18227  case `echo 'xy\c'` in
18228  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18229  xy)  ECHO_C='\c';;
18230  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18231       ECHO_T='	';;
18232  esac;;
18233*)
18234  ECHO_N='-n';;
18235esac
18236
18237rm -f conf$$ conf$$.exe conf$$.file
18238if test -d conf$$.dir; then
18239  rm -f conf$$.dir/conf$$.file
18240else
18241  rm -f conf$$.dir
18242  mkdir conf$$.dir 2>/dev/null
18243fi
18244if (echo >conf$$.file) 2>/dev/null; then
18245  if ln -s conf$$.file conf$$ 2>/dev/null; then
18246    as_ln_s='ln -s'
18247    # ... but there are two gotchas:
18248    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18249    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18250    # In both cases, we have to default to `cp -pR'.
18251    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18252      as_ln_s='cp -pR'
18253  elif ln conf$$.file conf$$ 2>/dev/null; then
18254    as_ln_s=ln
18255  else
18256    as_ln_s='cp -pR'
18257  fi
18258else
18259  as_ln_s='cp -pR'
18260fi
18261rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18262rmdir conf$$.dir 2>/dev/null
18263
18264
18265# as_fn_mkdir_p
18266# -------------
18267# Create "$as_dir" as a directory, including parents if necessary.
18268as_fn_mkdir_p ()
18269{
18270
18271  case $as_dir in #(
18272  -*) as_dir=./$as_dir;;
18273  esac
18274  test -d "$as_dir" || eval $as_mkdir_p || {
18275    as_dirs=
18276    while :; do
18277      case $as_dir in #(
18278      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18279      *) as_qdir=$as_dir;;
18280      esac
18281      as_dirs="'$as_qdir' $as_dirs"
18282      as_dir=`$as_dirname -- "$as_dir" ||
18283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18284	 X"$as_dir" : 'X\(//\)[^/]' \| \
18285	 X"$as_dir" : 'X\(//\)$' \| \
18286	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18287$as_echo X"$as_dir" |
18288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18289	    s//\1/
18290	    q
18291	  }
18292	  /^X\(\/\/\)[^/].*/{
18293	    s//\1/
18294	    q
18295	  }
18296	  /^X\(\/\/\)$/{
18297	    s//\1/
18298	    q
18299	  }
18300	  /^X\(\/\).*/{
18301	    s//\1/
18302	    q
18303	  }
18304	  s/.*/./; q'`
18305      test -d "$as_dir" && break
18306    done
18307    test -z "$as_dirs" || eval "mkdir $as_dirs"
18308  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18309
18310
18311} # as_fn_mkdir_p
18312if mkdir -p . 2>/dev/null; then
18313  as_mkdir_p='mkdir -p "$as_dir"'
18314else
18315  test -d ./-p && rmdir ./-p
18316  as_mkdir_p=false
18317fi
18318
18319
18320# as_fn_executable_p FILE
18321# -----------------------
18322# Test if FILE is an executable regular file.
18323as_fn_executable_p ()
18324{
18325  test -f "$1" && test -x "$1"
18326} # as_fn_executable_p
18327as_test_x='test -x'
18328as_executable_p=as_fn_executable_p
18329
18330# Sed expression to map a string onto a valid CPP name.
18331as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18332
18333# Sed expression to map a string onto a valid variable name.
18334as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18335
18336
18337exec 6>&1
18338## ----------------------------------- ##
18339## Main body of $CONFIG_STATUS script. ##
18340## ----------------------------------- ##
18341_ASEOF
18342test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18343
18344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18345# Save the log message, to keep $0 and so on meaningful, and to
18346# report actual input values of CONFIG_FILES etc. instead of their
18347# values after options handling.
18348ac_log="
18349This file was extended by xf86-video-suntcx $as_me 1.1.2, which was
18350generated by GNU Autoconf 2.69.  Invocation command line was
18351
18352  CONFIG_FILES    = $CONFIG_FILES
18353  CONFIG_HEADERS  = $CONFIG_HEADERS
18354  CONFIG_LINKS    = $CONFIG_LINKS
18355  CONFIG_COMMANDS = $CONFIG_COMMANDS
18356  $ $0 $@
18357
18358on `(hostname || uname -n) 2>/dev/null | sed 1q`
18359"
18360
18361_ACEOF
18362
18363case $ac_config_files in *"
18364"*) set x $ac_config_files; shift; ac_config_files=$*;;
18365esac
18366
18367case $ac_config_headers in *"
18368"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18369esac
18370
18371
18372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18373# Files that config.status was made for.
18374config_files="$ac_config_files"
18375config_headers="$ac_config_headers"
18376config_commands="$ac_config_commands"
18377
18378_ACEOF
18379
18380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381ac_cs_usage="\
18382\`$as_me' instantiates files and other configuration actions
18383from templates according to the current configuration.  Unless the files
18384and actions are specified as TAGs, all are instantiated by default.
18385
18386Usage: $0 [OPTION]... [TAG]...
18387
18388  -h, --help       print this help, then exit
18389  -V, --version    print version number and configuration settings, then exit
18390      --config     print configuration, then exit
18391  -q, --quiet, --silent
18392                   do not print progress messages
18393  -d, --debug      don't remove temporary files
18394      --recheck    update $as_me by reconfiguring in the same conditions
18395      --file=FILE[:TEMPLATE]
18396                   instantiate the configuration file FILE
18397      --header=FILE[:TEMPLATE]
18398                   instantiate the configuration header FILE
18399
18400Configuration files:
18401$config_files
18402
18403Configuration headers:
18404$config_headers
18405
18406Configuration commands:
18407$config_commands
18408
18409Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18410
18411_ACEOF
18412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18413ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18414ac_cs_version="\\
18415xf86-video-suntcx config.status 1.1.2
18416configured by $0, generated by GNU Autoconf 2.69,
18417  with options \\"\$ac_cs_config\\"
18418
18419Copyright (C) 2012 Free Software Foundation, Inc.
18420This config.status script is free software; the Free Software Foundation
18421gives unlimited permission to copy, distribute and modify it."
18422
18423ac_pwd='$ac_pwd'
18424srcdir='$srcdir'
18425INSTALL='$INSTALL'
18426MKDIR_P='$MKDIR_P'
18427AWK='$AWK'
18428test -n "\$AWK" || AWK=awk
18429_ACEOF
18430
18431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18432# The default lists apply if the user does not specify any file.
18433ac_need_defaults=:
18434while test $# != 0
18435do
18436  case $1 in
18437  --*=?*)
18438    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18439    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18440    ac_shift=:
18441    ;;
18442  --*=)
18443    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18444    ac_optarg=
18445    ac_shift=:
18446    ;;
18447  *)
18448    ac_option=$1
18449    ac_optarg=$2
18450    ac_shift=shift
18451    ;;
18452  esac
18453
18454  case $ac_option in
18455  # Handling of the options.
18456  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18457    ac_cs_recheck=: ;;
18458  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18459    $as_echo "$ac_cs_version"; exit ;;
18460  --config | --confi | --conf | --con | --co | --c )
18461    $as_echo "$ac_cs_config"; exit ;;
18462  --debug | --debu | --deb | --de | --d | -d )
18463    debug=: ;;
18464  --file | --fil | --fi | --f )
18465    $ac_shift
18466    case $ac_optarg in
18467    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18468    '') as_fn_error $? "missing file argument" ;;
18469    esac
18470    as_fn_append CONFIG_FILES " '$ac_optarg'"
18471    ac_need_defaults=false;;
18472  --header | --heade | --head | --hea )
18473    $ac_shift
18474    case $ac_optarg in
18475    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18476    esac
18477    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18478    ac_need_defaults=false;;
18479  --he | --h)
18480    # Conflict between --help and --header
18481    as_fn_error $? "ambiguous option: \`$1'
18482Try \`$0 --help' for more information.";;
18483  --help | --hel | -h )
18484    $as_echo "$ac_cs_usage"; exit ;;
18485  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18486  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18487    ac_cs_silent=: ;;
18488
18489  # This is an error.
18490  -*) as_fn_error $? "unrecognized option: \`$1'
18491Try \`$0 --help' for more information." ;;
18492
18493  *) as_fn_append ac_config_targets " $1"
18494     ac_need_defaults=false ;;
18495
18496  esac
18497  shift
18498done
18499
18500ac_configure_extra_args=
18501
18502if $ac_cs_silent; then
18503  exec 6>/dev/null
18504  ac_configure_extra_args="$ac_configure_extra_args --silent"
18505fi
18506
18507_ACEOF
18508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18509if \$ac_cs_recheck; then
18510  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18511  shift
18512  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18513  CONFIG_SHELL='$SHELL'
18514  export CONFIG_SHELL
18515  exec "\$@"
18516fi
18517
18518_ACEOF
18519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18520exec 5>>config.log
18521{
18522  echo
18523  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18524## Running $as_me. ##
18525_ASBOX
18526  $as_echo "$ac_log"
18527} >&5
18528
18529_ACEOF
18530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18531#
18532# INIT-COMMANDS
18533#
18534AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18535
18536
18537# The HP-UX ksh and POSIX shell print the target directory to stdout
18538# if CDPATH is set.
18539(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18540
18541sed_quote_subst='$sed_quote_subst'
18542double_quote_subst='$double_quote_subst'
18543delay_variable_subst='$delay_variable_subst'
18544enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18545macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18546macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18547enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18548pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18549enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18550SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18551ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18552host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18553host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18554host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18555build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18556build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18557build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18558SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18559Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18560GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18561EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18562FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18563LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18564NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18565LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18566max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18567ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18568exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18569lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18570lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18571lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18572lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18573lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18574reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18575reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18576OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18577deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18578file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18579file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18580want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18581DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18582sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18583AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18584AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18585archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18586STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18587RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18588old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18589old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18590old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18591lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18592CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18593CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18594compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18595GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18596lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18597lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18598lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18599lt_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"`'
18600nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18601lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18605lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18606lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18610MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18611DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18612NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18613LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18614OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18615OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18616libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18617shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18618extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18619archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18620enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18621export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18622whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18623compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18624old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18625old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18626archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18627archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18628module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18629module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18630with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18631allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18632no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18633hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18634hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18635hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18636hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18637hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18638hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18639hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18640hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18641inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18642link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18643always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18644export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18645exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18646include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18647prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18648postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18649file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18650variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18651need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18652need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18653version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18654runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18655shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18656shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18657libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18658library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18659soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18660install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18661postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18662postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18663finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18664finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18665hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18666sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18667sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18668hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18669enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18670enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18671enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18672old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18673striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18674
18675LTCC='$LTCC'
18676LTCFLAGS='$LTCFLAGS'
18677compiler='$compiler_DEFAULT'
18678
18679# A function that is used when there is no print builtin or printf.
18680func_fallback_echo ()
18681{
18682  eval 'cat <<_LTECHO_EOF
18683\$1
18684_LTECHO_EOF'
18685}
18686
18687# Quote evaled strings.
18688for var in SHELL \
18689ECHO \
18690SED \
18691GREP \
18692EGREP \
18693FGREP \
18694LD \
18695NM \
18696LN_S \
18697lt_SP2NL \
18698lt_NL2SP \
18699reload_flag \
18700OBJDUMP \
18701deplibs_check_method \
18702file_magic_cmd \
18703file_magic_glob \
18704want_nocaseglob \
18705DLLTOOL \
18706sharedlib_from_linklib_cmd \
18707AR \
18708AR_FLAGS \
18709archiver_list_spec \
18710STRIP \
18711RANLIB \
18712CC \
18713CFLAGS \
18714compiler \
18715lt_cv_sys_global_symbol_pipe \
18716lt_cv_sys_global_symbol_to_cdecl \
18717lt_cv_sys_global_symbol_to_c_name_address \
18718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18719nm_file_list_spec \
18720lt_prog_compiler_no_builtin_flag \
18721lt_prog_compiler_pic \
18722lt_prog_compiler_wl \
18723lt_prog_compiler_static \
18724lt_cv_prog_compiler_c_o \
18725need_locks \
18726MANIFEST_TOOL \
18727DSYMUTIL \
18728NMEDIT \
18729LIPO \
18730OTOOL \
18731OTOOL64 \
18732shrext_cmds \
18733export_dynamic_flag_spec \
18734whole_archive_flag_spec \
18735compiler_needs_object \
18736with_gnu_ld \
18737allow_undefined_flag \
18738no_undefined_flag \
18739hardcode_libdir_flag_spec \
18740hardcode_libdir_flag_spec_ld \
18741hardcode_libdir_separator \
18742exclude_expsyms \
18743include_expsyms \
18744file_list_spec \
18745variables_saved_for_relink \
18746libname_spec \
18747library_names_spec \
18748soname_spec \
18749install_override_mode \
18750finish_eval \
18751old_striplib \
18752striplib; do
18753    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18754    *[\\\\\\\`\\"\\\$]*)
18755      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18756      ;;
18757    *)
18758      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18759      ;;
18760    esac
18761done
18762
18763# Double-quote double-evaled strings.
18764for var in reload_cmds \
18765old_postinstall_cmds \
18766old_postuninstall_cmds \
18767old_archive_cmds \
18768extract_expsyms_cmds \
18769old_archive_from_new_cmds \
18770old_archive_from_expsyms_cmds \
18771archive_cmds \
18772archive_expsym_cmds \
18773module_cmds \
18774module_expsym_cmds \
18775export_symbols_cmds \
18776prelink_cmds \
18777postlink_cmds \
18778postinstall_cmds \
18779postuninstall_cmds \
18780finish_cmds \
18781sys_lib_search_path_spec \
18782sys_lib_dlsearch_path_spec; do
18783    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18784    *[\\\\\\\`\\"\\\$]*)
18785      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18786      ;;
18787    *)
18788      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18789      ;;
18790    esac
18791done
18792
18793ac_aux_dir='$ac_aux_dir'
18794xsi_shell='$xsi_shell'
18795lt_shell_append='$lt_shell_append'
18796
18797# See if we are running on zsh, and set the options which allow our
18798# commands through without removal of \ escapes INIT.
18799if test -n "\${ZSH_VERSION+set}" ; then
18800   setopt NO_GLOB_SUBST
18801fi
18802
18803
18804    PACKAGE='$PACKAGE'
18805    VERSION='$VERSION'
18806    TIMESTAMP='$TIMESTAMP'
18807    RM='$RM'
18808    ofile='$ofile'
18809
18810
18811
18812
18813_ACEOF
18814
18815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18816
18817# Handling of arguments.
18818for ac_config_target in $ac_config_targets
18819do
18820  case $ac_config_target in
18821    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18822    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18823    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18824    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18825    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18826    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18827
18828  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18829  esac
18830done
18831
18832
18833# If the user did not use the arguments to specify the items to instantiate,
18834# then the envvar interface is used.  Set only those that are not.
18835# We use the long form for the default assignment because of an extremely
18836# bizarre bug on SunOS 4.1.3.
18837if $ac_need_defaults; then
18838  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18839  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18840  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18841fi
18842
18843# Have a temporary directory for convenience.  Make it in the build tree
18844# simply because there is no reason against having it here, and in addition,
18845# creating and moving files from /tmp can sometimes cause problems.
18846# Hook for its removal unless debugging.
18847# Note that there is a small window in which the directory will not be cleaned:
18848# after its creation but before its name has been assigned to `$tmp'.
18849$debug ||
18850{
18851  tmp= ac_tmp=
18852  trap 'exit_status=$?
18853  : "${ac_tmp:=$tmp}"
18854  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18855' 0
18856  trap 'as_fn_exit 1' 1 2 13 15
18857}
18858# Create a (secure) tmp directory for tmp files.
18859
18860{
18861  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18862  test -d "$tmp"
18863}  ||
18864{
18865  tmp=./conf$$-$RANDOM
18866  (umask 077 && mkdir "$tmp")
18867} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18868ac_tmp=$tmp
18869
18870# Set up the scripts for CONFIG_FILES section.
18871# No need to generate them if there are no CONFIG_FILES.
18872# This happens for instance with `./config.status config.h'.
18873if test -n "$CONFIG_FILES"; then
18874
18875
18876ac_cr=`echo X | tr X '\015'`
18877# On cygwin, bash can eat \r inside `` if the user requested igncr.
18878# But we know of no other shell where ac_cr would be empty at this
18879# point, so we can use a bashism as a fallback.
18880if test "x$ac_cr" = x; then
18881  eval ac_cr=\$\'\\r\'
18882fi
18883ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18884if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18885  ac_cs_awk_cr='\\r'
18886else
18887  ac_cs_awk_cr=$ac_cr
18888fi
18889
18890echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18891_ACEOF
18892
18893
18894{
18895  echo "cat >conf$$subs.awk <<_ACEOF" &&
18896  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18897  echo "_ACEOF"
18898} >conf$$subs.sh ||
18899  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18900ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18901ac_delim='%!_!# '
18902for ac_last_try in false false false false false :; do
18903  . ./conf$$subs.sh ||
18904    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18905
18906  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18907  if test $ac_delim_n = $ac_delim_num; then
18908    break
18909  elif $ac_last_try; then
18910    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18911  else
18912    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18913  fi
18914done
18915rm -f conf$$subs.sh
18916
18917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18918cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18919_ACEOF
18920sed -n '
18921h
18922s/^/S["/; s/!.*/"]=/
18923p
18924g
18925s/^[^!]*!//
18926:repl
18927t repl
18928s/'"$ac_delim"'$//
18929t delim
18930:nl
18931h
18932s/\(.\{148\}\)..*/\1/
18933t more1
18934s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18935p
18936n
18937b repl
18938:more1
18939s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18940p
18941g
18942s/.\{148\}//
18943t nl
18944:delim
18945h
18946s/\(.\{148\}\)..*/\1/
18947t more2
18948s/["\\]/\\&/g; s/^/"/; s/$/"/
18949p
18950b
18951:more2
18952s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18953p
18954g
18955s/.\{148\}//
18956t delim
18957' <conf$$subs.awk | sed '
18958/^[^""]/{
18959  N
18960  s/\n//
18961}
18962' >>$CONFIG_STATUS || ac_write_fail=1
18963rm -f conf$$subs.awk
18964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18965_ACAWK
18966cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18967  for (key in S) S_is_set[key] = 1
18968  FS = ""
18969
18970}
18971{
18972  line = $ 0
18973  nfields = split(line, field, "@")
18974  substed = 0
18975  len = length(field[1])
18976  for (i = 2; i < nfields; i++) {
18977    key = field[i]
18978    keylen = length(key)
18979    if (S_is_set[key]) {
18980      value = S[key]
18981      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18982      len += length(value) + length(field[++i])
18983      substed = 1
18984    } else
18985      len += 1 + keylen
18986  }
18987
18988  print line
18989}
18990
18991_ACAWK
18992_ACEOF
18993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18994if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18995  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18996else
18997  cat
18998fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18999  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19000_ACEOF
19001
19002# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19003# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19004# trailing colons and then remove the whole line if VPATH becomes empty
19005# (actually we leave an empty line to preserve line numbers).
19006if test "x$srcdir" = x.; then
19007  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19008h
19009s///
19010s/^/:/
19011s/[	 ]*$/:/
19012s/:\$(srcdir):/:/g
19013s/:\${srcdir}:/:/g
19014s/:@srcdir@:/:/g
19015s/^:*//
19016s/:*$//
19017x
19018s/\(=[	 ]*\).*/\1/
19019G
19020s/\n//
19021s/^[^=]*=[	 ]*$//
19022}'
19023fi
19024
19025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026fi # test -n "$CONFIG_FILES"
19027
19028# Set up the scripts for CONFIG_HEADERS section.
19029# No need to generate them if there are no CONFIG_HEADERS.
19030# This happens for instance with `./config.status Makefile'.
19031if test -n "$CONFIG_HEADERS"; then
19032cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19033BEGIN {
19034_ACEOF
19035
19036# Transform confdefs.h into an awk script `defines.awk', embedded as
19037# here-document in config.status, that substitutes the proper values into
19038# config.h.in to produce config.h.
19039
19040# Create a delimiter string that does not exist in confdefs.h, to ease
19041# handling of long lines.
19042ac_delim='%!_!# '
19043for ac_last_try in false false :; do
19044  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19045  if test -z "$ac_tt"; then
19046    break
19047  elif $ac_last_try; then
19048    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19049  else
19050    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19051  fi
19052done
19053
19054# For the awk script, D is an array of macro values keyed by name,
19055# likewise P contains macro parameters if any.  Preserve backslash
19056# newline sequences.
19057
19058ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19059sed -n '
19060s/.\{148\}/&'"$ac_delim"'/g
19061t rset
19062:rset
19063s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19064t def
19065d
19066:def
19067s/\\$//
19068t bsnl
19069s/["\\]/\\&/g
19070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19071D["\1"]=" \3"/p
19072s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19073d
19074:bsnl
19075s/["\\]/\\&/g
19076s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19077D["\1"]=" \3\\\\\\n"\\/p
19078t cont
19079s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19080t cont
19081d
19082:cont
19083n
19084s/.\{148\}/&'"$ac_delim"'/g
19085t clear
19086:clear
19087s/\\$//
19088t bsnlc
19089s/["\\]/\\&/g; s/^/"/; s/$/"/p
19090d
19091:bsnlc
19092s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19093b cont
19094' <confdefs.h | sed '
19095s/'"$ac_delim"'/"\\\
19096"/g' >>$CONFIG_STATUS || ac_write_fail=1
19097
19098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19099  for (key in D) D_is_set[key] = 1
19100  FS = ""
19101}
19102/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19103  line = \$ 0
19104  split(line, arg, " ")
19105  if (arg[1] == "#") {
19106    defundef = arg[2]
19107    mac1 = arg[3]
19108  } else {
19109    defundef = substr(arg[1], 2)
19110    mac1 = arg[2]
19111  }
19112  split(mac1, mac2, "(") #)
19113  macro = mac2[1]
19114  prefix = substr(line, 1, index(line, defundef) - 1)
19115  if (D_is_set[macro]) {
19116    # Preserve the white space surrounding the "#".
19117    print prefix "define", macro P[macro] D[macro]
19118    next
19119  } else {
19120    # Replace #undef with comments.  This is necessary, for example,
19121    # in the case of _POSIX_SOURCE, which is predefined and required
19122    # on some systems where configure will not decide to define it.
19123    if (defundef == "undef") {
19124      print "/*", prefix defundef, macro, "*/"
19125      next
19126    }
19127  }
19128}
19129{ print }
19130_ACAWK
19131_ACEOF
19132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19133  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19134fi # test -n "$CONFIG_HEADERS"
19135
19136
19137eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19138shift
19139for ac_tag
19140do
19141  case $ac_tag in
19142  :[FHLC]) ac_mode=$ac_tag; continue;;
19143  esac
19144  case $ac_mode$ac_tag in
19145  :[FHL]*:*);;
19146  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19147  :[FH]-) ac_tag=-:-;;
19148  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19149  esac
19150  ac_save_IFS=$IFS
19151  IFS=:
19152  set x $ac_tag
19153  IFS=$ac_save_IFS
19154  shift
19155  ac_file=$1
19156  shift
19157
19158  case $ac_mode in
19159  :L) ac_source=$1;;
19160  :[FH])
19161    ac_file_inputs=
19162    for ac_f
19163    do
19164      case $ac_f in
19165      -) ac_f="$ac_tmp/stdin";;
19166      *) # Look for the file first in the build tree, then in the source tree
19167	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19168	 # because $ac_f cannot contain `:'.
19169	 test -f "$ac_f" ||
19170	   case $ac_f in
19171	   [\\/$]*) false;;
19172	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19173	   esac ||
19174	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19175      esac
19176      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19177      as_fn_append ac_file_inputs " '$ac_f'"
19178    done
19179
19180    # Let's still pretend it is `configure' which instantiates (i.e., don't
19181    # use $as_me), people would be surprised to read:
19182    #    /* config.h.  Generated by config.status.  */
19183    configure_input='Generated from '`
19184	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19185	`' by configure.'
19186    if test x"$ac_file" != x-; then
19187      configure_input="$ac_file.  $configure_input"
19188      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19189$as_echo "$as_me: creating $ac_file" >&6;}
19190    fi
19191    # Neutralize special characters interpreted by sed in replacement strings.
19192    case $configure_input in #(
19193    *\&* | *\|* | *\\* )
19194       ac_sed_conf_input=`$as_echo "$configure_input" |
19195       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19196    *) ac_sed_conf_input=$configure_input;;
19197    esac
19198
19199    case $ac_tag in
19200    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19201      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19202    esac
19203    ;;
19204  esac
19205
19206  ac_dir=`$as_dirname -- "$ac_file" ||
19207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208	 X"$ac_file" : 'X\(//\)[^/]' \| \
19209	 X"$ac_file" : 'X\(//\)$' \| \
19210	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19211$as_echo X"$ac_file" |
19212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213	    s//\1/
19214	    q
19215	  }
19216	  /^X\(\/\/\)[^/].*/{
19217	    s//\1/
19218	    q
19219	  }
19220	  /^X\(\/\/\)$/{
19221	    s//\1/
19222	    q
19223	  }
19224	  /^X\(\/\).*/{
19225	    s//\1/
19226	    q
19227	  }
19228	  s/.*/./; q'`
19229  as_dir="$ac_dir"; as_fn_mkdir_p
19230  ac_builddir=.
19231
19232case "$ac_dir" in
19233.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19234*)
19235  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19236  # A ".." for each directory in $ac_dir_suffix.
19237  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19238  case $ac_top_builddir_sub in
19239  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19240  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19241  esac ;;
19242esac
19243ac_abs_top_builddir=$ac_pwd
19244ac_abs_builddir=$ac_pwd$ac_dir_suffix
19245# for backward compatibility:
19246ac_top_builddir=$ac_top_build_prefix
19247
19248case $srcdir in
19249  .)  # We are building in place.
19250    ac_srcdir=.
19251    ac_top_srcdir=$ac_top_builddir_sub
19252    ac_abs_top_srcdir=$ac_pwd ;;
19253  [\\/]* | ?:[\\/]* )  # Absolute name.
19254    ac_srcdir=$srcdir$ac_dir_suffix;
19255    ac_top_srcdir=$srcdir
19256    ac_abs_top_srcdir=$srcdir ;;
19257  *) # Relative name.
19258    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19259    ac_top_srcdir=$ac_top_build_prefix$srcdir
19260    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19261esac
19262ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19263
19264
19265  case $ac_mode in
19266  :F)
19267  #
19268  # CONFIG_FILE
19269  #
19270
19271  case $INSTALL in
19272  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19273  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19274  esac
19275  ac_MKDIR_P=$MKDIR_P
19276  case $MKDIR_P in
19277  [\\/$]* | ?:[\\/]* ) ;;
19278  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19279  esac
19280_ACEOF
19281
19282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19283# If the template does not know about datarootdir, expand it.
19284# FIXME: This hack should be removed a few years after 2.60.
19285ac_datarootdir_hack=; ac_datarootdir_seen=
19286ac_sed_dataroot='
19287/datarootdir/ {
19288  p
19289  q
19290}
19291/@datadir@/p
19292/@docdir@/p
19293/@infodir@/p
19294/@localedir@/p
19295/@mandir@/p'
19296case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19297*datarootdir*) ac_datarootdir_seen=yes;;
19298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19300$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19301_ACEOF
19302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19303  ac_datarootdir_hack='
19304  s&@datadir@&$datadir&g
19305  s&@docdir@&$docdir&g
19306  s&@infodir@&$infodir&g
19307  s&@localedir@&$localedir&g
19308  s&@mandir@&$mandir&g
19309  s&\\\${datarootdir}&$datarootdir&g' ;;
19310esac
19311_ACEOF
19312
19313# Neutralize VPATH when `$srcdir' = `.'.
19314# Shell code in configure.ac might set extrasub.
19315# FIXME: do we really want to maintain this feature?
19316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317ac_sed_extra="$ac_vpsub
19318$extrasub
19319_ACEOF
19320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19321:t
19322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19323s|@configure_input@|$ac_sed_conf_input|;t t
19324s&@top_builddir@&$ac_top_builddir_sub&;t t
19325s&@top_build_prefix@&$ac_top_build_prefix&;t t
19326s&@srcdir@&$ac_srcdir&;t t
19327s&@abs_srcdir@&$ac_abs_srcdir&;t t
19328s&@top_srcdir@&$ac_top_srcdir&;t t
19329s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19330s&@builddir@&$ac_builddir&;t t
19331s&@abs_builddir@&$ac_abs_builddir&;t t
19332s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19333s&@INSTALL@&$ac_INSTALL&;t t
19334s&@MKDIR_P@&$ac_MKDIR_P&;t t
19335$ac_datarootdir_hack
19336"
19337eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19338  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19339
19340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19341  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19342  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19343      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19345which seems to be undefined.  Please make sure it is defined" >&5
19346$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19347which seems to be undefined.  Please make sure it is defined" >&2;}
19348
19349  rm -f "$ac_tmp/stdin"
19350  case $ac_file in
19351  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19352  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19353  esac \
19354  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19355 ;;
19356  :H)
19357  #
19358  # CONFIG_HEADER
19359  #
19360  if test x"$ac_file" != x-; then
19361    {
19362      $as_echo "/* $configure_input  */" \
19363      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19364    } >"$ac_tmp/config.h" \
19365      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19366    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19367      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19368$as_echo "$as_me: $ac_file is unchanged" >&6;}
19369    else
19370      rm -f "$ac_file"
19371      mv "$ac_tmp/config.h" "$ac_file" \
19372	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19373    fi
19374  else
19375    $as_echo "/* $configure_input  */" \
19376      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19377      || as_fn_error $? "could not create -" "$LINENO" 5
19378  fi
19379# Compute "$ac_file"'s index in $config_headers.
19380_am_arg="$ac_file"
19381_am_stamp_count=1
19382for _am_header in $config_headers :; do
19383  case $_am_header in
19384    $_am_arg | $_am_arg:* )
19385      break ;;
19386    * )
19387      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19388  esac
19389done
19390echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19391$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19392	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19393	 X"$_am_arg" : 'X\(//\)$' \| \
19394	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19395$as_echo X"$_am_arg" |
19396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19397	    s//\1/
19398	    q
19399	  }
19400	  /^X\(\/\/\)[^/].*/{
19401	    s//\1/
19402	    q
19403	  }
19404	  /^X\(\/\/\)$/{
19405	    s//\1/
19406	    q
19407	  }
19408	  /^X\(\/\).*/{
19409	    s//\1/
19410	    q
19411	  }
19412	  s/.*/./; q'`/stamp-h$_am_stamp_count
19413 ;;
19414
19415  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19416$as_echo "$as_me: executing $ac_file commands" >&6;}
19417 ;;
19418  esac
19419
19420
19421  case $ac_file$ac_mode in
19422    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19423  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19424  # are listed without --file.  Let's play safe and only enable the eval
19425  # if we detect the quoting.
19426  case $CONFIG_FILES in
19427  *\'*) eval set x "$CONFIG_FILES" ;;
19428  *)   set x $CONFIG_FILES ;;
19429  esac
19430  shift
19431  for mf
19432  do
19433    # Strip MF so we end up with the name of the file.
19434    mf=`echo "$mf" | sed -e 's/:.*$//'`
19435    # Check whether this is an Automake generated Makefile or not.
19436    # We used to match only the files named 'Makefile.in', but
19437    # some people rename them; so instead we look at the file content.
19438    # Grep'ing the first line is not enough: some people post-process
19439    # each Makefile.in and add a new line on top of each file to say so.
19440    # Grep'ing the whole file is not good either: AIX grep has a line
19441    # limit of 2048, but all sed's we know have understand at least 4000.
19442    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19443      dirpart=`$as_dirname -- "$mf" ||
19444$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19445	 X"$mf" : 'X\(//\)[^/]' \| \
19446	 X"$mf" : 'X\(//\)$' \| \
19447	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19448$as_echo X"$mf" |
19449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19450	    s//\1/
19451	    q
19452	  }
19453	  /^X\(\/\/\)[^/].*/{
19454	    s//\1/
19455	    q
19456	  }
19457	  /^X\(\/\/\)$/{
19458	    s//\1/
19459	    q
19460	  }
19461	  /^X\(\/\).*/{
19462	    s//\1/
19463	    q
19464	  }
19465	  s/.*/./; q'`
19466    else
19467      continue
19468    fi
19469    # Extract the definition of DEPDIR, am__include, and am__quote
19470    # from the Makefile without running 'make'.
19471    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19472    test -z "$DEPDIR" && continue
19473    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19474    test -z "am__include" && continue
19475    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19476    # Find all dependency output files, they are included files with
19477    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19478    # simplest approach to changing $(DEPDIR) to its actual value in the
19479    # expansion.
19480    for file in `sed -n "
19481      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19482	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19483      # Make sure the directory exists.
19484      test -f "$dirpart/$file" && continue
19485      fdir=`$as_dirname -- "$file" ||
19486$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19487	 X"$file" : 'X\(//\)[^/]' \| \
19488	 X"$file" : 'X\(//\)$' \| \
19489	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19490$as_echo X"$file" |
19491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19492	    s//\1/
19493	    q
19494	  }
19495	  /^X\(\/\/\)[^/].*/{
19496	    s//\1/
19497	    q
19498	  }
19499	  /^X\(\/\/\)$/{
19500	    s//\1/
19501	    q
19502	  }
19503	  /^X\(\/\).*/{
19504	    s//\1/
19505	    q
19506	  }
19507	  s/.*/./; q'`
19508      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19509      # echo "creating $dirpart/$file"
19510      echo '# dummy' > "$dirpart/$file"
19511    done
19512  done
19513}
19514 ;;
19515    "libtool":C)
19516
19517    # See if we are running on zsh, and set the options which allow our
19518    # commands through without removal of \ escapes.
19519    if test -n "${ZSH_VERSION+set}" ; then
19520      setopt NO_GLOB_SUBST
19521    fi
19522
19523    cfgfile="${ofile}T"
19524    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19525    $RM "$cfgfile"
19526
19527    cat <<_LT_EOF >> "$cfgfile"
19528#! $SHELL
19529
19530# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19531# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19533# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19534#
19535#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19536#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19537#                 Inc.
19538#   Written by Gordon Matzigkeit, 1996
19539#
19540#   This file is part of GNU Libtool.
19541#
19542# GNU Libtool is free software; you can redistribute it and/or
19543# modify it under the terms of the GNU General Public License as
19544# published by the Free Software Foundation; either version 2 of
19545# the License, or (at your option) any later version.
19546#
19547# As a special exception to the GNU General Public License,
19548# if you distribute this file as part of a program or library that
19549# is built using GNU Libtool, you may include this file under the
19550# same distribution terms that you use for the rest of that program.
19551#
19552# GNU Libtool is distributed in the hope that it will be useful,
19553# but WITHOUT ANY WARRANTY; without even the implied warranty of
19554# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19555# GNU General Public License for more details.
19556#
19557# You should have received a copy of the GNU General Public License
19558# along with GNU Libtool; see the file COPYING.  If not, a copy
19559# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19560# obtained by writing to the Free Software Foundation, Inc.,
19561# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19562
19563
19564# The names of the tagged configurations supported by this script.
19565available_tags=""
19566
19567# ### BEGIN LIBTOOL CONFIG
19568
19569# Whether or not to build static libraries.
19570build_old_libs=$enable_static
19571
19572# Which release of libtool.m4 was used?
19573macro_version=$macro_version
19574macro_revision=$macro_revision
19575
19576# Whether or not to build shared libraries.
19577build_libtool_libs=$enable_shared
19578
19579# What type of objects to build.
19580pic_mode=$pic_mode
19581
19582# Whether or not to optimize for fast installation.
19583fast_install=$enable_fast_install
19584
19585# Shell to use when invoking shell scripts.
19586SHELL=$lt_SHELL
19587
19588# An echo program that protects backslashes.
19589ECHO=$lt_ECHO
19590
19591# The host system.
19592host_alias=$host_alias
19593host=$host
19594host_os=$host_os
19595
19596# The build system.
19597build_alias=$build_alias
19598build=$build
19599build_os=$build_os
19600
19601# A sed program that does not truncate output.
19602SED=$lt_SED
19603
19604# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19605Xsed="\$SED -e 1s/^X//"
19606
19607# A grep program that handles long lines.
19608GREP=$lt_GREP
19609
19610# An ERE matcher.
19611EGREP=$lt_EGREP
19612
19613# A literal string matcher.
19614FGREP=$lt_FGREP
19615
19616# A BSD- or MS-compatible name lister.
19617NM=$lt_NM
19618
19619# Whether we need soft or hard links.
19620LN_S=$lt_LN_S
19621
19622# What is the maximum length of a command?
19623max_cmd_len=$max_cmd_len
19624
19625# Object file suffix (normally "o").
19626objext=$ac_objext
19627
19628# Executable file suffix (normally "").
19629exeext=$exeext
19630
19631# whether the shell understands "unset".
19632lt_unset=$lt_unset
19633
19634# turn spaces into newlines.
19635SP2NL=$lt_lt_SP2NL
19636
19637# turn newlines into spaces.
19638NL2SP=$lt_lt_NL2SP
19639
19640# convert \$build file names to \$host format.
19641to_host_file_cmd=$lt_cv_to_host_file_cmd
19642
19643# convert \$build files to toolchain format.
19644to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19645
19646# An object symbol dumper.
19647OBJDUMP=$lt_OBJDUMP
19648
19649# Method to check whether dependent libraries are shared objects.
19650deplibs_check_method=$lt_deplibs_check_method
19651
19652# Command to use when deplibs_check_method = "file_magic".
19653file_magic_cmd=$lt_file_magic_cmd
19654
19655# How to find potential files when deplibs_check_method = "file_magic".
19656file_magic_glob=$lt_file_magic_glob
19657
19658# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19659want_nocaseglob=$lt_want_nocaseglob
19660
19661# DLL creation program.
19662DLLTOOL=$lt_DLLTOOL
19663
19664# Command to associate shared and link libraries.
19665sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19666
19667# The archiver.
19668AR=$lt_AR
19669
19670# Flags to create an archive.
19671AR_FLAGS=$lt_AR_FLAGS
19672
19673# How to feed a file listing to the archiver.
19674archiver_list_spec=$lt_archiver_list_spec
19675
19676# A symbol stripping program.
19677STRIP=$lt_STRIP
19678
19679# Commands used to install an old-style archive.
19680RANLIB=$lt_RANLIB
19681old_postinstall_cmds=$lt_old_postinstall_cmds
19682old_postuninstall_cmds=$lt_old_postuninstall_cmds
19683
19684# Whether to use a lock for old archive extraction.
19685lock_old_archive_extraction=$lock_old_archive_extraction
19686
19687# A C compiler.
19688LTCC=$lt_CC
19689
19690# LTCC compiler flags.
19691LTCFLAGS=$lt_CFLAGS
19692
19693# Take the output of nm and produce a listing of raw symbols and C names.
19694global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19695
19696# Transform the output of nm in a proper C declaration.
19697global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19698
19699# Transform the output of nm in a C name address pair.
19700global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19701
19702# Transform the output of nm in a C name address pair when lib prefix is needed.
19703global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19704
19705# Specify filename containing input files for \$NM.
19706nm_file_list_spec=$lt_nm_file_list_spec
19707
19708# The root where to search for dependent libraries,and in which our libraries should be installed.
19709lt_sysroot=$lt_sysroot
19710
19711# The name of the directory that contains temporary libtool files.
19712objdir=$objdir
19713
19714# Used to examine libraries when file_magic_cmd begins with "file".
19715MAGIC_CMD=$MAGIC_CMD
19716
19717# Must we lock files when doing compilation?
19718need_locks=$lt_need_locks
19719
19720# Manifest tool.
19721MANIFEST_TOOL=$lt_MANIFEST_TOOL
19722
19723# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19724DSYMUTIL=$lt_DSYMUTIL
19725
19726# Tool to change global to local symbols on Mac OS X.
19727NMEDIT=$lt_NMEDIT
19728
19729# Tool to manipulate fat objects and archives on Mac OS X.
19730LIPO=$lt_LIPO
19731
19732# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19733OTOOL=$lt_OTOOL
19734
19735# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19736OTOOL64=$lt_OTOOL64
19737
19738# Old archive suffix (normally "a").
19739libext=$libext
19740
19741# Shared library suffix (normally ".so").
19742shrext_cmds=$lt_shrext_cmds
19743
19744# The commands to extract the exported symbol list from a shared archive.
19745extract_expsyms_cmds=$lt_extract_expsyms_cmds
19746
19747# Variables whose values should be saved in libtool wrapper scripts and
19748# restored at link time.
19749variables_saved_for_relink=$lt_variables_saved_for_relink
19750
19751# Do we need the "lib" prefix for modules?
19752need_lib_prefix=$need_lib_prefix
19753
19754# Do we need a version for libraries?
19755need_version=$need_version
19756
19757# Library versioning type.
19758version_type=$version_type
19759
19760# Shared library runtime path variable.
19761runpath_var=$runpath_var
19762
19763# Shared library path variable.
19764shlibpath_var=$shlibpath_var
19765
19766# Is shlibpath searched before the hard-coded library search path?
19767shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19768
19769# Format of library name prefix.
19770libname_spec=$lt_libname_spec
19771
19772# List of archive names.  First name is the real one, the rest are links.
19773# The last name is the one that the linker finds with -lNAME
19774library_names_spec=$lt_library_names_spec
19775
19776# The coded name of the library, if different from the real name.
19777soname_spec=$lt_soname_spec
19778
19779# Permission mode override for installation of shared libraries.
19780install_override_mode=$lt_install_override_mode
19781
19782# Command to use after installation of a shared archive.
19783postinstall_cmds=$lt_postinstall_cmds
19784
19785# Command to use after uninstallation of a shared archive.
19786postuninstall_cmds=$lt_postuninstall_cmds
19787
19788# Commands used to finish a libtool library installation in a directory.
19789finish_cmds=$lt_finish_cmds
19790
19791# As "finish_cmds", except a single script fragment to be evaled but
19792# not shown.
19793finish_eval=$lt_finish_eval
19794
19795# Whether we should hardcode library paths into libraries.
19796hardcode_into_libs=$hardcode_into_libs
19797
19798# Compile-time system search path for libraries.
19799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19800
19801# Run-time system search path for libraries.
19802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19803
19804# Whether dlopen is supported.
19805dlopen_support=$enable_dlopen
19806
19807# Whether dlopen of programs is supported.
19808dlopen_self=$enable_dlopen_self
19809
19810# Whether dlopen of statically linked programs is supported.
19811dlopen_self_static=$enable_dlopen_self_static
19812
19813# Commands to strip libraries.
19814old_striplib=$lt_old_striplib
19815striplib=$lt_striplib
19816
19817
19818# The linker used to build libraries.
19819LD=$lt_LD
19820
19821# How to create reloadable object files.
19822reload_flag=$lt_reload_flag
19823reload_cmds=$lt_reload_cmds
19824
19825# Commands used to build an old-style archive.
19826old_archive_cmds=$lt_old_archive_cmds
19827
19828# A language specific compiler.
19829CC=$lt_compiler
19830
19831# Is the compiler the GNU compiler?
19832with_gcc=$GCC
19833
19834# Compiler flag to turn off builtin functions.
19835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19836
19837# Additional compiler flags for building library objects.
19838pic_flag=$lt_lt_prog_compiler_pic
19839
19840# How to pass a linker flag through the compiler.
19841wl=$lt_lt_prog_compiler_wl
19842
19843# Compiler flag to prevent dynamic linking.
19844link_static_flag=$lt_lt_prog_compiler_static
19845
19846# Does compiler simultaneously support -c and -o options?
19847compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19848
19849# Whether or not to add -lc for building shared libraries.
19850build_libtool_need_lc=$archive_cmds_need_lc
19851
19852# Whether or not to disallow shared libs when runtime libs are static.
19853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19854
19855# Compiler flag to allow reflexive dlopens.
19856export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19857
19858# Compiler flag to generate shared objects directly from archives.
19859whole_archive_flag_spec=$lt_whole_archive_flag_spec
19860
19861# Whether the compiler copes with passing no objects directly.
19862compiler_needs_object=$lt_compiler_needs_object
19863
19864# Create an old-style archive from a shared archive.
19865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19866
19867# Create a temporary old-style archive to link instead of a shared archive.
19868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19869
19870# Commands used to build a shared archive.
19871archive_cmds=$lt_archive_cmds
19872archive_expsym_cmds=$lt_archive_expsym_cmds
19873
19874# Commands used to build a loadable module if different from building
19875# a shared archive.
19876module_cmds=$lt_module_cmds
19877module_expsym_cmds=$lt_module_expsym_cmds
19878
19879# Whether we are building with GNU ld or not.
19880with_gnu_ld=$lt_with_gnu_ld
19881
19882# Flag that allows shared libraries with undefined symbols to be built.
19883allow_undefined_flag=$lt_allow_undefined_flag
19884
19885# Flag that enforces no undefined symbols.
19886no_undefined_flag=$lt_no_undefined_flag
19887
19888# Flag to hardcode \$libdir into a binary during linking.
19889# This must work even if \$libdir does not exist
19890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19891
19892# If ld is used when linking, flag to hardcode \$libdir into a binary
19893# during linking.  This must work even if \$libdir does not exist.
19894hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19895
19896# Whether we need a single "-rpath" flag with a separated argument.
19897hardcode_libdir_separator=$lt_hardcode_libdir_separator
19898
19899# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19900# DIR into the resulting binary.
19901hardcode_direct=$hardcode_direct
19902
19903# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19904# DIR into the resulting binary and the resulting library dependency is
19905# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19906# library is relocated.
19907hardcode_direct_absolute=$hardcode_direct_absolute
19908
19909# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19910# into the resulting binary.
19911hardcode_minus_L=$hardcode_minus_L
19912
19913# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19914# into the resulting binary.
19915hardcode_shlibpath_var=$hardcode_shlibpath_var
19916
19917# Set to "yes" if building a shared library automatically hardcodes DIR
19918# into the library and all subsequent libraries and executables linked
19919# against it.
19920hardcode_automatic=$hardcode_automatic
19921
19922# Set to yes if linker adds runtime paths of dependent libraries
19923# to runtime path list.
19924inherit_rpath=$inherit_rpath
19925
19926# Whether libtool must link a program against all its dependency libraries.
19927link_all_deplibs=$link_all_deplibs
19928
19929# Set to "yes" if exported symbols are required.
19930always_export_symbols=$always_export_symbols
19931
19932# The commands to list exported symbols.
19933export_symbols_cmds=$lt_export_symbols_cmds
19934
19935# Symbols that should not be listed in the preloaded symbols.
19936exclude_expsyms=$lt_exclude_expsyms
19937
19938# Symbols that must always be exported.
19939include_expsyms=$lt_include_expsyms
19940
19941# Commands necessary for linking programs (against libraries) with templates.
19942prelink_cmds=$lt_prelink_cmds
19943
19944# Commands necessary for finishing linking programs.
19945postlink_cmds=$lt_postlink_cmds
19946
19947# Specify filename containing input files.
19948file_list_spec=$lt_file_list_spec
19949
19950# How to hardcode a shared library path into an executable.
19951hardcode_action=$hardcode_action
19952
19953# ### END LIBTOOL CONFIG
19954
19955_LT_EOF
19956
19957  case $host_os in
19958  aix3*)
19959    cat <<\_LT_EOF >> "$cfgfile"
19960# AIX sometimes has problems with the GCC collect2 program.  For some
19961# reason, if we set the COLLECT_NAMES environment variable, the problems
19962# vanish in a puff of smoke.
19963if test "X${COLLECT_NAMES+set}" != Xset; then
19964  COLLECT_NAMES=
19965  export COLLECT_NAMES
19966fi
19967_LT_EOF
19968    ;;
19969  esac
19970
19971
19972ltmain="$ac_aux_dir/ltmain.sh"
19973
19974
19975  # We use sed instead of cat because bash on DJGPP gets confused if
19976  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19977  # text mode, it properly converts lines to CR/LF.  This bash problem
19978  # is reportedly fixed, but why not run on old versions too?
19979  sed '$q' "$ltmain" >> "$cfgfile" \
19980     || (rm -f "$cfgfile"; exit 1)
19981
19982  if test x"$xsi_shell" = xyes; then
19983  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19984func_dirname ()\
19985{\
19986\    case ${1} in\
19987\      */*) func_dirname_result="${1%/*}${2}" ;;\
19988\      *  ) func_dirname_result="${3}" ;;\
19989\    esac\
19990} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19991  && mv -f "$cfgfile.tmp" "$cfgfile" \
19992    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19993test 0 -eq $? || _lt_function_replace_fail=:
19994
19995
19996  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19997func_basename ()\
19998{\
19999\    func_basename_result="${1##*/}"\
20000} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20001  && mv -f "$cfgfile.tmp" "$cfgfile" \
20002    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20003test 0 -eq $? || _lt_function_replace_fail=:
20004
20005
20006  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20007func_dirname_and_basename ()\
20008{\
20009\    case ${1} in\
20010\      */*) func_dirname_result="${1%/*}${2}" ;;\
20011\      *  ) func_dirname_result="${3}" ;;\
20012\    esac\
20013\    func_basename_result="${1##*/}"\
20014} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20015  && mv -f "$cfgfile.tmp" "$cfgfile" \
20016    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20017test 0 -eq $? || _lt_function_replace_fail=:
20018
20019
20020  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20021func_stripname ()\
20022{\
20023\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20024\    # positional parameters, so assign one to ordinary parameter first.\
20025\    func_stripname_result=${3}\
20026\    func_stripname_result=${func_stripname_result#"${1}"}\
20027\    func_stripname_result=${func_stripname_result%"${2}"}\
20028} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20029  && mv -f "$cfgfile.tmp" "$cfgfile" \
20030    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20031test 0 -eq $? || _lt_function_replace_fail=:
20032
20033
20034  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20035func_split_long_opt ()\
20036{\
20037\    func_split_long_opt_name=${1%%=*}\
20038\    func_split_long_opt_arg=${1#*=}\
20039} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20040  && mv -f "$cfgfile.tmp" "$cfgfile" \
20041    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20042test 0 -eq $? || _lt_function_replace_fail=:
20043
20044
20045  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20046func_split_short_opt ()\
20047{\
20048\    func_split_short_opt_arg=${1#??}\
20049\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20050} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20051  && mv -f "$cfgfile.tmp" "$cfgfile" \
20052    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20053test 0 -eq $? || _lt_function_replace_fail=:
20054
20055
20056  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20057func_lo2o ()\
20058{\
20059\    case ${1} in\
20060\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20061\      *)    func_lo2o_result=${1} ;;\
20062\    esac\
20063} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20064  && mv -f "$cfgfile.tmp" "$cfgfile" \
20065    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20066test 0 -eq $? || _lt_function_replace_fail=:
20067
20068
20069  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20070func_xform ()\
20071{\
20072    func_xform_result=${1%.*}.lo\
20073} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20074  && mv -f "$cfgfile.tmp" "$cfgfile" \
20075    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20076test 0 -eq $? || _lt_function_replace_fail=:
20077
20078
20079  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20080func_arith ()\
20081{\
20082    func_arith_result=$(( $* ))\
20083} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20084  && mv -f "$cfgfile.tmp" "$cfgfile" \
20085    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20086test 0 -eq $? || _lt_function_replace_fail=:
20087
20088
20089  sed -e '/^func_len ()$/,/^} # func_len /c\
20090func_len ()\
20091{\
20092    func_len_result=${#1}\
20093} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20094  && mv -f "$cfgfile.tmp" "$cfgfile" \
20095    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20096test 0 -eq $? || _lt_function_replace_fail=:
20097
20098fi
20099
20100if test x"$lt_shell_append" = xyes; then
20101  sed -e '/^func_append ()$/,/^} # func_append /c\
20102func_append ()\
20103{\
20104    eval "${1}+=\\${2}"\
20105} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20106  && mv -f "$cfgfile.tmp" "$cfgfile" \
20107    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20108test 0 -eq $? || _lt_function_replace_fail=:
20109
20110
20111  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20112func_append_quoted ()\
20113{\
20114\    func_quote_for_eval "${2}"\
20115\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20116} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20117  && mv -f "$cfgfile.tmp" "$cfgfile" \
20118    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20119test 0 -eq $? || _lt_function_replace_fail=:
20120
20121
20122  # Save a `func_append' function call where possible by direct use of '+='
20123  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20124    && mv -f "$cfgfile.tmp" "$cfgfile" \
20125      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20126  test 0 -eq $? || _lt_function_replace_fail=:
20127else
20128  # Save a `func_append' function call even when '+=' is not available
20129  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20130    && mv -f "$cfgfile.tmp" "$cfgfile" \
20131      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20132  test 0 -eq $? || _lt_function_replace_fail=:
20133fi
20134
20135if test x"$_lt_function_replace_fail" = x":"; then
20136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20137$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20138fi
20139
20140
20141   mv -f "$cfgfile" "$ofile" ||
20142    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20143  chmod +x "$ofile"
20144
20145 ;;
20146
20147  esac
20148done # for ac_tag
20149
20150
20151as_fn_exit 0
20152_ACEOF
20153ac_clean_files=$ac_clean_files_save
20154
20155test $ac_write_fail = 0 ||
20156  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20157
20158
20159# configure is writing to config.log, and then calls config.status.
20160# config.status does its own redirection, appending to config.log.
20161# Unfortunately, on DOS this fails, as config.log is still kept open
20162# by configure, so config.status won't be able to write to it; its
20163# output is simply discarded.  So we exec the FD to /dev/null,
20164# effectively closing config.log, so it can be properly (re)opened and
20165# appended to by config.status.  When coming back to configure, we
20166# need to make the FD available again.
20167if test "$no_create" != yes; then
20168  ac_cs_success=:
20169  ac_config_status_args=
20170  test "$silent" = yes &&
20171    ac_config_status_args="$ac_config_status_args --quiet"
20172  exec 5>/dev/null
20173  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20174  exec 5>>config.log
20175  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20176  # would make configure fail if this is the last instruction.
20177  $ac_cs_success || as_fn_exit 1
20178fi
20179if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20181$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20182fi
20183
20184