configure revision 04007eba
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-geode 2.11.15.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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&component=Driver%2Fgeode
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-geode'
593PACKAGE_TARNAME='xf86-video-geode'
594PACKAGE_VERSION='2.11.15'
595PACKAGE_STRING='xf86-video-geode 2.11.15'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode'
597PACKAGE_URL='http://www.x.org/wiki/GeodeDriver'
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
640PCIACCESS_LIBS
641PCIACCESS_CFLAGS
642XEXT_LIBS
643XEXT_CFLAGS
644XORG_LIBS
645XORG_CFLAGS
646M32_CFLAGS
647BUILD_ZTV_FALSE
648BUILD_ZTV_TRUE
649PANEL_CPPFLAGS
650moduledir
651MAN_SUBSTS
652XORG_MAN_PAGE
653ADMIN_MAN_DIR
654DRIVER_MAN_DIR
655MISC_MAN_DIR
656FILE_MAN_DIR
657LIB_MAN_DIR
658APP_MAN_DIR
659ADMIN_MAN_SUFFIX
660DRIVER_MAN_SUFFIX
661MISC_MAN_SUFFIX
662FILE_MAN_SUFFIX
663LIB_MAN_SUFFIX
664APP_MAN_SUFFIX
665INSTALL_CMD
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
669CHANGELOG_CMD
670STRICT_CFLAGS
671CWARNFLAGS
672BASE_CFLAGS
673CPP
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682AR
683DLLTOOL
684OBJDUMP
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693SED
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__quote
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719LIBTOOL
720MAINT
721MAINTAINER_MODE_FALSE
722MAINTAINER_MODE_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_silent_rules
792enable_maintainer_mode
793enable_static
794enable_shared
795with_pic
796enable_fast_install
797enable_dependency_tracking
798with_gnu_ld
799with_sysroot
800enable_libtool_lock
801enable_selective_werror
802enable_strict_compilation
803with_xorg_module_dir
804enable_geodegx_panel
805enable_ztv
806enable_xaa
807'
808      ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CPP
817PKG_CONFIG
818PKG_CONFIG_PATH
819PKG_CONFIG_LIBDIR
820XORG_CFLAGS
821XORG_LIBS
822XEXT_CFLAGS
823XEXT_LIBS
824PCIACCESS_CFLAGS
825PCIACCESS_LIBS'
826
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831ac_unrecognized_opts=
832ac_unrecognized_sep=
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
855# (The list follows the same order as the GNU Coding Standards.)
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
864includedir='${prefix}/include'
865oldincludedir='/usr/include'
866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
875
876ac_prev=
877ac_dashdash=
878for ac_option
879do
880  # If the previous option needs an argument, assign it.
881  if test -n "$ac_prev"; then
882    eval $ac_prev=\$ac_option
883    ac_prev=
884    continue
885  fi
886
887  case $ac_option in
888  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889  *=)   ac_optarg= ;;
890  *)    ac_optarg=yes ;;
891  esac
892
893  # Accept the important Cygnus configure options, so we can diagnose typos.
894
895  case $ac_dashdash$ac_option in
896  --)
897    ac_dashdash=yes ;;
898
899  -bindir | --bindir | --bindi | --bind | --bin | --bi)
900    ac_prev=bindir ;;
901  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902    bindir=$ac_optarg ;;
903
904  -build | --build | --buil | --bui | --bu)
905    ac_prev=build_alias ;;
906  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907    build_alias=$ac_optarg ;;
908
909  -cache-file | --cache-file | --cache-fil | --cache-fi \
910  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911    ac_prev=cache_file ;;
912  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914    cache_file=$ac_optarg ;;
915
916  --config-cache | -C)
917    cache_file=config.cache ;;
918
919  -datadir | --datadir | --datadi | --datad)
920    ac_prev=datadir ;;
921  -datadir=* | --datadir=* | --datadi=* | --datad=*)
922    datadir=$ac_optarg ;;
923
924  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925  | --dataroo | --dataro | --datar)
926    ac_prev=datarootdir ;;
927  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929    datarootdir=$ac_optarg ;;
930
931  -disable-* | --disable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error $? "invalid feature name: $ac_useropt"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=no ;;
946
947  -docdir | --docdir | --docdi | --doc | --do)
948    ac_prev=docdir ;;
949  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950    docdir=$ac_optarg ;;
951
952  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953    ac_prev=dvidir ;;
954  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955    dvidir=$ac_optarg ;;
956
957  -enable-* | --enable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=\$ac_optarg ;;
972
973  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975  | --exec | --exe | --ex)
976    ac_prev=exec_prefix ;;
977  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979  | --exec=* | --exe=* | --ex=*)
980    exec_prefix=$ac_optarg ;;
981
982  -gas | --gas | --ga | --g)
983    # Obsolete; use --with-gas.
984    with_gas=yes ;;
985
986  -help | --help | --hel | --he | -h)
987    ac_init_help=long ;;
988  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989    ac_init_help=recursive ;;
990  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991    ac_init_help=short ;;
992
993  -host | --host | --hos | --ho)
994    ac_prev=host_alias ;;
995  -host=* | --host=* | --hos=* | --ho=*)
996    host_alias=$ac_optarg ;;
997
998  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999    ac_prev=htmldir ;;
1000  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001  | --ht=*)
1002    htmldir=$ac_optarg ;;
1003
1004  -includedir | --includedir | --includedi | --included | --include \
1005  | --includ | --inclu | --incl | --inc)
1006    ac_prev=includedir ;;
1007  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008  | --includ=* | --inclu=* | --incl=* | --inc=*)
1009    includedir=$ac_optarg ;;
1010
1011  -infodir | --infodir | --infodi | --infod | --info | --inf)
1012    ac_prev=infodir ;;
1013  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014    infodir=$ac_optarg ;;
1015
1016  -libdir | --libdir | --libdi | --libd)
1017    ac_prev=libdir ;;
1018  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019    libdir=$ac_optarg ;;
1020
1021  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022  | --libexe | --libex | --libe)
1023    ac_prev=libexecdir ;;
1024  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025  | --libexe=* | --libex=* | --libe=*)
1026    libexecdir=$ac_optarg ;;
1027
1028  -localedir | --localedir | --localedi | --localed | --locale)
1029    ac_prev=localedir ;;
1030  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031    localedir=$ac_optarg ;;
1032
1033  -localstatedir | --localstatedir | --localstatedi | --localstated \
1034  | --localstate | --localstat | --localsta | --localst | --locals)
1035    ac_prev=localstatedir ;;
1036  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038    localstatedir=$ac_optarg ;;
1039
1040  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041    ac_prev=mandir ;;
1042  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043    mandir=$ac_optarg ;;
1044
1045  -nfp | --nfp | --nf)
1046    # Obsolete; use --without-fp.
1047    with_fp=no ;;
1048
1049  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050  | --no-cr | --no-c | -n)
1051    no_create=yes ;;
1052
1053  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055    no_recursion=yes ;;
1056
1057  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059  | --oldin | --oldi | --old | --ol | --o)
1060    ac_prev=oldincludedir ;;
1061  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064    oldincludedir=$ac_optarg ;;
1065
1066  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067    ac_prev=prefix ;;
1068  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069    prefix=$ac_optarg ;;
1070
1071  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072  | --program-pre | --program-pr | --program-p)
1073    ac_prev=program_prefix ;;
1074  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076    program_prefix=$ac_optarg ;;
1077
1078  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079  | --program-suf | --program-su | --program-s)
1080    ac_prev=program_suffix ;;
1081  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083    program_suffix=$ac_optarg ;;
1084
1085  -program-transform-name | --program-transform-name \
1086  | --program-transform-nam | --program-transform-na \
1087  | --program-transform-n | --program-transform- \
1088  | --program-transform | --program-transfor \
1089  | --program-transfo | --program-transf \
1090  | --program-trans | --program-tran \
1091  | --progr-tra | --program-tr | --program-t)
1092    ac_prev=program_transform_name ;;
1093  -program-transform-name=* | --program-transform-name=* \
1094  | --program-transform-nam=* | --program-transform-na=* \
1095  | --program-transform-n=* | --program-transform-=* \
1096  | --program-transform=* | --program-transfor=* \
1097  | --program-transfo=* | --program-transf=* \
1098  | --program-trans=* | --program-tran=* \
1099  | --progr-tra=* | --program-tr=* | --program-t=*)
1100    program_transform_name=$ac_optarg ;;
1101
1102  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103    ac_prev=pdfdir ;;
1104  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105    pdfdir=$ac_optarg ;;
1106
1107  -psdir | --psdir | --psdi | --psd | --ps)
1108    ac_prev=psdir ;;
1109  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110    psdir=$ac_optarg ;;
1111
1112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113  | -silent | --silent | --silen | --sile | --sil)
1114    silent=yes ;;
1115
1116  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117    ac_prev=sbindir ;;
1118  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119  | --sbi=* | --sb=*)
1120    sbindir=$ac_optarg ;;
1121
1122  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124  | --sharedst | --shareds | --shared | --share | --shar \
1125  | --sha | --sh)
1126    ac_prev=sharedstatedir ;;
1127  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130  | --sha=* | --sh=*)
1131    sharedstatedir=$ac_optarg ;;
1132
1133  -site | --site | --sit)
1134    ac_prev=site ;;
1135  -site=* | --site=* | --sit=*)
1136    site=$ac_optarg ;;
1137
1138  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139    ac_prev=srcdir ;;
1140  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141    srcdir=$ac_optarg ;;
1142
1143  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144  | --syscon | --sysco | --sysc | --sys | --sy)
1145    ac_prev=sysconfdir ;;
1146  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148    sysconfdir=$ac_optarg ;;
1149
1150  -target | --target | --targe | --targ | --tar | --ta | --t)
1151    ac_prev=target_alias ;;
1152  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153    target_alias=$ac_optarg ;;
1154
1155  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156    verbose=yes ;;
1157
1158  -version | --version | --versio | --versi | --vers | -V)
1159    ac_init_version=: ;;
1160
1161  -with-* | --with-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=\$ac_optarg ;;
1176
1177  -without-* | --without-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error $? "invalid package name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"with_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval with_$ac_useropt=no ;;
1192
1193  --x)
1194    # Obsolete; use --with-x.
1195    with_x=yes ;;
1196
1197  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198  | --x-incl | --x-inc | --x-in | --x-i)
1199    ac_prev=x_includes ;;
1200  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202    x_includes=$ac_optarg ;;
1203
1204  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206    ac_prev=x_libraries ;;
1207  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209    x_libraries=$ac_optarg ;;
1210
1211  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information"
1213    ;;
1214
1215  *=*)
1216    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217    # Reject names that are not valid shell variable names.
1218    case $ac_envvar in #(
1219      '' | [0-9]* | *[!_$as_cr_alnum]* )
1220      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221    esac
1222    eval $ac_envvar=\$ac_optarg
1223    export $ac_envvar ;;
1224
1225  *)
1226    # FIXME: should be removed in autoconf 3.0.
1227    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231    ;;
1232
1233  esac
1234done
1235
1236if test -n "$ac_prev"; then
1237  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238  as_fn_error $? "missing argument to $ac_option"
1239fi
1240
1241if test -n "$ac_unrecognized_opts"; then
1242  case $enable_option_checking in
1243    no) ;;
1244    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246  esac
1247fi
1248
1249# Check all directory arguments for consistency.
1250for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251		datadir sysconfdir sharedstatedir localstatedir includedir \
1252		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253		libdir localedir mandir
1254do
1255  eval ac_val=\$$ac_var
1256  # Remove trailing slashes.
1257  case $ac_val in
1258    */ )
1259      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260      eval $ac_var=\$ac_val;;
1261  esac
1262  # Be sure to have absolute directory names.
1263  case $ac_val in
1264    [\\/$]* | ?:[\\/]* )  continue;;
1265    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266  esac
1267  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268done
1269
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279  if test "x$build_alias" = x; then
1280    cross_compiling=maybe
1281  elif test "x$build_alias" != "x$host_alias"; then
1282    cross_compiling=yes
1283  fi
1284fi
1285
1286ac_tool_prefix=
1287test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289test "$silent" = yes && exec 6>/dev/null
1290
1291
1292ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293ac_ls_di=`ls -di .` &&
1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295  as_fn_error $? "working directory cannot be determined"
1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297  as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302  ac_srcdir_defaulted=yes
1303  # Try the directory containing this script, then the parent directory.
1304  ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306	 X"$as_myself" : 'X\(//\)[^/]' \| \
1307	 X"$as_myself" : 'X\(//\)$' \| \
1308	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309$as_echo X"$as_myself" |
1310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\/\)[^/].*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\).*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  s/.*/./; q'`
1327  srcdir=$ac_confdir
1328  if test ! -r "$srcdir/$ac_unique_file"; then
1329    srcdir=..
1330  fi
1331else
1332  ac_srcdir_defaulted=no
1333fi
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337fi
1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339ac_abs_confdir=`(
1340	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341	pwd)`
1342# When building in place, set srcdir=.
1343if test "$ac_abs_confdir" = "$ac_pwd"; then
1344  srcdir=.
1345fi
1346# Remove unnecessary trailing slashes from srcdir.
1347# Double slashes in file names in object file debugging info
1348# mess up M-x gdb in Emacs.
1349case $srcdir in
1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351esac
1352for ac_var in $ac_precious_vars; do
1353  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354  eval ac_env_${ac_var}_value=\$${ac_var}
1355  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357done
1358
1359#
1360# Report the --help message.
1361#
1362if test "$ac_init_help" = "long"; then
1363  # Omit some internal or obsolete options to make the list less imposing.
1364  # This message is too long to be a string in the A/UX 3.1 sh.
1365  cat <<_ACEOF
1366\`configure' configures xf86-video-geode 2.11.15 to adapt to many kinds of systems.
1367
1368Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373Defaults for the options are specified in brackets.
1374
1375Configuration:
1376  -h, --help              display this help and exit
1377      --help=short        display options specific to this package
1378      --help=recursive    display the short help of all the included packages
1379  -V, --version           display version information and exit
1380  -q, --quiet, --silent   do not print \`checking ...' messages
1381      --cache-file=FILE   cache test results in FILE [disabled]
1382  -C, --config-cache      alias for \`--cache-file=config.cache'
1383  -n, --no-create         do not create output files
1384      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386Installation directories:
1387  --prefix=PREFIX         install architecture-independent files in PREFIX
1388                          [$ac_default_prefix]
1389  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                          [PREFIX]
1391
1392By default, \`make install' will install all the files in
1393\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395for instance \`--prefix=\$HOME'.
1396
1397For better control, use the options below.
1398
1399Fine tuning of the installation directories:
1400  --bindir=DIR            user executables [EPREFIX/bin]
1401  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402  --libexecdir=DIR        program executables [EPREFIX/libexec]
1403  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root
1415                          [DATAROOTDIR/doc/xf86-video-geode]
1416  --htmldir=DIR           html documentation [DOCDIR]
1417  --dvidir=DIR            dvi documentation [DOCDIR]
1418  --pdfdir=DIR            pdf documentation [DOCDIR]
1419  --psdir=DIR             ps documentation [DOCDIR]
1420_ACEOF
1421
1422  cat <<\_ACEOF
1423
1424Program names:
1425  --program-prefix=PREFIX            prepend PREFIX to installed program names
1426  --program-suffix=SUFFIX            append SUFFIX to installed program names
1427  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429System types:
1430  --build=BUILD     configure for building on BUILD [guessed]
1431  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432_ACEOF
1433fi
1434
1435if test -n "$ac_init_help"; then
1436  case $ac_init_help in
1437     short | recursive ) echo "Configuration of xf86-video-geode 2.11.15:";;
1438   esac
1439  cat <<\_ACEOF
1440
1441Optional Features:
1442  --disable-option-checking  ignore unrecognized --enable/--with options
1443  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-maintainer-mode
1448                          enable make rules and dependencies not useful (and
1449                          sometimes confusing) to the casual installer
1450  --enable-static[=PKGS]  build static libraries [default=no]
1451  --enable-shared[=PKGS]  build shared libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --disable-selective-werror
1460                          Turn off selective compiler errors. (default:
1461                          enabled)
1462  --enable-strict-compilation
1463                          Enable all warnings from compiler and make them
1464                          errors (default: disabled)
1465  --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1466  --enable-ztv            Enable Video For Linux based ZTV driver (default:
1467                          auto-detected)
1468  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1469                          [default=auto]
1470
1471Optional Packages:
1472  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                          both]
1476  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477  --with-sysroot=DIR Search for dependent libraries within DIR
1478                        (or the compiler's sysroot if not specified).
1479  --with-xorg-module-dir=DIR
1480                          Default xorg module directory
1481                          [[default=$libdir/xorg/modules]]
1482
1483Some influential environment variables:
1484  CC          C compiler command
1485  CFLAGS      C compiler flags
1486  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487              nonstandard directory <lib dir>
1488  LIBS        libraries to pass to the linker, e.g. -l<library>
1489  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490              you have headers in a nonstandard directory <include dir>
1491  CPP         C preprocessor
1492  PKG_CONFIG  path to pkg-config utility
1493  PKG_CONFIG_PATH
1494              directories to add to pkg-config's search path
1495  PKG_CONFIG_LIBDIR
1496              path overriding pkg-config's built-in search path
1497  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1498  XORG_LIBS   linker flags for XORG, overriding pkg-config
1499  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1500  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1501  PCIACCESS_CFLAGS
1502              C compiler flags for PCIACCESS, overriding pkg-config
1503  PCIACCESS_LIBS
1504              linker flags for PCIACCESS, overriding pkg-config
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
1510xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1511_ACEOF
1512ac_status=$?
1513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516  # If there are subdirs, report their specific --help.
1517  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518    test -d "$ac_dir" ||
1519      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520      continue
1521    ac_builddir=.
1522
1523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
1526  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527  # A ".." for each directory in $ac_dir_suffix.
1528  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529  case $ac_top_builddir_sub in
1530  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532  esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
1538
1539case $srcdir in
1540  .)  # We are building in place.
1541    ac_srcdir=.
1542    ac_top_srcdir=$ac_top_builddir_sub
1543    ac_abs_top_srcdir=$ac_pwd ;;
1544  [\\/]* | ?:[\\/]* )  # Absolute name.
1545    ac_srcdir=$srcdir$ac_dir_suffix;
1546    ac_top_srcdir=$srcdir
1547    ac_abs_top_srcdir=$srcdir ;;
1548  *) # Relative name.
1549    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550    ac_top_srcdir=$ac_top_build_prefix$srcdir
1551    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552esac
1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555    cd "$ac_dir" || { ac_status=$?; continue; }
1556    # Check for guested configure.
1557    if test -f "$ac_srcdir/configure.gnu"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560    elif test -f "$ac_srcdir/configure"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure" --help=recursive
1563    else
1564      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565    fi || ac_status=$?
1566    cd "$ac_pwd" || { ac_status=$?; break; }
1567  done
1568fi
1569
1570test -n "$ac_init_help" && exit $ac_status
1571if $ac_init_version; then
1572  cat <<\_ACEOF
1573xf86-video-geode configure 2.11.15
1574generated by GNU Autoconf 2.69
1575
1576Copyright (C) 2012 Free Software Foundation, Inc.
1577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
1580  exit
1581fi
1582
1583## ------------------------ ##
1584## Autoconf initialization. ##
1585## ------------------------ ##
1586
1587# ac_fn_c_try_compile LINENO
1588# --------------------------
1589# Try to compile conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_compile ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  rm -f conftest.$ac_objext
1594  if { { ac_try="$ac_compile"
1595case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_compile") 2>conftest.err
1602  ac_status=$?
1603  if test -s conftest.err; then
1604    grep -v '^ *+' conftest.err >conftest.er1
1605    cat conftest.er1 >&5
1606    mv -f conftest.er1 conftest.err
1607  fi
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; } && {
1610	 test -z "$ac_c_werror_flag" ||
1611	 test ! -s conftest.err
1612       } && test -s conftest.$ac_objext; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_c_try_compile
1624
1625# ac_fn_c_try_link LINENO
1626# -----------------------
1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_link ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  rm -f conftest.$ac_objext conftest$ac_exeext
1632  if { { ac_try="$ac_link"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_link") 2>conftest.err
1640  ac_status=$?
1641  if test -s conftest.err; then
1642    grep -v '^ *+' conftest.err >conftest.er1
1643    cat conftest.er1 >&5
1644    mv -f conftest.er1 conftest.err
1645  fi
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && {
1648	 test -z "$ac_c_werror_flag" ||
1649	 test ! -s conftest.err
1650       } && test -s conftest$ac_exeext && {
1651	 test "$cross_compiling" = yes ||
1652	 test -x conftest$ac_exeext
1653       }; then :
1654  ac_retval=0
1655else
1656  $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659	ac_retval=1
1660fi
1661  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663  # interfere with the next link command; also delete a directory that is
1664  # left behind by Apple's compiler.  We do this before executing the actions.
1665  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667  as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_link
1670
1671# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672# -------------------------------------------------------
1673# Tests whether HEADER exists and can be compiled using the include files in
1674# INCLUDES, setting the cache variable VAR accordingly.
1675ac_fn_c_check_header_compile ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
1680if eval \${$3+:} false; then :
1681  $as_echo_n "(cached) " >&6
1682else
1683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h.  */
1685$4
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_compile "$LINENO"; then :
1689  eval "$3=yes"
1690else
1691  eval "$3=no"
1692fi
1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694fi
1695eval ac_res=\$$3
1696	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697$as_echo "$ac_res" >&6; }
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700} # ac_fn_c_check_header_compile
1701
1702# ac_fn_c_try_cpp LINENO
1703# ----------------------
1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_cpp ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_cpp conftest.$ac_ext"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } > conftest.i && {
1724	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732    ac_retval=1
1733fi
1734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735  as_fn_set_status $ac_retval
1736
1737} # ac_fn_c_try_cpp
1738
1739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_link") 2>&5
1754  ac_status=$?
1755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757  { { case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_try") 2>&5
1764  ac_status=$?
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; }; }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: program exited with status $ac_status" >&5
1770       $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773       ac_retval=$ac_status
1774fi
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_func LINENO FUNC VAR
1782# ----------------------------------
1783# Tests whether FUNC exists, setting the cache variable VAR accordingly
1784ac_fn_c_check_func ()
1785{
1786  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h.  */
1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1796#define $2 innocuous_$2
1797
1798/* System header to define __stub macros and hopefully few prototypes,
1799    which can conflict with char $2 (); below.
1800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801    <limits.h> exists even on freestanding compilers.  */
1802
1803#ifdef __STDC__
1804# include <limits.h>
1805#else
1806# include <assert.h>
1807#endif
1808
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812   Use char because int might match the return type of a GCC
1813   builtin and then its argument prototype would still apply.  */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819    to always fail with ENOSYS.  Some functions are actually named
1820    something starting with __ and the normal name is an alias.  */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main ()
1827{
1828return $2 ();
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"; then :
1834  eval "$3=yes"
1835else
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext \
1839    conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_func
1847
1848# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1849# ---------------------------------------------
1850# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1851# accordingly.
1852ac_fn_c_check_decl ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  as_decl_name=`echo $2|sed 's/ *(.*//'`
1856  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1858$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1859if eval \${$3+:} false; then :
1860  $as_echo_n "(cached) " >&6
1861else
1862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864$4
1865int
1866main ()
1867{
1868#ifndef $as_decl_name
1869#ifdef __cplusplus
1870  (void) $as_decl_use;
1871#else
1872  (void) $as_decl_name;
1873#endif
1874#endif
1875
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  eval "$3=yes"
1882else
1883  eval "$3=no"
1884fi
1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_decl
1893
1894# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895# -------------------------------------------------------
1896# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897# the include files in INCLUDES and setting the cache variable VAR
1898# accordingly.
1899ac_fn_c_check_header_mongrel ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  if eval \${$3+:} false; then :
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911else
1912  # Is the header compilable?
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914$as_echo_n "checking $2 usability... " >&6; }
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917$4
1918#include <$2>
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  ac_header_compiler=yes
1922else
1923  ac_header_compiler=no
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927$as_echo "$ac_header_compiler" >&6; }
1928
1929# Is the header present?
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931$as_echo_n "checking $2 presence... " >&6; }
1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_cpp "$LINENO"; then :
1937  ac_header_preproc=yes
1938else
1939  ac_header_preproc=no
1940fi
1941rm -f conftest.err conftest.i conftest.$ac_ext
1942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943$as_echo "$ac_header_preproc" >&6; }
1944
1945# So?  What about this header?
1946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947  yes:no: )
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952    ;;
1953  no:yes:* )
1954    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1957$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1961$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964( $as_echo "## ----------------------------------------------------------------------------------------------- ##
1965## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode ##
1966## ----------------------------------------------------------------------------------------------- ##"
1967     ) | sed "s/^/$as_me: WARNING:     /" >&2
1968    ;;
1969esac
1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval \${$3+:} false; then :
1973  $as_echo_n "(cached) " >&6
1974else
1975  eval "$3=\$ac_header_compiler"
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980fi
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_header_mongrel
1984cat >config.log <<_ACEOF
1985This file contains any messages produced by compilers while
1986running configure, to aid debugging if configure makes a mistake.
1987
1988It was created by xf86-video-geode $as_me 2.11.15, which was
1989generated by GNU Autoconf 2.69.  Invocation command line was
1990
1991  $ $0 $@
1992
1993_ACEOF
1994exec 5>>config.log
1995{
1996cat <<_ASUNAME
1997## --------- ##
1998## Platform. ##
1999## --------- ##
2000
2001hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2009
2010/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2011/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2012/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2014/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2015/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2016/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2017
2018_ASUNAME
2019
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025    $as_echo "PATH: $as_dir"
2026  done
2027IFS=$as_save_IFS
2028
2029} >&5
2030
2031cat >&5 <<_ACEOF
2032
2033
2034## ----------- ##
2035## Core tests. ##
2036## ----------- ##
2037
2038_ACEOF
2039
2040
2041# Keep a trace of the command line.
2042# Strip out --no-create and --no-recursion so they do not pile up.
2043# Strip out --silent because we don't want to record it for future runs.
2044# Also quote any args containing shell meta-characters.
2045# Make two passes to allow for proper duplicate-argument suppression.
2046ac_configure_args=
2047ac_configure_args0=
2048ac_configure_args1=
2049ac_must_keep_next=false
2050for ac_pass in 1 2
2051do
2052  for ac_arg
2053  do
2054    case $ac_arg in
2055    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057    | -silent | --silent | --silen | --sile | --sil)
2058      continue ;;
2059    *\'*)
2060      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061    esac
2062    case $ac_pass in
2063    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064    2)
2065      as_fn_append ac_configure_args1 " '$ac_arg'"
2066      if test $ac_must_keep_next = true; then
2067	ac_must_keep_next=false # Got value, back to normal.
2068      else
2069	case $ac_arg in
2070	  *=* | --config-cache | -C | -disable-* | --disable-* \
2071	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073	  | -with-* | --with-* | -without-* | --without-* | --x)
2074	    case "$ac_configure_args0 " in
2075	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076	    esac
2077	    ;;
2078	  -* ) ac_must_keep_next=true ;;
2079	esac
2080      fi
2081      as_fn_append ac_configure_args " '$ac_arg'"
2082      ;;
2083    esac
2084  done
2085done
2086{ ac_configure_args0=; unset ac_configure_args0;}
2087{ ac_configure_args1=; unset ac_configure_args1;}
2088
2089# When interrupted or exit'd, cleanup temporary files, and complete
2090# config.log.  We remove comments because anyway the quotes in there
2091# would cause problems or look ugly.
2092# WARNING: Use '\'' to represent an apostrophe within the trap.
2093# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094trap 'exit_status=$?
2095  # Save into config.log some information that might help in debugging.
2096  {
2097    echo
2098
2099    $as_echo "## ---------------- ##
2100## Cache variables. ##
2101## ---------------- ##"
2102    echo
2103    # The following way of writing the cache mishandles newlines in values,
2104(
2105  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106    eval ac_val=\$$ac_var
2107    case $ac_val in #(
2108    *${as_nl}*)
2109      case $ac_var in #(
2110      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112      esac
2113      case $ac_var in #(
2114      _ | IFS | as_nl) ;; #(
2115      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116      *) { eval $ac_var=; unset $ac_var;} ;;
2117      esac ;;
2118    esac
2119  done
2120  (set) 2>&1 |
2121    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122    *${as_nl}ac_space=\ *)
2123      sed -n \
2124	"s/'\''/'\''\\\\'\'''\''/g;
2125	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126      ;; #(
2127    *)
2128      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129      ;;
2130    esac |
2131    sort
2132)
2133    echo
2134
2135    $as_echo "## ----------------- ##
2136## Output variables. ##
2137## ----------------- ##"
2138    echo
2139    for ac_var in $ac_subst_vars
2140    do
2141      eval ac_val=\$$ac_var
2142      case $ac_val in
2143      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144      esac
2145      $as_echo "$ac_var='\''$ac_val'\''"
2146    done | sort
2147    echo
2148
2149    if test -n "$ac_subst_files"; then
2150      $as_echo "## ------------------- ##
2151## File substitutions. ##
2152## ------------------- ##"
2153      echo
2154      for ac_var in $ac_subst_files
2155      do
2156	eval ac_val=\$$ac_var
2157	case $ac_val in
2158	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159	esac
2160	$as_echo "$ac_var='\''$ac_val'\''"
2161      done | sort
2162      echo
2163    fi
2164
2165    if test -s confdefs.h; then
2166      $as_echo "## ----------- ##
2167## confdefs.h. ##
2168## ----------- ##"
2169      echo
2170      cat confdefs.h
2171      echo
2172    fi
2173    test "$ac_signal" != 0 &&
2174      $as_echo "$as_me: caught signal $ac_signal"
2175    $as_echo "$as_me: exit $exit_status"
2176  } >&5
2177  rm -f core *.core core.conftest.* &&
2178    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179    exit $exit_status
2180' 0
2181for ac_signal in 1 2 13 15; do
2182  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
2217
2218# Let the site file select an alternate cache file if it wants to.
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223  # We do not want a PATH search for config.site.
2224  case $CONFIG_SITE in #((
2225    -*)  ac_site_file1=./$CONFIG_SITE;;
2226    */*) ac_site_file1=$CONFIG_SITE;;
2227    *)   ac_site_file1=./$CONFIG_SITE;;
2228  esac
2229elif test "x$prefix" != xNONE; then
2230  ac_site_file1=$prefix/share/config.site
2231  ac_site_file2=$prefix/etc/config.site
2232else
2233  ac_site_file1=$ac_default_prefix/share/config.site
2234  ac_site_file2=$ac_default_prefix/etc/config.site
2235fi
2236for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237do
2238  test "x$ac_site_file" = xNONE && continue
2239  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242    sed 's/^/| /' "$ac_site_file" >&5
2243    . "$ac_site_file" \
2244      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246as_fn_error $? "failed to load site script $ac_site_file
2247See \`config.log' for more details" "$LINENO" 5; }
2248  fi
2249done
2250
2251if test -r "$cache_file"; then
2252  # Some versions of bash will fail to source /dev/null (special files
2253  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2254  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256$as_echo "$as_me: loading cache $cache_file" >&6;}
2257    case $cache_file in
2258      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259      *)                      . "./$cache_file";;
2260    esac
2261  fi
2262else
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264$as_echo "$as_me: creating cache $cache_file" >&6;}
2265  >$cache_file
2266fi
2267
2268# Check that the precious variables saved in the cache have kept the same
2269# value.
2270ac_cache_corrupted=false
2271for ac_var in $ac_precious_vars; do
2272  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273  eval ac_new_set=\$ac_env_${ac_var}_set
2274  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275  eval ac_new_val=\$ac_env_${ac_var}_value
2276  case $ac_old_set,$ac_new_set in
2277    set,)
2278      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280      ac_cache_corrupted=: ;;
2281    ,set)
2282      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284      ac_cache_corrupted=: ;;
2285    ,);;
2286    *)
2287      if test "x$ac_old_val" != "x$ac_new_val"; then
2288	# differences in whitespace do not lead to failure.
2289	ac_old_val_w=`echo x $ac_old_val`
2290	ac_new_val_w=`echo x $ac_new_val`
2291	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294	  ac_cache_corrupted=:
2295	else
2296	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298	  eval $ac_var=\$ac_old_val
2299	fi
2300	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2301$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2303$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2304      fi;;
2305  esac
2306  # Pass precious variables to config.status.
2307  if test "$ac_new_set" = set; then
2308    case $ac_new_val in
2309    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310    *) ac_arg=$ac_var=$ac_new_val ;;
2311    esac
2312    case " $ac_configure_args " in
2313      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2314      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315    esac
2316  fi
2317done
2318if $ac_cache_corrupted; then
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324fi
2325## -------------------- ##
2326## Main body of script. ##
2327## -------------------- ##
2328
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337
2338ac_config_headers="$ac_config_headers config.h"
2339
2340
2341ac_aux_dir=
2342for ac_dir in build-aux "$srcdir"/build-aux; do
2343  if test -f "$ac_dir/install-sh"; then
2344    ac_aux_dir=$ac_dir
2345    ac_install_sh="$ac_aux_dir/install-sh -c"
2346    break
2347  elif test -f "$ac_dir/install.sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$ac_aux_dir/install.sh -c"
2350    break
2351  elif test -f "$ac_dir/shtool"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/shtool install -c"
2354    break
2355  fi
2356done
2357if test -z "$ac_aux_dir"; then
2358  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2359fi
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370
2371# Initialize Automake
2372am__api_version='1.14'
2373
2374# Find a good install program.  We prefer a C program (faster),
2375# so one script is as good as another.  But avoid the broken or
2376# incompatible versions:
2377# SysV /etc/install, /usr/sbin/install
2378# SunOS /usr/etc/install
2379# IRIX /sbin/install
2380# AIX /bin/install
2381# AmigaOS /C/install, which installs bootblocks on floppy discs
2382# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2383# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2384# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2385# OS/2's system install, which has a completely different semantic
2386# ./install, which can be erroneously created by make from ./install.sh.
2387# Reject install programs that cannot install multiple files.
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2389$as_echo_n "checking for a BSD-compatible install... " >&6; }
2390if test -z "$INSTALL"; then
2391if ${ac_cv_path_install+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399    # Account for people who put trailing slashes in PATH elements.
2400case $as_dir/ in #((
2401  ./ | .// | /[cC]/* | \
2402  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2403  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2404  /usr/ucb/* ) ;;
2405  *)
2406    # OSF1 and SCO ODT 3.0 have their own names for install.
2407    # Don't use installbsd from OSF since it installs stuff as root
2408    # by default.
2409    for ac_prog in ginstall scoinst install; do
2410      for ac_exec_ext in '' $ac_executable_extensions; do
2411	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2412	  if test $ac_prog = install &&
2413	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414	    # AIX install.  It has an incompatible calling convention.
2415	    :
2416	  elif test $ac_prog = install &&
2417	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418	    # program-specific install script used by HP pwplus--don't use.
2419	    :
2420	  else
2421	    rm -rf conftest.one conftest.two conftest.dir
2422	    echo one > conftest.one
2423	    echo two > conftest.two
2424	    mkdir conftest.dir
2425	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2426	      test -s conftest.one && test -s conftest.two &&
2427	      test -s conftest.dir/conftest.one &&
2428	      test -s conftest.dir/conftest.two
2429	    then
2430	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2431	      break 3
2432	    fi
2433	  fi
2434	fi
2435      done
2436    done
2437    ;;
2438esac
2439
2440  done
2441IFS=$as_save_IFS
2442
2443rm -rf conftest.one conftest.two conftest.dir
2444
2445fi
2446  if test "${ac_cv_path_install+set}" = set; then
2447    INSTALL=$ac_cv_path_install
2448  else
2449    # As a last resort, use the slow shell script.  Don't cache a
2450    # value for INSTALL within a source directory, because that will
2451    # break other packages using the cache if that directory is
2452    # removed, or if the value is a relative name.
2453    INSTALL=$ac_install_sh
2454  fi
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2457$as_echo "$INSTALL" >&6; }
2458
2459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460# It thinks the first close brace ends the variable substitution.
2461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2468$as_echo_n "checking whether build environment is sane... " >&6; }
2469# Reject unsafe characters in $srcdir or the absolute working directory
2470# name.  Accept space and tab only in the latter.
2471am_lf='
2472'
2473case `pwd` in
2474  *[\\\"\#\$\&\'\`$am_lf]*)
2475    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2476esac
2477case $srcdir in
2478  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2479    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2480esac
2481
2482# Do 'set' in a subshell so we don't clobber the current shell's
2483# arguments.  Must try -L first in case configure is actually a
2484# symlink; some systems play weird games with the mod time of symlinks
2485# (eg FreeBSD returns the mod time of the symlink's containing
2486# directory).
2487if (
2488   am_has_slept=no
2489   for am_try in 1 2; do
2490     echo "timestamp, slept: $am_has_slept" > conftest.file
2491     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2492     if test "$*" = "X"; then
2493	# -L didn't work.
2494	set X `ls -t "$srcdir/configure" conftest.file`
2495     fi
2496     if test "$*" != "X $srcdir/configure conftest.file" \
2497	&& test "$*" != "X conftest.file $srcdir/configure"; then
2498
2499	# If neither matched, then we have a broken ls.  This can happen
2500	# if, for instance, CONFIG_SHELL is bash and it inherits a
2501	# broken ls alias from the environment.  This has actually
2502	# happened.  Such a system could not be considered "sane".
2503	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2504  alias in your environment" "$LINENO" 5
2505     fi
2506     if test "$2" = conftest.file || test $am_try -eq 2; then
2507       break
2508     fi
2509     # Just in case.
2510     sleep 1
2511     am_has_slept=yes
2512   done
2513   test "$2" = conftest.file
2514   )
2515then
2516   # Ok.
2517   :
2518else
2519   as_fn_error $? "newly created file is older than distributed files!
2520Check your system clock" "$LINENO" 5
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523$as_echo "yes" >&6; }
2524# If we didn't sleep, we still need to ensure time stamps of config.status and
2525# generated files are strictly newer.
2526am_sleep_pid=
2527if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2528  ( sleep 1 ) &
2529  am_sleep_pid=$!
2530fi
2531
2532rm -f conftest.file
2533
2534test "$program_prefix" != NONE &&
2535  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
2538  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
2540# By default was `s,x,x', remove it if useless.
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2543
2544# expand $ac_aux_dir to an absolute path
2545am_aux_dir=`cd $ac_aux_dir && pwd`
2546
2547if test x"${MISSING+set}" != xset; then
2548  case $am_aux_dir in
2549  *\ * | *\	*)
2550    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2551  *)
2552    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2553  esac
2554fi
2555# Use eval to expand $SHELL
2556if eval "$MISSING --is-lightweight"; then
2557  am_missing_run="$MISSING "
2558else
2559  am_missing_run=
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2561$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2562fi
2563
2564if test x"${install_sh}" != xset; then
2565  case $am_aux_dir in
2566  *\ * | *\	*)
2567    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2568  *)
2569    install_sh="\${SHELL} $am_aux_dir/install-sh"
2570  esac
2571fi
2572
2573# Installed binaries are usually stripped using 'strip' when the user
2574# run "make install-strip".  However 'strip' might not be the right
2575# tool to use in cross-compilation environments, therefore Automake
2576# will honor the 'STRIP' environment variable to overrule this program.
2577if test "$cross_compiling" != no; then
2578  if test -n "$ac_tool_prefix"; then
2579  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2580set dummy ${ac_tool_prefix}strip; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_STRIP+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$STRIP"; then
2587  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606STRIP=$ac_cv_prog_STRIP
2607if test -n "$STRIP"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2609$as_echo "$STRIP" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616fi
2617if test -z "$ac_cv_prog_STRIP"; then
2618  ac_ct_STRIP=$STRIP
2619  # Extract the first word of "strip", so it can be a program name with args.
2620set dummy strip; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$ac_ct_STRIP"; then
2627  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_ac_ct_STRIP="strip"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2647if test -n "$ac_ct_STRIP"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2649$as_echo "$ac_ct_STRIP" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655  if test "x$ac_ct_STRIP" = x; then
2656    STRIP=":"
2657  else
2658    case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662ac_tool_warned=yes ;;
2663esac
2664    STRIP=$ac_ct_STRIP
2665  fi
2666else
2667  STRIP="$ac_cv_prog_STRIP"
2668fi
2669
2670fi
2671INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2674$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2675if test -z "$MKDIR_P"; then
2676  if ${ac_cv_path_mkdir+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_prog in mkdir gmkdir; do
2685	 for ac_exec_ext in '' $ac_executable_extensions; do
2686	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2687	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2688	     'mkdir (GNU coreutils) '* | \
2689	     'mkdir (coreutils) '* | \
2690	     'mkdir (fileutils) '4.1*)
2691	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2692	       break 3;;
2693	   esac
2694	 done
2695       done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700
2701  test -d ./--version && rmdir ./--version
2702  if test "${ac_cv_path_mkdir+set}" = set; then
2703    MKDIR_P="$ac_cv_path_mkdir -p"
2704  else
2705    # As a last resort, use the slow shell script.  Don't cache a
2706    # value for MKDIR_P within a source directory, because that will
2707    # break other packages using the cache if that directory is
2708    # removed, or if the value is a relative name.
2709    MKDIR_P="$ac_install_sh -d"
2710  fi
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2713$as_echo "$MKDIR_P" >&6; }
2714
2715for ac_prog in gawk mawk nawk awk
2716do
2717  # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_AWK+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$AWK"; then
2725  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_AWK="$ac_prog"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744AWK=$ac_cv_prog_AWK
2745if test -n "$AWK"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747$as_echo "$AWK" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754  test -n "$AWK" && break
2755done
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759set x ${MAKE-make}
2760ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762  $as_echo_n "(cached) " >&6
2763else
2764  cat >conftest.make <<\_ACEOF
2765SHELL = /bin/sh
2766all:
2767	@echo '@@@%%%=$(MAKE)=@@@%%%'
2768_ACEOF
2769# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771  *@@@%%%=?*=@@@%%%*)
2772    eval ac_cv_prog_make_${ac_make}_set=yes;;
2773  *)
2774    eval ac_cv_prog_make_${ac_make}_set=no;;
2775esac
2776rm -f conftest.make
2777fi
2778if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780$as_echo "yes" >&6; }
2781  SET_MAKE=
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785  SET_MAKE="MAKE=${MAKE-make}"
2786fi
2787
2788rm -rf .tst 2>/dev/null
2789mkdir .tst 2>/dev/null
2790if test -d .tst; then
2791  am__leading_dot=.
2792else
2793  am__leading_dot=_
2794fi
2795rmdir .tst 2>/dev/null
2796
2797# Check whether --enable-silent-rules was given.
2798if test "${enable_silent_rules+set}" = set; then :
2799  enableval=$enable_silent_rules;
2800fi
2801
2802case $enable_silent_rules in # (((
2803  yes) AM_DEFAULT_VERBOSITY=0;;
2804   no) AM_DEFAULT_VERBOSITY=1;;
2805    *) AM_DEFAULT_VERBOSITY=1;;
2806esac
2807am_make=${MAKE-make}
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2809$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2810if ${am_cv_make_support_nested_variables+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if $as_echo 'TRUE=$(BAR$(V))
2814BAR0=false
2815BAR1=true
2816V=1
2817am__doit:
2818	@$(TRUE)
2819.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2820  am_cv_make_support_nested_variables=yes
2821else
2822  am_cv_make_support_nested_variables=no
2823fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2826$as_echo "$am_cv_make_support_nested_variables" >&6; }
2827if test $am_cv_make_support_nested_variables = yes; then
2828    AM_V='$(V)'
2829  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2830else
2831  AM_V=$AM_DEFAULT_VERBOSITY
2832  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2833fi
2834AM_BACKSLASH='\'
2835
2836if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838  # is not polluted with repeated "-I."
2839  am__isrc=' -I$(srcdir)'
2840  # test to see if srcdir already configured
2841  if test -f $srcdir/config.status; then
2842    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843  fi
2844fi
2845
2846# test whether we have cygpath
2847if test -z "$CYGPATH_W"; then
2848  if (cygpath --version) >/dev/null 2>/dev/null; then
2849    CYGPATH_W='cygpath -w'
2850  else
2851    CYGPATH_W=echo
2852  fi
2853fi
2854
2855
2856# Define the identity of the package.
2857 PACKAGE='xf86-video-geode'
2858 VERSION='2.11.15'
2859
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE "$PACKAGE"
2863_ACEOF
2864
2865
2866cat >>confdefs.h <<_ACEOF
2867#define VERSION "$VERSION"
2868_ACEOF
2869
2870# Some tools Automake needs.
2871
2872ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873
2874
2875AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876
2877
2878AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879
2880
2881AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882
2883
2884MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885
2886# For better backward compatibility.  To be removed once Automake 1.9.x
2887# dies out for good.  For more background, see:
2888# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2889# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2890mkdir_p='$(MKDIR_P)'
2891
2892# We need awk for the "check" target.  The system "awk" is bad on
2893# some platforms.
2894# Always define AMTAR for backward compatibility.  Yes, it's still used
2895# in the wild :-(  We should find a proper way to deprecate it ...
2896AMTAR='$${TAR-tar}'
2897
2898
2899# We'll loop over all known methods to create a tar archive until one works.
2900_am_tools='gnutar  pax cpio none'
2901
2902am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909# POSIX will say in a future version that running "rm -f" with no argument
2910# is OK; and we want to be able to make that assumption in our Makefile
2911# recipes.  So use an aggressive probe to check that the usage we want is
2912# actually supported "in the wild" to an acceptable degree.
2913# See automake bug#10828.
2914# To make any issue more visible, cause the running configure to be aborted
2915# by default if the 'rm' program in use doesn't match our expectations; the
2916# user can still override this though.
2917if rm -f && rm -fr && rm -rf; then : OK; else
2918  cat >&2 <<'END'
2919Oops!
2920
2921Your 'rm' program seems unable to run without file operands specified
2922on the command line, even when the '-f' option is present.  This is contrary
2923to the behaviour of most rm programs out there, and not conforming with
2924the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2925
2926Please tell bug-automake@gnu.org about your system, including the value
2927of your $PATH and any error possibly output before this message.  This
2928can help us improve future automake versions.
2929
2930END
2931  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2932    echo 'Configuration will proceed anyway, since you have set the' >&2
2933    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2934    echo >&2
2935  else
2936    cat >&2 <<'END'
2937Aborting the configuration process, to ensure you take notice of the issue.
2938
2939You can download and install GNU coreutils to get an 'rm' implementation
2940that behaves properly: <http://www.gnu.org/software/coreutils/>.
2941
2942If you want to complete the configuration process using your problematic
2943'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2944to "yes", and re-run configure.
2945
2946END
2947    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2948  fi
2949fi
2950
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2952$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2953    # Check whether --enable-maintainer-mode was given.
2954if test "${enable_maintainer_mode+set}" = set; then :
2955  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2956else
2957  USE_MAINTAINER_MODE=no
2958fi
2959
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2961$as_echo "$USE_MAINTAINER_MODE" >&6; }
2962   if test $USE_MAINTAINER_MODE = yes; then
2963  MAINTAINER_MODE_TRUE=
2964  MAINTAINER_MODE_FALSE='#'
2965else
2966  MAINTAINER_MODE_TRUE='#'
2967  MAINTAINER_MODE_FALSE=
2968fi
2969
2970  MAINT=$MAINTAINER_MODE_TRUE
2971
2972
2973
2974# Initialize libtool
2975# Check whether --enable-static was given.
2976if test "${enable_static+set}" = set; then :
2977  enableval=$enable_static; p=${PACKAGE-default}
2978    case $enableval in
2979    yes) enable_static=yes ;;
2980    no) enable_static=no ;;
2981    *)
2982     enable_static=no
2983      # Look at the argument we got.  We use all the common list separators.
2984      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2985      for pkg in $enableval; do
2986	IFS="$lt_save_ifs"
2987	if test "X$pkg" = "X$p"; then
2988	  enable_static=yes
2989	fi
2990      done
2991      IFS="$lt_save_ifs"
2992      ;;
2993    esac
2994else
2995  enable_static=no
2996fi
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006case `pwd` in
3007  *\ * | *\	*)
3008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3009$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3010esac
3011
3012
3013
3014macro_version='2.4.2'
3015macro_revision='1.3337'
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029ltmain="$ac_aux_dir/ltmain.sh"
3030
3031# Make sure we can run config.sub.
3032$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3033  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3034
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3036$as_echo_n "checking build system type... " >&6; }
3037if ${ac_cv_build+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  ac_build_alias=$build_alias
3041test "x$ac_build_alias" = x &&
3042  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3043test "x$ac_build_alias" = x &&
3044  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3045ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3046  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3047
3048fi
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3050$as_echo "$ac_cv_build" >&6; }
3051case $ac_cv_build in
3052*-*-*) ;;
3053*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3054esac
3055build=$ac_cv_build
3056ac_save_IFS=$IFS; IFS='-'
3057set x $ac_cv_build
3058shift
3059build_cpu=$1
3060build_vendor=$2
3061shift; shift
3062# Remember, the first character of IFS is used to create $*,
3063# except with old shells:
3064build_os=$*
3065IFS=$ac_save_IFS
3066case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3067
3068
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3070$as_echo_n "checking host system type... " >&6; }
3071if ${ac_cv_host+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test "x$host_alias" = x; then
3075  ac_cv_host=$ac_cv_build
3076else
3077  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3078    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3079fi
3080
3081fi
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3083$as_echo "$ac_cv_host" >&6; }
3084case $ac_cv_host in
3085*-*-*) ;;
3086*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3087esac
3088host=$ac_cv_host
3089ac_save_IFS=$IFS; IFS='-'
3090set x $ac_cv_host
3091shift
3092host_cpu=$1
3093host_vendor=$2
3094shift; shift
3095# Remember, the first character of IFS is used to create $*,
3096# except with old shells:
3097host_os=$*
3098IFS=$ac_save_IFS
3099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3100
3101
3102# Backslashify metacharacters that are still active within
3103# double-quoted strings.
3104sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3105
3106# Same as above, but do not quote variable references.
3107double_quote_subst='s/\(["`\\]\)/\\\1/g'
3108
3109# Sed substitution to delay expansion of an escaped shell variable in a
3110# double_quote_subst'ed string.
3111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3112
3113# Sed substitution to delay expansion of an escaped single quote.
3114delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3115
3116# Sed substitution to avoid accidental globbing in evaled expressions
3117no_glob_subst='s/\*/\\\*/g'
3118
3119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3122
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3124$as_echo_n "checking how to print strings... " >&6; }
3125# Test print first, because it will be a builtin if present.
3126if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3127   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3128  ECHO='print -r --'
3129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3130  ECHO='printf %s\n'
3131else
3132  # Use this function as a fallback that always works.
3133  func_fallback_echo ()
3134  {
3135    eval 'cat <<_LTECHO_EOF
3136$1
3137_LTECHO_EOF'
3138  }
3139  ECHO='func_fallback_echo'
3140fi
3141
3142# func_echo_all arg...
3143# Invoke $ECHO with all args, space-separated.
3144func_echo_all ()
3145{
3146    $ECHO ""
3147}
3148
3149case "$ECHO" in
3150  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3151$as_echo "printf" >&6; } ;;
3152  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3153$as_echo "print -r" >&6; } ;;
3154  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3155$as_echo "cat" >&6; } ;;
3156esac
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171DEPDIR="${am__leading_dot}deps"
3172
3173ac_config_commands="$ac_config_commands depfiles"
3174
3175
3176am_make=${MAKE-make}
3177cat > confinc << 'END'
3178am__doit:
3179	@echo this is the am__doit target
3180.PHONY: am__doit
3181END
3182# If we don't find an include directive, just comment out the code.
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3184$as_echo_n "checking for style of include used by $am_make... " >&6; }
3185am__include="#"
3186am__quote=
3187_am_result=none
3188# First try GNU make style include.
3189echo "include confinc" > confmf
3190# Ignore all kinds of additional output from 'make'.
3191case `$am_make -s -f confmf 2> /dev/null` in #(
3192*the\ am__doit\ target*)
3193  am__include=include
3194  am__quote=
3195  _am_result=GNU
3196  ;;
3197esac
3198# Now try BSD make style include.
3199if test "$am__include" = "#"; then
3200   echo '.include "confinc"' > confmf
3201   case `$am_make -s -f confmf 2> /dev/null` in #(
3202   *the\ am__doit\ target*)
3203     am__include=.include
3204     am__quote="\""
3205     _am_result=BSD
3206     ;;
3207   esac
3208fi
3209
3210
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3212$as_echo "$_am_result" >&6; }
3213rm -f confinc confmf
3214
3215# Check whether --enable-dependency-tracking was given.
3216if test "${enable_dependency_tracking+set}" = set; then :
3217  enableval=$enable_dependency_tracking;
3218fi
3219
3220if test "x$enable_dependency_tracking" != xno; then
3221  am_depcomp="$ac_aux_dir/depcomp"
3222  AMDEPBACKSLASH='\'
3223  am__nodep='_no'
3224fi
3225 if test "x$enable_dependency_tracking" != xno; then
3226  AMDEP_TRUE=
3227  AMDEP_FALSE='#'
3228else
3229  AMDEP_TRUE='#'
3230  AMDEP_FALSE=
3231fi
3232
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239if test -n "$ac_tool_prefix"; then
3240  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_CC+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$CC"; then
3248  ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277fi
3278if test -z "$ac_cv_prog_CC"; then
3279  ac_ct_CC=$CC
3280  # Extract the first word of "gcc", so it can be a program name with args.
3281set dummy gcc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$ac_ct_CC"; then
3288  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_ac_ct_CC="gcc"
3298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308if test -n "$ac_ct_CC"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310$as_echo "$ac_ct_CC" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316  if test "x$ac_ct_CC" = x; then
3317    CC=""
3318  else
3319    case $cross_compiling:$ac_tool_warned in
3320yes:)
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323ac_tool_warned=yes ;;
3324esac
3325    CC=$ac_ct_CC
3326  fi
3327else
3328  CC="$ac_cv_prog_CC"
3329fi
3330
3331if test -z "$CC"; then
3332          if test -n "$ac_tool_prefix"; then
3333    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334set dummy ${ac_tool_prefix}cc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348    for ac_exec_ext in '' $ac_executable_extensions; do
3349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350    ac_cv_prog_CC="${ac_tool_prefix}cc"
3351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363$as_echo "$CC" >&6; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370  fi
3371fi
3372if test -z "$CC"; then
3373  # Extract the first word of "cc", so it can be a program name with args.
3374set dummy cc; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_CC+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if test -n "$CC"; then
3381  ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383  ac_prog_rejected=no
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  test -z "$as_dir" && as_dir=.
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392       ac_prog_rejected=yes
3393       continue
3394     fi
3395    ac_cv_prog_CC="cc"
3396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400  done
3401IFS=$as_save_IFS
3402
3403if test $ac_prog_rejected = yes; then
3404  # We found a bogon in the path, so make sure we never use it.
3405  set dummy $ac_cv_prog_CC
3406  shift
3407  if test $# != 0; then
3408    # We chose a different compiler from the bogus one.
3409    # However, it has the same basename, so the bogon will be chosen
3410    # first if we set CC to just the basename; use the full file name.
3411    shift
3412    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3413  fi
3414fi
3415fi
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420$as_echo "$CC" >&6; }
3421else
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427fi
3428if test -z "$CC"; then
3429  if test -n "$ac_tool_prefix"; then
3430  for ac_prog in cl.exe
3431  do
3432    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
3436if ${ac_cv_prog_CC+:} false; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  if test -n "$CC"; then
3440  ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454  done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462$as_echo "$CC" >&6; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469    test -n "$CC" && break
3470  done
3471fi
3472if test -z "$CC"; then
3473  ac_ct_CC=$CC
3474  for ac_prog in cl.exe
3475do
3476  # Extract the first word of "$ac_prog", so it can be a program name with args.
3477set dummy $ac_prog; ac_word=$2
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479$as_echo_n "checking for $ac_word... " >&6; }
3480if ${ac_cv_prog_ac_ct_CC+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  if test -n "$ac_ct_CC"; then
3484  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489  IFS=$as_save_IFS
3490  test -z "$as_dir" && as_dir=.
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493    ac_cv_prog_ac_ct_CC="$ac_prog"
3494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501fi
3502fi
3503ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504if test -n "$ac_ct_CC"; then
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506$as_echo "$ac_ct_CC" >&6; }
3507else
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510fi
3511
3512
3513  test -n "$ac_ct_CC" && break
3514done
3515
3516  if test "x$ac_ct_CC" = x; then
3517    CC=""
3518  else
3519    case $cross_compiling:$ac_tool_warned in
3520yes:)
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523ac_tool_warned=yes ;;
3524esac
3525    CC=$ac_ct_CC
3526  fi
3527fi
3528
3529fi
3530
3531
3532test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "no acceptable C compiler found in \$PATH
3535See \`config.log' for more details" "$LINENO" 5; }
3536
3537# Provide some information about the compiler.
3538$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539set X $ac_compile
3540ac_compiler=$2
3541for ac_option in --version -v -V -qversion; do
3542  { { ac_try="$ac_compiler $ac_option >&5"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550  ac_status=$?
3551  if test -s conftest.err; then
3552    sed '10a\
3553... rest of stderr output deleted ...
3554         10q' conftest.err >conftest.er1
3555    cat conftest.er1 >&5
3556  fi
3557  rm -f conftest.er1 conftest.err
3558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559  test $ac_status = 0; }
3560done
3561
3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573ac_clean_files_save=$ac_clean_files
3574ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3575# Try to create an executable without -o first, disregard a.out.
3576# It will help us diagnose broken compilers, and finding out an intuition
3577# of exeext.
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579$as_echo_n "checking whether the C compiler works... " >&6; }
3580ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3581
3582# The possible output files:
3583ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3584
3585ac_rmfiles=
3586for ac_file in $ac_files
3587do
3588  case $ac_file in
3589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591  esac
3592done
3593rm -f $ac_rmfiles
3594
3595if { { ac_try="$ac_link_default"
3596case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602  (eval "$ac_link_default") 2>&5
3603  ac_status=$?
3604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605  test $ac_status = 0; }; then :
3606  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3607# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3608# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3609# so that the user can short-circuit this test for compilers unknown to
3610# Autoconf.
3611for ac_file in $ac_files ''
3612do
3613  test -f "$ac_file" || continue
3614  case $ac_file in
3615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3616	;;
3617    [ab].out )
3618	# We found the default executable, but exeext='' is most
3619	# certainly right.
3620	break;;
3621    *.* )
3622	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3623	then :; else
3624	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625	fi
3626	# We set ac_cv_exeext here because the later test for it is not
3627	# safe: cross compilers may not add the suffix if given an `-o'
3628	# argument, so we may need to know it at that point already.
3629	# Even if this section looks crufty: it has the advantage of
3630	# actually working.
3631	break;;
3632    * )
3633	break;;
3634  esac
3635done
3636test "$ac_cv_exeext" = no && ac_cv_exeext=
3637
3638else
3639  ac_file=''
3640fi
3641if test -z "$ac_file"; then :
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644$as_echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error 77 "C compiler cannot create executables
3650See \`config.log' for more details" "$LINENO" 5; }
3651else
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653$as_echo "yes" >&6; }
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3656$as_echo_n "checking for C compiler default output file name... " >&6; }
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3658$as_echo "$ac_file" >&6; }
3659ac_exeext=$ac_cv_exeext
3660
3661rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3662ac_clean_files=$ac_clean_files_save
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3664$as_echo_n "checking for suffix of executables... " >&6; }
3665if { { ac_try="$ac_link"
3666case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672  (eval "$ac_link") 2>&5
3673  ac_status=$?
3674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }; then :
3676  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3678# work properly (i.e., refer to `conftest.exe'), while it won't with
3679# `rm'.
3680for ac_file in conftest.exe conftest conftest.*; do
3681  test -f "$ac_file" || continue
3682  case $ac_file in
3683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685	  break;;
3686    * ) break;;
3687  esac
3688done
3689else
3690  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693See \`config.log' for more details" "$LINENO" 5; }
3694fi
3695rm -f conftest conftest$ac_cv_exeext
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3697$as_echo "$ac_cv_exeext" >&6; }
3698
3699rm -f conftest.$ac_ext
3700EXEEXT=$ac_cv_exeext
3701ac_exeext=$EXEEXT
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704#include <stdio.h>
3705int
3706main ()
3707{
3708FILE *f = fopen ("conftest.out", "w");
3709 return ferror (f) || fclose (f) != 0;
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715ac_clean_files="$ac_clean_files conftest.out"
3716# Check that the compiler produces executables we can run.  If not, either
3717# the compiler is broken, or we cross compile.
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3719$as_echo_n "checking whether we are cross compiling... " >&6; }
3720if test "$cross_compiling" != yes; then
3721  { { ac_try="$ac_link"
3722case "(($ac_try" in
3723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724  *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727$as_echo "$ac_try_echo"; } >&5
3728  (eval "$ac_link") 2>&5
3729  ac_status=$?
3730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731  test $ac_status = 0; }
3732  if { ac_try='./conftest$ac_cv_exeext'
3733  { { case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738$as_echo "$ac_try_echo"; } >&5
3739  (eval "$ac_try") 2>&5
3740  ac_status=$?
3741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742  test $ac_status = 0; }; }; then
3743    cross_compiling=no
3744  else
3745    if test "$cross_compiling" = maybe; then
3746	cross_compiling=yes
3747    else
3748	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750as_fn_error $? "cannot run C compiled programs.
3751If you meant to cross compile, use \`--host'.
3752See \`config.log' for more details" "$LINENO" 5; }
3753    fi
3754  fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3757$as_echo "$cross_compiling" >&6; }
3758
3759rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3760ac_clean_files=$ac_clean_files_save
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3762$as_echo_n "checking for suffix of object files... " >&6; }
3763if ${ac_cv_objext+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768
3769int
3770main ()
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777rm -f conftest.o conftest.obj
3778if { { ac_try="$ac_compile"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784$as_echo "$ac_try_echo"; } >&5
3785  (eval "$ac_compile") 2>&5
3786  ac_status=$?
3787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788  test $ac_status = 0; }; then :
3789  for ac_file in conftest.o conftest.obj conftest.*; do
3790  test -f "$ac_file" || continue;
3791  case $ac_file in
3792    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3793    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794       break;;
3795  esac
3796done
3797else
3798  $as_echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803as_fn_error $? "cannot compute suffix of object files: cannot compile
3804See \`config.log' for more details" "$LINENO" 5; }
3805fi
3806rm -f conftest.$ac_cv_objext conftest.$ac_ext
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3809$as_echo "$ac_cv_objext" >&6; }
3810OBJEXT=$ac_cv_objext
3811ac_objext=$OBJEXT
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3813$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3814if ${ac_cv_c_compiler_gnu+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820int
3821main ()
3822{
3823#ifndef __GNUC__
3824       choke me
3825#endif
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_compiler_gnu=yes
3833else
3834  ac_compiler_gnu=no
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3842if test $ac_compiler_gnu = yes; then
3843  GCC=yes
3844else
3845  GCC=
3846fi
3847ac_test_CFLAGS=${CFLAGS+set}
3848ac_save_CFLAGS=$CFLAGS
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3850$as_echo_n "checking whether $CC accepts -g... " >&6; }
3851if ${ac_cv_prog_cc_g+:} false; then :
3852  $as_echo_n "(cached) " >&6
3853else
3854  ac_save_c_werror_flag=$ac_c_werror_flag
3855   ac_c_werror_flag=yes
3856   ac_cv_prog_cc_g=no
3857   CFLAGS="-g"
3858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860
3861int
3862main ()
3863{
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869if ac_fn_c_try_compile "$LINENO"; then :
3870  ac_cv_prog_cc_g=yes
3871else
3872  CFLAGS=""
3873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885
3886else
3887  ac_c_werror_flag=$ac_save_c_werror_flag
3888	 CFLAGS="-g"
3889	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901  ac_cv_prog_cc_g=yes
3902fi
3903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904fi
3905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906fi
3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908   ac_c_werror_flag=$ac_save_c_werror_flag
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3911$as_echo "$ac_cv_prog_cc_g" >&6; }
3912if test "$ac_test_CFLAGS" = set; then
3913  CFLAGS=$ac_save_CFLAGS
3914elif test $ac_cv_prog_cc_g = yes; then
3915  if test "$GCC" = yes; then
3916    CFLAGS="-g -O2"
3917  else
3918    CFLAGS="-g"
3919  fi
3920else
3921  if test "$GCC" = yes; then
3922    CFLAGS="-O2"
3923  else
3924    CFLAGS=
3925  fi
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3928$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3929if ${ac_cv_prog_cc_c89+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932  ac_cv_prog_cc_c89=no
3933ac_save_CC=$CC
3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936#include <stdarg.h>
3937#include <stdio.h>
3938struct stat;
3939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3940struct buf { int x; };
3941FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942static char *e (p, i)
3943     char **p;
3944     int i;
3945{
3946  return p[i];
3947}
3948static char *f (char * (*g) (char **, int), char **p, ...)
3949{
3950  char *s;
3951  va_list v;
3952  va_start (v,p);
3953  s = g (p, va_arg (v,int));
3954  va_end (v);
3955  return s;
3956}
3957
3958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3959   function prototypes and stuff, but not '\xHH' hex character constants.
3960   These don't provoke an error unfortunately, instead are silently treated
3961   as 'x'.  The following induces an error, until -std is added to get
3962   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3963   array size at least.  It's necessary to write '\x00'==0 to get something
3964   that's true only with -std.  */
3965int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966
3967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3968   inside strings and character constants.  */
3969#define FOO(x) 'x'
3970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3971
3972int test (int i, double x);
3973struct s1 {int (*f) (int a);};
3974struct s2 {int (*f) (double a);};
3975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976int argc;
3977char **argv;
3978int
3979main ()
3980{
3981return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3987	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988do
3989  CC="$ac_save_CC $ac_arg"
3990  if ac_fn_c_try_compile "$LINENO"; then :
3991  ac_cv_prog_cc_c89=$ac_arg
3992fi
3993rm -f core conftest.err conftest.$ac_objext
3994  test "x$ac_cv_prog_cc_c89" != "xno" && break
3995done
3996rm -f conftest.$ac_ext
3997CC=$ac_save_CC
3998
3999fi
4000# AC_CACHE_VAL
4001case "x$ac_cv_prog_cc_c89" in
4002  x)
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004$as_echo "none needed" >&6; } ;;
4005  xno)
4006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4007$as_echo "unsupported" >&6; } ;;
4008  *)
4009    CC="$CC $ac_cv_prog_cc_c89"
4010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4011$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4012esac
4013if test "x$ac_cv_prog_cc_c89" != xno; then :
4014
4015fi
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4029$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4030if ${am_cv_prog_cc_c_o+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h.  */
4035
4036int
4037main ()
4038{
4039
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044  # Make sure it works both with $CC and with simple cc.
4045  # Following AC_PROG_CC_C_O, we do the test twice because some
4046  # compilers refuse to overwrite an existing .o file with -o,
4047  # though they will create one.
4048  am_cv_prog_cc_c_o=yes
4049  for am_i in 1 2; do
4050    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4051   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } \
4055         && test -f conftest2.$ac_objext; then
4056      : OK
4057    else
4058      am_cv_prog_cc_c_o=no
4059      break
4060    fi
4061  done
4062  rm -f core conftest*
4063  unset am_i
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4066$as_echo "$am_cv_prog_cc_c_o" >&6; }
4067if test "$am_cv_prog_cc_c_o" != yes; then
4068   # Losing compiler, so override with the script.
4069   # FIXME: It is wrong to rewrite CC.
4070   # But if we don't then we get into trouble of one sort or another.
4071   # A longer-term fix would be to have automake use am__CC in this case,
4072   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4073   CC="$am_aux_dir/compile $CC"
4074fi
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082depcc="$CC"   am_compiler_list=
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4085$as_echo_n "checking dependency style of $depcc... " >&6; }
4086if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4090  # We make a subdir and do the tests there.  Otherwise we can end up
4091  # making bogus files that we don't know about and never remove.  For
4092  # instance it was reported that on HP-UX the gcc test will end up
4093  # making a dummy file named 'D' -- because '-MD' means "put the output
4094  # in D".
4095  rm -rf conftest.dir
4096  mkdir conftest.dir
4097  # Copy depcomp to subdir because otherwise we won't find it if we're
4098  # using a relative directory.
4099  cp "$am_depcomp" conftest.dir
4100  cd conftest.dir
4101  # We will build objects and dependencies in a subdirectory because
4102  # it helps to detect inapplicable dependency modes.  For instance
4103  # both Tru64's cc and ICC support -MD to output dependencies as a
4104  # side effect of compilation, but ICC will put the dependencies in
4105  # the current directory while Tru64 will put them in the object
4106  # directory.
4107  mkdir sub
4108
4109  am_cv_CC_dependencies_compiler_type=none
4110  if test "$am_compiler_list" = ""; then
4111     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4112  fi
4113  am__universal=false
4114  case " $depcc " in #(
4115     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116     esac
4117
4118  for depmode in $am_compiler_list; do
4119    # Setup a source with many dependencies, because some compilers
4120    # like to wrap large dependency lists on column 80 (with \), and
4121    # we should not choose a depcomp mode which is confused by this.
4122    #
4123    # We need to recreate these files for each test, as the compiler may
4124    # overwrite some of them when testing with obscure command lines.
4125    # This happens at least with the AIX C compiler.
4126    : > sub/conftest.c
4127    for i in 1 2 3 4 5 6; do
4128      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4130      # Solaris 10 /bin/sh.
4131      echo '/* dummy */' > sub/conftst$i.h
4132    done
4133    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4134
4135    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4136    # mode.  It turns out that the SunPro C++ compiler does not properly
4137    # handle '-M -o', and we need to detect this.  Also, some Intel
4138    # versions had trouble with output in subdirs.
4139    am__obj=sub/conftest.${OBJEXT-o}
4140    am__minus_obj="-o $am__obj"
4141    case $depmode in
4142    gcc)
4143      # This depmode causes a compiler race in universal mode.
4144      test "$am__universal" = false || continue
4145      ;;
4146    nosideeffect)
4147      # After this tag, mechanisms are not by side-effect, so they'll
4148      # only be used when explicitly requested.
4149      if test "x$enable_dependency_tracking" = xyes; then
4150	continue
4151      else
4152	break
4153      fi
4154      ;;
4155    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4156      # This compiler won't grok '-c -o', but also, the minuso test has
4157      # not run yet.  These depmodes are late enough in the game, and
4158      # so weak that their functioning should not be impacted.
4159      am__obj=conftest.${OBJEXT-o}
4160      am__minus_obj=
4161      ;;
4162    none) break ;;
4163    esac
4164    if depmode=$depmode \
4165       source=sub/conftest.c object=$am__obj \
4166       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168         >/dev/null 2>conftest.err &&
4169       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173      # icc doesn't choke on unknown options, it will just issue warnings
4174      # or remarks (even with -Werror).  So we grep stderr for any message
4175      # that says an option was ignored or not supported.
4176      # When given -MP, icc 7.0 and 7.1 complain thusly:
4177      #   icc: Command line warning: ignoring option '-M'; no argument required
4178      # The diagnosis changed in icc 8.0:
4179      #   icc: Command line remark: option '-MP' not supported
4180      if (grep 'ignoring option' conftest.err ||
4181          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182        am_cv_CC_dependencies_compiler_type=$depmode
4183        break
4184      fi
4185    fi
4186  done
4187
4188  cd ..
4189  rm -rf conftest.dir
4190else
4191  am_cv_CC_dependencies_compiler_type=none
4192fi
4193
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4196$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4197CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4198
4199 if
4200  test "x$enable_dependency_tracking" != xno \
4201  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4202  am__fastdepCC_TRUE=
4203  am__fastdepCC_FALSE='#'
4204else
4205  am__fastdepCC_TRUE='#'
4206  am__fastdepCC_FALSE=
4207fi
4208
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4211$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4212if ${ac_cv_path_SED+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4216     for ac_i in 1 2 3 4 5 6 7; do
4217       ac_script="$ac_script$as_nl$ac_script"
4218     done
4219     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4220     { ac_script=; unset ac_script;}
4221     if test -z "$SED"; then
4222  ac_path_SED_found=false
4223  # Loop through the user's path and test for each of PROGNAME-LIST
4224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227  IFS=$as_save_IFS
4228  test -z "$as_dir" && as_dir=.
4229    for ac_prog in sed gsed; do
4230    for ac_exec_ext in '' $ac_executable_extensions; do
4231      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4232      as_fn_executable_p "$ac_path_SED" || continue
4233# Check for GNU ac_path_SED and select it if it is found.
4234  # Check for GNU $ac_path_SED
4235case `"$ac_path_SED" --version 2>&1` in
4236*GNU*)
4237  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4238*)
4239  ac_count=0
4240  $as_echo_n 0123456789 >"conftest.in"
4241  while :
4242  do
4243    cat "conftest.in" "conftest.in" >"conftest.tmp"
4244    mv "conftest.tmp" "conftest.in"
4245    cp "conftest.in" "conftest.nl"
4246    $as_echo '' >> "conftest.nl"
4247    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249    as_fn_arith $ac_count + 1 && ac_count=$as_val
4250    if test $ac_count -gt ${ac_path_SED_max-0}; then
4251      # Best one so far, save it but keep looking for a better one
4252      ac_cv_path_SED="$ac_path_SED"
4253      ac_path_SED_max=$ac_count
4254    fi
4255    # 10*(2^10) chars as input seems more than enough
4256    test $ac_count -gt 10 && break
4257  done
4258  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4259esac
4260
4261      $ac_path_SED_found && break 3
4262    done
4263  done
4264  done
4265IFS=$as_save_IFS
4266  if test -z "$ac_cv_path_SED"; then
4267    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4268  fi
4269else
4270  ac_cv_path_SED=$SED
4271fi
4272
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4275$as_echo "$ac_cv_path_SED" >&6; }
4276 SED="$ac_cv_path_SED"
4277  rm -f conftest.sed
4278
4279test -z "$SED" && SED=sed
4280Xsed="$SED -e 1s/^X//"
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4293$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4294if ${ac_cv_path_GREP+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  if test -z "$GREP"; then
4298  ac_path_GREP_found=false
4299  # Loop through the user's path and test for each of PROGNAME-LIST
4300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4302do
4303  IFS=$as_save_IFS
4304  test -z "$as_dir" && as_dir=.
4305    for ac_prog in grep ggrep; do
4306    for ac_exec_ext in '' $ac_executable_extensions; do
4307      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4308      as_fn_executable_p "$ac_path_GREP" || continue
4309# Check for GNU ac_path_GREP and select it if it is found.
4310  # Check for GNU $ac_path_GREP
4311case `"$ac_path_GREP" --version 2>&1` in
4312*GNU*)
4313  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4314*)
4315  ac_count=0
4316  $as_echo_n 0123456789 >"conftest.in"
4317  while :
4318  do
4319    cat "conftest.in" "conftest.in" >"conftest.tmp"
4320    mv "conftest.tmp" "conftest.in"
4321    cp "conftest.in" "conftest.nl"
4322    $as_echo 'GREP' >> "conftest.nl"
4323    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325    as_fn_arith $ac_count + 1 && ac_count=$as_val
4326    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4327      # Best one so far, save it but keep looking for a better one
4328      ac_cv_path_GREP="$ac_path_GREP"
4329      ac_path_GREP_max=$ac_count
4330    fi
4331    # 10*(2^10) chars as input seems more than enough
4332    test $ac_count -gt 10 && break
4333  done
4334  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4335esac
4336
4337      $ac_path_GREP_found && break 3
4338    done
4339  done
4340  done
4341IFS=$as_save_IFS
4342  if test -z "$ac_cv_path_GREP"; then
4343    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4344  fi
4345else
4346  ac_cv_path_GREP=$GREP
4347fi
4348
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4351$as_echo "$ac_cv_path_GREP" >&6; }
4352 GREP="$ac_cv_path_GREP"
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4356$as_echo_n "checking for egrep... " >&6; }
4357if ${ac_cv_path_EGREP+:} false; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4361   then ac_cv_path_EGREP="$GREP -E"
4362   else
4363     if test -z "$EGREP"; then
4364  ac_path_EGREP_found=false
4365  # Loop through the user's path and test for each of PROGNAME-LIST
4366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4368do
4369  IFS=$as_save_IFS
4370  test -z "$as_dir" && as_dir=.
4371    for ac_prog in egrep; do
4372    for ac_exec_ext in '' $ac_executable_extensions; do
4373      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4374      as_fn_executable_p "$ac_path_EGREP" || continue
4375# Check for GNU ac_path_EGREP and select it if it is found.
4376  # Check for GNU $ac_path_EGREP
4377case `"$ac_path_EGREP" --version 2>&1` in
4378*GNU*)
4379  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4380*)
4381  ac_count=0
4382  $as_echo_n 0123456789 >"conftest.in"
4383  while :
4384  do
4385    cat "conftest.in" "conftest.in" >"conftest.tmp"
4386    mv "conftest.tmp" "conftest.in"
4387    cp "conftest.in" "conftest.nl"
4388    $as_echo 'EGREP' >> "conftest.nl"
4389    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4390    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4391    as_fn_arith $ac_count + 1 && ac_count=$as_val
4392    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4393      # Best one so far, save it but keep looking for a better one
4394      ac_cv_path_EGREP="$ac_path_EGREP"
4395      ac_path_EGREP_max=$ac_count
4396    fi
4397    # 10*(2^10) chars as input seems more than enough
4398    test $ac_count -gt 10 && break
4399  done
4400  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4401esac
4402
4403      $ac_path_EGREP_found && break 3
4404    done
4405  done
4406  done
4407IFS=$as_save_IFS
4408  if test -z "$ac_cv_path_EGREP"; then
4409    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4410  fi
4411else
4412  ac_cv_path_EGREP=$EGREP
4413fi
4414
4415   fi
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4418$as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP="$ac_cv_path_EGREP"
4420
4421
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4423$as_echo_n "checking for fgrep... " >&6; }
4424if ${ac_cv_path_FGREP+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4428   then ac_cv_path_FGREP="$GREP -F"
4429   else
4430     if test -z "$FGREP"; then
4431  ac_path_FGREP_found=false
4432  # Loop through the user's path and test for each of PROGNAME-LIST
4433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435do
4436  IFS=$as_save_IFS
4437  test -z "$as_dir" && as_dir=.
4438    for ac_prog in fgrep; do
4439    for ac_exec_ext in '' $ac_executable_extensions; do
4440      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4441      as_fn_executable_p "$ac_path_FGREP" || continue
4442# Check for GNU ac_path_FGREP and select it if it is found.
4443  # Check for GNU $ac_path_FGREP
4444case `"$ac_path_FGREP" --version 2>&1` in
4445*GNU*)
4446  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4447*)
4448  ac_count=0
4449  $as_echo_n 0123456789 >"conftest.in"
4450  while :
4451  do
4452    cat "conftest.in" "conftest.in" >"conftest.tmp"
4453    mv "conftest.tmp" "conftest.in"
4454    cp "conftest.in" "conftest.nl"
4455    $as_echo 'FGREP' >> "conftest.nl"
4456    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4457    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4458    as_fn_arith $ac_count + 1 && ac_count=$as_val
4459    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4460      # Best one so far, save it but keep looking for a better one
4461      ac_cv_path_FGREP="$ac_path_FGREP"
4462      ac_path_FGREP_max=$ac_count
4463    fi
4464    # 10*(2^10) chars as input seems more than enough
4465    test $ac_count -gt 10 && break
4466  done
4467  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468esac
4469
4470      $ac_path_FGREP_found && break 3
4471    done
4472  done
4473  done
4474IFS=$as_save_IFS
4475  if test -z "$ac_cv_path_FGREP"; then
4476    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4477  fi
4478else
4479  ac_cv_path_FGREP=$FGREP
4480fi
4481
4482   fi
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4485$as_echo "$ac_cv_path_FGREP" >&6; }
4486 FGREP="$ac_cv_path_FGREP"
4487
4488
4489test -z "$GREP" && GREP=grep
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509# Check whether --with-gnu-ld was given.
4510if test "${with_gnu_ld+set}" = set; then :
4511  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4512else
4513  with_gnu_ld=no
4514fi
4515
4516ac_prog=ld
4517if test "$GCC" = yes; then
4518  # Check if gcc -print-prog-name=ld gives a path.
4519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4520$as_echo_n "checking for ld used by $CC... " >&6; }
4521  case $host in
4522  *-*-mingw*)
4523    # gcc leaves a trailing carriage return which upsets mingw
4524    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4525  *)
4526    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4527  esac
4528  case $ac_prog in
4529    # Accept absolute paths.
4530    [\\/]* | ?:[\\/]*)
4531      re_direlt='/[^/][^/]*/\.\./'
4532      # Canonicalize the pathname of ld
4533      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4534      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4535	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4536      done
4537      test -z "$LD" && LD="$ac_prog"
4538      ;;
4539  "")
4540    # If it fails, then pretend we aren't using GCC.
4541    ac_prog=ld
4542    ;;
4543  *)
4544    # If it is relative, then search for the first ld in PATH.
4545    with_gnu_ld=unknown
4546    ;;
4547  esac
4548elif test "$with_gnu_ld" = yes; then
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4550$as_echo_n "checking for GNU ld... " >&6; }
4551else
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4553$as_echo_n "checking for non-GNU ld... " >&6; }
4554fi
4555if ${lt_cv_path_LD+:} false; then :
4556  $as_echo_n "(cached) " >&6
4557else
4558  if test -z "$LD"; then
4559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4560  for ac_dir in $PATH; do
4561    IFS="$lt_save_ifs"
4562    test -z "$ac_dir" && ac_dir=.
4563    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4564      lt_cv_path_LD="$ac_dir/$ac_prog"
4565      # Check to see if the program is GNU ld.  I'd rather use --version,
4566      # but apparently some variants of GNU ld only accept -v.
4567      # Break only if it was the GNU/non-GNU ld that we prefer.
4568      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4569      *GNU* | *'with BFD'*)
4570	test "$with_gnu_ld" != no && break
4571	;;
4572      *)
4573	test "$with_gnu_ld" != yes && break
4574	;;
4575      esac
4576    fi
4577  done
4578  IFS="$lt_save_ifs"
4579else
4580  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4581fi
4582fi
4583
4584LD="$lt_cv_path_LD"
4585if test -n "$LD"; then
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4587$as_echo "$LD" >&6; }
4588else
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591fi
4592test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4594$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4595if ${lt_cv_prog_gnu_ld+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4599case `$LD -v 2>&1 </dev/null` in
4600*GNU* | *'with BFD'*)
4601  lt_cv_prog_gnu_ld=yes
4602  ;;
4603*)
4604  lt_cv_prog_gnu_ld=no
4605  ;;
4606esac
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4609$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4610with_gnu_ld=$lt_cv_prog_gnu_ld
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4621$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4622if ${lt_cv_path_NM+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  if test -n "$NM"; then
4626  # Let the user override the test.
4627  lt_cv_path_NM="$NM"
4628else
4629  lt_nm_to_check="${ac_tool_prefix}nm"
4630  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4631    lt_nm_to_check="$lt_nm_to_check nm"
4632  fi
4633  for lt_tmp_nm in $lt_nm_to_check; do
4634    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4635    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4636      IFS="$lt_save_ifs"
4637      test -z "$ac_dir" && ac_dir=.
4638      tmp_nm="$ac_dir/$lt_tmp_nm"
4639      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4640	# Check to see if the nm accepts a BSD-compat flag.
4641	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4642	#   nm: unknown option "B" ignored
4643	# Tru64's nm complains that /dev/null is an invalid object file
4644	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4645	*/dev/null* | *'Invalid file or object type'*)
4646	  lt_cv_path_NM="$tmp_nm -B"
4647	  break
4648	  ;;
4649	*)
4650	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4651	  */dev/null*)
4652	    lt_cv_path_NM="$tmp_nm -p"
4653	    break
4654	    ;;
4655	  *)
4656	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4657	    continue # so that we can try to find one that supports BSD flags
4658	    ;;
4659	  esac
4660	  ;;
4661	esac
4662      fi
4663    done
4664    IFS="$lt_save_ifs"
4665  done
4666  : ${lt_cv_path_NM=no}
4667fi
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4670$as_echo "$lt_cv_path_NM" >&6; }
4671if test "$lt_cv_path_NM" != "no"; then
4672  NM="$lt_cv_path_NM"
4673else
4674  # Didn't find any BSD compatible name lister, look for dumpbin.
4675  if test -n "$DUMPBIN"; then :
4676    # Let the user override the test.
4677  else
4678    if test -n "$ac_tool_prefix"; then
4679  for ac_prog in dumpbin "link -dump"
4680  do
4681    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
4685if ${ac_cv_prog_DUMPBIN+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  if test -n "$DUMPBIN"; then
4689  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4690else
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694  IFS=$as_save_IFS
4695  test -z "$as_dir" && as_dir=.
4696    for ac_exec_ext in '' $ac_executable_extensions; do
4697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700    break 2
4701  fi
4702done
4703  done
4704IFS=$as_save_IFS
4705
4706fi
4707fi
4708DUMPBIN=$ac_cv_prog_DUMPBIN
4709if test -n "$DUMPBIN"; then
4710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4711$as_echo "$DUMPBIN" >&6; }
4712else
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
4715fi
4716
4717
4718    test -n "$DUMPBIN" && break
4719  done
4720fi
4721if test -z "$DUMPBIN"; then
4722  ac_ct_DUMPBIN=$DUMPBIN
4723  for ac_prog in dumpbin "link -dump"
4724do
4725  # Extract the first word of "$ac_prog", so it can be a program name with args.
4726set dummy $ac_prog; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  if test -n "$ac_ct_DUMPBIN"; then
4733  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  test -z "$as_dir" && as_dir=.
4740    for ac_exec_ext in '' $ac_executable_extensions; do
4741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744    break 2
4745  fi
4746done
4747  done
4748IFS=$as_save_IFS
4749
4750fi
4751fi
4752ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4753if test -n "$ac_ct_DUMPBIN"; then
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4755$as_echo "$ac_ct_DUMPBIN" >&6; }
4756else
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758$as_echo "no" >&6; }
4759fi
4760
4761
4762  test -n "$ac_ct_DUMPBIN" && break
4763done
4764
4765  if test "x$ac_ct_DUMPBIN" = x; then
4766    DUMPBIN=":"
4767  else
4768    case $cross_compiling:$ac_tool_warned in
4769yes:)
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772ac_tool_warned=yes ;;
4773esac
4774    DUMPBIN=$ac_ct_DUMPBIN
4775  fi
4776fi
4777
4778    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4779    *COFF*)
4780      DUMPBIN="$DUMPBIN -symbols"
4781      ;;
4782    *)
4783      DUMPBIN=:
4784      ;;
4785    esac
4786  fi
4787
4788  if test "$DUMPBIN" != ":"; then
4789    NM="$DUMPBIN"
4790  fi
4791fi
4792test -z "$NM" && NM=nm
4793
4794
4795
4796
4797
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4800$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4801if ${lt_cv_nm_interface+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  lt_cv_nm_interface="BSD nm"
4805  echo "int some_variable = 0;" > conftest.$ac_ext
4806  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4807  (eval "$ac_compile" 2>conftest.err)
4808  cat conftest.err >&5
4809  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4810  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4811  cat conftest.err >&5
4812  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4813  cat conftest.out >&5
4814  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4815    lt_cv_nm_interface="MS dumpbin"
4816  fi
4817  rm -f conftest*
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4820$as_echo "$lt_cv_nm_interface" >&6; }
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4823$as_echo_n "checking whether ln -s works... " >&6; }
4824LN_S=$as_ln_s
4825if test "$LN_S" = "ln -s"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827$as_echo "yes" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4830$as_echo "no, using $LN_S" >&6; }
4831fi
4832
4833# find the maximum length of command line arguments
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4835$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4836if ${lt_cv_sys_max_cmd_len+:} false; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839    i=0
4840  teststring="ABCD"
4841
4842  case $build_os in
4843  msdosdjgpp*)
4844    # On DJGPP, this test can blow up pretty badly due to problems in libc
4845    # (any single argument exceeding 2000 bytes causes a buffer overrun
4846    # during glob expansion).  Even if it were fixed, the result of this
4847    # check would be larger than it should be.
4848    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4849    ;;
4850
4851  gnu*)
4852    # Under GNU Hurd, this test is not required because there is
4853    # no limit to the length of command line arguments.
4854    # Libtool will interpret -1 as no limit whatsoever
4855    lt_cv_sys_max_cmd_len=-1;
4856    ;;
4857
4858  cygwin* | mingw* | cegcc*)
4859    # On Win9x/ME, this test blows up -- it succeeds, but takes
4860    # about 5 minutes as the teststring grows exponentially.
4861    # Worse, since 9x/ME are not pre-emptively multitasking,
4862    # you end up with a "frozen" computer, even though with patience
4863    # the test eventually succeeds (with a max line length of 256k).
4864    # Instead, let's just punt: use the minimum linelength reported by
4865    # all of the supported platforms: 8192 (on NT/2K/XP).
4866    lt_cv_sys_max_cmd_len=8192;
4867    ;;
4868
4869  mint*)
4870    # On MiNT this can take a long time and run out of memory.
4871    lt_cv_sys_max_cmd_len=8192;
4872    ;;
4873
4874  amigaos*)
4875    # On AmigaOS with pdksh, this test takes hours, literally.
4876    # So we just punt and use a minimum line length of 8192.
4877    lt_cv_sys_max_cmd_len=8192;
4878    ;;
4879
4880  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4881    # This has been around since 386BSD, at least.  Likely further.
4882    if test -x /sbin/sysctl; then
4883      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4884    elif test -x /usr/sbin/sysctl; then
4885      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4886    else
4887      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4888    fi
4889    # And add a safety zone
4890    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4891    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4892    ;;
4893
4894  interix*)
4895    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4896    lt_cv_sys_max_cmd_len=196608
4897    ;;
4898
4899  os2*)
4900    # The test takes a long time on OS/2.
4901    lt_cv_sys_max_cmd_len=8192
4902    ;;
4903
4904  osf*)
4905    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4906    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4907    # nice to cause kernel panics so lets avoid the loop below.
4908    # First set a reasonable default.
4909    lt_cv_sys_max_cmd_len=16384
4910    #
4911    if test -x /sbin/sysconfig; then
4912      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4913        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4914      esac
4915    fi
4916    ;;
4917  sco3.2v5*)
4918    lt_cv_sys_max_cmd_len=102400
4919    ;;
4920  sysv5* | sco5v6* | sysv4.2uw2*)
4921    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4922    if test -n "$kargmax"; then
4923      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4924    else
4925      lt_cv_sys_max_cmd_len=32768
4926    fi
4927    ;;
4928  *)
4929    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4930    if test -n "$lt_cv_sys_max_cmd_len" && \
4931	test undefined != "$lt_cv_sys_max_cmd_len"; then
4932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4933      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4934    else
4935      # Make teststring a little bigger before we do anything with it.
4936      # a 1K string should be a reasonable start.
4937      for i in 1 2 3 4 5 6 7 8 ; do
4938        teststring=$teststring$teststring
4939      done
4940      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4941      # If test is not a shell built-in, we'll probably end up computing a
4942      # maximum length that is only half of the actual maximum length, but
4943      # we can't tell.
4944      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4945	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4946	      test $i != 17 # 1/2 MB should be enough
4947      do
4948        i=`expr $i + 1`
4949        teststring=$teststring$teststring
4950      done
4951      # Only check the string length outside the loop.
4952      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4953      teststring=
4954      # Add a significant safety factor because C++ compilers can tack on
4955      # massive amounts of additional arguments before passing them to the
4956      # linker.  It appears as though 1/2 is a usable value.
4957      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4958    fi
4959    ;;
4960  esac
4961
4962fi
4963
4964if test -n $lt_cv_sys_max_cmd_len ; then
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4966$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4967else
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4969$as_echo "none" >&6; }
4970fi
4971max_cmd_len=$lt_cv_sys_max_cmd_len
4972
4973
4974
4975
4976
4977
4978: ${CP="cp -f"}
4979: ${MV="mv -f"}
4980: ${RM="rm -f"}
4981
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4983$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4984# Try some XSI features
4985xsi_shell=no
4986( _lt_dummy="a/b/c"
4987  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4988      = c,a/b,b/c, \
4989    && eval 'test $(( 1 + 1 )) -eq 2 \
4990    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4991  && xsi_shell=yes
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4993$as_echo "$xsi_shell" >&6; }
4994
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4997$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4998lt_shell_append=no
4999( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5000    >/dev/null 2>&1 \
5001  && lt_shell_append=yes
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5003$as_echo "$lt_shell_append" >&6; }
5004
5005
5006if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5007  lt_unset=unset
5008else
5009  lt_unset=false
5010fi
5011
5012
5013
5014
5015
5016# test EBCDIC or ASCII
5017case `echo X|tr X '\101'` in
5018 A) # ASCII based system
5019    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5020  lt_SP2NL='tr \040 \012'
5021  lt_NL2SP='tr \015\012 \040\040'
5022  ;;
5023 *) # EBCDIC based system
5024  lt_SP2NL='tr \100 \n'
5025  lt_NL2SP='tr \r\n \100\100'
5026  ;;
5027esac
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5038$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5039if ${lt_cv_to_host_file_cmd+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  case $host in
5043  *-*-mingw* )
5044    case $build in
5045      *-*-mingw* ) # actually msys
5046        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5047        ;;
5048      *-*-cygwin* )
5049        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5050        ;;
5051      * ) # otherwise, assume *nix
5052        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5053        ;;
5054    esac
5055    ;;
5056  *-*-cygwin* )
5057    case $build in
5058      *-*-mingw* ) # actually msys
5059        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5060        ;;
5061      *-*-cygwin* )
5062        lt_cv_to_host_file_cmd=func_convert_file_noop
5063        ;;
5064      * ) # otherwise, assume *nix
5065        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5066        ;;
5067    esac
5068    ;;
5069  * ) # unhandled hosts (and "normal" native builds)
5070    lt_cv_to_host_file_cmd=func_convert_file_noop
5071    ;;
5072esac
5073
5074fi
5075
5076to_host_file_cmd=$lt_cv_to_host_file_cmd
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5078$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5085$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5086if ${lt_cv_to_tool_file_cmd+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  #assume ordinary cross tools, or native build.
5090lt_cv_to_tool_file_cmd=func_convert_file_noop
5091case $host in
5092  *-*-mingw* )
5093    case $build in
5094      *-*-mingw* ) # actually msys
5095        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5096        ;;
5097    esac
5098    ;;
5099esac
5100
5101fi
5102
5103to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5105$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5106
5107
5108
5109
5110
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5112$as_echo_n "checking for $LD option to reload object files... " >&6; }
5113if ${lt_cv_ld_reload_flag+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  lt_cv_ld_reload_flag='-r'
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5119$as_echo "$lt_cv_ld_reload_flag" >&6; }
5120reload_flag=$lt_cv_ld_reload_flag
5121case $reload_flag in
5122"" | " "*) ;;
5123*) reload_flag=" $reload_flag" ;;
5124esac
5125reload_cmds='$LD$reload_flag -o $output$reload_objs'
5126case $host_os in
5127  cygwin* | mingw* | pw32* | cegcc*)
5128    if test "$GCC" != yes; then
5129      reload_cmds=false
5130    fi
5131    ;;
5132  darwin*)
5133    if test "$GCC" = yes; then
5134      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5135    else
5136      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137    fi
5138    ;;
5139esac
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149if test -n "$ac_tool_prefix"; then
5150  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}objdump; ac_word=$2
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if ${ac_cv_prog_OBJDUMP+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  if test -n "$OBJDUMP"; then
5158  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163  IFS=$as_save_IFS
5164  test -z "$as_dir" && as_dir=.
5165    for ac_exec_ext in '' $ac_executable_extensions; do
5166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169    break 2
5170  fi
5171done
5172  done
5173IFS=$as_save_IFS
5174
5175fi
5176fi
5177OBJDUMP=$ac_cv_prog_OBJDUMP
5178if test -n "$OBJDUMP"; then
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5180$as_echo "$OBJDUMP" >&6; }
5181else
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
5185
5186
5187fi
5188if test -z "$ac_cv_prog_OBJDUMP"; then
5189  ac_ct_OBJDUMP=$OBJDUMP
5190  # Extract the first word of "objdump", so it can be a program name with args.
5191set dummy objdump; ac_word=$2
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
5194if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  if test -n "$ac_ct_OBJDUMP"; then
5198  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205    for ac_exec_ext in '' $ac_executable_extensions; do
5206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212  done
5213IFS=$as_save_IFS
5214
5215fi
5216fi
5217ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5218if test -n "$ac_ct_OBJDUMP"; then
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5220$as_echo "$ac_ct_OBJDUMP" >&6; }
5221else
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
5224fi
5225
5226  if test "x$ac_ct_OBJDUMP" = x; then
5227    OBJDUMP="false"
5228  else
5229    case $cross_compiling:$ac_tool_warned in
5230yes:)
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233ac_tool_warned=yes ;;
5234esac
5235    OBJDUMP=$ac_ct_OBJDUMP
5236  fi
5237else
5238  OBJDUMP="$ac_cv_prog_OBJDUMP"
5239fi
5240
5241test -z "$OBJDUMP" && OBJDUMP=objdump
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5252$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5253if ${lt_cv_deplibs_check_method+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  lt_cv_file_magic_cmd='$MAGIC_CMD'
5257lt_cv_file_magic_test_file=
5258lt_cv_deplibs_check_method='unknown'
5259# Need to set the preceding variable on all platforms that support
5260# interlibrary dependencies.
5261# 'none' -- dependencies not supported.
5262# `unknown' -- same as none, but documents that we really don't know.
5263# 'pass_all' -- all dependencies passed with no checks.
5264# 'test_compile' -- check by making test program.
5265# 'file_magic [[regex]]' -- check by looking for files in library path
5266# which responds to the $file_magic_cmd with a given extended regex.
5267# If you have `file' or equivalent on your system and you're not sure
5268# whether `pass_all' will *always* work, you probably want this one.
5269
5270case $host_os in
5271aix[4-9]*)
5272  lt_cv_deplibs_check_method=pass_all
5273  ;;
5274
5275beos*)
5276  lt_cv_deplibs_check_method=pass_all
5277  ;;
5278
5279bsdi[45]*)
5280  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5281  lt_cv_file_magic_cmd='/usr/bin/file -L'
5282  lt_cv_file_magic_test_file=/shlib/libc.so
5283  ;;
5284
5285cygwin*)
5286  # func_win32_libid is a shell function defined in ltmain.sh
5287  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5288  lt_cv_file_magic_cmd='func_win32_libid'
5289  ;;
5290
5291mingw* | pw32*)
5292  # Base MSYS/MinGW do not provide the 'file' command needed by
5293  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5294  # unless we find 'file', for example because we are cross-compiling.
5295  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5296  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5297    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298    lt_cv_file_magic_cmd='func_win32_libid'
5299  else
5300    # Keep this pattern in sync with the one in func_win32_libid.
5301    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5302    lt_cv_file_magic_cmd='$OBJDUMP -f'
5303  fi
5304  ;;
5305
5306cegcc*)
5307  # use the weaker test based on 'objdump'. See mingw*.
5308  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5309  lt_cv_file_magic_cmd='$OBJDUMP -f'
5310  ;;
5311
5312darwin* | rhapsody*)
5313  lt_cv_deplibs_check_method=pass_all
5314  ;;
5315
5316freebsd* | dragonfly*)
5317  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318    case $host_cpu in
5319    i*86 )
5320      # Not sure whether the presence of OpenBSD here was a mistake.
5321      # Let's accept both of them until this is cleared up.
5322      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5323      lt_cv_file_magic_cmd=/usr/bin/file
5324      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5325      ;;
5326    esac
5327  else
5328    lt_cv_deplibs_check_method=pass_all
5329  fi
5330  ;;
5331
5332haiku*)
5333  lt_cv_deplibs_check_method=pass_all
5334  ;;
5335
5336hpux10.20* | hpux11*)
5337  lt_cv_file_magic_cmd=/usr/bin/file
5338  case $host_cpu in
5339  ia64*)
5340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5341    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5342    ;;
5343  hppa*64*)
5344    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]'
5345    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5346    ;;
5347  *)
5348    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5349    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5350    ;;
5351  esac
5352  ;;
5353
5354interix[3-9]*)
5355  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5356  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5357  ;;
5358
5359irix5* | irix6* | nonstopux*)
5360  case $LD in
5361  *-32|*"-32 ") libmagic=32-bit;;
5362  *-n32|*"-n32 ") libmagic=N32;;
5363  *-64|*"-64 ") libmagic=64-bit;;
5364  *) libmagic=never-match;;
5365  esac
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369# This must be glibc/ELF.
5370linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5371  lt_cv_deplibs_check_method=pass_all
5372  ;;
5373
5374netbsd* | netbsdelf*-gnu)
5375  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377  else
5378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5379  fi
5380  ;;
5381
5382newos6*)
5383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5384  lt_cv_file_magic_cmd=/usr/bin/file
5385  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5386  ;;
5387
5388*nto* | *qnx*)
5389  lt_cv_deplibs_check_method=pass_all
5390  ;;
5391
5392openbsd*)
5393  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5395  else
5396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397  fi
5398  ;;
5399
5400osf3* | osf4* | osf5*)
5401  lt_cv_deplibs_check_method=pass_all
5402  ;;
5403
5404rdos*)
5405  lt_cv_deplibs_check_method=pass_all
5406  ;;
5407
5408solaris*)
5409  lt_cv_deplibs_check_method=pass_all
5410  ;;
5411
5412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5413  lt_cv_deplibs_check_method=pass_all
5414  ;;
5415
5416sysv4 | sysv4.3*)
5417  case $host_vendor in
5418  motorola)
5419    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]'
5420    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5421    ;;
5422  ncr)
5423    lt_cv_deplibs_check_method=pass_all
5424    ;;
5425  sequent)
5426    lt_cv_file_magic_cmd='/bin/file'
5427    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5428    ;;
5429  sni)
5430    lt_cv_file_magic_cmd='/bin/file'
5431    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5432    lt_cv_file_magic_test_file=/lib/libc.so
5433    ;;
5434  siemens)
5435    lt_cv_deplibs_check_method=pass_all
5436    ;;
5437  pc)
5438    lt_cv_deplibs_check_method=pass_all
5439    ;;
5440  esac
5441  ;;
5442
5443tpf*)
5444  lt_cv_deplibs_check_method=pass_all
5445  ;;
5446esac
5447
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5450$as_echo "$lt_cv_deplibs_check_method" >&6; }
5451
5452file_magic_glob=
5453want_nocaseglob=no
5454if test "$build" = "$host"; then
5455  case $host_os in
5456  mingw* | pw32*)
5457    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5458      want_nocaseglob=yes
5459    else
5460      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5461    fi
5462    ;;
5463  esac
5464fi
5465
5466file_magic_cmd=$lt_cv_file_magic_cmd
5467deplibs_check_method=$lt_cv_deplibs_check_method
5468test -z "$deplibs_check_method" && deplibs_check_method=unknown
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491if test -n "$ac_tool_prefix"; then
5492  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5493set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495$as_echo_n "checking for $ac_word... " >&6; }
5496if ${ac_cv_prog_DLLTOOL+:} false; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  if test -n "$DLLTOOL"; then
5500  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507    for ac_exec_ext in '' $ac_executable_extensions; do
5508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511    break 2
5512  fi
5513done
5514  done
5515IFS=$as_save_IFS
5516
5517fi
5518fi
5519DLLTOOL=$ac_cv_prog_DLLTOOL
5520if test -n "$DLLTOOL"; then
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5522$as_echo "$DLLTOOL" >&6; }
5523else
5524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528
5529fi
5530if test -z "$ac_cv_prog_DLLTOOL"; then
5531  ac_ct_DLLTOOL=$DLLTOOL
5532  # Extract the first word of "dlltool", so it can be a program name with args.
5533set dummy dlltool; ac_word=$2
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535$as_echo_n "checking for $ac_word... " >&6; }
5536if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  if test -n "$ac_ct_DLLTOOL"; then
5540  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5541else
5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545  IFS=$as_save_IFS
5546  test -z "$as_dir" && as_dir=.
5547    for ac_exec_ext in '' $ac_executable_extensions; do
5548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551    break 2
5552  fi
5553done
5554  done
5555IFS=$as_save_IFS
5556
5557fi
5558fi
5559ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5560if test -n "$ac_ct_DLLTOOL"; then
5561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5562$as_echo "$ac_ct_DLLTOOL" >&6; }
5563else
5564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565$as_echo "no" >&6; }
5566fi
5567
5568  if test "x$ac_ct_DLLTOOL" = x; then
5569    DLLTOOL="false"
5570  else
5571    case $cross_compiling:$ac_tool_warned in
5572yes:)
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575ac_tool_warned=yes ;;
5576esac
5577    DLLTOOL=$ac_ct_DLLTOOL
5578  fi
5579else
5580  DLLTOOL="$ac_cv_prog_DLLTOOL"
5581fi
5582
5583test -z "$DLLTOOL" && DLLTOOL=dlltool
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5595$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5596if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  lt_cv_sharedlib_from_linklib_cmd='unknown'
5600
5601case $host_os in
5602cygwin* | mingw* | pw32* | cegcc*)
5603  # two different shell functions defined in ltmain.sh
5604  # decide which to use based on capabilities of $DLLTOOL
5605  case `$DLLTOOL --help 2>&1` in
5606  *--identify-strict*)
5607    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5608    ;;
5609  *)
5610    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5611    ;;
5612  esac
5613  ;;
5614*)
5615  # fallback: assume linklib IS sharedlib
5616  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5617  ;;
5618esac
5619
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5622$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5623sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5624test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5625
5626
5627
5628
5629
5630
5631
5632
5633if test -n "$ac_tool_prefix"; then
5634  for ac_prog in ar
5635  do
5636    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if ${ac_cv_prog_AR+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -n "$AR"; then
5644  ac_cv_prog_AR="$AR" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663AR=$ac_cv_prog_AR
5664if test -n "$AR"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5666$as_echo "$AR" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672
5673    test -n "$AR" && break
5674  done
5675fi
5676if test -z "$AR"; then
5677  ac_ct_AR=$AR
5678  for ac_prog in ar
5679do
5680  # Extract the first word of "$ac_prog", so it can be a program name with args.
5681set dummy $ac_prog; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
5684if ${ac_cv_prog_ac_ct_AR+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  if test -n "$ac_ct_AR"; then
5688  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693  IFS=$as_save_IFS
5694  test -z "$as_dir" && as_dir=.
5695    for ac_exec_ext in '' $ac_executable_extensions; do
5696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697    ac_cv_prog_ac_ct_AR="$ac_prog"
5698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699    break 2
5700  fi
5701done
5702  done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707ac_ct_AR=$ac_cv_prog_ac_ct_AR
5708if test -n "$ac_ct_AR"; then
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5710$as_echo "$ac_ct_AR" >&6; }
5711else
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716
5717  test -n "$ac_ct_AR" && break
5718done
5719
5720  if test "x$ac_ct_AR" = x; then
5721    AR="false"
5722  else
5723    case $cross_compiling:$ac_tool_warned in
5724yes:)
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727ac_tool_warned=yes ;;
5728esac
5729    AR=$ac_ct_AR
5730  fi
5731fi
5732
5733: ${AR=ar}
5734: ${AR_FLAGS=cru}
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5747$as_echo_n "checking for archiver @FILE support... " >&6; }
5748if ${lt_cv_ar_at_file+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  lt_cv_ar_at_file=no
5752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754
5755int
5756main ()
5757{
5758
5759  ;
5760  return 0;
5761}
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  echo conftest.$ac_objext > conftest.lst
5765      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5766      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5767  (eval $lt_ar_try) 2>&5
5768  ac_status=$?
5769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5770  test $ac_status = 0; }
5771      if test "$ac_status" -eq 0; then
5772	# Ensure the archiver fails upon bogus file names.
5773	rm -f conftest.$ac_objext libconftest.a
5774	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5775  (eval $lt_ar_try) 2>&5
5776  ac_status=$?
5777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778  test $ac_status = 0; }
5779	if test "$ac_status" -ne 0; then
5780          lt_cv_ar_at_file=@
5781        fi
5782      fi
5783      rm -f conftest.* libconftest.a
5784
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5790$as_echo "$lt_cv_ar_at_file" >&6; }
5791
5792if test "x$lt_cv_ar_at_file" = xno; then
5793  archiver_list_spec=
5794else
5795  archiver_list_spec=$lt_cv_ar_at_file
5796fi
5797
5798
5799
5800
5801
5802
5803
5804if test -n "$ac_tool_prefix"; then
5805  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5806set dummy ${ac_tool_prefix}strip; ac_word=$2
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808$as_echo_n "checking for $ac_word... " >&6; }
5809if ${ac_cv_prog_STRIP+:} false; then :
5810  $as_echo_n "(cached) " >&6
5811else
5812  if test -n "$STRIP"; then
5813  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5814else
5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816for as_dir in $PATH
5817do
5818  IFS=$as_save_IFS
5819  test -z "$as_dir" && as_dir=.
5820    for ac_exec_ext in '' $ac_executable_extensions; do
5821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824    break 2
5825  fi
5826done
5827  done
5828IFS=$as_save_IFS
5829
5830fi
5831fi
5832STRIP=$ac_cv_prog_STRIP
5833if test -n "$STRIP"; then
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5835$as_echo "$STRIP" >&6; }
5836else
5837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838$as_echo "no" >&6; }
5839fi
5840
5841
5842fi
5843if test -z "$ac_cv_prog_STRIP"; then
5844  ac_ct_STRIP=$STRIP
5845  # Extract the first word of "strip", so it can be a program name with args.
5846set dummy strip; ac_word=$2
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848$as_echo_n "checking for $ac_word... " >&6; }
5849if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  if test -n "$ac_ct_STRIP"; then
5853  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862    ac_cv_prog_ac_ct_STRIP="strip"
5863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864    break 2
5865  fi
5866done
5867  done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5873if test -n "$ac_ct_STRIP"; then
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5875$as_echo "$ac_ct_STRIP" >&6; }
5876else
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881  if test "x$ac_ct_STRIP" = x; then
5882    STRIP=":"
5883  else
5884    case $cross_compiling:$ac_tool_warned in
5885yes:)
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888ac_tool_warned=yes ;;
5889esac
5890    STRIP=$ac_ct_STRIP
5891  fi
5892else
5893  STRIP="$ac_cv_prog_STRIP"
5894fi
5895
5896test -z "$STRIP" && STRIP=:
5897
5898
5899
5900
5901
5902
5903if test -n "$ac_tool_prefix"; then
5904  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if ${ac_cv_prog_RANLIB+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911  if test -n "$RANLIB"; then
5912  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917  IFS=$as_save_IFS
5918  test -z "$as_dir" && as_dir=.
5919    for ac_exec_ext in '' $ac_executable_extensions; do
5920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923    break 2
5924  fi
5925done
5926  done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931RANLIB=$ac_cv_prog_RANLIB
5932if test -n "$RANLIB"; then
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5934$as_echo "$RANLIB" >&6; }
5935else
5936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941fi
5942if test -z "$ac_cv_prog_RANLIB"; then
5943  ac_ct_RANLIB=$RANLIB
5944  # Extract the first word of "ranlib", so it can be a program name with args.
5945set dummy ranlib; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$ac_ct_RANLIB"; then
5952  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961    ac_cv_prog_ac_ct_RANLIB="ranlib"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972if test -n "$ac_ct_RANLIB"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5974$as_echo "$ac_ct_RANLIB" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980  if test "x$ac_ct_RANLIB" = x; then
5981    RANLIB=":"
5982  else
5983    case $cross_compiling:$ac_tool_warned in
5984yes:)
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987ac_tool_warned=yes ;;
5988esac
5989    RANLIB=$ac_ct_RANLIB
5990  fi
5991else
5992  RANLIB="$ac_cv_prog_RANLIB"
5993fi
5994
5995test -z "$RANLIB" && RANLIB=:
5996
5997
5998
5999
6000
6001
6002# Determine commands to create old-style static archives.
6003old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6004old_postinstall_cmds='chmod 644 $oldlib'
6005old_postuninstall_cmds=
6006
6007if test -n "$RANLIB"; then
6008  case $host_os in
6009  openbsd*)
6010    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6011    ;;
6012  *)
6013    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6014    ;;
6015  esac
6016  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6017fi
6018
6019case $host_os in
6020  darwin*)
6021    lock_old_archive_extraction=yes ;;
6022  *)
6023    lock_old_archive_extraction=no ;;
6024esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064# If no C compiler was specified, use CC.
6065LTCC=${LTCC-"$CC"}
6066
6067# If no C compiler flags were specified, use CFLAGS.
6068LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6069
6070# Allow CC to be a program name with arguments.
6071compiler=$CC
6072
6073
6074# Check for command to grab the raw symbol name followed by C symbol from nm.
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6076$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6077if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080
6081# These are sane defaults that work on at least a few old systems.
6082# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6083
6084# Character class describing NM global symbol codes.
6085symcode='[BCDEGRST]'
6086
6087# Regexp to match symbols that can be accessed directly from C.
6088sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6089
6090# Define system-specific variables.
6091case $host_os in
6092aix*)
6093  symcode='[BCDT]'
6094  ;;
6095cygwin* | mingw* | pw32* | cegcc*)
6096  symcode='[ABCDGISTW]'
6097  ;;
6098hpux*)
6099  if test "$host_cpu" = ia64; then
6100    symcode='[ABCDEGRST]'
6101  fi
6102  ;;
6103irix* | nonstopux*)
6104  symcode='[BCDEGRST]'
6105  ;;
6106osf*)
6107  symcode='[BCDEGQRST]'
6108  ;;
6109solaris*)
6110  symcode='[BDRT]'
6111  ;;
6112sco3.2v5*)
6113  symcode='[DT]'
6114  ;;
6115sysv4.2uw2*)
6116  symcode='[DT]'
6117  ;;
6118sysv5* | sco5v6* | unixware* | OpenUNIX*)
6119  symcode='[ABDT]'
6120  ;;
6121sysv4)
6122  symcode='[DFNSTU]'
6123  ;;
6124esac
6125
6126# If we're using GNU nm, then use its standard symbol codes.
6127case `$NM -V 2>&1` in
6128*GNU* | *'with BFD'*)
6129  symcode='[ABCDGIRSTW]' ;;
6130esac
6131
6132# Transform an extracted symbol line into a proper C declaration.
6133# Some systems (esp. on ia64) link data and code symbols differently,
6134# so use this general approach.
6135lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6136
6137# Transform an extracted symbol line into symbol name and symbol address
6138lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6139lt_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'"
6140
6141# Handle CRLF in mingw tool chain
6142opt_cr=
6143case $build_os in
6144mingw*)
6145  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6146  ;;
6147esac
6148
6149# Try without a prefix underscore, then with it.
6150for ac_symprfx in "" "_"; do
6151
6152  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6153  symxfrm="\\1 $ac_symprfx\\2 \\2"
6154
6155  # Write the raw and C identifiers.
6156  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6157    # Fake it for dumpbin and say T for any non-static function
6158    # and D for any global variable.
6159    # Also find C++ and __fastcall symbols from MSVC++,
6160    # which start with @ or ?.
6161    lt_cv_sys_global_symbol_pipe="$AWK '"\
6162"     {last_section=section; section=\$ 3};"\
6163"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6164"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165"     \$ 0!~/External *\|/{next};"\
6166"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6167"     {if(hide[section]) next};"\
6168"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6169"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6170"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6171"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6172"     ' prfx=^$ac_symprfx"
6173  else
6174    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6175  fi
6176  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6177
6178  # Check to see that the pipe works correctly.
6179  pipe_works=no
6180
6181  rm -f conftest*
6182  cat > conftest.$ac_ext <<_LT_EOF
6183#ifdef __cplusplus
6184extern "C" {
6185#endif
6186char nm_test_var;
6187void nm_test_func(void);
6188void nm_test_func(void){}
6189#ifdef __cplusplus
6190}
6191#endif
6192int main(){nm_test_var='a';nm_test_func();return(0);}
6193_LT_EOF
6194
6195  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6196  (eval $ac_compile) 2>&5
6197  ac_status=$?
6198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199  test $ac_status = 0; }; then
6200    # Now try to grab the symbols.
6201    nlist=conftest.nm
6202    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6203  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6204  ac_status=$?
6205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206  test $ac_status = 0; } && test -s "$nlist"; then
6207      # Try sorting and uniquifying the output.
6208      if sort "$nlist" | uniq > "$nlist"T; then
6209	mv -f "$nlist"T "$nlist"
6210      else
6211	rm -f "$nlist"T
6212      fi
6213
6214      # Make sure that we snagged all the symbols we need.
6215      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6216	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6217	  cat <<_LT_EOF > conftest.$ac_ext
6218/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6219#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6220/* DATA imports from DLLs on WIN32 con't be const, because runtime
6221   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6222# define LT_DLSYM_CONST
6223#elif defined(__osf__)
6224/* This system does not cope well with relocations in const data.  */
6225# define LT_DLSYM_CONST
6226#else
6227# define LT_DLSYM_CONST const
6228#endif
6229
6230#ifdef __cplusplus
6231extern "C" {
6232#endif
6233
6234_LT_EOF
6235	  # Now generate the symbol file.
6236	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6237
6238	  cat <<_LT_EOF >> conftest.$ac_ext
6239
6240/* The mapping between symbol names and symbols.  */
6241LT_DLSYM_CONST struct {
6242  const char *name;
6243  void       *address;
6244}
6245lt__PROGRAM__LTX_preloaded_symbols[] =
6246{
6247  { "@PROGRAM@", (void *) 0 },
6248_LT_EOF
6249	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6250	  cat <<\_LT_EOF >> conftest.$ac_ext
6251  {0, (void *) 0}
6252};
6253
6254/* This works around a problem in FreeBSD linker */
6255#ifdef FREEBSD_WORKAROUND
6256static const void *lt_preloaded_setup() {
6257  return lt__PROGRAM__LTX_preloaded_symbols;
6258}
6259#endif
6260
6261#ifdef __cplusplus
6262}
6263#endif
6264_LT_EOF
6265	  # Now try linking the two files.
6266	  mv conftest.$ac_objext conftstm.$ac_objext
6267	  lt_globsym_save_LIBS=$LIBS
6268	  lt_globsym_save_CFLAGS=$CFLAGS
6269	  LIBS="conftstm.$ac_objext"
6270	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6271	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6272  (eval $ac_link) 2>&5
6273  ac_status=$?
6274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6276	    pipe_works=yes
6277	  fi
6278	  LIBS=$lt_globsym_save_LIBS
6279	  CFLAGS=$lt_globsym_save_CFLAGS
6280	else
6281	  echo "cannot find nm_test_func in $nlist" >&5
6282	fi
6283      else
6284	echo "cannot find nm_test_var in $nlist" >&5
6285      fi
6286    else
6287      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6288    fi
6289  else
6290    echo "$progname: failed program was:" >&5
6291    cat conftest.$ac_ext >&5
6292  fi
6293  rm -rf conftest* conftst*
6294
6295  # Do not use the global_symbol_pipe unless it works.
6296  if test "$pipe_works" = yes; then
6297    break
6298  else
6299    lt_cv_sys_global_symbol_pipe=
6300  fi
6301done
6302
6303fi
6304
6305if test -z "$lt_cv_sys_global_symbol_pipe"; then
6306  lt_cv_sys_global_symbol_to_cdecl=
6307fi
6308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6310$as_echo "failed" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6313$as_echo "ok" >&6; }
6314fi
6315
6316# Response file support.
6317if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6318  nm_file_list_spec='@'
6319elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6320  nm_file_list_spec='@'
6321fi
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6350$as_echo_n "checking for sysroot... " >&6; }
6351
6352# Check whether --with-sysroot was given.
6353if test "${with_sysroot+set}" = set; then :
6354  withval=$with_sysroot;
6355else
6356  with_sysroot=no
6357fi
6358
6359
6360lt_sysroot=
6361case ${with_sysroot} in #(
6362 yes)
6363   if test "$GCC" = yes; then
6364     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6365   fi
6366   ;; #(
6367 /*)
6368   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6369   ;; #(
6370 no|'')
6371   ;; #(
6372 *)
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6374$as_echo "${with_sysroot}" >&6; }
6375   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6376   ;;
6377esac
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6380$as_echo "${lt_sysroot:-no}" >&6; }
6381
6382
6383
6384
6385
6386# Check whether --enable-libtool-lock was given.
6387if test "${enable_libtool_lock+set}" = set; then :
6388  enableval=$enable_libtool_lock;
6389fi
6390
6391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6392
6393# Some flags need to be propagated to the compiler or linker for good
6394# libtool support.
6395case $host in
6396ia64-*-hpux*)
6397  # Find out which ABI we are using.
6398  echo 'int i;' > conftest.$ac_ext
6399  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6400  (eval $ac_compile) 2>&5
6401  ac_status=$?
6402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403  test $ac_status = 0; }; then
6404    case `/usr/bin/file conftest.$ac_objext` in
6405      *ELF-32*)
6406	HPUX_IA64_MODE="32"
6407	;;
6408      *ELF-64*)
6409	HPUX_IA64_MODE="64"
6410	;;
6411    esac
6412  fi
6413  rm -rf conftest*
6414  ;;
6415*-*-irix6*)
6416  # Find out which ABI we are using.
6417  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419  (eval $ac_compile) 2>&5
6420  ac_status=$?
6421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422  test $ac_status = 0; }; then
6423    if test "$lt_cv_prog_gnu_ld" = yes; then
6424      case `/usr/bin/file conftest.$ac_objext` in
6425	*32-bit*)
6426	  LD="${LD-ld} -melf32bsmip"
6427	  ;;
6428	*N32*)
6429	  LD="${LD-ld} -melf32bmipn32"
6430	  ;;
6431	*64-bit*)
6432	  LD="${LD-ld} -melf64bmip"
6433	;;
6434      esac
6435    else
6436      case `/usr/bin/file conftest.$ac_objext` in
6437	*32-bit*)
6438	  LD="${LD-ld} -32"
6439	  ;;
6440	*N32*)
6441	  LD="${LD-ld} -n32"
6442	  ;;
6443	*64-bit*)
6444	  LD="${LD-ld} -64"
6445	  ;;
6446      esac
6447    fi
6448  fi
6449  rm -rf conftest*
6450  ;;
6451
6452x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6453s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6454  # Find out which ABI we are using.
6455  echo 'int i;' > conftest.$ac_ext
6456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457  (eval $ac_compile) 2>&5
6458  ac_status=$?
6459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460  test $ac_status = 0; }; then
6461    case `/usr/bin/file conftest.o` in
6462      *32-bit*)
6463	case $host in
6464	  x86_64-*kfreebsd*-gnu)
6465	    LD="${LD-ld} -m elf_i386_fbsd"
6466	    ;;
6467	  x86_64-*linux*)
6468	    case `/usr/bin/file conftest.o` in
6469	      *x86-64*)
6470		LD="${LD-ld} -m elf32_x86_64"
6471		;;
6472	      *)
6473		LD="${LD-ld} -m elf_i386"
6474		;;
6475	    esac
6476	    ;;
6477	  ppc64-*linux*|powerpc64-*linux*)
6478	    LD="${LD-ld} -m elf32ppclinux"
6479	    ;;
6480	  s390x-*linux*)
6481	    LD="${LD-ld} -m elf_s390"
6482	    ;;
6483	  sparc64-*linux*)
6484	    LD="${LD-ld} -m elf32_sparc"
6485	    ;;
6486	esac
6487	;;
6488      *64-bit*)
6489	case $host in
6490	  x86_64-*kfreebsd*-gnu)
6491	    LD="${LD-ld} -m elf_x86_64_fbsd"
6492	    ;;
6493	  x86_64-*linux*)
6494	    LD="${LD-ld} -m elf_x86_64"
6495	    ;;
6496	  ppc*-*linux*|powerpc*-*linux*)
6497	    LD="${LD-ld} -m elf64ppc"
6498	    ;;
6499	  s390*-*linux*|s390*-*tpf*)
6500	    LD="${LD-ld} -m elf64_s390"
6501	    ;;
6502	  sparc*-*linux*)
6503	    LD="${LD-ld} -m elf64_sparc"
6504	    ;;
6505	esac
6506	;;
6507    esac
6508  fi
6509  rm -rf conftest*
6510  ;;
6511
6512*-*-sco3.2v5*)
6513  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6514  SAVE_CFLAGS="$CFLAGS"
6515  CFLAGS="$CFLAGS -belf"
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6517$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6518if ${lt_cv_cc_needs_belf+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  ac_ext=c
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
6527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529
6530int
6531main ()
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_link "$LINENO"; then :
6539  lt_cv_cc_needs_belf=yes
6540else
6541  lt_cv_cc_needs_belf=no
6542fi
6543rm -f core conftest.err conftest.$ac_objext \
6544    conftest$ac_exeext conftest.$ac_ext
6545     ac_ext=c
6546ac_cpp='$CPP $CPPFLAGS'
6547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550
6551fi
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6553$as_echo "$lt_cv_cc_needs_belf" >&6; }
6554  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6555    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6556    CFLAGS="$SAVE_CFLAGS"
6557  fi
6558  ;;
6559*-*solaris*)
6560  # Find out which ABI we are using.
6561  echo 'int i;' > conftest.$ac_ext
6562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566  test $ac_status = 0; }; then
6567    case `/usr/bin/file conftest.o` in
6568    *64-bit*)
6569      case $lt_cv_prog_gnu_ld in
6570      yes*)
6571        case $host in
6572        i?86-*-solaris*)
6573          LD="${LD-ld} -m elf_x86_64"
6574          ;;
6575        sparc*-*-solaris*)
6576          LD="${LD-ld} -m elf64_sparc"
6577          ;;
6578        esac
6579        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6580        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6581          LD="${LD-ld}_sol2"
6582        fi
6583        ;;
6584      *)
6585	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6586	  LD="${LD-ld} -64"
6587	fi
6588	;;
6589      esac
6590      ;;
6591    esac
6592  fi
6593  rm -rf conftest*
6594  ;;
6595esac
6596
6597need_locks="$enable_libtool_lock"
6598
6599if test -n "$ac_tool_prefix"; then
6600  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6601set dummy ${ac_tool_prefix}mt; ac_word=$2
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
6604if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  if test -n "$MANIFEST_TOOL"; then
6608  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613  IFS=$as_save_IFS
6614  test -z "$as_dir" && as_dir=.
6615    for ac_exec_ext in '' $ac_executable_extensions; do
6616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619    break 2
6620  fi
6621done
6622  done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6628if test -n "$MANIFEST_TOOL"; then
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6630$as_echo "$MANIFEST_TOOL" >&6; }
6631else
6632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636
6637fi
6638if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6639  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6640  # Extract the first word of "mt", so it can be a program name with args.
6641set dummy mt; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  if test -n "$ac_ct_MANIFEST_TOOL"; then
6648  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653  IFS=$as_save_IFS
6654  test -z "$as_dir" && as_dir=.
6655    for ac_exec_ext in '' $ac_executable_extensions; do
6656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659    break 2
6660  fi
6661done
6662  done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6668if test -n "$ac_ct_MANIFEST_TOOL"; then
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6670$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6671else
6672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6677    MANIFEST_TOOL=":"
6678  else
6679    case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683ac_tool_warned=yes ;;
6684esac
6685    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6686  fi
6687else
6688  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6689fi
6690
6691test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6693$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6694if ${lt_cv_path_mainfest_tool+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  lt_cv_path_mainfest_tool=no
6698  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6699  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6700  cat conftest.err >&5
6701  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6702    lt_cv_path_mainfest_tool=yes
6703  fi
6704  rm -f conftest*
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6707$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6708if test "x$lt_cv_path_mainfest_tool" != xyes; then
6709  MANIFEST_TOOL=:
6710fi
6711
6712
6713
6714
6715
6716
6717  case $host_os in
6718    rhapsody* | darwin*)
6719    if test -n "$ac_tool_prefix"; then
6720  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6721set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
6724if ${ac_cv_prog_DSYMUTIL+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  if test -n "$DSYMUTIL"; then
6728  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735    for ac_exec_ext in '' $ac_executable_extensions; do
6736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742  done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747DSYMUTIL=$ac_cv_prog_DSYMUTIL
6748if test -n "$DSYMUTIL"; then
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6750$as_echo "$DSYMUTIL" >&6; }
6751else
6752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756
6757fi
6758if test -z "$ac_cv_prog_DSYMUTIL"; then
6759  ac_ct_DSYMUTIL=$DSYMUTIL
6760  # Extract the first word of "dsymutil", so it can be a program name with args.
6761set dummy dsymutil; ac_word=$2
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6765  $as_echo_n "(cached) " >&6
6766else
6767  if test -n "$ac_ct_DSYMUTIL"; then
6768  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773  IFS=$as_save_IFS
6774  test -z "$as_dir" && as_dir=.
6775    for ac_exec_ext in '' $ac_executable_extensions; do
6776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779    break 2
6780  fi
6781done
6782  done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6788if test -n "$ac_ct_DSYMUTIL"; then
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6790$as_echo "$ac_ct_DSYMUTIL" >&6; }
6791else
6792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
6794fi
6795
6796  if test "x$ac_ct_DSYMUTIL" = x; then
6797    DSYMUTIL=":"
6798  else
6799    case $cross_compiling:$ac_tool_warned in
6800yes:)
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803ac_tool_warned=yes ;;
6804esac
6805    DSYMUTIL=$ac_ct_DSYMUTIL
6806  fi
6807else
6808  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6809fi
6810
6811    if test -n "$ac_tool_prefix"; then
6812  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
6816if ${ac_cv_prog_NMEDIT+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  if test -n "$NMEDIT"; then
6820  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827    for ac_exec_ext in '' $ac_executable_extensions; do
6828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834  done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839NMEDIT=$ac_cv_prog_NMEDIT
6840if test -n "$NMEDIT"; then
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6842$as_echo "$NMEDIT" >&6; }
6843else
6844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848
6849fi
6850if test -z "$ac_cv_prog_NMEDIT"; then
6851  ac_ct_NMEDIT=$NMEDIT
6852  # Extract the first word of "nmedit", so it can be a program name with args.
6853set dummy nmedit; ac_word=$2
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855$as_echo_n "checking for $ac_word... " >&6; }
6856if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6857  $as_echo_n "(cached) " >&6
6858else
6859  if test -n "$ac_ct_NMEDIT"; then
6860  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865  IFS=$as_save_IFS
6866  test -z "$as_dir" && as_dir=.
6867    for ac_exec_ext in '' $ac_executable_extensions; do
6868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871    break 2
6872  fi
6873done
6874  done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6880if test -n "$ac_ct_NMEDIT"; then
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6882$as_echo "$ac_ct_NMEDIT" >&6; }
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888  if test "x$ac_ct_NMEDIT" = x; then
6889    NMEDIT=":"
6890  else
6891    case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895ac_tool_warned=yes ;;
6896esac
6897    NMEDIT=$ac_ct_NMEDIT
6898  fi
6899else
6900  NMEDIT="$ac_cv_prog_NMEDIT"
6901fi
6902
6903    if test -n "$ac_tool_prefix"; then
6904  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6905set dummy ${ac_tool_prefix}lipo; ac_word=$2
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907$as_echo_n "checking for $ac_word... " >&6; }
6908if ${ac_cv_prog_LIPO+:} false; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  if test -n "$LIPO"; then
6912  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917  IFS=$as_save_IFS
6918  test -z "$as_dir" && as_dir=.
6919    for ac_exec_ext in '' $ac_executable_extensions; do
6920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923    break 2
6924  fi
6925done
6926  done
6927IFS=$as_save_IFS
6928
6929fi
6930fi
6931LIPO=$ac_cv_prog_LIPO
6932if test -n "$LIPO"; then
6933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6934$as_echo "$LIPO" >&6; }
6935else
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937$as_echo "no" >&6; }
6938fi
6939
6940
6941fi
6942if test -z "$ac_cv_prog_LIPO"; then
6943  ac_ct_LIPO=$LIPO
6944  # Extract the first word of "lipo", so it can be a program name with args.
6945set dummy lipo; ac_word=$2
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947$as_echo_n "checking for $ac_word... " >&6; }
6948if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6949  $as_echo_n "(cached) " >&6
6950else
6951  if test -n "$ac_ct_LIPO"; then
6952  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957  IFS=$as_save_IFS
6958  test -z "$as_dir" && as_dir=.
6959    for ac_exec_ext in '' $ac_executable_extensions; do
6960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961    ac_cv_prog_ac_ct_LIPO="lipo"
6962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963    break 2
6964  fi
6965done
6966  done
6967IFS=$as_save_IFS
6968
6969fi
6970fi
6971ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6972if test -n "$ac_ct_LIPO"; then
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6974$as_echo "$ac_ct_LIPO" >&6; }
6975else
6976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977$as_echo "no" >&6; }
6978fi
6979
6980  if test "x$ac_ct_LIPO" = x; then
6981    LIPO=":"
6982  else
6983    case $cross_compiling:$ac_tool_warned in
6984yes:)
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987ac_tool_warned=yes ;;
6988esac
6989    LIPO=$ac_ct_LIPO
6990  fi
6991else
6992  LIPO="$ac_cv_prog_LIPO"
6993fi
6994
6995    if test -n "$ac_tool_prefix"; then
6996  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6997set dummy ${ac_tool_prefix}otool; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
7000if ${ac_cv_prog_OTOOL+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  if test -n "$OTOOL"; then
7004  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009  IFS=$as_save_IFS
7010  test -z "$as_dir" && as_dir=.
7011    for ac_exec_ext in '' $ac_executable_extensions; do
7012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015    break 2
7016  fi
7017done
7018  done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
7023OTOOL=$ac_cv_prog_OTOOL
7024if test -n "$OTOOL"; then
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7026$as_echo "$OTOOL" >&6; }
7027else
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032
7033fi
7034if test -z "$ac_cv_prog_OTOOL"; then
7035  ac_ct_OTOOL=$OTOOL
7036  # Extract the first word of "otool", so it can be a program name with args.
7037set dummy otool; ac_word=$2
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039$as_echo_n "checking for $ac_word... " >&6; }
7040if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  if test -n "$ac_ct_OTOOL"; then
7044  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049  IFS=$as_save_IFS
7050  test -z "$as_dir" && as_dir=.
7051    for ac_exec_ext in '' $ac_executable_extensions; do
7052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053    ac_cv_prog_ac_ct_OTOOL="otool"
7054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055    break 2
7056  fi
7057done
7058  done
7059IFS=$as_save_IFS
7060
7061fi
7062fi
7063ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7064if test -n "$ac_ct_OTOOL"; then
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7066$as_echo "$ac_ct_OTOOL" >&6; }
7067else
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069$as_echo "no" >&6; }
7070fi
7071
7072  if test "x$ac_ct_OTOOL" = x; then
7073    OTOOL=":"
7074  else
7075    case $cross_compiling:$ac_tool_warned in
7076yes:)
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079ac_tool_warned=yes ;;
7080esac
7081    OTOOL=$ac_ct_OTOOL
7082  fi
7083else
7084  OTOOL="$ac_cv_prog_OTOOL"
7085fi
7086
7087    if test -n "$ac_tool_prefix"; then
7088  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}otool64; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_OTOOL64+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -n "$OTOOL64"; then
7096  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103    for ac_exec_ext in '' $ac_executable_extensions; do
7104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110  done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115OTOOL64=$ac_cv_prog_OTOOL64
7116if test -n "$OTOOL64"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7118$as_echo "$OTOOL64" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_OTOOL64"; then
7127  ac_ct_OTOOL64=$OTOOL64
7128  # Extract the first word of "otool64", so it can be a program name with args.
7129set dummy otool64; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  if test -n "$ac_ct_OTOOL64"; then
7136  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145    ac_cv_prog_ac_ct_OTOOL64="otool64"
7146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150  done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7156if test -n "$ac_ct_OTOOL64"; then
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7158$as_echo "$ac_ct_OTOOL64" >&6; }
7159else
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164  if test "x$ac_ct_OTOOL64" = x; then
7165    OTOOL64=":"
7166  else
7167    case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171ac_tool_warned=yes ;;
7172esac
7173    OTOOL64=$ac_ct_OTOOL64
7174  fi
7175else
7176  OTOOL64="$ac_cv_prog_OTOOL64"
7177fi
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7206$as_echo_n "checking for -single_module linker flag... " >&6; }
7207if ${lt_cv_apple_cc_single_mod+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  lt_cv_apple_cc_single_mod=no
7211      if test -z "${LT_MULTI_MODULE}"; then
7212	# By default we will add the -single_module flag. You can override
7213	# by either setting the environment variable LT_MULTI_MODULE
7214	# non-empty at configure time, or by adding -multi_module to the
7215	# link flags.
7216	rm -rf libconftest.dylib*
7217	echo "int foo(void){return 1;}" > conftest.c
7218	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7219-dynamiclib -Wl,-single_module conftest.c" >&5
7220	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7221	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7222        _lt_result=$?
7223	# If there is a non-empty error log, and "single_module"
7224	# appears in it, assume the flag caused a linker warning
7225        if test -s conftest.err && $GREP single_module conftest.err; then
7226	  cat conftest.err >&5
7227	# Otherwise, if the output was created with a 0 exit code from
7228	# the compiler, it worked.
7229	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7230	  lt_cv_apple_cc_single_mod=yes
7231	else
7232	  cat conftest.err >&5
7233	fi
7234	rm -rf libconftest.dylib*
7235	rm -f conftest.*
7236      fi
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7239$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7240
7241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7242$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7243if ${lt_cv_ld_exported_symbols_list+:} false; then :
7244  $as_echo_n "(cached) " >&6
7245else
7246  lt_cv_ld_exported_symbols_list=no
7247      save_LDFLAGS=$LDFLAGS
7248      echo "_main" > conftest.sym
7249      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7250      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252
7253int
7254main ()
7255{
7256
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_link "$LINENO"; then :
7262  lt_cv_ld_exported_symbols_list=yes
7263else
7264  lt_cv_ld_exported_symbols_list=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext \
7267    conftest$ac_exeext conftest.$ac_ext
7268	LDFLAGS="$save_LDFLAGS"
7269
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7272$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7273
7274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7275$as_echo_n "checking for -force_load linker flag... " >&6; }
7276if ${lt_cv_ld_force_load+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  lt_cv_ld_force_load=no
7280      cat > conftest.c << _LT_EOF
7281int forced_loaded() { return 2;}
7282_LT_EOF
7283      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7284      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7285      echo "$AR cru libconftest.a conftest.o" >&5
7286      $AR cru libconftest.a conftest.o 2>&5
7287      echo "$RANLIB libconftest.a" >&5
7288      $RANLIB libconftest.a 2>&5
7289      cat > conftest.c << _LT_EOF
7290int main() { return 0;}
7291_LT_EOF
7292      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7293      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7294      _lt_result=$?
7295      if test -s conftest.err && $GREP force_load conftest.err; then
7296	cat conftest.err >&5
7297      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7298	lt_cv_ld_force_load=yes
7299      else
7300	cat conftest.err >&5
7301      fi
7302        rm -f conftest.err libconftest.a conftest conftest.c
7303        rm -rf conftest.dSYM
7304
7305fi
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7307$as_echo "$lt_cv_ld_force_load" >&6; }
7308    case $host_os in
7309    rhapsody* | darwin1.[012])
7310      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7311    darwin1.*)
7312      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7313    darwin*) # darwin 5.x on
7314      # if running on 10.5 or later, the deployment target defaults
7315      # to the OS version, if on x86, and 10.4, the deployment
7316      # target defaults to 10.4. Don't you love it?
7317      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7318	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7319	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7320	10.[012]*)
7321	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322	10.*)
7323	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7324      esac
7325    ;;
7326  esac
7327    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7328      _lt_dar_single_mod='$single_module'
7329    fi
7330    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7331      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7332    else
7333      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7334    fi
7335    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7336      _lt_dsymutil='~$DSYMUTIL $lib || :'
7337    else
7338      _lt_dsymutil=
7339    fi
7340    ;;
7341  esac
7342
7343ac_ext=c
7344ac_cpp='$CPP $CPPFLAGS'
7345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7349$as_echo_n "checking how to run the C preprocessor... " >&6; }
7350# On Suns, sometimes $CPP names a directory.
7351if test -n "$CPP" && test -d "$CPP"; then
7352  CPP=
7353fi
7354if test -z "$CPP"; then
7355  if ${ac_cv_prog_CPP+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358      # Double quotes because CPP needs to be expanded
7359    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7360    do
7361      ac_preproc_ok=false
7362for ac_c_preproc_warn_flag in '' yes
7363do
7364  # Use a header file that comes with gcc, so configuring glibc
7365  # with a fresh cross-compiler works.
7366  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367  # <limits.h> exists even on freestanding compilers.
7368  # On the NeXT, cc -E runs the code through the compiler's parser,
7369  # not just through cpp. "Syntax error" is here to catch this case.
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372#ifdef __STDC__
7373# include <limits.h>
7374#else
7375# include <assert.h>
7376#endif
7377		     Syntax error
7378_ACEOF
7379if ac_fn_c_try_cpp "$LINENO"; then :
7380
7381else
7382  # Broken: fails on valid input.
7383continue
7384fi
7385rm -f conftest.err conftest.i conftest.$ac_ext
7386
7387  # OK, works on sane cases.  Now check whether nonexistent headers
7388  # can be detected and how.
7389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391#include <ac_nonexistent.h>
7392_ACEOF
7393if ac_fn_c_try_cpp "$LINENO"; then :
7394  # Broken: success on invalid input.
7395continue
7396else
7397  # Passes both tests.
7398ac_preproc_ok=:
7399break
7400fi
7401rm -f conftest.err conftest.i conftest.$ac_ext
7402
7403done
7404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405rm -f conftest.i conftest.err conftest.$ac_ext
7406if $ac_preproc_ok; then :
7407  break
7408fi
7409
7410    done
7411    ac_cv_prog_CPP=$CPP
7412
7413fi
7414  CPP=$ac_cv_prog_CPP
7415else
7416  ac_cv_prog_CPP=$CPP
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7419$as_echo "$CPP" >&6; }
7420ac_preproc_ok=false
7421for ac_c_preproc_warn_flag in '' yes
7422do
7423  # Use a header file that comes with gcc, so configuring glibc
7424  # with a fresh cross-compiler works.
7425  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426  # <limits.h> exists even on freestanding compilers.
7427  # On the NeXT, cc -E runs the code through the compiler's parser,
7428  # not just through cpp. "Syntax error" is here to catch this case.
7429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h.  */
7431#ifdef __STDC__
7432# include <limits.h>
7433#else
7434# include <assert.h>
7435#endif
7436		     Syntax error
7437_ACEOF
7438if ac_fn_c_try_cpp "$LINENO"; then :
7439
7440else
7441  # Broken: fails on valid input.
7442continue
7443fi
7444rm -f conftest.err conftest.i conftest.$ac_ext
7445
7446  # OK, works on sane cases.  Now check whether nonexistent headers
7447  # can be detected and how.
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450#include <ac_nonexistent.h>
7451_ACEOF
7452if ac_fn_c_try_cpp "$LINENO"; then :
7453  # Broken: success on invalid input.
7454continue
7455else
7456  # Passes both tests.
7457ac_preproc_ok=:
7458break
7459fi
7460rm -f conftest.err conftest.i conftest.$ac_ext
7461
7462done
7463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464rm -f conftest.i conftest.err conftest.$ac_ext
7465if $ac_preproc_ok; then :
7466
7467else
7468  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7470as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7471See \`config.log' for more details" "$LINENO" 5; }
7472fi
7473
7474ac_ext=c
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479
7480
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7482$as_echo_n "checking for ANSI C header files... " >&6; }
7483if ${ac_cv_header_stdc+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488#include <stdlib.h>
7489#include <stdarg.h>
7490#include <string.h>
7491#include <float.h>
7492
7493int
7494main ()
7495{
7496
7497  ;
7498  return 0;
7499}
7500_ACEOF
7501if ac_fn_c_try_compile "$LINENO"; then :
7502  ac_cv_header_stdc=yes
7503else
7504  ac_cv_header_stdc=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507
7508if test $ac_cv_header_stdc = yes; then
7509  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512#include <string.h>
7513
7514_ACEOF
7515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516  $EGREP "memchr" >/dev/null 2>&1; then :
7517
7518else
7519  ac_cv_header_stdc=no
7520fi
7521rm -f conftest*
7522
7523fi
7524
7525if test $ac_cv_header_stdc = yes; then
7526  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529#include <stdlib.h>
7530
7531_ACEOF
7532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533  $EGREP "free" >/dev/null 2>&1; then :
7534
7535else
7536  ac_cv_header_stdc=no
7537fi
7538rm -f conftest*
7539
7540fi
7541
7542if test $ac_cv_header_stdc = yes; then
7543  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7544  if test "$cross_compiling" = yes; then :
7545  :
7546else
7547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549#include <ctype.h>
7550#include <stdlib.h>
7551#if ((' ' & 0x0FF) == 0x020)
7552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7554#else
7555# define ISLOWER(c) \
7556		   (('a' <= (c) && (c) <= 'i') \
7557		     || ('j' <= (c) && (c) <= 'r') \
7558		     || ('s' <= (c) && (c) <= 'z'))
7559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7560#endif
7561
7562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7563int
7564main ()
7565{
7566  int i;
7567  for (i = 0; i < 256; i++)
7568    if (XOR (islower (i), ISLOWER (i))
7569	|| toupper (i) != TOUPPER (i))
7570      return 2;
7571  return 0;
7572}
7573_ACEOF
7574if ac_fn_c_try_run "$LINENO"; then :
7575
7576else
7577  ac_cv_header_stdc=no
7578fi
7579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7580  conftest.$ac_objext conftest.beam conftest.$ac_ext
7581fi
7582
7583fi
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7586$as_echo "$ac_cv_header_stdc" >&6; }
7587if test $ac_cv_header_stdc = yes; then
7588
7589$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7590
7591fi
7592
7593# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7594for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7595		  inttypes.h stdint.h unistd.h
7596do :
7597  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7599"
7600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7601  cat >>confdefs.h <<_ACEOF
7602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7603_ACEOF
7604
7605fi
7606
7607done
7608
7609
7610for ac_header in dlfcn.h
7611do :
7612  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7613"
7614if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7615  cat >>confdefs.h <<_ACEOF
7616#define HAVE_DLFCN_H 1
7617_ACEOF
7618
7619fi
7620
7621done
7622
7623
7624
7625
7626
7627# Set options
7628
7629
7630
7631        enable_dlopen=no
7632
7633
7634  enable_win32_dll=no
7635
7636
7637            # Check whether --enable-shared was given.
7638if test "${enable_shared+set}" = set; then :
7639  enableval=$enable_shared; p=${PACKAGE-default}
7640    case $enableval in
7641    yes) enable_shared=yes ;;
7642    no) enable_shared=no ;;
7643    *)
7644      enable_shared=no
7645      # Look at the argument we got.  We use all the common list separators.
7646      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647      for pkg in $enableval; do
7648	IFS="$lt_save_ifs"
7649	if test "X$pkg" = "X$p"; then
7650	  enable_shared=yes
7651	fi
7652      done
7653      IFS="$lt_save_ifs"
7654      ;;
7655    esac
7656else
7657  enable_shared=yes
7658fi
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670# Check whether --with-pic was given.
7671if test "${with_pic+set}" = set; then :
7672  withval=$with_pic; lt_p=${PACKAGE-default}
7673    case $withval in
7674    yes|no) pic_mode=$withval ;;
7675    *)
7676      pic_mode=default
7677      # Look at the argument we got.  We use all the common list separators.
7678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7679      for lt_pkg in $withval; do
7680	IFS="$lt_save_ifs"
7681	if test "X$lt_pkg" = "X$lt_p"; then
7682	  pic_mode=yes
7683	fi
7684      done
7685      IFS="$lt_save_ifs"
7686      ;;
7687    esac
7688else
7689  pic_mode=default
7690fi
7691
7692
7693test -z "$pic_mode" && pic_mode=default
7694
7695
7696
7697
7698
7699
7700
7701  # Check whether --enable-fast-install was given.
7702if test "${enable_fast_install+set}" = set; then :
7703  enableval=$enable_fast_install; p=${PACKAGE-default}
7704    case $enableval in
7705    yes) enable_fast_install=yes ;;
7706    no) enable_fast_install=no ;;
7707    *)
7708      enable_fast_install=no
7709      # Look at the argument we got.  We use all the common list separators.
7710      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711      for pkg in $enableval; do
7712	IFS="$lt_save_ifs"
7713	if test "X$pkg" = "X$p"; then
7714	  enable_fast_install=yes
7715	fi
7716      done
7717      IFS="$lt_save_ifs"
7718      ;;
7719    esac
7720else
7721  enable_fast_install=yes
7722fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734# This can be used to rebuild libtool when needed
7735LIBTOOL_DEPS="$ltmain"
7736
7737# Always use our own libtool.
7738LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769test -z "$LN_S" && LN_S="ln -s"
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784if test -n "${ZSH_VERSION+set}" ; then
7785   setopt NO_GLOB_SUBST
7786fi
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7789$as_echo_n "checking for objdir... " >&6; }
7790if ${lt_cv_objdir+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  rm -f .libs 2>/dev/null
7794mkdir .libs 2>/dev/null
7795if test -d .libs; then
7796  lt_cv_objdir=.libs
7797else
7798  # MS-DOS does not allow filenames that begin with a dot.
7799  lt_cv_objdir=_libs
7800fi
7801rmdir .libs 2>/dev/null
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7804$as_echo "$lt_cv_objdir" >&6; }
7805objdir=$lt_cv_objdir
7806
7807
7808
7809
7810
7811cat >>confdefs.h <<_ACEOF
7812#define LT_OBJDIR "$lt_cv_objdir/"
7813_ACEOF
7814
7815
7816
7817
7818case $host_os in
7819aix3*)
7820  # AIX sometimes has problems with the GCC collect2 program.  For some
7821  # reason, if we set the COLLECT_NAMES environment variable, the problems
7822  # vanish in a puff of smoke.
7823  if test "X${COLLECT_NAMES+set}" != Xset; then
7824    COLLECT_NAMES=
7825    export COLLECT_NAMES
7826  fi
7827  ;;
7828esac
7829
7830# Global variables:
7831ofile=libtool
7832can_build_shared=yes
7833
7834# All known linkers require a `.a' archive for static linking (except MSVC,
7835# which needs '.lib').
7836libext=a
7837
7838with_gnu_ld="$lt_cv_prog_gnu_ld"
7839
7840old_CC="$CC"
7841old_CFLAGS="$CFLAGS"
7842
7843# Set sane defaults for various variables
7844test -z "$CC" && CC=cc
7845test -z "$LTCC" && LTCC=$CC
7846test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7847test -z "$LD" && LD=ld
7848test -z "$ac_objext" && ac_objext=o
7849
7850for cc_temp in $compiler""; do
7851  case $cc_temp in
7852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7854    \-*) ;;
7855    *) break;;
7856  esac
7857done
7858cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7859
7860
7861# Only perform the check for file, if the check method requires it
7862test -z "$MAGIC_CMD" && MAGIC_CMD=file
7863case $deplibs_check_method in
7864file_magic*)
7865  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7867$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7868if ${lt_cv_path_MAGIC_CMD+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  case $MAGIC_CMD in
7872[\\/*] |  ?:[\\/]*)
7873  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7874  ;;
7875*)
7876  lt_save_MAGIC_CMD="$MAGIC_CMD"
7877  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7878  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7879  for ac_dir in $ac_dummy; do
7880    IFS="$lt_save_ifs"
7881    test -z "$ac_dir" && ac_dir=.
7882    if test -f $ac_dir/${ac_tool_prefix}file; then
7883      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7884      if test -n "$file_magic_test_file"; then
7885	case $deplibs_check_method in
7886	"file_magic "*)
7887	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7888	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7890	    $EGREP "$file_magic_regex" > /dev/null; then
7891	    :
7892	  else
7893	    cat <<_LT_EOF 1>&2
7894
7895*** Warning: the command libtool uses to detect shared libraries,
7896*** $file_magic_cmd, produces output that libtool cannot recognize.
7897*** The result is that libtool may fail to recognize shared libraries
7898*** as such.  This will affect the creation of libtool libraries that
7899*** depend on shared libraries, but programs linked with such libtool
7900*** libraries will work regardless of this problem.  Nevertheless, you
7901*** may want to report the problem to your system manager and/or to
7902*** bug-libtool@gnu.org
7903
7904_LT_EOF
7905	  fi ;;
7906	esac
7907      fi
7908      break
7909    fi
7910  done
7911  IFS="$lt_save_ifs"
7912  MAGIC_CMD="$lt_save_MAGIC_CMD"
7913  ;;
7914esac
7915fi
7916
7917MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918if test -n "$MAGIC_CMD"; then
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7920$as_echo "$MAGIC_CMD" >&6; }
7921else
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923$as_echo "no" >&6; }
7924fi
7925
7926
7927
7928
7929
7930if test -z "$lt_cv_path_MAGIC_CMD"; then
7931  if test -n "$ac_tool_prefix"; then
7932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7933$as_echo_n "checking for file... " >&6; }
7934if ${lt_cv_path_MAGIC_CMD+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  case $MAGIC_CMD in
7938[\\/*] |  ?:[\\/]*)
7939  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7940  ;;
7941*)
7942  lt_save_MAGIC_CMD="$MAGIC_CMD"
7943  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7944  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7945  for ac_dir in $ac_dummy; do
7946    IFS="$lt_save_ifs"
7947    test -z "$ac_dir" && ac_dir=.
7948    if test -f $ac_dir/file; then
7949      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7950      if test -n "$file_magic_test_file"; then
7951	case $deplibs_check_method in
7952	"file_magic "*)
7953	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7954	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7956	    $EGREP "$file_magic_regex" > /dev/null; then
7957	    :
7958	  else
7959	    cat <<_LT_EOF 1>&2
7960
7961*** Warning: the command libtool uses to detect shared libraries,
7962*** $file_magic_cmd, produces output that libtool cannot recognize.
7963*** The result is that libtool may fail to recognize shared libraries
7964*** as such.  This will affect the creation of libtool libraries that
7965*** depend on shared libraries, but programs linked with such libtool
7966*** libraries will work regardless of this problem.  Nevertheless, you
7967*** may want to report the problem to your system manager and/or to
7968*** bug-libtool@gnu.org
7969
7970_LT_EOF
7971	  fi ;;
7972	esac
7973      fi
7974      break
7975    fi
7976  done
7977  IFS="$lt_save_ifs"
7978  MAGIC_CMD="$lt_save_MAGIC_CMD"
7979  ;;
7980esac
7981fi
7982
7983MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984if test -n "$MAGIC_CMD"; then
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7986$as_echo "$MAGIC_CMD" >&6; }
7987else
7988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992
7993  else
7994    MAGIC_CMD=:
7995  fi
7996fi
7997
7998  fi
7999  ;;
8000esac
8001
8002# Use C for the default configuration in the libtool script
8003
8004lt_save_CC="$CC"
8005ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012# Source file extension for C test sources.
8013ac_ext=c
8014
8015# Object file extension for compiled C test sources.
8016objext=o
8017objext=$objext
8018
8019# Code to be used in simple compile tests
8020lt_simple_compile_test_code="int some_variable = 0;"
8021
8022# Code to be used in simple link tests
8023lt_simple_link_test_code='int main(){return(0);}'
8024
8025
8026
8027
8028
8029
8030
8031# If no C compiler was specified, use CC.
8032LTCC=${LTCC-"$CC"}
8033
8034# If no C compiler flags were specified, use CFLAGS.
8035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8036
8037# Allow CC to be a program name with arguments.
8038compiler=$CC
8039
8040# Save the default compiler, since it gets overwritten when the other
8041# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8042compiler_DEFAULT=$CC
8043
8044# save warnings/boilerplate of simple test code
8045ac_outfile=conftest.$ac_objext
8046echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8047eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8048_lt_compiler_boilerplate=`cat conftest.err`
8049$RM conftest*
8050
8051ac_outfile=conftest.$ac_objext
8052echo "$lt_simple_link_test_code" >conftest.$ac_ext
8053eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054_lt_linker_boilerplate=`cat conftest.err`
8055$RM -r conftest*
8056
8057
8058## CAVEAT EMPTOR:
8059## There is no encapsulation within the following macros, do not change
8060## the running order or otherwise move them around unless you know exactly
8061## what you are doing...
8062if test -n "$compiler"; then
8063
8064lt_prog_compiler_no_builtin_flag=
8065
8066if test "$GCC" = yes; then
8067  case $cc_basename in
8068  nvcc*)
8069    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8070  *)
8071    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8072  esac
8073
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8075$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8076if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  lt_cv_prog_compiler_rtti_exceptions=no
8080   ac_outfile=conftest.$ac_objext
8081   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8082   lt_compiler_flag="-fno-rtti -fno-exceptions"
8083   # Insert the option either (1) after the last *FLAGS variable, or
8084   # (2) before a word containing "conftest.", or (3) at the end.
8085   # Note that $ac_compile itself does not contain backslashes and begins
8086   # with a dollar sign (not a hyphen), so the echo should work correctly.
8087   # The option is referenced via a variable to avoid confusing sed.
8088   lt_compile=`echo "$ac_compile" | $SED \
8089   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8090   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8091   -e 's:$: $lt_compiler_flag:'`
8092   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8093   (eval "$lt_compile" 2>conftest.err)
8094   ac_status=$?
8095   cat conftest.err >&5
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   if (exit $ac_status) && test -s "$ac_outfile"; then
8098     # The compiler can only warn and ignore the option if not recognized
8099     # So say no if there are warnings other than the usual output.
8100     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8101     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8102     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8103       lt_cv_prog_compiler_rtti_exceptions=yes
8104     fi
8105   fi
8106   $RM conftest*
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8110$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8111
8112if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8113    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8114else
8115    :
8116fi
8117
8118fi
8119
8120
8121
8122
8123
8124
8125  lt_prog_compiler_wl=
8126lt_prog_compiler_pic=
8127lt_prog_compiler_static=
8128
8129
8130  if test "$GCC" = yes; then
8131    lt_prog_compiler_wl='-Wl,'
8132    lt_prog_compiler_static='-static'
8133
8134    case $host_os in
8135      aix*)
8136      # All AIX code is PIC.
8137      if test "$host_cpu" = ia64; then
8138	# AIX 5 now supports IA64 processor
8139	lt_prog_compiler_static='-Bstatic'
8140      fi
8141      ;;
8142
8143    amigaos*)
8144      case $host_cpu in
8145      powerpc)
8146            # see comment about AmigaOS4 .so support
8147            lt_prog_compiler_pic='-fPIC'
8148        ;;
8149      m68k)
8150            # FIXME: we need at least 68020 code to build shared libraries, but
8151            # adding the `-m68020' flag to GCC prevents building anything better,
8152            # like `-m68040'.
8153            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8154        ;;
8155      esac
8156      ;;
8157
8158    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8159      # PIC is the default for these OSes.
8160      ;;
8161
8162    mingw* | cygwin* | pw32* | os2* | cegcc*)
8163      # This hack is so that the source file can tell whether it is being
8164      # built for inclusion in a dll (and should export symbols for example).
8165      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8166      # (--disable-auto-import) libraries
8167      lt_prog_compiler_pic='-DDLL_EXPORT'
8168      ;;
8169
8170    darwin* | rhapsody*)
8171      # PIC is the default on this platform
8172      # Common symbols not allowed in MH_DYLIB files
8173      lt_prog_compiler_pic='-fno-common'
8174      ;;
8175
8176    haiku*)
8177      # PIC is the default for Haiku.
8178      # The "-static" flag exists, but is broken.
8179      lt_prog_compiler_static=
8180      ;;
8181
8182    hpux*)
8183      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8184      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8185      # sets the default TLS model and affects inlining.
8186      case $host_cpu in
8187      hppa*64*)
8188	# +Z the default
8189	;;
8190      *)
8191	lt_prog_compiler_pic='-fPIC'
8192	;;
8193      esac
8194      ;;
8195
8196    interix[3-9]*)
8197      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8198      # Instead, we relocate shared libraries at runtime.
8199      ;;
8200
8201    msdosdjgpp*)
8202      # Just because we use GCC doesn't mean we suddenly get shared libraries
8203      # on systems that don't support them.
8204      lt_prog_compiler_can_build_shared=no
8205      enable_shared=no
8206      ;;
8207
8208    *nto* | *qnx*)
8209      # QNX uses GNU C++, but need to define -shared option too, otherwise
8210      # it will coredump.
8211      lt_prog_compiler_pic='-fPIC -shared'
8212      ;;
8213
8214    sysv4*MP*)
8215      if test -d /usr/nec; then
8216	lt_prog_compiler_pic=-Kconform_pic
8217      fi
8218      ;;
8219
8220    *)
8221      lt_prog_compiler_pic='-fPIC'
8222      ;;
8223    esac
8224
8225    case $cc_basename in
8226    nvcc*) # Cuda Compiler Driver 2.2
8227      lt_prog_compiler_wl='-Xlinker '
8228      if test -n "$lt_prog_compiler_pic"; then
8229        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8230      fi
8231      ;;
8232    esac
8233  else
8234    # PORTME Check for flag to pass linker flags through the system compiler.
8235    case $host_os in
8236    aix*)
8237      lt_prog_compiler_wl='-Wl,'
8238      if test "$host_cpu" = ia64; then
8239	# AIX 5 now supports IA64 processor
8240	lt_prog_compiler_static='-Bstatic'
8241      else
8242	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8243      fi
8244      ;;
8245
8246    mingw* | cygwin* | pw32* | os2* | cegcc*)
8247      # This hack is so that the source file can tell whether it is being
8248      # built for inclusion in a dll (and should export symbols for example).
8249      lt_prog_compiler_pic='-DDLL_EXPORT'
8250      ;;
8251
8252    hpux9* | hpux10* | hpux11*)
8253      lt_prog_compiler_wl='-Wl,'
8254      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8255      # not for PA HP-UX.
8256      case $host_cpu in
8257      hppa*64*|ia64*)
8258	# +Z the default
8259	;;
8260      *)
8261	lt_prog_compiler_pic='+Z'
8262	;;
8263      esac
8264      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8265      lt_prog_compiler_static='${wl}-a ${wl}archive'
8266      ;;
8267
8268    irix5* | irix6* | nonstopux*)
8269      lt_prog_compiler_wl='-Wl,'
8270      # PIC (with -KPIC) is the default.
8271      lt_prog_compiler_static='-non_shared'
8272      ;;
8273
8274    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8275      case $cc_basename in
8276      # old Intel for x86_64 which still supported -KPIC.
8277      ecc*)
8278	lt_prog_compiler_wl='-Wl,'
8279	lt_prog_compiler_pic='-KPIC'
8280	lt_prog_compiler_static='-static'
8281        ;;
8282      # icc used to be incompatible with GCC.
8283      # ICC 10 doesn't accept -KPIC any more.
8284      icc* | ifort*)
8285	lt_prog_compiler_wl='-Wl,'
8286	lt_prog_compiler_pic='-fPIC'
8287	lt_prog_compiler_static='-static'
8288        ;;
8289      # Lahey Fortran 8.1.
8290      lf95*)
8291	lt_prog_compiler_wl='-Wl,'
8292	lt_prog_compiler_pic='--shared'
8293	lt_prog_compiler_static='--static'
8294	;;
8295      nagfor*)
8296	# NAG Fortran compiler
8297	lt_prog_compiler_wl='-Wl,-Wl,,'
8298	lt_prog_compiler_pic='-PIC'
8299	lt_prog_compiler_static='-Bstatic'
8300	;;
8301      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8302        # Portland Group compilers (*not* the Pentium gcc compiler,
8303	# which looks to be a dead project)
8304	lt_prog_compiler_wl='-Wl,'
8305	lt_prog_compiler_pic='-fpic'
8306	lt_prog_compiler_static='-Bstatic'
8307        ;;
8308      ccc*)
8309        lt_prog_compiler_wl='-Wl,'
8310        # All Alpha code is PIC.
8311        lt_prog_compiler_static='-non_shared'
8312        ;;
8313      xl* | bgxl* | bgf* | mpixl*)
8314	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8315	lt_prog_compiler_wl='-Wl,'
8316	lt_prog_compiler_pic='-qpic'
8317	lt_prog_compiler_static='-qstaticlink'
8318	;;
8319      *)
8320	case `$CC -V 2>&1 | sed 5q` in
8321	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8322	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8323	  lt_prog_compiler_pic='-KPIC'
8324	  lt_prog_compiler_static='-Bstatic'
8325	  lt_prog_compiler_wl=''
8326	  ;;
8327	*Sun\ F* | *Sun*Fortran*)
8328	  lt_prog_compiler_pic='-KPIC'
8329	  lt_prog_compiler_static='-Bstatic'
8330	  lt_prog_compiler_wl='-Qoption ld '
8331	  ;;
8332	*Sun\ C*)
8333	  # Sun C 5.9
8334	  lt_prog_compiler_pic='-KPIC'
8335	  lt_prog_compiler_static='-Bstatic'
8336	  lt_prog_compiler_wl='-Wl,'
8337	  ;;
8338        *Intel*\ [CF]*Compiler*)
8339	  lt_prog_compiler_wl='-Wl,'
8340	  lt_prog_compiler_pic='-fPIC'
8341	  lt_prog_compiler_static='-static'
8342	  ;;
8343	*Portland\ Group*)
8344	  lt_prog_compiler_wl='-Wl,'
8345	  lt_prog_compiler_pic='-fpic'
8346	  lt_prog_compiler_static='-Bstatic'
8347	  ;;
8348	esac
8349	;;
8350      esac
8351      ;;
8352
8353    newsos6)
8354      lt_prog_compiler_pic='-KPIC'
8355      lt_prog_compiler_static='-Bstatic'
8356      ;;
8357
8358    *nto* | *qnx*)
8359      # QNX uses GNU C++, but need to define -shared option too, otherwise
8360      # it will coredump.
8361      lt_prog_compiler_pic='-fPIC -shared'
8362      ;;
8363
8364    osf3* | osf4* | osf5*)
8365      lt_prog_compiler_wl='-Wl,'
8366      # All OSF/1 code is PIC.
8367      lt_prog_compiler_static='-non_shared'
8368      ;;
8369
8370    rdos*)
8371      lt_prog_compiler_static='-non_shared'
8372      ;;
8373
8374    solaris*)
8375      lt_prog_compiler_pic='-KPIC'
8376      lt_prog_compiler_static='-Bstatic'
8377      case $cc_basename in
8378      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8379	lt_prog_compiler_wl='-Qoption ld ';;
8380      *)
8381	lt_prog_compiler_wl='-Wl,';;
8382      esac
8383      ;;
8384
8385    sunos4*)
8386      lt_prog_compiler_wl='-Qoption ld '
8387      lt_prog_compiler_pic='-PIC'
8388      lt_prog_compiler_static='-Bstatic'
8389      ;;
8390
8391    sysv4 | sysv4.2uw2* | sysv4.3*)
8392      lt_prog_compiler_wl='-Wl,'
8393      lt_prog_compiler_pic='-KPIC'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    sysv4*MP*)
8398      if test -d /usr/nec ;then
8399	lt_prog_compiler_pic='-Kconform_pic'
8400	lt_prog_compiler_static='-Bstatic'
8401      fi
8402      ;;
8403
8404    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8405      lt_prog_compiler_wl='-Wl,'
8406      lt_prog_compiler_pic='-KPIC'
8407      lt_prog_compiler_static='-Bstatic'
8408      ;;
8409
8410    unicos*)
8411      lt_prog_compiler_wl='-Wl,'
8412      lt_prog_compiler_can_build_shared=no
8413      ;;
8414
8415    uts4*)
8416      lt_prog_compiler_pic='-pic'
8417      lt_prog_compiler_static='-Bstatic'
8418      ;;
8419
8420    *)
8421      lt_prog_compiler_can_build_shared=no
8422      ;;
8423    esac
8424  fi
8425
8426case $host_os in
8427  # For platforms which do not support PIC, -DPIC is meaningless:
8428  *djgpp*)
8429    lt_prog_compiler_pic=
8430    ;;
8431  *)
8432    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433    ;;
8434esac
8435
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8438if ${lt_cv_prog_compiler_pic+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8444$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8445lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8446
8447#
8448# Check to make sure the PIC flag actually works.
8449#
8450if test -n "$lt_prog_compiler_pic"; then
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8453if ${lt_cv_prog_compiler_pic_works+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  lt_cv_prog_compiler_pic_works=no
8457   ac_outfile=conftest.$ac_objext
8458   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8459   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8460   # Insert the option either (1) after the last *FLAGS variable, or
8461   # (2) before a word containing "conftest.", or (3) at the end.
8462   # Note that $ac_compile itself does not contain backslashes and begins
8463   # with a dollar sign (not a hyphen), so the echo should work correctly.
8464   # The option is referenced via a variable to avoid confusing sed.
8465   lt_compile=`echo "$ac_compile" | $SED \
8466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468   -e 's:$: $lt_compiler_flag:'`
8469   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8470   (eval "$lt_compile" 2>conftest.err)
8471   ac_status=$?
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   if (exit $ac_status) && test -s "$ac_outfile"; then
8475     # The compiler can only warn and ignore the option if not recognized
8476     # So say no if there are warnings other than the usual output.
8477     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8478     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480       lt_cv_prog_compiler_pic_works=yes
8481     fi
8482   fi
8483   $RM conftest*
8484
8485fi
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8487$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8488
8489if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8490    case $lt_prog_compiler_pic in
8491     "" | " "*) ;;
8492     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493     esac
8494else
8495    lt_prog_compiler_pic=
8496     lt_prog_compiler_can_build_shared=no
8497fi
8498
8499fi
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511#
8512# Check to make sure the static flag actually works.
8513#
8514wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8516$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8517if ${lt_cv_prog_compiler_static_works+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  lt_cv_prog_compiler_static_works=no
8521   save_LDFLAGS="$LDFLAGS"
8522   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8523   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8524   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8525     # The linker can only warn and ignore the option if not recognized
8526     # So say no if there are warnings
8527     if test -s conftest.err; then
8528       # Append any errors to the config.log.
8529       cat conftest.err 1>&5
8530       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8531       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8532       if diff conftest.exp conftest.er2 >/dev/null; then
8533         lt_cv_prog_compiler_static_works=yes
8534       fi
8535     else
8536       lt_cv_prog_compiler_static_works=yes
8537     fi
8538   fi
8539   $RM -r conftest*
8540   LDFLAGS="$save_LDFLAGS"
8541
8542fi
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8544$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8545
8546if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8547    :
8548else
8549    lt_prog_compiler_static=
8550fi
8551
8552
8553
8554
8555
8556
8557
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8559$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8560if ${lt_cv_prog_compiler_c_o+:} false; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  lt_cv_prog_compiler_c_o=no
8564   $RM -r conftest 2>/dev/null
8565   mkdir conftest
8566   cd conftest
8567   mkdir out
8568   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8569
8570   lt_compiler_flag="-o out/conftest2.$ac_objext"
8571   # Insert the option either (1) after the last *FLAGS variable, or
8572   # (2) before a word containing "conftest.", or (3) at the end.
8573   # Note that $ac_compile itself does not contain backslashes and begins
8574   # with a dollar sign (not a hyphen), so the echo should work correctly.
8575   lt_compile=`echo "$ac_compile" | $SED \
8576   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8577   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8578   -e 's:$: $lt_compiler_flag:'`
8579   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8580   (eval "$lt_compile" 2>out/conftest.err)
8581   ac_status=$?
8582   cat out/conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8585   then
8586     # The compiler can only warn and ignore the option if not recognized
8587     # So say no if there are warnings
8588     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8589     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8590     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8591       lt_cv_prog_compiler_c_o=yes
8592     fi
8593   fi
8594   chmod u+w . 2>&5
8595   $RM conftest*
8596   # SGI C++ compiler will create directory out/ii_files/ for
8597   # template instantiation
8598   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8599   $RM out/* && rmdir out
8600   cd ..
8601   $RM -r conftest
8602   $RM conftest*
8603
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8606$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8607
8608
8609
8610
8611
8612
8613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8614$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8615if ${lt_cv_prog_compiler_c_o+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  lt_cv_prog_compiler_c_o=no
8619   $RM -r conftest 2>/dev/null
8620   mkdir conftest
8621   cd conftest
8622   mkdir out
8623   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8624
8625   lt_compiler_flag="-o out/conftest2.$ac_objext"
8626   # Insert the option either (1) after the last *FLAGS variable, or
8627   # (2) before a word containing "conftest.", or (3) at the end.
8628   # Note that $ac_compile itself does not contain backslashes and begins
8629   # with a dollar sign (not a hyphen), so the echo should work correctly.
8630   lt_compile=`echo "$ac_compile" | $SED \
8631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8633   -e 's:$: $lt_compiler_flag:'`
8634   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8635   (eval "$lt_compile" 2>out/conftest.err)
8636   ac_status=$?
8637   cat out/conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8640   then
8641     # The compiler can only warn and ignore the option if not recognized
8642     # So say no if there are warnings
8643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8644     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8645     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8646       lt_cv_prog_compiler_c_o=yes
8647     fi
8648   fi
8649   chmod u+w . 2>&5
8650   $RM conftest*
8651   # SGI C++ compiler will create directory out/ii_files/ for
8652   # template instantiation
8653   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8654   $RM out/* && rmdir out
8655   cd ..
8656   $RM -r conftest
8657   $RM conftest*
8658
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8661$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8662
8663
8664
8665
8666hard_links="nottested"
8667if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8668  # do not overwrite the value of need_locks provided by the user
8669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8670$as_echo_n "checking if we can lock with hard links... " >&6; }
8671  hard_links=yes
8672  $RM conftest*
8673  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8674  touch conftest.a
8675  ln conftest.a conftest.b 2>&5 || hard_links=no
8676  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8678$as_echo "$hard_links" >&6; }
8679  if test "$hard_links" = no; then
8680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8681$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8682    need_locks=warn
8683  fi
8684else
8685  need_locks=no
8686fi
8687
8688
8689
8690
8691
8692
8693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8694$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8695
8696  runpath_var=
8697  allow_undefined_flag=
8698  always_export_symbols=no
8699  archive_cmds=
8700  archive_expsym_cmds=
8701  compiler_needs_object=no
8702  enable_shared_with_static_runtimes=no
8703  export_dynamic_flag_spec=
8704  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8705  hardcode_automatic=no
8706  hardcode_direct=no
8707  hardcode_direct_absolute=no
8708  hardcode_libdir_flag_spec=
8709  hardcode_libdir_separator=
8710  hardcode_minus_L=no
8711  hardcode_shlibpath_var=unsupported
8712  inherit_rpath=no
8713  link_all_deplibs=unknown
8714  module_cmds=
8715  module_expsym_cmds=
8716  old_archive_from_new_cmds=
8717  old_archive_from_expsyms_cmds=
8718  thread_safe_flag_spec=
8719  whole_archive_flag_spec=
8720  # include_expsyms should be a list of space-separated symbols to be *always*
8721  # included in the symbol list
8722  include_expsyms=
8723  # exclude_expsyms can be an extended regexp of symbols to exclude
8724  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8725  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8726  # as well as any symbol that contains `d'.
8727  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8728  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8729  # platforms (ab)use it in PIC code, but their linkers get confused if
8730  # the symbol is explicitly referenced.  Since portable code cannot
8731  # rely on this symbol name, it's probably fine to never include it in
8732  # preloaded symbol tables.
8733  # Exclude shared library initialization/finalization symbols.
8734  extract_expsyms_cmds=
8735
8736  case $host_os in
8737  cygwin* | mingw* | pw32* | cegcc*)
8738    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8739    # When not using gcc, we currently assume that we are using
8740    # Microsoft Visual C++.
8741    if test "$GCC" != yes; then
8742      with_gnu_ld=no
8743    fi
8744    ;;
8745  interix*)
8746    # we just hope/assume this is gcc and not c89 (= MSVC++)
8747    with_gnu_ld=yes
8748    ;;
8749  openbsd*)
8750    with_gnu_ld=no
8751    ;;
8752  linux* | k*bsd*-gnu | gnu*)
8753    link_all_deplibs=no
8754    ;;
8755  esac
8756
8757  ld_shlibs=yes
8758
8759  # On some targets, GNU ld is compatible enough with the native linker
8760  # that we're better off using the native interface for both.
8761  lt_use_gnu_ld_interface=no
8762  if test "$with_gnu_ld" = yes; then
8763    case $host_os in
8764      aix*)
8765	# The AIX port of GNU ld has always aspired to compatibility
8766	# with the native linker.  However, as the warning in the GNU ld
8767	# block says, versions before 2.19.5* couldn't really create working
8768	# shared libraries, regardless of the interface used.
8769	case `$LD -v 2>&1` in
8770	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8773	  *)
8774	    lt_use_gnu_ld_interface=yes
8775	    ;;
8776	esac
8777	;;
8778      *)
8779	lt_use_gnu_ld_interface=yes
8780	;;
8781    esac
8782  fi
8783
8784  if test "$lt_use_gnu_ld_interface" = yes; then
8785    # If archive_cmds runs LD, not CC, wlarc should be empty
8786    wlarc='${wl}'
8787
8788    # Set some defaults for GNU ld with shared library support. These
8789    # are reset later if shared libraries are not supported. Putting them
8790    # here allows them to be overridden if necessary.
8791    runpath_var=LD_RUN_PATH
8792    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793    export_dynamic_flag_spec='${wl}--export-dynamic'
8794    # ancient GNU ld didn't support --whole-archive et. al.
8795    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797    else
8798      whole_archive_flag_spec=
8799    fi
8800    supports_anon_versioning=no
8801    case `$LD -v 2>&1` in
8802      *GNU\ gold*) supports_anon_versioning=yes ;;
8803      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806      *\ 2.11.*) ;; # other 2.11 versions
8807      *) supports_anon_versioning=yes ;;
8808    esac
8809
8810    # See if GNU ld supports shared libraries.
8811    case $host_os in
8812    aix[3-9]*)
8813      # On AIX/PPC, the GNU linker is very broken
8814      if test "$host_cpu" != ia64; then
8815	ld_shlibs=no
8816	cat <<_LT_EOF 1>&2
8817
8818*** Warning: the GNU linker, at least up to release 2.19, is reported
8819*** to be unable to reliably create shared libraries on AIX.
8820*** Therefore, libtool is disabling shared libraries support.  If you
8821*** really care for shared libraries, you may want to install binutils
8822*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823*** You will then need to restart the configuration process.
8824
8825_LT_EOF
8826      fi
8827      ;;
8828
8829    amigaos*)
8830      case $host_cpu in
8831      powerpc)
8832            # see comment about AmigaOS4 .so support
8833            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834            archive_expsym_cmds=''
8835        ;;
8836      m68k)
8837            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)'
8838            hardcode_libdir_flag_spec='-L$libdir'
8839            hardcode_minus_L=yes
8840        ;;
8841      esac
8842      ;;
8843
8844    beos*)
8845      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846	allow_undefined_flag=unsupported
8847	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848	# support --undefined.  This deserves some investigation.  FIXME
8849	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850      else
8851	ld_shlibs=no
8852      fi
8853      ;;
8854
8855    cygwin* | mingw* | pw32* | cegcc*)
8856      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857      # as there is no search path for DLLs.
8858      hardcode_libdir_flag_spec='-L$libdir'
8859      export_dynamic_flag_spec='${wl}--export-all-symbols'
8860      allow_undefined_flag=unsupported
8861      always_export_symbols=no
8862      enable_shared_with_static_runtimes=yes
8863      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'
8864      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8865
8866      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8867        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868	# If the export-symbols file already is a .def file (1st line
8869	# is EXPORTS), use it as is; otherwise, prepend...
8870	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871	  cp $export_symbols $output_objdir/$soname.def;
8872	else
8873	  echo EXPORTS > $output_objdir/$soname.def;
8874	  cat $export_symbols >> $output_objdir/$soname.def;
8875	fi~
8876	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877      else
8878	ld_shlibs=no
8879      fi
8880      ;;
8881
8882    haiku*)
8883      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884      link_all_deplibs=yes
8885      ;;
8886
8887    interix[3-9]*)
8888      hardcode_direct=no
8889      hardcode_shlibpath_var=no
8890      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891      export_dynamic_flag_spec='${wl}-E'
8892      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8893      # Instead, shared libraries are loaded at an image base (0x10000000 by
8894      # default) and relocated if they conflict, which is a slow very memory
8895      # consuming and fragmenting process.  To avoid this, we pick a random,
8896      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8897      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8898      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8899      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'
8900      ;;
8901
8902    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8903      tmp_diet=no
8904      if test "$host_os" = linux-dietlibc; then
8905	case $cc_basename in
8906	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8907	esac
8908      fi
8909      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8910	 && test "$tmp_diet" = no
8911      then
8912	tmp_addflag=' $pic_flag'
8913	tmp_sharedflag='-shared'
8914	case $cc_basename,$host_cpu in
8915        pgcc*)				# Portland Group C compiler
8916	  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'
8917	  tmp_addflag=' $pic_flag'
8918	  ;;
8919	pgf77* | pgf90* | pgf95* | pgfortran*)
8920					# Portland Group f77 and f90 compilers
8921	  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'
8922	  tmp_addflag=' $pic_flag -Mnomain' ;;
8923	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8924	  tmp_addflag=' -i_dynamic' ;;
8925	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8926	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8927	ifc* | ifort*)			# Intel Fortran compiler
8928	  tmp_addflag=' -nofor_main' ;;
8929	lf95*)				# Lahey Fortran 8.1
8930	  whole_archive_flag_spec=
8931	  tmp_sharedflag='--shared' ;;
8932	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8933	  tmp_sharedflag='-qmkshrobj'
8934	  tmp_addflag= ;;
8935	nvcc*)	# Cuda Compiler Driver 2.2
8936	  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'
8937	  compiler_needs_object=yes
8938	  ;;
8939	esac
8940	case `$CC -V 2>&1 | sed 5q` in
8941	*Sun\ C*)			# Sun C 5.9
8942	  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'
8943	  compiler_needs_object=yes
8944	  tmp_sharedflag='-G' ;;
8945	*Sun\ F*)			# Sun Fortran 8.3
8946	  tmp_sharedflag='-G' ;;
8947	esac
8948	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949
8950        if test "x$supports_anon_versioning" = xyes; then
8951          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953	    echo "local: *; };" >> $output_objdir/$libname.ver~
8954	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8955        fi
8956
8957	case $cc_basename in
8958	xlf* | bgf* | bgxlf* | mpixlf*)
8959	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8960	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8961	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8963	  if test "x$supports_anon_versioning" = xyes; then
8964	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966	      echo "local: *; };" >> $output_objdir/$libname.ver~
8967	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8968	  fi
8969	  ;;
8970	esac
8971      else
8972        ld_shlibs=no
8973      fi
8974      ;;
8975
8976    netbsd* | netbsdelf*-gnu)
8977      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979	wlarc=
8980      else
8981	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983      fi
8984      ;;
8985
8986    solaris*)
8987      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988	ld_shlibs=no
8989	cat <<_LT_EOF 1>&2
8990
8991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992*** create shared libraries on Solaris systems.  Therefore, libtool
8993*** is disabling shared libraries support.  We urge you to upgrade GNU
8994*** binutils to release 2.9.1 or newer.  Another option is to modify
8995*** your PATH or compiler configuration so that the native linker is
8996*** used, and then restart.
8997
8998_LT_EOF
8999      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002      else
9003	ld_shlibs=no
9004      fi
9005      ;;
9006
9007    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008      case `$LD -v 2>&1` in
9009        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010	ld_shlibs=no
9011	cat <<_LT_EOF 1>&2
9012
9013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014*** reliably create shared libraries on SCO systems.  Therefore, libtool
9015*** is disabling shared libraries support.  We urge you to upgrade GNU
9016*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9017*** your PATH or compiler configuration so that the native linker is
9018*** used, and then restart.
9019
9020_LT_EOF
9021	;;
9022	*)
9023	  # For security reasons, it is highly recommended that you always
9024	  # use absolute paths for naming shared libraries, and exclude the
9025	  # DT_RUNPATH tag from executables and libraries.  But doing so
9026	  # requires that you compile everything twice, which is a pain.
9027	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031	  else
9032	    ld_shlibs=no
9033	  fi
9034	;;
9035      esac
9036      ;;
9037
9038    sunos4*)
9039      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040      wlarc=
9041      hardcode_direct=yes
9042      hardcode_shlibpath_var=no
9043      ;;
9044
9045    *)
9046      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049      else
9050	ld_shlibs=no
9051      fi
9052      ;;
9053    esac
9054
9055    if test "$ld_shlibs" = no; then
9056      runpath_var=
9057      hardcode_libdir_flag_spec=
9058      export_dynamic_flag_spec=
9059      whole_archive_flag_spec=
9060    fi
9061  else
9062    # PORTME fill in a description of your system's linker (not GNU ld)
9063    case $host_os in
9064    aix3*)
9065      allow_undefined_flag=unsupported
9066      always_export_symbols=yes
9067      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'
9068      # Note: this linker hardcodes the directories in LIBPATH if there
9069      # are no directories specified by -L.
9070      hardcode_minus_L=yes
9071      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072	# Neither direct hardcoding nor static linking is supported with a
9073	# broken collect2.
9074	hardcode_direct=unsupported
9075      fi
9076      ;;
9077
9078    aix[4-9]*)
9079      if test "$host_cpu" = ia64; then
9080	# On IA64, the linker does run time linking by default, so we don't
9081	# have to do anything special.
9082	aix_use_runtimelinking=no
9083	exp_sym_flag='-Bexport'
9084	no_entry_flag=""
9085      else
9086	# If we're using GNU nm, then we don't want the "-C" option.
9087	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9088	# Also, AIX nm treats weak defined symbols like other global
9089	# defined symbols, whereas GNU nm marks them as "W".
9090	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091	  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'
9092	else
9093	  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'
9094	fi
9095	aix_use_runtimelinking=no
9096
9097	# Test if we are trying to use run time linking or normal
9098	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099	# need to do runtime linking.
9100	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101	  for ld_flag in $LDFLAGS; do
9102	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103	    aix_use_runtimelinking=yes
9104	    break
9105	  fi
9106	  done
9107	  ;;
9108	esac
9109
9110	exp_sym_flag='-bexport'
9111	no_entry_flag='-bnoentry'
9112      fi
9113
9114      # When large executables or shared objects are built, AIX ld can
9115      # have problems creating the table of contents.  If linking a library
9116      # or program results in "error TOC overflow" add -mminimal-toc to
9117      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9118      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120      archive_cmds=''
9121      hardcode_direct=yes
9122      hardcode_direct_absolute=yes
9123      hardcode_libdir_separator=':'
9124      link_all_deplibs=yes
9125      file_list_spec='${wl}-f,'
9126
9127      if test "$GCC" = yes; then
9128	case $host_os in aix4.[012]|aix4.[012].*)
9129	# We only want to do this on AIX 4.2 and lower, the check
9130	# below for broken collect2 doesn't work under 4.3+
9131	  collect2name=`${CC} -print-prog-name=collect2`
9132	  if test -f "$collect2name" &&
9133	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134	  then
9135	  # We have reworked collect2
9136	  :
9137	  else
9138	  # We have old collect2
9139	  hardcode_direct=unsupported
9140	  # It fails to find uninstalled libraries when the uninstalled
9141	  # path is not listed in the libpath.  Setting hardcode_minus_L
9142	  # to unsupported forces relinking
9143	  hardcode_minus_L=yes
9144	  hardcode_libdir_flag_spec='-L$libdir'
9145	  hardcode_libdir_separator=
9146	  fi
9147	  ;;
9148	esac
9149	shared_flag='-shared'
9150	if test "$aix_use_runtimelinking" = yes; then
9151	  shared_flag="$shared_flag "'${wl}-G'
9152	fi
9153	link_all_deplibs=no
9154      else
9155	# not using gcc
9156	if test "$host_cpu" = ia64; then
9157	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9158	# chokes on -Wl,-G. The following line is correct:
9159	  shared_flag='-G'
9160	else
9161	  if test "$aix_use_runtimelinking" = yes; then
9162	    shared_flag='${wl}-G'
9163	  else
9164	    shared_flag='${wl}-bM:SRE'
9165	  fi
9166	fi
9167      fi
9168
9169      export_dynamic_flag_spec='${wl}-bexpall'
9170      # It seems that -bexpall does not export symbols beginning with
9171      # underscore (_), so it is better to generate a list of symbols to export.
9172      always_export_symbols=yes
9173      if test "$aix_use_runtimelinking" = yes; then
9174	# Warning - without using the other runtime loading flags (-brtl),
9175	# -berok will link without error, but may produce a broken library.
9176	allow_undefined_flag='-berok'
9177        # Determine the default libpath from the value encoded in an
9178        # empty executable.
9179        if test "${lt_cv_aix_libpath+set}" = set; then
9180  aix_libpath=$lt_cv_aix_libpath
9181else
9182  if ${lt_cv_aix_libpath_+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187
9188int
9189main ()
9190{
9191
9192  ;
9193  return 0;
9194}
9195_ACEOF
9196if ac_fn_c_try_link "$LINENO"; then :
9197
9198  lt_aix_libpath_sed='
9199      /Import File Strings/,/^$/ {
9200	  /^0/ {
9201	      s/^0  *\([^ ]*\) *$/\1/
9202	      p
9203	  }
9204      }'
9205  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9206  # Check for a 64-bit object if we didn't find anything.
9207  if test -z "$lt_cv_aix_libpath_"; then
9208    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209  fi
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212    conftest$ac_exeext conftest.$ac_ext
9213  if test -z "$lt_cv_aix_libpath_"; then
9214    lt_cv_aix_libpath_="/usr/lib:/lib"
9215  fi
9216
9217fi
9218
9219  aix_libpath=$lt_cv_aix_libpath_
9220fi
9221
9222        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9223        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"
9224      else
9225	if test "$host_cpu" = ia64; then
9226	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9227	  allow_undefined_flag="-z nodefs"
9228	  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"
9229	else
9230	 # Determine the default libpath from the value encoded in an
9231	 # empty executable.
9232	 if test "${lt_cv_aix_libpath+set}" = set; then
9233  aix_libpath=$lt_cv_aix_libpath
9234else
9235  if ${lt_cv_aix_libpath_+:} false; then :
9236  $as_echo_n "(cached) " >&6
9237else
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240
9241int
9242main ()
9243{
9244
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249if ac_fn_c_try_link "$LINENO"; then :
9250
9251  lt_aix_libpath_sed='
9252      /Import File Strings/,/^$/ {
9253	  /^0/ {
9254	      s/^0  *\([^ ]*\) *$/\1/
9255	      p
9256	  }
9257      }'
9258  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9259  # Check for a 64-bit object if we didn't find anything.
9260  if test -z "$lt_cv_aix_libpath_"; then
9261    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262  fi
9263fi
9264rm -f core conftest.err conftest.$ac_objext \
9265    conftest$ac_exeext conftest.$ac_ext
9266  if test -z "$lt_cv_aix_libpath_"; then
9267    lt_cv_aix_libpath_="/usr/lib:/lib"
9268  fi
9269
9270fi
9271
9272  aix_libpath=$lt_cv_aix_libpath_
9273fi
9274
9275	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276	  # Warning - without using the other run time loading flags,
9277	  # -berok will link without error, but may produce a broken library.
9278	  no_undefined_flag=' ${wl}-bernotok'
9279	  allow_undefined_flag=' ${wl}-berok'
9280	  if test "$with_gnu_ld" = yes; then
9281	    # We only use this code for GNU lds that support --whole-archive.
9282	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283	  else
9284	    # Exported symbols can be pulled into shared objects from archives
9285	    whole_archive_flag_spec='$convenience'
9286	  fi
9287	  archive_cmds_need_lc=yes
9288	  # This is similar to how AIX traditionally builds its shared libraries.
9289	  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'
9290	fi
9291      fi
9292      ;;
9293
9294    amigaos*)
9295      case $host_cpu in
9296      powerpc)
9297            # see comment about AmigaOS4 .so support
9298            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299            archive_expsym_cmds=''
9300        ;;
9301      m68k)
9302            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)'
9303            hardcode_libdir_flag_spec='-L$libdir'
9304            hardcode_minus_L=yes
9305        ;;
9306      esac
9307      ;;
9308
9309    bsdi[45]*)
9310      export_dynamic_flag_spec=-rdynamic
9311      ;;
9312
9313    cygwin* | mingw* | pw32* | cegcc*)
9314      # When not using gcc, we currently assume that we are using
9315      # Microsoft Visual C++.
9316      # hardcode_libdir_flag_spec is actually meaningless, as there is
9317      # no search path for DLLs.
9318      case $cc_basename in
9319      cl*)
9320	# Native MSVC
9321	hardcode_libdir_flag_spec=' '
9322	allow_undefined_flag=unsupported
9323	always_export_symbols=yes
9324	file_list_spec='@'
9325	# Tell ltmain to make .lib files, not .a files.
9326	libext=lib
9327	# Tell ltmain to make .dll files, not .so files.
9328	shrext_cmds=".dll"
9329	# FIXME: Setting linknames here is a bad hack.
9330	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9331	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9332	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9333	  else
9334	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9335	  fi~
9336	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9337	  linknames='
9338	# The linker will not automatically build a static lib if we build a DLL.
9339	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9340	enable_shared_with_static_runtimes=yes
9341	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9342	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9343	# Don't use ranlib
9344	old_postinstall_cmds='chmod 644 $oldlib'
9345	postlink_cmds='lt_outputfile="@OUTPUT@"~
9346	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9347	  case $lt_outputfile in
9348	    *.exe|*.EXE) ;;
9349	    *)
9350	      lt_outputfile="$lt_outputfile.exe"
9351	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9352	      ;;
9353	  esac~
9354	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9355	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9356	    $RM "$lt_outputfile.manifest";
9357	  fi'
9358	;;
9359      *)
9360	# Assume MSVC wrapper
9361	hardcode_libdir_flag_spec=' '
9362	allow_undefined_flag=unsupported
9363	# Tell ltmain to make .lib files, not .a files.
9364	libext=lib
9365	# Tell ltmain to make .dll files, not .so files.
9366	shrext_cmds=".dll"
9367	# FIXME: Setting linknames here is a bad hack.
9368	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9369	# The linker will automatically build a .lib file if we build a DLL.
9370	old_archive_from_new_cmds='true'
9371	# FIXME: Should let the user specify the lib program.
9372	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9373	enable_shared_with_static_runtimes=yes
9374	;;
9375      esac
9376      ;;
9377
9378    darwin* | rhapsody*)
9379
9380
9381  archive_cmds_need_lc=no
9382  hardcode_direct=no
9383  hardcode_automatic=yes
9384  hardcode_shlibpath_var=unsupported
9385  if test "$lt_cv_ld_force_load" = "yes"; then
9386    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\"`'
9387
9388  else
9389    whole_archive_flag_spec=''
9390  fi
9391  link_all_deplibs=yes
9392  allow_undefined_flag="$_lt_dar_allow_undefined"
9393  case $cc_basename in
9394     ifort*) _lt_dar_can_shared=yes ;;
9395     *) _lt_dar_can_shared=$GCC ;;
9396  esac
9397  if test "$_lt_dar_can_shared" = "yes"; then
9398    output_verbose_link_cmd=func_echo_all
9399    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9400    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9401    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}"
9402    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}"
9403
9404  else
9405  ld_shlibs=no
9406  fi
9407
9408      ;;
9409
9410    dgux*)
9411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412      hardcode_libdir_flag_spec='-L$libdir'
9413      hardcode_shlibpath_var=no
9414      ;;
9415
9416    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9417    # support.  Future versions do this automatically, but an explicit c++rt0.o
9418    # does not break anything, and helps significantly (at the cost of a little
9419    # extra space).
9420    freebsd2.2*)
9421      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9422      hardcode_libdir_flag_spec='-R$libdir'
9423      hardcode_direct=yes
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9428    freebsd2.*)
9429      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9430      hardcode_direct=yes
9431      hardcode_minus_L=yes
9432      hardcode_shlibpath_var=no
9433      ;;
9434
9435    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9436    freebsd* | dragonfly*)
9437      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9438      hardcode_libdir_flag_spec='-R$libdir'
9439      hardcode_direct=yes
9440      hardcode_shlibpath_var=no
9441      ;;
9442
9443    hpux9*)
9444      if test "$GCC" = yes; then
9445	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'
9446      else
9447	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'
9448      fi
9449      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9450      hardcode_libdir_separator=:
9451      hardcode_direct=yes
9452
9453      # hardcode_minus_L: Not really in the search PATH,
9454      # but as the default location of the library.
9455      hardcode_minus_L=yes
9456      export_dynamic_flag_spec='${wl}-E'
9457      ;;
9458
9459    hpux10*)
9460      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9461	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9462      else
9463	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9464      fi
9465      if test "$with_gnu_ld" = no; then
9466	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9467	hardcode_libdir_separator=:
9468	hardcode_direct=yes
9469	hardcode_direct_absolute=yes
9470	export_dynamic_flag_spec='${wl}-E'
9471	# hardcode_minus_L: Not really in the search PATH,
9472	# but as the default location of the library.
9473	hardcode_minus_L=yes
9474      fi
9475      ;;
9476
9477    hpux11*)
9478      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9479	case $host_cpu in
9480	hppa*64*)
9481	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9482	  ;;
9483	ia64*)
9484	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9485	  ;;
9486	*)
9487	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9488	  ;;
9489	esac
9490      else
9491	case $host_cpu in
9492	hppa*64*)
9493	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9494	  ;;
9495	ia64*)
9496	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9497	  ;;
9498	*)
9499
9500	  # Older versions of the 11.00 compiler do not understand -b yet
9501	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9502	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9503$as_echo_n "checking if $CC understands -b... " >&6; }
9504if ${lt_cv_prog_compiler__b+:} false; then :
9505  $as_echo_n "(cached) " >&6
9506else
9507  lt_cv_prog_compiler__b=no
9508   save_LDFLAGS="$LDFLAGS"
9509   LDFLAGS="$LDFLAGS -b"
9510   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9511   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9512     # The linker can only warn and ignore the option if not recognized
9513     # So say no if there are warnings
9514     if test -s conftest.err; then
9515       # Append any errors to the config.log.
9516       cat conftest.err 1>&5
9517       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9518       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9519       if diff conftest.exp conftest.er2 >/dev/null; then
9520         lt_cv_prog_compiler__b=yes
9521       fi
9522     else
9523       lt_cv_prog_compiler__b=yes
9524     fi
9525   fi
9526   $RM -r conftest*
9527   LDFLAGS="$save_LDFLAGS"
9528
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9531$as_echo "$lt_cv_prog_compiler__b" >&6; }
9532
9533if test x"$lt_cv_prog_compiler__b" = xyes; then
9534    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535else
9536    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9537fi
9538
9539	  ;;
9540	esac
9541      fi
9542      if test "$with_gnu_ld" = no; then
9543	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544	hardcode_libdir_separator=:
9545
9546	case $host_cpu in
9547	hppa*64*|ia64*)
9548	  hardcode_direct=no
9549	  hardcode_shlibpath_var=no
9550	  ;;
9551	*)
9552	  hardcode_direct=yes
9553	  hardcode_direct_absolute=yes
9554	  export_dynamic_flag_spec='${wl}-E'
9555
9556	  # hardcode_minus_L: Not really in the search PATH,
9557	  # but as the default location of the library.
9558	  hardcode_minus_L=yes
9559	  ;;
9560	esac
9561      fi
9562      ;;
9563
9564    irix5* | irix6* | nonstopux*)
9565      if test "$GCC" = yes; then
9566	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'
9567	# Try to use the -exported_symbol ld option, if it does not
9568	# work, assume that -exports_file does not work either and
9569	# implicitly export all symbols.
9570	# This should be the same for all languages, so no per-tag cache variable.
9571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9572$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9573if ${lt_cv_irix_exported_symbol+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  save_LDFLAGS="$LDFLAGS"
9577	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9578	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h.  */
9580int foo (void) { return 0; }
9581_ACEOF
9582if ac_fn_c_try_link "$LINENO"; then :
9583  lt_cv_irix_exported_symbol=yes
9584else
9585  lt_cv_irix_exported_symbol=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext \
9588    conftest$ac_exeext conftest.$ac_ext
9589           LDFLAGS="$save_LDFLAGS"
9590fi
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9592$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9593	if test "$lt_cv_irix_exported_symbol" = yes; then
9594          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'
9595	fi
9596      else
9597	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'
9598	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'
9599      fi
9600      archive_cmds_need_lc='no'
9601      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602      hardcode_libdir_separator=:
9603      inherit_rpath=yes
9604      link_all_deplibs=yes
9605      ;;
9606
9607    netbsd* | netbsdelf*-gnu)
9608      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9609	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9610      else
9611	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9612      fi
9613      hardcode_libdir_flag_spec='-R$libdir'
9614      hardcode_direct=yes
9615      hardcode_shlibpath_var=no
9616      ;;
9617
9618    newsos6)
9619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620      hardcode_direct=yes
9621      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622      hardcode_libdir_separator=:
9623      hardcode_shlibpath_var=no
9624      ;;
9625
9626    *nto* | *qnx*)
9627      ;;
9628
9629    openbsd*)
9630      if test -f /usr/libexec/ld.so; then
9631	hardcode_direct=yes
9632	hardcode_shlibpath_var=no
9633	hardcode_direct_absolute=yes
9634	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9635	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9636	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9637	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9638	  export_dynamic_flag_spec='${wl}-E'
9639	else
9640	  case $host_os in
9641	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9642	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9643	     hardcode_libdir_flag_spec='-R$libdir'
9644	     ;;
9645	   *)
9646	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648	     ;;
9649	  esac
9650	fi
9651      else
9652	ld_shlibs=no
9653      fi
9654      ;;
9655
9656    os2*)
9657      hardcode_libdir_flag_spec='-L$libdir'
9658      hardcode_minus_L=yes
9659      allow_undefined_flag=unsupported
9660      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'
9661      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9662      ;;
9663
9664    osf3*)
9665      if test "$GCC" = yes; then
9666	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9667	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'
9668      else
9669	allow_undefined_flag=' -expect_unresolved \*'
9670	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'
9671      fi
9672      archive_cmds_need_lc='no'
9673      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9674      hardcode_libdir_separator=:
9675      ;;
9676
9677    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9678      if test "$GCC" = yes; then
9679	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9680	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'
9681	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682      else
9683	allow_undefined_flag=' -expect_unresolved \*'
9684	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'
9685	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~
9686	$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'
9687
9688	# Both c and cxx compiler support -rpath directly
9689	hardcode_libdir_flag_spec='-rpath $libdir'
9690      fi
9691      archive_cmds_need_lc='no'
9692      hardcode_libdir_separator=:
9693      ;;
9694
9695    solaris*)
9696      no_undefined_flag=' -z defs'
9697      if test "$GCC" = yes; then
9698	wlarc='${wl}'
9699	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701	  $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'
9702      else
9703	case `$CC -V 2>&1` in
9704	*"Compilers 5.0"*)
9705	  wlarc=''
9706	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9709	  ;;
9710	*)
9711	  wlarc='${wl}'
9712	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9714	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9715	  ;;
9716	esac
9717      fi
9718      hardcode_libdir_flag_spec='-R$libdir'
9719      hardcode_shlibpath_var=no
9720      case $host_os in
9721      solaris2.[0-5] | solaris2.[0-5].*) ;;
9722      *)
9723	# The compiler driver will combine and reorder linker options,
9724	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9725	# but is careful enough not to reorder.
9726	# Supported since Solaris 2.6 (maybe 2.5.1?)
9727	if test "$GCC" = yes; then
9728	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9729	else
9730	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9731	fi
9732	;;
9733      esac
9734      link_all_deplibs=yes
9735      ;;
9736
9737    sunos4*)
9738      if test "x$host_vendor" = xsequent; then
9739	# Use $CC to link under sequent, because it throws in some extra .o
9740	# files that make .init and .fini sections work.
9741	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9742      else
9743	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9744      fi
9745      hardcode_libdir_flag_spec='-L$libdir'
9746      hardcode_direct=yes
9747      hardcode_minus_L=yes
9748      hardcode_shlibpath_var=no
9749      ;;
9750
9751    sysv4)
9752      case $host_vendor in
9753	sni)
9754	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755	  hardcode_direct=yes # is this really true???
9756	;;
9757	siemens)
9758	  ## LD is ld it makes a PLAMLIB
9759	  ## CC just makes a GrossModule.
9760	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9761	  reload_cmds='$CC -r -o $output$reload_objs'
9762	  hardcode_direct=no
9763        ;;
9764	motorola)
9765	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9767	;;
9768      esac
9769      runpath_var='LD_RUN_PATH'
9770      hardcode_shlibpath_var=no
9771      ;;
9772
9773    sysv4.3*)
9774      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775      hardcode_shlibpath_var=no
9776      export_dynamic_flag_spec='-Bexport'
9777      ;;
9778
9779    sysv4*MP*)
9780      if test -d /usr/nec; then
9781	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782	hardcode_shlibpath_var=no
9783	runpath_var=LD_RUN_PATH
9784	hardcode_runpath_var=yes
9785	ld_shlibs=yes
9786      fi
9787      ;;
9788
9789    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9790      no_undefined_flag='${wl}-z,text'
9791      archive_cmds_need_lc=no
9792      hardcode_shlibpath_var=no
9793      runpath_var='LD_RUN_PATH'
9794
9795      if test "$GCC" = yes; then
9796	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798      else
9799	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801      fi
9802      ;;
9803
9804    sysv5* | sco3.2v5* | sco5v6*)
9805      # Note: We can NOT use -z defs as we might desire, because we do not
9806      # link with -lc, and that would cause any symbols used from libc to
9807      # always be unresolved, which means just about no library would
9808      # ever link correctly.  If we're not using GNU ld we use -z text
9809      # though, which does catch some bad symbols but isn't as heavy-handed
9810      # as -z defs.
9811      no_undefined_flag='${wl}-z,text'
9812      allow_undefined_flag='${wl}-z,nodefs'
9813      archive_cmds_need_lc=no
9814      hardcode_shlibpath_var=no
9815      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9816      hardcode_libdir_separator=':'
9817      link_all_deplibs=yes
9818      export_dynamic_flag_spec='${wl}-Bexport'
9819      runpath_var='LD_RUN_PATH'
9820
9821      if test "$GCC" = yes; then
9822	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824      else
9825	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9826	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827      fi
9828      ;;
9829
9830    uts4*)
9831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832      hardcode_libdir_flag_spec='-L$libdir'
9833      hardcode_shlibpath_var=no
9834      ;;
9835
9836    *)
9837      ld_shlibs=no
9838      ;;
9839    esac
9840
9841    if test x$host_vendor = xsni; then
9842      case $host in
9843      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9844	export_dynamic_flag_spec='${wl}-Blargedynsym'
9845	;;
9846      esac
9847    fi
9848  fi
9849
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9851$as_echo "$ld_shlibs" >&6; }
9852test "$ld_shlibs" = no && can_build_shared=no
9853
9854with_gnu_ld=$with_gnu_ld
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870#
9871# Do we need to explicitly link libc?
9872#
9873case "x$archive_cmds_need_lc" in
9874x|xyes)
9875  # Assume -lc should be added
9876  archive_cmds_need_lc=yes
9877
9878  if test "$enable_shared" = yes && test "$GCC" = yes; then
9879    case $archive_cmds in
9880    *'~'*)
9881      # FIXME: we may have to deal with multi-command sequences.
9882      ;;
9883    '$CC '*)
9884      # Test whether the compiler implicitly links with -lc since on some
9885      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9886      # to ld, don't add -lc before -lgcc.
9887      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9888$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9889if ${lt_cv_archive_cmds_need_lc+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  $RM conftest*
9893	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9894
9895	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9896  (eval $ac_compile) 2>&5
9897  ac_status=$?
9898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899  test $ac_status = 0; } 2>conftest.err; then
9900	  soname=conftest
9901	  lib=conftest
9902	  libobjs=conftest.$ac_objext
9903	  deplibs=
9904	  wl=$lt_prog_compiler_wl
9905	  pic_flag=$lt_prog_compiler_pic
9906	  compiler_flags=-v
9907	  linker_flags=-v
9908	  verstring=
9909	  output_objdir=.
9910	  libname=conftest
9911	  lt_save_allow_undefined_flag=$allow_undefined_flag
9912	  allow_undefined_flag=
9913	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9914  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9915  ac_status=$?
9916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917  test $ac_status = 0; }
9918	  then
9919	    lt_cv_archive_cmds_need_lc=no
9920	  else
9921	    lt_cv_archive_cmds_need_lc=yes
9922	  fi
9923	  allow_undefined_flag=$lt_save_allow_undefined_flag
9924	else
9925	  cat conftest.err 1>&5
9926	fi
9927	$RM conftest*
9928
9929fi
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9931$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9932      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9933      ;;
9934    esac
9935  fi
9936  ;;
9937esac
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10091$as_echo_n "checking dynamic linker characteristics... " >&6; }
10092
10093if test "$GCC" = yes; then
10094  case $host_os in
10095    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10096    *) lt_awk_arg="/^libraries:/" ;;
10097  esac
10098  case $host_os in
10099    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10100    *) lt_sed_strip_eq="s,=/,/,g" ;;
10101  esac
10102  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10103  case $lt_search_path_spec in
10104  *\;*)
10105    # if the path contains ";" then we assume it to be the separator
10106    # otherwise default to the standard path separator (i.e. ":") - it is
10107    # assumed that no part of a normal pathname contains ";" but that should
10108    # okay in the real world where ";" in dirpaths is itself problematic.
10109    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10110    ;;
10111  *)
10112    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10113    ;;
10114  esac
10115  # Ok, now we have the path, separated by spaces, we can step through it
10116  # and add multilib dir if necessary.
10117  lt_tmp_lt_search_path_spec=
10118  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10119  for lt_sys_path in $lt_search_path_spec; do
10120    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10121      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10122    else
10123      test -d "$lt_sys_path" && \
10124	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10125    fi
10126  done
10127  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10128BEGIN {RS=" "; FS="/|\n";} {
10129  lt_foo="";
10130  lt_count=0;
10131  for (lt_i = NF; lt_i > 0; lt_i--) {
10132    if ($lt_i != "" && $lt_i != ".") {
10133      if ($lt_i == "..") {
10134        lt_count++;
10135      } else {
10136        if (lt_count == 0) {
10137          lt_foo="/" $lt_i lt_foo;
10138        } else {
10139          lt_count--;
10140        }
10141      }
10142    }
10143  }
10144  if (lt_foo != "") { lt_freq[lt_foo]++; }
10145  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10146}'`
10147  # AWK program above erroneously prepends '/' to C:/dos/paths
10148  # for these hosts.
10149  case $host_os in
10150    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10151      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10152  esac
10153  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10154else
10155  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10156fi
10157library_names_spec=
10158libname_spec='lib$name'
10159soname_spec=
10160shrext_cmds=".so"
10161postinstall_cmds=
10162postuninstall_cmds=
10163finish_cmds=
10164finish_eval=
10165shlibpath_var=
10166shlibpath_overrides_runpath=unknown
10167version_type=none
10168dynamic_linker="$host_os ld.so"
10169sys_lib_dlsearch_path_spec="/lib /usr/lib"
10170need_lib_prefix=unknown
10171hardcode_into_libs=no
10172
10173# when you set need_version to no, make sure it does not cause -set_version
10174# flags to be left without arguments
10175need_version=unknown
10176
10177case $host_os in
10178aix3*)
10179  version_type=linux # correct to gnu/linux during the next big refactor
10180  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10181  shlibpath_var=LIBPATH
10182
10183  # AIX 3 has no versioning support, so we append a major version to the name.
10184  soname_spec='${libname}${release}${shared_ext}$major'
10185  ;;
10186
10187aix[4-9]*)
10188  version_type=linux # correct to gnu/linux during the next big refactor
10189  need_lib_prefix=no
10190  need_version=no
10191  hardcode_into_libs=yes
10192  if test "$host_cpu" = ia64; then
10193    # AIX 5 supports IA64
10194    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10195    shlibpath_var=LD_LIBRARY_PATH
10196  else
10197    # With GCC up to 2.95.x, collect2 would create an import file
10198    # for dependence libraries.  The import file would start with
10199    # the line `#! .'.  This would cause the generated library to
10200    # depend on `.', always an invalid library.  This was fixed in
10201    # development snapshots of GCC prior to 3.0.
10202    case $host_os in
10203      aix4 | aix4.[01] | aix4.[01].*)
10204      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10205	   echo ' yes '
10206	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10207	:
10208      else
10209	can_build_shared=no
10210      fi
10211      ;;
10212    esac
10213    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10214    # soname into executable. Probably we can add versioning support to
10215    # collect2, so additional links can be useful in future.
10216    if test "$aix_use_runtimelinking" = yes; then
10217      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10218      # instead of lib<name>.a to let people know that these are not
10219      # typical AIX shared libraries.
10220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221    else
10222      # We preserve .a as extension for shared libraries through AIX4.2
10223      # and later when we are not doing run time linking.
10224      library_names_spec='${libname}${release}.a $libname.a'
10225      soname_spec='${libname}${release}${shared_ext}$major'
10226    fi
10227    shlibpath_var=LIBPATH
10228  fi
10229  ;;
10230
10231amigaos*)
10232  case $host_cpu in
10233  powerpc)
10234    # Since July 2007 AmigaOS4 officially supports .so libraries.
10235    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237    ;;
10238  m68k)
10239    library_names_spec='$libname.ixlibrary $libname.a'
10240    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10241    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'
10242    ;;
10243  esac
10244  ;;
10245
10246beos*)
10247  library_names_spec='${libname}${shared_ext}'
10248  dynamic_linker="$host_os ld.so"
10249  shlibpath_var=LIBRARY_PATH
10250  ;;
10251
10252bsdi[45]*)
10253  version_type=linux # correct to gnu/linux during the next big refactor
10254  need_version=no
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256  soname_spec='${libname}${release}${shared_ext}$major'
10257  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10258  shlibpath_var=LD_LIBRARY_PATH
10259  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10260  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10261  # the default ld.so.conf also contains /usr/contrib/lib and
10262  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10263  # libtool to hard-code these into programs
10264  ;;
10265
10266cygwin* | mingw* | pw32* | cegcc*)
10267  version_type=windows
10268  shrext_cmds=".dll"
10269  need_version=no
10270  need_lib_prefix=no
10271
10272  case $GCC,$cc_basename in
10273  yes,*)
10274    # gcc
10275    library_names_spec='$libname.dll.a'
10276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10277    postinstall_cmds='base_file=`basename \${file}`~
10278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10279      dldir=$destdir/`dirname \$dlpath`~
10280      test -d \$dldir || mkdir -p \$dldir~
10281      $install_prog $dir/$dlname \$dldir/$dlname~
10282      chmod a+x \$dldir/$dlname~
10283      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10284        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10285      fi'
10286    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287      dlpath=$dir/\$dldll~
10288       $RM \$dlpath'
10289    shlibpath_overrides_runpath=yes
10290
10291    case $host_os in
10292    cygwin*)
10293      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10294      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295
10296      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10297      ;;
10298    mingw* | cegcc*)
10299      # MinGW DLLs use traditional 'lib' prefix
10300      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301      ;;
10302    pw32*)
10303      # pw32 DLLs use 'pw' prefix rather than 'lib'
10304      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305      ;;
10306    esac
10307    dynamic_linker='Win32 ld.exe'
10308    ;;
10309
10310  *,cl*)
10311    # Native MSVC
10312    libname_spec='$name'
10313    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314    library_names_spec='${libname}.dll.lib'
10315
10316    case $build_os in
10317    mingw*)
10318      sys_lib_search_path_spec=
10319      lt_save_ifs=$IFS
10320      IFS=';'
10321      for lt_path in $LIB
10322      do
10323        IFS=$lt_save_ifs
10324        # Let DOS variable expansion print the short 8.3 style file name.
10325        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10326        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10327      done
10328      IFS=$lt_save_ifs
10329      # Convert to MSYS style.
10330      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10331      ;;
10332    cygwin*)
10333      # Convert to unix form, then to dos form, then back to unix form
10334      # but this time dos style (no spaces!) so that the unix form looks
10335      # like /cygdrive/c/PROGRA~1:/cygdr...
10336      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10337      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10338      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10339      ;;
10340    *)
10341      sys_lib_search_path_spec="$LIB"
10342      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10343        # It is most probably a Windows format PATH.
10344        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10345      else
10346        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10347      fi
10348      # FIXME: find the short name or the path components, as spaces are
10349      # common. (e.g. "Program Files" -> "PROGRA~1")
10350      ;;
10351    esac
10352
10353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10354    postinstall_cmds='base_file=`basename \${file}`~
10355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10356      dldir=$destdir/`dirname \$dlpath`~
10357      test -d \$dldir || mkdir -p \$dldir~
10358      $install_prog $dir/$dlname \$dldir/$dlname'
10359    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10360      dlpath=$dir/\$dldll~
10361       $RM \$dlpath'
10362    shlibpath_overrides_runpath=yes
10363    dynamic_linker='Win32 link.exe'
10364    ;;
10365
10366  *)
10367    # Assume MSVC wrapper
10368    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10369    dynamic_linker='Win32 ld.exe'
10370    ;;
10371  esac
10372  # FIXME: first we should search . and the directory the executable is in
10373  shlibpath_var=PATH
10374  ;;
10375
10376darwin* | rhapsody*)
10377  dynamic_linker="$host_os dyld"
10378  version_type=darwin
10379  need_lib_prefix=no
10380  need_version=no
10381  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10382  soname_spec='${libname}${release}${major}$shared_ext'
10383  shlibpath_overrides_runpath=yes
10384  shlibpath_var=DYLD_LIBRARY_PATH
10385  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10386
10387  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10388  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10389  ;;
10390
10391dgux*)
10392  version_type=linux # correct to gnu/linux during the next big refactor
10393  need_lib_prefix=no
10394  need_version=no
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10396  soname_spec='${libname}${release}${shared_ext}$major'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  ;;
10399
10400freebsd* | dragonfly*)
10401  # DragonFly does not have aout.  When/if they implement a new
10402  # versioning mechanism, adjust this.
10403  if test -x /usr/bin/objformat; then
10404    objformat=`/usr/bin/objformat`
10405  else
10406    case $host_os in
10407    freebsd[23].*) objformat=aout ;;
10408    *) objformat=elf ;;
10409    esac
10410  fi
10411  version_type=freebsd-$objformat
10412  case $version_type in
10413    freebsd-elf*)
10414      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415      need_version=no
10416      need_lib_prefix=no
10417      ;;
10418    freebsd-*)
10419      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10420      need_version=yes
10421      ;;
10422  esac
10423  shlibpath_var=LD_LIBRARY_PATH
10424  case $host_os in
10425  freebsd2.*)
10426    shlibpath_overrides_runpath=yes
10427    ;;
10428  freebsd3.[01]* | freebsdelf3.[01]*)
10429    shlibpath_overrides_runpath=yes
10430    hardcode_into_libs=yes
10431    ;;
10432  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10433  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10434    shlibpath_overrides_runpath=no
10435    hardcode_into_libs=yes
10436    ;;
10437  *) # from 4.6 on, and DragonFly
10438    shlibpath_overrides_runpath=yes
10439    hardcode_into_libs=yes
10440    ;;
10441  esac
10442  ;;
10443
10444haiku*)
10445  version_type=linux # correct to gnu/linux during the next big refactor
10446  need_lib_prefix=no
10447  need_version=no
10448  dynamic_linker="$host_os runtime_loader"
10449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10450  soname_spec='${libname}${release}${shared_ext}$major'
10451  shlibpath_var=LIBRARY_PATH
10452  shlibpath_overrides_runpath=yes
10453  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10454  hardcode_into_libs=yes
10455  ;;
10456
10457hpux9* | hpux10* | hpux11*)
10458  # Give a soname corresponding to the major version so that dld.sl refuses to
10459  # link against other versions.
10460  version_type=sunos
10461  need_lib_prefix=no
10462  need_version=no
10463  case $host_cpu in
10464  ia64*)
10465    shrext_cmds='.so'
10466    hardcode_into_libs=yes
10467    dynamic_linker="$host_os dld.so"
10468    shlibpath_var=LD_LIBRARY_PATH
10469    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10470    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471    soname_spec='${libname}${release}${shared_ext}$major'
10472    if test "X$HPUX_IA64_MODE" = X32; then
10473      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10474    else
10475      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10476    fi
10477    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10478    ;;
10479  hppa*64*)
10480    shrext_cmds='.sl'
10481    hardcode_into_libs=yes
10482    dynamic_linker="$host_os dld.sl"
10483    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    soname_spec='${libname}${release}${shared_ext}$major'
10487    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10488    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10489    ;;
10490  *)
10491    shrext_cmds='.sl'
10492    dynamic_linker="$host_os dld.sl"
10493    shlibpath_var=SHLIB_PATH
10494    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10495    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496    soname_spec='${libname}${release}${shared_ext}$major'
10497    ;;
10498  esac
10499  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10500  postinstall_cmds='chmod 555 $lib'
10501  # or fails outright, so override atomically:
10502  install_override_mode=555
10503  ;;
10504
10505interix[3-9]*)
10506  version_type=linux # correct to gnu/linux during the next big refactor
10507  need_lib_prefix=no
10508  need_version=no
10509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10510  soname_spec='${libname}${release}${shared_ext}$major'
10511  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10512  shlibpath_var=LD_LIBRARY_PATH
10513  shlibpath_overrides_runpath=no
10514  hardcode_into_libs=yes
10515  ;;
10516
10517irix5* | irix6* | nonstopux*)
10518  case $host_os in
10519    nonstopux*) version_type=nonstopux ;;
10520    *)
10521	if test "$lt_cv_prog_gnu_ld" = yes; then
10522		version_type=linux # correct to gnu/linux during the next big refactor
10523	else
10524		version_type=irix
10525	fi ;;
10526  esac
10527  need_lib_prefix=no
10528  need_version=no
10529  soname_spec='${libname}${release}${shared_ext}$major'
10530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10531  case $host_os in
10532  irix5* | nonstopux*)
10533    libsuff= shlibsuff=
10534    ;;
10535  *)
10536    case $LD in # libtool.m4 will add one of these switches to LD
10537    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10538      libsuff= shlibsuff= libmagic=32-bit;;
10539    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10540      libsuff=32 shlibsuff=N32 libmagic=N32;;
10541    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10542      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10543    *) libsuff= shlibsuff= libmagic=never-match;;
10544    esac
10545    ;;
10546  esac
10547  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10548  shlibpath_overrides_runpath=no
10549  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10550  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10551  hardcode_into_libs=yes
10552  ;;
10553
10554# No shared lib support for Linux oldld, aout, or coff.
10555linux*oldld* | linux*aout* | linux*coff*)
10556  dynamic_linker=no
10557  ;;
10558
10559# This must be glibc/ELF.
10560linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10561  version_type=linux # correct to gnu/linux during the next big refactor
10562  need_lib_prefix=no
10563  need_version=no
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565  soname_spec='${libname}${release}${shared_ext}$major'
10566  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10567  shlibpath_var=LD_LIBRARY_PATH
10568  shlibpath_overrides_runpath=no
10569
10570  # Some binutils ld are patched to set DT_RUNPATH
10571  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10572  $as_echo_n "(cached) " >&6
10573else
10574  lt_cv_shlibpath_overrides_runpath=no
10575    save_LDFLAGS=$LDFLAGS
10576    save_libdir=$libdir
10577    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10578	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h.  */
10581
10582int
10583main ()
10584{
10585
10586  ;
10587  return 0;
10588}
10589_ACEOF
10590if ac_fn_c_try_link "$LINENO"; then :
10591  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10592  lt_cv_shlibpath_overrides_runpath=yes
10593fi
10594fi
10595rm -f core conftest.err conftest.$ac_objext \
10596    conftest$ac_exeext conftest.$ac_ext
10597    LDFLAGS=$save_LDFLAGS
10598    libdir=$save_libdir
10599
10600fi
10601
10602  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10603
10604  # This implies no fast_install, which is unacceptable.
10605  # Some rework will be needed to allow for fast_install
10606  # before this can be enabled.
10607  hardcode_into_libs=yes
10608
10609  # Append ld.so.conf contents to the search path
10610  if test -f /etc/ld.so.conf; then
10611    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' ' '`
10612    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10613  fi
10614
10615  # We used to test for /lib/ld.so.1 and disable shared libraries on
10616  # powerpc, because MkLinux only supported shared libraries with the
10617  # GNU dynamic linker.  Since this was broken with cross compilers,
10618  # most powerpc-linux boxes support dynamic linking these days and
10619  # people can always --disable-shared, the test was removed, and we
10620  # assume the GNU/Linux dynamic linker is in use.
10621  dynamic_linker='GNU/Linux ld.so'
10622  ;;
10623
10624netbsdelf*-gnu)
10625  version_type=linux
10626  need_lib_prefix=no
10627  need_version=no
10628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10629  soname_spec='${libname}${release}${shared_ext}$major'
10630  shlibpath_var=LD_LIBRARY_PATH
10631  shlibpath_overrides_runpath=no
10632  hardcode_into_libs=yes
10633  dynamic_linker='NetBSD ld.elf_so'
10634  ;;
10635
10636netbsd*)
10637  version_type=sunos
10638  need_lib_prefix=no
10639  need_version=no
10640  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10641    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10642    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10643    dynamic_linker='NetBSD (a.out) ld.so'
10644  else
10645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10646    soname_spec='${libname}${release}${shared_ext}$major'
10647    dynamic_linker='NetBSD ld.elf_so'
10648  fi
10649  shlibpath_var=LD_LIBRARY_PATH
10650  shlibpath_overrides_runpath=yes
10651  hardcode_into_libs=yes
10652  ;;
10653
10654newsos6)
10655  version_type=linux # correct to gnu/linux during the next big refactor
10656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657  shlibpath_var=LD_LIBRARY_PATH
10658  shlibpath_overrides_runpath=yes
10659  ;;
10660
10661*nto* | *qnx*)
10662  version_type=qnx
10663  need_lib_prefix=no
10664  need_version=no
10665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  shlibpath_overrides_runpath=no
10669  hardcode_into_libs=yes
10670  dynamic_linker='ldqnx.so'
10671  ;;
10672
10673openbsd*)
10674  version_type=sunos
10675  sys_lib_dlsearch_path_spec="/usr/lib"
10676  need_lib_prefix=no
10677  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10678  case $host_os in
10679    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10680    *)				need_version=no  ;;
10681  esac
10682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10683  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10684  shlibpath_var=LD_LIBRARY_PATH
10685  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10686    case $host_os in
10687      openbsd2.[89] | openbsd2.[89].*)
10688	shlibpath_overrides_runpath=no
10689	;;
10690      *)
10691	shlibpath_overrides_runpath=yes
10692	;;
10693      esac
10694  else
10695    shlibpath_overrides_runpath=yes
10696  fi
10697  ;;
10698
10699os2*)
10700  libname_spec='$name'
10701  shrext_cmds=".dll"
10702  need_lib_prefix=no
10703  library_names_spec='$libname${shared_ext} $libname.a'
10704  dynamic_linker='OS/2 ld.exe'
10705  shlibpath_var=LIBPATH
10706  ;;
10707
10708osf3* | osf4* | osf5*)
10709  version_type=osf
10710  need_lib_prefix=no
10711  need_version=no
10712  soname_spec='${libname}${release}${shared_ext}$major'
10713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714  shlibpath_var=LD_LIBRARY_PATH
10715  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10716  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10717  ;;
10718
10719rdos*)
10720  dynamic_linker=no
10721  ;;
10722
10723solaris*)
10724  version_type=linux # correct to gnu/linux during the next big refactor
10725  need_lib_prefix=no
10726  need_version=no
10727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728  soname_spec='${libname}${release}${shared_ext}$major'
10729  shlibpath_var=LD_LIBRARY_PATH
10730  shlibpath_overrides_runpath=yes
10731  hardcode_into_libs=yes
10732  # ldd complains unless libraries are executable
10733  postinstall_cmds='chmod +x $lib'
10734  ;;
10735
10736sunos4*)
10737  version_type=sunos
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10739  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10740  shlibpath_var=LD_LIBRARY_PATH
10741  shlibpath_overrides_runpath=yes
10742  if test "$with_gnu_ld" = yes; then
10743    need_lib_prefix=no
10744  fi
10745  need_version=yes
10746  ;;
10747
10748sysv4 | sysv4.3*)
10749  version_type=linux # correct to gnu/linux during the next big refactor
10750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751  soname_spec='${libname}${release}${shared_ext}$major'
10752  shlibpath_var=LD_LIBRARY_PATH
10753  case $host_vendor in
10754    sni)
10755      shlibpath_overrides_runpath=no
10756      need_lib_prefix=no
10757      runpath_var=LD_RUN_PATH
10758      ;;
10759    siemens)
10760      need_lib_prefix=no
10761      ;;
10762    motorola)
10763      need_lib_prefix=no
10764      need_version=no
10765      shlibpath_overrides_runpath=no
10766      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10767      ;;
10768  esac
10769  ;;
10770
10771sysv4*MP*)
10772  if test -d /usr/nec ;then
10773    version_type=linux # correct to gnu/linux during the next big refactor
10774    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10775    soname_spec='$libname${shared_ext}.$major'
10776    shlibpath_var=LD_LIBRARY_PATH
10777  fi
10778  ;;
10779
10780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10781  version_type=freebsd-elf
10782  need_lib_prefix=no
10783  need_version=no
10784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10785  soname_spec='${libname}${release}${shared_ext}$major'
10786  shlibpath_var=LD_LIBRARY_PATH
10787  shlibpath_overrides_runpath=yes
10788  hardcode_into_libs=yes
10789  if test "$with_gnu_ld" = yes; then
10790    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10791  else
10792    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10793    case $host_os in
10794      sco3.2v5*)
10795        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10796	;;
10797    esac
10798  fi
10799  sys_lib_dlsearch_path_spec='/usr/lib'
10800  ;;
10801
10802tpf*)
10803  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10804  version_type=linux # correct to gnu/linux during the next big refactor
10805  need_lib_prefix=no
10806  need_version=no
10807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808  shlibpath_var=LD_LIBRARY_PATH
10809  shlibpath_overrides_runpath=no
10810  hardcode_into_libs=yes
10811  ;;
10812
10813uts4*)
10814  version_type=linux # correct to gnu/linux during the next big refactor
10815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816  soname_spec='${libname}${release}${shared_ext}$major'
10817  shlibpath_var=LD_LIBRARY_PATH
10818  ;;
10819
10820*)
10821  dynamic_linker=no
10822  ;;
10823esac
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10825$as_echo "$dynamic_linker" >&6; }
10826test "$dynamic_linker" = no && can_build_shared=no
10827
10828variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10829if test "$GCC" = yes; then
10830  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10831fi
10832
10833if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10834  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10835fi
10836if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10837  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10838fi
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10932$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10933hardcode_action=
10934if test -n "$hardcode_libdir_flag_spec" ||
10935   test -n "$runpath_var" ||
10936   test "X$hardcode_automatic" = "Xyes" ; then
10937
10938  # We can hardcode non-existent directories.
10939  if test "$hardcode_direct" != no &&
10940     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10941     # have to relink, otherwise we might link with an installed library
10942     # when we should be linking with a yet-to-be-installed one
10943     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10944     test "$hardcode_minus_L" != no; then
10945    # Linking always hardcodes the temporary library directory.
10946    hardcode_action=relink
10947  else
10948    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10949    hardcode_action=immediate
10950  fi
10951else
10952  # We cannot hardcode anything, or else we can only hardcode existing
10953  # directories.
10954  hardcode_action=unsupported
10955fi
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10957$as_echo "$hardcode_action" >&6; }
10958
10959if test "$hardcode_action" = relink ||
10960   test "$inherit_rpath" = yes; then
10961  # Fast installation is not supported
10962  enable_fast_install=no
10963elif test "$shlibpath_overrides_runpath" = yes ||
10964     test "$enable_shared" = no; then
10965  # Fast installation is not necessary
10966  enable_fast_install=needless
10967fi
10968
10969
10970
10971
10972
10973
10974  if test "x$enable_dlopen" != xyes; then
10975  enable_dlopen=unknown
10976  enable_dlopen_self=unknown
10977  enable_dlopen_self_static=unknown
10978else
10979  lt_cv_dlopen=no
10980  lt_cv_dlopen_libs=
10981
10982  case $host_os in
10983  beos*)
10984    lt_cv_dlopen="load_add_on"
10985    lt_cv_dlopen_libs=
10986    lt_cv_dlopen_self=yes
10987    ;;
10988
10989  mingw* | pw32* | cegcc*)
10990    lt_cv_dlopen="LoadLibrary"
10991    lt_cv_dlopen_libs=
10992    ;;
10993
10994  cygwin*)
10995    lt_cv_dlopen="dlopen"
10996    lt_cv_dlopen_libs=
10997    ;;
10998
10999  darwin*)
11000  # if libdl is installed we need to link against it
11001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11002$as_echo_n "checking for dlopen in -ldl... " >&6; }
11003if ${ac_cv_lib_dl_dlopen+:} false; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  ac_check_lib_save_LIBS=$LIBS
11007LIBS="-ldl  $LIBS"
11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h.  */
11010
11011/* Override any GCC internal prototype to avoid an error.
11012   Use char because int might match the return type of a GCC
11013   builtin and then its argument prototype would still apply.  */
11014#ifdef __cplusplus
11015extern "C"
11016#endif
11017char dlopen ();
11018int
11019main ()
11020{
11021return dlopen ();
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027  ac_cv_lib_dl_dlopen=yes
11028else
11029  ac_cv_lib_dl_dlopen=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032    conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11037if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11038  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11039else
11040
11041    lt_cv_dlopen="dyld"
11042    lt_cv_dlopen_libs=
11043    lt_cv_dlopen_self=yes
11044
11045fi
11046
11047    ;;
11048
11049  *)
11050    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11051if test "x$ac_cv_func_shl_load" = xyes; then :
11052  lt_cv_dlopen="shl_load"
11053else
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11055$as_echo_n "checking for shl_load in -ldld... " >&6; }
11056if ${ac_cv_lib_dld_shl_load+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  ac_check_lib_save_LIBS=$LIBS
11060LIBS="-ldld  $LIBS"
11061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h.  */
11063
11064/* Override any GCC internal prototype to avoid an error.
11065   Use char because int might match the return type of a GCC
11066   builtin and then its argument prototype would still apply.  */
11067#ifdef __cplusplus
11068extern "C"
11069#endif
11070char shl_load ();
11071int
11072main ()
11073{
11074return shl_load ();
11075  ;
11076  return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"; then :
11080  ac_cv_lib_dld_shl_load=yes
11081else
11082  ac_cv_lib_dld_shl_load=no
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085    conftest$ac_exeext conftest.$ac_ext
11086LIBS=$ac_check_lib_save_LIBS
11087fi
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11089$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11090if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11091  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11092else
11093  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11094if test "x$ac_cv_func_dlopen" = xyes; then :
11095  lt_cv_dlopen="dlopen"
11096else
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11098$as_echo_n "checking for dlopen in -ldl... " >&6; }
11099if ${ac_cv_lib_dl_dlopen+:} false; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  ac_check_lib_save_LIBS=$LIBS
11103LIBS="-ldl  $LIBS"
11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106
11107/* Override any GCC internal prototype to avoid an error.
11108   Use char because int might match the return type of a GCC
11109   builtin and then its argument prototype would still apply.  */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char dlopen ();
11114int
11115main ()
11116{
11117return dlopen ();
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123  ac_cv_lib_dl_dlopen=yes
11124else
11125  ac_cv_lib_dl_dlopen=no
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128    conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11132$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11133if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11134  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11135else
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11137$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11138if ${ac_cv_lib_svld_dlopen+:} false; then :
11139  $as_echo_n "(cached) " >&6
11140else
11141  ac_check_lib_save_LIBS=$LIBS
11142LIBS="-lsvld  $LIBS"
11143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145
11146/* Override any GCC internal prototype to avoid an error.
11147   Use char because int might match the return type of a GCC
11148   builtin and then its argument prototype would still apply.  */
11149#ifdef __cplusplus
11150extern "C"
11151#endif
11152char dlopen ();
11153int
11154main ()
11155{
11156return dlopen ();
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161if ac_fn_c_try_link "$LINENO"; then :
11162  ac_cv_lib_svld_dlopen=yes
11163else
11164  ac_cv_lib_svld_dlopen=no
11165fi
11166rm -f core conftest.err conftest.$ac_objext \
11167    conftest$ac_exeext conftest.$ac_ext
11168LIBS=$ac_check_lib_save_LIBS
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11171$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11172if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11173  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11174else
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11176$as_echo_n "checking for dld_link in -ldld... " >&6; }
11177if ${ac_cv_lib_dld_dld_link+:} false; then :
11178  $as_echo_n "(cached) " >&6
11179else
11180  ac_check_lib_save_LIBS=$LIBS
11181LIBS="-ldld  $LIBS"
11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184
11185/* Override any GCC internal prototype to avoid an error.
11186   Use char because int might match the return type of a GCC
11187   builtin and then its argument prototype would still apply.  */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char dld_link ();
11192int
11193main ()
11194{
11195return dld_link ();
11196  ;
11197  return 0;
11198}
11199_ACEOF
11200if ac_fn_c_try_link "$LINENO"; then :
11201  ac_cv_lib_dld_dld_link=yes
11202else
11203  ac_cv_lib_dld_dld_link=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206    conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11210$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11211if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11212  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11213fi
11214
11215
11216fi
11217
11218
11219fi
11220
11221
11222fi
11223
11224
11225fi
11226
11227
11228fi
11229
11230    ;;
11231  esac
11232
11233  if test "x$lt_cv_dlopen" != xno; then
11234    enable_dlopen=yes
11235  else
11236    enable_dlopen=no
11237  fi
11238
11239  case $lt_cv_dlopen in
11240  dlopen)
11241    save_CPPFLAGS="$CPPFLAGS"
11242    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11243
11244    save_LDFLAGS="$LDFLAGS"
11245    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11246
11247    save_LIBS="$LIBS"
11248    LIBS="$lt_cv_dlopen_libs $LIBS"
11249
11250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11251$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11252if ${lt_cv_dlopen_self+:} false; then :
11253  $as_echo_n "(cached) " >&6
11254else
11255  	  if test "$cross_compiling" = yes; then :
11256  lt_cv_dlopen_self=cross
11257else
11258  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11259  lt_status=$lt_dlunknown
11260  cat > conftest.$ac_ext <<_LT_EOF
11261#line $LINENO "configure"
11262#include "confdefs.h"
11263
11264#if HAVE_DLFCN_H
11265#include <dlfcn.h>
11266#endif
11267
11268#include <stdio.h>
11269
11270#ifdef RTLD_GLOBAL
11271#  define LT_DLGLOBAL		RTLD_GLOBAL
11272#else
11273#  ifdef DL_GLOBAL
11274#    define LT_DLGLOBAL		DL_GLOBAL
11275#  else
11276#    define LT_DLGLOBAL		0
11277#  endif
11278#endif
11279
11280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11281   find out it does not work in some platform. */
11282#ifndef LT_DLLAZY_OR_NOW
11283#  ifdef RTLD_LAZY
11284#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11285#  else
11286#    ifdef DL_LAZY
11287#      define LT_DLLAZY_OR_NOW		DL_LAZY
11288#    else
11289#      ifdef RTLD_NOW
11290#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11291#      else
11292#        ifdef DL_NOW
11293#          define LT_DLLAZY_OR_NOW	DL_NOW
11294#        else
11295#          define LT_DLLAZY_OR_NOW	0
11296#        endif
11297#      endif
11298#    endif
11299#  endif
11300#endif
11301
11302/* When -fvisbility=hidden is used, assume the code has been annotated
11303   correspondingly for the symbols needed.  */
11304#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11305int fnord () __attribute__((visibility("default")));
11306#endif
11307
11308int fnord () { return 42; }
11309int main ()
11310{
11311  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11312  int status = $lt_dlunknown;
11313
11314  if (self)
11315    {
11316      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11317      else
11318        {
11319	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11320          else puts (dlerror ());
11321	}
11322      /* dlclose (self); */
11323    }
11324  else
11325    puts (dlerror ());
11326
11327  return status;
11328}
11329_LT_EOF
11330  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11331  (eval $ac_link) 2>&5
11332  ac_status=$?
11333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11334  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11335    (./conftest; exit; ) >&5 2>/dev/null
11336    lt_status=$?
11337    case x$lt_status in
11338      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11339      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11340      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11341    esac
11342  else :
11343    # compilation failed
11344    lt_cv_dlopen_self=no
11345  fi
11346fi
11347rm -fr conftest*
11348
11349
11350fi
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11352$as_echo "$lt_cv_dlopen_self" >&6; }
11353
11354    if test "x$lt_cv_dlopen_self" = xyes; then
11355      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11356      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11357$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11358if ${lt_cv_dlopen_self_static+:} false; then :
11359  $as_echo_n "(cached) " >&6
11360else
11361  	  if test "$cross_compiling" = yes; then :
11362  lt_cv_dlopen_self_static=cross
11363else
11364  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11365  lt_status=$lt_dlunknown
11366  cat > conftest.$ac_ext <<_LT_EOF
11367#line $LINENO "configure"
11368#include "confdefs.h"
11369
11370#if HAVE_DLFCN_H
11371#include <dlfcn.h>
11372#endif
11373
11374#include <stdio.h>
11375
11376#ifdef RTLD_GLOBAL
11377#  define LT_DLGLOBAL		RTLD_GLOBAL
11378#else
11379#  ifdef DL_GLOBAL
11380#    define LT_DLGLOBAL		DL_GLOBAL
11381#  else
11382#    define LT_DLGLOBAL		0
11383#  endif
11384#endif
11385
11386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11387   find out it does not work in some platform. */
11388#ifndef LT_DLLAZY_OR_NOW
11389#  ifdef RTLD_LAZY
11390#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11391#  else
11392#    ifdef DL_LAZY
11393#      define LT_DLLAZY_OR_NOW		DL_LAZY
11394#    else
11395#      ifdef RTLD_NOW
11396#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11397#      else
11398#        ifdef DL_NOW
11399#          define LT_DLLAZY_OR_NOW	DL_NOW
11400#        else
11401#          define LT_DLLAZY_OR_NOW	0
11402#        endif
11403#      endif
11404#    endif
11405#  endif
11406#endif
11407
11408/* When -fvisbility=hidden is used, assume the code has been annotated
11409   correspondingly for the symbols needed.  */
11410#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11411int fnord () __attribute__((visibility("default")));
11412#endif
11413
11414int fnord () { return 42; }
11415int main ()
11416{
11417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11418  int status = $lt_dlunknown;
11419
11420  if (self)
11421    {
11422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11423      else
11424        {
11425	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11426          else puts (dlerror ());
11427	}
11428      /* dlclose (self); */
11429    }
11430  else
11431    puts (dlerror ());
11432
11433  return status;
11434}
11435_LT_EOF
11436  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11437  (eval $ac_link) 2>&5
11438  ac_status=$?
11439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11441    (./conftest; exit; ) >&5 2>/dev/null
11442    lt_status=$?
11443    case x$lt_status in
11444      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11445      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11446      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11447    esac
11448  else :
11449    # compilation failed
11450    lt_cv_dlopen_self_static=no
11451  fi
11452fi
11453rm -fr conftest*
11454
11455
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11458$as_echo "$lt_cv_dlopen_self_static" >&6; }
11459    fi
11460
11461    CPPFLAGS="$save_CPPFLAGS"
11462    LDFLAGS="$save_LDFLAGS"
11463    LIBS="$save_LIBS"
11464    ;;
11465  esac
11466
11467  case $lt_cv_dlopen_self in
11468  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11469  *) enable_dlopen_self=unknown ;;
11470  esac
11471
11472  case $lt_cv_dlopen_self_static in
11473  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11474  *) enable_dlopen_self_static=unknown ;;
11475  esac
11476fi
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494striplib=
11495old_striplib=
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11497$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11498if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11499  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11500  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11502$as_echo "yes" >&6; }
11503else
11504# FIXME - insert some real tests, host_os isn't really good enough
11505  case $host_os in
11506  darwin*)
11507    if test -n "$STRIP" ; then
11508      striplib="$STRIP -x"
11509      old_striplib="$STRIP -S"
11510      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11511$as_echo "yes" >&6; }
11512    else
11513      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514$as_echo "no" >&6; }
11515    fi
11516    ;;
11517  *)
11518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520    ;;
11521  esac
11522fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535  # Report which library types will actually be built
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11537$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11539$as_echo "$can_build_shared" >&6; }
11540
11541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11542$as_echo_n "checking whether to build shared libraries... " >&6; }
11543  test "$can_build_shared" = "no" && enable_shared=no
11544
11545  # On AIX, shared libraries and static libraries use the same namespace, and
11546  # are all built from PIC.
11547  case $host_os in
11548  aix3*)
11549    test "$enable_shared" = yes && enable_static=no
11550    if test -n "$RANLIB"; then
11551      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11552      postinstall_cmds='$RANLIB $lib'
11553    fi
11554    ;;
11555
11556  aix[4-9]*)
11557    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11558      test "$enable_shared" = yes && enable_static=no
11559    fi
11560    ;;
11561  esac
11562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11563$as_echo "$enable_shared" >&6; }
11564
11565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11566$as_echo_n "checking whether to build static libraries... " >&6; }
11567  # Make sure either enable_shared or enable_static is yes.
11568  test "$enable_shared" = yes || enable_static=yes
11569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11570$as_echo "$enable_static" >&6; }
11571
11572
11573
11574
11575fi
11576ac_ext=c
11577ac_cpp='$CPP $CPPFLAGS'
11578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11580ac_compiler_gnu=$ac_cv_c_compiler_gnu
11581
11582CC="$lt_save_CC"
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598        ac_config_commands="$ac_config_commands libtool"
11599
11600
11601
11602
11603# Only expand once:
11604
11605
11606
11607# Require xorg-macros: XORG_DEFAULT_OPTIONS
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11620$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11621if ${ac_cv_prog_cc_c99+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  ac_cv_prog_cc_c99=no
11625ac_save_CC=$CC
11626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628#include <stdarg.h>
11629#include <stdbool.h>
11630#include <stdlib.h>
11631#include <wchar.h>
11632#include <stdio.h>
11633
11634// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11635#define debug(...) fprintf (stderr, __VA_ARGS__)
11636#define showlist(...) puts (#__VA_ARGS__)
11637#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11638static void
11639test_varargs_macros (void)
11640{
11641  int x = 1234;
11642  int y = 5678;
11643  debug ("Flag");
11644  debug ("X = %d\n", x);
11645  showlist (The first, second, and third items.);
11646  report (x>y, "x is %d but y is %d", x, y);
11647}
11648
11649// Check long long types.
11650#define BIG64 18446744073709551615ull
11651#define BIG32 4294967295ul
11652#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11653#if !BIG_OK
11654  your preprocessor is broken;
11655#endif
11656#if BIG_OK
11657#else
11658  your preprocessor is broken;
11659#endif
11660static long long int bignum = -9223372036854775807LL;
11661static unsigned long long int ubignum = BIG64;
11662
11663struct incomplete_array
11664{
11665  int datasize;
11666  double data[];
11667};
11668
11669struct named_init {
11670  int number;
11671  const wchar_t *name;
11672  double average;
11673};
11674
11675typedef const char *ccp;
11676
11677static inline int
11678test_restrict (ccp restrict text)
11679{
11680  // See if C++-style comments work.
11681  // Iterate through items via the restricted pointer.
11682  // Also check for declarations in for loops.
11683  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11684    continue;
11685  return 0;
11686}
11687
11688// Check varargs and va_copy.
11689static void
11690test_varargs (const char *format, ...)
11691{
11692  va_list args;
11693  va_start (args, format);
11694  va_list args_copy;
11695  va_copy (args_copy, args);
11696
11697  const char *str;
11698  int number;
11699  float fnumber;
11700
11701  while (*format)
11702    {
11703      switch (*format++)
11704	{
11705	case 's': // string
11706	  str = va_arg (args_copy, const char *);
11707	  break;
11708	case 'd': // int
11709	  number = va_arg (args_copy, int);
11710	  break;
11711	case 'f': // float
11712	  fnumber = va_arg (args_copy, double);
11713	  break;
11714	default:
11715	  break;
11716	}
11717    }
11718  va_end (args_copy);
11719  va_end (args);
11720}
11721
11722int
11723main ()
11724{
11725
11726  // Check bool.
11727  _Bool success = false;
11728
11729  // Check restrict.
11730  if (test_restrict ("String literal") == 0)
11731    success = true;
11732  char *restrict newvar = "Another string";
11733
11734  // Check varargs.
11735  test_varargs ("s, d' f .", "string", 65, 34.234);
11736  test_varargs_macros ();
11737
11738  // Check flexible array members.
11739  struct incomplete_array *ia =
11740    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11741  ia->datasize = 10;
11742  for (int i = 0; i < ia->datasize; ++i)
11743    ia->data[i] = i * 1.234;
11744
11745  // Check named initializers.
11746  struct named_init ni = {
11747    .number = 34,
11748    .name = L"Test wide string",
11749    .average = 543.34343,
11750  };
11751
11752  ni.number = 58;
11753
11754  int dynamic_array[ni.number];
11755  dynamic_array[ni.number - 1] = 543;
11756
11757  // work around unused variable warnings
11758  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11759	  || dynamic_array[ni.number - 1] != 543);
11760
11761  ;
11762  return 0;
11763}
11764_ACEOF
11765for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11766do
11767  CC="$ac_save_CC $ac_arg"
11768  if ac_fn_c_try_compile "$LINENO"; then :
11769  ac_cv_prog_cc_c99=$ac_arg
11770fi
11771rm -f core conftest.err conftest.$ac_objext
11772  test "x$ac_cv_prog_cc_c99" != "xno" && break
11773done
11774rm -f conftest.$ac_ext
11775CC=$ac_save_CC
11776
11777fi
11778# AC_CACHE_VAL
11779case "x$ac_cv_prog_cc_c99" in
11780  x)
11781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11782$as_echo "none needed" >&6; } ;;
11783  xno)
11784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11785$as_echo "unsupported" >&6; } ;;
11786  *)
11787    CC="$CC $ac_cv_prog_cc_c99"
11788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11789$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11790esac
11791if test "x$ac_cv_prog_cc_c99" != xno; then :
11792
11793fi
11794
11795
11796
11797
11798
11799
11800ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11801if test "x$ac_cv_have_decl___clang__" = xyes; then :
11802  CLANGCC="yes"
11803else
11804  CLANGCC="no"
11805fi
11806
11807ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11808if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11809  INTELCC="yes"
11810else
11811  INTELCC="no"
11812fi
11813
11814ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11815if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11816  SUNCC="yes"
11817else
11818  SUNCC="no"
11819fi
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11830	if test -n "$ac_tool_prefix"; then
11831  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11832set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if ${ac_cv_path_PKG_CONFIG+:} false; then :
11836  $as_echo_n "(cached) " >&6
11837else
11838  case $PKG_CONFIG in
11839  [\\/]* | ?:[\\/]*)
11840  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11841  ;;
11842  *)
11843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $PATH
11845do
11846  IFS=$as_save_IFS
11847  test -z "$as_dir" && as_dir=.
11848    for ac_exec_ext in '' $ac_executable_extensions; do
11849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852    break 2
11853  fi
11854done
11855  done
11856IFS=$as_save_IFS
11857
11858  ;;
11859esac
11860fi
11861PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11862if test -n "$PKG_CONFIG"; then
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11864$as_echo "$PKG_CONFIG" >&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_path_PKG_CONFIG"; then
11873  ac_pt_PKG_CONFIG=$PKG_CONFIG
11874  # Extract the first word of "pkg-config", so it can be a program name with args.
11875set dummy pkg-config; 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_path_ac_pt_PKG_CONFIG+:} false; then :
11879  $as_echo_n "(cached) " >&6
11880else
11881  case $ac_pt_PKG_CONFIG in
11882  [\\/]* | ?:[\\/]*)
11883  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11884  ;;
11885  *)
11886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889  IFS=$as_save_IFS
11890  test -z "$as_dir" && as_dir=.
11891    for ac_exec_ext in '' $ac_executable_extensions; do
11892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895    break 2
11896  fi
11897done
11898  done
11899IFS=$as_save_IFS
11900
11901  ;;
11902esac
11903fi
11904ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11905if test -n "$ac_pt_PKG_CONFIG"; then
11906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11907$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11908else
11909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
11911fi
11912
11913  if test "x$ac_pt_PKG_CONFIG" = x; then
11914    PKG_CONFIG=""
11915  else
11916    case $cross_compiling:$ac_tool_warned in
11917yes:)
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11920ac_tool_warned=yes ;;
11921esac
11922    PKG_CONFIG=$ac_pt_PKG_CONFIG
11923  fi
11924else
11925  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11926fi
11927
11928fi
11929if test -n "$PKG_CONFIG"; then
11930	_pkg_min_version=0.9.0
11931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11932$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11933	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11935$as_echo "yes" >&6; }
11936	else
11937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938$as_echo "no" >&6; }
11939		PKG_CONFIG=""
11940	fi
11941fi
11942
11943
11944
11945
11946
11947# Check whether --enable-selective-werror was given.
11948if test "${enable_selective_werror+set}" = set; then :
11949  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11950else
11951  SELECTIVE_WERROR=yes
11952fi
11953
11954
11955
11956
11957
11958# -v is too short to test reliably with XORG_TESTSET_CFLAG
11959if test "x$SUNCC" = "xyes"; then
11960    BASE_CFLAGS="-v"
11961else
11962    BASE_CFLAGS=""
11963fi
11964
11965# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979xorg_testset_save_CFLAGS="$CFLAGS"
11980
11981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989/* end confdefs.h.  */
11990int i;
11991_ACEOF
11992if ac_fn_c_try_compile "$LINENO"; then :
11993  xorg_cv_cc_flag_unknown_warning_option=yes
11994else
11995  xorg_cv_cc_flag_unknown_warning_option=no
11996fi
11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12002	CFLAGS="$xorg_testset_save_CFLAGS"
12003fi
12004
12005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12008	fi
12009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016/* end confdefs.h.  */
12017int i;
12018_ACEOF
12019if ac_fn_c_try_compile "$LINENO"; then :
12020  xorg_cv_cc_flag_unused_command_line_argument=yes
12021else
12022  xorg_cv_cc_flag_unused_command_line_argument=no
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025fi
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12029	CFLAGS="$xorg_testset_save_CFLAGS"
12030fi
12031
12032found="no"
12033
12034	if test $found = "no" ; then
12035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12037		fi
12038
12039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12041		fi
12042
12043		CFLAGS="$CFLAGS -Wall"
12044
12045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12046$as_echo_n "checking if $CC supports -Wall... " >&6; }
12047		cacheid=xorg_cv_cc_flag__Wall
12048		if eval \${$cacheid+:} false; then :
12049  $as_echo_n "(cached) " >&6
12050else
12051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053int i;
12054int
12055main ()
12056{
12057
12058  ;
12059  return 0;
12060}
12061_ACEOF
12062if ac_fn_c_try_link "$LINENO"; then :
12063  eval $cacheid=yes
12064else
12065  eval $cacheid=no
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068    conftest$ac_exeext conftest.$ac_ext
12069fi
12070
12071
12072		CFLAGS="$xorg_testset_save_CFLAGS"
12073
12074		eval supported=\$$cacheid
12075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12076$as_echo "$supported" >&6; }
12077		if test "$supported" = "yes" ; then
12078			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12079			found="yes"
12080		fi
12081	fi
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097xorg_testset_save_CFLAGS="$CFLAGS"
12098
12099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12104  $as_echo_n "(cached) " >&6
12105else
12106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h.  */
12108int i;
12109_ACEOF
12110if ac_fn_c_try_compile "$LINENO"; then :
12111  xorg_cv_cc_flag_unknown_warning_option=yes
12112else
12113  xorg_cv_cc_flag_unknown_warning_option=no
12114fi
12115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12120	CFLAGS="$xorg_testset_save_CFLAGS"
12121fi
12122
12123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12126	fi
12127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12131  $as_echo_n "(cached) " >&6
12132else
12133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h.  */
12135int i;
12136_ACEOF
12137if ac_fn_c_try_compile "$LINENO"; then :
12138  xorg_cv_cc_flag_unused_command_line_argument=yes
12139else
12140  xorg_cv_cc_flag_unused_command_line_argument=no
12141fi
12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143fi
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12147	CFLAGS="$xorg_testset_save_CFLAGS"
12148fi
12149
12150found="no"
12151
12152	if test $found = "no" ; then
12153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12155		fi
12156
12157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12159		fi
12160
12161		CFLAGS="$CFLAGS -Wpointer-arith"
12162
12163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12164$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12165		cacheid=xorg_cv_cc_flag__Wpointer_arith
12166		if eval \${$cacheid+:} false; then :
12167  $as_echo_n "(cached) " >&6
12168else
12169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h.  */
12171int i;
12172int
12173main ()
12174{
12175
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_link "$LINENO"; then :
12181  eval $cacheid=yes
12182else
12183  eval $cacheid=no
12184fi
12185rm -f core conftest.err conftest.$ac_objext \
12186    conftest$ac_exeext conftest.$ac_ext
12187fi
12188
12189
12190		CFLAGS="$xorg_testset_save_CFLAGS"
12191
12192		eval supported=\$$cacheid
12193		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12194$as_echo "$supported" >&6; }
12195		if test "$supported" = "yes" ; then
12196			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12197			found="yes"
12198		fi
12199	fi
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215xorg_testset_save_CFLAGS="$CFLAGS"
12216
12217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h.  */
12226int i;
12227_ACEOF
12228if ac_fn_c_try_compile "$LINENO"; then :
12229  xorg_cv_cc_flag_unknown_warning_option=yes
12230else
12231  xorg_cv_cc_flag_unknown_warning_option=no
12232fi
12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234fi
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12238	CFLAGS="$xorg_testset_save_CFLAGS"
12239fi
12240
12241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12244	fi
12245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12249  $as_echo_n "(cached) " >&6
12250else
12251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252/* end confdefs.h.  */
12253int i;
12254_ACEOF
12255if ac_fn_c_try_compile "$LINENO"; then :
12256  xorg_cv_cc_flag_unused_command_line_argument=yes
12257else
12258  xorg_cv_cc_flag_unused_command_line_argument=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12265	CFLAGS="$xorg_testset_save_CFLAGS"
12266fi
12267
12268found="no"
12269
12270	if test $found = "no" ; then
12271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12273		fi
12274
12275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12277		fi
12278
12279		CFLAGS="$CFLAGS -Wmissing-declarations"
12280
12281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12282$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12283		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12284		if eval \${$cacheid+:} false; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h.  */
12289int i;
12290int
12291main ()
12292{
12293
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298if ac_fn_c_try_link "$LINENO"; then :
12299  eval $cacheid=yes
12300else
12301  eval $cacheid=no
12302fi
12303rm -f core conftest.err conftest.$ac_objext \
12304    conftest$ac_exeext conftest.$ac_ext
12305fi
12306
12307
12308		CFLAGS="$xorg_testset_save_CFLAGS"
12309
12310		eval supported=\$$cacheid
12311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12312$as_echo "$supported" >&6; }
12313		if test "$supported" = "yes" ; then
12314			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12315			found="yes"
12316		fi
12317	fi
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333xorg_testset_save_CFLAGS="$CFLAGS"
12334
12335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344int i;
12345_ACEOF
12346if ac_fn_c_try_compile "$LINENO"; then :
12347  xorg_cv_cc_flag_unknown_warning_option=yes
12348else
12349  xorg_cv_cc_flag_unknown_warning_option=no
12350fi
12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12356	CFLAGS="$xorg_testset_save_CFLAGS"
12357fi
12358
12359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12362	fi
12363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12367  $as_echo_n "(cached) " >&6
12368else
12369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h.  */
12371int i;
12372_ACEOF
12373if ac_fn_c_try_compile "$LINENO"; then :
12374  xorg_cv_cc_flag_unused_command_line_argument=yes
12375else
12376  xorg_cv_cc_flag_unused_command_line_argument=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12383	CFLAGS="$xorg_testset_save_CFLAGS"
12384fi
12385
12386found="no"
12387
12388	if test $found = "no" ; then
12389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12391		fi
12392
12393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12395		fi
12396
12397		CFLAGS="$CFLAGS -Wformat=2"
12398
12399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12400$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12401		cacheid=xorg_cv_cc_flag__Wformat_2
12402		if eval \${$cacheid+:} false; then :
12403  $as_echo_n "(cached) " >&6
12404else
12405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h.  */
12407int i;
12408int
12409main ()
12410{
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_link "$LINENO"; then :
12417  eval $cacheid=yes
12418else
12419  eval $cacheid=no
12420fi
12421rm -f core conftest.err conftest.$ac_objext \
12422    conftest$ac_exeext conftest.$ac_ext
12423fi
12424
12425
12426		CFLAGS="$xorg_testset_save_CFLAGS"
12427
12428		eval supported=\$$cacheid
12429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12430$as_echo "$supported" >&6; }
12431		if test "$supported" = "yes" ; then
12432			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12433			found="yes"
12434		fi
12435	fi
12436
12437	if test $found = "no" ; then
12438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12440		fi
12441
12442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12444		fi
12445
12446		CFLAGS="$CFLAGS -Wformat"
12447
12448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12449$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12450		cacheid=xorg_cv_cc_flag__Wformat
12451		if eval \${$cacheid+:} false; then :
12452  $as_echo_n "(cached) " >&6
12453else
12454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455/* end confdefs.h.  */
12456int i;
12457int
12458main ()
12459{
12460
12461  ;
12462  return 0;
12463}
12464_ACEOF
12465if ac_fn_c_try_link "$LINENO"; then :
12466  eval $cacheid=yes
12467else
12468  eval $cacheid=no
12469fi
12470rm -f core conftest.err conftest.$ac_objext \
12471    conftest$ac_exeext conftest.$ac_ext
12472fi
12473
12474
12475		CFLAGS="$xorg_testset_save_CFLAGS"
12476
12477		eval supported=\$$cacheid
12478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12479$as_echo "$supported" >&6; }
12480		if test "$supported" = "yes" ; then
12481			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12482			found="yes"
12483		fi
12484	fi
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502xorg_testset_save_CFLAGS="$CFLAGS"
12503
12504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12509  $as_echo_n "(cached) " >&6
12510else
12511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513int i;
12514_ACEOF
12515if ac_fn_c_try_compile "$LINENO"; then :
12516  xorg_cv_cc_flag_unknown_warning_option=yes
12517else
12518  xorg_cv_cc_flag_unknown_warning_option=no
12519fi
12520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521fi
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12525	CFLAGS="$xorg_testset_save_CFLAGS"
12526fi
12527
12528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12531	fi
12532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12536  $as_echo_n "(cached) " >&6
12537else
12538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540int i;
12541_ACEOF
12542if ac_fn_c_try_compile "$LINENO"; then :
12543  xorg_cv_cc_flag_unused_command_line_argument=yes
12544else
12545  xorg_cv_cc_flag_unused_command_line_argument=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12552	CFLAGS="$xorg_testset_save_CFLAGS"
12553fi
12554
12555found="no"
12556
12557	if test $found = "no" ; then
12558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12560		fi
12561
12562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12564		fi
12565
12566		CFLAGS="$CFLAGS -Wstrict-prototypes"
12567
12568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12569$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12570		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12571		if eval \${$cacheid+:} false; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h.  */
12576int i;
12577int
12578main ()
12579{
12580
12581  ;
12582  return 0;
12583}
12584_ACEOF
12585if ac_fn_c_try_link "$LINENO"; then :
12586  eval $cacheid=yes
12587else
12588  eval $cacheid=no
12589fi
12590rm -f core conftest.err conftest.$ac_objext \
12591    conftest$ac_exeext conftest.$ac_ext
12592fi
12593
12594
12595		CFLAGS="$xorg_testset_save_CFLAGS"
12596
12597		eval supported=\$$cacheid
12598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12599$as_echo "$supported" >&6; }
12600		if test "$supported" = "yes" ; then
12601			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12602			found="yes"
12603		fi
12604	fi
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620xorg_testset_save_CFLAGS="$CFLAGS"
12621
12622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12627  $as_echo_n "(cached) " >&6
12628else
12629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h.  */
12631int i;
12632_ACEOF
12633if ac_fn_c_try_compile "$LINENO"; then :
12634  xorg_cv_cc_flag_unknown_warning_option=yes
12635else
12636  xorg_cv_cc_flag_unknown_warning_option=no
12637fi
12638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12643	CFLAGS="$xorg_testset_save_CFLAGS"
12644fi
12645
12646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12649	fi
12650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12654  $as_echo_n "(cached) " >&6
12655else
12656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657/* end confdefs.h.  */
12658int i;
12659_ACEOF
12660if ac_fn_c_try_compile "$LINENO"; then :
12661  xorg_cv_cc_flag_unused_command_line_argument=yes
12662else
12663  xorg_cv_cc_flag_unused_command_line_argument=no
12664fi
12665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666fi
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12670	CFLAGS="$xorg_testset_save_CFLAGS"
12671fi
12672
12673found="no"
12674
12675	if test $found = "no" ; then
12676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12678		fi
12679
12680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12682		fi
12683
12684		CFLAGS="$CFLAGS -Wmissing-prototypes"
12685
12686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12687$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12688		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12689		if eval \${$cacheid+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694int i;
12695int
12696main ()
12697{
12698
12699  ;
12700  return 0;
12701}
12702_ACEOF
12703if ac_fn_c_try_link "$LINENO"; then :
12704  eval $cacheid=yes
12705else
12706  eval $cacheid=no
12707fi
12708rm -f core conftest.err conftest.$ac_objext \
12709    conftest$ac_exeext conftest.$ac_ext
12710fi
12711
12712
12713		CFLAGS="$xorg_testset_save_CFLAGS"
12714
12715		eval supported=\$$cacheid
12716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12717$as_echo "$supported" >&6; }
12718		if test "$supported" = "yes" ; then
12719			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12720			found="yes"
12721		fi
12722	fi
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738xorg_testset_save_CFLAGS="$CFLAGS"
12739
12740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12745  $as_echo_n "(cached) " >&6
12746else
12747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h.  */
12749int i;
12750_ACEOF
12751if ac_fn_c_try_compile "$LINENO"; then :
12752  xorg_cv_cc_flag_unknown_warning_option=yes
12753else
12754  xorg_cv_cc_flag_unknown_warning_option=no
12755fi
12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12761	CFLAGS="$xorg_testset_save_CFLAGS"
12762fi
12763
12764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12767	fi
12768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12772  $as_echo_n "(cached) " >&6
12773else
12774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775/* end confdefs.h.  */
12776int i;
12777_ACEOF
12778if ac_fn_c_try_compile "$LINENO"; then :
12779  xorg_cv_cc_flag_unused_command_line_argument=yes
12780else
12781  xorg_cv_cc_flag_unused_command_line_argument=no
12782fi
12783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784fi
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12788	CFLAGS="$xorg_testset_save_CFLAGS"
12789fi
12790
12791found="no"
12792
12793	if test $found = "no" ; then
12794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12796		fi
12797
12798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12800		fi
12801
12802		CFLAGS="$CFLAGS -Wnested-externs"
12803
12804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12805$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12806		cacheid=xorg_cv_cc_flag__Wnested_externs
12807		if eval \${$cacheid+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812int i;
12813int
12814main ()
12815{
12816
12817  ;
12818  return 0;
12819}
12820_ACEOF
12821if ac_fn_c_try_link "$LINENO"; then :
12822  eval $cacheid=yes
12823else
12824  eval $cacheid=no
12825fi
12826rm -f core conftest.err conftest.$ac_objext \
12827    conftest$ac_exeext conftest.$ac_ext
12828fi
12829
12830
12831		CFLAGS="$xorg_testset_save_CFLAGS"
12832
12833		eval supported=\$$cacheid
12834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12835$as_echo "$supported" >&6; }
12836		if test "$supported" = "yes" ; then
12837			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12838			found="yes"
12839		fi
12840	fi
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856xorg_testset_save_CFLAGS="$CFLAGS"
12857
12858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12863  $as_echo_n "(cached) " >&6
12864else
12865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h.  */
12867int i;
12868_ACEOF
12869if ac_fn_c_try_compile "$LINENO"; then :
12870  xorg_cv_cc_flag_unknown_warning_option=yes
12871else
12872  xorg_cv_cc_flag_unknown_warning_option=no
12873fi
12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875fi
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12879	CFLAGS="$xorg_testset_save_CFLAGS"
12880fi
12881
12882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12885	fi
12886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894int i;
12895_ACEOF
12896if ac_fn_c_try_compile "$LINENO"; then :
12897  xorg_cv_cc_flag_unused_command_line_argument=yes
12898else
12899  xorg_cv_cc_flag_unused_command_line_argument=no
12900fi
12901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902fi
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12906	CFLAGS="$xorg_testset_save_CFLAGS"
12907fi
12908
12909found="no"
12910
12911	if test $found = "no" ; then
12912		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12914		fi
12915
12916		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12918		fi
12919
12920		CFLAGS="$CFLAGS -Wbad-function-cast"
12921
12922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12923$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12924		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12925		if eval \${$cacheid+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930int i;
12931int
12932main ()
12933{
12934
12935  ;
12936  return 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_link "$LINENO"; then :
12940  eval $cacheid=yes
12941else
12942  eval $cacheid=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext \
12945    conftest$ac_exeext conftest.$ac_ext
12946fi
12947
12948
12949		CFLAGS="$xorg_testset_save_CFLAGS"
12950
12951		eval supported=\$$cacheid
12952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12953$as_echo "$supported" >&6; }
12954		if test "$supported" = "yes" ; then
12955			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12956			found="yes"
12957		fi
12958	fi
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974xorg_testset_save_CFLAGS="$CFLAGS"
12975
12976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12981  $as_echo_n "(cached) " >&6
12982else
12983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h.  */
12985int i;
12986_ACEOF
12987if ac_fn_c_try_compile "$LINENO"; then :
12988  xorg_cv_cc_flag_unknown_warning_option=yes
12989else
12990  xorg_cv_cc_flag_unknown_warning_option=no
12991fi
12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12997	CFLAGS="$xorg_testset_save_CFLAGS"
12998fi
12999
13000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13003	fi
13004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13008  $as_echo_n "(cached) " >&6
13009else
13010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011/* end confdefs.h.  */
13012int i;
13013_ACEOF
13014if ac_fn_c_try_compile "$LINENO"; then :
13015  xorg_cv_cc_flag_unused_command_line_argument=yes
13016else
13017  xorg_cv_cc_flag_unused_command_line_argument=no
13018fi
13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020fi
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13024	CFLAGS="$xorg_testset_save_CFLAGS"
13025fi
13026
13027found="no"
13028
13029	if test $found = "no" ; then
13030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13032		fi
13033
13034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13036		fi
13037
13038		CFLAGS="$CFLAGS -Wold-style-definition"
13039
13040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13041$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13042		cacheid=xorg_cv_cc_flag__Wold_style_definition
13043		if eval \${$cacheid+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047/* end confdefs.h.  */
13048int i;
13049int
13050main ()
13051{
13052
13053  ;
13054  return 0;
13055}
13056_ACEOF
13057if ac_fn_c_try_link "$LINENO"; then :
13058  eval $cacheid=yes
13059else
13060  eval $cacheid=no
13061fi
13062rm -f core conftest.err conftest.$ac_objext \
13063    conftest$ac_exeext conftest.$ac_ext
13064fi
13065
13066
13067		CFLAGS="$xorg_testset_save_CFLAGS"
13068
13069		eval supported=\$$cacheid
13070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13071$as_echo "$supported" >&6; }
13072		if test "$supported" = "yes" ; then
13073			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13074			found="yes"
13075		fi
13076	fi
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092xorg_testset_save_CFLAGS="$CFLAGS"
13093
13094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13099  $as_echo_n "(cached) " >&6
13100else
13101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h.  */
13103int i;
13104_ACEOF
13105if ac_fn_c_try_compile "$LINENO"; then :
13106  xorg_cv_cc_flag_unknown_warning_option=yes
13107else
13108  xorg_cv_cc_flag_unknown_warning_option=no
13109fi
13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111fi
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13115	CFLAGS="$xorg_testset_save_CFLAGS"
13116fi
13117
13118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13121	fi
13122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13126  $as_echo_n "(cached) " >&6
13127else
13128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h.  */
13130int i;
13131_ACEOF
13132if ac_fn_c_try_compile "$LINENO"; then :
13133  xorg_cv_cc_flag_unused_command_line_argument=yes
13134else
13135  xorg_cv_cc_flag_unused_command_line_argument=no
13136fi
13137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138fi
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13142	CFLAGS="$xorg_testset_save_CFLAGS"
13143fi
13144
13145found="no"
13146
13147	if test $found = "no" ; then
13148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13150		fi
13151
13152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13154		fi
13155
13156		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13157
13158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13159$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13160		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13161		if eval \${$cacheid+:} false; then :
13162  $as_echo_n "(cached) " >&6
13163else
13164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166int i;
13167int
13168main ()
13169{
13170
13171  ;
13172  return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_link "$LINENO"; then :
13176  eval $cacheid=yes
13177else
13178  eval $cacheid=no
13179fi
13180rm -f core conftest.err conftest.$ac_objext \
13181    conftest$ac_exeext conftest.$ac_ext
13182fi
13183
13184
13185		CFLAGS="$xorg_testset_save_CFLAGS"
13186
13187		eval supported=\$$cacheid
13188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13189$as_echo "$supported" >&6; }
13190		if test "$supported" = "yes" ; then
13191			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13192			found="yes"
13193		fi
13194	fi
13195
13196
13197
13198
13199
13200# This chunk adds additional warnings that could catch undesired effects.
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214xorg_testset_save_CFLAGS="$CFLAGS"
13215
13216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13221  $as_echo_n "(cached) " >&6
13222else
13223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224/* end confdefs.h.  */
13225int i;
13226_ACEOF
13227if ac_fn_c_try_compile "$LINENO"; then :
13228  xorg_cv_cc_flag_unknown_warning_option=yes
13229else
13230  xorg_cv_cc_flag_unknown_warning_option=no
13231fi
13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13237	CFLAGS="$xorg_testset_save_CFLAGS"
13238fi
13239
13240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13243	fi
13244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13248  $as_echo_n "(cached) " >&6
13249else
13250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251/* end confdefs.h.  */
13252int i;
13253_ACEOF
13254if ac_fn_c_try_compile "$LINENO"; then :
13255  xorg_cv_cc_flag_unused_command_line_argument=yes
13256else
13257  xorg_cv_cc_flag_unused_command_line_argument=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260fi
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13264	CFLAGS="$xorg_testset_save_CFLAGS"
13265fi
13266
13267found="no"
13268
13269	if test $found = "no" ; then
13270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272		fi
13273
13274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13276		fi
13277
13278		CFLAGS="$CFLAGS -Wunused"
13279
13280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13281$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13282		cacheid=xorg_cv_cc_flag__Wunused
13283		if eval \${$cacheid+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h.  */
13288int i;
13289int
13290main ()
13291{
13292
13293  ;
13294  return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298  eval $cacheid=yes
13299else
13300  eval $cacheid=no
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303    conftest$ac_exeext conftest.$ac_ext
13304fi
13305
13306
13307		CFLAGS="$xorg_testset_save_CFLAGS"
13308
13309		eval supported=\$$cacheid
13310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13311$as_echo "$supported" >&6; }
13312		if test "$supported" = "yes" ; then
13313			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13314			found="yes"
13315		fi
13316	fi
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332xorg_testset_save_CFLAGS="$CFLAGS"
13333
13334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13339  $as_echo_n "(cached) " >&6
13340else
13341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h.  */
13343int i;
13344_ACEOF
13345if ac_fn_c_try_compile "$LINENO"; then :
13346  xorg_cv_cc_flag_unknown_warning_option=yes
13347else
13348  xorg_cv_cc_flag_unknown_warning_option=no
13349fi
13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351fi
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13355	CFLAGS="$xorg_testset_save_CFLAGS"
13356fi
13357
13358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13361	fi
13362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h.  */
13370int i;
13371_ACEOF
13372if ac_fn_c_try_compile "$LINENO"; then :
13373  xorg_cv_cc_flag_unused_command_line_argument=yes
13374else
13375  xorg_cv_cc_flag_unused_command_line_argument=no
13376fi
13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13382	CFLAGS="$xorg_testset_save_CFLAGS"
13383fi
13384
13385found="no"
13386
13387	if test $found = "no" ; then
13388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390		fi
13391
13392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13394		fi
13395
13396		CFLAGS="$CFLAGS -Wuninitialized"
13397
13398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13399$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13400		cacheid=xorg_cv_cc_flag__Wuninitialized
13401		if eval \${$cacheid+:} false; then :
13402  $as_echo_n "(cached) " >&6
13403else
13404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405/* end confdefs.h.  */
13406int i;
13407int
13408main ()
13409{
13410
13411  ;
13412  return 0;
13413}
13414_ACEOF
13415if ac_fn_c_try_link "$LINENO"; then :
13416  eval $cacheid=yes
13417else
13418  eval $cacheid=no
13419fi
13420rm -f core conftest.err conftest.$ac_objext \
13421    conftest$ac_exeext conftest.$ac_ext
13422fi
13423
13424
13425		CFLAGS="$xorg_testset_save_CFLAGS"
13426
13427		eval supported=\$$cacheid
13428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13429$as_echo "$supported" >&6; }
13430		if test "$supported" = "yes" ; then
13431			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13432			found="yes"
13433		fi
13434	fi
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450xorg_testset_save_CFLAGS="$CFLAGS"
13451
13452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460/* end confdefs.h.  */
13461int i;
13462_ACEOF
13463if ac_fn_c_try_compile "$LINENO"; then :
13464  xorg_cv_cc_flag_unknown_warning_option=yes
13465else
13466  xorg_cv_cc_flag_unknown_warning_option=no
13467fi
13468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469fi
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13473	CFLAGS="$xorg_testset_save_CFLAGS"
13474fi
13475
13476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13479	fi
13480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13484  $as_echo_n "(cached) " >&6
13485else
13486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488int i;
13489_ACEOF
13490if ac_fn_c_try_compile "$LINENO"; then :
13491  xorg_cv_cc_flag_unused_command_line_argument=yes
13492else
13493  xorg_cv_cc_flag_unused_command_line_argument=no
13494fi
13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13500	CFLAGS="$xorg_testset_save_CFLAGS"
13501fi
13502
13503found="no"
13504
13505	if test $found = "no" ; then
13506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508		fi
13509
13510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13512		fi
13513
13514		CFLAGS="$CFLAGS -Wshadow"
13515
13516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13517$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13518		cacheid=xorg_cv_cc_flag__Wshadow
13519		if eval \${$cacheid+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h.  */
13524int i;
13525int
13526main ()
13527{
13528
13529  ;
13530  return 0;
13531}
13532_ACEOF
13533if ac_fn_c_try_link "$LINENO"; then :
13534  eval $cacheid=yes
13535else
13536  eval $cacheid=no
13537fi
13538rm -f core conftest.err conftest.$ac_objext \
13539    conftest$ac_exeext conftest.$ac_ext
13540fi
13541
13542
13543		CFLAGS="$xorg_testset_save_CFLAGS"
13544
13545		eval supported=\$$cacheid
13546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13547$as_echo "$supported" >&6; }
13548		if test "$supported" = "yes" ; then
13549			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13550			found="yes"
13551		fi
13552	fi
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568xorg_testset_save_CFLAGS="$CFLAGS"
13569
13570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13575  $as_echo_n "(cached) " >&6
13576else
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579int i;
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"; then :
13582  xorg_cv_cc_flag_unknown_warning_option=yes
13583else
13584  xorg_cv_cc_flag_unknown_warning_option=no
13585fi
13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587fi
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13591	CFLAGS="$xorg_testset_save_CFLAGS"
13592fi
13593
13594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13597	fi
13598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13602  $as_echo_n "(cached) " >&6
13603else
13604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h.  */
13606int i;
13607_ACEOF
13608if ac_fn_c_try_compile "$LINENO"; then :
13609  xorg_cv_cc_flag_unused_command_line_argument=yes
13610else
13611  xorg_cv_cc_flag_unused_command_line_argument=no
13612fi
13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614fi
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13618	CFLAGS="$xorg_testset_save_CFLAGS"
13619fi
13620
13621found="no"
13622
13623	if test $found = "no" ; then
13624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13626		fi
13627
13628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13630		fi
13631
13632		CFLAGS="$CFLAGS -Wcast-qual"
13633
13634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13635$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13636		cacheid=xorg_cv_cc_flag__Wcast_qual
13637		if eval \${$cacheid+:} false; then :
13638  $as_echo_n "(cached) " >&6
13639else
13640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h.  */
13642int i;
13643int
13644main ()
13645{
13646
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_link "$LINENO"; then :
13652  eval $cacheid=yes
13653else
13654  eval $cacheid=no
13655fi
13656rm -f core conftest.err conftest.$ac_objext \
13657    conftest$ac_exeext conftest.$ac_ext
13658fi
13659
13660
13661		CFLAGS="$xorg_testset_save_CFLAGS"
13662
13663		eval supported=\$$cacheid
13664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13665$as_echo "$supported" >&6; }
13666		if test "$supported" = "yes" ; then
13667			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13668			found="yes"
13669		fi
13670	fi
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686xorg_testset_save_CFLAGS="$CFLAGS"
13687
13688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696/* end confdefs.h.  */
13697int i;
13698_ACEOF
13699if ac_fn_c_try_compile "$LINENO"; then :
13700  xorg_cv_cc_flag_unknown_warning_option=yes
13701else
13702  xorg_cv_cc_flag_unknown_warning_option=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705fi
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13709	CFLAGS="$xorg_testset_save_CFLAGS"
13710fi
13711
13712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715	fi
13716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13720  $as_echo_n "(cached) " >&6
13721else
13722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723/* end confdefs.h.  */
13724int i;
13725_ACEOF
13726if ac_fn_c_try_compile "$LINENO"; then :
13727  xorg_cv_cc_flag_unused_command_line_argument=yes
13728else
13729  xorg_cv_cc_flag_unused_command_line_argument=no
13730fi
13731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13736	CFLAGS="$xorg_testset_save_CFLAGS"
13737fi
13738
13739found="no"
13740
13741	if test $found = "no" ; then
13742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744		fi
13745
13746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13748		fi
13749
13750		CFLAGS="$CFLAGS -Wmissing-noreturn"
13751
13752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13753$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13754		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13755		if eval \${$cacheid+:} false; then :
13756  $as_echo_n "(cached) " >&6
13757else
13758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760int i;
13761int
13762main ()
13763{
13764
13765  ;
13766  return 0;
13767}
13768_ACEOF
13769if ac_fn_c_try_link "$LINENO"; then :
13770  eval $cacheid=yes
13771else
13772  eval $cacheid=no
13773fi
13774rm -f core conftest.err conftest.$ac_objext \
13775    conftest$ac_exeext conftest.$ac_ext
13776fi
13777
13778
13779		CFLAGS="$xorg_testset_save_CFLAGS"
13780
13781		eval supported=\$$cacheid
13782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13783$as_echo "$supported" >&6; }
13784		if test "$supported" = "yes" ; then
13785			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13786			found="yes"
13787		fi
13788	fi
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804xorg_testset_save_CFLAGS="$CFLAGS"
13805
13806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13811  $as_echo_n "(cached) " >&6
13812else
13813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814/* end confdefs.h.  */
13815int i;
13816_ACEOF
13817if ac_fn_c_try_compile "$LINENO"; then :
13818  xorg_cv_cc_flag_unknown_warning_option=yes
13819else
13820  xorg_cv_cc_flag_unknown_warning_option=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823fi
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13827	CFLAGS="$xorg_testset_save_CFLAGS"
13828fi
13829
13830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13833	fi
13834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13838  $as_echo_n "(cached) " >&6
13839else
13840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842int i;
13843_ACEOF
13844if ac_fn_c_try_compile "$LINENO"; then :
13845  xorg_cv_cc_flag_unused_command_line_argument=yes
13846else
13847  xorg_cv_cc_flag_unused_command_line_argument=no
13848fi
13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850fi
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13854	CFLAGS="$xorg_testset_save_CFLAGS"
13855fi
13856
13857found="no"
13858
13859	if test $found = "no" ; then
13860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862		fi
13863
13864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13866		fi
13867
13868		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13869
13870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13871$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13872		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13873		if eval \${$cacheid+:} false; then :
13874  $as_echo_n "(cached) " >&6
13875else
13876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877/* end confdefs.h.  */
13878int i;
13879int
13880main ()
13881{
13882
13883  ;
13884  return 0;
13885}
13886_ACEOF
13887if ac_fn_c_try_link "$LINENO"; then :
13888  eval $cacheid=yes
13889else
13890  eval $cacheid=no
13891fi
13892rm -f core conftest.err conftest.$ac_objext \
13893    conftest$ac_exeext conftest.$ac_ext
13894fi
13895
13896
13897		CFLAGS="$xorg_testset_save_CFLAGS"
13898
13899		eval supported=\$$cacheid
13900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13901$as_echo "$supported" >&6; }
13902		if test "$supported" = "yes" ; then
13903			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13904			found="yes"
13905		fi
13906	fi
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922xorg_testset_save_CFLAGS="$CFLAGS"
13923
13924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13929  $as_echo_n "(cached) " >&6
13930else
13931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932/* end confdefs.h.  */
13933int i;
13934_ACEOF
13935if ac_fn_c_try_compile "$LINENO"; then :
13936  xorg_cv_cc_flag_unknown_warning_option=yes
13937else
13938  xorg_cv_cc_flag_unknown_warning_option=no
13939fi
13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941fi
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13945	CFLAGS="$xorg_testset_save_CFLAGS"
13946fi
13947
13948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13951	fi
13952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960int i;
13961_ACEOF
13962if ac_fn_c_try_compile "$LINENO"; then :
13963  xorg_cv_cc_flag_unused_command_line_argument=yes
13964else
13965  xorg_cv_cc_flag_unused_command_line_argument=no
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13972	CFLAGS="$xorg_testset_save_CFLAGS"
13973fi
13974
13975found="no"
13976
13977	if test $found = "no" ; then
13978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980		fi
13981
13982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984		fi
13985
13986		CFLAGS="$CFLAGS -Wredundant-decls"
13987
13988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13989$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13990		cacheid=xorg_cv_cc_flag__Wredundant_decls
13991		if eval \${$cacheid+:} false; then :
13992  $as_echo_n "(cached) " >&6
13993else
13994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h.  */
13996int i;
13997int
13998main ()
13999{
14000
14001  ;
14002  return 0;
14003}
14004_ACEOF
14005if ac_fn_c_try_link "$LINENO"; then :
14006  eval $cacheid=yes
14007else
14008  eval $cacheid=no
14009fi
14010rm -f core conftest.err conftest.$ac_objext \
14011    conftest$ac_exeext conftest.$ac_ext
14012fi
14013
14014
14015		CFLAGS="$xorg_testset_save_CFLAGS"
14016
14017		eval supported=\$$cacheid
14018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14019$as_echo "$supported" >&6; }
14020		if test "$supported" = "yes" ; then
14021			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14022			found="yes"
14023		fi
14024	fi
14025
14026
14027
14028# These are currently disabled because they are noisy.  They will be enabled
14029# in the future once the codebase is sufficiently modernized to silence
14030# them.  For now, I don't want them to drown out the other warnings.
14031# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
14032# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14033# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14034
14035# Turn some warnings into errors, so we don't accidently get successful builds
14036# when there are problems that should be fixed.
14037
14038if test "x$SELECTIVE_WERROR" = "xyes" ; then
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052xorg_testset_save_CFLAGS="$CFLAGS"
14053
14054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062/* end confdefs.h.  */
14063int i;
14064_ACEOF
14065if ac_fn_c_try_compile "$LINENO"; then :
14066  xorg_cv_cc_flag_unknown_warning_option=yes
14067else
14068  xorg_cv_cc_flag_unknown_warning_option=no
14069fi
14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071fi
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14075	CFLAGS="$xorg_testset_save_CFLAGS"
14076fi
14077
14078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14081	fi
14082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090int i;
14091_ACEOF
14092if ac_fn_c_try_compile "$LINENO"; then :
14093  xorg_cv_cc_flag_unused_command_line_argument=yes
14094else
14095  xorg_cv_cc_flag_unused_command_line_argument=no
14096fi
14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098fi
14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14102	CFLAGS="$xorg_testset_save_CFLAGS"
14103fi
14104
14105found="no"
14106
14107	if test $found = "no" ; then
14108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110		fi
14111
14112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14114		fi
14115
14116		CFLAGS="$CFLAGS -Werror=implicit"
14117
14118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14119$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14120		cacheid=xorg_cv_cc_flag__Werror_implicit
14121		if eval \${$cacheid+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125/* end confdefs.h.  */
14126int i;
14127int
14128main ()
14129{
14130
14131  ;
14132  return 0;
14133}
14134_ACEOF
14135if ac_fn_c_try_link "$LINENO"; then :
14136  eval $cacheid=yes
14137else
14138  eval $cacheid=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141    conftest$ac_exeext conftest.$ac_ext
14142fi
14143
14144
14145		CFLAGS="$xorg_testset_save_CFLAGS"
14146
14147		eval supported=\$$cacheid
14148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14149$as_echo "$supported" >&6; }
14150		if test "$supported" = "yes" ; then
14151			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14152			found="yes"
14153		fi
14154	fi
14155
14156	if test $found = "no" ; then
14157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14159		fi
14160
14161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14163		fi
14164
14165		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14166
14167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14168$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14169		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14170		if eval \${$cacheid+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h.  */
14175int i;
14176int
14177main ()
14178{
14179
14180  ;
14181  return 0;
14182}
14183_ACEOF
14184if ac_fn_c_try_link "$LINENO"; then :
14185  eval $cacheid=yes
14186else
14187  eval $cacheid=no
14188fi
14189rm -f core conftest.err conftest.$ac_objext \
14190    conftest$ac_exeext conftest.$ac_ext
14191fi
14192
14193
14194		CFLAGS="$xorg_testset_save_CFLAGS"
14195
14196		eval supported=\$$cacheid
14197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14198$as_echo "$supported" >&6; }
14199		if test "$supported" = "yes" ; then
14200			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14201			found="yes"
14202		fi
14203	fi
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219xorg_testset_save_CFLAGS="$CFLAGS"
14220
14221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14226  $as_echo_n "(cached) " >&6
14227else
14228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h.  */
14230int i;
14231_ACEOF
14232if ac_fn_c_try_compile "$LINENO"; then :
14233  xorg_cv_cc_flag_unknown_warning_option=yes
14234else
14235  xorg_cv_cc_flag_unknown_warning_option=no
14236fi
14237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238fi
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14242	CFLAGS="$xorg_testset_save_CFLAGS"
14243fi
14244
14245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248	fi
14249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14253  $as_echo_n "(cached) " >&6
14254else
14255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256/* end confdefs.h.  */
14257int i;
14258_ACEOF
14259if ac_fn_c_try_compile "$LINENO"; then :
14260  xorg_cv_cc_flag_unused_command_line_argument=yes
14261else
14262  xorg_cv_cc_flag_unused_command_line_argument=no
14263fi
14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265fi
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14269	CFLAGS="$xorg_testset_save_CFLAGS"
14270fi
14271
14272found="no"
14273
14274	if test $found = "no" ; then
14275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14277		fi
14278
14279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14281		fi
14282
14283		CFLAGS="$CFLAGS -Werror=nonnull"
14284
14285		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14286$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14287		cacheid=xorg_cv_cc_flag__Werror_nonnull
14288		if eval \${$cacheid+:} false; then :
14289  $as_echo_n "(cached) " >&6
14290else
14291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293int i;
14294int
14295main ()
14296{
14297
14298  ;
14299  return 0;
14300}
14301_ACEOF
14302if ac_fn_c_try_link "$LINENO"; then :
14303  eval $cacheid=yes
14304else
14305  eval $cacheid=no
14306fi
14307rm -f core conftest.err conftest.$ac_objext \
14308    conftest$ac_exeext conftest.$ac_ext
14309fi
14310
14311
14312		CFLAGS="$xorg_testset_save_CFLAGS"
14313
14314		eval supported=\$$cacheid
14315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14316$as_echo "$supported" >&6; }
14317		if test "$supported" = "yes" ; then
14318			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14319			found="yes"
14320		fi
14321	fi
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337xorg_testset_save_CFLAGS="$CFLAGS"
14338
14339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14344  $as_echo_n "(cached) " >&6
14345else
14346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347/* end confdefs.h.  */
14348int i;
14349_ACEOF
14350if ac_fn_c_try_compile "$LINENO"; then :
14351  xorg_cv_cc_flag_unknown_warning_option=yes
14352else
14353  xorg_cv_cc_flag_unknown_warning_option=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356fi
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14360	CFLAGS="$xorg_testset_save_CFLAGS"
14361fi
14362
14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366	fi
14367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14371  $as_echo_n "(cached) " >&6
14372else
14373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374/* end confdefs.h.  */
14375int i;
14376_ACEOF
14377if ac_fn_c_try_compile "$LINENO"; then :
14378  xorg_cv_cc_flag_unused_command_line_argument=yes
14379else
14380  xorg_cv_cc_flag_unused_command_line_argument=no
14381fi
14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383fi
14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14387	CFLAGS="$xorg_testset_save_CFLAGS"
14388fi
14389
14390found="no"
14391
14392	if test $found = "no" ; then
14393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14395		fi
14396
14397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14399		fi
14400
14401		CFLAGS="$CFLAGS -Werror=init-self"
14402
14403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14404$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14405		cacheid=xorg_cv_cc_flag__Werror_init_self
14406		if eval \${$cacheid+:} false; then :
14407  $as_echo_n "(cached) " >&6
14408else
14409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411int i;
14412int
14413main ()
14414{
14415
14416  ;
14417  return 0;
14418}
14419_ACEOF
14420if ac_fn_c_try_link "$LINENO"; then :
14421  eval $cacheid=yes
14422else
14423  eval $cacheid=no
14424fi
14425rm -f core conftest.err conftest.$ac_objext \
14426    conftest$ac_exeext conftest.$ac_ext
14427fi
14428
14429
14430		CFLAGS="$xorg_testset_save_CFLAGS"
14431
14432		eval supported=\$$cacheid
14433		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14434$as_echo "$supported" >&6; }
14435		if test "$supported" = "yes" ; then
14436			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14437			found="yes"
14438		fi
14439	fi
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455xorg_testset_save_CFLAGS="$CFLAGS"
14456
14457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14462  $as_echo_n "(cached) " >&6
14463else
14464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h.  */
14466int i;
14467_ACEOF
14468if ac_fn_c_try_compile "$LINENO"; then :
14469  xorg_cv_cc_flag_unknown_warning_option=yes
14470else
14471  xorg_cv_cc_flag_unknown_warning_option=no
14472fi
14473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14478	CFLAGS="$xorg_testset_save_CFLAGS"
14479fi
14480
14481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14484	fi
14485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h.  */
14493int i;
14494_ACEOF
14495if ac_fn_c_try_compile "$LINENO"; then :
14496  xorg_cv_cc_flag_unused_command_line_argument=yes
14497else
14498  xorg_cv_cc_flag_unused_command_line_argument=no
14499fi
14500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501fi
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14505	CFLAGS="$xorg_testset_save_CFLAGS"
14506fi
14507
14508found="no"
14509
14510	if test $found = "no" ; then
14511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14513		fi
14514
14515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14517		fi
14518
14519		CFLAGS="$CFLAGS -Werror=main"
14520
14521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14522$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14523		cacheid=xorg_cv_cc_flag__Werror_main
14524		if eval \${$cacheid+:} false; then :
14525  $as_echo_n "(cached) " >&6
14526else
14527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529int i;
14530int
14531main ()
14532{
14533
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_link "$LINENO"; then :
14539  eval $cacheid=yes
14540else
14541  eval $cacheid=no
14542fi
14543rm -f core conftest.err conftest.$ac_objext \
14544    conftest$ac_exeext conftest.$ac_ext
14545fi
14546
14547
14548		CFLAGS="$xorg_testset_save_CFLAGS"
14549
14550		eval supported=\$$cacheid
14551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14552$as_echo "$supported" >&6; }
14553		if test "$supported" = "yes" ; then
14554			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14555			found="yes"
14556		fi
14557	fi
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573xorg_testset_save_CFLAGS="$CFLAGS"
14574
14575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14580  $as_echo_n "(cached) " >&6
14581else
14582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h.  */
14584int i;
14585_ACEOF
14586if ac_fn_c_try_compile "$LINENO"; then :
14587  xorg_cv_cc_flag_unknown_warning_option=yes
14588else
14589  xorg_cv_cc_flag_unknown_warning_option=no
14590fi
14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592fi
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14595	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14596	CFLAGS="$xorg_testset_save_CFLAGS"
14597fi
14598
14599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14600	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14601		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14602	fi
14603	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14607  $as_echo_n "(cached) " >&6
14608else
14609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h.  */
14611int i;
14612_ACEOF
14613if ac_fn_c_try_compile "$LINENO"; then :
14614  xorg_cv_cc_flag_unused_command_line_argument=yes
14615else
14616  xorg_cv_cc_flag_unused_command_line_argument=no
14617fi
14618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14623	CFLAGS="$xorg_testset_save_CFLAGS"
14624fi
14625
14626found="no"
14627
14628	if test $found = "no" ; then
14629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631		fi
14632
14633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635		fi
14636
14637		CFLAGS="$CFLAGS -Werror=missing-braces"
14638
14639		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14640$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14641		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14642		if eval \${$cacheid+:} false; then :
14643  $as_echo_n "(cached) " >&6
14644else
14645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646/* end confdefs.h.  */
14647int i;
14648int
14649main ()
14650{
14651
14652  ;
14653  return 0;
14654}
14655_ACEOF
14656if ac_fn_c_try_link "$LINENO"; then :
14657  eval $cacheid=yes
14658else
14659  eval $cacheid=no
14660fi
14661rm -f core conftest.err conftest.$ac_objext \
14662    conftest$ac_exeext conftest.$ac_ext
14663fi
14664
14665
14666		CFLAGS="$xorg_testset_save_CFLAGS"
14667
14668		eval supported=\$$cacheid
14669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14670$as_echo "$supported" >&6; }
14671		if test "$supported" = "yes" ; then
14672			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14673			found="yes"
14674		fi
14675	fi
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691xorg_testset_save_CFLAGS="$CFLAGS"
14692
14693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14698  $as_echo_n "(cached) " >&6
14699else
14700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702int i;
14703_ACEOF
14704if ac_fn_c_try_compile "$LINENO"; then :
14705  xorg_cv_cc_flag_unknown_warning_option=yes
14706else
14707  xorg_cv_cc_flag_unknown_warning_option=no
14708fi
14709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14714	CFLAGS="$xorg_testset_save_CFLAGS"
14715fi
14716
14717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14720	fi
14721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"; then :
14732  xorg_cv_cc_flag_unused_command_line_argument=yes
14733else
14734  xorg_cv_cc_flag_unused_command_line_argument=no
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737fi
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14741	CFLAGS="$xorg_testset_save_CFLAGS"
14742fi
14743
14744found="no"
14745
14746	if test $found = "no" ; then
14747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749		fi
14750
14751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753		fi
14754
14755		CFLAGS="$CFLAGS -Werror=sequence-point"
14756
14757		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14758$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14759		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14760		if eval \${$cacheid+:} false; then :
14761  $as_echo_n "(cached) " >&6
14762else
14763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h.  */
14765int i;
14766int
14767main ()
14768{
14769
14770  ;
14771  return 0;
14772}
14773_ACEOF
14774if ac_fn_c_try_link "$LINENO"; then :
14775  eval $cacheid=yes
14776else
14777  eval $cacheid=no
14778fi
14779rm -f core conftest.err conftest.$ac_objext \
14780    conftest$ac_exeext conftest.$ac_ext
14781fi
14782
14783
14784		CFLAGS="$xorg_testset_save_CFLAGS"
14785
14786		eval supported=\$$cacheid
14787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14788$as_echo "$supported" >&6; }
14789		if test "$supported" = "yes" ; then
14790			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14791			found="yes"
14792		fi
14793	fi
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809xorg_testset_save_CFLAGS="$CFLAGS"
14810
14811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14816  $as_echo_n "(cached) " >&6
14817else
14818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819/* end confdefs.h.  */
14820int i;
14821_ACEOF
14822if ac_fn_c_try_compile "$LINENO"; then :
14823  xorg_cv_cc_flag_unknown_warning_option=yes
14824else
14825  xorg_cv_cc_flag_unknown_warning_option=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828fi
14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14832	CFLAGS="$xorg_testset_save_CFLAGS"
14833fi
14834
14835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14838	fi
14839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14843  $as_echo_n "(cached) " >&6
14844else
14845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h.  */
14847int i;
14848_ACEOF
14849if ac_fn_c_try_compile "$LINENO"; then :
14850  xorg_cv_cc_flag_unused_command_line_argument=yes
14851else
14852  xorg_cv_cc_flag_unused_command_line_argument=no
14853fi
14854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855fi
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14859	CFLAGS="$xorg_testset_save_CFLAGS"
14860fi
14861
14862found="no"
14863
14864	if test $found = "no" ; then
14865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867		fi
14868
14869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871		fi
14872
14873		CFLAGS="$CFLAGS -Werror=return-type"
14874
14875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14876$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14877		cacheid=xorg_cv_cc_flag__Werror_return_type
14878		if eval \${$cacheid+:} false; then :
14879  $as_echo_n "(cached) " >&6
14880else
14881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882/* end confdefs.h.  */
14883int i;
14884int
14885main ()
14886{
14887
14888  ;
14889  return 0;
14890}
14891_ACEOF
14892if ac_fn_c_try_link "$LINENO"; then :
14893  eval $cacheid=yes
14894else
14895  eval $cacheid=no
14896fi
14897rm -f core conftest.err conftest.$ac_objext \
14898    conftest$ac_exeext conftest.$ac_ext
14899fi
14900
14901
14902		CFLAGS="$xorg_testset_save_CFLAGS"
14903
14904		eval supported=\$$cacheid
14905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14906$as_echo "$supported" >&6; }
14907		if test "$supported" = "yes" ; then
14908			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14909			found="yes"
14910		fi
14911	fi
14912
14913	if test $found = "no" ; then
14914		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14916		fi
14917
14918		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14920		fi
14921
14922		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14923
14924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14925$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14926		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14927		if eval \${$cacheid+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932int i;
14933int
14934main ()
14935{
14936
14937  ;
14938  return 0;
14939}
14940_ACEOF
14941if ac_fn_c_try_link "$LINENO"; then :
14942  eval $cacheid=yes
14943else
14944  eval $cacheid=no
14945fi
14946rm -f core conftest.err conftest.$ac_objext \
14947    conftest$ac_exeext conftest.$ac_ext
14948fi
14949
14950
14951		CFLAGS="$xorg_testset_save_CFLAGS"
14952
14953		eval supported=\$$cacheid
14954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14955$as_echo "$supported" >&6; }
14956		if test "$supported" = "yes" ; then
14957			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14958			found="yes"
14959		fi
14960	fi
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976xorg_testset_save_CFLAGS="$CFLAGS"
14977
14978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14983  $as_echo_n "(cached) " >&6
14984else
14985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987int i;
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"; then :
14990  xorg_cv_cc_flag_unknown_warning_option=yes
14991else
14992  xorg_cv_cc_flag_unknown_warning_option=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995fi
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14999	CFLAGS="$xorg_testset_save_CFLAGS"
15000fi
15001
15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15005	fi
15006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15010  $as_echo_n "(cached) " >&6
15011else
15012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h.  */
15014int i;
15015_ACEOF
15016if ac_fn_c_try_compile "$LINENO"; then :
15017  xorg_cv_cc_flag_unused_command_line_argument=yes
15018else
15019  xorg_cv_cc_flag_unused_command_line_argument=no
15020fi
15021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022fi
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15026	CFLAGS="$xorg_testset_save_CFLAGS"
15027fi
15028
15029found="no"
15030
15031	if test $found = "no" ; then
15032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15034		fi
15035
15036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15038		fi
15039
15040		CFLAGS="$CFLAGS -Werror=trigraphs"
15041
15042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15043$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15044		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15045		if eval \${$cacheid+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050int i;
15051int
15052main ()
15053{
15054
15055  ;
15056  return 0;
15057}
15058_ACEOF
15059if ac_fn_c_try_link "$LINENO"; then :
15060  eval $cacheid=yes
15061else
15062  eval $cacheid=no
15063fi
15064rm -f core conftest.err conftest.$ac_objext \
15065    conftest$ac_exeext conftest.$ac_ext
15066fi
15067
15068
15069		CFLAGS="$xorg_testset_save_CFLAGS"
15070
15071		eval supported=\$$cacheid
15072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15073$as_echo "$supported" >&6; }
15074		if test "$supported" = "yes" ; then
15075			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15076			found="yes"
15077		fi
15078	fi
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094xorg_testset_save_CFLAGS="$CFLAGS"
15095
15096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105int i;
15106_ACEOF
15107if ac_fn_c_try_compile "$LINENO"; then :
15108  xorg_cv_cc_flag_unknown_warning_option=yes
15109else
15110  xorg_cv_cc_flag_unknown_warning_option=no
15111fi
15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15117	CFLAGS="$xorg_testset_save_CFLAGS"
15118fi
15119
15120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15123	fi
15124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15128  $as_echo_n "(cached) " >&6
15129else
15130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131/* end confdefs.h.  */
15132int i;
15133_ACEOF
15134if ac_fn_c_try_compile "$LINENO"; then :
15135  xorg_cv_cc_flag_unused_command_line_argument=yes
15136else
15137  xorg_cv_cc_flag_unused_command_line_argument=no
15138fi
15139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140fi
15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15144	CFLAGS="$xorg_testset_save_CFLAGS"
15145fi
15146
15147found="no"
15148
15149	if test $found = "no" ; then
15150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152		fi
15153
15154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15156		fi
15157
15158		CFLAGS="$CFLAGS -Werror=array-bounds"
15159
15160		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15161$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15162		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15163		if eval \${$cacheid+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h.  */
15168int i;
15169int
15170main ()
15171{
15172
15173  ;
15174  return 0;
15175}
15176_ACEOF
15177if ac_fn_c_try_link "$LINENO"; then :
15178  eval $cacheid=yes
15179else
15180  eval $cacheid=no
15181fi
15182rm -f core conftest.err conftest.$ac_objext \
15183    conftest$ac_exeext conftest.$ac_ext
15184fi
15185
15186
15187		CFLAGS="$xorg_testset_save_CFLAGS"
15188
15189		eval supported=\$$cacheid
15190		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15191$as_echo "$supported" >&6; }
15192		if test "$supported" = "yes" ; then
15193			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15194			found="yes"
15195		fi
15196	fi
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212xorg_testset_save_CFLAGS="$CFLAGS"
15213
15214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15219  $as_echo_n "(cached) " >&6
15220else
15221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222/* end confdefs.h.  */
15223int i;
15224_ACEOF
15225if ac_fn_c_try_compile "$LINENO"; then :
15226  xorg_cv_cc_flag_unknown_warning_option=yes
15227else
15228  xorg_cv_cc_flag_unknown_warning_option=no
15229fi
15230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15231fi
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15235	CFLAGS="$xorg_testset_save_CFLAGS"
15236fi
15237
15238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241	fi
15242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15246  $as_echo_n "(cached) " >&6
15247else
15248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h.  */
15250int i;
15251_ACEOF
15252if ac_fn_c_try_compile "$LINENO"; then :
15253  xorg_cv_cc_flag_unused_command_line_argument=yes
15254else
15255  xorg_cv_cc_flag_unused_command_line_argument=no
15256fi
15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258fi
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15262	CFLAGS="$xorg_testset_save_CFLAGS"
15263fi
15264
15265found="no"
15266
15267	if test $found = "no" ; then
15268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270		fi
15271
15272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15274		fi
15275
15276		CFLAGS="$CFLAGS -Werror=write-strings"
15277
15278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15279$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15280		cacheid=xorg_cv_cc_flag__Werror_write_strings
15281		if eval \${$cacheid+:} false; then :
15282  $as_echo_n "(cached) " >&6
15283else
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286int i;
15287int
15288main ()
15289{
15290
15291  ;
15292  return 0;
15293}
15294_ACEOF
15295if ac_fn_c_try_link "$LINENO"; then :
15296  eval $cacheid=yes
15297else
15298  eval $cacheid=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301    conftest$ac_exeext conftest.$ac_ext
15302fi
15303
15304
15305		CFLAGS="$xorg_testset_save_CFLAGS"
15306
15307		eval supported=\$$cacheid
15308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15309$as_echo "$supported" >&6; }
15310		if test "$supported" = "yes" ; then
15311			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15312			found="yes"
15313		fi
15314	fi
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330xorg_testset_save_CFLAGS="$CFLAGS"
15331
15332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15337  $as_echo_n "(cached) " >&6
15338else
15339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340/* end confdefs.h.  */
15341int i;
15342_ACEOF
15343if ac_fn_c_try_compile "$LINENO"; then :
15344  xorg_cv_cc_flag_unknown_warning_option=yes
15345else
15346  xorg_cv_cc_flag_unknown_warning_option=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349fi
15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15353	CFLAGS="$xorg_testset_save_CFLAGS"
15354fi
15355
15356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359	fi
15360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15364  $as_echo_n "(cached) " >&6
15365else
15366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367/* end confdefs.h.  */
15368int i;
15369_ACEOF
15370if ac_fn_c_try_compile "$LINENO"; then :
15371  xorg_cv_cc_flag_unused_command_line_argument=yes
15372else
15373  xorg_cv_cc_flag_unused_command_line_argument=no
15374fi
15375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15376fi
15377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15380	CFLAGS="$xorg_testset_save_CFLAGS"
15381fi
15382
15383found="no"
15384
15385	if test $found = "no" ; then
15386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15388		fi
15389
15390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15392		fi
15393
15394		CFLAGS="$CFLAGS -Werror=address"
15395
15396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15397$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15398		cacheid=xorg_cv_cc_flag__Werror_address
15399		if eval \${$cacheid+:} false; then :
15400  $as_echo_n "(cached) " >&6
15401else
15402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h.  */
15404int i;
15405int
15406main ()
15407{
15408
15409  ;
15410  return 0;
15411}
15412_ACEOF
15413if ac_fn_c_try_link "$LINENO"; then :
15414  eval $cacheid=yes
15415else
15416  eval $cacheid=no
15417fi
15418rm -f core conftest.err conftest.$ac_objext \
15419    conftest$ac_exeext conftest.$ac_ext
15420fi
15421
15422
15423		CFLAGS="$xorg_testset_save_CFLAGS"
15424
15425		eval supported=\$$cacheid
15426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15427$as_echo "$supported" >&6; }
15428		if test "$supported" = "yes" ; then
15429			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15430			found="yes"
15431		fi
15432	fi
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448xorg_testset_save_CFLAGS="$CFLAGS"
15449
15450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15455  $as_echo_n "(cached) " >&6
15456else
15457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458/* end confdefs.h.  */
15459int i;
15460_ACEOF
15461if ac_fn_c_try_compile "$LINENO"; then :
15462  xorg_cv_cc_flag_unknown_warning_option=yes
15463else
15464  xorg_cv_cc_flag_unknown_warning_option=no
15465fi
15466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467fi
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15471	CFLAGS="$xorg_testset_save_CFLAGS"
15472fi
15473
15474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15477	fi
15478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15482  $as_echo_n "(cached) " >&6
15483else
15484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485/* end confdefs.h.  */
15486int i;
15487_ACEOF
15488if ac_fn_c_try_compile "$LINENO"; then :
15489  xorg_cv_cc_flag_unused_command_line_argument=yes
15490else
15491  xorg_cv_cc_flag_unused_command_line_argument=no
15492fi
15493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15494fi
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15498	CFLAGS="$xorg_testset_save_CFLAGS"
15499fi
15500
15501found="no"
15502
15503	if test $found = "no" ; then
15504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15506		fi
15507
15508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15510		fi
15511
15512		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15513
15514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15515$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15516		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15517		if eval \${$cacheid+:} false; then :
15518  $as_echo_n "(cached) " >&6
15519else
15520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521/* end confdefs.h.  */
15522int i;
15523int
15524main ()
15525{
15526
15527  ;
15528  return 0;
15529}
15530_ACEOF
15531if ac_fn_c_try_link "$LINENO"; then :
15532  eval $cacheid=yes
15533else
15534  eval $cacheid=no
15535fi
15536rm -f core conftest.err conftest.$ac_objext \
15537    conftest$ac_exeext conftest.$ac_ext
15538fi
15539
15540
15541		CFLAGS="$xorg_testset_save_CFLAGS"
15542
15543		eval supported=\$$cacheid
15544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15545$as_echo "$supported" >&6; }
15546		if test "$supported" = "yes" ; then
15547			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15548			found="yes"
15549		fi
15550	fi
15551
15552	if test $found = "no" ; then
15553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555		fi
15556
15557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15559		fi
15560
15561		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15562
15563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15564$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15565		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15566		if eval \${$cacheid+:} false; then :
15567  $as_echo_n "(cached) " >&6
15568else
15569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570/* end confdefs.h.  */
15571int i;
15572int
15573main ()
15574{
15575
15576  ;
15577  return 0;
15578}
15579_ACEOF
15580if ac_fn_c_try_link "$LINENO"; then :
15581  eval $cacheid=yes
15582else
15583  eval $cacheid=no
15584fi
15585rm -f core conftest.err conftest.$ac_objext \
15586    conftest$ac_exeext conftest.$ac_ext
15587fi
15588
15589
15590		CFLAGS="$xorg_testset_save_CFLAGS"
15591
15592		eval supported=\$$cacheid
15593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15594$as_echo "$supported" >&6; }
15595		if test "$supported" = "yes" ; then
15596			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15597			found="yes"
15598		fi
15599	fi
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615xorg_testset_save_CFLAGS="$CFLAGS"
15616
15617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15622  $as_echo_n "(cached) " >&6
15623else
15624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625/* end confdefs.h.  */
15626int i;
15627_ACEOF
15628if ac_fn_c_try_compile "$LINENO"; then :
15629  xorg_cv_cc_flag_unknown_warning_option=yes
15630else
15631  xorg_cv_cc_flag_unknown_warning_option=no
15632fi
15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634fi
15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15638	CFLAGS="$xorg_testset_save_CFLAGS"
15639fi
15640
15641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644	fi
15645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15649  $as_echo_n "(cached) " >&6
15650else
15651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652/* end confdefs.h.  */
15653int i;
15654_ACEOF
15655if ac_fn_c_try_compile "$LINENO"; then :
15656  xorg_cv_cc_flag_unused_command_line_argument=yes
15657else
15658  xorg_cv_cc_flag_unused_command_line_argument=no
15659fi
15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661fi
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15665	CFLAGS="$xorg_testset_save_CFLAGS"
15666fi
15667
15668found="no"
15669
15670	if test $found = "no" ; then
15671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673		fi
15674
15675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15677		fi
15678
15679		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15680
15681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15682$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15683		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15684		if eval \${$cacheid+:} false; then :
15685  $as_echo_n "(cached) " >&6
15686else
15687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688/* end confdefs.h.  */
15689int i;
15690int
15691main ()
15692{
15693
15694  ;
15695  return 0;
15696}
15697_ACEOF
15698if ac_fn_c_try_link "$LINENO"; then :
15699  eval $cacheid=yes
15700else
15701  eval $cacheid=no
15702fi
15703rm -f core conftest.err conftest.$ac_objext \
15704    conftest$ac_exeext conftest.$ac_ext
15705fi
15706
15707
15708		CFLAGS="$xorg_testset_save_CFLAGS"
15709
15710		eval supported=\$$cacheid
15711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15712$as_echo "$supported" >&6; }
15713		if test "$supported" = "yes" ; then
15714			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15715			found="yes"
15716		fi
15717	fi
15718
15719 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15720else
15721{ $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
15722$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;}
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736xorg_testset_save_CFLAGS="$CFLAGS"
15737
15738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15743  $as_echo_n "(cached) " >&6
15744else
15745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746/* end confdefs.h.  */
15747int i;
15748_ACEOF
15749if ac_fn_c_try_compile "$LINENO"; then :
15750  xorg_cv_cc_flag_unknown_warning_option=yes
15751else
15752  xorg_cv_cc_flag_unknown_warning_option=no
15753fi
15754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755fi
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15759	CFLAGS="$xorg_testset_save_CFLAGS"
15760fi
15761
15762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15765	fi
15766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15770  $as_echo_n "(cached) " >&6
15771else
15772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773/* end confdefs.h.  */
15774int i;
15775_ACEOF
15776if ac_fn_c_try_compile "$LINENO"; then :
15777  xorg_cv_cc_flag_unused_command_line_argument=yes
15778else
15779  xorg_cv_cc_flag_unused_command_line_argument=no
15780fi
15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782fi
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15786	CFLAGS="$xorg_testset_save_CFLAGS"
15787fi
15788
15789found="no"
15790
15791	if test $found = "no" ; then
15792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15794		fi
15795
15796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15798		fi
15799
15800		CFLAGS="$CFLAGS -Wimplicit"
15801
15802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15803$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15804		cacheid=xorg_cv_cc_flag__Wimplicit
15805		if eval \${$cacheid+:} false; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h.  */
15810int i;
15811int
15812main ()
15813{
15814
15815  ;
15816  return 0;
15817}
15818_ACEOF
15819if ac_fn_c_try_link "$LINENO"; then :
15820  eval $cacheid=yes
15821else
15822  eval $cacheid=no
15823fi
15824rm -f core conftest.err conftest.$ac_objext \
15825    conftest$ac_exeext conftest.$ac_ext
15826fi
15827
15828
15829		CFLAGS="$xorg_testset_save_CFLAGS"
15830
15831		eval supported=\$$cacheid
15832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15833$as_echo "$supported" >&6; }
15834		if test "$supported" = "yes" ; then
15835			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15836			found="yes"
15837		fi
15838	fi
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854xorg_testset_save_CFLAGS="$CFLAGS"
15855
15856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15861  $as_echo_n "(cached) " >&6
15862else
15863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864/* end confdefs.h.  */
15865int i;
15866_ACEOF
15867if ac_fn_c_try_compile "$LINENO"; then :
15868  xorg_cv_cc_flag_unknown_warning_option=yes
15869else
15870  xorg_cv_cc_flag_unknown_warning_option=no
15871fi
15872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873fi
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15877	CFLAGS="$xorg_testset_save_CFLAGS"
15878fi
15879
15880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15883	fi
15884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15888  $as_echo_n "(cached) " >&6
15889else
15890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891/* end confdefs.h.  */
15892int i;
15893_ACEOF
15894if ac_fn_c_try_compile "$LINENO"; then :
15895  xorg_cv_cc_flag_unused_command_line_argument=yes
15896else
15897  xorg_cv_cc_flag_unused_command_line_argument=no
15898fi
15899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900fi
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15904	CFLAGS="$xorg_testset_save_CFLAGS"
15905fi
15906
15907found="no"
15908
15909	if test $found = "no" ; then
15910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912		fi
15913
15914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15916		fi
15917
15918		CFLAGS="$CFLAGS -Wnonnull"
15919
15920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15921$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15922		cacheid=xorg_cv_cc_flag__Wnonnull
15923		if eval \${$cacheid+:} false; then :
15924  $as_echo_n "(cached) " >&6
15925else
15926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928int i;
15929int
15930main ()
15931{
15932
15933  ;
15934  return 0;
15935}
15936_ACEOF
15937if ac_fn_c_try_link "$LINENO"; then :
15938  eval $cacheid=yes
15939else
15940  eval $cacheid=no
15941fi
15942rm -f core conftest.err conftest.$ac_objext \
15943    conftest$ac_exeext conftest.$ac_ext
15944fi
15945
15946
15947		CFLAGS="$xorg_testset_save_CFLAGS"
15948
15949		eval supported=\$$cacheid
15950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15951$as_echo "$supported" >&6; }
15952		if test "$supported" = "yes" ; then
15953			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15954			found="yes"
15955		fi
15956	fi
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972xorg_testset_save_CFLAGS="$CFLAGS"
15973
15974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15979  $as_echo_n "(cached) " >&6
15980else
15981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982/* end confdefs.h.  */
15983int i;
15984_ACEOF
15985if ac_fn_c_try_compile "$LINENO"; then :
15986  xorg_cv_cc_flag_unknown_warning_option=yes
15987else
15988  xorg_cv_cc_flag_unknown_warning_option=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991fi
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15995	CFLAGS="$xorg_testset_save_CFLAGS"
15996fi
15997
15998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16001	fi
16002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16006  $as_echo_n "(cached) " >&6
16007else
16008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009/* end confdefs.h.  */
16010int i;
16011_ACEOF
16012if ac_fn_c_try_compile "$LINENO"; then :
16013  xorg_cv_cc_flag_unused_command_line_argument=yes
16014else
16015  xorg_cv_cc_flag_unused_command_line_argument=no
16016fi
16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018fi
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16022	CFLAGS="$xorg_testset_save_CFLAGS"
16023fi
16024
16025found="no"
16026
16027	if test $found = "no" ; then
16028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16030		fi
16031
16032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16034		fi
16035
16036		CFLAGS="$CFLAGS -Winit-self"
16037
16038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16039$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16040		cacheid=xorg_cv_cc_flag__Winit_self
16041		if eval \${$cacheid+:} false; then :
16042  $as_echo_n "(cached) " >&6
16043else
16044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045/* end confdefs.h.  */
16046int i;
16047int
16048main ()
16049{
16050
16051  ;
16052  return 0;
16053}
16054_ACEOF
16055if ac_fn_c_try_link "$LINENO"; then :
16056  eval $cacheid=yes
16057else
16058  eval $cacheid=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext \
16061    conftest$ac_exeext conftest.$ac_ext
16062fi
16063
16064
16065		CFLAGS="$xorg_testset_save_CFLAGS"
16066
16067		eval supported=\$$cacheid
16068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16069$as_echo "$supported" >&6; }
16070		if test "$supported" = "yes" ; then
16071			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16072			found="yes"
16073		fi
16074	fi
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090xorg_testset_save_CFLAGS="$CFLAGS"
16091
16092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16097  $as_echo_n "(cached) " >&6
16098else
16099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h.  */
16101int i;
16102_ACEOF
16103if ac_fn_c_try_compile "$LINENO"; then :
16104  xorg_cv_cc_flag_unknown_warning_option=yes
16105else
16106  xorg_cv_cc_flag_unknown_warning_option=no
16107fi
16108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109fi
16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16112	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16113	CFLAGS="$xorg_testset_save_CFLAGS"
16114fi
16115
16116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16117	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16118		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16119	fi
16120	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16124  $as_echo_n "(cached) " >&6
16125else
16126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128int i;
16129_ACEOF
16130if ac_fn_c_try_compile "$LINENO"; then :
16131  xorg_cv_cc_flag_unused_command_line_argument=yes
16132else
16133  xorg_cv_cc_flag_unused_command_line_argument=no
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136fi
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16140	CFLAGS="$xorg_testset_save_CFLAGS"
16141fi
16142
16143found="no"
16144
16145	if test $found = "no" ; then
16146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148		fi
16149
16150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16152		fi
16153
16154		CFLAGS="$CFLAGS -Wmain"
16155
16156		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16157$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16158		cacheid=xorg_cv_cc_flag__Wmain
16159		if eval \${$cacheid+:} false; then :
16160  $as_echo_n "(cached) " >&6
16161else
16162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163/* end confdefs.h.  */
16164int i;
16165int
16166main ()
16167{
16168
16169  ;
16170  return 0;
16171}
16172_ACEOF
16173if ac_fn_c_try_link "$LINENO"; then :
16174  eval $cacheid=yes
16175else
16176  eval $cacheid=no
16177fi
16178rm -f core conftest.err conftest.$ac_objext \
16179    conftest$ac_exeext conftest.$ac_ext
16180fi
16181
16182
16183		CFLAGS="$xorg_testset_save_CFLAGS"
16184
16185		eval supported=\$$cacheid
16186		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16187$as_echo "$supported" >&6; }
16188		if test "$supported" = "yes" ; then
16189			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16190			found="yes"
16191		fi
16192	fi
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208xorg_testset_save_CFLAGS="$CFLAGS"
16209
16210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16211	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16215  $as_echo_n "(cached) " >&6
16216else
16217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h.  */
16219int i;
16220_ACEOF
16221if ac_fn_c_try_compile "$LINENO"; then :
16222  xorg_cv_cc_flag_unknown_warning_option=yes
16223else
16224  xorg_cv_cc_flag_unknown_warning_option=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227fi
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16231	CFLAGS="$xorg_testset_save_CFLAGS"
16232fi
16233
16234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16237	fi
16238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16242  $as_echo_n "(cached) " >&6
16243else
16244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245/* end confdefs.h.  */
16246int i;
16247_ACEOF
16248if ac_fn_c_try_compile "$LINENO"; then :
16249  xorg_cv_cc_flag_unused_command_line_argument=yes
16250else
16251  xorg_cv_cc_flag_unused_command_line_argument=no
16252fi
16253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16254fi
16255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16258	CFLAGS="$xorg_testset_save_CFLAGS"
16259fi
16260
16261found="no"
16262
16263	if test $found = "no" ; then
16264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266		fi
16267
16268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16270		fi
16271
16272		CFLAGS="$CFLAGS -Wmissing-braces"
16273
16274		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16275$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16276		cacheid=xorg_cv_cc_flag__Wmissing_braces
16277		if eval \${$cacheid+:} false; then :
16278  $as_echo_n "(cached) " >&6
16279else
16280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h.  */
16282int i;
16283int
16284main ()
16285{
16286
16287  ;
16288  return 0;
16289}
16290_ACEOF
16291if ac_fn_c_try_link "$LINENO"; then :
16292  eval $cacheid=yes
16293else
16294  eval $cacheid=no
16295fi
16296rm -f core conftest.err conftest.$ac_objext \
16297    conftest$ac_exeext conftest.$ac_ext
16298fi
16299
16300
16301		CFLAGS="$xorg_testset_save_CFLAGS"
16302
16303		eval supported=\$$cacheid
16304		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16305$as_echo "$supported" >&6; }
16306		if test "$supported" = "yes" ; then
16307			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16308			found="yes"
16309		fi
16310	fi
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326xorg_testset_save_CFLAGS="$CFLAGS"
16327
16328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16333  $as_echo_n "(cached) " >&6
16334else
16335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336/* end confdefs.h.  */
16337int i;
16338_ACEOF
16339if ac_fn_c_try_compile "$LINENO"; then :
16340  xorg_cv_cc_flag_unknown_warning_option=yes
16341else
16342  xorg_cv_cc_flag_unknown_warning_option=no
16343fi
16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16349	CFLAGS="$xorg_testset_save_CFLAGS"
16350fi
16351
16352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16355	fi
16356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16357	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16360  $as_echo_n "(cached) " >&6
16361else
16362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h.  */
16364int i;
16365_ACEOF
16366if ac_fn_c_try_compile "$LINENO"; then :
16367  xorg_cv_cc_flag_unused_command_line_argument=yes
16368else
16369  xorg_cv_cc_flag_unused_command_line_argument=no
16370fi
16371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372fi
16373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16376	CFLAGS="$xorg_testset_save_CFLAGS"
16377fi
16378
16379found="no"
16380
16381	if test $found = "no" ; then
16382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384		fi
16385
16386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16388		fi
16389
16390		CFLAGS="$CFLAGS -Wsequence-point"
16391
16392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16393$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16394		cacheid=xorg_cv_cc_flag__Wsequence_point
16395		if eval \${$cacheid+:} false; then :
16396  $as_echo_n "(cached) " >&6
16397else
16398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h.  */
16400int i;
16401int
16402main ()
16403{
16404
16405  ;
16406  return 0;
16407}
16408_ACEOF
16409if ac_fn_c_try_link "$LINENO"; then :
16410  eval $cacheid=yes
16411else
16412  eval $cacheid=no
16413fi
16414rm -f core conftest.err conftest.$ac_objext \
16415    conftest$ac_exeext conftest.$ac_ext
16416fi
16417
16418
16419		CFLAGS="$xorg_testset_save_CFLAGS"
16420
16421		eval supported=\$$cacheid
16422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16423$as_echo "$supported" >&6; }
16424		if test "$supported" = "yes" ; then
16425			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16426			found="yes"
16427		fi
16428	fi
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444xorg_testset_save_CFLAGS="$CFLAGS"
16445
16446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16451  $as_echo_n "(cached) " >&6
16452else
16453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454/* end confdefs.h.  */
16455int i;
16456_ACEOF
16457if ac_fn_c_try_compile "$LINENO"; then :
16458  xorg_cv_cc_flag_unknown_warning_option=yes
16459else
16460  xorg_cv_cc_flag_unknown_warning_option=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463fi
16464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16467	CFLAGS="$xorg_testset_save_CFLAGS"
16468fi
16469
16470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473	fi
16474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16478  $as_echo_n "(cached) " >&6
16479else
16480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481/* end confdefs.h.  */
16482int i;
16483_ACEOF
16484if ac_fn_c_try_compile "$LINENO"; then :
16485  xorg_cv_cc_flag_unused_command_line_argument=yes
16486else
16487  xorg_cv_cc_flag_unused_command_line_argument=no
16488fi
16489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490fi
16491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16494	CFLAGS="$xorg_testset_save_CFLAGS"
16495fi
16496
16497found="no"
16498
16499	if test $found = "no" ; then
16500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502		fi
16503
16504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16506		fi
16507
16508		CFLAGS="$CFLAGS -Wreturn-type"
16509
16510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16511$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16512		cacheid=xorg_cv_cc_flag__Wreturn_type
16513		if eval \${$cacheid+:} false; then :
16514  $as_echo_n "(cached) " >&6
16515else
16516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517/* end confdefs.h.  */
16518int i;
16519int
16520main ()
16521{
16522
16523  ;
16524  return 0;
16525}
16526_ACEOF
16527if ac_fn_c_try_link "$LINENO"; then :
16528  eval $cacheid=yes
16529else
16530  eval $cacheid=no
16531fi
16532rm -f core conftest.err conftest.$ac_objext \
16533    conftest$ac_exeext conftest.$ac_ext
16534fi
16535
16536
16537		CFLAGS="$xorg_testset_save_CFLAGS"
16538
16539		eval supported=\$$cacheid
16540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16541$as_echo "$supported" >&6; }
16542		if test "$supported" = "yes" ; then
16543			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16544			found="yes"
16545		fi
16546	fi
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562xorg_testset_save_CFLAGS="$CFLAGS"
16563
16564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16569  $as_echo_n "(cached) " >&6
16570else
16571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572/* end confdefs.h.  */
16573int i;
16574_ACEOF
16575if ac_fn_c_try_compile "$LINENO"; then :
16576  xorg_cv_cc_flag_unknown_warning_option=yes
16577else
16578  xorg_cv_cc_flag_unknown_warning_option=no
16579fi
16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581fi
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16585	CFLAGS="$xorg_testset_save_CFLAGS"
16586fi
16587
16588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591	fi
16592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16596  $as_echo_n "(cached) " >&6
16597else
16598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h.  */
16600int i;
16601_ACEOF
16602if ac_fn_c_try_compile "$LINENO"; then :
16603  xorg_cv_cc_flag_unused_command_line_argument=yes
16604else
16605  xorg_cv_cc_flag_unused_command_line_argument=no
16606fi
16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608fi
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16612	CFLAGS="$xorg_testset_save_CFLAGS"
16613fi
16614
16615found="no"
16616
16617	if test $found = "no" ; then
16618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620		fi
16621
16622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624		fi
16625
16626		CFLAGS="$CFLAGS -Wtrigraphs"
16627
16628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16629$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16630		cacheid=xorg_cv_cc_flag__Wtrigraphs
16631		if eval \${$cacheid+:} false; then :
16632  $as_echo_n "(cached) " >&6
16633else
16634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635/* end confdefs.h.  */
16636int i;
16637int
16638main ()
16639{
16640
16641  ;
16642  return 0;
16643}
16644_ACEOF
16645if ac_fn_c_try_link "$LINENO"; then :
16646  eval $cacheid=yes
16647else
16648  eval $cacheid=no
16649fi
16650rm -f core conftest.err conftest.$ac_objext \
16651    conftest$ac_exeext conftest.$ac_ext
16652fi
16653
16654
16655		CFLAGS="$xorg_testset_save_CFLAGS"
16656
16657		eval supported=\$$cacheid
16658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16659$as_echo "$supported" >&6; }
16660		if test "$supported" = "yes" ; then
16661			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16662			found="yes"
16663		fi
16664	fi
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680xorg_testset_save_CFLAGS="$CFLAGS"
16681
16682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h.  */
16691int i;
16692_ACEOF
16693if ac_fn_c_try_compile "$LINENO"; then :
16694  xorg_cv_cc_flag_unknown_warning_option=yes
16695else
16696  xorg_cv_cc_flag_unknown_warning_option=no
16697fi
16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699fi
16700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16703	CFLAGS="$xorg_testset_save_CFLAGS"
16704fi
16705
16706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16709	fi
16710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16714  $as_echo_n "(cached) " >&6
16715else
16716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h.  */
16718int i;
16719_ACEOF
16720if ac_fn_c_try_compile "$LINENO"; then :
16721  xorg_cv_cc_flag_unused_command_line_argument=yes
16722else
16723  xorg_cv_cc_flag_unused_command_line_argument=no
16724fi
16725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726fi
16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16730	CFLAGS="$xorg_testset_save_CFLAGS"
16731fi
16732
16733found="no"
16734
16735	if test $found = "no" ; then
16736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738		fi
16739
16740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742		fi
16743
16744		CFLAGS="$CFLAGS -Warray-bounds"
16745
16746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16747$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16748		cacheid=xorg_cv_cc_flag__Warray_bounds
16749		if eval \${$cacheid+:} false; then :
16750  $as_echo_n "(cached) " >&6
16751else
16752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753/* end confdefs.h.  */
16754int i;
16755int
16756main ()
16757{
16758
16759  ;
16760  return 0;
16761}
16762_ACEOF
16763if ac_fn_c_try_link "$LINENO"; then :
16764  eval $cacheid=yes
16765else
16766  eval $cacheid=no
16767fi
16768rm -f core conftest.err conftest.$ac_objext \
16769    conftest$ac_exeext conftest.$ac_ext
16770fi
16771
16772
16773		CFLAGS="$xorg_testset_save_CFLAGS"
16774
16775		eval supported=\$$cacheid
16776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16777$as_echo "$supported" >&6; }
16778		if test "$supported" = "yes" ; then
16779			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16780			found="yes"
16781		fi
16782	fi
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798xorg_testset_save_CFLAGS="$CFLAGS"
16799
16800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16805  $as_echo_n "(cached) " >&6
16806else
16807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808/* end confdefs.h.  */
16809int i;
16810_ACEOF
16811if ac_fn_c_try_compile "$LINENO"; then :
16812  xorg_cv_cc_flag_unknown_warning_option=yes
16813else
16814  xorg_cv_cc_flag_unknown_warning_option=no
16815fi
16816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817fi
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16821	CFLAGS="$xorg_testset_save_CFLAGS"
16822fi
16823
16824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16827	fi
16828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16832  $as_echo_n "(cached) " >&6
16833else
16834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h.  */
16836int i;
16837_ACEOF
16838if ac_fn_c_try_compile "$LINENO"; then :
16839  xorg_cv_cc_flag_unused_command_line_argument=yes
16840else
16841  xorg_cv_cc_flag_unused_command_line_argument=no
16842fi
16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844fi
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16848	CFLAGS="$xorg_testset_save_CFLAGS"
16849fi
16850
16851found="no"
16852
16853	if test $found = "no" ; then
16854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856		fi
16857
16858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860		fi
16861
16862		CFLAGS="$CFLAGS -Wwrite-strings"
16863
16864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16865$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16866		cacheid=xorg_cv_cc_flag__Wwrite_strings
16867		if eval \${$cacheid+:} false; then :
16868  $as_echo_n "(cached) " >&6
16869else
16870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872int i;
16873int
16874main ()
16875{
16876
16877  ;
16878  return 0;
16879}
16880_ACEOF
16881if ac_fn_c_try_link "$LINENO"; then :
16882  eval $cacheid=yes
16883else
16884  eval $cacheid=no
16885fi
16886rm -f core conftest.err conftest.$ac_objext \
16887    conftest$ac_exeext conftest.$ac_ext
16888fi
16889
16890
16891		CFLAGS="$xorg_testset_save_CFLAGS"
16892
16893		eval supported=\$$cacheid
16894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16895$as_echo "$supported" >&6; }
16896		if test "$supported" = "yes" ; then
16897			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16898			found="yes"
16899		fi
16900	fi
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916xorg_testset_save_CFLAGS="$CFLAGS"
16917
16918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16923  $as_echo_n "(cached) " >&6
16924else
16925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h.  */
16927int i;
16928_ACEOF
16929if ac_fn_c_try_compile "$LINENO"; then :
16930  xorg_cv_cc_flag_unknown_warning_option=yes
16931else
16932  xorg_cv_cc_flag_unknown_warning_option=no
16933fi
16934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935fi
16936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16939	CFLAGS="$xorg_testset_save_CFLAGS"
16940fi
16941
16942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16945	fi
16946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16950  $as_echo_n "(cached) " >&6
16951else
16952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h.  */
16954int i;
16955_ACEOF
16956if ac_fn_c_try_compile "$LINENO"; then :
16957  xorg_cv_cc_flag_unused_command_line_argument=yes
16958else
16959  xorg_cv_cc_flag_unused_command_line_argument=no
16960fi
16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962fi
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16966	CFLAGS="$xorg_testset_save_CFLAGS"
16967fi
16968
16969found="no"
16970
16971	if test $found = "no" ; then
16972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974		fi
16975
16976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978		fi
16979
16980		CFLAGS="$CFLAGS -Waddress"
16981
16982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16983$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16984		cacheid=xorg_cv_cc_flag__Waddress
16985		if eval \${$cacheid+:} false; then :
16986  $as_echo_n "(cached) " >&6
16987else
16988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h.  */
16990int i;
16991int
16992main ()
16993{
16994
16995  ;
16996  return 0;
16997}
16998_ACEOF
16999if ac_fn_c_try_link "$LINENO"; then :
17000  eval $cacheid=yes
17001else
17002  eval $cacheid=no
17003fi
17004rm -f core conftest.err conftest.$ac_objext \
17005    conftest$ac_exeext conftest.$ac_ext
17006fi
17007
17008
17009		CFLAGS="$xorg_testset_save_CFLAGS"
17010
17011		eval supported=\$$cacheid
17012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17013$as_echo "$supported" >&6; }
17014		if test "$supported" = "yes" ; then
17015			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17016			found="yes"
17017		fi
17018	fi
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034xorg_testset_save_CFLAGS="$CFLAGS"
17035
17036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17041  $as_echo_n "(cached) " >&6
17042else
17043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044/* end confdefs.h.  */
17045int i;
17046_ACEOF
17047if ac_fn_c_try_compile "$LINENO"; then :
17048  xorg_cv_cc_flag_unknown_warning_option=yes
17049else
17050  xorg_cv_cc_flag_unknown_warning_option=no
17051fi
17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053fi
17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17057	CFLAGS="$xorg_testset_save_CFLAGS"
17058fi
17059
17060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17063	fi
17064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17068  $as_echo_n "(cached) " >&6
17069else
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072int i;
17073_ACEOF
17074if ac_fn_c_try_compile "$LINENO"; then :
17075  xorg_cv_cc_flag_unused_command_line_argument=yes
17076else
17077  xorg_cv_cc_flag_unused_command_line_argument=no
17078fi
17079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080fi
17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17084	CFLAGS="$xorg_testset_save_CFLAGS"
17085fi
17086
17087found="no"
17088
17089	if test $found = "no" ; then
17090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092		fi
17093
17094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096		fi
17097
17098		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17099
17100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17101$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17102		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17103		if eval \${$cacheid+:} false; then :
17104  $as_echo_n "(cached) " >&6
17105else
17106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h.  */
17108int i;
17109int
17110main ()
17111{
17112
17113  ;
17114  return 0;
17115}
17116_ACEOF
17117if ac_fn_c_try_link "$LINENO"; then :
17118  eval $cacheid=yes
17119else
17120  eval $cacheid=no
17121fi
17122rm -f core conftest.err conftest.$ac_objext \
17123    conftest$ac_exeext conftest.$ac_ext
17124fi
17125
17126
17127		CFLAGS="$xorg_testset_save_CFLAGS"
17128
17129		eval supported=\$$cacheid
17130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17131$as_echo "$supported" >&6; }
17132		if test "$supported" = "yes" ; then
17133			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17134			found="yes"
17135		fi
17136	fi
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152xorg_testset_save_CFLAGS="$CFLAGS"
17153
17154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17159  $as_echo_n "(cached) " >&6
17160else
17161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162/* end confdefs.h.  */
17163int i;
17164_ACEOF
17165if ac_fn_c_try_compile "$LINENO"; then :
17166  xorg_cv_cc_flag_unknown_warning_option=yes
17167else
17168  xorg_cv_cc_flag_unknown_warning_option=no
17169fi
17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171fi
17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17175	CFLAGS="$xorg_testset_save_CFLAGS"
17176fi
17177
17178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181	fi
17182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17186  $as_echo_n "(cached) " >&6
17187else
17188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189/* end confdefs.h.  */
17190int i;
17191_ACEOF
17192if ac_fn_c_try_compile "$LINENO"; then :
17193  xorg_cv_cc_flag_unused_command_line_argument=yes
17194else
17195  xorg_cv_cc_flag_unused_command_line_argument=no
17196fi
17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198fi
17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17202	CFLAGS="$xorg_testset_save_CFLAGS"
17203fi
17204
17205found="no"
17206
17207	if test $found = "no" ; then
17208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210		fi
17211
17212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214		fi
17215
17216		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17217
17218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17219$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17220		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17221		if eval \${$cacheid+:} false; then :
17222  $as_echo_n "(cached) " >&6
17223else
17224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225/* end confdefs.h.  */
17226int i;
17227int
17228main ()
17229{
17230
17231  ;
17232  return 0;
17233}
17234_ACEOF
17235if ac_fn_c_try_link "$LINENO"; then :
17236  eval $cacheid=yes
17237else
17238  eval $cacheid=no
17239fi
17240rm -f core conftest.err conftest.$ac_objext \
17241    conftest$ac_exeext conftest.$ac_ext
17242fi
17243
17244
17245		CFLAGS="$xorg_testset_save_CFLAGS"
17246
17247		eval supported=\$$cacheid
17248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17249$as_echo "$supported" >&6; }
17250		if test "$supported" = "yes" ; then
17251			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17252			found="yes"
17253		fi
17254	fi
17255
17256
17257fi
17258
17259
17260
17261
17262
17263
17264
17265		CWARNFLAGS="$BASE_CFLAGS"
17266		if  test "x$GCC" = xyes ; then
17267		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17268		fi
17269
17270
17271
17272
17273
17274
17275
17276
17277# Check whether --enable-strict-compilation was given.
17278if test "${enable_strict_compilation+set}" = set; then :
17279  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17280else
17281  STRICT_COMPILE=no
17282fi
17283
17284
17285
17286
17287
17288
17289STRICT_CFLAGS=""
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303xorg_testset_save_CFLAGS="$CFLAGS"
17304
17305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17310  $as_echo_n "(cached) " >&6
17311else
17312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313/* end confdefs.h.  */
17314int i;
17315_ACEOF
17316if ac_fn_c_try_compile "$LINENO"; then :
17317  xorg_cv_cc_flag_unknown_warning_option=yes
17318else
17319  xorg_cv_cc_flag_unknown_warning_option=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17322fi
17323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17326	CFLAGS="$xorg_testset_save_CFLAGS"
17327fi
17328
17329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332	fi
17333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17337  $as_echo_n "(cached) " >&6
17338else
17339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340/* end confdefs.h.  */
17341int i;
17342_ACEOF
17343if ac_fn_c_try_compile "$LINENO"; then :
17344  xorg_cv_cc_flag_unused_command_line_argument=yes
17345else
17346  xorg_cv_cc_flag_unused_command_line_argument=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349fi
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17353	CFLAGS="$xorg_testset_save_CFLAGS"
17354fi
17355
17356found="no"
17357
17358	if test $found = "no" ; then
17359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361		fi
17362
17363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365		fi
17366
17367		CFLAGS="$CFLAGS -pedantic"
17368
17369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17370$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17371		cacheid=xorg_cv_cc_flag__pedantic
17372		if eval \${$cacheid+:} false; then :
17373  $as_echo_n "(cached) " >&6
17374else
17375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376/* end confdefs.h.  */
17377int i;
17378int
17379main ()
17380{
17381
17382  ;
17383  return 0;
17384}
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"; then :
17387  eval $cacheid=yes
17388else
17389  eval $cacheid=no
17390fi
17391rm -f core conftest.err conftest.$ac_objext \
17392    conftest$ac_exeext conftest.$ac_ext
17393fi
17394
17395
17396		CFLAGS="$xorg_testset_save_CFLAGS"
17397
17398		eval supported=\$$cacheid
17399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17400$as_echo "$supported" >&6; }
17401		if test "$supported" = "yes" ; then
17402			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17403			found="yes"
17404		fi
17405	fi
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421xorg_testset_save_CFLAGS="$CFLAGS"
17422
17423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17428  $as_echo_n "(cached) " >&6
17429else
17430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431/* end confdefs.h.  */
17432int i;
17433_ACEOF
17434if ac_fn_c_try_compile "$LINENO"; then :
17435  xorg_cv_cc_flag_unknown_warning_option=yes
17436else
17437  xorg_cv_cc_flag_unknown_warning_option=no
17438fi
17439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440fi
17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17444	CFLAGS="$xorg_testset_save_CFLAGS"
17445fi
17446
17447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17450	fi
17451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17455  $as_echo_n "(cached) " >&6
17456else
17457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h.  */
17459int i;
17460_ACEOF
17461if ac_fn_c_try_compile "$LINENO"; then :
17462  xorg_cv_cc_flag_unused_command_line_argument=yes
17463else
17464  xorg_cv_cc_flag_unused_command_line_argument=no
17465fi
17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467fi
17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17471	CFLAGS="$xorg_testset_save_CFLAGS"
17472fi
17473
17474found="no"
17475
17476	if test $found = "no" ; then
17477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17479		fi
17480
17481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17483		fi
17484
17485		CFLAGS="$CFLAGS -Werror"
17486
17487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17488$as_echo_n "checking if $CC supports -Werror... " >&6; }
17489		cacheid=xorg_cv_cc_flag__Werror
17490		if eval \${$cacheid+:} false; then :
17491  $as_echo_n "(cached) " >&6
17492else
17493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494/* end confdefs.h.  */
17495int i;
17496int
17497main ()
17498{
17499
17500  ;
17501  return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_link "$LINENO"; then :
17505  eval $cacheid=yes
17506else
17507  eval $cacheid=no
17508fi
17509rm -f core conftest.err conftest.$ac_objext \
17510    conftest$ac_exeext conftest.$ac_ext
17511fi
17512
17513
17514		CFLAGS="$xorg_testset_save_CFLAGS"
17515
17516		eval supported=\$$cacheid
17517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17518$as_echo "$supported" >&6; }
17519		if test "$supported" = "yes" ; then
17520			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17521			found="yes"
17522		fi
17523	fi
17524
17525	if test $found = "no" ; then
17526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17528		fi
17529
17530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17532		fi
17533
17534		CFLAGS="$CFLAGS -errwarn"
17535
17536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17537$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17538		cacheid=xorg_cv_cc_flag__errwarn
17539		if eval \${$cacheid+:} false; then :
17540  $as_echo_n "(cached) " >&6
17541else
17542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543/* end confdefs.h.  */
17544int i;
17545int
17546main ()
17547{
17548
17549  ;
17550  return 0;
17551}
17552_ACEOF
17553if ac_fn_c_try_link "$LINENO"; then :
17554  eval $cacheid=yes
17555else
17556  eval $cacheid=no
17557fi
17558rm -f core conftest.err conftest.$ac_objext \
17559    conftest$ac_exeext conftest.$ac_ext
17560fi
17561
17562
17563		CFLAGS="$xorg_testset_save_CFLAGS"
17564
17565		eval supported=\$$cacheid
17566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17567$as_echo "$supported" >&6; }
17568		if test "$supported" = "yes" ; then
17569			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17570			found="yes"
17571		fi
17572	fi
17573
17574
17575
17576# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17577# activate it with -Werror, so we add it here explicitly.
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591xorg_testset_save_CFLAGS="$CFLAGS"
17592
17593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17598  $as_echo_n "(cached) " >&6
17599else
17600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601/* end confdefs.h.  */
17602int i;
17603_ACEOF
17604if ac_fn_c_try_compile "$LINENO"; then :
17605  xorg_cv_cc_flag_unknown_warning_option=yes
17606else
17607  xorg_cv_cc_flag_unknown_warning_option=no
17608fi
17609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610fi
17611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17614	CFLAGS="$xorg_testset_save_CFLAGS"
17615fi
17616
17617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17620	fi
17621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17625  $as_echo_n "(cached) " >&6
17626else
17627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h.  */
17629int i;
17630_ACEOF
17631if ac_fn_c_try_compile "$LINENO"; then :
17632  xorg_cv_cc_flag_unused_command_line_argument=yes
17633else
17634  xorg_cv_cc_flag_unused_command_line_argument=no
17635fi
17636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637fi
17638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17641	CFLAGS="$xorg_testset_save_CFLAGS"
17642fi
17643
17644found="no"
17645
17646	if test $found = "no" ; then
17647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17649		fi
17650
17651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17653		fi
17654
17655		CFLAGS="$CFLAGS -Werror=attributes"
17656
17657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17658$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17659		cacheid=xorg_cv_cc_flag__Werror_attributes
17660		if eval \${$cacheid+:} false; then :
17661  $as_echo_n "(cached) " >&6
17662else
17663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664/* end confdefs.h.  */
17665int i;
17666int
17667main ()
17668{
17669
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674if ac_fn_c_try_link "$LINENO"; then :
17675  eval $cacheid=yes
17676else
17677  eval $cacheid=no
17678fi
17679rm -f core conftest.err conftest.$ac_objext \
17680    conftest$ac_exeext conftest.$ac_ext
17681fi
17682
17683
17684		CFLAGS="$xorg_testset_save_CFLAGS"
17685
17686		eval supported=\$$cacheid
17687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17688$as_echo "$supported" >&6; }
17689		if test "$supported" = "yes" ; then
17690			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17691			found="yes"
17692		fi
17693	fi
17694
17695
17696
17697if test "x$STRICT_COMPILE" = "xyes"; then
17698    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17699    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17700fi
17701
17702
17703
17704
17705
17706
17707cat >>confdefs.h <<_ACEOF
17708#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17709_ACEOF
17710
17711	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17712	if test "x$PVM" = "x"; then
17713		PVM="0"
17714	fi
17715
17716cat >>confdefs.h <<_ACEOF
17717#define PACKAGE_VERSION_MINOR $PVM
17718_ACEOF
17719
17720	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17721	if test "x$PVP" = "x"; then
17722		PVP="0"
17723	fi
17724
17725cat >>confdefs.h <<_ACEOF
17726#define PACKAGE_VERSION_PATCHLEVEL $PVP
17727_ACEOF
17728
17729
17730
17731CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17732mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17733|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17734echo 'git directory not found: installing possibly empty changelog.' >&2)"
17735
17736
17737
17738
17739macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17740INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17741mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17742|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17743echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17744
17745
17746
17747
17748
17749
17750if test x$APP_MAN_SUFFIX = x    ; then
17751    APP_MAN_SUFFIX=1
17752fi
17753if test x$APP_MAN_DIR = x    ; then
17754    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17755fi
17756
17757if test x$LIB_MAN_SUFFIX = x    ; then
17758    LIB_MAN_SUFFIX=3
17759fi
17760if test x$LIB_MAN_DIR = x    ; then
17761    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17762fi
17763
17764if test x$FILE_MAN_SUFFIX = x    ; then
17765    case $host_os in
17766	solaris*)	FILE_MAN_SUFFIX=4  ;;
17767	*)		FILE_MAN_SUFFIX=5  ;;
17768    esac
17769fi
17770if test x$FILE_MAN_DIR = x    ; then
17771    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17772fi
17773
17774if test x$MISC_MAN_SUFFIX = x    ; then
17775    case $host_os in
17776	solaris*)	MISC_MAN_SUFFIX=5  ;;
17777	*)		MISC_MAN_SUFFIX=7  ;;
17778    esac
17779fi
17780if test x$MISC_MAN_DIR = x    ; then
17781    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17782fi
17783
17784if test x$DRIVER_MAN_SUFFIX = x    ; then
17785    case $host_os in
17786	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17787	*)		DRIVER_MAN_SUFFIX=4  ;;
17788    esac
17789fi
17790if test x$DRIVER_MAN_DIR = x    ; then
17791    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17792fi
17793
17794if test x$ADMIN_MAN_SUFFIX = x    ; then
17795    case $host_os in
17796	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17797	*)		ADMIN_MAN_SUFFIX=8  ;;
17798    esac
17799fi
17800if test x$ADMIN_MAN_DIR = x    ; then
17801    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17802fi
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818XORG_MAN_PAGE="X Version 11"
17819
17820MAN_SUBSTS="\
17821	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17822	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17823	-e 's|__xservername__|Xorg|g' \
17824	-e 's|__xconfigfile__|xorg.conf|g' \
17825	-e 's|__projectroot__|\$(prefix)|g' \
17826	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17827	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17828	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17829	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17830	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17831	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17832	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17833
17834
17835
17836# Check whether --enable-silent-rules was given.
17837if test "${enable_silent_rules+set}" = set; then :
17838  enableval=$enable_silent_rules;
17839fi
17840
17841case $enable_silent_rules in # (((
17842  yes) AM_DEFAULT_VERBOSITY=0;;
17843   no) AM_DEFAULT_VERBOSITY=1;;
17844    *) AM_DEFAULT_VERBOSITY=0;;
17845esac
17846am_make=${MAKE-make}
17847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17848$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17849if ${am_cv_make_support_nested_variables+:} false; then :
17850  $as_echo_n "(cached) " >&6
17851else
17852  if $as_echo 'TRUE=$(BAR$(V))
17853BAR0=false
17854BAR1=true
17855V=1
17856am__doit:
17857	@$(TRUE)
17858.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17859  am_cv_make_support_nested_variables=yes
17860else
17861  am_cv_make_support_nested_variables=no
17862fi
17863fi
17864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17865$as_echo "$am_cv_make_support_nested_variables" >&6; }
17866if test $am_cv_make_support_nested_variables = yes; then
17867    AM_V='$(V)'
17868  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17869else
17870  AM_V=$AM_DEFAULT_VERBOSITY
17871  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17872fi
17873AM_BACKSLASH='\'
17874
17875
17876
17877# Checks for programs.
17878# Check whether --enable-static was given.
17879if test "${enable_static+set}" = set; then :
17880  enableval=$enable_static; p=${PACKAGE-default}
17881    case $enableval in
17882    yes) enable_static=yes ;;
17883    no) enable_static=no ;;
17884    *)
17885     enable_static=no
17886      # Look at the argument we got.  We use all the common list separators.
17887      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17888      for pkg in $enableval; do
17889	IFS="$lt_save_ifs"
17890	if test "X$pkg" = "X$p"; then
17891	  enable_static=yes
17892	fi
17893      done
17894      IFS="$lt_save_ifs"
17895      ;;
17896    esac
17897else
17898  enable_static=no
17899fi
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910# -----------------------------------------------------------------------------
17911#			Configuration options
17912# -----------------------------------------------------------------------------
17913# Define a configure option for an alternate input module directory
17914
17915# Check whether --with-xorg-module-dir was given.
17916if test "${with_xorg_module_dir+set}" = set; then :
17917  withval=$with_xorg_module_dir; moduledir="$withval"
17918else
17919  moduledir="$libdir/xorg/modules"
17920fi
17921
17922
17923
17924# Define a configure option to enable/disable lcd panel support
17925# Check whether --enable-geodegx-panel was given.
17926if test "${enable_geodegx_panel+set}" = set; then :
17927  enableval=$enable_geodegx_panel;
17928else
17929   PANEL_CPPFLAGS=-DPNL_SUP
17930fi
17931
17932
17933
17934# Define a configure option to enable/disable ztv
17935# Check whether --enable-ztv was given.
17936if test "${enable_ztv+set}" = set; then :
17937  enableval=$enable_ztv; ztv=$enableval
17938else
17939  ztv=auto
17940fi
17941
17942
17943# Check for Video4Linux Version 2 (V4L2) availability
17944for ac_header in linux/videodev2.h
17945do :
17946  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
17947if test "x$ac_cv_header_linux_videodev2_h" = xyes; then :
17948  cat >>confdefs.h <<_ACEOF
17949#define HAVE_LINUX_VIDEODEV2_H 1
17950_ACEOF
17951 v4l2=yes
17952else
17953  v4l2=no
17954fi
17955
17956done
17957
17958if test "x$ztv" != "xno" ; then
17959    if test "x$v4l2" = "xno" ; then
17960	if test "x$ztv" = "xyes" ; then
17961	    # User really wants ztv but V4L2 is not found
17962	    as_fn_error $? "ZTV driver requested, but videodev2.h not found." "$LINENO" 5
17963	fi
17964    else
17965	BUILD_ZTV=yes
17966    fi
17967fi
17968 if test "x$BUILD_ZTV" = xyes; then
17969  BUILD_ZTV_TRUE=
17970  BUILD_ZTV_FALSE='#'
17971else
17972  BUILD_ZTV_TRUE='#'
17973  BUILD_ZTV_FALSE=
17974fi
17975
17976
17977# Check if GCC supports compiling in 32 bit mode for 64 bit computers
17978case $host_cpu in
17979    x86_64*|amd64*)
17980	if  test "x$GCC" = xyes ; then
17981	    SAVE_CFLAGS="$CFLAGS"
17982	    CFLAGS="$CFLAGS -m32"
17983	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the -m32 Intel/AMD option" >&5
17984$as_echo_n "checking if $CC supports the -m32 Intel/AMD option... " >&6; }
17985	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986/* end confdefs.h.  */
17987
17988#include <unistd.h>
17989int
17990main ()
17991{
17992  ;
17993  return 0;
17994}
17995_ACEOF
17996if ac_fn_c_try_compile "$LINENO"; then :
17997  m32_support=yes; M32_CFLAGS=-m32
17998else
17999  m32_support=no
18000fi
18001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m32_support" >&5
18003$as_echo "$m32_support" >&6; }
18004	    CFLAGS="$SAVE_CFLAGS"
18005	fi
18006	;;
18007esac
18008
18009
18010# Store the list of server defined optional extensions in REQUIRED_MODULES
18011
18012
18013	SAVE_CFLAGS="$CFLAGS"
18014	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18015	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016/* end confdefs.h.  */
18017
18018#include "xorg-server.h"
18019#if !defined RANDR
18020#error RANDR not defined
18021#endif
18022
18023int
18024main ()
18025{
18026
18027  ;
18028  return 0;
18029}
18030_ACEOF
18031if ac_fn_c_try_compile "$LINENO"; then :
18032  _EXT_CHECK=yes
18033else
18034  _EXT_CHECK=no
18035fi
18036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037	CFLAGS="$SAVE_CFLAGS"
18038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18039$as_echo_n "checking if RANDR is defined... " >&6; }
18040	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18041$as_echo "$_EXT_CHECK" >&6; }
18042	if test "$_EXT_CHECK" != no; then
18043		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18044	fi
18045
18046
18047
18048	SAVE_CFLAGS="$CFLAGS"
18049	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18050	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051/* end confdefs.h.  */
18052
18053#include "xorg-server.h"
18054#if !defined RENDER
18055#error RENDER not defined
18056#endif
18057
18058int
18059main ()
18060{
18061
18062  ;
18063  return 0;
18064}
18065_ACEOF
18066if ac_fn_c_try_compile "$LINENO"; then :
18067  _EXT_CHECK=yes
18068else
18069  _EXT_CHECK=no
18070fi
18071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072	CFLAGS="$SAVE_CFLAGS"
18073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18074$as_echo_n "checking if RENDER is defined... " >&6; }
18075	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18076$as_echo "$_EXT_CHECK" >&6; }
18077	if test "$_EXT_CHECK" != no; then
18078		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18079	fi
18080
18081
18082
18083	SAVE_CFLAGS="$CFLAGS"
18084	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18085	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h.  */
18087
18088#include "xorg-server.h"
18089#if !defined XV
18090#error XV not defined
18091#endif
18092
18093int
18094main ()
18095{
18096
18097  ;
18098  return 0;
18099}
18100_ACEOF
18101if ac_fn_c_try_compile "$LINENO"; then :
18102  _EXT_CHECK=yes
18103else
18104  _EXT_CHECK=no
18105fi
18106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107	CFLAGS="$SAVE_CFLAGS"
18108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18109$as_echo_n "checking if XV is defined... " >&6; }
18110	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18111$as_echo "$_EXT_CHECK" >&6; }
18112	if test "$_EXT_CHECK" != no; then
18113		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18114	fi
18115
18116
18117
18118	SAVE_CFLAGS="$CFLAGS"
18119	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18120	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121/* end confdefs.h.  */
18122
18123#include "xorg-server.h"
18124#if !defined DPMSExtension
18125#error DPMSExtension not defined
18126#endif
18127
18128int
18129main ()
18130{
18131
18132  ;
18133  return 0;
18134}
18135_ACEOF
18136if ac_fn_c_try_compile "$LINENO"; then :
18137  _EXT_CHECK=yes
18138else
18139  _EXT_CHECK=no
18140fi
18141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18142	CFLAGS="$SAVE_CFLAGS"
18143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18144$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18146$as_echo "$_EXT_CHECK" >&6; }
18147	if test "$_EXT_CHECK" != no; then
18148		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18149	fi
18150
18151
18152# Obtain compiler/linker options for the Geode driver dependencies
18153
18154pkg_failed=no
18155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18156$as_echo_n "checking for XORG... " >&6; }
18157
18158if test -n "$XORG_CFLAGS"; then
18159    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18160 elif test -n "$PKG_CONFIG"; then
18161    if test -n "$PKG_CONFIG" && \
18162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18163  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18164  ac_status=$?
18165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18166  test $ac_status = 0; }; then
18167  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18168		      test "x$?" != "x0" && pkg_failed=yes
18169else
18170  pkg_failed=yes
18171fi
18172 else
18173    pkg_failed=untried
18174fi
18175if test -n "$XORG_LIBS"; then
18176    pkg_cv_XORG_LIBS="$XORG_LIBS"
18177 elif test -n "$PKG_CONFIG"; then
18178    if test -n "$PKG_CONFIG" && \
18179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18180  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18181  ac_status=$?
18182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183  test $ac_status = 0; }; then
18184  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18185		      test "x$?" != "x0" && pkg_failed=yes
18186else
18187  pkg_failed=yes
18188fi
18189 else
18190    pkg_failed=untried
18191fi
18192
18193
18194
18195if test $pkg_failed = yes; then
18196   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18197$as_echo "no" >&6; }
18198
18199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18200        _pkg_short_errors_supported=yes
18201else
18202        _pkg_short_errors_supported=no
18203fi
18204        if test $_pkg_short_errors_supported = yes; then
18205	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18206        else
18207	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18208        fi
18209	# Put the nasty error message in config.log where it belongs
18210	echo "$XORG_PKG_ERRORS" >&5
18211
18212	as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
18213
18214$XORG_PKG_ERRORS
18215
18216Consider adjusting the PKG_CONFIG_PATH environment variable if you
18217installed software in a non-standard prefix.
18218
18219Alternatively, you may set the environment variables XORG_CFLAGS
18220and XORG_LIBS to avoid the need to call pkg-config.
18221See the pkg-config man page for more details." "$LINENO" 5
18222elif test $pkg_failed = untried; then
18223     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224$as_echo "no" >&6; }
18225	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18227as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18228is in your PATH or set the PKG_CONFIG environment variable to the full
18229path to pkg-config.
18230
18231Alternatively, you may set the environment variables XORG_CFLAGS
18232and XORG_LIBS to avoid the need to call pkg-config.
18233See the pkg-config man page for more details.
18234
18235To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18236See \`config.log' for more details" "$LINENO" 5; }
18237else
18238	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18239	XORG_LIBS=$pkg_cv_XORG_LIBS
18240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18241$as_echo "yes" >&6; }
18242
18243fi
18244
18245pkg_failed=no
18246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18247$as_echo_n "checking for XEXT... " >&6; }
18248
18249if test -n "$XEXT_CFLAGS"; then
18250    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18251 elif test -n "$PKG_CONFIG"; then
18252    if test -n "$PKG_CONFIG" && \
18253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18254  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18255  ac_status=$?
18256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18257  test $ac_status = 0; }; then
18258  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18259		      test "x$?" != "x0" && pkg_failed=yes
18260else
18261  pkg_failed=yes
18262fi
18263 else
18264    pkg_failed=untried
18265fi
18266if test -n "$XEXT_LIBS"; then
18267    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18268 elif test -n "$PKG_CONFIG"; then
18269    if test -n "$PKG_CONFIG" && \
18270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18271  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18272  ac_status=$?
18273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18274  test $ac_status = 0; }; then
18275  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18276		      test "x$?" != "x0" && pkg_failed=yes
18277else
18278  pkg_failed=yes
18279fi
18280 else
18281    pkg_failed=untried
18282fi
18283
18284
18285
18286if test $pkg_failed = yes; then
18287   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288$as_echo "no" >&6; }
18289
18290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18291        _pkg_short_errors_supported=yes
18292else
18293        _pkg_short_errors_supported=no
18294fi
18295        if test $_pkg_short_errors_supported = yes; then
18296	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18297        else
18298	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18299        fi
18300	# Put the nasty error message in config.log where it belongs
18301	echo "$XEXT_PKG_ERRORS" >&5
18302
18303	HAVE_XEXTPROTO_71="no"
18304elif test $pkg_failed = untried; then
18305     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306$as_echo "no" >&6; }
18307	HAVE_XEXTPROTO_71="no"
18308else
18309	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18310	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312$as_echo "yes" >&6; }
18313	HAVE_XEXTPROTO_71="yes";
18314$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18315
18316fi
18317
18318# Define a configure option to enable/disable XAA support;
18319# handles unavailability of XAA since xserver-1.13
18320# Check whether --enable-xaa was given.
18321if test "${enable_xaa+set}" = set; then :
18322  enableval=$enable_xaa;
18323fi
18324
18325
18326if test "x$enable_xaa" != "xno"; then :
18327
18328        save_CFLAGS=$CFLAGS
18329        save_CPPFLAGS=$CPPFLAGS
18330        CFLAGS=$XORG_CFLAGS
18331        CPPFLAGS="$XORG_CFLAGS"
18332        for ac_header in xaa.h
18333do :
18334  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18335if test "x$ac_cv_header_xaa_h" = xyes; then :
18336  cat >>confdefs.h <<_ACEOF
18337#define HAVE_XAA_H 1
18338_ACEOF
18339 have_XAA=yes
18340else
18341  have_XAA=no
18342fi
18343
18344done
18345
18346        CFLAGS=$save_CFLAGS
18347        CPPFLAGS=$save_CPPFLAGS
18348
18349fi
18350
18351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18352$as_echo_n "checking whether to include XAA support... " >&6; }
18353
18354if test "x$have_XAA" = "xyes"; then :
18355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356$as_echo "yes" >&6; }
18357else
18358  if test "x$enable_xaa" = "xyes"; then :
18359  as_fn_error $? "XAA requested but not found (perhaps building against xserver-1.13 or newer?)" "$LINENO" 5
18360else
18361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362$as_echo "no" >&6; }
18363
18364fi
18365
18366fi
18367
18368# Checks for libpciaccess support.
18369SAVE_CPPFLAGS="$CPPFLAGS"
18370CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18371ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18372"
18373if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18374  XSERVER_LIBPCIACCESS=yes
18375else
18376  XSERVER_LIBPCIACCESS=no
18377fi
18378
18379CPPFLAGS="$SAVE_CPPFLAGS"
18380
18381if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18382
18383pkg_failed=no
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18385$as_echo_n "checking for PCIACCESS... " >&6; }
18386
18387if test -n "$PCIACCESS_CFLAGS"; then
18388    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18389 elif test -n "$PKG_CONFIG"; then
18390    if test -n "$PKG_CONFIG" && \
18391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18392  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18393  ac_status=$?
18394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18395  test $ac_status = 0; }; then
18396  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18397		      test "x$?" != "x0" && pkg_failed=yes
18398else
18399  pkg_failed=yes
18400fi
18401 else
18402    pkg_failed=untried
18403fi
18404if test -n "$PCIACCESS_LIBS"; then
18405    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18406 elif test -n "$PKG_CONFIG"; then
18407    if test -n "$PKG_CONFIG" && \
18408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18409  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18410  ac_status=$?
18411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18412  test $ac_status = 0; }; then
18413  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18414		      test "x$?" != "x0" && pkg_failed=yes
18415else
18416  pkg_failed=yes
18417fi
18418 else
18419    pkg_failed=untried
18420fi
18421
18422
18423
18424if test $pkg_failed = yes; then
18425   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426$as_echo "no" >&6; }
18427
18428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18429        _pkg_short_errors_supported=yes
18430else
18431        _pkg_short_errors_supported=no
18432fi
18433        if test $_pkg_short_errors_supported = yes; then
18434	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18435        else
18436	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18437        fi
18438	# Put the nasty error message in config.log where it belongs
18439	echo "$PCIACCESS_PKG_ERRORS" >&5
18440
18441	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18442
18443$PCIACCESS_PKG_ERRORS
18444
18445Consider adjusting the PKG_CONFIG_PATH environment variable if you
18446installed software in a non-standard prefix.
18447
18448Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18449and PCIACCESS_LIBS to avoid the need to call pkg-config.
18450See the pkg-config man page for more details." "$LINENO" 5
18451elif test $pkg_failed = untried; then
18452     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18453$as_echo "no" >&6; }
18454	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18456as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18457is in your PATH or set the PKG_CONFIG environment variable to the full
18458path to pkg-config.
18459
18460Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18461and PCIACCESS_LIBS to avoid the need to call pkg-config.
18462See the pkg-config man page for more details.
18463
18464To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18465See \`config.log' for more details" "$LINENO" 5; }
18466else
18467	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18468	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18470$as_echo "yes" >&6; }
18471
18472fi
18473    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18474fi
18475
18476ac_config_files="$ac_config_files Makefile src/Makefile"
18477
18478cat >confcache <<\_ACEOF
18479# This file is a shell script that caches the results of configure
18480# tests run on this system so they can be shared between configure
18481# scripts and configure runs, see configure's option --config-cache.
18482# It is not useful on other systems.  If it contains results you don't
18483# want to keep, you may remove or edit it.
18484#
18485# config.status only pays attention to the cache file if you give it
18486# the --recheck option to rerun configure.
18487#
18488# `ac_cv_env_foo' variables (set or unset) will be overridden when
18489# loading this file, other *unset* `ac_cv_foo' will be assigned the
18490# following values.
18491
18492_ACEOF
18493
18494# The following way of writing the cache mishandles newlines in values,
18495# but we know of no workaround that is simple, portable, and efficient.
18496# So, we kill variables containing newlines.
18497# Ultrix sh set writes to stderr and can't be redirected directly,
18498# and sets the high bit in the cache file unless we assign to the vars.
18499(
18500  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18501    eval ac_val=\$$ac_var
18502    case $ac_val in #(
18503    *${as_nl}*)
18504      case $ac_var in #(
18505      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18507      esac
18508      case $ac_var in #(
18509      _ | IFS | as_nl) ;; #(
18510      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18511      *) { eval $ac_var=; unset $ac_var;} ;;
18512      esac ;;
18513    esac
18514  done
18515
18516  (set) 2>&1 |
18517    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18518    *${as_nl}ac_space=\ *)
18519      # `set' does not quote correctly, so add quotes: double-quote
18520      # substitution turns \\\\ into \\, and sed turns \\ into \.
18521      sed -n \
18522	"s/'/'\\\\''/g;
18523	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18524      ;; #(
18525    *)
18526      # `set' quotes correctly as required by POSIX, so do not add quotes.
18527      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18528      ;;
18529    esac |
18530    sort
18531) |
18532  sed '
18533     /^ac_cv_env_/b end
18534     t clear
18535     :clear
18536     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18537     t end
18538     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18539     :end' >>confcache
18540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18541  if test -w "$cache_file"; then
18542    if test "x$cache_file" != "x/dev/null"; then
18543      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18544$as_echo "$as_me: updating cache $cache_file" >&6;}
18545      if test ! -f "$cache_file" || test -h "$cache_file"; then
18546	cat confcache >"$cache_file"
18547      else
18548        case $cache_file in #(
18549        */* | ?:*)
18550	  mv -f confcache "$cache_file"$$ &&
18551	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18552        *)
18553	  mv -f confcache "$cache_file" ;;
18554	esac
18555      fi
18556    fi
18557  else
18558    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18560  fi
18561fi
18562rm -f confcache
18563
18564test "x$prefix" = xNONE && prefix=$ac_default_prefix
18565# Let make expand exec_prefix.
18566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18567
18568DEFS=-DHAVE_CONFIG_H
18569
18570ac_libobjs=
18571ac_ltlibobjs=
18572U=
18573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18574  # 1. Remove the extension, and $U if already installed.
18575  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18576  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18577  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18578  #    will be set to the directory where LIBOBJS objects are built.
18579  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18580  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18581done
18582LIBOBJS=$ac_libobjs
18583
18584LTLIBOBJS=$ac_ltlibobjs
18585
18586
18587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18588$as_echo_n "checking that generated files are newer than configure... " >&6; }
18589   if test -n "$am_sleep_pid"; then
18590     # Hide warnings about reused PIDs.
18591     wait $am_sleep_pid 2>/dev/null
18592   fi
18593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18594$as_echo "done" >&6; }
18595 if test -n "$EXEEXT"; then
18596  am__EXEEXT_TRUE=
18597  am__EXEEXT_FALSE='#'
18598else
18599  am__EXEEXT_TRUE='#'
18600  am__EXEEXT_FALSE=
18601fi
18602
18603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18604  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18605Usually this means the macro was only invoked conditionally." "$LINENO" 5
18606fi
18607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18608  as_fn_error $? "conditional \"AMDEP\" was never defined.
18609Usually this means the macro was only invoked conditionally." "$LINENO" 5
18610fi
18611if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18612  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18613Usually this means the macro was only invoked conditionally." "$LINENO" 5
18614fi
18615if test -z "${BUILD_ZTV_TRUE}" && test -z "${BUILD_ZTV_FALSE}"; then
18616  as_fn_error $? "conditional \"BUILD_ZTV\" was never defined.
18617Usually this means the macro was only invoked conditionally." "$LINENO" 5
18618fi
18619
18620: "${CONFIG_STATUS=./config.status}"
18621ac_write_fail=0
18622ac_clean_files_save=$ac_clean_files
18623ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18625$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18626as_write_fail=0
18627cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18628#! $SHELL
18629# Generated by $as_me.
18630# Run this file to recreate the current configuration.
18631# Compiler output produced by configure, useful for debugging
18632# configure, is in config.log if it exists.
18633
18634debug=false
18635ac_cs_recheck=false
18636ac_cs_silent=false
18637
18638SHELL=\${CONFIG_SHELL-$SHELL}
18639export SHELL
18640_ASEOF
18641cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18642## -------------------- ##
18643## M4sh Initialization. ##
18644## -------------------- ##
18645
18646# Be more Bourne compatible
18647DUALCASE=1; export DUALCASE # for MKS sh
18648if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18649  emulate sh
18650  NULLCMD=:
18651  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18652  # is contrary to our usage.  Disable this feature.
18653  alias -g '${1+"$@"}'='"$@"'
18654  setopt NO_GLOB_SUBST
18655else
18656  case `(set -o) 2>/dev/null` in #(
18657  *posix*) :
18658    set -o posix ;; #(
18659  *) :
18660     ;;
18661esac
18662fi
18663
18664
18665as_nl='
18666'
18667export as_nl
18668# Printing a long string crashes Solaris 7 /usr/bin/printf.
18669as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18670as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18672# Prefer a ksh shell builtin over an external printf program on Solaris,
18673# but without wasting forks for bash or zsh.
18674if test -z "$BASH_VERSION$ZSH_VERSION" \
18675    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18676  as_echo='print -r --'
18677  as_echo_n='print -rn --'
18678elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18679  as_echo='printf %s\n'
18680  as_echo_n='printf %s'
18681else
18682  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18683    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18684    as_echo_n='/usr/ucb/echo -n'
18685  else
18686    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18687    as_echo_n_body='eval
18688      arg=$1;
18689      case $arg in #(
18690      *"$as_nl"*)
18691	expr "X$arg" : "X\\(.*\\)$as_nl";
18692	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18693      esac;
18694      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18695    '
18696    export as_echo_n_body
18697    as_echo_n='sh -c $as_echo_n_body as_echo'
18698  fi
18699  export as_echo_body
18700  as_echo='sh -c $as_echo_body as_echo'
18701fi
18702
18703# The user is always right.
18704if test "${PATH_SEPARATOR+set}" != set; then
18705  PATH_SEPARATOR=:
18706  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18707    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18708      PATH_SEPARATOR=';'
18709  }
18710fi
18711
18712
18713# IFS
18714# We need space, tab and new line, in precisely that order.  Quoting is
18715# there to prevent editors from complaining about space-tab.
18716# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18717# splitting by setting IFS to empty value.)
18718IFS=" ""	$as_nl"
18719
18720# Find who we are.  Look in the path if we contain no directory separator.
18721as_myself=
18722case $0 in #((
18723  *[\\/]* ) as_myself=$0 ;;
18724  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725for as_dir in $PATH
18726do
18727  IFS=$as_save_IFS
18728  test -z "$as_dir" && as_dir=.
18729    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18730  done
18731IFS=$as_save_IFS
18732
18733     ;;
18734esac
18735# We did not find ourselves, most probably we were run as `sh COMMAND'
18736# in which case we are not to be found in the path.
18737if test "x$as_myself" = x; then
18738  as_myself=$0
18739fi
18740if test ! -f "$as_myself"; then
18741  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18742  exit 1
18743fi
18744
18745# Unset variables that we do not need and which cause bugs (e.g. in
18746# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18747# suppresses any "Segmentation fault" message there.  '((' could
18748# trigger a bug in pdksh 5.2.14.
18749for as_var in BASH_ENV ENV MAIL MAILPATH
18750do eval test x\${$as_var+set} = xset \
18751  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18752done
18753PS1='$ '
18754PS2='> '
18755PS4='+ '
18756
18757# NLS nuisances.
18758LC_ALL=C
18759export LC_ALL
18760LANGUAGE=C
18761export LANGUAGE
18762
18763# CDPATH.
18764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18765
18766
18767# as_fn_error STATUS ERROR [LINENO LOG_FD]
18768# ----------------------------------------
18769# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18770# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18771# script with STATUS, using 1 if that was 0.
18772as_fn_error ()
18773{
18774  as_status=$1; test $as_status -eq 0 && as_status=1
18775  if test "$4"; then
18776    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18777    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18778  fi
18779  $as_echo "$as_me: error: $2" >&2
18780  as_fn_exit $as_status
18781} # as_fn_error
18782
18783
18784# as_fn_set_status STATUS
18785# -----------------------
18786# Set $? to STATUS, without forking.
18787as_fn_set_status ()
18788{
18789  return $1
18790} # as_fn_set_status
18791
18792# as_fn_exit STATUS
18793# -----------------
18794# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18795as_fn_exit ()
18796{
18797  set +e
18798  as_fn_set_status $1
18799  exit $1
18800} # as_fn_exit
18801
18802# as_fn_unset VAR
18803# ---------------
18804# Portably unset VAR.
18805as_fn_unset ()
18806{
18807  { eval $1=; unset $1;}
18808}
18809as_unset=as_fn_unset
18810# as_fn_append VAR VALUE
18811# ----------------------
18812# Append the text in VALUE to the end of the definition contained in VAR. Take
18813# advantage of any shell optimizations that allow amortized linear growth over
18814# repeated appends, instead of the typical quadratic growth present in naive
18815# implementations.
18816if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18817  eval 'as_fn_append ()
18818  {
18819    eval $1+=\$2
18820  }'
18821else
18822  as_fn_append ()
18823  {
18824    eval $1=\$$1\$2
18825  }
18826fi # as_fn_append
18827
18828# as_fn_arith ARG...
18829# ------------------
18830# Perform arithmetic evaluation on the ARGs, and store the result in the
18831# global $as_val. Take advantage of shells that can avoid forks. The arguments
18832# must be portable across $(()) and expr.
18833if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18834  eval 'as_fn_arith ()
18835  {
18836    as_val=$(( $* ))
18837  }'
18838else
18839  as_fn_arith ()
18840  {
18841    as_val=`expr "$@" || test $? -eq 1`
18842  }
18843fi # as_fn_arith
18844
18845
18846if expr a : '\(a\)' >/dev/null 2>&1 &&
18847   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18848  as_expr=expr
18849else
18850  as_expr=false
18851fi
18852
18853if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18854  as_basename=basename
18855else
18856  as_basename=false
18857fi
18858
18859if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18860  as_dirname=dirname
18861else
18862  as_dirname=false
18863fi
18864
18865as_me=`$as_basename -- "$0" ||
18866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18867	 X"$0" : 'X\(//\)$' \| \
18868	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18869$as_echo X/"$0" |
18870    sed '/^.*\/\([^/][^/]*\)\/*$/{
18871	    s//\1/
18872	    q
18873	  }
18874	  /^X\/\(\/\/\)$/{
18875	    s//\1/
18876	    q
18877	  }
18878	  /^X\/\(\/\).*/{
18879	    s//\1/
18880	    q
18881	  }
18882	  s/.*/./; q'`
18883
18884# Avoid depending upon Character Ranges.
18885as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18886as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18887as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18888as_cr_digits='0123456789'
18889as_cr_alnum=$as_cr_Letters$as_cr_digits
18890
18891ECHO_C= ECHO_N= ECHO_T=
18892case `echo -n x` in #(((((
18893-n*)
18894  case `echo 'xy\c'` in
18895  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18896  xy)  ECHO_C='\c';;
18897  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18898       ECHO_T='	';;
18899  esac;;
18900*)
18901  ECHO_N='-n';;
18902esac
18903
18904rm -f conf$$ conf$$.exe conf$$.file
18905if test -d conf$$.dir; then
18906  rm -f conf$$.dir/conf$$.file
18907else
18908  rm -f conf$$.dir
18909  mkdir conf$$.dir 2>/dev/null
18910fi
18911if (echo >conf$$.file) 2>/dev/null; then
18912  if ln -s conf$$.file conf$$ 2>/dev/null; then
18913    as_ln_s='ln -s'
18914    # ... but there are two gotchas:
18915    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18916    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18917    # In both cases, we have to default to `cp -pR'.
18918    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18919      as_ln_s='cp -pR'
18920  elif ln conf$$.file conf$$ 2>/dev/null; then
18921    as_ln_s=ln
18922  else
18923    as_ln_s='cp -pR'
18924  fi
18925else
18926  as_ln_s='cp -pR'
18927fi
18928rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18929rmdir conf$$.dir 2>/dev/null
18930
18931
18932# as_fn_mkdir_p
18933# -------------
18934# Create "$as_dir" as a directory, including parents if necessary.
18935as_fn_mkdir_p ()
18936{
18937
18938  case $as_dir in #(
18939  -*) as_dir=./$as_dir;;
18940  esac
18941  test -d "$as_dir" || eval $as_mkdir_p || {
18942    as_dirs=
18943    while :; do
18944      case $as_dir in #(
18945      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18946      *) as_qdir=$as_dir;;
18947      esac
18948      as_dirs="'$as_qdir' $as_dirs"
18949      as_dir=`$as_dirname -- "$as_dir" ||
18950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18951	 X"$as_dir" : 'X\(//\)[^/]' \| \
18952	 X"$as_dir" : 'X\(//\)$' \| \
18953	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18954$as_echo X"$as_dir" |
18955    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18956	    s//\1/
18957	    q
18958	  }
18959	  /^X\(\/\/\)[^/].*/{
18960	    s//\1/
18961	    q
18962	  }
18963	  /^X\(\/\/\)$/{
18964	    s//\1/
18965	    q
18966	  }
18967	  /^X\(\/\).*/{
18968	    s//\1/
18969	    q
18970	  }
18971	  s/.*/./; q'`
18972      test -d "$as_dir" && break
18973    done
18974    test -z "$as_dirs" || eval "mkdir $as_dirs"
18975  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18976
18977
18978} # as_fn_mkdir_p
18979if mkdir -p . 2>/dev/null; then
18980  as_mkdir_p='mkdir -p "$as_dir"'
18981else
18982  test -d ./-p && rmdir ./-p
18983  as_mkdir_p=false
18984fi
18985
18986
18987# as_fn_executable_p FILE
18988# -----------------------
18989# Test if FILE is an executable regular file.
18990as_fn_executable_p ()
18991{
18992  test -f "$1" && test -x "$1"
18993} # as_fn_executable_p
18994as_test_x='test -x'
18995as_executable_p=as_fn_executable_p
18996
18997# Sed expression to map a string onto a valid CPP name.
18998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18999
19000# Sed expression to map a string onto a valid variable name.
19001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19002
19003
19004exec 6>&1
19005## ----------------------------------- ##
19006## Main body of $CONFIG_STATUS script. ##
19007## ----------------------------------- ##
19008_ASEOF
19009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19010
19011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19012# Save the log message, to keep $0 and so on meaningful, and to
19013# report actual input values of CONFIG_FILES etc. instead of their
19014# values after options handling.
19015ac_log="
19016This file was extended by xf86-video-geode $as_me 2.11.15, which was
19017generated by GNU Autoconf 2.69.  Invocation command line was
19018
19019  CONFIG_FILES    = $CONFIG_FILES
19020  CONFIG_HEADERS  = $CONFIG_HEADERS
19021  CONFIG_LINKS    = $CONFIG_LINKS
19022  CONFIG_COMMANDS = $CONFIG_COMMANDS
19023  $ $0 $@
19024
19025on `(hostname || uname -n) 2>/dev/null | sed 1q`
19026"
19027
19028_ACEOF
19029
19030case $ac_config_files in *"
19031"*) set x $ac_config_files; shift; ac_config_files=$*;;
19032esac
19033
19034case $ac_config_headers in *"
19035"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19036esac
19037
19038
19039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19040# Files that config.status was made for.
19041config_files="$ac_config_files"
19042config_headers="$ac_config_headers"
19043config_commands="$ac_config_commands"
19044
19045_ACEOF
19046
19047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19048ac_cs_usage="\
19049\`$as_me' instantiates files and other configuration actions
19050from templates according to the current configuration.  Unless the files
19051and actions are specified as TAGs, all are instantiated by default.
19052
19053Usage: $0 [OPTION]... [TAG]...
19054
19055  -h, --help       print this help, then exit
19056  -V, --version    print version number and configuration settings, then exit
19057      --config     print configuration, then exit
19058  -q, --quiet, --silent
19059                   do not print progress messages
19060  -d, --debug      don't remove temporary files
19061      --recheck    update $as_me by reconfiguring in the same conditions
19062      --file=FILE[:TEMPLATE]
19063                   instantiate the configuration file FILE
19064      --header=FILE[:TEMPLATE]
19065                   instantiate the configuration header FILE
19066
19067Configuration files:
19068$config_files
19069
19070Configuration headers:
19071$config_headers
19072
19073Configuration commands:
19074$config_commands
19075
19076Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver%2Fgeode>.
19077xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
19078
19079_ACEOF
19080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19081ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19082ac_cs_version="\\
19083xf86-video-geode config.status 2.11.15
19084configured by $0, generated by GNU Autoconf 2.69,
19085  with options \\"\$ac_cs_config\\"
19086
19087Copyright (C) 2012 Free Software Foundation, Inc.
19088This config.status script is free software; the Free Software Foundation
19089gives unlimited permission to copy, distribute and modify it."
19090
19091ac_pwd='$ac_pwd'
19092srcdir='$srcdir'
19093INSTALL='$INSTALL'
19094MKDIR_P='$MKDIR_P'
19095AWK='$AWK'
19096test -n "\$AWK" || AWK=awk
19097_ACEOF
19098
19099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19100# The default lists apply if the user does not specify any file.
19101ac_need_defaults=:
19102while test $# != 0
19103do
19104  case $1 in
19105  --*=?*)
19106    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19107    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19108    ac_shift=:
19109    ;;
19110  --*=)
19111    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19112    ac_optarg=
19113    ac_shift=:
19114    ;;
19115  *)
19116    ac_option=$1
19117    ac_optarg=$2
19118    ac_shift=shift
19119    ;;
19120  esac
19121
19122  case $ac_option in
19123  # Handling of the options.
19124  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19125    ac_cs_recheck=: ;;
19126  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19127    $as_echo "$ac_cs_version"; exit ;;
19128  --config | --confi | --conf | --con | --co | --c )
19129    $as_echo "$ac_cs_config"; exit ;;
19130  --debug | --debu | --deb | --de | --d | -d )
19131    debug=: ;;
19132  --file | --fil | --fi | --f )
19133    $ac_shift
19134    case $ac_optarg in
19135    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19136    '') as_fn_error $? "missing file argument" ;;
19137    esac
19138    as_fn_append CONFIG_FILES " '$ac_optarg'"
19139    ac_need_defaults=false;;
19140  --header | --heade | --head | --hea )
19141    $ac_shift
19142    case $ac_optarg in
19143    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19144    esac
19145    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19146    ac_need_defaults=false;;
19147  --he | --h)
19148    # Conflict between --help and --header
19149    as_fn_error $? "ambiguous option: \`$1'
19150Try \`$0 --help' for more information.";;
19151  --help | --hel | -h )
19152    $as_echo "$ac_cs_usage"; exit ;;
19153  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19154  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19155    ac_cs_silent=: ;;
19156
19157  # This is an error.
19158  -*) as_fn_error $? "unrecognized option: \`$1'
19159Try \`$0 --help' for more information." ;;
19160
19161  *) as_fn_append ac_config_targets " $1"
19162     ac_need_defaults=false ;;
19163
19164  esac
19165  shift
19166done
19167
19168ac_configure_extra_args=
19169
19170if $ac_cs_silent; then
19171  exec 6>/dev/null
19172  ac_configure_extra_args="$ac_configure_extra_args --silent"
19173fi
19174
19175_ACEOF
19176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19177if \$ac_cs_recheck; then
19178  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19179  shift
19180  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19181  CONFIG_SHELL='$SHELL'
19182  export CONFIG_SHELL
19183  exec "\$@"
19184fi
19185
19186_ACEOF
19187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188exec 5>>config.log
19189{
19190  echo
19191  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19192## Running $as_me. ##
19193_ASBOX
19194  $as_echo "$ac_log"
19195} >&5
19196
19197_ACEOF
19198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19199#
19200# INIT-COMMANDS
19201#
19202AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19203
19204
19205# The HP-UX ksh and POSIX shell print the target directory to stdout
19206# if CDPATH is set.
19207(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19208
19209sed_quote_subst='$sed_quote_subst'
19210double_quote_subst='$double_quote_subst'
19211delay_variable_subst='$delay_variable_subst'
19212enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19213macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19214macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19215enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19216pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19217enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19218SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19219ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19220PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19221host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19222host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19223host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19224build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19225build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19226build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19227SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19228Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19229GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19230EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19231FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19232LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19233NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19234LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19235max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19236ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19237exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19238lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19239lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19240lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19241lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19242lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19243reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19244reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19245OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19246deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19247file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19248file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19249want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19250DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19251sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19252AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19253AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19254archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19255STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19256RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19257old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19258old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19259old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19260lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19261CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19262CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19263compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19264GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19265lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19266lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19267lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19268lt_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"`'
19269nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19270lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19271objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19272MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19273lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19274lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19275lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19276lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19277lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19278need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19279MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19280DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19281NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19282LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19283OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19284OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19285libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19286shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19287extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19288archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19289enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19290export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19291whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19292compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19293old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19294old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19295archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19296archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19297module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19298module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19299with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19300allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19301no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19302hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19303hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19304hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19305hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19306hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19307hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19308hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19309inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19310link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19311always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19312export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19313exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19314include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19315prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19316postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19317file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19318variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19319need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19320need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19321version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19322runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19323shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19324shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19325libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19326library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19327soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19328install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19329postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19330postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19331finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19332finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19333hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19334sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19335sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19336hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19337enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19338enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19339enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19340old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19341striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19342
19343LTCC='$LTCC'
19344LTCFLAGS='$LTCFLAGS'
19345compiler='$compiler_DEFAULT'
19346
19347# A function that is used when there is no print builtin or printf.
19348func_fallback_echo ()
19349{
19350  eval 'cat <<_LTECHO_EOF
19351\$1
19352_LTECHO_EOF'
19353}
19354
19355# Quote evaled strings.
19356for var in SHELL \
19357ECHO \
19358PATH_SEPARATOR \
19359SED \
19360GREP \
19361EGREP \
19362FGREP \
19363LD \
19364NM \
19365LN_S \
19366lt_SP2NL \
19367lt_NL2SP \
19368reload_flag \
19369OBJDUMP \
19370deplibs_check_method \
19371file_magic_cmd \
19372file_magic_glob \
19373want_nocaseglob \
19374DLLTOOL \
19375sharedlib_from_linklib_cmd \
19376AR \
19377AR_FLAGS \
19378archiver_list_spec \
19379STRIP \
19380RANLIB \
19381CC \
19382CFLAGS \
19383compiler \
19384lt_cv_sys_global_symbol_pipe \
19385lt_cv_sys_global_symbol_to_cdecl \
19386lt_cv_sys_global_symbol_to_c_name_address \
19387lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19388nm_file_list_spec \
19389lt_prog_compiler_no_builtin_flag \
19390lt_prog_compiler_pic \
19391lt_prog_compiler_wl \
19392lt_prog_compiler_static \
19393lt_cv_prog_compiler_c_o \
19394need_locks \
19395MANIFEST_TOOL \
19396DSYMUTIL \
19397NMEDIT \
19398LIPO \
19399OTOOL \
19400OTOOL64 \
19401shrext_cmds \
19402export_dynamic_flag_spec \
19403whole_archive_flag_spec \
19404compiler_needs_object \
19405with_gnu_ld \
19406allow_undefined_flag \
19407no_undefined_flag \
19408hardcode_libdir_flag_spec \
19409hardcode_libdir_separator \
19410exclude_expsyms \
19411include_expsyms \
19412file_list_spec \
19413variables_saved_for_relink \
19414libname_spec \
19415library_names_spec \
19416soname_spec \
19417install_override_mode \
19418finish_eval \
19419old_striplib \
19420striplib; do
19421    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19422    *[\\\\\\\`\\"\\\$]*)
19423      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19424      ;;
19425    *)
19426      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19427      ;;
19428    esac
19429done
19430
19431# Double-quote double-evaled strings.
19432for var in reload_cmds \
19433old_postinstall_cmds \
19434old_postuninstall_cmds \
19435old_archive_cmds \
19436extract_expsyms_cmds \
19437old_archive_from_new_cmds \
19438old_archive_from_expsyms_cmds \
19439archive_cmds \
19440archive_expsym_cmds \
19441module_cmds \
19442module_expsym_cmds \
19443export_symbols_cmds \
19444prelink_cmds \
19445postlink_cmds \
19446postinstall_cmds \
19447postuninstall_cmds \
19448finish_cmds \
19449sys_lib_search_path_spec \
19450sys_lib_dlsearch_path_spec; do
19451    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19452    *[\\\\\\\`\\"\\\$]*)
19453      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19454      ;;
19455    *)
19456      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19457      ;;
19458    esac
19459done
19460
19461ac_aux_dir='$ac_aux_dir'
19462xsi_shell='$xsi_shell'
19463lt_shell_append='$lt_shell_append'
19464
19465# See if we are running on zsh, and set the options which allow our
19466# commands through without removal of \ escapes INIT.
19467if test -n "\${ZSH_VERSION+set}" ; then
19468   setopt NO_GLOB_SUBST
19469fi
19470
19471
19472    PACKAGE='$PACKAGE'
19473    VERSION='$VERSION'
19474    TIMESTAMP='$TIMESTAMP'
19475    RM='$RM'
19476    ofile='$ofile'
19477
19478
19479
19480
19481_ACEOF
19482
19483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19484
19485# Handling of arguments.
19486for ac_config_target in $ac_config_targets
19487do
19488  case $ac_config_target in
19489    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19490    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19491    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19492    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19493    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19494
19495  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19496  esac
19497done
19498
19499
19500# If the user did not use the arguments to specify the items to instantiate,
19501# then the envvar interface is used.  Set only those that are not.
19502# We use the long form for the default assignment because of an extremely
19503# bizarre bug on SunOS 4.1.3.
19504if $ac_need_defaults; then
19505  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19506  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19507  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19508fi
19509
19510# Have a temporary directory for convenience.  Make it in the build tree
19511# simply because there is no reason against having it here, and in addition,
19512# creating and moving files from /tmp can sometimes cause problems.
19513# Hook for its removal unless debugging.
19514# Note that there is a small window in which the directory will not be cleaned:
19515# after its creation but before its name has been assigned to `$tmp'.
19516$debug ||
19517{
19518  tmp= ac_tmp=
19519  trap 'exit_status=$?
19520  : "${ac_tmp:=$tmp}"
19521  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19522' 0
19523  trap 'as_fn_exit 1' 1 2 13 15
19524}
19525# Create a (secure) tmp directory for tmp files.
19526
19527{
19528  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19529  test -d "$tmp"
19530}  ||
19531{
19532  tmp=./conf$$-$RANDOM
19533  (umask 077 && mkdir "$tmp")
19534} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19535ac_tmp=$tmp
19536
19537# Set up the scripts for CONFIG_FILES section.
19538# No need to generate them if there are no CONFIG_FILES.
19539# This happens for instance with `./config.status config.h'.
19540if test -n "$CONFIG_FILES"; then
19541
19542
19543ac_cr=`echo X | tr X '\015'`
19544# On cygwin, bash can eat \r inside `` if the user requested igncr.
19545# But we know of no other shell where ac_cr would be empty at this
19546# point, so we can use a bashism as a fallback.
19547if test "x$ac_cr" = x; then
19548  eval ac_cr=\$\'\\r\'
19549fi
19550ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19551if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19552  ac_cs_awk_cr='\\r'
19553else
19554  ac_cs_awk_cr=$ac_cr
19555fi
19556
19557echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19558_ACEOF
19559
19560
19561{
19562  echo "cat >conf$$subs.awk <<_ACEOF" &&
19563  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19564  echo "_ACEOF"
19565} >conf$$subs.sh ||
19566  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19567ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19568ac_delim='%!_!# '
19569for ac_last_try in false false false false false :; do
19570  . ./conf$$subs.sh ||
19571    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19572
19573  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19574  if test $ac_delim_n = $ac_delim_num; then
19575    break
19576  elif $ac_last_try; then
19577    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19578  else
19579    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19580  fi
19581done
19582rm -f conf$$subs.sh
19583
19584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19585cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19586_ACEOF
19587sed -n '
19588h
19589s/^/S["/; s/!.*/"]=/
19590p
19591g
19592s/^[^!]*!//
19593:repl
19594t repl
19595s/'"$ac_delim"'$//
19596t delim
19597:nl
19598h
19599s/\(.\{148\}\)..*/\1/
19600t more1
19601s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19602p
19603n
19604b repl
19605:more1
19606s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19607p
19608g
19609s/.\{148\}//
19610t nl
19611:delim
19612h
19613s/\(.\{148\}\)..*/\1/
19614t more2
19615s/["\\]/\\&/g; s/^/"/; s/$/"/
19616p
19617b
19618:more2
19619s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19620p
19621g
19622s/.\{148\}//
19623t delim
19624' <conf$$subs.awk | sed '
19625/^[^""]/{
19626  N
19627  s/\n//
19628}
19629' >>$CONFIG_STATUS || ac_write_fail=1
19630rm -f conf$$subs.awk
19631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19632_ACAWK
19633cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19634  for (key in S) S_is_set[key] = 1
19635  FS = ""
19636
19637}
19638{
19639  line = $ 0
19640  nfields = split(line, field, "@")
19641  substed = 0
19642  len = length(field[1])
19643  for (i = 2; i < nfields; i++) {
19644    key = field[i]
19645    keylen = length(key)
19646    if (S_is_set[key]) {
19647      value = S[key]
19648      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19649      len += length(value) + length(field[++i])
19650      substed = 1
19651    } else
19652      len += 1 + keylen
19653  }
19654
19655  print line
19656}
19657
19658_ACAWK
19659_ACEOF
19660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19662  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19663else
19664  cat
19665fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19666  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19667_ACEOF
19668
19669# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19670# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19671# trailing colons and then remove the whole line if VPATH becomes empty
19672# (actually we leave an empty line to preserve line numbers).
19673if test "x$srcdir" = x.; then
19674  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19675h
19676s///
19677s/^/:/
19678s/[	 ]*$/:/
19679s/:\$(srcdir):/:/g
19680s/:\${srcdir}:/:/g
19681s/:@srcdir@:/:/g
19682s/^:*//
19683s/:*$//
19684x
19685s/\(=[	 ]*\).*/\1/
19686G
19687s/\n//
19688s/^[^=]*=[	 ]*$//
19689}'
19690fi
19691
19692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19693fi # test -n "$CONFIG_FILES"
19694
19695# Set up the scripts for CONFIG_HEADERS section.
19696# No need to generate them if there are no CONFIG_HEADERS.
19697# This happens for instance with `./config.status Makefile'.
19698if test -n "$CONFIG_HEADERS"; then
19699cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19700BEGIN {
19701_ACEOF
19702
19703# Transform confdefs.h into an awk script `defines.awk', embedded as
19704# here-document in config.status, that substitutes the proper values into
19705# config.h.in to produce config.h.
19706
19707# Create a delimiter string that does not exist in confdefs.h, to ease
19708# handling of long lines.
19709ac_delim='%!_!# '
19710for ac_last_try in false false :; do
19711  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19712  if test -z "$ac_tt"; then
19713    break
19714  elif $ac_last_try; then
19715    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19716  else
19717    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19718  fi
19719done
19720
19721# For the awk script, D is an array of macro values keyed by name,
19722# likewise P contains macro parameters if any.  Preserve backslash
19723# newline sequences.
19724
19725ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19726sed -n '
19727s/.\{148\}/&'"$ac_delim"'/g
19728t rset
19729:rset
19730s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19731t def
19732d
19733:def
19734s/\\$//
19735t bsnl
19736s/["\\]/\\&/g
19737s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19738D["\1"]=" \3"/p
19739s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19740d
19741:bsnl
19742s/["\\]/\\&/g
19743s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19744D["\1"]=" \3\\\\\\n"\\/p
19745t cont
19746s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19747t cont
19748d
19749:cont
19750n
19751s/.\{148\}/&'"$ac_delim"'/g
19752t clear
19753:clear
19754s/\\$//
19755t bsnlc
19756s/["\\]/\\&/g; s/^/"/; s/$/"/p
19757d
19758:bsnlc
19759s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19760b cont
19761' <confdefs.h | sed '
19762s/'"$ac_delim"'/"\\\
19763"/g' >>$CONFIG_STATUS || ac_write_fail=1
19764
19765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766  for (key in D) D_is_set[key] = 1
19767  FS = ""
19768}
19769/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19770  line = \$ 0
19771  split(line, arg, " ")
19772  if (arg[1] == "#") {
19773    defundef = arg[2]
19774    mac1 = arg[3]
19775  } else {
19776    defundef = substr(arg[1], 2)
19777    mac1 = arg[2]
19778  }
19779  split(mac1, mac2, "(") #)
19780  macro = mac2[1]
19781  prefix = substr(line, 1, index(line, defundef) - 1)
19782  if (D_is_set[macro]) {
19783    # Preserve the white space surrounding the "#".
19784    print prefix "define", macro P[macro] D[macro]
19785    next
19786  } else {
19787    # Replace #undef with comments.  This is necessary, for example,
19788    # in the case of _POSIX_SOURCE, which is predefined and required
19789    # on some systems where configure will not decide to define it.
19790    if (defundef == "undef") {
19791      print "/*", prefix defundef, macro, "*/"
19792      next
19793    }
19794  }
19795}
19796{ print }
19797_ACAWK
19798_ACEOF
19799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19800  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19801fi # test -n "$CONFIG_HEADERS"
19802
19803
19804eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19805shift
19806for ac_tag
19807do
19808  case $ac_tag in
19809  :[FHLC]) ac_mode=$ac_tag; continue;;
19810  esac
19811  case $ac_mode$ac_tag in
19812  :[FHL]*:*);;
19813  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19814  :[FH]-) ac_tag=-:-;;
19815  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19816  esac
19817  ac_save_IFS=$IFS
19818  IFS=:
19819  set x $ac_tag
19820  IFS=$ac_save_IFS
19821  shift
19822  ac_file=$1
19823  shift
19824
19825  case $ac_mode in
19826  :L) ac_source=$1;;
19827  :[FH])
19828    ac_file_inputs=
19829    for ac_f
19830    do
19831      case $ac_f in
19832      -) ac_f="$ac_tmp/stdin";;
19833      *) # Look for the file first in the build tree, then in the source tree
19834	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19835	 # because $ac_f cannot contain `:'.
19836	 test -f "$ac_f" ||
19837	   case $ac_f in
19838	   [\\/$]*) false;;
19839	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19840	   esac ||
19841	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19842      esac
19843      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19844      as_fn_append ac_file_inputs " '$ac_f'"
19845    done
19846
19847    # Let's still pretend it is `configure' which instantiates (i.e., don't
19848    # use $as_me), people would be surprised to read:
19849    #    /* config.h.  Generated by config.status.  */
19850    configure_input='Generated from '`
19851	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19852	`' by configure.'
19853    if test x"$ac_file" != x-; then
19854      configure_input="$ac_file.  $configure_input"
19855      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19856$as_echo "$as_me: creating $ac_file" >&6;}
19857    fi
19858    # Neutralize special characters interpreted by sed in replacement strings.
19859    case $configure_input in #(
19860    *\&* | *\|* | *\\* )
19861       ac_sed_conf_input=`$as_echo "$configure_input" |
19862       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19863    *) ac_sed_conf_input=$configure_input;;
19864    esac
19865
19866    case $ac_tag in
19867    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19868      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19869    esac
19870    ;;
19871  esac
19872
19873  ac_dir=`$as_dirname -- "$ac_file" ||
19874$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19875	 X"$ac_file" : 'X\(//\)[^/]' \| \
19876	 X"$ac_file" : 'X\(//\)$' \| \
19877	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19878$as_echo X"$ac_file" |
19879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19880	    s//\1/
19881	    q
19882	  }
19883	  /^X\(\/\/\)[^/].*/{
19884	    s//\1/
19885	    q
19886	  }
19887	  /^X\(\/\/\)$/{
19888	    s//\1/
19889	    q
19890	  }
19891	  /^X\(\/\).*/{
19892	    s//\1/
19893	    q
19894	  }
19895	  s/.*/./; q'`
19896  as_dir="$ac_dir"; as_fn_mkdir_p
19897  ac_builddir=.
19898
19899case "$ac_dir" in
19900.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19901*)
19902  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19903  # A ".." for each directory in $ac_dir_suffix.
19904  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19905  case $ac_top_builddir_sub in
19906  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19907  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19908  esac ;;
19909esac
19910ac_abs_top_builddir=$ac_pwd
19911ac_abs_builddir=$ac_pwd$ac_dir_suffix
19912# for backward compatibility:
19913ac_top_builddir=$ac_top_build_prefix
19914
19915case $srcdir in
19916  .)  # We are building in place.
19917    ac_srcdir=.
19918    ac_top_srcdir=$ac_top_builddir_sub
19919    ac_abs_top_srcdir=$ac_pwd ;;
19920  [\\/]* | ?:[\\/]* )  # Absolute name.
19921    ac_srcdir=$srcdir$ac_dir_suffix;
19922    ac_top_srcdir=$srcdir
19923    ac_abs_top_srcdir=$srcdir ;;
19924  *) # Relative name.
19925    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19926    ac_top_srcdir=$ac_top_build_prefix$srcdir
19927    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19928esac
19929ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19930
19931
19932  case $ac_mode in
19933  :F)
19934  #
19935  # CONFIG_FILE
19936  #
19937
19938  case $INSTALL in
19939  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19940  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19941  esac
19942  ac_MKDIR_P=$MKDIR_P
19943  case $MKDIR_P in
19944  [\\/$]* | ?:[\\/]* ) ;;
19945  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19946  esac
19947_ACEOF
19948
19949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19950# If the template does not know about datarootdir, expand it.
19951# FIXME: This hack should be removed a few years after 2.60.
19952ac_datarootdir_hack=; ac_datarootdir_seen=
19953ac_sed_dataroot='
19954/datarootdir/ {
19955  p
19956  q
19957}
19958/@datadir@/p
19959/@docdir@/p
19960/@infodir@/p
19961/@localedir@/p
19962/@mandir@/p'
19963case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19964*datarootdir*) ac_datarootdir_seen=yes;;
19965*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19966  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19967$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19968_ACEOF
19969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19970  ac_datarootdir_hack='
19971  s&@datadir@&$datadir&g
19972  s&@docdir@&$docdir&g
19973  s&@infodir@&$infodir&g
19974  s&@localedir@&$localedir&g
19975  s&@mandir@&$mandir&g
19976  s&\\\${datarootdir}&$datarootdir&g' ;;
19977esac
19978_ACEOF
19979
19980# Neutralize VPATH when `$srcdir' = `.'.
19981# Shell code in configure.ac might set extrasub.
19982# FIXME: do we really want to maintain this feature?
19983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984ac_sed_extra="$ac_vpsub
19985$extrasub
19986_ACEOF
19987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19988:t
19989/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19990s|@configure_input@|$ac_sed_conf_input|;t t
19991s&@top_builddir@&$ac_top_builddir_sub&;t t
19992s&@top_build_prefix@&$ac_top_build_prefix&;t t
19993s&@srcdir@&$ac_srcdir&;t t
19994s&@abs_srcdir@&$ac_abs_srcdir&;t t
19995s&@top_srcdir@&$ac_top_srcdir&;t t
19996s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19997s&@builddir@&$ac_builddir&;t t
19998s&@abs_builddir@&$ac_abs_builddir&;t t
19999s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20000s&@INSTALL@&$ac_INSTALL&;t t
20001s&@MKDIR_P@&$ac_MKDIR_P&;t t
20002$ac_datarootdir_hack
20003"
20004eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20005  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20006
20007test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20008  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20009  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20010      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20011  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20012which seems to be undefined.  Please make sure it is defined" >&5
20013$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20014which seems to be undefined.  Please make sure it is defined" >&2;}
20015
20016  rm -f "$ac_tmp/stdin"
20017  case $ac_file in
20018  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20019  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20020  esac \
20021  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20022 ;;
20023  :H)
20024  #
20025  # CONFIG_HEADER
20026  #
20027  if test x"$ac_file" != x-; then
20028    {
20029      $as_echo "/* $configure_input  */" \
20030      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20031    } >"$ac_tmp/config.h" \
20032      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20033    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20034      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20035$as_echo "$as_me: $ac_file is unchanged" >&6;}
20036    else
20037      rm -f "$ac_file"
20038      mv "$ac_tmp/config.h" "$ac_file" \
20039	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20040    fi
20041  else
20042    $as_echo "/* $configure_input  */" \
20043      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20044      || as_fn_error $? "could not create -" "$LINENO" 5
20045  fi
20046# Compute "$ac_file"'s index in $config_headers.
20047_am_arg="$ac_file"
20048_am_stamp_count=1
20049for _am_header in $config_headers :; do
20050  case $_am_header in
20051    $_am_arg | $_am_arg:* )
20052      break ;;
20053    * )
20054      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20055  esac
20056done
20057echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20058$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20059	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20060	 X"$_am_arg" : 'X\(//\)$' \| \
20061	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20062$as_echo X"$_am_arg" |
20063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20064	    s//\1/
20065	    q
20066	  }
20067	  /^X\(\/\/\)[^/].*/{
20068	    s//\1/
20069	    q
20070	  }
20071	  /^X\(\/\/\)$/{
20072	    s//\1/
20073	    q
20074	  }
20075	  /^X\(\/\).*/{
20076	    s//\1/
20077	    q
20078	  }
20079	  s/.*/./; q'`/stamp-h$_am_stamp_count
20080 ;;
20081
20082  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20083$as_echo "$as_me: executing $ac_file commands" >&6;}
20084 ;;
20085  esac
20086
20087
20088  case $ac_file$ac_mode in
20089    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20090  # Older Autoconf quotes --file arguments for eval, but not when files
20091  # are listed without --file.  Let's play safe and only enable the eval
20092  # if we detect the quoting.
20093  case $CONFIG_FILES in
20094  *\'*) eval set x "$CONFIG_FILES" ;;
20095  *)   set x $CONFIG_FILES ;;
20096  esac
20097  shift
20098  for mf
20099  do
20100    # Strip MF so we end up with the name of the file.
20101    mf=`echo "$mf" | sed -e 's/:.*$//'`
20102    # Check whether this is an Automake generated Makefile or not.
20103    # We used to match only the files named 'Makefile.in', but
20104    # some people rename them; so instead we look at the file content.
20105    # Grep'ing the first line is not enough: some people post-process
20106    # each Makefile.in and add a new line on top of each file to say so.
20107    # Grep'ing the whole file is not good either: AIX grep has a line
20108    # limit of 2048, but all sed's we know have understand at least 4000.
20109    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20110      dirpart=`$as_dirname -- "$mf" ||
20111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20112	 X"$mf" : 'X\(//\)[^/]' \| \
20113	 X"$mf" : 'X\(//\)$' \| \
20114	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20115$as_echo X"$mf" |
20116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20117	    s//\1/
20118	    q
20119	  }
20120	  /^X\(\/\/\)[^/].*/{
20121	    s//\1/
20122	    q
20123	  }
20124	  /^X\(\/\/\)$/{
20125	    s//\1/
20126	    q
20127	  }
20128	  /^X\(\/\).*/{
20129	    s//\1/
20130	    q
20131	  }
20132	  s/.*/./; q'`
20133    else
20134      continue
20135    fi
20136    # Extract the definition of DEPDIR, am__include, and am__quote
20137    # from the Makefile without running 'make'.
20138    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20139    test -z "$DEPDIR" && continue
20140    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20141    test -z "$am__include" && continue
20142    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20143    # Find all dependency output files, they are included files with
20144    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20145    # simplest approach to changing $(DEPDIR) to its actual value in the
20146    # expansion.
20147    for file in `sed -n "
20148      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20149	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20150      # Make sure the directory exists.
20151      test -f "$dirpart/$file" && continue
20152      fdir=`$as_dirname -- "$file" ||
20153$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20154	 X"$file" : 'X\(//\)[^/]' \| \
20155	 X"$file" : 'X\(//\)$' \| \
20156	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20157$as_echo X"$file" |
20158    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20159	    s//\1/
20160	    q
20161	  }
20162	  /^X\(\/\/\)[^/].*/{
20163	    s//\1/
20164	    q
20165	  }
20166	  /^X\(\/\/\)$/{
20167	    s//\1/
20168	    q
20169	  }
20170	  /^X\(\/\).*/{
20171	    s//\1/
20172	    q
20173	  }
20174	  s/.*/./; q'`
20175      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20176      # echo "creating $dirpart/$file"
20177      echo '# dummy' > "$dirpart/$file"
20178    done
20179  done
20180}
20181 ;;
20182    "libtool":C)
20183
20184    # See if we are running on zsh, and set the options which allow our
20185    # commands through without removal of \ escapes.
20186    if test -n "${ZSH_VERSION+set}" ; then
20187      setopt NO_GLOB_SUBST
20188    fi
20189
20190    cfgfile="${ofile}T"
20191    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20192    $RM "$cfgfile"
20193
20194    cat <<_LT_EOF >> "$cfgfile"
20195#! $SHELL
20196
20197# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20198# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20199# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20200# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20201#
20202#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20203#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20204#                 Foundation, Inc.
20205#   Written by Gordon Matzigkeit, 1996
20206#
20207#   This file is part of GNU Libtool.
20208#
20209# GNU Libtool is free software; you can redistribute it and/or
20210# modify it under the terms of the GNU General Public License as
20211# published by the Free Software Foundation; either version 2 of
20212# the License, or (at your option) any later version.
20213#
20214# As a special exception to the GNU General Public License,
20215# if you distribute this file as part of a program or library that
20216# is built using GNU Libtool, you may include this file under the
20217# same distribution terms that you use for the rest of that program.
20218#
20219# GNU Libtool is distributed in the hope that it will be useful,
20220# but WITHOUT ANY WARRANTY; without even the implied warranty of
20221# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20222# GNU General Public License for more details.
20223#
20224# You should have received a copy of the GNU General Public License
20225# along with GNU Libtool; see the file COPYING.  If not, a copy
20226# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20227# obtained by writing to the Free Software Foundation, Inc.,
20228# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20229
20230
20231# The names of the tagged configurations supported by this script.
20232available_tags=""
20233
20234# ### BEGIN LIBTOOL CONFIG
20235
20236# Whether or not to build static libraries.
20237build_old_libs=$enable_static
20238
20239# Which release of libtool.m4 was used?
20240macro_version=$macro_version
20241macro_revision=$macro_revision
20242
20243# Whether or not to build shared libraries.
20244build_libtool_libs=$enable_shared
20245
20246# What type of objects to build.
20247pic_mode=$pic_mode
20248
20249# Whether or not to optimize for fast installation.
20250fast_install=$enable_fast_install
20251
20252# Shell to use when invoking shell scripts.
20253SHELL=$lt_SHELL
20254
20255# An echo program that protects backslashes.
20256ECHO=$lt_ECHO
20257
20258# The PATH separator for the build system.
20259PATH_SEPARATOR=$lt_PATH_SEPARATOR
20260
20261# The host system.
20262host_alias=$host_alias
20263host=$host
20264host_os=$host_os
20265
20266# The build system.
20267build_alias=$build_alias
20268build=$build
20269build_os=$build_os
20270
20271# A sed program that does not truncate output.
20272SED=$lt_SED
20273
20274# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20275Xsed="\$SED -e 1s/^X//"
20276
20277# A grep program that handles long lines.
20278GREP=$lt_GREP
20279
20280# An ERE matcher.
20281EGREP=$lt_EGREP
20282
20283# A literal string matcher.
20284FGREP=$lt_FGREP
20285
20286# A BSD- or MS-compatible name lister.
20287NM=$lt_NM
20288
20289# Whether we need soft or hard links.
20290LN_S=$lt_LN_S
20291
20292# What is the maximum length of a command?
20293max_cmd_len=$max_cmd_len
20294
20295# Object file suffix (normally "o").
20296objext=$ac_objext
20297
20298# Executable file suffix (normally "").
20299exeext=$exeext
20300
20301# whether the shell understands "unset".
20302lt_unset=$lt_unset
20303
20304# turn spaces into newlines.
20305SP2NL=$lt_lt_SP2NL
20306
20307# turn newlines into spaces.
20308NL2SP=$lt_lt_NL2SP
20309
20310# convert \$build file names to \$host format.
20311to_host_file_cmd=$lt_cv_to_host_file_cmd
20312
20313# convert \$build files to toolchain format.
20314to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20315
20316# An object symbol dumper.
20317OBJDUMP=$lt_OBJDUMP
20318
20319# Method to check whether dependent libraries are shared objects.
20320deplibs_check_method=$lt_deplibs_check_method
20321
20322# Command to use when deplibs_check_method = "file_magic".
20323file_magic_cmd=$lt_file_magic_cmd
20324
20325# How to find potential files when deplibs_check_method = "file_magic".
20326file_magic_glob=$lt_file_magic_glob
20327
20328# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20329want_nocaseglob=$lt_want_nocaseglob
20330
20331# DLL creation program.
20332DLLTOOL=$lt_DLLTOOL
20333
20334# Command to associate shared and link libraries.
20335sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20336
20337# The archiver.
20338AR=$lt_AR
20339
20340# Flags to create an archive.
20341AR_FLAGS=$lt_AR_FLAGS
20342
20343# How to feed a file listing to the archiver.
20344archiver_list_spec=$lt_archiver_list_spec
20345
20346# A symbol stripping program.
20347STRIP=$lt_STRIP
20348
20349# Commands used to install an old-style archive.
20350RANLIB=$lt_RANLIB
20351old_postinstall_cmds=$lt_old_postinstall_cmds
20352old_postuninstall_cmds=$lt_old_postuninstall_cmds
20353
20354# Whether to use a lock for old archive extraction.
20355lock_old_archive_extraction=$lock_old_archive_extraction
20356
20357# A C compiler.
20358LTCC=$lt_CC
20359
20360# LTCC compiler flags.
20361LTCFLAGS=$lt_CFLAGS
20362
20363# Take the output of nm and produce a listing of raw symbols and C names.
20364global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20365
20366# Transform the output of nm in a proper C declaration.
20367global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20368
20369# Transform the output of nm in a C name address pair.
20370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20371
20372# Transform the output of nm in a C name address pair when lib prefix is needed.
20373global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20374
20375# Specify filename containing input files for \$NM.
20376nm_file_list_spec=$lt_nm_file_list_spec
20377
20378# The root where to search for dependent libraries,and in which our libraries should be installed.
20379lt_sysroot=$lt_sysroot
20380
20381# The name of the directory that contains temporary libtool files.
20382objdir=$objdir
20383
20384# Used to examine libraries when file_magic_cmd begins with "file".
20385MAGIC_CMD=$MAGIC_CMD
20386
20387# Must we lock files when doing compilation?
20388need_locks=$lt_need_locks
20389
20390# Manifest tool.
20391MANIFEST_TOOL=$lt_MANIFEST_TOOL
20392
20393# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20394DSYMUTIL=$lt_DSYMUTIL
20395
20396# Tool to change global to local symbols on Mac OS X.
20397NMEDIT=$lt_NMEDIT
20398
20399# Tool to manipulate fat objects and archives on Mac OS X.
20400LIPO=$lt_LIPO
20401
20402# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20403OTOOL=$lt_OTOOL
20404
20405# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20406OTOOL64=$lt_OTOOL64
20407
20408# Old archive suffix (normally "a").
20409libext=$libext
20410
20411# Shared library suffix (normally ".so").
20412shrext_cmds=$lt_shrext_cmds
20413
20414# The commands to extract the exported symbol list from a shared archive.
20415extract_expsyms_cmds=$lt_extract_expsyms_cmds
20416
20417# Variables whose values should be saved in libtool wrapper scripts and
20418# restored at link time.
20419variables_saved_for_relink=$lt_variables_saved_for_relink
20420
20421# Do we need the "lib" prefix for modules?
20422need_lib_prefix=$need_lib_prefix
20423
20424# Do we need a version for libraries?
20425need_version=$need_version
20426
20427# Library versioning type.
20428version_type=$version_type
20429
20430# Shared library runtime path variable.
20431runpath_var=$runpath_var
20432
20433# Shared library path variable.
20434shlibpath_var=$shlibpath_var
20435
20436# Is shlibpath searched before the hard-coded library search path?
20437shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20438
20439# Format of library name prefix.
20440libname_spec=$lt_libname_spec
20441
20442# List of archive names.  First name is the real one, the rest are links.
20443# The last name is the one that the linker finds with -lNAME
20444library_names_spec=$lt_library_names_spec
20445
20446# The coded name of the library, if different from the real name.
20447soname_spec=$lt_soname_spec
20448
20449# Permission mode override for installation of shared libraries.
20450install_override_mode=$lt_install_override_mode
20451
20452# Command to use after installation of a shared archive.
20453postinstall_cmds=$lt_postinstall_cmds
20454
20455# Command to use after uninstallation of a shared archive.
20456postuninstall_cmds=$lt_postuninstall_cmds
20457
20458# Commands used to finish a libtool library installation in a directory.
20459finish_cmds=$lt_finish_cmds
20460
20461# As "finish_cmds", except a single script fragment to be evaled but
20462# not shown.
20463finish_eval=$lt_finish_eval
20464
20465# Whether we should hardcode library paths into libraries.
20466hardcode_into_libs=$hardcode_into_libs
20467
20468# Compile-time system search path for libraries.
20469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20470
20471# Run-time system search path for libraries.
20472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20473
20474# Whether dlopen is supported.
20475dlopen_support=$enable_dlopen
20476
20477# Whether dlopen of programs is supported.
20478dlopen_self=$enable_dlopen_self
20479
20480# Whether dlopen of statically linked programs is supported.
20481dlopen_self_static=$enable_dlopen_self_static
20482
20483# Commands to strip libraries.
20484old_striplib=$lt_old_striplib
20485striplib=$lt_striplib
20486
20487
20488# The linker used to build libraries.
20489LD=$lt_LD
20490
20491# How to create reloadable object files.
20492reload_flag=$lt_reload_flag
20493reload_cmds=$lt_reload_cmds
20494
20495# Commands used to build an old-style archive.
20496old_archive_cmds=$lt_old_archive_cmds
20497
20498# A language specific compiler.
20499CC=$lt_compiler
20500
20501# Is the compiler the GNU compiler?
20502with_gcc=$GCC
20503
20504# Compiler flag to turn off builtin functions.
20505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20506
20507# Additional compiler flags for building library objects.
20508pic_flag=$lt_lt_prog_compiler_pic
20509
20510# How to pass a linker flag through the compiler.
20511wl=$lt_lt_prog_compiler_wl
20512
20513# Compiler flag to prevent dynamic linking.
20514link_static_flag=$lt_lt_prog_compiler_static
20515
20516# Does compiler simultaneously support -c and -o options?
20517compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20518
20519# Whether or not to add -lc for building shared libraries.
20520build_libtool_need_lc=$archive_cmds_need_lc
20521
20522# Whether or not to disallow shared libs when runtime libs are static.
20523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20524
20525# Compiler flag to allow reflexive dlopens.
20526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20527
20528# Compiler flag to generate shared objects directly from archives.
20529whole_archive_flag_spec=$lt_whole_archive_flag_spec
20530
20531# Whether the compiler copes with passing no objects directly.
20532compiler_needs_object=$lt_compiler_needs_object
20533
20534# Create an old-style archive from a shared archive.
20535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20536
20537# Create a temporary old-style archive to link instead of a shared archive.
20538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20539
20540# Commands used to build a shared archive.
20541archive_cmds=$lt_archive_cmds
20542archive_expsym_cmds=$lt_archive_expsym_cmds
20543
20544# Commands used to build a loadable module if different from building
20545# a shared archive.
20546module_cmds=$lt_module_cmds
20547module_expsym_cmds=$lt_module_expsym_cmds
20548
20549# Whether we are building with GNU ld or not.
20550with_gnu_ld=$lt_with_gnu_ld
20551
20552# Flag that allows shared libraries with undefined symbols to be built.
20553allow_undefined_flag=$lt_allow_undefined_flag
20554
20555# Flag that enforces no undefined symbols.
20556no_undefined_flag=$lt_no_undefined_flag
20557
20558# Flag to hardcode \$libdir into a binary during linking.
20559# This must work even if \$libdir does not exist
20560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20561
20562# Whether we need a single "-rpath" flag with a separated argument.
20563hardcode_libdir_separator=$lt_hardcode_libdir_separator
20564
20565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20566# DIR into the resulting binary.
20567hardcode_direct=$hardcode_direct
20568
20569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20570# DIR into the resulting binary and the resulting library dependency is
20571# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20572# library is relocated.
20573hardcode_direct_absolute=$hardcode_direct_absolute
20574
20575# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20576# into the resulting binary.
20577hardcode_minus_L=$hardcode_minus_L
20578
20579# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20580# into the resulting binary.
20581hardcode_shlibpath_var=$hardcode_shlibpath_var
20582
20583# Set to "yes" if building a shared library automatically hardcodes DIR
20584# into the library and all subsequent libraries and executables linked
20585# against it.
20586hardcode_automatic=$hardcode_automatic
20587
20588# Set to yes if linker adds runtime paths of dependent libraries
20589# to runtime path list.
20590inherit_rpath=$inherit_rpath
20591
20592# Whether libtool must link a program against all its dependency libraries.
20593link_all_deplibs=$link_all_deplibs
20594
20595# Set to "yes" if exported symbols are required.
20596always_export_symbols=$always_export_symbols
20597
20598# The commands to list exported symbols.
20599export_symbols_cmds=$lt_export_symbols_cmds
20600
20601# Symbols that should not be listed in the preloaded symbols.
20602exclude_expsyms=$lt_exclude_expsyms
20603
20604# Symbols that must always be exported.
20605include_expsyms=$lt_include_expsyms
20606
20607# Commands necessary for linking programs (against libraries) with templates.
20608prelink_cmds=$lt_prelink_cmds
20609
20610# Commands necessary for finishing linking programs.
20611postlink_cmds=$lt_postlink_cmds
20612
20613# Specify filename containing input files.
20614file_list_spec=$lt_file_list_spec
20615
20616# How to hardcode a shared library path into an executable.
20617hardcode_action=$hardcode_action
20618
20619# ### END LIBTOOL CONFIG
20620
20621_LT_EOF
20622
20623  case $host_os in
20624  aix3*)
20625    cat <<\_LT_EOF >> "$cfgfile"
20626# AIX sometimes has problems with the GCC collect2 program.  For some
20627# reason, if we set the COLLECT_NAMES environment variable, the problems
20628# vanish in a puff of smoke.
20629if test "X${COLLECT_NAMES+set}" != Xset; then
20630  COLLECT_NAMES=
20631  export COLLECT_NAMES
20632fi
20633_LT_EOF
20634    ;;
20635  esac
20636
20637
20638ltmain="$ac_aux_dir/ltmain.sh"
20639
20640
20641  # We use sed instead of cat because bash on DJGPP gets confused if
20642  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20643  # text mode, it properly converts lines to CR/LF.  This bash problem
20644  # is reportedly fixed, but why not run on old versions too?
20645  sed '$q' "$ltmain" >> "$cfgfile" \
20646     || (rm -f "$cfgfile"; exit 1)
20647
20648  if test x"$xsi_shell" = xyes; then
20649  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20650func_dirname ()\
20651{\
20652\    case ${1} in\
20653\      */*) func_dirname_result="${1%/*}${2}" ;;\
20654\      *  ) func_dirname_result="${3}" ;;\
20655\    esac\
20656} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20657  && mv -f "$cfgfile.tmp" "$cfgfile" \
20658    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20659test 0 -eq $? || _lt_function_replace_fail=:
20660
20661
20662  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20663func_basename ()\
20664{\
20665\    func_basename_result="${1##*/}"\
20666} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20667  && mv -f "$cfgfile.tmp" "$cfgfile" \
20668    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20669test 0 -eq $? || _lt_function_replace_fail=:
20670
20671
20672  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20673func_dirname_and_basename ()\
20674{\
20675\    case ${1} in\
20676\      */*) func_dirname_result="${1%/*}${2}" ;;\
20677\      *  ) func_dirname_result="${3}" ;;\
20678\    esac\
20679\    func_basename_result="${1##*/}"\
20680} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20681  && mv -f "$cfgfile.tmp" "$cfgfile" \
20682    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20683test 0 -eq $? || _lt_function_replace_fail=:
20684
20685
20686  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20687func_stripname ()\
20688{\
20689\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20690\    # positional parameters, so assign one to ordinary parameter first.\
20691\    func_stripname_result=${3}\
20692\    func_stripname_result=${func_stripname_result#"${1}"}\
20693\    func_stripname_result=${func_stripname_result%"${2}"}\
20694} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20695  && mv -f "$cfgfile.tmp" "$cfgfile" \
20696    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20697test 0 -eq $? || _lt_function_replace_fail=:
20698
20699
20700  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20701func_split_long_opt ()\
20702{\
20703\    func_split_long_opt_name=${1%%=*}\
20704\    func_split_long_opt_arg=${1#*=}\
20705} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20706  && mv -f "$cfgfile.tmp" "$cfgfile" \
20707    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20708test 0 -eq $? || _lt_function_replace_fail=:
20709
20710
20711  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20712func_split_short_opt ()\
20713{\
20714\    func_split_short_opt_arg=${1#??}\
20715\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20716} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20717  && mv -f "$cfgfile.tmp" "$cfgfile" \
20718    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20719test 0 -eq $? || _lt_function_replace_fail=:
20720
20721
20722  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20723func_lo2o ()\
20724{\
20725\    case ${1} in\
20726\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20727\      *)    func_lo2o_result=${1} ;;\
20728\    esac\
20729} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20730  && mv -f "$cfgfile.tmp" "$cfgfile" \
20731    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732test 0 -eq $? || _lt_function_replace_fail=:
20733
20734
20735  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20736func_xform ()\
20737{\
20738    func_xform_result=${1%.*}.lo\
20739} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20740  && mv -f "$cfgfile.tmp" "$cfgfile" \
20741    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20742test 0 -eq $? || _lt_function_replace_fail=:
20743
20744
20745  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20746func_arith ()\
20747{\
20748    func_arith_result=$(( $* ))\
20749} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20750  && mv -f "$cfgfile.tmp" "$cfgfile" \
20751    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20752test 0 -eq $? || _lt_function_replace_fail=:
20753
20754
20755  sed -e '/^func_len ()$/,/^} # func_len /c\
20756func_len ()\
20757{\
20758    func_len_result=${#1}\
20759} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20760  && mv -f "$cfgfile.tmp" "$cfgfile" \
20761    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20762test 0 -eq $? || _lt_function_replace_fail=:
20763
20764fi
20765
20766if test x"$lt_shell_append" = xyes; then
20767  sed -e '/^func_append ()$/,/^} # func_append /c\
20768func_append ()\
20769{\
20770    eval "${1}+=\\${2}"\
20771} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20772  && mv -f "$cfgfile.tmp" "$cfgfile" \
20773    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20774test 0 -eq $? || _lt_function_replace_fail=:
20775
20776
20777  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20778func_append_quoted ()\
20779{\
20780\    func_quote_for_eval "${2}"\
20781\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20782} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20783  && mv -f "$cfgfile.tmp" "$cfgfile" \
20784    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20785test 0 -eq $? || _lt_function_replace_fail=:
20786
20787
20788  # Save a `func_append' function call where possible by direct use of '+='
20789  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20790    && mv -f "$cfgfile.tmp" "$cfgfile" \
20791      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20792  test 0 -eq $? || _lt_function_replace_fail=:
20793else
20794  # Save a `func_append' function call even when '+=' is not available
20795  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20796    && mv -f "$cfgfile.tmp" "$cfgfile" \
20797      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20798  test 0 -eq $? || _lt_function_replace_fail=:
20799fi
20800
20801if test x"$_lt_function_replace_fail" = x":"; then
20802  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20803$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20804fi
20805
20806
20807   mv -f "$cfgfile" "$ofile" ||
20808    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20809  chmod +x "$ofile"
20810
20811 ;;
20812
20813  esac
20814done # for ac_tag
20815
20816
20817as_fn_exit 0
20818_ACEOF
20819ac_clean_files=$ac_clean_files_save
20820
20821test $ac_write_fail = 0 ||
20822  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20823
20824
20825# configure is writing to config.log, and then calls config.status.
20826# config.status does its own redirection, appending to config.log.
20827# Unfortunately, on DOS this fails, as config.log is still kept open
20828# by configure, so config.status won't be able to write to it; its
20829# output is simply discarded.  So we exec the FD to /dev/null,
20830# effectively closing config.log, so it can be properly (re)opened and
20831# appended to by config.status.  When coming back to configure, we
20832# need to make the FD available again.
20833if test "$no_create" != yes; then
20834  ac_cs_success=:
20835  ac_config_status_args=
20836  test "$silent" = yes &&
20837    ac_config_status_args="$ac_config_status_args --quiet"
20838  exec 5>/dev/null
20839  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20840  exec 5>>config.log
20841  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20842  # would make configure fail if this is the last instruction.
20843  $ac_cs_success || as_fn_exit 1
20844fi
20845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20846  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20847$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20848fi
20849
20850