configure revision 05cf1079
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.20.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-geode'
593PACKAGE_TARNAME='xf86-video-geode'
594PACKAGE_VERSION='2.11.20'
595PACKAGE_STRING='xf86-video-geode 2.11.20'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues'
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
674LT_SYS_LIBRARY_PATH
675OTOOL64
676OTOOL
677LIPO
678NMEDIT
679DSYMUTIL
680MANIFEST_TOOL
681RANLIB
682ac_ct_AR
683AR
684DLLTOOL
685OBJDUMP
686LN_S
687NM
688ac_ct_DUMPBIN
689DUMPBIN
690LD
691FGREP
692EGREP
693GREP
694SED
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
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
769runstatedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL
789am__quote'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_maintainer_mode
795enable_static
796enable_shared
797with_pic
798enable_fast_install
799with_aix_soname
800enable_dependency_tracking
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804enable_selective_werror
805enable_strict_compilation
806with_xorg_module_dir
807enable_geodegx_panel
808enable_ztv
809enable_xaa
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819LT_SYS_LIBRARY_PATH
820CPP
821PKG_CONFIG
822PKG_CONFIG_PATH
823PKG_CONFIG_LIBDIR
824XORG_CFLAGS
825XORG_LIBS
826XEXT_CFLAGS
827XEXT_LIBS
828PCIACCESS_CFLAGS
829PCIACCESS_LIBS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868runstatedir='${localstatedir}/run'
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
880
881ac_prev=
882ac_dashdash=
883for ac_option
884do
885  # If the previous option needs an argument, assign it.
886  if test -n "$ac_prev"; then
887    eval $ac_prev=\$ac_option
888    ac_prev=
889    continue
890  fi
891
892  case $ac_option in
893  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894  *=)   ac_optarg= ;;
895  *)    ac_optarg=yes ;;
896  esac
897
898  # Accept the important Cygnus configure options, so we can diagnose typos.
899
900  case $ac_dashdash$ac_option in
901  --)
902    ac_dashdash=yes ;;
903
904  -bindir | --bindir | --bindi | --bind | --bin | --bi)
905    ac_prev=bindir ;;
906  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907    bindir=$ac_optarg ;;
908
909  -build | --build | --buil | --bui | --bu)
910    ac_prev=build_alias ;;
911  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912    build_alias=$ac_optarg ;;
913
914  -cache-file | --cache-file | --cache-fil | --cache-fi \
915  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916    ac_prev=cache_file ;;
917  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919    cache_file=$ac_optarg ;;
920
921  --config-cache | -C)
922    cache_file=config.cache ;;
923
924  -datadir | --datadir | --datadi | --datad)
925    ac_prev=datadir ;;
926  -datadir=* | --datadir=* | --datadi=* | --datad=*)
927    datadir=$ac_optarg ;;
928
929  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930  | --dataroo | --dataro | --datar)
931    ac_prev=datarootdir ;;
932  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934    datarootdir=$ac_optarg ;;
935
936  -disable-* | --disable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: $ac_useropt"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=no ;;
951
952  -docdir | --docdir | --docdi | --doc | --do)
953    ac_prev=docdir ;;
954  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955    docdir=$ac_optarg ;;
956
957  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958    ac_prev=dvidir ;;
959  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960    dvidir=$ac_optarg ;;
961
962  -enable-* | --enable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: $ac_useropt"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974	 ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=\$ac_optarg ;;
977
978  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980  | --exec | --exe | --ex)
981    ac_prev=exec_prefix ;;
982  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984  | --exec=* | --exe=* | --ex=*)
985    exec_prefix=$ac_optarg ;;
986
987  -gas | --gas | --ga | --g)
988    # Obsolete; use --with-gas.
989    with_gas=yes ;;
990
991  -help | --help | --hel | --he | -h)
992    ac_init_help=long ;;
993  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994    ac_init_help=recursive ;;
995  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996    ac_init_help=short ;;
997
998  -host | --host | --hos | --ho)
999    ac_prev=host_alias ;;
1000  -host=* | --host=* | --hos=* | --ho=*)
1001    host_alias=$ac_optarg ;;
1002
1003  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004    ac_prev=htmldir ;;
1005  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006  | --ht=*)
1007    htmldir=$ac_optarg ;;
1008
1009  -includedir | --includedir | --includedi | --included | --include \
1010  | --includ | --inclu | --incl | --inc)
1011    ac_prev=includedir ;;
1012  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013  | --includ=* | --inclu=* | --incl=* | --inc=*)
1014    includedir=$ac_optarg ;;
1015
1016  -infodir | --infodir | --infodi | --infod | --info | --inf)
1017    ac_prev=infodir ;;
1018  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019    infodir=$ac_optarg ;;
1020
1021  -libdir | --libdir | --libdi | --libd)
1022    ac_prev=libdir ;;
1023  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024    libdir=$ac_optarg ;;
1025
1026  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027  | --libexe | --libex | --libe)
1028    ac_prev=libexecdir ;;
1029  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030  | --libexe=* | --libex=* | --libe=*)
1031    libexecdir=$ac_optarg ;;
1032
1033  -localedir | --localedir | --localedi | --localed | --locale)
1034    ac_prev=localedir ;;
1035  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036    localedir=$ac_optarg ;;
1037
1038  -localstatedir | --localstatedir | --localstatedi | --localstated \
1039  | --localstate | --localstat | --localsta | --localst | --locals)
1040    ac_prev=localstatedir ;;
1041  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043    localstatedir=$ac_optarg ;;
1044
1045  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046    ac_prev=mandir ;;
1047  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048    mandir=$ac_optarg ;;
1049
1050  -nfp | --nfp | --nf)
1051    # Obsolete; use --without-fp.
1052    with_fp=no ;;
1053
1054  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055  | --no-cr | --no-c | -n)
1056    no_create=yes ;;
1057
1058  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060    no_recursion=yes ;;
1061
1062  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064  | --oldin | --oldi | --old | --ol | --o)
1065    ac_prev=oldincludedir ;;
1066  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069    oldincludedir=$ac_optarg ;;
1070
1071  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072    ac_prev=prefix ;;
1073  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074    prefix=$ac_optarg ;;
1075
1076  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077  | --program-pre | --program-pr | --program-p)
1078    ac_prev=program_prefix ;;
1079  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081    program_prefix=$ac_optarg ;;
1082
1083  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084  | --program-suf | --program-su | --program-s)
1085    ac_prev=program_suffix ;;
1086  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088    program_suffix=$ac_optarg ;;
1089
1090  -program-transform-name | --program-transform-name \
1091  | --program-transform-nam | --program-transform-na \
1092  | --program-transform-n | --program-transform- \
1093  | --program-transform | --program-transfor \
1094  | --program-transfo | --program-transf \
1095  | --program-trans | --program-tran \
1096  | --progr-tra | --program-tr | --program-t)
1097    ac_prev=program_transform_name ;;
1098  -program-transform-name=* | --program-transform-name=* \
1099  | --program-transform-nam=* | --program-transform-na=* \
1100  | --program-transform-n=* | --program-transform-=* \
1101  | --program-transform=* | --program-transfor=* \
1102  | --program-transfo=* | --program-transf=* \
1103  | --program-trans=* | --program-tran=* \
1104  | --progr-tra=* | --program-tr=* | --program-t=*)
1105    program_transform_name=$ac_optarg ;;
1106
1107  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108    ac_prev=pdfdir ;;
1109  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110    pdfdir=$ac_optarg ;;
1111
1112  -psdir | --psdir | --psdi | --psd | --ps)
1113    ac_prev=psdir ;;
1114  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115    psdir=$ac_optarg ;;
1116
1117  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118  | -silent | --silent | --silen | --sile | --sil)
1119    silent=yes ;;
1120
1121  -runstatedir | --runstatedir | --runstatedi | --runstated \
1122  | --runstate | --runstat | --runsta | --runst | --runs \
1123  | --run | --ru | --r)
1124    ac_prev=runstatedir ;;
1125  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1126  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1127  | --run=* | --ru=* | --r=*)
1128    runstatedir=$ac_optarg ;;
1129
1130  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131    ac_prev=sbindir ;;
1132  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133  | --sbi=* | --sb=*)
1134    sbindir=$ac_optarg ;;
1135
1136  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138  | --sharedst | --shareds | --shared | --share | --shar \
1139  | --sha | --sh)
1140    ac_prev=sharedstatedir ;;
1141  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144  | --sha=* | --sh=*)
1145    sharedstatedir=$ac_optarg ;;
1146
1147  -site | --site | --sit)
1148    ac_prev=site ;;
1149  -site=* | --site=* | --sit=*)
1150    site=$ac_optarg ;;
1151
1152  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153    ac_prev=srcdir ;;
1154  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155    srcdir=$ac_optarg ;;
1156
1157  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158  | --syscon | --sysco | --sysc | --sys | --sy)
1159    ac_prev=sysconfdir ;;
1160  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162    sysconfdir=$ac_optarg ;;
1163
1164  -target | --target | --targe | --targ | --tar | --ta | --t)
1165    ac_prev=target_alias ;;
1166  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167    target_alias=$ac_optarg ;;
1168
1169  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170    verbose=yes ;;
1171
1172  -version | --version | --versio | --versi | --vers | -V)
1173    ac_init_version=: ;;
1174
1175  -with-* | --with-*)
1176    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179      as_fn_error $? "invalid package name: $ac_useropt"
1180    ac_useropt_orig=$ac_useropt
1181    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182    case $ac_user_opts in
1183      *"
1184"with_$ac_useropt"
1185"*) ;;
1186      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187	 ac_unrecognized_sep=', ';;
1188    esac
1189    eval with_$ac_useropt=\$ac_optarg ;;
1190
1191  -without-* | --without-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=no ;;
1206
1207  --x)
1208    # Obsolete; use --with-x.
1209    with_x=yes ;;
1210
1211  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212  | --x-incl | --x-inc | --x-in | --x-i)
1213    ac_prev=x_includes ;;
1214  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216    x_includes=$ac_optarg ;;
1217
1218  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220    ac_prev=x_libraries ;;
1221  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223    x_libraries=$ac_optarg ;;
1224
1225  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
1227    ;;
1228
1229  *=*)
1230    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231    # Reject names that are not valid shell variable names.
1232    case $ac_envvar in #(
1233      '' | [0-9]* | *[!_$as_cr_alnum]* )
1234      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235    esac
1236    eval $ac_envvar=\$ac_optarg
1237    export $ac_envvar ;;
1238
1239  *)
1240    # FIXME: should be removed in autoconf 3.0.
1241    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245    ;;
1246
1247  esac
1248done
1249
1250if test -n "$ac_prev"; then
1251  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252  as_fn_error $? "missing argument to $ac_option"
1253fi
1254
1255if test -n "$ac_unrecognized_opts"; then
1256  case $enable_option_checking in
1257    no) ;;
1258    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260  esac
1261fi
1262
1263# Check all directory arguments for consistency.
1264for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265		datadir sysconfdir sharedstatedir localstatedir includedir \
1266		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267		libdir localedir mandir runstatedir
1268do
1269  eval ac_val=\$$ac_var
1270  # Remove trailing slashes.
1271  case $ac_val in
1272    */ )
1273      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274      eval $ac_var=\$ac_val;;
1275  esac
1276  # Be sure to have absolute directory names.
1277  case $ac_val in
1278    [\\/$]* | ?:[\\/]* )  continue;;
1279    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280  esac
1281  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293  if test "x$build_alias" = x; then
1294    cross_compiling=maybe
1295  elif test "x$build_alias" != "x$host_alias"; then
1296    cross_compiling=yes
1297  fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309  as_fn_error $? "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311  as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316  ac_srcdir_defaulted=yes
1317  # Try the directory containing this script, then the parent directory.
1318  ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320	 X"$as_myself" : 'X\(//\)[^/]' \| \
1321	 X"$as_myself" : 'X\(//\)$' \| \
1322	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\/\)[^/].*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)$/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\).*/{
1337	    s//\1/
1338	    q
1339	  }
1340	  s/.*/./; q'`
1341  srcdir=$ac_confdir
1342  if test ! -r "$srcdir/$ac_unique_file"; then
1343    srcdir=..
1344  fi
1345else
1346  ac_srcdir_defaulted=no
1347fi
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355	pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358  srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366for ac_var in $ac_precious_vars; do
1367  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_env_${ac_var}_value=\$${ac_var}
1369  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371done
1372
1373#
1374# Report the --help message.
1375#
1376if test "$ac_init_help" = "long"; then
1377  # Omit some internal or obsolete options to make the list less imposing.
1378  # This message is too long to be a string in the A/UX 3.1 sh.
1379  cat <<_ACEOF
1380\`configure' configures xf86-video-geode 2.11.20 to adapt to many kinds of systems.
1381
1382Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387Defaults for the options are specified in brackets.
1388
1389Configuration:
1390  -h, --help              display this help and exit
1391      --help=short        display options specific to this package
1392      --help=recursive    display the short help of all the included packages
1393  -V, --version           display version information and exit
1394  -q, --quiet, --silent   do not print \`checking ...' messages
1395      --cache-file=FILE   cache test results in FILE [disabled]
1396  -C, --config-cache      alias for \`--cache-file=config.cache'
1397  -n, --no-create         do not create output files
1398      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400Installation directories:
1401  --prefix=PREFIX         install architecture-independent files in PREFIX
1402                          [$ac_default_prefix]
1403  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                          [PREFIX]
1405
1406By default, \`make install' will install all the files in
1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409for instance \`--prefix=\$HOME'.
1410
1411For better control, use the options below.
1412
1413Fine tuning of the installation directories:
1414  --bindir=DIR            user executables [EPREFIX/bin]
1415  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416  --libexecdir=DIR        program executables [EPREFIX/libexec]
1417  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1421  --libdir=DIR            object code libraries [EPREFIX/lib]
1422  --includedir=DIR        C header files [PREFIX/include]
1423  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1424  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1425  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1426  --infodir=DIR           info documentation [DATAROOTDIR/info]
1427  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1428  --mandir=DIR            man documentation [DATAROOTDIR/man]
1429  --docdir=DIR            documentation root
1430                          [DATAROOTDIR/doc/xf86-video-geode]
1431  --htmldir=DIR           html documentation [DOCDIR]
1432  --dvidir=DIR            dvi documentation [DOCDIR]
1433  --pdfdir=DIR            pdf documentation [DOCDIR]
1434  --psdir=DIR             ps documentation [DOCDIR]
1435_ACEOF
1436
1437  cat <<\_ACEOF
1438
1439Program names:
1440  --program-prefix=PREFIX            prepend PREFIX to installed program names
1441  --program-suffix=SUFFIX            append SUFFIX to installed program names
1442  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1443
1444System types:
1445  --build=BUILD     configure for building on BUILD [guessed]
1446  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451  case $ac_init_help in
1452     short | recursive ) echo "Configuration of xf86-video-geode 2.11.20:";;
1453   esac
1454  cat <<\_ACEOF
1455
1456Optional Features:
1457  --disable-option-checking  ignore unrecognized --enable/--with options
1458  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460  --enable-silent-rules   less verbose build output (undo: "make V=1")
1461  --disable-silent-rules  verbose build output (undo: "make V=0")
1462  --enable-maintainer-mode
1463                          enable make rules and dependencies not useful (and
1464                          sometimes confusing) to the casual installer
1465  --enable-static[=PKGS]  build static libraries [default=no]
1466  --enable-shared[=PKGS]  build shared libraries [default=yes]
1467  --enable-fast-install[=PKGS]
1468                          optimize for fast installation [default=yes]
1469  --enable-dependency-tracking
1470                          do not reject slow dependency extractors
1471  --disable-dependency-tracking
1472                          speeds up one-time build
1473  --disable-libtool-lock  avoid locking (might break parallel builds)
1474  --disable-selective-werror
1475                          Turn off selective compiler errors. (default:
1476                          enabled)
1477  --enable-strict-compilation
1478                          Enable all warnings from compiler and make them
1479                          errors (default: disabled)
1480  --disable-geodegx-panel Disable support for flatpanels with the Geode GX
1481  --enable-ztv            Enable Video For Linux based ZTV driver (default:
1482                          auto-detected)
1483  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1484                          [default=auto]
1485
1486Optional Packages:
1487  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1490                          both]
1491  --with-aix-soname=aix|svr4|both
1492                          shared library versioning (aka "SONAME") variant to
1493                          provide on AIX, [default=aix].
1494  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1496                          compiler's sysroot if not specified).
1497  --with-xorg-module-dir=DIR
1498                          Default xorg module directory
1499                          [[default=$libdir/xorg/modules]]
1500
1501Some influential environment variables:
1502  CC          C compiler command
1503  CFLAGS      C compiler flags
1504  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505              nonstandard directory <lib dir>
1506  LIBS        libraries to pass to the linker, e.g. -l<library>
1507  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508              you have headers in a nonstandard directory <include dir>
1509  LT_SYS_LIBRARY_PATH
1510              User-defined run-time library search path.
1511  CPP         C preprocessor
1512  PKG_CONFIG  path to pkg-config utility
1513  PKG_CONFIG_PATH
1514              directories to add to pkg-config's search path
1515  PKG_CONFIG_LIBDIR
1516              path overriding pkg-config's built-in search path
1517  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1518  XORG_LIBS   linker flags for XORG, overriding pkg-config
1519  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1520  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1521  PCIACCESS_CFLAGS
1522              C compiler flags for PCIACCESS, overriding pkg-config
1523  PCIACCESS_LIBS
1524              linker flags for PCIACCESS, overriding pkg-config
1525
1526Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations.
1528
1529Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues>.
1530xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593xf86-video-geode configure 2.11.20
1594generated by GNU Autoconf 2.69
1595
1596Copyright (C) 2012 Free Software Foundation, Inc.
1597This configure script is free software; the Free Software Foundation
1598gives unlimited permission to copy, distribute and modify it.
1599_ACEOF
1600  exit
1601fi
1602
1603## ------------------------ ##
1604## Autoconf initialization. ##
1605## ------------------------ ##
1606
1607# ac_fn_c_try_compile LINENO
1608# --------------------------
1609# Try to compile conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext
1614  if { { ac_try="$ac_compile"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_compile") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest.$ac_objext; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_link LINENO
1646# -----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_link ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext conftest$ac_exeext
1652  if { { ac_try="$ac_link"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_link") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest$ac_exeext && {
1671	 test "$cross_compiling" = yes ||
1672	 test -x conftest$ac_exeext
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679	ac_retval=1
1680fi
1681  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683  # interfere with the next link command; also delete a directory that is
1684  # left behind by Apple's compiler.  We do this before executing the actions.
1685  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_link
1690
1691# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692# -------------------------------------------------------
1693# Tests whether HEADER exists and can be compiled using the include files in
1694# INCLUDES, setting the cache variable VAR accordingly.
1695ac_fn_c_check_header_compile ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
1700if eval \${$3+:} false; then :
1701  $as_echo_n "(cached) " >&6
1702else
1703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705$4
1706#include <$2>
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"; then :
1709  eval "$3=yes"
1710else
1711  eval "$3=no"
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714fi
1715eval ac_res=\$$3
1716	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_header_compile
1721
1722# ac_fn_c_try_cpp LINENO
1723# ----------------------
1724# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_cpp ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if { { ac_try="$ac_cpp conftest.$ac_ext"
1729case "(($ac_try" in
1730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731  *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736  ac_status=$?
1737  if test -s conftest.err; then
1738    grep -v '^ *+' conftest.err >conftest.er1
1739    cat conftest.er1 >&5
1740    mv -f conftest.er1 conftest.err
1741  fi
1742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743  test $ac_status = 0; } > conftest.i && {
1744	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1745	 test ! -s conftest.err
1746       }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752    ac_retval=1
1753fi
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755  as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_cpp
1758
1759# ac_fn_c_try_run LINENO
1760# ----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762# that executables *can* be run.
1763ac_fn_c_try_run ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>&5
1774  ac_status=$?
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777  { { case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_try") 2>&5
1784  ac_status=$?
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; }; }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: program exited with status $ac_status" >&5
1790       $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793       ac_retval=$ac_status
1794fi
1795  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_run
1800
1801# ac_fn_c_check_func LINENO FUNC VAR
1802# ----------------------------------
1803# Tests whether FUNC exists, setting the cache variable VAR accordingly
1804ac_fn_c_check_func ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
1809if eval \${$3+:} false; then :
1810  $as_echo_n "(cached) " >&6
1811else
1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1816#define $2 innocuous_$2
1817
1818/* System header to define __stub macros and hopefully few prototypes,
1819    which can conflict with char $2 (); below.
1820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821    <limits.h> exists even on freestanding compilers.  */
1822
1823#ifdef __STDC__
1824# include <limits.h>
1825#else
1826# include <assert.h>
1827#endif
1828
1829#undef $2
1830
1831/* Override any GCC internal prototype to avoid an error.
1832   Use char because int might match the return type of a GCC
1833   builtin and then its argument prototype would still apply.  */
1834#ifdef __cplusplus
1835extern "C"
1836#endif
1837char $2 ();
1838/* The GNU C library defines this for functions which it implements
1839    to always fail with ENOSYS.  Some functions are actually named
1840    something starting with __ and the normal name is an alias.  */
1841#if defined __stub_$2 || defined __stub___$2
1842choke me
1843#endif
1844
1845int
1846main ()
1847{
1848return $2 ();
1849  ;
1850  return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_link "$LINENO"; then :
1854  eval "$3=yes"
1855else
1856  eval "$3=no"
1857fi
1858rm -f core conftest.err conftest.$ac_objext \
1859    conftest$ac_exeext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_func
1867
1868# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1869# ---------------------------------------------
1870# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1871# accordingly.
1872ac_fn_c_check_decl ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  as_decl_name=`echo $2|sed 's/ *(.*//'`
1876  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1878$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884$4
1885int
1886main ()
1887{
1888#ifndef $as_decl_name
1889#ifdef __cplusplus
1890  (void) $as_decl_use;
1891#else
1892  (void) $as_decl_name;
1893#endif
1894#endif
1895
1896  ;
1897  return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901  eval "$3=yes"
1902else
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_decl
1913
1914# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915# -------------------------------------------------------
1916# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917# the include files in INCLUDES and setting the cache variable VAR
1918# accordingly.
1919ac_fn_c_check_header_mongrel ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  if eval \${$3+:} false; then :
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval \${$3+:} false; then :
1926  $as_echo_n "(cached) " >&6
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931else
1932  # Is the header compilable?
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934$as_echo_n "checking $2 usability... " >&6; }
1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937$4
1938#include <$2>
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941  ac_header_compiler=yes
1942else
1943  ac_header_compiler=no
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947$as_echo "$ac_header_compiler" >&6; }
1948
1949# Is the header present?
1950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951$as_echo_n "checking $2 presence... " >&6; }
1952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954#include <$2>
1955_ACEOF
1956if ac_fn_c_try_cpp "$LINENO"; then :
1957  ac_header_preproc=yes
1958else
1959  ac_header_preproc=no
1960fi
1961rm -f conftest.err conftest.i conftest.$ac_ext
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963$as_echo "$ac_header_preproc" >&6; }
1964
1965# So?  What about this header?
1966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967  yes:no: )
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972    ;;
1973  no:yes:* )
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1977$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1981$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984( $as_echo "## --------------------------------------------------------------------------------- ##
1985## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues ##
1986## --------------------------------------------------------------------------------- ##"
1987     ) | sed "s/^/$as_me: WARNING:     /" >&2
1988    ;;
1989esac
1990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991$as_echo_n "checking for $2... " >&6; }
1992if eval \${$3+:} false; then :
1993  $as_echo_n "(cached) " >&6
1994else
1995  eval "$3=\$ac_header_compiler"
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000fi
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_header_mongrel
2004cat >config.log <<_ACEOF
2005This file contains any messages produced by compilers while
2006running configure, to aid debugging if configure makes a mistake.
2007
2008It was created by xf86-video-geode $as_me 2.11.20, which was
2009generated by GNU Autoconf 2.69.  Invocation command line was
2010
2011  $ $0 $@
2012
2013_ACEOF
2014exec 5>>config.log
2015{
2016cat <<_ASUNAME
2017## --------- ##
2018## Platform. ##
2019## --------- ##
2020
2021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025uname -v = `(uname -v) 2>/dev/null || echo unknown`
2026
2027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2029
2030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2037
2038_ASUNAME
2039
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045    $as_echo "PATH: $as_dir"
2046  done
2047IFS=$as_save_IFS
2048
2049} >&5
2050
2051cat >&5 <<_ACEOF
2052
2053
2054## ----------- ##
2055## Core tests. ##
2056## ----------- ##
2057
2058_ACEOF
2059
2060
2061# Keep a trace of the command line.
2062# Strip out --no-create and --no-recursion so they do not pile up.
2063# Strip out --silent because we don't want to record it for future runs.
2064# Also quote any args containing shell meta-characters.
2065# Make two passes to allow for proper duplicate-argument suppression.
2066ac_configure_args=
2067ac_configure_args0=
2068ac_configure_args1=
2069ac_must_keep_next=false
2070for ac_pass in 1 2
2071do
2072  for ac_arg
2073  do
2074    case $ac_arg in
2075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077    | -silent | --silent | --silen | --sile | --sil)
2078      continue ;;
2079    *\'*)
2080      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081    esac
2082    case $ac_pass in
2083    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2084    2)
2085      as_fn_append ac_configure_args1 " '$ac_arg'"
2086      if test $ac_must_keep_next = true; then
2087	ac_must_keep_next=false # Got value, back to normal.
2088      else
2089	case $ac_arg in
2090	  *=* | --config-cache | -C | -disable-* | --disable-* \
2091	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093	  | -with-* | --with-* | -without-* | --without-* | --x)
2094	    case "$ac_configure_args0 " in
2095	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096	    esac
2097	    ;;
2098	  -* ) ac_must_keep_next=true ;;
2099	esac
2100      fi
2101      as_fn_append ac_configure_args " '$ac_arg'"
2102      ;;
2103    esac
2104  done
2105done
2106{ ac_configure_args0=; unset ac_configure_args0;}
2107{ ac_configure_args1=; unset ac_configure_args1;}
2108
2109# When interrupted or exit'd, cleanup temporary files, and complete
2110# config.log.  We remove comments because anyway the quotes in there
2111# would cause problems or look ugly.
2112# WARNING: Use '\'' to represent an apostrophe within the trap.
2113# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114trap 'exit_status=$?
2115  # Save into config.log some information that might help in debugging.
2116  {
2117    echo
2118
2119    $as_echo "## ---------------- ##
2120## Cache variables. ##
2121## ---------------- ##"
2122    echo
2123    # The following way of writing the cache mishandles newlines in values,
2124(
2125  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126    eval ac_val=\$$ac_var
2127    case $ac_val in #(
2128    *${as_nl}*)
2129      case $ac_var in #(
2130      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132      esac
2133      case $ac_var in #(
2134      _ | IFS | as_nl) ;; #(
2135      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136      *) { eval $ac_var=; unset $ac_var;} ;;
2137      esac ;;
2138    esac
2139  done
2140  (set) 2>&1 |
2141    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142    *${as_nl}ac_space=\ *)
2143      sed -n \
2144	"s/'\''/'\''\\\\'\'''\''/g;
2145	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146      ;; #(
2147    *)
2148      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2149      ;;
2150    esac |
2151    sort
2152)
2153    echo
2154
2155    $as_echo "## ----------------- ##
2156## Output variables. ##
2157## ----------------- ##"
2158    echo
2159    for ac_var in $ac_subst_vars
2160    do
2161      eval ac_val=\$$ac_var
2162      case $ac_val in
2163      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164      esac
2165      $as_echo "$ac_var='\''$ac_val'\''"
2166    done | sort
2167    echo
2168
2169    if test -n "$ac_subst_files"; then
2170      $as_echo "## ------------------- ##
2171## File substitutions. ##
2172## ------------------- ##"
2173      echo
2174      for ac_var in $ac_subst_files
2175      do
2176	eval ac_val=\$$ac_var
2177	case $ac_val in
2178	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179	esac
2180	$as_echo "$ac_var='\''$ac_val'\''"
2181      done | sort
2182      echo
2183    fi
2184
2185    if test -s confdefs.h; then
2186      $as_echo "## ----------- ##
2187## confdefs.h. ##
2188## ----------- ##"
2189      echo
2190      cat confdefs.h
2191      echo
2192    fi
2193    test "$ac_signal" != 0 &&
2194      $as_echo "$as_me: caught signal $ac_signal"
2195    $as_echo "$as_me: exit $exit_status"
2196  } >&5
2197  rm -f core *.core core.conftest.* &&
2198    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199    exit $exit_status
2200' 0
2201for ac_signal in 1 2 13 15; do
2202  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203done
2204ac_signal=0
2205
2206# confdefs.h avoids OS command line length limits that DEFS can exceed.
2207rm -f -r conftest* confdefs.h
2208
2209$as_echo "/* confdefs.h */" > confdefs.h
2210
2211# Predefined preprocessor variables.
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_NAME "$PACKAGE_NAME"
2215_ACEOF
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219_ACEOF
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_VERSION "$PACKAGE_VERSION"
2223_ACEOF
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_STRING "$PACKAGE_STRING"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_URL "$PACKAGE_URL"
2235_ACEOF
2236
2237
2238# Let the site file select an alternate cache file if it wants to.
2239# Prefer an explicitly selected file to automatically selected ones.
2240ac_site_file1=NONE
2241ac_site_file2=NONE
2242if test -n "$CONFIG_SITE"; then
2243  # We do not want a PATH search for config.site.
2244  case $CONFIG_SITE in #((
2245    -*)  ac_site_file1=./$CONFIG_SITE;;
2246    */*) ac_site_file1=$CONFIG_SITE;;
2247    *)   ac_site_file1=./$CONFIG_SITE;;
2248  esac
2249elif test "x$prefix" != xNONE; then
2250  ac_site_file1=$prefix/share/config.site
2251  ac_site_file2=$prefix/etc/config.site
2252else
2253  ac_site_file1=$ac_default_prefix/share/config.site
2254  ac_site_file2=$ac_default_prefix/etc/config.site
2255fi
2256for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2257do
2258  test "x$ac_site_file" = xNONE && continue
2259  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262    sed 's/^/| /' "$ac_site_file" >&5
2263    . "$ac_site_file" \
2264      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266as_fn_error $? "failed to load site script $ac_site_file
2267See \`config.log' for more details" "$LINENO" 5; }
2268  fi
2269done
2270
2271if test -r "$cache_file"; then
2272  # Some versions of bash will fail to source /dev/null (special files
2273  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2274  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276$as_echo "$as_me: loading cache $cache_file" >&6;}
2277    case $cache_file in
2278      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279      *)                      . "./$cache_file";;
2280    esac
2281  fi
2282else
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284$as_echo "$as_me: creating cache $cache_file" >&6;}
2285  >$cache_file
2286fi
2287
2288# Check that the precious variables saved in the cache have kept the same
2289# value.
2290ac_cache_corrupted=false
2291for ac_var in $ac_precious_vars; do
2292  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293  eval ac_new_set=\$ac_env_${ac_var}_set
2294  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295  eval ac_new_val=\$ac_env_${ac_var}_value
2296  case $ac_old_set,$ac_new_set in
2297    set,)
2298      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300      ac_cache_corrupted=: ;;
2301    ,set)
2302      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304      ac_cache_corrupted=: ;;
2305    ,);;
2306    *)
2307      if test "x$ac_old_val" != "x$ac_new_val"; then
2308	# differences in whitespace do not lead to failure.
2309	ac_old_val_w=`echo x $ac_old_val`
2310	ac_new_val_w=`echo x $ac_new_val`
2311	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314	  ac_cache_corrupted=:
2315	else
2316	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318	  eval $ac_var=\$ac_old_val
2319	fi
2320	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2321$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2322	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2323$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2324      fi;;
2325  esac
2326  # Pass precious variables to config.status.
2327  if test "$ac_new_set" = set; then
2328    case $ac_new_val in
2329    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330    *) ac_arg=$ac_var=$ac_new_val ;;
2331    esac
2332    case " $ac_configure_args " in
2333      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2334      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335    esac
2336  fi
2337done
2338if $ac_cache_corrupted; then
2339  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2344fi
2345## -------------------- ##
2346## Main body of script. ##
2347## -------------------- ##
2348
2349ac_ext=c
2350ac_cpp='$CPP $CPPFLAGS'
2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
2357
2358ac_config_headers="$ac_config_headers config.h"
2359
2360
2361ac_aux_dir=
2362for ac_dir in build-aux "$srcdir"/build-aux; do
2363  if test -f "$ac_dir/install-sh"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/install-sh -c"
2366    break
2367  elif test -f "$ac_dir/install.sh"; then
2368    ac_aux_dir=$ac_dir
2369    ac_install_sh="$ac_aux_dir/install.sh -c"
2370    break
2371  elif test -f "$ac_dir/shtool"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/shtool install -c"
2374    break
2375  fi
2376done
2377if test -z "$ac_aux_dir"; then
2378  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2379fi
2380
2381# These three variables are undocumented and unsupported,
2382# and are intended to be withdrawn in a future Autoconf release.
2383# They can cause serious problems if a builder's source tree is in a directory
2384# whose full name contains unusual characters.
2385ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2386ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2387ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2388
2389
2390
2391# Initialize Automake
2392am__api_version='1.16'
2393
2394# Find a good install program.  We prefer a C program (faster),
2395# so one script is as good as another.  But avoid the broken or
2396# incompatible versions:
2397# SysV /etc/install, /usr/sbin/install
2398# SunOS /usr/etc/install
2399# IRIX /sbin/install
2400# AIX /bin/install
2401# AmigaOS /C/install, which installs bootblocks on floppy discs
2402# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2403# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2404# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2405# OS/2's system install, which has a completely different semantic
2406# ./install, which can be erroneously created by make from ./install.sh.
2407# Reject install programs that cannot install multiple files.
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2409$as_echo_n "checking for a BSD-compatible install... " >&6; }
2410if test -z "$INSTALL"; then
2411if ${ac_cv_path_install+:} false; then :
2412  $as_echo_n "(cached) " >&6
2413else
2414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417  IFS=$as_save_IFS
2418  test -z "$as_dir" && as_dir=.
2419    # Account for people who put trailing slashes in PATH elements.
2420case $as_dir/ in #((
2421  ./ | .// | /[cC]/* | \
2422  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2423  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2424  /usr/ucb/* ) ;;
2425  *)
2426    # OSF1 and SCO ODT 3.0 have their own names for install.
2427    # Don't use installbsd from OSF since it installs stuff as root
2428    # by default.
2429    for ac_prog in ginstall scoinst install; do
2430      for ac_exec_ext in '' $ac_executable_extensions; do
2431	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2432	  if test $ac_prog = install &&
2433	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434	    # AIX install.  It has an incompatible calling convention.
2435	    :
2436	  elif test $ac_prog = install &&
2437	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438	    # program-specific install script used by HP pwplus--don't use.
2439	    :
2440	  else
2441	    rm -rf conftest.one conftest.two conftest.dir
2442	    echo one > conftest.one
2443	    echo two > conftest.two
2444	    mkdir conftest.dir
2445	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2446	      test -s conftest.one && test -s conftest.two &&
2447	      test -s conftest.dir/conftest.one &&
2448	      test -s conftest.dir/conftest.two
2449	    then
2450	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2451	      break 3
2452	    fi
2453	  fi
2454	fi
2455      done
2456    done
2457    ;;
2458esac
2459
2460  done
2461IFS=$as_save_IFS
2462
2463rm -rf conftest.one conftest.two conftest.dir
2464
2465fi
2466  if test "${ac_cv_path_install+set}" = set; then
2467    INSTALL=$ac_cv_path_install
2468  else
2469    # As a last resort, use the slow shell script.  Don't cache a
2470    # value for INSTALL within a source directory, because that will
2471    # break other packages using the cache if that directory is
2472    # removed, or if the value is a relative name.
2473    INSTALL=$ac_install_sh
2474  fi
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2477$as_echo "$INSTALL" >&6; }
2478
2479# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2480# It thinks the first close brace ends the variable substitution.
2481test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2482
2483test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2484
2485test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2486
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2488$as_echo_n "checking whether build environment is sane... " >&6; }
2489# Reject unsafe characters in $srcdir or the absolute working directory
2490# name.  Accept space and tab only in the latter.
2491am_lf='
2492'
2493case `pwd` in
2494  *[\\\"\#\$\&\'\`$am_lf]*)
2495    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2496esac
2497case $srcdir in
2498  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2499    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2500esac
2501
2502# Do 'set' in a subshell so we don't clobber the current shell's
2503# arguments.  Must try -L first in case configure is actually a
2504# symlink; some systems play weird games with the mod time of symlinks
2505# (eg FreeBSD returns the mod time of the symlink's containing
2506# directory).
2507if (
2508   am_has_slept=no
2509   for am_try in 1 2; do
2510     echo "timestamp, slept: $am_has_slept" > conftest.file
2511     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2512     if test "$*" = "X"; then
2513	# -L didn't work.
2514	set X `ls -t "$srcdir/configure" conftest.file`
2515     fi
2516     if test "$*" != "X $srcdir/configure conftest.file" \
2517	&& test "$*" != "X conftest.file $srcdir/configure"; then
2518
2519	# If neither matched, then we have a broken ls.  This can happen
2520	# if, for instance, CONFIG_SHELL is bash and it inherits a
2521	# broken ls alias from the environment.  This has actually
2522	# happened.  Such a system could not be considered "sane".
2523	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2524  alias in your environment" "$LINENO" 5
2525     fi
2526     if test "$2" = conftest.file || test $am_try -eq 2; then
2527       break
2528     fi
2529     # Just in case.
2530     sleep 1
2531     am_has_slept=yes
2532   done
2533   test "$2" = conftest.file
2534   )
2535then
2536   # Ok.
2537   :
2538else
2539   as_fn_error $? "newly created file is older than distributed files!
2540Check your system clock" "$LINENO" 5
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2543$as_echo "yes" >&6; }
2544# If we didn't sleep, we still need to ensure time stamps of config.status and
2545# generated files are strictly newer.
2546am_sleep_pid=
2547if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2548  ( sleep 1 ) &
2549  am_sleep_pid=$!
2550fi
2551
2552rm -f conftest.file
2553
2554test "$program_prefix" != NONE &&
2555  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2556# Use a double $ so make ignores it.
2557test "$program_suffix" != NONE &&
2558  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2559# Double any \ or $.
2560# By default was `s,x,x', remove it if useless.
2561ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2562program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2563
2564# Expand $ac_aux_dir to an absolute path.
2565am_aux_dir=`cd "$ac_aux_dir" && pwd`
2566
2567if test x"${MISSING+set}" != xset; then
2568  case $am_aux_dir in
2569  *\ * | *\	*)
2570    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2571  *)
2572    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2573  esac
2574fi
2575# Use eval to expand $SHELL
2576if eval "$MISSING --is-lightweight"; then
2577  am_missing_run="$MISSING "
2578else
2579  am_missing_run=
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2581$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2582fi
2583
2584if test x"${install_sh+set}" != xset; then
2585  case $am_aux_dir in
2586  *\ * | *\	*)
2587    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2588  *)
2589    install_sh="\${SHELL} $am_aux_dir/install-sh"
2590  esac
2591fi
2592
2593# Installed binaries are usually stripped using 'strip' when the user
2594# run "make install-strip".  However 'strip' might not be the right
2595# tool to use in cross-compilation environments, therefore Automake
2596# will honor the 'STRIP' environment variable to overrule this program.
2597if test "$cross_compiling" != no; then
2598  if test -n "$ac_tool_prefix"; then
2599  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2600set dummy ${ac_tool_prefix}strip; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_STRIP+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$STRIP"; then
2607  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614    for ac_exec_ext in '' $ac_executable_extensions; do
2615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626STRIP=$ac_cv_prog_STRIP
2627if test -n "$STRIP"; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2629$as_echo "$STRIP" >&6; }
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633fi
2634
2635
2636fi
2637if test -z "$ac_cv_prog_STRIP"; then
2638  ac_ct_STRIP=$STRIP
2639  # Extract the first word of "strip", so it can be a program name with args.
2640set dummy strip; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  if test -n "$ac_ct_STRIP"; then
2647  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654    for ac_exec_ext in '' $ac_executable_extensions; do
2655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656    ac_cv_prog_ac_ct_STRIP="strip"
2657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661  done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2667if test -n "$ac_ct_STRIP"; then
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2669$as_echo "$ac_ct_STRIP" >&6; }
2670else
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675  if test "x$ac_ct_STRIP" = x; then
2676    STRIP=":"
2677  else
2678    case $cross_compiling:$ac_tool_warned in
2679yes:)
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682ac_tool_warned=yes ;;
2683esac
2684    STRIP=$ac_ct_STRIP
2685  fi
2686else
2687  STRIP="$ac_cv_prog_STRIP"
2688fi
2689
2690fi
2691INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2692
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2694$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2695if test -z "$MKDIR_P"; then
2696  if ${ac_cv_path_mkdir+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2701do
2702  IFS=$as_save_IFS
2703  test -z "$as_dir" && as_dir=.
2704    for ac_prog in mkdir gmkdir; do
2705	 for ac_exec_ext in '' $ac_executable_extensions; do
2706	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2707	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2708	     'mkdir (GNU coreutils) '* | \
2709	     'mkdir (coreutils) '* | \
2710	     'mkdir (fileutils) '4.1*)
2711	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2712	       break 3;;
2713	   esac
2714	 done
2715       done
2716  done
2717IFS=$as_save_IFS
2718
2719fi
2720
2721  test -d ./--version && rmdir ./--version
2722  if test "${ac_cv_path_mkdir+set}" = set; then
2723    MKDIR_P="$ac_cv_path_mkdir -p"
2724  else
2725    # As a last resort, use the slow shell script.  Don't cache a
2726    # value for MKDIR_P within a source directory, because that will
2727    # break other packages using the cache if that directory is
2728    # removed, or if the value is a relative name.
2729    MKDIR_P="$ac_install_sh -d"
2730  fi
2731fi
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2733$as_echo "$MKDIR_P" >&6; }
2734
2735for ac_prog in gawk mawk nawk awk
2736do
2737  # Extract the first word of "$ac_prog", so it can be a program name with args.
2738set dummy $ac_prog; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if ${ac_cv_prog_AWK+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test -n "$AWK"; then
2745  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752    for ac_exec_ext in '' $ac_executable_extensions; do
2753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754    ac_cv_prog_AWK="$ac_prog"
2755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759  done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764AWK=$ac_cv_prog_AWK
2765if test -n "$AWK"; then
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2767$as_echo "$AWK" >&6; }
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774  test -n "$AWK" && break
2775done
2776
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2778$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2779set x ${MAKE-make}
2780ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2781if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  cat >conftest.make <<\_ACEOF
2785SHELL = /bin/sh
2786all:
2787	@echo '@@@%%%=$(MAKE)=@@@%%%'
2788_ACEOF
2789# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2790case `${MAKE-make} -f conftest.make 2>/dev/null` in
2791  *@@@%%%=?*=@@@%%%*)
2792    eval ac_cv_prog_make_${ac_make}_set=yes;;
2793  *)
2794    eval ac_cv_prog_make_${ac_make}_set=no;;
2795esac
2796rm -f conftest.make
2797fi
2798if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800$as_echo "yes" >&6; }
2801  SET_MAKE=
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805  SET_MAKE="MAKE=${MAKE-make}"
2806fi
2807
2808rm -rf .tst 2>/dev/null
2809mkdir .tst 2>/dev/null
2810if test -d .tst; then
2811  am__leading_dot=.
2812else
2813  am__leading_dot=_
2814fi
2815rmdir .tst 2>/dev/null
2816
2817# Check whether --enable-silent-rules was given.
2818if test "${enable_silent_rules+set}" = set; then :
2819  enableval=$enable_silent_rules;
2820fi
2821
2822case $enable_silent_rules in # (((
2823  yes) AM_DEFAULT_VERBOSITY=0;;
2824   no) AM_DEFAULT_VERBOSITY=1;;
2825    *) AM_DEFAULT_VERBOSITY=1;;
2826esac
2827am_make=${MAKE-make}
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2829$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2830if ${am_cv_make_support_nested_variables+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  if $as_echo 'TRUE=$(BAR$(V))
2834BAR0=false
2835BAR1=true
2836V=1
2837am__doit:
2838	@$(TRUE)
2839.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2840  am_cv_make_support_nested_variables=yes
2841else
2842  am_cv_make_support_nested_variables=no
2843fi
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2846$as_echo "$am_cv_make_support_nested_variables" >&6; }
2847if test $am_cv_make_support_nested_variables = yes; then
2848    AM_V='$(V)'
2849  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2850else
2851  AM_V=$AM_DEFAULT_VERBOSITY
2852  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2853fi
2854AM_BACKSLASH='\'
2855
2856if test "`cd $srcdir && pwd`" != "`pwd`"; then
2857  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2858  # is not polluted with repeated "-I."
2859  am__isrc=' -I$(srcdir)'
2860  # test to see if srcdir already configured
2861  if test -f $srcdir/config.status; then
2862    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2863  fi
2864fi
2865
2866# test whether we have cygpath
2867if test -z "$CYGPATH_W"; then
2868  if (cygpath --version) >/dev/null 2>/dev/null; then
2869    CYGPATH_W='cygpath -w'
2870  else
2871    CYGPATH_W=echo
2872  fi
2873fi
2874
2875
2876# Define the identity of the package.
2877 PACKAGE='xf86-video-geode'
2878 VERSION='2.11.20'
2879
2880
2881cat >>confdefs.h <<_ACEOF
2882#define PACKAGE "$PACKAGE"
2883_ACEOF
2884
2885
2886cat >>confdefs.h <<_ACEOF
2887#define VERSION "$VERSION"
2888_ACEOF
2889
2890# Some tools Automake needs.
2891
2892ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2893
2894
2895AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2896
2897
2898AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2899
2900
2901AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2902
2903
2904MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2905
2906# For better backward compatibility.  To be removed once Automake 1.9.x
2907# dies out for good.  For more background, see:
2908# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2909# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2910mkdir_p='$(MKDIR_P)'
2911
2912# We need awk for the "check" target (and possibly the TAP driver).  The
2913# system "awk" is bad on some platforms.
2914# Always define AMTAR for backward compatibility.  Yes, it's still used
2915# in the wild :-(  We should find a proper way to deprecate it ...
2916AMTAR='$${TAR-tar}'
2917
2918
2919# We'll loop over all known methods to create a tar archive until one works.
2920_am_tools='gnutar  pax cpio none'
2921
2922am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2923
2924
2925
2926
2927
2928
2929# POSIX will say in a future version that running "rm -f" with no argument
2930# is OK; and we want to be able to make that assumption in our Makefile
2931# recipes.  So use an aggressive probe to check that the usage we want is
2932# actually supported "in the wild" to an acceptable degree.
2933# See automake bug#10828.
2934# To make any issue more visible, cause the running configure to be aborted
2935# by default if the 'rm' program in use doesn't match our expectations; the
2936# user can still override this though.
2937if rm -f && rm -fr && rm -rf; then : OK; else
2938  cat >&2 <<'END'
2939Oops!
2940
2941Your 'rm' program seems unable to run without file operands specified
2942on the command line, even when the '-f' option is present.  This is contrary
2943to the behaviour of most rm programs out there, and not conforming with
2944the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2945
2946Please tell bug-automake@gnu.org about your system, including the value
2947of your $PATH and any error possibly output before this message.  This
2948can help us improve future automake versions.
2949
2950END
2951  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2952    echo 'Configuration will proceed anyway, since you have set the' >&2
2953    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2954    echo >&2
2955  else
2956    cat >&2 <<'END'
2957Aborting the configuration process, to ensure you take notice of the issue.
2958
2959You can download and install GNU coreutils to get an 'rm' implementation
2960that behaves properly: <https://www.gnu.org/software/coreutils/>.
2961
2962If you want to complete the configuration process using your problematic
2963'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2964to "yes", and re-run configure.
2965
2966END
2967    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2968  fi
2969fi
2970
2971
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2973$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2974    # Check whether --enable-maintainer-mode was given.
2975if test "${enable_maintainer_mode+set}" = set; then :
2976  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2977else
2978  USE_MAINTAINER_MODE=no
2979fi
2980
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2982$as_echo "$USE_MAINTAINER_MODE" >&6; }
2983   if test $USE_MAINTAINER_MODE = yes; then
2984  MAINTAINER_MODE_TRUE=
2985  MAINTAINER_MODE_FALSE='#'
2986else
2987  MAINTAINER_MODE_TRUE='#'
2988  MAINTAINER_MODE_FALSE=
2989fi
2990
2991  MAINT=$MAINTAINER_MODE_TRUE
2992
2993
2994
2995# Initialize libtool
2996# Check whether --enable-static was given.
2997if test "${enable_static+set}" = set; then :
2998  enableval=$enable_static; p=${PACKAGE-default}
2999    case $enableval in
3000    yes) enable_static=yes ;;
3001    no) enable_static=no ;;
3002    *)
3003     enable_static=no
3004      # Look at the argument we got.  We use all the common list separators.
3005      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3006      for pkg in $enableval; do
3007	IFS=$lt_save_ifs
3008	if test "X$pkg" = "X$p"; then
3009	  enable_static=yes
3010	fi
3011      done
3012      IFS=$lt_save_ifs
3013      ;;
3014    esac
3015else
3016  enable_static=no
3017fi
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027case `pwd` in
3028  *\ * | *\	*)
3029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3030$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3031esac
3032
3033
3034
3035macro_version='2.4.6'
3036macro_revision='2.4.6'
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050ltmain=$ac_aux_dir/ltmain.sh
3051
3052# Make sure we can run config.sub.
3053$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3055
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057$as_echo_n "checking build system type... " >&6; }
3058if ${ac_cv_build+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  ac_build_alias=$build_alias
3062test "x$ac_build_alias" = x &&
3063  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064test "x$ac_build_alias" = x &&
3065  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3068
3069fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071$as_echo "$ac_cv_build" >&6; }
3072case $ac_cv_build in
3073*-*-*) ;;
3074*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3075esac
3076build=$ac_cv_build
3077ac_save_IFS=$IFS; IFS='-'
3078set x $ac_cv_build
3079shift
3080build_cpu=$1
3081build_vendor=$2
3082shift; shift
3083# Remember, the first character of IFS is used to create $*,
3084# except with old shells:
3085build_os=$*
3086IFS=$ac_save_IFS
3087case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088
3089
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091$as_echo_n "checking host system type... " >&6; }
3092if ${ac_cv_host+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test "x$host_alias" = x; then
3096  ac_cv_host=$ac_cv_build
3097else
3098  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3100fi
3101
3102fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104$as_echo "$ac_cv_host" >&6; }
3105case $ac_cv_host in
3106*-*-*) ;;
3107*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3108esac
3109host=$ac_cv_host
3110ac_save_IFS=$IFS; IFS='-'
3111set x $ac_cv_host
3112shift
3113host_cpu=$1
3114host_vendor=$2
3115shift; shift
3116# Remember, the first character of IFS is used to create $*,
3117# except with old shells:
3118host_os=$*
3119IFS=$ac_save_IFS
3120case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3121
3122
3123# Backslashify metacharacters that are still active within
3124# double-quoted strings.
3125sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3126
3127# Same as above, but do not quote variable references.
3128double_quote_subst='s/\(["`\\]\)/\\\1/g'
3129
3130# Sed substitution to delay expansion of an escaped shell variable in a
3131# double_quote_subst'ed string.
3132delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3133
3134# Sed substitution to delay expansion of an escaped single quote.
3135delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3136
3137# Sed substitution to avoid accidental globbing in evaled expressions
3138no_glob_subst='s/\*/\\\*/g'
3139
3140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3143
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3145$as_echo_n "checking how to print strings... " >&6; }
3146# Test print first, because it will be a builtin if present.
3147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3148   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3149  ECHO='print -r --'
3150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3151  ECHO='printf %s\n'
3152else
3153  # Use this function as a fallback that always works.
3154  func_fallback_echo ()
3155  {
3156    eval 'cat <<_LTECHO_EOF
3157$1
3158_LTECHO_EOF'
3159  }
3160  ECHO='func_fallback_echo'
3161fi
3162
3163# func_echo_all arg...
3164# Invoke $ECHO with all args, space-separated.
3165func_echo_all ()
3166{
3167    $ECHO ""
3168}
3169
3170case $ECHO in
3171  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3172$as_echo "printf" >&6; } ;;
3173  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3174$as_echo "print -r" >&6; } ;;
3175  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3176$as_echo "cat" >&6; } ;;
3177esac
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192DEPDIR="${am__leading_dot}deps"
3193
3194ac_config_commands="$ac_config_commands depfiles"
3195
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3197$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3198cat > confinc.mk << 'END'
3199am__doit:
3200	@echo this is the am__doit target >confinc.out
3201.PHONY: am__doit
3202END
3203am__include="#"
3204am__quote=
3205# BSD make does it like this.
3206echo '.include "confinc.mk" # ignored' > confmf.BSD
3207# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3208echo 'include confinc.mk # ignored' > confmf.GNU
3209_am_result=no
3210for s in GNU BSD; do
3211  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3212   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }
3216  case $?:`cat confinc.out 2>/dev/null` in #(
3217  '0:this is the am__doit target') :
3218    case $s in #(
3219  BSD) :
3220    am__include='.include' am__quote='"' ;; #(
3221  *) :
3222    am__include='include' am__quote='' ;;
3223esac ;; #(
3224  *) :
3225     ;;
3226esac
3227  if test "$am__include" != "#"; then
3228    _am_result="yes ($s style)"
3229    break
3230  fi
3231done
3232rm -f confinc.* confmf.*
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3234$as_echo "${_am_result}" >&6; }
3235
3236# Check whether --enable-dependency-tracking was given.
3237if test "${enable_dependency_tracking+set}" = set; then :
3238  enableval=$enable_dependency_tracking;
3239fi
3240
3241if test "x$enable_dependency_tracking" != xno; then
3242  am_depcomp="$ac_aux_dir/depcomp"
3243  AMDEPBACKSLASH='\'
3244  am__nodep='_no'
3245fi
3246 if test "x$enable_dependency_tracking" != xno; then
3247  AMDEP_TRUE=
3248  AMDEP_FALSE='#'
3249else
3250  AMDEP_TRUE='#'
3251  AMDEP_FALSE=
3252fi
3253
3254
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260if test -n "$ac_tool_prefix"; then
3261  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if ${ac_cv_prog_CC+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  if test -n "$CC"; then
3269  ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288CC=$ac_cv_prog_CC
3289if test -n "$CC"; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291$as_echo "$CC" >&6; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298fi
3299if test -z "$ac_cv_prog_CC"; then
3300  ac_ct_CC=$CC
3301  # Extract the first word of "gcc", so it can be a program name with args.
3302set dummy gcc; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if ${ac_cv_prog_ac_ct_CC+:} false; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  if test -n "$ac_ct_CC"; then
3309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318    ac_cv_prog_ac_ct_CC="gcc"
3319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323  done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329if test -n "$ac_ct_CC"; then
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331$as_echo "$ac_ct_CC" >&6; }
3332else
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337  if test "x$ac_ct_CC" = x; then
3338    CC=""
3339  else
3340    case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344ac_tool_warned=yes ;;
3345esac
3346    CC=$ac_ct_CC
3347  fi
3348else
3349  CC="$ac_cv_prog_CC"
3350fi
3351
3352if test -z "$CC"; then
3353          if test -n "$ac_tool_prefix"; then
3354    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355set dummy ${ac_tool_prefix}cc; ac_word=$2
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357$as_echo_n "checking for $ac_word... " >&6; }
3358if ${ac_cv_prog_CC+:} false; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  if test -n "$CC"; then
3362  ac_cv_prog_CC="$CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_exec_ext in '' $ac_executable_extensions; do
3370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_CC="${ac_tool_prefix}cc"
3372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376  done
3377IFS=$as_save_IFS
3378
3379fi
3380fi
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384$as_echo "$CC" >&6; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388fi
3389
3390
3391  fi
3392fi
3393if test -z "$CC"; then
3394  # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
3398if ${ac_cv_prog_CC+:} false; then :
3399  $as_echo_n "(cached) " >&6
3400else
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404  ac_prog_rejected=no
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_exec_ext in '' $ac_executable_extensions; do
3411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413       ac_prog_rejected=yes
3414       continue
3415     fi
3416    ac_cv_prog_CC="cc"
3417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421  done
3422IFS=$as_save_IFS
3423
3424if test $ac_prog_rejected = yes; then
3425  # We found a bogon in the path, so make sure we never use it.
3426  set dummy $ac_cv_prog_CC
3427  shift
3428  if test $# != 0; then
3429    # We chose a different compiler from the bogus one.
3430    # However, it has the same basename, so the bogon will be chosen
3431    # first if we set CC to just the basename; use the full file name.
3432    shift
3433    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434  fi
3435fi
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448fi
3449if test -z "$CC"; then
3450  if test -n "$ac_tool_prefix"; then
3451  for ac_prog in cl.exe
3452  do
3453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_prog_CC+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$CC"; then
3461  ac_cv_prog_CC="$CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490    test -n "$CC" && break
3491  done
3492fi
3493if test -z "$CC"; then
3494  ac_ct_CC=$CC
3495  for ac_prog in cl.exe
3496do
3497  # Extract the first word of "$ac_prog", so it can be a program name with args.
3498set dummy $ac_prog; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if ${ac_cv_prog_ac_ct_CC+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  if test -n "$ac_ct_CC"; then
3505  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  test -z "$as_dir" && as_dir=.
3512    for ac_exec_ext in '' $ac_executable_extensions; do
3513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514    ac_cv_prog_ac_ct_CC="$ac_prog"
3515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516    break 2
3517  fi
3518done
3519  done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525if test -n "$ac_ct_CC"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527$as_echo "$ac_ct_CC" >&6; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
3531fi
3532
3533
3534  test -n "$ac_ct_CC" && break
3535done
3536
3537  if test "x$ac_ct_CC" = x; then
3538    CC=""
3539  else
3540    case $cross_compiling:$ac_tool_warned in
3541yes:)
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544ac_tool_warned=yes ;;
3545esac
3546    CC=$ac_ct_CC
3547  fi
3548fi
3549
3550fi
3551
3552
3553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error $? "no acceptable C compiler found in \$PATH
3556See \`config.log' for more details" "$LINENO" 5; }
3557
3558# Provide some information about the compiler.
3559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560set X $ac_compile
3561ac_compiler=$2
3562for ac_option in --version -v -V -qversion; do
3563  { { ac_try="$ac_compiler $ac_option >&5"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571  ac_status=$?
3572  if test -s conftest.err; then
3573    sed '10a\
3574... rest of stderr output deleted ...
3575         10q' conftest.err >conftest.er1
3576    cat conftest.er1 >&5
3577  fi
3578  rm -f conftest.er1 conftest.err
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }
3581done
3582
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main ()
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594ac_clean_files_save=$ac_clean_files
3595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596# Try to create an executable without -o first, disregard a.out.
3597# It will help us diagnose broken compilers, and finding out an intuition
3598# of exeext.
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600$as_echo_n "checking whether the C compiler works... " >&6; }
3601ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602
3603# The possible output files:
3604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3605
3606ac_rmfiles=
3607for ac_file in $ac_files
3608do
3609  case $ac_file in
3610    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612  esac
3613done
3614rm -f $ac_rmfiles
3615
3616if { { ac_try="$ac_link_default"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_link_default") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }; then :
3627  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3630# so that the user can short-circuit this test for compilers unknown to
3631# Autoconf.
3632for ac_file in $ac_files ''
3633do
3634  test -f "$ac_file" || continue
3635  case $ac_file in
3636    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3637	;;
3638    [ab].out )
3639	# We found the default executable, but exeext='' is most
3640	# certainly right.
3641	break;;
3642    *.* )
3643	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3644	then :; else
3645	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646	fi
3647	# We set ac_cv_exeext here because the later test for it is not
3648	# safe: cross compilers may not add the suffix if given an `-o'
3649	# argument, so we may need to know it at that point already.
3650	# Even if this section looks crufty: it has the advantage of
3651	# actually working.
3652	break;;
3653    * )
3654	break;;
3655  esac
3656done
3657test "$ac_cv_exeext" = no && ac_cv_exeext=
3658
3659else
3660  ac_file=''
3661fi
3662if test -z "$ac_file"; then :
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665$as_echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670as_fn_error 77 "C compiler cannot create executables
3671See \`config.log' for more details" "$LINENO" 5; }
3672else
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3674$as_echo "yes" >&6; }
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3677$as_echo_n "checking for C compiler default output file name... " >&6; }
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3679$as_echo "$ac_file" >&6; }
3680ac_exeext=$ac_cv_exeext
3681
3682rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3683ac_clean_files=$ac_clean_files_save
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3685$as_echo_n "checking for suffix of executables... " >&6; }
3686if { { ac_try="$ac_link"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693  (eval "$ac_link") 2>&5
3694  ac_status=$?
3695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696  test $ac_status = 0; }; then :
3697  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3699# work properly (i.e., refer to `conftest.exe'), while it won't with
3700# `rm'.
3701for ac_file in conftest.exe conftest conftest.*; do
3702  test -f "$ac_file" || continue
3703  case $ac_file in
3704    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706	  break;;
3707    * ) break;;
3708  esac
3709done
3710else
3711  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3714See \`config.log' for more details" "$LINENO" 5; }
3715fi
3716rm -f conftest conftest$ac_cv_exeext
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718$as_echo "$ac_cv_exeext" >&6; }
3719
3720rm -f conftest.$ac_ext
3721EXEEXT=$ac_cv_exeext
3722ac_exeext=$EXEEXT
3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725#include <stdio.h>
3726int
3727main ()
3728{
3729FILE *f = fopen ("conftest.out", "w");
3730 return ferror (f) || fclose (f) != 0;
3731
3732  ;
3733  return 0;
3734}
3735_ACEOF
3736ac_clean_files="$ac_clean_files conftest.out"
3737# Check that the compiler produces executables we can run.  If not, either
3738# the compiler is broken, or we cross compile.
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3740$as_echo_n "checking whether we are cross compiling... " >&6; }
3741if test "$cross_compiling" != yes; then
3742  { { ac_try="$ac_link"
3743case "(($ac_try" in
3744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745  *) ac_try_echo=$ac_try;;
3746esac
3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748$as_echo "$ac_try_echo"; } >&5
3749  (eval "$ac_link") 2>&5
3750  ac_status=$?
3751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752  test $ac_status = 0; }
3753  if { ac_try='./conftest$ac_cv_exeext'
3754  { { case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760  (eval "$ac_try") 2>&5
3761  ac_status=$?
3762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }; }; then
3764    cross_compiling=no
3765  else
3766    if test "$cross_compiling" = maybe; then
3767	cross_compiling=yes
3768    else
3769	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771as_fn_error $? "cannot run C compiled programs.
3772If you meant to cross compile, use \`--host'.
3773See \`config.log' for more details" "$LINENO" 5; }
3774    fi
3775  fi
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3778$as_echo "$cross_compiling" >&6; }
3779
3780rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3781ac_clean_files=$ac_clean_files_save
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783$as_echo_n "checking for suffix of object files... " >&6; }
3784if ${ac_cv_objext+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789
3790int
3791main ()
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798rm -f conftest.o conftest.obj
3799if { { ac_try="$ac_compile"
3800case "(($ac_try" in
3801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802  *) ac_try_echo=$ac_try;;
3803esac
3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805$as_echo "$ac_try_echo"; } >&5
3806  (eval "$ac_compile") 2>&5
3807  ac_status=$?
3808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809  test $ac_status = 0; }; then :
3810  for ac_file in conftest.o conftest.obj conftest.*; do
3811  test -f "$ac_file" || continue;
3812  case $ac_file in
3813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3814    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815       break;;
3816  esac
3817done
3818else
3819  $as_echo "$as_me: failed program was:" >&5
3820sed 's/^/| /' conftest.$ac_ext >&5
3821
3822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824as_fn_error $? "cannot compute suffix of object files: cannot compile
3825See \`config.log' for more details" "$LINENO" 5; }
3826fi
3827rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3830$as_echo "$ac_cv_objext" >&6; }
3831OBJEXT=$ac_cv_objext
3832ac_objext=$OBJEXT
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3834$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3835if ${ac_cv_c_compiler_gnu+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844#ifndef __GNUC__
3845       choke me
3846#endif
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853  ac_compiler_gnu=yes
3854else
3855  ac_compiler_gnu=no
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3863if test $ac_compiler_gnu = yes; then
3864  GCC=yes
3865else
3866  GCC=
3867fi
3868ac_test_CFLAGS=${CFLAGS+set}
3869ac_save_CFLAGS=$CFLAGS
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3871$as_echo_n "checking whether $CC accepts -g... " >&6; }
3872if ${ac_cv_prog_cc_g+:} false; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  ac_save_c_werror_flag=$ac_c_werror_flag
3876   ac_c_werror_flag=yes
3877   ac_cv_prog_cc_g=no
3878   CFLAGS="-g"
3879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_compile "$LINENO"; then :
3891  ac_cv_prog_cc_g=yes
3892else
3893  CFLAGS=""
3894      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906
3907else
3908  ac_c_werror_flag=$ac_save_c_werror_flag
3909	 CFLAGS="-g"
3910	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921if ac_fn_c_try_compile "$LINENO"; then :
3922  ac_cv_prog_cc_g=yes
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927fi
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929   ac_c_werror_flag=$ac_save_c_werror_flag
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932$as_echo "$ac_cv_prog_cc_g" >&6; }
3933if test "$ac_test_CFLAGS" = set; then
3934  CFLAGS=$ac_save_CFLAGS
3935elif test $ac_cv_prog_cc_g = yes; then
3936  if test "$GCC" = yes; then
3937    CFLAGS="-g -O2"
3938  else
3939    CFLAGS="-g"
3940  fi
3941else
3942  if test "$GCC" = yes; then
3943    CFLAGS="-O2"
3944  else
3945    CFLAGS=
3946  fi
3947fi
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950if ${ac_cv_prog_cc_c89+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  ac_cv_prog_cc_c89=no
3954ac_save_CC=$CC
3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h.  */
3957#include <stdarg.h>
3958#include <stdio.h>
3959struct stat;
3960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3961struct buf { int x; };
3962FILE * (*rcsopen) (struct buf *, struct stat *, int);
3963static char *e (p, i)
3964     char **p;
3965     int i;
3966{
3967  return p[i];
3968}
3969static char *f (char * (*g) (char **, int), char **p, ...)
3970{
3971  char *s;
3972  va_list v;
3973  va_start (v,p);
3974  s = g (p, va_arg (v,int));
3975  va_end (v);
3976  return s;
3977}
3978
3979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3980   function prototypes and stuff, but not '\xHH' hex character constants.
3981   These don't provoke an error unfortunately, instead are silently treated
3982   as 'x'.  The following induces an error, until -std is added to get
3983   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3984   array size at least.  It's necessary to write '\x00'==0 to get something
3985   that's true only with -std.  */
3986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3987
3988/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3989   inside strings and character constants.  */
3990#define FOO(x) 'x'
3991int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3992
3993int test (int i, double x);
3994struct s1 {int (*f) (int a);};
3995struct s2 {int (*f) (double a);};
3996int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3997int argc;
3998char **argv;
3999int
4000main ()
4001{
4002return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4008	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009do
4010  CC="$ac_save_CC $ac_arg"
4011  if ac_fn_c_try_compile "$LINENO"; then :
4012  ac_cv_prog_cc_c89=$ac_arg
4013fi
4014rm -f core conftest.err conftest.$ac_objext
4015  test "x$ac_cv_prog_cc_c89" != "xno" && break
4016done
4017rm -f conftest.$ac_ext
4018CC=$ac_save_CC
4019
4020fi
4021# AC_CACHE_VAL
4022case "x$ac_cv_prog_cc_c89" in
4023  x)
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025$as_echo "none needed" >&6; } ;;
4026  xno)
4027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028$as_echo "unsupported" >&6; } ;;
4029  *)
4030    CC="$CC $ac_cv_prog_cc_c89"
4031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4032$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4033esac
4034if test "x$ac_cv_prog_cc_c89" != xno; then :
4035
4036fi
4037
4038ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4050$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4051if ${am_cv_prog_cc_c_o+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056
4057int
4058main ()
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065  # Make sure it works both with $CC and with simple cc.
4066  # Following AC_PROG_CC_C_O, we do the test twice because some
4067  # compilers refuse to overwrite an existing .o file with -o,
4068  # though they will create one.
4069  am_cv_prog_cc_c_o=yes
4070  for am_i in 1 2; do
4071    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4072   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } \
4076         && test -f conftest2.$ac_objext; then
4077      : OK
4078    else
4079      am_cv_prog_cc_c_o=no
4080      break
4081    fi
4082  done
4083  rm -f core conftest*
4084  unset am_i
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4087$as_echo "$am_cv_prog_cc_c_o" >&6; }
4088if test "$am_cv_prog_cc_c_o" != yes; then
4089   # Losing compiler, so override with the script.
4090   # FIXME: It is wrong to rewrite CC.
4091   # But if we don't then we get into trouble of one sort or another.
4092   # A longer-term fix would be to have automake use am__CC in this case,
4093   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4094   CC="$am_aux_dir/compile $CC"
4095fi
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103depcc="$CC"   am_compiler_list=
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4106$as_echo_n "checking dependency style of $depcc... " >&6; }
4107if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4108  $as_echo_n "(cached) " >&6
4109else
4110  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4111  # We make a subdir and do the tests there.  Otherwise we can end up
4112  # making bogus files that we don't know about and never remove.  For
4113  # instance it was reported that on HP-UX the gcc test will end up
4114  # making a dummy file named 'D' -- because '-MD' means "put the output
4115  # in D".
4116  rm -rf conftest.dir
4117  mkdir conftest.dir
4118  # Copy depcomp to subdir because otherwise we won't find it if we're
4119  # using a relative directory.
4120  cp "$am_depcomp" conftest.dir
4121  cd conftest.dir
4122  # We will build objects and dependencies in a subdirectory because
4123  # it helps to detect inapplicable dependency modes.  For instance
4124  # both Tru64's cc and ICC support -MD to output dependencies as a
4125  # side effect of compilation, but ICC will put the dependencies in
4126  # the current directory while Tru64 will put them in the object
4127  # directory.
4128  mkdir sub
4129
4130  am_cv_CC_dependencies_compiler_type=none
4131  if test "$am_compiler_list" = ""; then
4132     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133  fi
4134  am__universal=false
4135  case " $depcc " in #(
4136     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137     esac
4138
4139  for depmode in $am_compiler_list; do
4140    # Setup a source with many dependencies, because some compilers
4141    # like to wrap large dependency lists on column 80 (with \), and
4142    # we should not choose a depcomp mode which is confused by this.
4143    #
4144    # We need to recreate these files for each test, as the compiler may
4145    # overwrite some of them when testing with obscure command lines.
4146    # This happens at least with the AIX C compiler.
4147    : > sub/conftest.c
4148    for i in 1 2 3 4 5 6; do
4149      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4151      # Solaris 10 /bin/sh.
4152      echo '/* dummy */' > sub/conftst$i.h
4153    done
4154    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
4156    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4157    # mode.  It turns out that the SunPro C++ compiler does not properly
4158    # handle '-M -o', and we need to detect this.  Also, some Intel
4159    # versions had trouble with output in subdirs.
4160    am__obj=sub/conftest.${OBJEXT-o}
4161    am__minus_obj="-o $am__obj"
4162    case $depmode in
4163    gcc)
4164      # This depmode causes a compiler race in universal mode.
4165      test "$am__universal" = false || continue
4166      ;;
4167    nosideeffect)
4168      # After this tag, mechanisms are not by side-effect, so they'll
4169      # only be used when explicitly requested.
4170      if test "x$enable_dependency_tracking" = xyes; then
4171	continue
4172      else
4173	break
4174      fi
4175      ;;
4176    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4177      # This compiler won't grok '-c -o', but also, the minuso test has
4178      # not run yet.  These depmodes are late enough in the game, and
4179      # so weak that their functioning should not be impacted.
4180      am__obj=conftest.${OBJEXT-o}
4181      am__minus_obj=
4182      ;;
4183    none) break ;;
4184    esac
4185    if depmode=$depmode \
4186       source=sub/conftest.c object=$am__obj \
4187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4188       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4189         >/dev/null 2>conftest.err &&
4190       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4191       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4193       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194      # icc doesn't choke on unknown options, it will just issue warnings
4195      # or remarks (even with -Werror).  So we grep stderr for any message
4196      # that says an option was ignored or not supported.
4197      # When given -MP, icc 7.0 and 7.1 complain thusly:
4198      #   icc: Command line warning: ignoring option '-M'; no argument required
4199      # The diagnosis changed in icc 8.0:
4200      #   icc: Command line remark: option '-MP' not supported
4201      if (grep 'ignoring option' conftest.err ||
4202          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203        am_cv_CC_dependencies_compiler_type=$depmode
4204        break
4205      fi
4206    fi
4207  done
4208
4209  cd ..
4210  rm -rf conftest.dir
4211else
4212  am_cv_CC_dependencies_compiler_type=none
4213fi
4214
4215fi
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4218CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220 if
4221  test "x$enable_dependency_tracking" != xno \
4222  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223  am__fastdepCC_TRUE=
4224  am__fastdepCC_FALSE='#'
4225else
4226  am__fastdepCC_TRUE='#'
4227  am__fastdepCC_FALSE=
4228fi
4229
4230
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4232$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4233if ${ac_cv_path_SED+:} false; then :
4234  $as_echo_n "(cached) " >&6
4235else
4236            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4237     for ac_i in 1 2 3 4 5 6 7; do
4238       ac_script="$ac_script$as_nl$ac_script"
4239     done
4240     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4241     { ac_script=; unset ac_script;}
4242     if test -z "$SED"; then
4243  ac_path_SED_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in sed gsed; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4253      as_fn_executable_p "$ac_path_SED" || continue
4254# Check for GNU ac_path_SED and select it if it is found.
4255  # Check for GNU $ac_path_SED
4256case `"$ac_path_SED" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo '' >> "conftest.nl"
4268    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_SED_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_SED="$ac_path_SED"
4274      ac_path_SED_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_SED_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_SED"; then
4288    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_SED=$SED
4292fi
4293
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4296$as_echo "$ac_cv_path_SED" >&6; }
4297 SED="$ac_cv_path_SED"
4298  rm -f conftest.sed
4299
4300test -z "$SED" && SED=sed
4301Xsed="$SED -e 1s/^X//"
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4314$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315if ${ac_cv_path_GREP+:} false; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -z "$GREP"; then
4319  ac_path_GREP_found=false
4320  # Loop through the user's path and test for each of PROGNAME-LIST
4321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_prog in grep ggrep; do
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329      as_fn_executable_p "$ac_path_GREP" || continue
4330# Check for GNU ac_path_GREP and select it if it is found.
4331  # Check for GNU $ac_path_GREP
4332case `"$ac_path_GREP" --version 2>&1` in
4333*GNU*)
4334  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335*)
4336  ac_count=0
4337  $as_echo_n 0123456789 >"conftest.in"
4338  while :
4339  do
4340    cat "conftest.in" "conftest.in" >"conftest.tmp"
4341    mv "conftest.tmp" "conftest.in"
4342    cp "conftest.in" "conftest.nl"
4343    $as_echo 'GREP' >> "conftest.nl"
4344    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346    as_fn_arith $ac_count + 1 && ac_count=$as_val
4347    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348      # Best one so far, save it but keep looking for a better one
4349      ac_cv_path_GREP="$ac_path_GREP"
4350      ac_path_GREP_max=$ac_count
4351    fi
4352    # 10*(2^10) chars as input seems more than enough
4353    test $ac_count -gt 10 && break
4354  done
4355  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356esac
4357
4358      $ac_path_GREP_found && break 3
4359    done
4360  done
4361  done
4362IFS=$as_save_IFS
4363  if test -z "$ac_cv_path_GREP"; then
4364    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365  fi
4366else
4367  ac_cv_path_GREP=$GREP
4368fi
4369
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4372$as_echo "$ac_cv_path_GREP" >&6; }
4373 GREP="$ac_cv_path_GREP"
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4377$as_echo_n "checking for egrep... " >&6; }
4378if ${ac_cv_path_EGREP+:} false; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4382   then ac_cv_path_EGREP="$GREP -E"
4383   else
4384     if test -z "$EGREP"; then
4385  ac_path_EGREP_found=false
4386  # Loop through the user's path and test for each of PROGNAME-LIST
4387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392    for ac_prog in egrep; do
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4395      as_fn_executable_p "$ac_path_EGREP" || continue
4396# Check for GNU ac_path_EGREP and select it if it is found.
4397  # Check for GNU $ac_path_EGREP
4398case `"$ac_path_EGREP" --version 2>&1` in
4399*GNU*)
4400  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401*)
4402  ac_count=0
4403  $as_echo_n 0123456789 >"conftest.in"
4404  while :
4405  do
4406    cat "conftest.in" "conftest.in" >"conftest.tmp"
4407    mv "conftest.tmp" "conftest.in"
4408    cp "conftest.in" "conftest.nl"
4409    $as_echo 'EGREP' >> "conftest.nl"
4410    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412    as_fn_arith $ac_count + 1 && ac_count=$as_val
4413    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4414      # Best one so far, save it but keep looking for a better one
4415      ac_cv_path_EGREP="$ac_path_EGREP"
4416      ac_path_EGREP_max=$ac_count
4417    fi
4418    # 10*(2^10) chars as input seems more than enough
4419    test $ac_count -gt 10 && break
4420  done
4421  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422esac
4423
4424      $ac_path_EGREP_found && break 3
4425    done
4426  done
4427  done
4428IFS=$as_save_IFS
4429  if test -z "$ac_cv_path_EGREP"; then
4430    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431  fi
4432else
4433  ac_cv_path_EGREP=$EGREP
4434fi
4435
4436   fi
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4439$as_echo "$ac_cv_path_EGREP" >&6; }
4440 EGREP="$ac_cv_path_EGREP"
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4444$as_echo_n "checking for fgrep... " >&6; }
4445if ${ac_cv_path_FGREP+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4449   then ac_cv_path_FGREP="$GREP -F"
4450   else
4451     if test -z "$FGREP"; then
4452  ac_path_FGREP_found=false
4453  # Loop through the user's path and test for each of PROGNAME-LIST
4454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456do
4457  IFS=$as_save_IFS
4458  test -z "$as_dir" && as_dir=.
4459    for ac_prog in fgrep; do
4460    for ac_exec_ext in '' $ac_executable_extensions; do
4461      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4462      as_fn_executable_p "$ac_path_FGREP" || continue
4463# Check for GNU ac_path_FGREP and select it if it is found.
4464  # Check for GNU $ac_path_FGREP
4465case `"$ac_path_FGREP" --version 2>&1` in
4466*GNU*)
4467  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4468*)
4469  ac_count=0
4470  $as_echo_n 0123456789 >"conftest.in"
4471  while :
4472  do
4473    cat "conftest.in" "conftest.in" >"conftest.tmp"
4474    mv "conftest.tmp" "conftest.in"
4475    cp "conftest.in" "conftest.nl"
4476    $as_echo 'FGREP' >> "conftest.nl"
4477    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4481      # Best one so far, save it but keep looking for a better one
4482      ac_cv_path_FGREP="$ac_path_FGREP"
4483      ac_path_FGREP_max=$ac_count
4484    fi
4485    # 10*(2^10) chars as input seems more than enough
4486    test $ac_count -gt 10 && break
4487  done
4488  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489esac
4490
4491      $ac_path_FGREP_found && break 3
4492    done
4493  done
4494  done
4495IFS=$as_save_IFS
4496  if test -z "$ac_cv_path_FGREP"; then
4497    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498  fi
4499else
4500  ac_cv_path_FGREP=$FGREP
4501fi
4502
4503   fi
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4506$as_echo "$ac_cv_path_FGREP" >&6; }
4507 FGREP="$ac_cv_path_FGREP"
4508
4509
4510test -z "$GREP" && GREP=grep
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530# Check whether --with-gnu-ld was given.
4531if test "${with_gnu_ld+set}" = set; then :
4532  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4533else
4534  with_gnu_ld=no
4535fi
4536
4537ac_prog=ld
4538if test yes = "$GCC"; then
4539  # Check if gcc -print-prog-name=ld gives a path.
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4541$as_echo_n "checking for ld used by $CC... " >&6; }
4542  case $host in
4543  *-*-mingw*)
4544    # gcc leaves a trailing carriage return, which upsets mingw
4545    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4546  *)
4547    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4548  esac
4549  case $ac_prog in
4550    # Accept absolute paths.
4551    [\\/]* | ?:[\\/]*)
4552      re_direlt='/[^/][^/]*/\.\./'
4553      # Canonicalize the pathname of ld
4554      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4555      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4556	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4557      done
4558      test -z "$LD" && LD=$ac_prog
4559      ;;
4560  "")
4561    # If it fails, then pretend we aren't using GCC.
4562    ac_prog=ld
4563    ;;
4564  *)
4565    # If it is relative, then search for the first ld in PATH.
4566    with_gnu_ld=unknown
4567    ;;
4568  esac
4569elif test yes = "$with_gnu_ld"; then
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4571$as_echo_n "checking for GNU ld... " >&6; }
4572else
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4574$as_echo_n "checking for non-GNU ld... " >&6; }
4575fi
4576if ${lt_cv_path_LD+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  if test -z "$LD"; then
4580  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4581  for ac_dir in $PATH; do
4582    IFS=$lt_save_ifs
4583    test -z "$ac_dir" && ac_dir=.
4584    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4585      lt_cv_path_LD=$ac_dir/$ac_prog
4586      # Check to see if the program is GNU ld.  I'd rather use --version,
4587      # but apparently some variants of GNU ld only accept -v.
4588      # Break only if it was the GNU/non-GNU ld that we prefer.
4589      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4590      *GNU* | *'with BFD'*)
4591	test no != "$with_gnu_ld" && break
4592	;;
4593      *)
4594	test yes != "$with_gnu_ld" && break
4595	;;
4596      esac
4597    fi
4598  done
4599  IFS=$lt_save_ifs
4600else
4601  lt_cv_path_LD=$LD # Let the user override the test with a path.
4602fi
4603fi
4604
4605LD=$lt_cv_path_LD
4606if test -n "$LD"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4608$as_echo "$LD" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4615$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4616if ${lt_cv_prog_gnu_ld+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4620case `$LD -v 2>&1 </dev/null` in
4621*GNU* | *'with BFD'*)
4622  lt_cv_prog_gnu_ld=yes
4623  ;;
4624*)
4625  lt_cv_prog_gnu_ld=no
4626  ;;
4627esac
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4630$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4631with_gnu_ld=$lt_cv_prog_gnu_ld
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4642$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4643if ${lt_cv_path_NM+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if test -n "$NM"; then
4647  # Let the user override the test.
4648  lt_cv_path_NM=$NM
4649else
4650  lt_nm_to_check=${ac_tool_prefix}nm
4651  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4652    lt_nm_to_check="$lt_nm_to_check nm"
4653  fi
4654  for lt_tmp_nm in $lt_nm_to_check; do
4655    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4656    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4657      IFS=$lt_save_ifs
4658      test -z "$ac_dir" && ac_dir=.
4659      tmp_nm=$ac_dir/$lt_tmp_nm
4660      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4661	# Check to see if the nm accepts a BSD-compat flag.
4662	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4663	#   nm: unknown option "B" ignored
4664	# Tru64's nm complains that /dev/null is an invalid object file
4665	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4666	case $build_os in
4667	mingw*) lt_bad_file=conftest.nm/nofile ;;
4668	*) lt_bad_file=/dev/null ;;
4669	esac
4670	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4671	*$lt_bad_file* | *'Invalid file or object type'*)
4672	  lt_cv_path_NM="$tmp_nm -B"
4673	  break 2
4674	  ;;
4675	*)
4676	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4677	  */dev/null*)
4678	    lt_cv_path_NM="$tmp_nm -p"
4679	    break 2
4680	    ;;
4681	  *)
4682	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4683	    continue # so that we can try to find one that supports BSD flags
4684	    ;;
4685	  esac
4686	  ;;
4687	esac
4688      fi
4689    done
4690    IFS=$lt_save_ifs
4691  done
4692  : ${lt_cv_path_NM=no}
4693fi
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4696$as_echo "$lt_cv_path_NM" >&6; }
4697if test no != "$lt_cv_path_NM"; then
4698  NM=$lt_cv_path_NM
4699else
4700  # Didn't find any BSD compatible name lister, look for dumpbin.
4701  if test -n "$DUMPBIN"; then :
4702    # Let the user override the test.
4703  else
4704    if test -n "$ac_tool_prefix"; then
4705  for ac_prog in dumpbin "link -dump"
4706  do
4707    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
4711if ${ac_cv_prog_DUMPBIN+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  if test -n "$DUMPBIN"; then
4715  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722    for ac_exec_ext in '' $ac_executable_extensions; do
4723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726    break 2
4727  fi
4728done
4729  done
4730IFS=$as_save_IFS
4731
4732fi
4733fi
4734DUMPBIN=$ac_cv_prog_DUMPBIN
4735if test -n "$DUMPBIN"; then
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4737$as_echo "$DUMPBIN" >&6; }
4738else
4739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742
4743
4744    test -n "$DUMPBIN" && break
4745  done
4746fi
4747if test -z "$DUMPBIN"; then
4748  ac_ct_DUMPBIN=$DUMPBIN
4749  for ac_prog in dumpbin "link -dump"
4750do
4751  # Extract the first word of "$ac_prog", so it can be a program name with args.
4752set dummy $ac_prog; ac_word=$2
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754$as_echo_n "checking for $ac_word... " >&6; }
4755if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  if test -n "$ac_ct_DUMPBIN"; then
4759  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764  IFS=$as_save_IFS
4765  test -z "$as_dir" && as_dir=.
4766    for ac_exec_ext in '' $ac_executable_extensions; do
4767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770    break 2
4771  fi
4772done
4773  done
4774IFS=$as_save_IFS
4775
4776fi
4777fi
4778ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779if test -n "$ac_ct_DUMPBIN"; then
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4781$as_echo "$ac_ct_DUMPBIN" >&6; }
4782else
4783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787
4788  test -n "$ac_ct_DUMPBIN" && break
4789done
4790
4791  if test "x$ac_ct_DUMPBIN" = x; then
4792    DUMPBIN=":"
4793  else
4794    case $cross_compiling:$ac_tool_warned in
4795yes:)
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4798ac_tool_warned=yes ;;
4799esac
4800    DUMPBIN=$ac_ct_DUMPBIN
4801  fi
4802fi
4803
4804    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4805    *COFF*)
4806      DUMPBIN="$DUMPBIN -symbols -headers"
4807      ;;
4808    *)
4809      DUMPBIN=:
4810      ;;
4811    esac
4812  fi
4813
4814  if test : != "$DUMPBIN"; then
4815    NM=$DUMPBIN
4816  fi
4817fi
4818test -z "$NM" && NM=nm
4819
4820
4821
4822
4823
4824
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4826$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4827if ${lt_cv_nm_interface+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  lt_cv_nm_interface="BSD nm"
4831  echo "int some_variable = 0;" > conftest.$ac_ext
4832  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4833  (eval "$ac_compile" 2>conftest.err)
4834  cat conftest.err >&5
4835  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4836  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4837  cat conftest.err >&5
4838  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4839  cat conftest.out >&5
4840  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4841    lt_cv_nm_interface="MS dumpbin"
4842  fi
4843  rm -f conftest*
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4846$as_echo "$lt_cv_nm_interface" >&6; }
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4849$as_echo_n "checking whether ln -s works... " >&6; }
4850LN_S=$as_ln_s
4851if test "$LN_S" = "ln -s"; then
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853$as_echo "yes" >&6; }
4854else
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4856$as_echo "no, using $LN_S" >&6; }
4857fi
4858
4859# find the maximum length of command line arguments
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4861$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4862if ${lt_cv_sys_max_cmd_len+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865    i=0
4866  teststring=ABCD
4867
4868  case $build_os in
4869  msdosdjgpp*)
4870    # On DJGPP, this test can blow up pretty badly due to problems in libc
4871    # (any single argument exceeding 2000 bytes causes a buffer overrun
4872    # during glob expansion).  Even if it were fixed, the result of this
4873    # check would be larger than it should be.
4874    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4875    ;;
4876
4877  gnu*)
4878    # Under GNU Hurd, this test is not required because there is
4879    # no limit to the length of command line arguments.
4880    # Libtool will interpret -1 as no limit whatsoever
4881    lt_cv_sys_max_cmd_len=-1;
4882    ;;
4883
4884  cygwin* | mingw* | cegcc*)
4885    # On Win9x/ME, this test blows up -- it succeeds, but takes
4886    # about 5 minutes as the teststring grows exponentially.
4887    # Worse, since 9x/ME are not pre-emptively multitasking,
4888    # you end up with a "frozen" computer, even though with patience
4889    # the test eventually succeeds (with a max line length of 256k).
4890    # Instead, let's just punt: use the minimum linelength reported by
4891    # all of the supported platforms: 8192 (on NT/2K/XP).
4892    lt_cv_sys_max_cmd_len=8192;
4893    ;;
4894
4895  mint*)
4896    # On MiNT this can take a long time and run out of memory.
4897    lt_cv_sys_max_cmd_len=8192;
4898    ;;
4899
4900  amigaos*)
4901    # On AmigaOS with pdksh, this test takes hours, literally.
4902    # So we just punt and use a minimum line length of 8192.
4903    lt_cv_sys_max_cmd_len=8192;
4904    ;;
4905
4906  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4907    # This has been around since 386BSD, at least.  Likely further.
4908    if test -x /sbin/sysctl; then
4909      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4910    elif test -x /usr/sbin/sysctl; then
4911      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4912    else
4913      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4914    fi
4915    # And add a safety zone
4916    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4917    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4918    ;;
4919
4920  interix*)
4921    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4922    lt_cv_sys_max_cmd_len=196608
4923    ;;
4924
4925  os2*)
4926    # The test takes a long time on OS/2.
4927    lt_cv_sys_max_cmd_len=8192
4928    ;;
4929
4930  osf*)
4931    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4932    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4933    # nice to cause kernel panics so lets avoid the loop below.
4934    # First set a reasonable default.
4935    lt_cv_sys_max_cmd_len=16384
4936    #
4937    if test -x /sbin/sysconfig; then
4938      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4939        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4940      esac
4941    fi
4942    ;;
4943  sco3.2v5*)
4944    lt_cv_sys_max_cmd_len=102400
4945    ;;
4946  sysv5* | sco5v6* | sysv4.2uw2*)
4947    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4948    if test -n "$kargmax"; then
4949      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4950    else
4951      lt_cv_sys_max_cmd_len=32768
4952    fi
4953    ;;
4954  *)
4955    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4956    if test -n "$lt_cv_sys_max_cmd_len" && \
4957       test undefined != "$lt_cv_sys_max_cmd_len"; then
4958      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4960    else
4961      # Make teststring a little bigger before we do anything with it.
4962      # a 1K string should be a reasonable start.
4963      for i in 1 2 3 4 5 6 7 8; do
4964        teststring=$teststring$teststring
4965      done
4966      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4967      # If test is not a shell built-in, we'll probably end up computing a
4968      # maximum length that is only half of the actual maximum length, but
4969      # we can't tell.
4970      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4971	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4972	      test 17 != "$i" # 1/2 MB should be enough
4973      do
4974        i=`expr $i + 1`
4975        teststring=$teststring$teststring
4976      done
4977      # Only check the string length outside the loop.
4978      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4979      teststring=
4980      # Add a significant safety factor because C++ compilers can tack on
4981      # massive amounts of additional arguments before passing them to the
4982      # linker.  It appears as though 1/2 is a usable value.
4983      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4984    fi
4985    ;;
4986  esac
4987
4988fi
4989
4990if test -n "$lt_cv_sys_max_cmd_len"; then
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4992$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4993else
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4995$as_echo "none" >&6; }
4996fi
4997max_cmd_len=$lt_cv_sys_max_cmd_len
4998
4999
5000
5001
5002
5003
5004: ${CP="cp -f"}
5005: ${MV="mv -f"}
5006: ${RM="rm -f"}
5007
5008if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5009  lt_unset=unset
5010else
5011  lt_unset=false
5012fi
5013
5014
5015
5016
5017
5018# test EBCDIC or ASCII
5019case `echo X|tr X '\101'` in
5020 A) # ASCII based system
5021    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5022  lt_SP2NL='tr \040 \012'
5023  lt_NL2SP='tr \015\012 \040\040'
5024  ;;
5025 *) # EBCDIC based system
5026  lt_SP2NL='tr \100 \n'
5027  lt_NL2SP='tr \r\n \100\100'
5028  ;;
5029esac
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5040$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5041if ${lt_cv_to_host_file_cmd+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  case $host in
5045  *-*-mingw* )
5046    case $build in
5047      *-*-mingw* ) # actually msys
5048        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5049        ;;
5050      *-*-cygwin* )
5051        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5052        ;;
5053      * ) # otherwise, assume *nix
5054        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5055        ;;
5056    esac
5057    ;;
5058  *-*-cygwin* )
5059    case $build in
5060      *-*-mingw* ) # actually msys
5061        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5062        ;;
5063      *-*-cygwin* )
5064        lt_cv_to_host_file_cmd=func_convert_file_noop
5065        ;;
5066      * ) # otherwise, assume *nix
5067        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5068        ;;
5069    esac
5070    ;;
5071  * ) # unhandled hosts (and "normal" native builds)
5072    lt_cv_to_host_file_cmd=func_convert_file_noop
5073    ;;
5074esac
5075
5076fi
5077
5078to_host_file_cmd=$lt_cv_to_host_file_cmd
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5080$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5081
5082
5083
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5087$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5088if ${lt_cv_to_tool_file_cmd+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  #assume ordinary cross tools, or native build.
5092lt_cv_to_tool_file_cmd=func_convert_file_noop
5093case $host in
5094  *-*-mingw* )
5095    case $build in
5096      *-*-mingw* ) # actually msys
5097        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5098        ;;
5099    esac
5100    ;;
5101esac
5102
5103fi
5104
5105to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5107$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5108
5109
5110
5111
5112
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5114$as_echo_n "checking for $LD option to reload object files... " >&6; }
5115if ${lt_cv_ld_reload_flag+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  lt_cv_ld_reload_flag='-r'
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5121$as_echo "$lt_cv_ld_reload_flag" >&6; }
5122reload_flag=$lt_cv_ld_reload_flag
5123case $reload_flag in
5124"" | " "*) ;;
5125*) reload_flag=" $reload_flag" ;;
5126esac
5127reload_cmds='$LD$reload_flag -o $output$reload_objs'
5128case $host_os in
5129  cygwin* | mingw* | pw32* | cegcc*)
5130    if test yes != "$GCC"; then
5131      reload_cmds=false
5132    fi
5133    ;;
5134  darwin*)
5135    if test yes = "$GCC"; then
5136      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5137    else
5138      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139    fi
5140    ;;
5141esac
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151if test -n "$ac_tool_prefix"; then
5152  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5153set dummy ${ac_tool_prefix}objdump; ac_word=$2
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if ${ac_cv_prog_OBJDUMP+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  if test -n "$OBJDUMP"; then
5160  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167    for ac_exec_ext in '' $ac_executable_extensions; do
5168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174  done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179OBJDUMP=$ac_cv_prog_OBJDUMP
5180if test -n "$OBJDUMP"; then
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5182$as_echo "$OBJDUMP" >&6; }
5183else
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188
5189fi
5190if test -z "$ac_cv_prog_OBJDUMP"; then
5191  ac_ct_OBJDUMP=$OBJDUMP
5192  # Extract the first word of "objdump", so it can be a program name with args.
5193set dummy objdump; ac_word=$2
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  if test -n "$ac_ct_OBJDUMP"; then
5200  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205  IFS=$as_save_IFS
5206  test -z "$as_dir" && as_dir=.
5207    for ac_exec_ext in '' $ac_executable_extensions; do
5208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211    break 2
5212  fi
5213done
5214  done
5215IFS=$as_save_IFS
5216
5217fi
5218fi
5219ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5220if test -n "$ac_ct_OBJDUMP"; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5222$as_echo "$ac_ct_OBJDUMP" >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228  if test "x$ac_ct_OBJDUMP" = x; then
5229    OBJDUMP="false"
5230  else
5231    case $cross_compiling:$ac_tool_warned in
5232yes:)
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235ac_tool_warned=yes ;;
5236esac
5237    OBJDUMP=$ac_ct_OBJDUMP
5238  fi
5239else
5240  OBJDUMP="$ac_cv_prog_OBJDUMP"
5241fi
5242
5243test -z "$OBJDUMP" && OBJDUMP=objdump
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5254$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5255if ${lt_cv_deplibs_check_method+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  lt_cv_file_magic_cmd='$MAGIC_CMD'
5259lt_cv_file_magic_test_file=
5260lt_cv_deplibs_check_method='unknown'
5261# Need to set the preceding variable on all platforms that support
5262# interlibrary dependencies.
5263# 'none' -- dependencies not supported.
5264# 'unknown' -- same as none, but documents that we really don't know.
5265# 'pass_all' -- all dependencies passed with no checks.
5266# 'test_compile' -- check by making test program.
5267# 'file_magic [[regex]]' -- check by looking for files in library path
5268# that responds to the $file_magic_cmd with a given extended regex.
5269# If you have 'file' or equivalent on your system and you're not sure
5270# whether 'pass_all' will *always* work, you probably want this one.
5271
5272case $host_os in
5273aix[4-9]*)
5274  lt_cv_deplibs_check_method=pass_all
5275  ;;
5276
5277beos*)
5278  lt_cv_deplibs_check_method=pass_all
5279  ;;
5280
5281bsdi[45]*)
5282  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5283  lt_cv_file_magic_cmd='/usr/bin/file -L'
5284  lt_cv_file_magic_test_file=/shlib/libc.so
5285  ;;
5286
5287cygwin*)
5288  # func_win32_libid is a shell function defined in ltmain.sh
5289  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5290  lt_cv_file_magic_cmd='func_win32_libid'
5291  ;;
5292
5293mingw* | pw32*)
5294  # Base MSYS/MinGW do not provide the 'file' command needed by
5295  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5296  # unless we find 'file', for example because we are cross-compiling.
5297  if ( file / ) >/dev/null 2>&1; then
5298    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5299    lt_cv_file_magic_cmd='func_win32_libid'
5300  else
5301    # Keep this pattern in sync with the one in func_win32_libid.
5302    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5303    lt_cv_file_magic_cmd='$OBJDUMP -f'
5304  fi
5305  ;;
5306
5307cegcc*)
5308  # use the weaker test based on 'objdump'. See mingw*.
5309  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5310  lt_cv_file_magic_cmd='$OBJDUMP -f'
5311  ;;
5312
5313darwin* | rhapsody*)
5314  lt_cv_deplibs_check_method=pass_all
5315  ;;
5316
5317freebsd* | dragonfly*)
5318  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5319    case $host_cpu in
5320    i*86 )
5321      # Not sure whether the presence of OpenBSD here was a mistake.
5322      # Let's accept both of them until this is cleared up.
5323      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5324      lt_cv_file_magic_cmd=/usr/bin/file
5325      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5326      ;;
5327    esac
5328  else
5329    lt_cv_deplibs_check_method=pass_all
5330  fi
5331  ;;
5332
5333haiku*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337hpux10.20* | hpux11*)
5338  lt_cv_file_magic_cmd=/usr/bin/file
5339  case $host_cpu in
5340  ia64*)
5341    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5342    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5343    ;;
5344  hppa*64*)
5345    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]'
5346    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5347    ;;
5348  *)
5349    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5350    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5351    ;;
5352  esac
5353  ;;
5354
5355interix[3-9]*)
5356  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5357  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5358  ;;
5359
5360irix5* | irix6* | nonstopux*)
5361  case $LD in
5362  *-32|*"-32 ") libmagic=32-bit;;
5363  *-n32|*"-n32 ") libmagic=N32;;
5364  *-64|*"-64 ") libmagic=64-bit;;
5365  *) libmagic=never-match;;
5366  esac
5367  lt_cv_deplibs_check_method=pass_all
5368  ;;
5369
5370# This must be glibc/ELF.
5371linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5372  lt_cv_deplibs_check_method=pass_all
5373  ;;
5374
5375netbsd* | netbsdelf*-gnu)
5376  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5377    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5378  else
5379    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5380  fi
5381  ;;
5382
5383newos6*)
5384  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5385  lt_cv_file_magic_cmd=/usr/bin/file
5386  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5387  ;;
5388
5389*nto* | *qnx*)
5390  lt_cv_deplibs_check_method=pass_all
5391  ;;
5392
5393openbsd* | bitrig*)
5394  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5395    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5396  else
5397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5398  fi
5399  ;;
5400
5401osf3* | osf4* | osf5*)
5402  lt_cv_deplibs_check_method=pass_all
5403  ;;
5404
5405rdos*)
5406  lt_cv_deplibs_check_method=pass_all
5407  ;;
5408
5409solaris*)
5410  lt_cv_deplibs_check_method=pass_all
5411  ;;
5412
5413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5414  lt_cv_deplibs_check_method=pass_all
5415  ;;
5416
5417sysv4 | sysv4.3*)
5418  case $host_vendor in
5419  motorola)
5420    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]'
5421    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5422    ;;
5423  ncr)
5424    lt_cv_deplibs_check_method=pass_all
5425    ;;
5426  sequent)
5427    lt_cv_file_magic_cmd='/bin/file'
5428    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5429    ;;
5430  sni)
5431    lt_cv_file_magic_cmd='/bin/file'
5432    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5433    lt_cv_file_magic_test_file=/lib/libc.so
5434    ;;
5435  siemens)
5436    lt_cv_deplibs_check_method=pass_all
5437    ;;
5438  pc)
5439    lt_cv_deplibs_check_method=pass_all
5440    ;;
5441  esac
5442  ;;
5443
5444tpf*)
5445  lt_cv_deplibs_check_method=pass_all
5446  ;;
5447os2*)
5448  lt_cv_deplibs_check_method=pass_all
5449  ;;
5450esac
5451
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5454$as_echo "$lt_cv_deplibs_check_method" >&6; }
5455
5456file_magic_glob=
5457want_nocaseglob=no
5458if test "$build" = "$host"; then
5459  case $host_os in
5460  mingw* | pw32*)
5461    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5462      want_nocaseglob=yes
5463    else
5464      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5465    fi
5466    ;;
5467  esac
5468fi
5469
5470file_magic_cmd=$lt_cv_file_magic_cmd
5471deplibs_check_method=$lt_cv_deplibs_check_method
5472test -z "$deplibs_check_method" && deplibs_check_method=unknown
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495if test -n "$ac_tool_prefix"; then
5496  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5497set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if ${ac_cv_prog_DLLTOOL+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  if test -n "$DLLTOOL"; then
5504  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509  IFS=$as_save_IFS
5510  test -z "$as_dir" && as_dir=.
5511    for ac_exec_ext in '' $ac_executable_extensions; do
5512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515    break 2
5516  fi
5517done
5518  done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523DLLTOOL=$ac_cv_prog_DLLTOOL
5524if test -n "$DLLTOOL"; then
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5526$as_echo "$DLLTOOL" >&6; }
5527else
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532
5533fi
5534if test -z "$ac_cv_prog_DLLTOOL"; then
5535  ac_ct_DLLTOOL=$DLLTOOL
5536  # Extract the first word of "dlltool", so it can be a program name with args.
5537set dummy dlltool; ac_word=$2
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  if test -n "$ac_ct_DLLTOOL"; then
5544  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551    for ac_exec_ext in '' $ac_executable_extensions; do
5552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555    break 2
5556  fi
5557done
5558  done
5559IFS=$as_save_IFS
5560
5561fi
5562fi
5563ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5564if test -n "$ac_ct_DLLTOOL"; then
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5566$as_echo "$ac_ct_DLLTOOL" >&6; }
5567else
5568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570fi
5571
5572  if test "x$ac_ct_DLLTOOL" = x; then
5573    DLLTOOL="false"
5574  else
5575    case $cross_compiling:$ac_tool_warned in
5576yes:)
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581    DLLTOOL=$ac_ct_DLLTOOL
5582  fi
5583else
5584  DLLTOOL="$ac_cv_prog_DLLTOOL"
5585fi
5586
5587test -z "$DLLTOOL" && DLLTOOL=dlltool
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5599$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5600if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  lt_cv_sharedlib_from_linklib_cmd='unknown'
5604
5605case $host_os in
5606cygwin* | mingw* | pw32* | cegcc*)
5607  # two different shell functions defined in ltmain.sh;
5608  # decide which one to use based on capabilities of $DLLTOOL
5609  case `$DLLTOOL --help 2>&1` in
5610  *--identify-strict*)
5611    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5612    ;;
5613  *)
5614    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5615    ;;
5616  esac
5617  ;;
5618*)
5619  # fallback: assume linklib IS sharedlib
5620  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5621  ;;
5622esac
5623
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5626$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5627sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5628test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5629
5630
5631
5632
5633
5634
5635
5636
5637if test -n "$ac_tool_prefix"; then
5638  for ac_prog in ar
5639  do
5640    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
5644if ${ac_cv_prog_AR+:} false; then :
5645  $as_echo_n "(cached) " >&6
5646else
5647  if test -n "$AR"; then
5648  ac_cv_prog_AR="$AR" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653  IFS=$as_save_IFS
5654  test -z "$as_dir" && as_dir=.
5655    for ac_exec_ext in '' $ac_executable_extensions; do
5656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659    break 2
5660  fi
5661done
5662  done
5663IFS=$as_save_IFS
5664
5665fi
5666fi
5667AR=$ac_cv_prog_AR
5668if test -n "$AR"; then
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5670$as_echo "$AR" >&6; }
5671else
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674fi
5675
5676
5677    test -n "$AR" && break
5678  done
5679fi
5680if test -z "$AR"; then
5681  ac_ct_AR=$AR
5682  for ac_prog in ar
5683do
5684  # Extract the first word of "$ac_prog", so it can be a program name with args.
5685set dummy $ac_prog; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_ac_ct_AR+:} false; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  if test -n "$ac_ct_AR"; then
5692  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697  IFS=$as_save_IFS
5698  test -z "$as_dir" && as_dir=.
5699    for ac_exec_ext in '' $ac_executable_extensions; do
5700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701    ac_cv_prog_ac_ct_AR="$ac_prog"
5702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703    break 2
5704  fi
5705done
5706  done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712if test -n "$ac_ct_AR"; then
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5714$as_echo "$ac_ct_AR" >&6; }
5715else
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721  test -n "$ac_ct_AR" && break
5722done
5723
5724  if test "x$ac_ct_AR" = x; then
5725    AR="false"
5726  else
5727    case $cross_compiling:$ac_tool_warned in
5728yes:)
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731ac_tool_warned=yes ;;
5732esac
5733    AR=$ac_ct_AR
5734  fi
5735fi
5736
5737: ${AR=ar}
5738: ${AR_FLAGS=cru}
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5751$as_echo_n "checking for archiver @FILE support... " >&6; }
5752if ${lt_cv_ar_at_file+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  lt_cv_ar_at_file=no
5756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758
5759int
5760main ()
5761{
5762
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768  echo conftest.$ac_objext > conftest.lst
5769      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5770      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5771  (eval $lt_ar_try) 2>&5
5772  ac_status=$?
5773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774  test $ac_status = 0; }
5775      if test 0 -eq "$ac_status"; then
5776	# Ensure the archiver fails upon bogus file names.
5777	rm -f conftest.$ac_objext libconftest.a
5778	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5779  (eval $lt_ar_try) 2>&5
5780  ac_status=$?
5781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782  test $ac_status = 0; }
5783	if test 0 -ne "$ac_status"; then
5784          lt_cv_ar_at_file=@
5785        fi
5786      fi
5787      rm -f conftest.* libconftest.a
5788
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5794$as_echo "$lt_cv_ar_at_file" >&6; }
5795
5796if test no = "$lt_cv_ar_at_file"; then
5797  archiver_list_spec=
5798else
5799  archiver_list_spec=$lt_cv_ar_at_file
5800fi
5801
5802
5803
5804
5805
5806
5807
5808if test -n "$ac_tool_prefix"; then
5809  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5810set dummy ${ac_tool_prefix}strip; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_STRIP+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  if test -n "$STRIP"; then
5817  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824    for ac_exec_ext in '' $ac_executable_extensions; do
5825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828    break 2
5829  fi
5830done
5831  done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836STRIP=$ac_cv_prog_STRIP
5837if test -n "$STRIP"; then
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5839$as_echo "$STRIP" >&6; }
5840else
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846fi
5847if test -z "$ac_cv_prog_STRIP"; then
5848  ac_ct_STRIP=$STRIP
5849  # Extract the first word of "strip", so it can be a program name with args.
5850set dummy strip; ac_word=$2
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852$as_echo_n "checking for $ac_word... " >&6; }
5853if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  if test -n "$ac_ct_STRIP"; then
5857  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866    ac_cv_prog_ac_ct_STRIP="strip"
5867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874fi
5875fi
5876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5877if test -n "$ac_ct_STRIP"; then
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5879$as_echo "$ac_ct_STRIP" >&6; }
5880else
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882$as_echo "no" >&6; }
5883fi
5884
5885  if test "x$ac_ct_STRIP" = x; then
5886    STRIP=":"
5887  else
5888    case $cross_compiling:$ac_tool_warned in
5889yes:)
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892ac_tool_warned=yes ;;
5893esac
5894    STRIP=$ac_ct_STRIP
5895  fi
5896else
5897  STRIP="$ac_cv_prog_STRIP"
5898fi
5899
5900test -z "$STRIP" && STRIP=:
5901
5902
5903
5904
5905
5906
5907if test -n "$ac_tool_prefix"; then
5908  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if ${ac_cv_prog_RANLIB+:} false; then :
5913  $as_echo_n "(cached) " >&6
5914else
5915  if test -n "$RANLIB"; then
5916  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923    for ac_exec_ext in '' $ac_executable_extensions; do
5924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930  done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935RANLIB=$ac_cv_prog_RANLIB
5936if test -n "$RANLIB"; then
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5938$as_echo "$RANLIB" >&6; }
5939else
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945fi
5946if test -z "$ac_cv_prog_RANLIB"; then
5947  ac_ct_RANLIB=$RANLIB
5948  # Extract the first word of "ranlib", so it can be a program name with args.
5949set dummy ranlib; ac_word=$2
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
5952if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  if test -n "$ac_ct_RANLIB"; then
5956  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961  IFS=$as_save_IFS
5962  test -z "$as_dir" && as_dir=.
5963    for ac_exec_ext in '' $ac_executable_extensions; do
5964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965    ac_cv_prog_ac_ct_RANLIB="ranlib"
5966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967    break 2
5968  fi
5969done
5970  done
5971IFS=$as_save_IFS
5972
5973fi
5974fi
5975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5976if test -n "$ac_ct_RANLIB"; then
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5978$as_echo "$ac_ct_RANLIB" >&6; }
5979else
5980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981$as_echo "no" >&6; }
5982fi
5983
5984  if test "x$ac_ct_RANLIB" = x; then
5985    RANLIB=":"
5986  else
5987    case $cross_compiling:$ac_tool_warned in
5988yes:)
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993    RANLIB=$ac_ct_RANLIB
5994  fi
5995else
5996  RANLIB="$ac_cv_prog_RANLIB"
5997fi
5998
5999test -z "$RANLIB" && RANLIB=:
6000
6001
6002
6003
6004
6005
6006# Determine commands to create old-style static archives.
6007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6008old_postinstall_cmds='chmod 644 $oldlib'
6009old_postuninstall_cmds=
6010
6011if test -n "$RANLIB"; then
6012  case $host_os in
6013  bitrig* | openbsd*)
6014    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6015    ;;
6016  *)
6017    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6018    ;;
6019  esac
6020  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6021fi
6022
6023case $host_os in
6024  darwin*)
6025    lock_old_archive_extraction=yes ;;
6026  *)
6027    lock_old_archive_extraction=no ;;
6028esac
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
6065
6066
6067
6068# If no C compiler was specified, use CC.
6069LTCC=${LTCC-"$CC"}
6070
6071# If no C compiler flags were specified, use CFLAGS.
6072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6073
6074# Allow CC to be a program name with arguments.
6075compiler=$CC
6076
6077
6078# Check for command to grab the raw symbol name followed by C symbol from nm.
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6081if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084
6085# These are sane defaults that work on at least a few old systems.
6086# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6087
6088# Character class describing NM global symbol codes.
6089symcode='[BCDEGRST]'
6090
6091# Regexp to match symbols that can be accessed directly from C.
6092sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6093
6094# Define system-specific variables.
6095case $host_os in
6096aix*)
6097  symcode='[BCDT]'
6098  ;;
6099cygwin* | mingw* | pw32* | cegcc*)
6100  symcode='[ABCDGISTW]'
6101  ;;
6102hpux*)
6103  if test ia64 = "$host_cpu"; then
6104    symcode='[ABCDEGRST]'
6105  fi
6106  ;;
6107irix* | nonstopux*)
6108  symcode='[BCDEGRST]'
6109  ;;
6110osf*)
6111  symcode='[BCDEGQRST]'
6112  ;;
6113solaris*)
6114  symcode='[BDRT]'
6115  ;;
6116sco3.2v5*)
6117  symcode='[DT]'
6118  ;;
6119sysv4.2uw2*)
6120  symcode='[DT]'
6121  ;;
6122sysv5* | sco5v6* | unixware* | OpenUNIX*)
6123  symcode='[ABDT]'
6124  ;;
6125sysv4)
6126  symcode='[DFNSTU]'
6127  ;;
6128esac
6129
6130# If we're using GNU nm, then use its standard symbol codes.
6131case `$NM -V 2>&1` in
6132*GNU* | *'with BFD'*)
6133  symcode='[ABCDGIRSTW]' ;;
6134esac
6135
6136if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6137  # Gets list of data symbols to import.
6138  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6139  # Adjust the below global symbol transforms to fixup imported variables.
6140  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6141  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6142  lt_c_name_lib_hook="\
6143  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6144  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6145else
6146  # Disable hooks by default.
6147  lt_cv_sys_global_symbol_to_import=
6148  lt_cdecl_hook=
6149  lt_c_name_hook=
6150  lt_c_name_lib_hook=
6151fi
6152
6153# Transform an extracted symbol line into a proper C declaration.
6154# Some systems (esp. on ia64) link data and code symbols differently,
6155# so use this general approach.
6156lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6157$lt_cdecl_hook\
6158" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6159" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6160
6161# Transform an extracted symbol line into symbol name and symbol address
6162lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6163$lt_c_name_hook\
6164" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6165" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6166
6167# Transform an extracted symbol line into symbol name with lib prefix and
6168# symbol address.
6169lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6170$lt_c_name_lib_hook\
6171" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6172" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6173" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6174
6175# Handle CRLF in mingw tool chain
6176opt_cr=
6177case $build_os in
6178mingw*)
6179  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6180  ;;
6181esac
6182
6183# Try without a prefix underscore, then with it.
6184for ac_symprfx in "" "_"; do
6185
6186  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6187  symxfrm="\\1 $ac_symprfx\\2 \\2"
6188
6189  # Write the raw and C identifiers.
6190  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6191    # Fake it for dumpbin and say T for any non-static function,
6192    # D for any global variable and I for any imported variable.
6193    # Also find C++ and __fastcall symbols from MSVC++,
6194    # which start with @ or ?.
6195    lt_cv_sys_global_symbol_pipe="$AWK '"\
6196"     {last_section=section; section=\$ 3};"\
6197"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6198"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6199"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6200"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6201"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6202"     \$ 0!~/External *\|/{next};"\
6203"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6204"     {if(hide[section]) next};"\
6205"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6206"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6207"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6208"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6209"     ' prfx=^$ac_symprfx"
6210  else
6211    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6212  fi
6213  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6214
6215  # Check to see that the pipe works correctly.
6216  pipe_works=no
6217
6218  rm -f conftest*
6219  cat > conftest.$ac_ext <<_LT_EOF
6220#ifdef __cplusplus
6221extern "C" {
6222#endif
6223char nm_test_var;
6224void nm_test_func(void);
6225void nm_test_func(void){}
6226#ifdef __cplusplus
6227}
6228#endif
6229int main(){nm_test_var='a';nm_test_func();return(0);}
6230_LT_EOF
6231
6232  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6233  (eval $ac_compile) 2>&5
6234  ac_status=$?
6235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236  test $ac_status = 0; }; then
6237    # Now try to grab the symbols.
6238    nlist=conftest.nm
6239    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6240    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6241      # Try sorting and uniquifying the output.
6242      if sort "$nlist" | uniq > "$nlist"T; then
6243	mv -f "$nlist"T "$nlist"
6244      else
6245	rm -f "$nlist"T
6246      fi
6247
6248      # Make sure that we snagged all the symbols we need.
6249      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6250	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6251	  cat <<_LT_EOF > conftest.$ac_ext
6252/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6253#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6254/* DATA imports from DLLs on WIN32 can't be const, because runtime
6255   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6256# define LT_DLSYM_CONST
6257#elif defined __osf__
6258/* This system does not cope well with relocations in const data.  */
6259# define LT_DLSYM_CONST
6260#else
6261# define LT_DLSYM_CONST const
6262#endif
6263
6264#ifdef __cplusplus
6265extern "C" {
6266#endif
6267
6268_LT_EOF
6269	  # Now generate the symbol file.
6270	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6271
6272	  cat <<_LT_EOF >> conftest.$ac_ext
6273
6274/* The mapping between symbol names and symbols.  */
6275LT_DLSYM_CONST struct {
6276  const char *name;
6277  void       *address;
6278}
6279lt__PROGRAM__LTX_preloaded_symbols[] =
6280{
6281  { "@PROGRAM@", (void *) 0 },
6282_LT_EOF
6283	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6284	  cat <<\_LT_EOF >> conftest.$ac_ext
6285  {0, (void *) 0}
6286};
6287
6288/* This works around a problem in FreeBSD linker */
6289#ifdef FREEBSD_WORKAROUND
6290static const void *lt_preloaded_setup() {
6291  return lt__PROGRAM__LTX_preloaded_symbols;
6292}
6293#endif
6294
6295#ifdef __cplusplus
6296}
6297#endif
6298_LT_EOF
6299	  # Now try linking the two files.
6300	  mv conftest.$ac_objext conftstm.$ac_objext
6301	  lt_globsym_save_LIBS=$LIBS
6302	  lt_globsym_save_CFLAGS=$CFLAGS
6303	  LIBS=conftstm.$ac_objext
6304	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6305	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6306  (eval $ac_link) 2>&5
6307  ac_status=$?
6308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6310	    pipe_works=yes
6311	  fi
6312	  LIBS=$lt_globsym_save_LIBS
6313	  CFLAGS=$lt_globsym_save_CFLAGS
6314	else
6315	  echo "cannot find nm_test_func in $nlist" >&5
6316	fi
6317      else
6318	echo "cannot find nm_test_var in $nlist" >&5
6319      fi
6320    else
6321      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6322    fi
6323  else
6324    echo "$progname: failed program was:" >&5
6325    cat conftest.$ac_ext >&5
6326  fi
6327  rm -rf conftest* conftst*
6328
6329  # Do not use the global_symbol_pipe unless it works.
6330  if test yes = "$pipe_works"; then
6331    break
6332  else
6333    lt_cv_sys_global_symbol_pipe=
6334  fi
6335done
6336
6337fi
6338
6339if test -z "$lt_cv_sys_global_symbol_pipe"; then
6340  lt_cv_sys_global_symbol_to_cdecl=
6341fi
6342if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6344$as_echo "failed" >&6; }
6345else
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6347$as_echo "ok" >&6; }
6348fi
6349
6350# Response file support.
6351if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352  nm_file_list_spec='@'
6353elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6354  nm_file_list_spec='@'
6355fi
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6394$as_echo_n "checking for sysroot... " >&6; }
6395
6396# Check whether --with-sysroot was given.
6397if test "${with_sysroot+set}" = set; then :
6398  withval=$with_sysroot;
6399else
6400  with_sysroot=no
6401fi
6402
6403
6404lt_sysroot=
6405case $with_sysroot in #(
6406 yes)
6407   if test yes = "$GCC"; then
6408     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6409   fi
6410   ;; #(
6411 /*)
6412   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6413   ;; #(
6414 no|'')
6415   ;; #(
6416 *)
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6418$as_echo "$with_sysroot" >&6; }
6419   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6420   ;;
6421esac
6422
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6424$as_echo "${lt_sysroot:-no}" >&6; }
6425
6426
6427
6428
6429
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6431$as_echo_n "checking for a working dd... " >&6; }
6432if ${ac_cv_path_lt_DD+:} false; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  printf 0123456789abcdef0123456789abcdef >conftest.i
6436cat conftest.i conftest.i >conftest2.i
6437: ${lt_DD:=$DD}
6438if test -z "$lt_DD"; then
6439  ac_path_lt_DD_found=false
6440  # Loop through the user's path and test for each of PROGNAME-LIST
6441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_prog in dd; do
6447    for ac_exec_ext in '' $ac_executable_extensions; do
6448      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6449      as_fn_executable_p "$ac_path_lt_DD" || continue
6450if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6451  cmp -s conftest.i conftest.out \
6452  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6453fi
6454      $ac_path_lt_DD_found && break 3
6455    done
6456  done
6457  done
6458IFS=$as_save_IFS
6459  if test -z "$ac_cv_path_lt_DD"; then
6460    :
6461  fi
6462else
6463  ac_cv_path_lt_DD=$lt_DD
6464fi
6465
6466rm -f conftest.i conftest2.i conftest.out
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6469$as_echo "$ac_cv_path_lt_DD" >&6; }
6470
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6473$as_echo_n "checking how to truncate binary pipes... " >&6; }
6474if ${lt_cv_truncate_bin+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  printf 0123456789abcdef0123456789abcdef >conftest.i
6478cat conftest.i conftest.i >conftest2.i
6479lt_cv_truncate_bin=
6480if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6481  cmp -s conftest.i conftest.out \
6482  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6483fi
6484rm -f conftest.i conftest2.i conftest.out
6485test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6488$as_echo "$lt_cv_truncate_bin" >&6; }
6489
6490
6491
6492
6493
6494
6495
6496# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6497func_cc_basename ()
6498{
6499    for cc_temp in $*""; do
6500      case $cc_temp in
6501        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6502        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6503        \-*) ;;
6504        *) break;;
6505      esac
6506    done
6507    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6508}
6509
6510# Check whether --enable-libtool-lock was given.
6511if test "${enable_libtool_lock+set}" = set; then :
6512  enableval=$enable_libtool_lock;
6513fi
6514
6515test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6516
6517# Some flags need to be propagated to the compiler or linker for good
6518# libtool support.
6519case $host in
6520ia64-*-hpux*)
6521  # Find out what ABI is being produced by ac_compile, and set mode
6522  # options accordingly.
6523  echo 'int i;' > conftest.$ac_ext
6524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525  (eval $ac_compile) 2>&5
6526  ac_status=$?
6527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528  test $ac_status = 0; }; then
6529    case `/usr/bin/file conftest.$ac_objext` in
6530      *ELF-32*)
6531	HPUX_IA64_MODE=32
6532	;;
6533      *ELF-64*)
6534	HPUX_IA64_MODE=64
6535	;;
6536    esac
6537  fi
6538  rm -rf conftest*
6539  ;;
6540*-*-irix6*)
6541  # Find out what ABI is being produced by ac_compile, and set linker
6542  # options accordingly.
6543  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6544  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6545  (eval $ac_compile) 2>&5
6546  ac_status=$?
6547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548  test $ac_status = 0; }; then
6549    if test yes = "$lt_cv_prog_gnu_ld"; then
6550      case `/usr/bin/file conftest.$ac_objext` in
6551	*32-bit*)
6552	  LD="${LD-ld} -melf32bsmip"
6553	  ;;
6554	*N32*)
6555	  LD="${LD-ld} -melf32bmipn32"
6556	  ;;
6557	*64-bit*)
6558	  LD="${LD-ld} -melf64bmip"
6559	;;
6560      esac
6561    else
6562      case `/usr/bin/file conftest.$ac_objext` in
6563	*32-bit*)
6564	  LD="${LD-ld} -32"
6565	  ;;
6566	*N32*)
6567	  LD="${LD-ld} -n32"
6568	  ;;
6569	*64-bit*)
6570	  LD="${LD-ld} -64"
6571	  ;;
6572      esac
6573    fi
6574  fi
6575  rm -rf conftest*
6576  ;;
6577
6578mips64*-*linux*)
6579  # Find out what ABI is being produced by ac_compile, and set linker
6580  # options accordingly.
6581  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583  (eval $ac_compile) 2>&5
6584  ac_status=$?
6585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586  test $ac_status = 0; }; then
6587    emul=elf
6588    case `/usr/bin/file conftest.$ac_objext` in
6589      *32-bit*)
6590	emul="${emul}32"
6591	;;
6592      *64-bit*)
6593	emul="${emul}64"
6594	;;
6595    esac
6596    case `/usr/bin/file conftest.$ac_objext` in
6597      *MSB*)
6598	emul="${emul}btsmip"
6599	;;
6600      *LSB*)
6601	emul="${emul}ltsmip"
6602	;;
6603    esac
6604    case `/usr/bin/file conftest.$ac_objext` in
6605      *N32*)
6606	emul="${emul}n32"
6607	;;
6608    esac
6609    LD="${LD-ld} -m $emul"
6610  fi
6611  rm -rf conftest*
6612  ;;
6613
6614x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6616  # Find out what ABI is being produced by ac_compile, and set linker
6617  # options accordingly.  Note that the listed cases only cover the
6618  # situations where additional linker options are needed (such as when
6619  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6620  # vice versa); the common cases where no linker options are needed do
6621  # not appear in the list.
6622  echo 'int i;' > conftest.$ac_ext
6623  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624  (eval $ac_compile) 2>&5
6625  ac_status=$?
6626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627  test $ac_status = 0; }; then
6628    case `/usr/bin/file conftest.o` in
6629      *32-bit*)
6630	case $host in
6631	  x86_64-*kfreebsd*-gnu)
6632	    LD="${LD-ld} -m elf_i386_fbsd"
6633	    ;;
6634	  x86_64-*linux*)
6635	    case `/usr/bin/file conftest.o` in
6636	      *x86-64*)
6637		LD="${LD-ld} -m elf32_x86_64"
6638		;;
6639	      *)
6640		LD="${LD-ld} -m elf_i386"
6641		;;
6642	    esac
6643	    ;;
6644	  powerpc64le-*linux*)
6645	    LD="${LD-ld} -m elf32lppclinux"
6646	    ;;
6647	  powerpc64-*linux*)
6648	    LD="${LD-ld} -m elf32ppclinux"
6649	    ;;
6650	  s390x-*linux*)
6651	    LD="${LD-ld} -m elf_s390"
6652	    ;;
6653	  sparc64-*linux*)
6654	    LD="${LD-ld} -m elf32_sparc"
6655	    ;;
6656	esac
6657	;;
6658      *64-bit*)
6659	case $host in
6660	  x86_64-*kfreebsd*-gnu)
6661	    LD="${LD-ld} -m elf_x86_64_fbsd"
6662	    ;;
6663	  x86_64-*linux*)
6664	    LD="${LD-ld} -m elf_x86_64"
6665	    ;;
6666	  powerpcle-*linux*)
6667	    LD="${LD-ld} -m elf64lppc"
6668	    ;;
6669	  powerpc-*linux*)
6670	    LD="${LD-ld} -m elf64ppc"
6671	    ;;
6672	  s390*-*linux*|s390*-*tpf*)
6673	    LD="${LD-ld} -m elf64_s390"
6674	    ;;
6675	  sparc*-*linux*)
6676	    LD="${LD-ld} -m elf64_sparc"
6677	    ;;
6678	esac
6679	;;
6680    esac
6681  fi
6682  rm -rf conftest*
6683  ;;
6684
6685*-*-sco3.2v5*)
6686  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6687  SAVE_CFLAGS=$CFLAGS
6688  CFLAGS="$CFLAGS -belf"
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6690$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6691if ${lt_cv_cc_needs_belf+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  ac_ext=c
6695ac_cpp='$CPP $CPPFLAGS'
6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699
6700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702
6703int
6704main ()
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"; then :
6712  lt_cv_cc_needs_belf=yes
6713else
6714  lt_cv_cc_needs_belf=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext \
6717    conftest$ac_exeext conftest.$ac_ext
6718     ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6726$as_echo "$lt_cv_cc_needs_belf" >&6; }
6727  if test yes != "$lt_cv_cc_needs_belf"; then
6728    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6729    CFLAGS=$SAVE_CFLAGS
6730  fi
6731  ;;
6732*-*solaris*)
6733  # Find out what ABI is being produced by ac_compile, and set linker
6734  # options accordingly.
6735  echo 'int i;' > conftest.$ac_ext
6736  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737  (eval $ac_compile) 2>&5
6738  ac_status=$?
6739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740  test $ac_status = 0; }; then
6741    case `/usr/bin/file conftest.o` in
6742    *64-bit*)
6743      case $lt_cv_prog_gnu_ld in
6744      yes*)
6745        case $host in
6746        i?86-*-solaris*|x86_64-*-solaris*)
6747          LD="${LD-ld} -m elf_x86_64"
6748          ;;
6749        sparc*-*-solaris*)
6750          LD="${LD-ld} -m elf64_sparc"
6751          ;;
6752        esac
6753        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6754        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6755          LD=${LD-ld}_sol2
6756        fi
6757        ;;
6758      *)
6759	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6760	  LD="${LD-ld} -64"
6761	fi
6762	;;
6763      esac
6764      ;;
6765    esac
6766  fi
6767  rm -rf conftest*
6768  ;;
6769esac
6770
6771need_locks=$enable_libtool_lock
6772
6773if test -n "$ac_tool_prefix"; then
6774  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}mt; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$MANIFEST_TOOL"; then
6782  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6802if test -n "$MANIFEST_TOOL"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6804$as_echo "$MANIFEST_TOOL" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6813  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6814  # Extract the first word of "mt", so it can be a program name with args.
6815set dummy mt; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$ac_ct_MANIFEST_TOOL"; then
6822  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6842if test -n "$ac_ct_MANIFEST_TOOL"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6844$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6851    MANIFEST_TOOL=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6860  fi
6861else
6862  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6863fi
6864
6865test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6867$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6868if ${lt_cv_path_mainfest_tool+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  lt_cv_path_mainfest_tool=no
6872  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6873  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6874  cat conftest.err >&5
6875  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6876    lt_cv_path_mainfest_tool=yes
6877  fi
6878  rm -f conftest*
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6881$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6882if test yes != "$lt_cv_path_mainfest_tool"; then
6883  MANIFEST_TOOL=:
6884fi
6885
6886
6887
6888
6889
6890
6891  case $host_os in
6892    rhapsody* | darwin*)
6893    if test -n "$ac_tool_prefix"; then
6894  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6895set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
6898if ${ac_cv_prog_DSYMUTIL+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  if test -n "$DSYMUTIL"; then
6902  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909    for ac_exec_ext in '' $ac_executable_extensions; do
6910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916  done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921DSYMUTIL=$ac_cv_prog_DSYMUTIL
6922if test -n "$DSYMUTIL"; then
6923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6924$as_echo "$DSYMUTIL" >&6; }
6925else
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
6928fi
6929
6930
6931fi
6932if test -z "$ac_cv_prog_DSYMUTIL"; then
6933  ac_ct_DSYMUTIL=$DSYMUTIL
6934  # Extract the first word of "dsymutil", so it can be a program name with args.
6935set dummy dsymutil; ac_word=$2
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$ac_ct_DSYMUTIL"; then
6942  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949    for ac_exec_ext in '' $ac_executable_extensions; do
6950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956  done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6962if test -n "$ac_ct_DSYMUTIL"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6964$as_echo "$ac_ct_DSYMUTIL" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970  if test "x$ac_ct_DSYMUTIL" = x; then
6971    DSYMUTIL=":"
6972  else
6973    case $cross_compiling:$ac_tool_warned in
6974yes:)
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977ac_tool_warned=yes ;;
6978esac
6979    DSYMUTIL=$ac_ct_DSYMUTIL
6980  fi
6981else
6982  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6983fi
6984
6985    if test -n "$ac_tool_prefix"; then
6986  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_NMEDIT+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$NMEDIT"; then
6994  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013NMEDIT=$ac_cv_prog_NMEDIT
7014if test -n "$NMEDIT"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7016$as_echo "$NMEDIT" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_NMEDIT"; then
7025  ac_ct_NMEDIT=$NMEDIT
7026  # Extract the first word of "nmedit", so it can be a program name with args.
7027set dummy nmedit; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$ac_ct_NMEDIT"; then
7034  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7054if test -n "$ac_ct_NMEDIT"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7056$as_echo "$ac_ct_NMEDIT" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062  if test "x$ac_ct_NMEDIT" = x; then
7063    NMEDIT=":"
7064  else
7065    case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071    NMEDIT=$ac_ct_NMEDIT
7072  fi
7073else
7074  NMEDIT="$ac_cv_prog_NMEDIT"
7075fi
7076
7077    if test -n "$ac_tool_prefix"; then
7078  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}lipo; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
7082if ${ac_cv_prog_LIPO+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  if test -n "$LIPO"; then
7086  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091  IFS=$as_save_IFS
7092  test -z "$as_dir" && as_dir=.
7093    for ac_exec_ext in '' $ac_executable_extensions; do
7094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097    break 2
7098  fi
7099done
7100  done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105LIPO=$ac_cv_prog_LIPO
7106if test -n "$LIPO"; then
7107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7108$as_echo "$LIPO" >&6; }
7109else
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114
7115fi
7116if test -z "$ac_cv_prog_LIPO"; then
7117  ac_ct_LIPO=$LIPO
7118  # Extract the first word of "lipo", so it can be a program name with args.
7119set dummy lipo; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7123  $as_echo_n "(cached) " >&6
7124else
7125  if test -n "$ac_ct_LIPO"; then
7126  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131  IFS=$as_save_IFS
7132  test -z "$as_dir" && as_dir=.
7133    for ac_exec_ext in '' $ac_executable_extensions; do
7134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135    ac_cv_prog_ac_ct_LIPO="lipo"
7136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137    break 2
7138  fi
7139done
7140  done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7146if test -n "$ac_ct_LIPO"; then
7147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7148$as_echo "$ac_ct_LIPO" >&6; }
7149else
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154  if test "x$ac_ct_LIPO" = x; then
7155    LIPO=":"
7156  else
7157    case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163    LIPO=$ac_ct_LIPO
7164  fi
7165else
7166  LIPO="$ac_cv_prog_LIPO"
7167fi
7168
7169    if test -n "$ac_tool_prefix"; then
7170  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7171set dummy ${ac_tool_prefix}otool; ac_word=$2
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
7174if ${ac_cv_prog_OTOOL+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  if test -n "$OTOOL"; then
7178  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183  IFS=$as_save_IFS
7184  test -z "$as_dir" && as_dir=.
7185    for ac_exec_ext in '' $ac_executable_extensions; do
7186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189    break 2
7190  fi
7191done
7192  done
7193IFS=$as_save_IFS
7194
7195fi
7196fi
7197OTOOL=$ac_cv_prog_OTOOL
7198if test -n "$OTOOL"; then
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7200$as_echo "$OTOOL" >&6; }
7201else
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204fi
7205
7206
7207fi
7208if test -z "$ac_cv_prog_OTOOL"; then
7209  ac_ct_OTOOL=$OTOOL
7210  # Extract the first word of "otool", so it can be a program name with args.
7211set dummy otool; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  if test -n "$ac_ct_OTOOL"; then
7218  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227    ac_cv_prog_ac_ct_OTOOL="otool"
7228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7238if test -n "$ac_ct_OTOOL"; then
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7240$as_echo "$ac_ct_OTOOL" >&6; }
7241else
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246  if test "x$ac_ct_OTOOL" = x; then
7247    OTOOL=":"
7248  else
7249    case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255    OTOOL=$ac_ct_OTOOL
7256  fi
7257else
7258  OTOOL="$ac_cv_prog_OTOOL"
7259fi
7260
7261    if test -n "$ac_tool_prefix"; then
7262  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}otool64; ac_word=$2
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265$as_echo_n "checking for $ac_word... " >&6; }
7266if ${ac_cv_prog_OTOOL64+:} false; then :
7267  $as_echo_n "(cached) " >&6
7268else
7269  if test -n "$OTOOL64"; then
7270  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277    for ac_exec_ext in '' $ac_executable_extensions; do
7278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284  done
7285IFS=$as_save_IFS
7286
7287fi
7288fi
7289OTOOL64=$ac_cv_prog_OTOOL64
7290if test -n "$OTOOL64"; then
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7292$as_echo "$OTOOL64" >&6; }
7293else
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
7296fi
7297
7298
7299fi
7300if test -z "$ac_cv_prog_OTOOL64"; then
7301  ac_ct_OTOOL64=$OTOOL64
7302  # Extract the first word of "otool64", so it can be a program name with args.
7303set dummy otool64; ac_word=$2
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  if test -n "$ac_ct_OTOOL64"; then
7310  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315  IFS=$as_save_IFS
7316  test -z "$as_dir" && as_dir=.
7317    for ac_exec_ext in '' $ac_executable_extensions; do
7318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319    ac_cv_prog_ac_ct_OTOOL64="otool64"
7320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321    break 2
7322  fi
7323done
7324  done
7325IFS=$as_save_IFS
7326
7327fi
7328fi
7329ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7330if test -n "$ac_ct_OTOOL64"; then
7331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7332$as_echo "$ac_ct_OTOOL64" >&6; }
7333else
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336fi
7337
7338  if test "x$ac_ct_OTOOL64" = x; then
7339    OTOOL64=":"
7340  else
7341    case $cross_compiling:$ac_tool_warned in
7342yes:)
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345ac_tool_warned=yes ;;
7346esac
7347    OTOOL64=$ac_ct_OTOOL64
7348  fi
7349else
7350  OTOOL64="$ac_cv_prog_OTOOL64"
7351fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7380$as_echo_n "checking for -single_module linker flag... " >&6; }
7381if ${lt_cv_apple_cc_single_mod+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  lt_cv_apple_cc_single_mod=no
7385      if test -z "$LT_MULTI_MODULE"; then
7386	# By default we will add the -single_module flag. You can override
7387	# by either setting the environment variable LT_MULTI_MODULE
7388	# non-empty at configure time, or by adding -multi_module to the
7389	# link flags.
7390	rm -rf libconftest.dylib*
7391	echo "int foo(void){return 1;}" > conftest.c
7392	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393-dynamiclib -Wl,-single_module conftest.c" >&5
7394	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7396        _lt_result=$?
7397	# If there is a non-empty error log, and "single_module"
7398	# appears in it, assume the flag caused a linker warning
7399        if test -s conftest.err && $GREP single_module conftest.err; then
7400	  cat conftest.err >&5
7401	# Otherwise, if the output was created with a 0 exit code from
7402	# the compiler, it worked.
7403	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7404	  lt_cv_apple_cc_single_mod=yes
7405	else
7406	  cat conftest.err >&5
7407	fi
7408	rm -rf libconftest.dylib*
7409	rm -f conftest.*
7410      fi
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7413$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7414
7415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7417if ${lt_cv_ld_exported_symbols_list+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  lt_cv_ld_exported_symbols_list=no
7421      save_LDFLAGS=$LDFLAGS
7422      echo "_main" > conftest.sym
7423      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426
7427int
7428main ()
7429{
7430
7431  ;
7432  return 0;
7433}
7434_ACEOF
7435if ac_fn_c_try_link "$LINENO"; then :
7436  lt_cv_ld_exported_symbols_list=yes
7437else
7438  lt_cv_ld_exported_symbols_list=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext \
7441    conftest$ac_exeext conftest.$ac_ext
7442	LDFLAGS=$save_LDFLAGS
7443
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7446$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7447
7448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7449$as_echo_n "checking for -force_load linker flag... " >&6; }
7450if ${lt_cv_ld_force_load+:} false; then :
7451  $as_echo_n "(cached) " >&6
7452else
7453  lt_cv_ld_force_load=no
7454      cat > conftest.c << _LT_EOF
7455int forced_loaded() { return 2;}
7456_LT_EOF
7457      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7458      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7459      echo "$AR cru libconftest.a conftest.o" >&5
7460      $AR cru libconftest.a conftest.o 2>&5
7461      echo "$RANLIB libconftest.a" >&5
7462      $RANLIB libconftest.a 2>&5
7463      cat > conftest.c << _LT_EOF
7464int main() { return 0;}
7465_LT_EOF
7466      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7467      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7468      _lt_result=$?
7469      if test -s conftest.err && $GREP force_load conftest.err; then
7470	cat conftest.err >&5
7471      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7472	lt_cv_ld_force_load=yes
7473      else
7474	cat conftest.err >&5
7475      fi
7476        rm -f conftest.err libconftest.a conftest conftest.c
7477        rm -rf conftest.dSYM
7478
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7481$as_echo "$lt_cv_ld_force_load" >&6; }
7482    case $host_os in
7483    rhapsody* | darwin1.[012])
7484      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7485    darwin1.*)
7486      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7487    darwin*) # darwin 5.x on
7488      # if running on 10.5 or later, the deployment target defaults
7489      # to the OS version, if on x86, and 10.4, the deployment
7490      # target defaults to 10.4. Don't you love it?
7491      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7492	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7493	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7494	10.[012][,.]*)
7495	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7496	10.*)
7497	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7498      esac
7499    ;;
7500  esac
7501    if test yes = "$lt_cv_apple_cc_single_mod"; then
7502      _lt_dar_single_mod='$single_module'
7503    fi
7504    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7505      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7506    else
7507      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7508    fi
7509    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7510      _lt_dsymutil='~$DSYMUTIL $lib || :'
7511    else
7512      _lt_dsymutil=
7513    fi
7514    ;;
7515  esac
7516
7517# func_munge_path_list VARIABLE PATH
7518# -----------------------------------
7519# VARIABLE is name of variable containing _space_ separated list of
7520# directories to be munged by the contents of PATH, which is string
7521# having a format:
7522# "DIR[:DIR]:"
7523#       string "DIR[ DIR]" will be prepended to VARIABLE
7524# ":DIR[:DIR]"
7525#       string "DIR[ DIR]" will be appended to VARIABLE
7526# "DIRP[:DIRP]::[DIRA:]DIRA"
7527#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7528#       "DIRA[ DIRA]" will be appended to VARIABLE
7529# "DIR[:DIR]"
7530#       VARIABLE will be replaced by "DIR[ DIR]"
7531func_munge_path_list ()
7532{
7533    case x$2 in
7534    x)
7535        ;;
7536    *:)
7537        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7538        ;;
7539    x:*)
7540        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7541        ;;
7542    *::*)
7543        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7544        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7545        ;;
7546    *)
7547        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7548        ;;
7549    esac
7550}
7551
7552ac_ext=c
7553ac_cpp='$CPP $CPPFLAGS'
7554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7558$as_echo_n "checking how to run the C preprocessor... " >&6; }
7559# On Suns, sometimes $CPP names a directory.
7560if test -n "$CPP" && test -d "$CPP"; then
7561  CPP=
7562fi
7563if test -z "$CPP"; then
7564  if ${ac_cv_prog_CPP+:} false; then :
7565  $as_echo_n "(cached) " >&6
7566else
7567      # Double quotes because CPP needs to be expanded
7568    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7569    do
7570      ac_preproc_ok=false
7571for ac_c_preproc_warn_flag in '' yes
7572do
7573  # Use a header file that comes with gcc, so configuring glibc
7574  # with a fresh cross-compiler works.
7575  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7576  # <limits.h> exists even on freestanding compilers.
7577  # On the NeXT, cc -E runs the code through the compiler's parser,
7578  # not just through cpp. "Syntax error" is here to catch this case.
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581#ifdef __STDC__
7582# include <limits.h>
7583#else
7584# include <assert.h>
7585#endif
7586		     Syntax error
7587_ACEOF
7588if ac_fn_c_try_cpp "$LINENO"; then :
7589
7590else
7591  # Broken: fails on valid input.
7592continue
7593fi
7594rm -f conftest.err conftest.i conftest.$ac_ext
7595
7596  # OK, works on sane cases.  Now check whether nonexistent headers
7597  # can be detected and how.
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600#include <ac_nonexistent.h>
7601_ACEOF
7602if ac_fn_c_try_cpp "$LINENO"; then :
7603  # Broken: success on invalid input.
7604continue
7605else
7606  # Passes both tests.
7607ac_preproc_ok=:
7608break
7609fi
7610rm -f conftest.err conftest.i conftest.$ac_ext
7611
7612done
7613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7614rm -f conftest.i conftest.err conftest.$ac_ext
7615if $ac_preproc_ok; then :
7616  break
7617fi
7618
7619    done
7620    ac_cv_prog_CPP=$CPP
7621
7622fi
7623  CPP=$ac_cv_prog_CPP
7624else
7625  ac_cv_prog_CPP=$CPP
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7628$as_echo "$CPP" >&6; }
7629ac_preproc_ok=false
7630for ac_c_preproc_warn_flag in '' yes
7631do
7632  # Use a header file that comes with gcc, so configuring glibc
7633  # with a fresh cross-compiler works.
7634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635  # <limits.h> exists even on freestanding compilers.
7636  # On the NeXT, cc -E runs the code through the compiler's parser,
7637  # not just through cpp. "Syntax error" is here to catch this case.
7638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640#ifdef __STDC__
7641# include <limits.h>
7642#else
7643# include <assert.h>
7644#endif
7645		     Syntax error
7646_ACEOF
7647if ac_fn_c_try_cpp "$LINENO"; then :
7648
7649else
7650  # Broken: fails on valid input.
7651continue
7652fi
7653rm -f conftest.err conftest.i conftest.$ac_ext
7654
7655  # OK, works on sane cases.  Now check whether nonexistent headers
7656  # can be detected and how.
7657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659#include <ac_nonexistent.h>
7660_ACEOF
7661if ac_fn_c_try_cpp "$LINENO"; then :
7662  # Broken: success on invalid input.
7663continue
7664else
7665  # Passes both tests.
7666ac_preproc_ok=:
7667break
7668fi
7669rm -f conftest.err conftest.i conftest.$ac_ext
7670
7671done
7672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7673rm -f conftest.i conftest.err conftest.$ac_ext
7674if $ac_preproc_ok; then :
7675
7676else
7677  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7680See \`config.log' for more details" "$LINENO" 5; }
7681fi
7682
7683ac_ext=c
7684ac_cpp='$CPP $CPPFLAGS'
7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7691$as_echo_n "checking for ANSI C header files... " >&6; }
7692if ${ac_cv_header_stdc+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697#include <stdlib.h>
7698#include <stdarg.h>
7699#include <string.h>
7700#include <float.h>
7701
7702int
7703main ()
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711  ac_cv_header_stdc=yes
7712else
7713  ac_cv_header_stdc=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717if test $ac_cv_header_stdc = yes; then
7718  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721#include <string.h>
7722
7723_ACEOF
7724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725  $EGREP "memchr" >/dev/null 2>&1; then :
7726
7727else
7728  ac_cv_header_stdc=no
7729fi
7730rm -f conftest*
7731
7732fi
7733
7734if test $ac_cv_header_stdc = yes; then
7735  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738#include <stdlib.h>
7739
7740_ACEOF
7741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742  $EGREP "free" >/dev/null 2>&1; then :
7743
7744else
7745  ac_cv_header_stdc=no
7746fi
7747rm -f conftest*
7748
7749fi
7750
7751if test $ac_cv_header_stdc = yes; then
7752  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7753  if test "$cross_compiling" = yes; then :
7754  :
7755else
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758#include <ctype.h>
7759#include <stdlib.h>
7760#if ((' ' & 0x0FF) == 0x020)
7761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7763#else
7764# define ISLOWER(c) \
7765		   (('a' <= (c) && (c) <= 'i') \
7766		     || ('j' <= (c) && (c) <= 'r') \
7767		     || ('s' <= (c) && (c) <= 'z'))
7768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7769#endif
7770
7771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7772int
7773main ()
7774{
7775  int i;
7776  for (i = 0; i < 256; i++)
7777    if (XOR (islower (i), ISLOWER (i))
7778	|| toupper (i) != TOUPPER (i))
7779      return 2;
7780  return 0;
7781}
7782_ACEOF
7783if ac_fn_c_try_run "$LINENO"; then :
7784
7785else
7786  ac_cv_header_stdc=no
7787fi
7788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789  conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791
7792fi
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7795$as_echo "$ac_cv_header_stdc" >&6; }
7796if test $ac_cv_header_stdc = yes; then
7797
7798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7799
7800fi
7801
7802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7804		  inttypes.h stdint.h unistd.h
7805do :
7806  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7808"
7809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7810  cat >>confdefs.h <<_ACEOF
7811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812_ACEOF
7813
7814fi
7815
7816done
7817
7818
7819for ac_header in dlfcn.h
7820do :
7821  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7822"
7823if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7824  cat >>confdefs.h <<_ACEOF
7825#define HAVE_DLFCN_H 1
7826_ACEOF
7827
7828fi
7829
7830done
7831
7832
7833
7834
7835
7836# Set options
7837
7838
7839
7840        enable_dlopen=no
7841
7842
7843  enable_win32_dll=no
7844
7845
7846            # Check whether --enable-shared was given.
7847if test "${enable_shared+set}" = set; then :
7848  enableval=$enable_shared; p=${PACKAGE-default}
7849    case $enableval in
7850    yes) enable_shared=yes ;;
7851    no) enable_shared=no ;;
7852    *)
7853      enable_shared=no
7854      # Look at the argument we got.  We use all the common list separators.
7855      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7856      for pkg in $enableval; do
7857	IFS=$lt_save_ifs
7858	if test "X$pkg" = "X$p"; then
7859	  enable_shared=yes
7860	fi
7861      done
7862      IFS=$lt_save_ifs
7863      ;;
7864    esac
7865else
7866  enable_shared=yes
7867fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879# Check whether --with-pic was given.
7880if test "${with_pic+set}" = set; then :
7881  withval=$with_pic; lt_p=${PACKAGE-default}
7882    case $withval in
7883    yes|no) pic_mode=$withval ;;
7884    *)
7885      pic_mode=default
7886      # Look at the argument we got.  We use all the common list separators.
7887      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7888      for lt_pkg in $withval; do
7889	IFS=$lt_save_ifs
7890	if test "X$lt_pkg" = "X$lt_p"; then
7891	  pic_mode=yes
7892	fi
7893      done
7894      IFS=$lt_save_ifs
7895      ;;
7896    esac
7897else
7898  pic_mode=default
7899fi
7900
7901
7902
7903
7904
7905
7906
7907
7908  # Check whether --enable-fast-install was given.
7909if test "${enable_fast_install+set}" = set; then :
7910  enableval=$enable_fast_install; p=${PACKAGE-default}
7911    case $enableval in
7912    yes) enable_fast_install=yes ;;
7913    no) enable_fast_install=no ;;
7914    *)
7915      enable_fast_install=no
7916      # Look at the argument we got.  We use all the common list separators.
7917      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7918      for pkg in $enableval; do
7919	IFS=$lt_save_ifs
7920	if test "X$pkg" = "X$p"; then
7921	  enable_fast_install=yes
7922	fi
7923      done
7924      IFS=$lt_save_ifs
7925      ;;
7926    esac
7927else
7928  enable_fast_install=yes
7929fi
7930
7931
7932
7933
7934
7935
7936
7937
7938  shared_archive_member_spec=
7939case $host,$enable_shared in
7940power*-*-aix[5-9]*,yes)
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7942$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7943
7944# Check whether --with-aix-soname was given.
7945if test "${with_aix_soname+set}" = set; then :
7946  withval=$with_aix_soname; case $withval in
7947    aix|svr4|both)
7948      ;;
7949    *)
7950      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7951      ;;
7952    esac
7953    lt_cv_with_aix_soname=$with_aix_soname
7954else
7955  if ${lt_cv_with_aix_soname+:} false; then :
7956  $as_echo_n "(cached) " >&6
7957else
7958  lt_cv_with_aix_soname=aix
7959fi
7960
7961    with_aix_soname=$lt_cv_with_aix_soname
7962fi
7963
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7965$as_echo "$with_aix_soname" >&6; }
7966  if test aix != "$with_aix_soname"; then
7967    # For the AIX way of multilib, we name the shared archive member
7968    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7969    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7970    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7971    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7972    if test 64 = "${OBJECT_MODE-32}"; then
7973      shared_archive_member_spec=shr_64
7974    else
7975      shared_archive_member_spec=shr
7976    fi
7977  fi
7978  ;;
7979*)
7980  with_aix_soname=aix
7981  ;;
7982esac
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993# This can be used to rebuild libtool when needed
7994LIBTOOL_DEPS=$ltmain
7995
7996# Always use our own libtool.
7997LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028test -z "$LN_S" && LN_S="ln -s"
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043if test -n "${ZSH_VERSION+set}"; then
8044   setopt NO_GLOB_SUBST
8045fi
8046
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8048$as_echo_n "checking for objdir... " >&6; }
8049if ${lt_cv_objdir+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  rm -f .libs 2>/dev/null
8053mkdir .libs 2>/dev/null
8054if test -d .libs; then
8055  lt_cv_objdir=.libs
8056else
8057  # MS-DOS does not allow filenames that begin with a dot.
8058  lt_cv_objdir=_libs
8059fi
8060rmdir .libs 2>/dev/null
8061fi
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8063$as_echo "$lt_cv_objdir" >&6; }
8064objdir=$lt_cv_objdir
8065
8066
8067
8068
8069
8070cat >>confdefs.h <<_ACEOF
8071#define LT_OBJDIR "$lt_cv_objdir/"
8072_ACEOF
8073
8074
8075
8076
8077case $host_os in
8078aix3*)
8079  # AIX sometimes has problems with the GCC collect2 program.  For some
8080  # reason, if we set the COLLECT_NAMES environment variable, the problems
8081  # vanish in a puff of smoke.
8082  if test set != "${COLLECT_NAMES+set}"; then
8083    COLLECT_NAMES=
8084    export COLLECT_NAMES
8085  fi
8086  ;;
8087esac
8088
8089# Global variables:
8090ofile=libtool
8091can_build_shared=yes
8092
8093# All known linkers require a '.a' archive for static linking (except MSVC,
8094# which needs '.lib').
8095libext=a
8096
8097with_gnu_ld=$lt_cv_prog_gnu_ld
8098
8099old_CC=$CC
8100old_CFLAGS=$CFLAGS
8101
8102# Set sane defaults for various variables
8103test -z "$CC" && CC=cc
8104test -z "$LTCC" && LTCC=$CC
8105test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8106test -z "$LD" && LD=ld
8107test -z "$ac_objext" && ac_objext=o
8108
8109func_cc_basename $compiler
8110cc_basename=$func_cc_basename_result
8111
8112
8113# Only perform the check for file, if the check method requires it
8114test -z "$MAGIC_CMD" && MAGIC_CMD=file
8115case $deplibs_check_method in
8116file_magic*)
8117  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8119$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8120if ${lt_cv_path_MAGIC_CMD+:} false; then :
8121  $as_echo_n "(cached) " >&6
8122else
8123  case $MAGIC_CMD in
8124[\\/*] |  ?:[\\/]*)
8125  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8126  ;;
8127*)
8128  lt_save_MAGIC_CMD=$MAGIC_CMD
8129  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8130  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8131  for ac_dir in $ac_dummy; do
8132    IFS=$lt_save_ifs
8133    test -z "$ac_dir" && ac_dir=.
8134    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8135      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8136      if test -n "$file_magic_test_file"; then
8137	case $deplibs_check_method in
8138	"file_magic "*)
8139	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8140	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8141	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8142	    $EGREP "$file_magic_regex" > /dev/null; then
8143	    :
8144	  else
8145	    cat <<_LT_EOF 1>&2
8146
8147*** Warning: the command libtool uses to detect shared libraries,
8148*** $file_magic_cmd, produces output that libtool cannot recognize.
8149*** The result is that libtool may fail to recognize shared libraries
8150*** as such.  This will affect the creation of libtool libraries that
8151*** depend on shared libraries, but programs linked with such libtool
8152*** libraries will work regardless of this problem.  Nevertheless, you
8153*** may want to report the problem to your system manager and/or to
8154*** bug-libtool@gnu.org
8155
8156_LT_EOF
8157	  fi ;;
8158	esac
8159      fi
8160      break
8161    fi
8162  done
8163  IFS=$lt_save_ifs
8164  MAGIC_CMD=$lt_save_MAGIC_CMD
8165  ;;
8166esac
8167fi
8168
8169MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8170if test -n "$MAGIC_CMD"; then
8171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8172$as_echo "$MAGIC_CMD" >&6; }
8173else
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
8176fi
8177
8178
8179
8180
8181
8182if test -z "$lt_cv_path_MAGIC_CMD"; then
8183  if test -n "$ac_tool_prefix"; then
8184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8185$as_echo_n "checking for file... " >&6; }
8186if ${lt_cv_path_MAGIC_CMD+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  case $MAGIC_CMD in
8190[\\/*] |  ?:[\\/]*)
8191  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8192  ;;
8193*)
8194  lt_save_MAGIC_CMD=$MAGIC_CMD
8195  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8196  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8197  for ac_dir in $ac_dummy; do
8198    IFS=$lt_save_ifs
8199    test -z "$ac_dir" && ac_dir=.
8200    if test -f "$ac_dir/file"; then
8201      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8202      if test -n "$file_magic_test_file"; then
8203	case $deplibs_check_method in
8204	"file_magic "*)
8205	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8206	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8207	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8208	    $EGREP "$file_magic_regex" > /dev/null; then
8209	    :
8210	  else
8211	    cat <<_LT_EOF 1>&2
8212
8213*** Warning: the command libtool uses to detect shared libraries,
8214*** $file_magic_cmd, produces output that libtool cannot recognize.
8215*** The result is that libtool may fail to recognize shared libraries
8216*** as such.  This will affect the creation of libtool libraries that
8217*** depend on shared libraries, but programs linked with such libtool
8218*** libraries will work regardless of this problem.  Nevertheless, you
8219*** may want to report the problem to your system manager and/or to
8220*** bug-libtool@gnu.org
8221
8222_LT_EOF
8223	  fi ;;
8224	esac
8225      fi
8226      break
8227    fi
8228  done
8229  IFS=$lt_save_ifs
8230  MAGIC_CMD=$lt_save_MAGIC_CMD
8231  ;;
8232esac
8233fi
8234
8235MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8236if test -n "$MAGIC_CMD"; then
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8238$as_echo "$MAGIC_CMD" >&6; }
8239else
8240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
8242fi
8243
8244
8245  else
8246    MAGIC_CMD=:
8247  fi
8248fi
8249
8250  fi
8251  ;;
8252esac
8253
8254# Use C for the default configuration in the libtool script
8255
8256lt_save_CC=$CC
8257ac_ext=c
8258ac_cpp='$CPP $CPPFLAGS'
8259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262
8263
8264# Source file extension for C test sources.
8265ac_ext=c
8266
8267# Object file extension for compiled C test sources.
8268objext=o
8269objext=$objext
8270
8271# Code to be used in simple compile tests
8272lt_simple_compile_test_code="int some_variable = 0;"
8273
8274# Code to be used in simple link tests
8275lt_simple_link_test_code='int main(){return(0);}'
8276
8277
8278
8279
8280
8281
8282
8283# If no C compiler was specified, use CC.
8284LTCC=${LTCC-"$CC"}
8285
8286# If no C compiler flags were specified, use CFLAGS.
8287LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8288
8289# Allow CC to be a program name with arguments.
8290compiler=$CC
8291
8292# Save the default compiler, since it gets overwritten when the other
8293# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8294compiler_DEFAULT=$CC
8295
8296# save warnings/boilerplate of simple test code
8297ac_outfile=conftest.$ac_objext
8298echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8299eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8300_lt_compiler_boilerplate=`cat conftest.err`
8301$RM conftest*
8302
8303ac_outfile=conftest.$ac_objext
8304echo "$lt_simple_link_test_code" >conftest.$ac_ext
8305eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306_lt_linker_boilerplate=`cat conftest.err`
8307$RM -r conftest*
8308
8309
8310## CAVEAT EMPTOR:
8311## There is no encapsulation within the following macros, do not change
8312## the running order or otherwise move them around unless you know exactly
8313## what you are doing...
8314if test -n "$compiler"; then
8315
8316lt_prog_compiler_no_builtin_flag=
8317
8318if test yes = "$GCC"; then
8319  case $cc_basename in
8320  nvcc*)
8321    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8322  *)
8323    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8324  esac
8325
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8327$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8328if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  lt_cv_prog_compiler_rtti_exceptions=no
8332   ac_outfile=conftest.$ac_objext
8333   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8335   # Insert the option either (1) after the last *FLAGS variable, or
8336   # (2) before a word containing "conftest.", or (3) at the end.
8337   # Note that $ac_compile itself does not contain backslashes and begins
8338   # with a dollar sign (not a hyphen), so the echo should work correctly.
8339   # The option is referenced via a variable to avoid confusing sed.
8340   lt_compile=`echo "$ac_compile" | $SED \
8341   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343   -e 's:$: $lt_compiler_flag:'`
8344   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8345   (eval "$lt_compile" 2>conftest.err)
8346   ac_status=$?
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   if (exit $ac_status) && test -s "$ac_outfile"; then
8350     # The compiler can only warn and ignore the option if not recognized
8351     # So say no if there are warnings other than the usual output.
8352     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8353     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8354     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8355       lt_cv_prog_compiler_rtti_exceptions=yes
8356     fi
8357   fi
8358   $RM conftest*
8359
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8362$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8363
8364if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8365    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8366else
8367    :
8368fi
8369
8370fi
8371
8372
8373
8374
8375
8376
8377  lt_prog_compiler_wl=
8378lt_prog_compiler_pic=
8379lt_prog_compiler_static=
8380
8381
8382  if test yes = "$GCC"; then
8383    lt_prog_compiler_wl='-Wl,'
8384    lt_prog_compiler_static='-static'
8385
8386    case $host_os in
8387      aix*)
8388      # All AIX code is PIC.
8389      if test ia64 = "$host_cpu"; then
8390	# AIX 5 now supports IA64 processor
8391	lt_prog_compiler_static='-Bstatic'
8392      fi
8393      lt_prog_compiler_pic='-fPIC'
8394      ;;
8395
8396    amigaos*)
8397      case $host_cpu in
8398      powerpc)
8399            # see comment about AmigaOS4 .so support
8400            lt_prog_compiler_pic='-fPIC'
8401        ;;
8402      m68k)
8403            # FIXME: we need at least 68020 code to build shared libraries, but
8404            # adding the '-m68020' flag to GCC prevents building anything better,
8405            # like '-m68040'.
8406            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8407        ;;
8408      esac
8409      ;;
8410
8411    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8412      # PIC is the default for these OSes.
8413      ;;
8414
8415    mingw* | cygwin* | pw32* | os2* | cegcc*)
8416      # This hack is so that the source file can tell whether it is being
8417      # built for inclusion in a dll (and should export symbols for example).
8418      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8419      # (--disable-auto-import) libraries
8420      lt_prog_compiler_pic='-DDLL_EXPORT'
8421      case $host_os in
8422      os2*)
8423	lt_prog_compiler_static='$wl-static'
8424	;;
8425      esac
8426      ;;
8427
8428    darwin* | rhapsody*)
8429      # PIC is the default on this platform
8430      # Common symbols not allowed in MH_DYLIB files
8431      lt_prog_compiler_pic='-fno-common'
8432      ;;
8433
8434    haiku*)
8435      # PIC is the default for Haiku.
8436      # The "-static" flag exists, but is broken.
8437      lt_prog_compiler_static=
8438      ;;
8439
8440    hpux*)
8441      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8442      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8443      # sets the default TLS model and affects inlining.
8444      case $host_cpu in
8445      hppa*64*)
8446	# +Z the default
8447	;;
8448      *)
8449	lt_prog_compiler_pic='-fPIC'
8450	;;
8451      esac
8452      ;;
8453
8454    interix[3-9]*)
8455      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8456      # Instead, we relocate shared libraries at runtime.
8457      ;;
8458
8459    msdosdjgpp*)
8460      # Just because we use GCC doesn't mean we suddenly get shared libraries
8461      # on systems that don't support them.
8462      lt_prog_compiler_can_build_shared=no
8463      enable_shared=no
8464      ;;
8465
8466    *nto* | *qnx*)
8467      # QNX uses GNU C++, but need to define -shared option too, otherwise
8468      # it will coredump.
8469      lt_prog_compiler_pic='-fPIC -shared'
8470      ;;
8471
8472    sysv4*MP*)
8473      if test -d /usr/nec; then
8474	lt_prog_compiler_pic=-Kconform_pic
8475      fi
8476      ;;
8477
8478    *)
8479      lt_prog_compiler_pic='-fPIC'
8480      ;;
8481    esac
8482
8483    case $cc_basename in
8484    nvcc*) # Cuda Compiler Driver 2.2
8485      lt_prog_compiler_wl='-Xlinker '
8486      if test -n "$lt_prog_compiler_pic"; then
8487        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8488      fi
8489      ;;
8490    esac
8491  else
8492    # PORTME Check for flag to pass linker flags through the system compiler.
8493    case $host_os in
8494    aix*)
8495      lt_prog_compiler_wl='-Wl,'
8496      if test ia64 = "$host_cpu"; then
8497	# AIX 5 now supports IA64 processor
8498	lt_prog_compiler_static='-Bstatic'
8499      else
8500	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8501      fi
8502      ;;
8503
8504    darwin* | rhapsody*)
8505      # PIC is the default on this platform
8506      # Common symbols not allowed in MH_DYLIB files
8507      lt_prog_compiler_pic='-fno-common'
8508      case $cc_basename in
8509      nagfor*)
8510        # NAG Fortran compiler
8511        lt_prog_compiler_wl='-Wl,-Wl,,'
8512        lt_prog_compiler_pic='-PIC'
8513        lt_prog_compiler_static='-Bstatic'
8514        ;;
8515      esac
8516      ;;
8517
8518    mingw* | cygwin* | pw32* | os2* | cegcc*)
8519      # This hack is so that the source file can tell whether it is being
8520      # built for inclusion in a dll (and should export symbols for example).
8521      lt_prog_compiler_pic='-DDLL_EXPORT'
8522      case $host_os in
8523      os2*)
8524	lt_prog_compiler_static='$wl-static'
8525	;;
8526      esac
8527      ;;
8528
8529    hpux9* | hpux10* | hpux11*)
8530      lt_prog_compiler_wl='-Wl,'
8531      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8532      # not for PA HP-UX.
8533      case $host_cpu in
8534      hppa*64*|ia64*)
8535	# +Z the default
8536	;;
8537      *)
8538	lt_prog_compiler_pic='+Z'
8539	;;
8540      esac
8541      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8542      lt_prog_compiler_static='$wl-a ${wl}archive'
8543      ;;
8544
8545    irix5* | irix6* | nonstopux*)
8546      lt_prog_compiler_wl='-Wl,'
8547      # PIC (with -KPIC) is the default.
8548      lt_prog_compiler_static='-non_shared'
8549      ;;
8550
8551    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8552      case $cc_basename in
8553      # old Intel for x86_64, which still supported -KPIC.
8554      ecc*)
8555	lt_prog_compiler_wl='-Wl,'
8556	lt_prog_compiler_pic='-KPIC'
8557	lt_prog_compiler_static='-static'
8558        ;;
8559      # flang / f18. f95 an alias for gfortran or flang on Debian
8560      flang* | f18* | f95*)
8561	lt_prog_compiler_wl='-Wl,'
8562	lt_prog_compiler_pic='-fPIC'
8563	lt_prog_compiler_static='-static'
8564        ;;
8565      # icc used to be incompatible with GCC.
8566      # ICC 10 doesn't accept -KPIC any more.
8567      icc* | ifort*)
8568	lt_prog_compiler_wl='-Wl,'
8569	lt_prog_compiler_pic='-fPIC'
8570	lt_prog_compiler_static='-static'
8571        ;;
8572      # Lahey Fortran 8.1.
8573      lf95*)
8574	lt_prog_compiler_wl='-Wl,'
8575	lt_prog_compiler_pic='--shared'
8576	lt_prog_compiler_static='--static'
8577	;;
8578      nagfor*)
8579	# NAG Fortran compiler
8580	lt_prog_compiler_wl='-Wl,-Wl,,'
8581	lt_prog_compiler_pic='-PIC'
8582	lt_prog_compiler_static='-Bstatic'
8583	;;
8584      tcc*)
8585	# Fabrice Bellard et al's Tiny C Compiler
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='-fPIC'
8588	lt_prog_compiler_static='-static'
8589	;;
8590      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8591        # Portland Group compilers (*not* the Pentium gcc compiler,
8592	# which looks to be a dead project)
8593	lt_prog_compiler_wl='-Wl,'
8594	lt_prog_compiler_pic='-fpic'
8595	lt_prog_compiler_static='-Bstatic'
8596        ;;
8597      ccc*)
8598        lt_prog_compiler_wl='-Wl,'
8599        # All Alpha code is PIC.
8600        lt_prog_compiler_static='-non_shared'
8601        ;;
8602      xl* | bgxl* | bgf* | mpixl*)
8603	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-qpic'
8606	lt_prog_compiler_static='-qstaticlink'
8607	;;
8608      *)
8609	case `$CC -V 2>&1 | sed 5q` in
8610	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8611	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8612	  lt_prog_compiler_pic='-KPIC'
8613	  lt_prog_compiler_static='-Bstatic'
8614	  lt_prog_compiler_wl=''
8615	  ;;
8616	*Sun\ F* | *Sun*Fortran*)
8617	  lt_prog_compiler_pic='-KPIC'
8618	  lt_prog_compiler_static='-Bstatic'
8619	  lt_prog_compiler_wl='-Qoption ld '
8620	  ;;
8621	*Sun\ C*)
8622	  # Sun C 5.9
8623	  lt_prog_compiler_pic='-KPIC'
8624	  lt_prog_compiler_static='-Bstatic'
8625	  lt_prog_compiler_wl='-Wl,'
8626	  ;;
8627        *Intel*\ [CF]*Compiler*)
8628	  lt_prog_compiler_wl='-Wl,'
8629	  lt_prog_compiler_pic='-fPIC'
8630	  lt_prog_compiler_static='-static'
8631	  ;;
8632	*Portland\ Group*)
8633	  lt_prog_compiler_wl='-Wl,'
8634	  lt_prog_compiler_pic='-fpic'
8635	  lt_prog_compiler_static='-Bstatic'
8636	  ;;
8637	esac
8638	;;
8639      esac
8640      ;;
8641
8642    newsos6)
8643      lt_prog_compiler_pic='-KPIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    *nto* | *qnx*)
8648      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649      # it will coredump.
8650      lt_prog_compiler_pic='-fPIC -shared'
8651      ;;
8652
8653    osf3* | osf4* | osf5*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # All OSF/1 code is PIC.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    rdos*)
8660      lt_prog_compiler_static='-non_shared'
8661      ;;
8662
8663    solaris*)
8664      lt_prog_compiler_pic='-KPIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      case $cc_basename in
8667      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8668	lt_prog_compiler_wl='-Qoption ld ';;
8669      *)
8670	lt_prog_compiler_wl='-Wl,';;
8671      esac
8672      ;;
8673
8674    sunos4*)
8675      lt_prog_compiler_wl='-Qoption ld '
8676      lt_prog_compiler_pic='-PIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      ;;
8679
8680    sysv4 | sysv4.2uw2* | sysv4.3*)
8681      lt_prog_compiler_wl='-Wl,'
8682      lt_prog_compiler_pic='-KPIC'
8683      lt_prog_compiler_static='-Bstatic'
8684      ;;
8685
8686    sysv4*MP*)
8687      if test -d /usr/nec; then
8688	lt_prog_compiler_pic='-Kconform_pic'
8689	lt_prog_compiler_static='-Bstatic'
8690      fi
8691      ;;
8692
8693    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8694      lt_prog_compiler_wl='-Wl,'
8695      lt_prog_compiler_pic='-KPIC'
8696      lt_prog_compiler_static='-Bstatic'
8697      ;;
8698
8699    unicos*)
8700      lt_prog_compiler_wl='-Wl,'
8701      lt_prog_compiler_can_build_shared=no
8702      ;;
8703
8704    uts4*)
8705      lt_prog_compiler_pic='-pic'
8706      lt_prog_compiler_static='-Bstatic'
8707      ;;
8708
8709    *)
8710      lt_prog_compiler_can_build_shared=no
8711      ;;
8712    esac
8713  fi
8714
8715case $host_os in
8716  # For platforms that do not support PIC, -DPIC is meaningless:
8717  *djgpp*)
8718    lt_prog_compiler_pic=
8719    ;;
8720  *)
8721    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722    ;;
8723esac
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8726$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8727if ${lt_cv_prog_compiler_pic+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8733$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8734lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8735
8736#
8737# Check to make sure the PIC flag actually works.
8738#
8739if test -n "$lt_prog_compiler_pic"; then
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742if ${lt_cv_prog_compiler_pic_works+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  lt_cv_prog_compiler_pic_works=no
8746   ac_outfile=conftest.$ac_objext
8747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8749   # Insert the option either (1) after the last *FLAGS variable, or
8750   # (2) before a word containing "conftest.", or (3) at the end.
8751   # Note that $ac_compile itself does not contain backslashes and begins
8752   # with a dollar sign (not a hyphen), so the echo should work correctly.
8753   # The option is referenced via a variable to avoid confusing sed.
8754   lt_compile=`echo "$ac_compile" | $SED \
8755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757   -e 's:$: $lt_compiler_flag:'`
8758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759   (eval "$lt_compile" 2>conftest.err)
8760   ac_status=$?
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   if (exit $ac_status) && test -s "$ac_outfile"; then
8764     # The compiler can only warn and ignore the option if not recognized
8765     # So say no if there are warnings other than the usual output.
8766     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8767     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8769       lt_cv_prog_compiler_pic_works=yes
8770     fi
8771   fi
8772   $RM conftest*
8773
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777
8778if test yes = "$lt_cv_prog_compiler_pic_works"; then
8779    case $lt_prog_compiler_pic in
8780     "" | " "*) ;;
8781     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8782     esac
8783else
8784    lt_prog_compiler_pic=
8785     lt_prog_compiler_can_build_shared=no
8786fi
8787
8788fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800#
8801# Check to make sure the static flag actually works.
8802#
8803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8805$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8806if ${lt_cv_prog_compiler_static_works+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_prog_compiler_static_works=no
8810   save_LDFLAGS=$LDFLAGS
8811   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8812   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8813   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8814     # The linker can only warn and ignore the option if not recognized
8815     # So say no if there are warnings
8816     if test -s conftest.err; then
8817       # Append any errors to the config.log.
8818       cat conftest.err 1>&5
8819       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8820       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821       if diff conftest.exp conftest.er2 >/dev/null; then
8822         lt_cv_prog_compiler_static_works=yes
8823       fi
8824     else
8825       lt_cv_prog_compiler_static_works=yes
8826     fi
8827   fi
8828   $RM -r conftest*
8829   LDFLAGS=$save_LDFLAGS
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8833$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8834
8835if test yes = "$lt_cv_prog_compiler_static_works"; then
8836    :
8837else
8838    lt_prog_compiler_static=
8839fi
8840
8841
8842
8843
8844
8845
8846
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8849if ${lt_cv_prog_compiler_c_o+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  lt_cv_prog_compiler_c_o=no
8853   $RM -r conftest 2>/dev/null
8854   mkdir conftest
8855   cd conftest
8856   mkdir out
8857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858
8859   lt_compiler_flag="-o out/conftest2.$ac_objext"
8860   # Insert the option either (1) after the last *FLAGS variable, or
8861   # (2) before a word containing "conftest.", or (3) at the end.
8862   # Note that $ac_compile itself does not contain backslashes and begins
8863   # with a dollar sign (not a hyphen), so the echo should work correctly.
8864   lt_compile=`echo "$ac_compile" | $SED \
8865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867   -e 's:$: $lt_compiler_flag:'`
8868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869   (eval "$lt_compile" 2>out/conftest.err)
8870   ac_status=$?
8871   cat out/conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874   then
8875     # The compiler can only warn and ignore the option if not recognized
8876     # So say no if there are warnings
8877     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8880       lt_cv_prog_compiler_c_o=yes
8881     fi
8882   fi
8883   chmod u+w . 2>&5
8884   $RM conftest*
8885   # SGI C++ compiler will create directory out/ii_files/ for
8886   # template instantiation
8887   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8888   $RM out/* && rmdir out
8889   cd ..
8890   $RM -r conftest
8891   $RM conftest*
8892
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8896
8897
8898
8899
8900
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8904if ${lt_cv_prog_compiler_c_o+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  lt_cv_prog_compiler_c_o=no
8908   $RM -r conftest 2>/dev/null
8909   mkdir conftest
8910   cd conftest
8911   mkdir out
8912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913
8914   lt_compiler_flag="-o out/conftest2.$ac_objext"
8915   # Insert the option either (1) after the last *FLAGS variable, or
8916   # (2) before a word containing "conftest.", or (3) at the end.
8917   # Note that $ac_compile itself does not contain backslashes and begins
8918   # with a dollar sign (not a hyphen), so the echo should work correctly.
8919   lt_compile=`echo "$ac_compile" | $SED \
8920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922   -e 's:$: $lt_compiler_flag:'`
8923   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924   (eval "$lt_compile" 2>out/conftest.err)
8925   ac_status=$?
8926   cat out/conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8929   then
8930     # The compiler can only warn and ignore the option if not recognized
8931     # So say no if there are warnings
8932     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935       lt_cv_prog_compiler_c_o=yes
8936     fi
8937   fi
8938   chmod u+w . 2>&5
8939   $RM conftest*
8940   # SGI C++ compiler will create directory out/ii_files/ for
8941   # template instantiation
8942   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943   $RM out/* && rmdir out
8944   cd ..
8945   $RM -r conftest
8946   $RM conftest*
8947
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951
8952
8953
8954
8955hard_links=nottested
8956if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8957  # do not overwrite the value of need_locks provided by the user
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8959$as_echo_n "checking if we can lock with hard links... " >&6; }
8960  hard_links=yes
8961  $RM conftest*
8962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8963  touch conftest.a
8964  ln conftest.a conftest.b 2>&5 || hard_links=no
8965  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8967$as_echo "$hard_links" >&6; }
8968  if test no = "$hard_links"; then
8969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8970$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8971    need_locks=warn
8972  fi
8973else
8974  need_locks=no
8975fi
8976
8977
8978
8979
8980
8981
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8984
8985  runpath_var=
8986  allow_undefined_flag=
8987  always_export_symbols=no
8988  archive_cmds=
8989  archive_expsym_cmds=
8990  compiler_needs_object=no
8991  enable_shared_with_static_runtimes=no
8992  export_dynamic_flag_spec=
8993  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8994  hardcode_automatic=no
8995  hardcode_direct=no
8996  hardcode_direct_absolute=no
8997  hardcode_libdir_flag_spec=
8998  hardcode_libdir_separator=
8999  hardcode_minus_L=no
9000  hardcode_shlibpath_var=unsupported
9001  inherit_rpath=no
9002  link_all_deplibs=unknown
9003  module_cmds=
9004  module_expsym_cmds=
9005  old_archive_from_new_cmds=
9006  old_archive_from_expsyms_cmds=
9007  thread_safe_flag_spec=
9008  whole_archive_flag_spec=
9009  # include_expsyms should be a list of space-separated symbols to be *always*
9010  # included in the symbol list
9011  include_expsyms=
9012  # exclude_expsyms can be an extended regexp of symbols to exclude
9013  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9014  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9015  # as well as any symbol that contains 'd'.
9016  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018  # platforms (ab)use it in PIC code, but their linkers get confused if
9019  # the symbol is explicitly referenced.  Since portable code cannot
9020  # rely on this symbol name, it's probably fine to never include it in
9021  # preloaded symbol tables.
9022  # Exclude shared library initialization/finalization symbols.
9023  extract_expsyms_cmds=
9024
9025  case $host_os in
9026  cygwin* | mingw* | pw32* | cegcc*)
9027    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028    # When not using gcc, we currently assume that we are using
9029    # Microsoft Visual C++.
9030    if test yes != "$GCC"; then
9031      with_gnu_ld=no
9032    fi
9033    ;;
9034  interix*)
9035    # we just hope/assume this is gcc and not c89 (= MSVC++)
9036    with_gnu_ld=yes
9037    ;;
9038  openbsd* | bitrig*)
9039    with_gnu_ld=no
9040    ;;
9041  linux* | k*bsd*-gnu | gnu*)
9042    link_all_deplibs=no
9043    ;;
9044  esac
9045
9046  ld_shlibs=yes
9047
9048  # On some targets, GNU ld is compatible enough with the native linker
9049  # that we're better off using the native interface for both.
9050  lt_use_gnu_ld_interface=no
9051  if test yes = "$with_gnu_ld"; then
9052    case $host_os in
9053      aix*)
9054	# The AIX port of GNU ld has always aspired to compatibility
9055	# with the native linker.  However, as the warning in the GNU ld
9056	# block says, versions before 2.19.5* couldn't really create working
9057	# shared libraries, regardless of the interface used.
9058	case `$LD -v 2>&1` in
9059	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9060	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9061	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9062	  *)
9063	    lt_use_gnu_ld_interface=yes
9064	    ;;
9065	esac
9066	;;
9067      *)
9068	lt_use_gnu_ld_interface=yes
9069	;;
9070    esac
9071  fi
9072
9073  if test yes = "$lt_use_gnu_ld_interface"; then
9074    # If archive_cmds runs LD, not CC, wlarc should be empty
9075    wlarc='$wl'
9076
9077    # Set some defaults for GNU ld with shared library support. These
9078    # are reset later if shared libraries are not supported. Putting them
9079    # here allows them to be overridden if necessary.
9080    runpath_var=LD_RUN_PATH
9081    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9082    export_dynamic_flag_spec='$wl--export-dynamic'
9083    # ancient GNU ld didn't support --whole-archive et. al.
9084    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9085      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9086    else
9087      whole_archive_flag_spec=
9088    fi
9089    supports_anon_versioning=no
9090    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9091      *GNU\ gold*) supports_anon_versioning=yes ;;
9092      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9093      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9094      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9095      *\ 2.11.*) ;; # other 2.11 versions
9096      *) supports_anon_versioning=yes ;;
9097    esac
9098
9099    # See if GNU ld supports shared libraries.
9100    case $host_os in
9101    aix[3-9]*)
9102      # On AIX/PPC, the GNU linker is very broken
9103      if test ia64 != "$host_cpu"; then
9104	ld_shlibs=no
9105	cat <<_LT_EOF 1>&2
9106
9107*** Warning: the GNU linker, at least up to release 2.19, is reported
9108*** to be unable to reliably create shared libraries on AIX.
9109*** Therefore, libtool is disabling shared libraries support.  If you
9110*** really care for shared libraries, you may want to install binutils
9111*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9112*** You will then need to restart the configuration process.
9113
9114_LT_EOF
9115      fi
9116      ;;
9117
9118    amigaos*)
9119      case $host_cpu in
9120      powerpc)
9121            # see comment about AmigaOS4 .so support
9122            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9123            archive_expsym_cmds=''
9124        ;;
9125      m68k)
9126            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)'
9127            hardcode_libdir_flag_spec='-L$libdir'
9128            hardcode_minus_L=yes
9129        ;;
9130      esac
9131      ;;
9132
9133    beos*)
9134      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135	allow_undefined_flag=unsupported
9136	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9137	# support --undefined.  This deserves some investigation.  FIXME
9138	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9139      else
9140	ld_shlibs=no
9141      fi
9142      ;;
9143
9144    cygwin* | mingw* | pw32* | cegcc*)
9145      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9146      # as there is no search path for DLLs.
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      export_dynamic_flag_spec='$wl--export-all-symbols'
9149      allow_undefined_flag=unsupported
9150      always_export_symbols=no
9151      enable_shared_with_static_runtimes=yes
9152      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'
9153      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9154
9155      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9156        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9157	# If the export-symbols file already is a .def file, use it as
9158	# is; otherwise, prepend EXPORTS...
9159	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9160          cp $export_symbols $output_objdir/$soname.def;
9161        else
9162          echo EXPORTS > $output_objdir/$soname.def;
9163          cat $export_symbols >> $output_objdir/$soname.def;
9164        fi~
9165        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9166      else
9167	ld_shlibs=no
9168      fi
9169      ;;
9170
9171    haiku*)
9172      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9173      link_all_deplibs=yes
9174      ;;
9175
9176    os2*)
9177      hardcode_libdir_flag_spec='-L$libdir'
9178      hardcode_minus_L=yes
9179      allow_undefined_flag=unsupported
9180      shrext_cmds=.dll
9181      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9182	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9183	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9184	$ECHO EXPORTS >> $output_objdir/$libname.def~
9185	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9186	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9187	emximp -o $lib $output_objdir/$libname.def'
9188      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9189	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9190	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9191	$ECHO EXPORTS >> $output_objdir/$libname.def~
9192	prefix_cmds="$SED"~
9193	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9194	  prefix_cmds="$prefix_cmds -e 1d";
9195	fi~
9196	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9197	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9198	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9199	emximp -o $lib $output_objdir/$libname.def'
9200      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9201      enable_shared_with_static_runtimes=yes
9202      ;;
9203
9204    interix[3-9]*)
9205      hardcode_direct=no
9206      hardcode_shlibpath_var=no
9207      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9208      export_dynamic_flag_spec='$wl-E'
9209      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9210      # Instead, shared libraries are loaded at an image base (0x10000000 by
9211      # default) and relocated if they conflict, which is a slow very memory
9212      # consuming and fragmenting process.  To avoid this, we pick a random,
9213      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9214      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9215      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9216      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'
9217      ;;
9218
9219    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9220      tmp_diet=no
9221      if test linux-dietlibc = "$host_os"; then
9222	case $cc_basename in
9223	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9224	esac
9225      fi
9226      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9227	 && test no = "$tmp_diet"
9228      then
9229	tmp_addflag=' $pic_flag'
9230	tmp_sharedflag='-shared'
9231	case $cc_basename,$host_cpu in
9232        pgcc*)				# Portland Group C compiler
9233	  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'
9234	  tmp_addflag=' $pic_flag'
9235	  ;;
9236	pgf77* | pgf90* | pgf95* | pgfortran*)
9237					# Portland Group f77 and f90 compilers
9238	  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'
9239	  tmp_addflag=' $pic_flag -Mnomain' ;;
9240	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9241	  tmp_addflag=' -i_dynamic' ;;
9242	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9243	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9244	ifc* | ifort*)			# Intel Fortran compiler
9245	  tmp_addflag=' -nofor_main' ;;
9246	lf95*)				# Lahey Fortran 8.1
9247	  whole_archive_flag_spec=
9248	  tmp_sharedflag='--shared' ;;
9249        nagfor*)                        # NAGFOR 5.3
9250          tmp_sharedflag='-Wl,-shared' ;;
9251	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9252	  tmp_sharedflag='-qmkshrobj'
9253	  tmp_addflag= ;;
9254	nvcc*)	# Cuda Compiler Driver 2.2
9255	  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'
9256	  compiler_needs_object=yes
9257	  ;;
9258	esac
9259	case `$CC -V 2>&1 | sed 5q` in
9260	*Sun\ C*)			# Sun C 5.9
9261	  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'
9262	  compiler_needs_object=yes
9263	  tmp_sharedflag='-G' ;;
9264	*Sun\ F*)			# Sun Fortran 8.3
9265	  tmp_sharedflag='-G' ;;
9266	esac
9267	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9268
9269        if test yes = "$supports_anon_versioning"; then
9270          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9271            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9272            echo "local: *; };" >> $output_objdir/$libname.ver~
9273            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9274        fi
9275
9276	case $cc_basename in
9277	tcc*)
9278	  export_dynamic_flag_spec='-rdynamic'
9279	  ;;
9280	xlf* | bgf* | bgxlf* | mpixlf*)
9281	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9282	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9283	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9284	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9285	  if test yes = "$supports_anon_versioning"; then
9286	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9287              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9288              echo "local: *; };" >> $output_objdir/$libname.ver~
9289              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9290	  fi
9291	  ;;
9292	esac
9293      else
9294        ld_shlibs=no
9295      fi
9296      ;;
9297
9298    netbsd* | netbsdelf*-gnu)
9299      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9300	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9301	wlarc=
9302      else
9303	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9304	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9305      fi
9306      ;;
9307
9308    solaris*)
9309      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9310	ld_shlibs=no
9311	cat <<_LT_EOF 1>&2
9312
9313*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9314*** create shared libraries on Solaris systems.  Therefore, libtool
9315*** is disabling shared libraries support.  We urge you to upgrade GNU
9316*** binutils to release 2.9.1 or newer.  Another option is to modify
9317*** your PATH or compiler configuration so that the native linker is
9318*** used, and then restart.
9319
9320_LT_EOF
9321      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9323	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9324      else
9325	ld_shlibs=no
9326      fi
9327      ;;
9328
9329    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9330      case `$LD -v 2>&1` in
9331        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9332	ld_shlibs=no
9333	cat <<_LT_EOF 1>&2
9334
9335*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9336*** reliably create shared libraries on SCO systems.  Therefore, libtool
9337*** is disabling shared libraries support.  We urge you to upgrade GNU
9338*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9339*** your PATH or compiler configuration so that the native linker is
9340*** used, and then restart.
9341
9342_LT_EOF
9343	;;
9344	*)
9345	  # For security reasons, it is highly recommended that you always
9346	  # use absolute paths for naming shared libraries, and exclude the
9347	  # DT_RUNPATH tag from executables and libraries.  But doing so
9348	  # requires that you compile everything twice, which is a pain.
9349	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9350	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9351	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9353	  else
9354	    ld_shlibs=no
9355	  fi
9356	;;
9357      esac
9358      ;;
9359
9360    sunos4*)
9361      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9362      wlarc=
9363      hardcode_direct=yes
9364      hardcode_shlibpath_var=no
9365      ;;
9366
9367    *)
9368      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9370	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9371      else
9372	ld_shlibs=no
9373      fi
9374      ;;
9375    esac
9376
9377    if test no = "$ld_shlibs"; then
9378      runpath_var=
9379      hardcode_libdir_flag_spec=
9380      export_dynamic_flag_spec=
9381      whole_archive_flag_spec=
9382    fi
9383  else
9384    # PORTME fill in a description of your system's linker (not GNU ld)
9385    case $host_os in
9386    aix3*)
9387      allow_undefined_flag=unsupported
9388      always_export_symbols=yes
9389      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'
9390      # Note: this linker hardcodes the directories in LIBPATH if there
9391      # are no directories specified by -L.
9392      hardcode_minus_L=yes
9393      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9394	# Neither direct hardcoding nor static linking is supported with a
9395	# broken collect2.
9396	hardcode_direct=unsupported
9397      fi
9398      ;;
9399
9400    aix[4-9]*)
9401      if test ia64 = "$host_cpu"; then
9402	# On IA64, the linker does run time linking by default, so we don't
9403	# have to do anything special.
9404	aix_use_runtimelinking=no
9405	exp_sym_flag='-Bexport'
9406	no_entry_flag=
9407      else
9408	# If we're using GNU nm, then we don't want the "-C" option.
9409	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9410	# Without the "-l" option, or with the "-B" option, AIX nm treats
9411	# weak defined symbols like other global defined symbols, whereas
9412	# GNU nm marks them as "W".
9413	# While the 'weak' keyword is ignored in the Export File, we need
9414	# it in the Import File for the 'aix-soname' feature, so we have
9415	# to replace the "-B" option with "-P" for AIX nm.
9416	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9417	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9418	else
9419	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9420	fi
9421	aix_use_runtimelinking=no
9422
9423	# Test if we are trying to use run time linking or normal
9424	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9425	# have runtime linking enabled, and use it for executables.
9426	# For shared libraries, we enable/disable runtime linking
9427	# depending on the kind of the shared library created -
9428	# when "with_aix_soname,aix_use_runtimelinking" is:
9429	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9430	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9431	#            lib.a           static archive
9432	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9433	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9434	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9435	#            lib.a(lib.so.V) shared, rtl:no
9436	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9437	#            lib.a           static archive
9438	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9439	  for ld_flag in $LDFLAGS; do
9440	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9441	    aix_use_runtimelinking=yes
9442	    break
9443	  fi
9444	  done
9445	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9446	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9447	    # so we don't have lib.a shared libs to link our executables.
9448	    # We have to force runtime linking in this case.
9449	    aix_use_runtimelinking=yes
9450	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9451	  fi
9452	  ;;
9453	esac
9454
9455	exp_sym_flag='-bexport'
9456	no_entry_flag='-bnoentry'
9457      fi
9458
9459      # When large executables or shared objects are built, AIX ld can
9460      # have problems creating the table of contents.  If linking a library
9461      # or program results in "error TOC overflow" add -mminimal-toc to
9462      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9463      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9464
9465      archive_cmds=''
9466      hardcode_direct=yes
9467      hardcode_direct_absolute=yes
9468      hardcode_libdir_separator=':'
9469      link_all_deplibs=yes
9470      file_list_spec='$wl-f,'
9471      case $with_aix_soname,$aix_use_runtimelinking in
9472      aix,*) ;; # traditional, no import file
9473      svr4,* | *,yes) # use import file
9474	# The Import File defines what to hardcode.
9475	hardcode_direct=no
9476	hardcode_direct_absolute=no
9477	;;
9478      esac
9479
9480      if test yes = "$GCC"; then
9481	case $host_os in aix4.[012]|aix4.[012].*)
9482	# We only want to do this on AIX 4.2 and lower, the check
9483	# below for broken collect2 doesn't work under 4.3+
9484	  collect2name=`$CC -print-prog-name=collect2`
9485	  if test -f "$collect2name" &&
9486	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9487	  then
9488	  # We have reworked collect2
9489	  :
9490	  else
9491	  # We have old collect2
9492	  hardcode_direct=unsupported
9493	  # It fails to find uninstalled libraries when the uninstalled
9494	  # path is not listed in the libpath.  Setting hardcode_minus_L
9495	  # to unsupported forces relinking
9496	  hardcode_minus_L=yes
9497	  hardcode_libdir_flag_spec='-L$libdir'
9498	  hardcode_libdir_separator=
9499	  fi
9500	  ;;
9501	esac
9502	shared_flag='-shared'
9503	if test yes = "$aix_use_runtimelinking"; then
9504	  shared_flag="$shared_flag "'$wl-G'
9505	fi
9506	# Need to ensure runtime linking is disabled for the traditional
9507	# shared library, or the linker may eventually find shared libraries
9508	# /with/ Import File - we do not want to mix them.
9509	shared_flag_aix='-shared'
9510	shared_flag_svr4='-shared $wl-G'
9511      else
9512	# not using gcc
9513	if test ia64 = "$host_cpu"; then
9514	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9515	# chokes on -Wl,-G. The following line is correct:
9516	  shared_flag='-G'
9517	else
9518	  if test yes = "$aix_use_runtimelinking"; then
9519	    shared_flag='$wl-G'
9520	  else
9521	    shared_flag='$wl-bM:SRE'
9522	  fi
9523	  shared_flag_aix='$wl-bM:SRE'
9524	  shared_flag_svr4='$wl-G'
9525	fi
9526      fi
9527
9528      export_dynamic_flag_spec='$wl-bexpall'
9529      # It seems that -bexpall does not export symbols beginning with
9530      # underscore (_), so it is better to generate a list of symbols to export.
9531      always_export_symbols=yes
9532      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9533	# Warning - without using the other runtime loading flags (-brtl),
9534	# -berok will link without error, but may produce a broken library.
9535	allow_undefined_flag='-berok'
9536        # Determine the default libpath from the value encoded in an
9537        # empty executable.
9538        if test set = "${lt_cv_aix_libpath+set}"; then
9539  aix_libpath=$lt_cv_aix_libpath
9540else
9541  if ${lt_cv_aix_libpath_+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h.  */
9546
9547int
9548main ()
9549{
9550
9551  ;
9552  return 0;
9553}
9554_ACEOF
9555if ac_fn_c_try_link "$LINENO"; then :
9556
9557  lt_aix_libpath_sed='
9558      /Import File Strings/,/^$/ {
9559	  /^0/ {
9560	      s/^0  *\([^ ]*\) *$/\1/
9561	      p
9562	  }
9563      }'
9564  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565  # Check for a 64-bit object if we didn't find anything.
9566  if test -z "$lt_cv_aix_libpath_"; then
9567    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9568  fi
9569fi
9570rm -f core conftest.err conftest.$ac_objext \
9571    conftest$ac_exeext conftest.$ac_ext
9572  if test -z "$lt_cv_aix_libpath_"; then
9573    lt_cv_aix_libpath_=/usr/lib:/lib
9574  fi
9575
9576fi
9577
9578  aix_libpath=$lt_cv_aix_libpath_
9579fi
9580
9581        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9582        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9583      else
9584	if test ia64 = "$host_cpu"; then
9585	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9586	  allow_undefined_flag="-z nodefs"
9587	  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"
9588	else
9589	 # Determine the default libpath from the value encoded in an
9590	 # empty executable.
9591	 if test set = "${lt_cv_aix_libpath+set}"; then
9592  aix_libpath=$lt_cv_aix_libpath
9593else
9594  if ${lt_cv_aix_libpath_+:} false; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599
9600int
9601main ()
9602{
9603
9604  ;
9605  return 0;
9606}
9607_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then :
9609
9610  lt_aix_libpath_sed='
9611      /Import File Strings/,/^$/ {
9612	  /^0/ {
9613	      s/^0  *\([^ ]*\) *$/\1/
9614	      p
9615	  }
9616      }'
9617  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618  # Check for a 64-bit object if we didn't find anything.
9619  if test -z "$lt_cv_aix_libpath_"; then
9620    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621  fi
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624    conftest$ac_exeext conftest.$ac_ext
9625  if test -z "$lt_cv_aix_libpath_"; then
9626    lt_cv_aix_libpath_=/usr/lib:/lib
9627  fi
9628
9629fi
9630
9631  aix_libpath=$lt_cv_aix_libpath_
9632fi
9633
9634	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9635	  # Warning - without using the other run time loading flags,
9636	  # -berok will link without error, but may produce a broken library.
9637	  no_undefined_flag=' $wl-bernotok'
9638	  allow_undefined_flag=' $wl-berok'
9639	  if test yes = "$with_gnu_ld"; then
9640	    # We only use this code for GNU lds that support --whole-archive.
9641	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9642	  else
9643	    # Exported symbols can be pulled into shared objects from archives
9644	    whole_archive_flag_spec='$convenience'
9645	  fi
9646	  archive_cmds_need_lc=yes
9647	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9648	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9649	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9650	  if test svr4 != "$with_aix_soname"; then
9651	    # This is similar to how AIX traditionally builds its shared libraries.
9652	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9653	  fi
9654	  if test aix != "$with_aix_soname"; then
9655	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9656	  else
9657	    # used by -dlpreopen to get the symbols
9658	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9659	  fi
9660	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9661	fi
9662      fi
9663      ;;
9664
9665    amigaos*)
9666      case $host_cpu in
9667      powerpc)
9668            # see comment about AmigaOS4 .so support
9669            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9670            archive_expsym_cmds=''
9671        ;;
9672      m68k)
9673            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)'
9674            hardcode_libdir_flag_spec='-L$libdir'
9675            hardcode_minus_L=yes
9676        ;;
9677      esac
9678      ;;
9679
9680    bsdi[45]*)
9681      export_dynamic_flag_spec=-rdynamic
9682      ;;
9683
9684    cygwin* | mingw* | pw32* | cegcc*)
9685      # When not using gcc, we currently assume that we are using
9686      # Microsoft Visual C++.
9687      # hardcode_libdir_flag_spec is actually meaningless, as there is
9688      # no search path for DLLs.
9689      case $cc_basename in
9690      cl*)
9691	# Native MSVC
9692	hardcode_libdir_flag_spec=' '
9693	allow_undefined_flag=unsupported
9694	always_export_symbols=yes
9695	file_list_spec='@'
9696	# Tell ltmain to make .lib files, not .a files.
9697	libext=lib
9698	# Tell ltmain to make .dll files, not .so files.
9699	shrext_cmds=.dll
9700	# FIXME: Setting linknames here is a bad hack.
9701	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9702	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9703            cp "$export_symbols" "$output_objdir/$soname.def";
9704            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9705          else
9706            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9707          fi~
9708          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9709          linknames='
9710	# The linker will not automatically build a static lib if we build a DLL.
9711	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9712	enable_shared_with_static_runtimes=yes
9713	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9714	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9715	# Don't use ranlib
9716	old_postinstall_cmds='chmod 644 $oldlib'
9717	postlink_cmds='lt_outputfile="@OUTPUT@"~
9718          lt_tool_outputfile="@TOOL_OUTPUT@"~
9719          case $lt_outputfile in
9720            *.exe|*.EXE) ;;
9721            *)
9722              lt_outputfile=$lt_outputfile.exe
9723              lt_tool_outputfile=$lt_tool_outputfile.exe
9724              ;;
9725          esac~
9726          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9727            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9728            $RM "$lt_outputfile.manifest";
9729          fi'
9730	;;
9731      *)
9732	# Assume MSVC wrapper
9733	hardcode_libdir_flag_spec=' '
9734	allow_undefined_flag=unsupported
9735	# Tell ltmain to make .lib files, not .a files.
9736	libext=lib
9737	# Tell ltmain to make .dll files, not .so files.
9738	shrext_cmds=.dll
9739	# FIXME: Setting linknames here is a bad hack.
9740	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9741	# The linker will automatically build a .lib file if we build a DLL.
9742	old_archive_from_new_cmds='true'
9743	# FIXME: Should let the user specify the lib program.
9744	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9745	enable_shared_with_static_runtimes=yes
9746	;;
9747      esac
9748      ;;
9749
9750    darwin* | rhapsody*)
9751
9752
9753  archive_cmds_need_lc=no
9754  hardcode_direct=no
9755  hardcode_automatic=yes
9756  hardcode_shlibpath_var=unsupported
9757  if test yes = "$lt_cv_ld_force_load"; then
9758    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\"`'
9759
9760  else
9761    whole_archive_flag_spec=''
9762  fi
9763  link_all_deplibs=yes
9764  allow_undefined_flag=$_lt_dar_allow_undefined
9765  case $cc_basename in
9766     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9767     *) _lt_dar_can_shared=$GCC ;;
9768  esac
9769  if test yes = "$_lt_dar_can_shared"; then
9770    output_verbose_link_cmd=func_echo_all
9771    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9772    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9773    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"
9774    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"
9775
9776  else
9777  ld_shlibs=no
9778  fi
9779
9780      ;;
9781
9782    dgux*)
9783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784      hardcode_libdir_flag_spec='-L$libdir'
9785      hardcode_shlibpath_var=no
9786      ;;
9787
9788    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9789    # support.  Future versions do this automatically, but an explicit c++rt0.o
9790    # does not break anything, and helps significantly (at the cost of a little
9791    # extra space).
9792    freebsd2.2*)
9793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9794      hardcode_libdir_flag_spec='-R$libdir'
9795      hardcode_direct=yes
9796      hardcode_shlibpath_var=no
9797      ;;
9798
9799    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9800    freebsd2.*)
9801      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9802      hardcode_direct=yes
9803      hardcode_minus_L=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9808    freebsd* | dragonfly*)
9809      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9810      hardcode_libdir_flag_spec='-R$libdir'
9811      hardcode_direct=yes
9812      hardcode_shlibpath_var=no
9813      ;;
9814
9815    hpux9*)
9816      if test yes = "$GCC"; then
9817	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9818      else
9819	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9820      fi
9821      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9822      hardcode_libdir_separator=:
9823      hardcode_direct=yes
9824
9825      # hardcode_minus_L: Not really in the search PATH,
9826      # but as the default location of the library.
9827      hardcode_minus_L=yes
9828      export_dynamic_flag_spec='$wl-E'
9829      ;;
9830
9831    hpux10*)
9832      if test yes,no = "$GCC,$with_gnu_ld"; then
9833	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9834      else
9835	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9836      fi
9837      if test no = "$with_gnu_ld"; then
9838	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9839	hardcode_libdir_separator=:
9840	hardcode_direct=yes
9841	hardcode_direct_absolute=yes
9842	export_dynamic_flag_spec='$wl-E'
9843	# hardcode_minus_L: Not really in the search PATH,
9844	# but as the default location of the library.
9845	hardcode_minus_L=yes
9846      fi
9847      ;;
9848
9849    hpux11*)
9850      if test yes,no = "$GCC,$with_gnu_ld"; then
9851	case $host_cpu in
9852	hppa*64*)
9853	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9854	  ;;
9855	ia64*)
9856	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9857	  ;;
9858	*)
9859	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860	  ;;
9861	esac
9862      else
9863	case $host_cpu in
9864	hppa*64*)
9865	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	ia64*)
9868	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869	  ;;
9870	*)
9871
9872	  # Older versions of the 11.00 compiler do not understand -b yet
9873	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9874	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9875$as_echo_n "checking if $CC understands -b... " >&6; }
9876if ${lt_cv_prog_compiler__b+:} false; then :
9877  $as_echo_n "(cached) " >&6
9878else
9879  lt_cv_prog_compiler__b=no
9880   save_LDFLAGS=$LDFLAGS
9881   LDFLAGS="$LDFLAGS -b"
9882   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9883   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9884     # The linker can only warn and ignore the option if not recognized
9885     # So say no if there are warnings
9886     if test -s conftest.err; then
9887       # Append any errors to the config.log.
9888       cat conftest.err 1>&5
9889       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9890       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891       if diff conftest.exp conftest.er2 >/dev/null; then
9892         lt_cv_prog_compiler__b=yes
9893       fi
9894     else
9895       lt_cv_prog_compiler__b=yes
9896     fi
9897   fi
9898   $RM -r conftest*
9899   LDFLAGS=$save_LDFLAGS
9900
9901fi
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9903$as_echo "$lt_cv_prog_compiler__b" >&6; }
9904
9905if test yes = "$lt_cv_prog_compiler__b"; then
9906    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9907else
9908    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909fi
9910
9911	  ;;
9912	esac
9913      fi
9914      if test no = "$with_gnu_ld"; then
9915	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9916	hardcode_libdir_separator=:
9917
9918	case $host_cpu in
9919	hppa*64*|ia64*)
9920	  hardcode_direct=no
9921	  hardcode_shlibpath_var=no
9922	  ;;
9923	*)
9924	  hardcode_direct=yes
9925	  hardcode_direct_absolute=yes
9926	  export_dynamic_flag_spec='$wl-E'
9927
9928	  # hardcode_minus_L: Not really in the search PATH,
9929	  # but as the default location of the library.
9930	  hardcode_minus_L=yes
9931	  ;;
9932	esac
9933      fi
9934      ;;
9935
9936    irix5* | irix6* | nonstopux*)
9937      if test yes = "$GCC"; then
9938	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'
9939	# Try to use the -exported_symbol ld option, if it does not
9940	# work, assume that -exports_file does not work either and
9941	# implicitly export all symbols.
9942	# This should be the same for all languages, so no per-tag cache variable.
9943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9944$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9945if ${lt_cv_irix_exported_symbol+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  save_LDFLAGS=$LDFLAGS
9949	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9950	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int foo (void) { return 0; }
9953_ACEOF
9954if ac_fn_c_try_link "$LINENO"; then :
9955  lt_cv_irix_exported_symbol=yes
9956else
9957  lt_cv_irix_exported_symbol=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext \
9960    conftest$ac_exeext conftest.$ac_ext
9961           LDFLAGS=$save_LDFLAGS
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9964$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9965	if test yes = "$lt_cv_irix_exported_symbol"; then
9966          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'
9967	fi
9968	link_all_deplibs=no
9969      else
9970	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'
9971	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'
9972      fi
9973      archive_cmds_need_lc='no'
9974      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9975      hardcode_libdir_separator=:
9976      inherit_rpath=yes
9977      link_all_deplibs=yes
9978      ;;
9979
9980    linux*)
9981      case $cc_basename in
9982      tcc*)
9983	# Fabrice Bellard et al's Tiny C Compiler
9984	ld_shlibs=yes
9985	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986	;;
9987      esac
9988      ;;
9989
9990    netbsd* | netbsdelf*-gnu)
9991      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9992	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9993      else
9994	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9995      fi
9996      hardcode_libdir_flag_spec='-R$libdir'
9997      hardcode_direct=yes
9998      hardcode_shlibpath_var=no
9999      ;;
10000
10001    newsos6)
10002      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003      hardcode_direct=yes
10004      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10005      hardcode_libdir_separator=:
10006      hardcode_shlibpath_var=no
10007      ;;
10008
10009    *nto* | *qnx*)
10010      ;;
10011
10012    openbsd* | bitrig*)
10013      if test -f /usr/libexec/ld.so; then
10014	hardcode_direct=yes
10015	hardcode_shlibpath_var=no
10016	hardcode_direct_absolute=yes
10017	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10018	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10019	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10020	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021	  export_dynamic_flag_spec='$wl-E'
10022	else
10023	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10024	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10025	fi
10026      else
10027	ld_shlibs=no
10028      fi
10029      ;;
10030
10031    os2*)
10032      hardcode_libdir_flag_spec='-L$libdir'
10033      hardcode_minus_L=yes
10034      allow_undefined_flag=unsupported
10035      shrext_cmds=.dll
10036      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10037	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10038	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10039	$ECHO EXPORTS >> $output_objdir/$libname.def~
10040	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10041	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10042	emximp -o $lib $output_objdir/$libname.def'
10043      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10044	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10045	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10046	$ECHO EXPORTS >> $output_objdir/$libname.def~
10047	prefix_cmds="$SED"~
10048	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10049	  prefix_cmds="$prefix_cmds -e 1d";
10050	fi~
10051	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10052	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10053	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10054	emximp -o $lib $output_objdir/$libname.def'
10055      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10056      enable_shared_with_static_runtimes=yes
10057      ;;
10058
10059    osf3*)
10060      if test yes = "$GCC"; then
10061	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10062	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'
10063      else
10064	allow_undefined_flag=' -expect_unresolved \*'
10065	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'
10066      fi
10067      archive_cmds_need_lc='no'
10068      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069      hardcode_libdir_separator=:
10070      ;;
10071
10072    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10073      if test yes = "$GCC"; then
10074	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10075	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'
10076	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10077      else
10078	allow_undefined_flag=' -expect_unresolved \*'
10079	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'
10080	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~
10081          $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'
10082
10083	# Both c and cxx compiler support -rpath directly
10084	hardcode_libdir_flag_spec='-rpath $libdir'
10085      fi
10086      archive_cmds_need_lc='no'
10087      hardcode_libdir_separator=:
10088      ;;
10089
10090    solaris*)
10091      no_undefined_flag=' -z defs'
10092      if test yes = "$GCC"; then
10093	wlarc='$wl'
10094	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10095	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096          $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'
10097      else
10098	case `$CC -V 2>&1` in
10099	*"Compilers 5.0"*)
10100	  wlarc=''
10101	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104	  ;;
10105	*)
10106	  wlarc='$wl'
10107	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110	  ;;
10111	esac
10112      fi
10113      hardcode_libdir_flag_spec='-R$libdir'
10114      hardcode_shlibpath_var=no
10115      case $host_os in
10116      solaris2.[0-5] | solaris2.[0-5].*) ;;
10117      *)
10118	# The compiler driver will combine and reorder linker options,
10119	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10120	# but is careful enough not to reorder.
10121	# Supported since Solaris 2.6 (maybe 2.5.1?)
10122	if test yes = "$GCC"; then
10123	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10124	else
10125	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126	fi
10127	;;
10128      esac
10129      link_all_deplibs=yes
10130      ;;
10131
10132    sunos4*)
10133      if test sequent = "$host_vendor"; then
10134	# Use $CC to link under sequent, because it throws in some extra .o
10135	# files that make .init and .fini sections work.
10136	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137      else
10138	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139      fi
10140      hardcode_libdir_flag_spec='-L$libdir'
10141      hardcode_direct=yes
10142      hardcode_minus_L=yes
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    sysv4)
10147      case $host_vendor in
10148	sni)
10149	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150	  hardcode_direct=yes # is this really true???
10151	;;
10152	siemens)
10153	  ## LD is ld it makes a PLAMLIB
10154	  ## CC just makes a GrossModule.
10155	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156	  reload_cmds='$CC -r -o $output$reload_objs'
10157	  hardcode_direct=no
10158        ;;
10159	motorola)
10160	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162	;;
10163      esac
10164      runpath_var='LD_RUN_PATH'
10165      hardcode_shlibpath_var=no
10166      ;;
10167
10168    sysv4.3*)
10169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170      hardcode_shlibpath_var=no
10171      export_dynamic_flag_spec='-Bexport'
10172      ;;
10173
10174    sysv4*MP*)
10175      if test -d /usr/nec; then
10176	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177	hardcode_shlibpath_var=no
10178	runpath_var=LD_RUN_PATH
10179	hardcode_runpath_var=yes
10180	ld_shlibs=yes
10181      fi
10182      ;;
10183
10184    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185      no_undefined_flag='$wl-z,text'
10186      archive_cmds_need_lc=no
10187      hardcode_shlibpath_var=no
10188      runpath_var='LD_RUN_PATH'
10189
10190      if test yes = "$GCC"; then
10191	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193      else
10194	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196      fi
10197      ;;
10198
10199    sysv5* | sco3.2v5* | sco5v6*)
10200      # Note: We CANNOT use -z defs as we might desire, because we do not
10201      # link with -lc, and that would cause any symbols used from libc to
10202      # always be unresolved, which means just about no library would
10203      # ever link correctly.  If we're not using GNU ld we use -z text
10204      # though, which does catch some bad symbols but isn't as heavy-handed
10205      # as -z defs.
10206      no_undefined_flag='$wl-z,text'
10207      allow_undefined_flag='$wl-z,nodefs'
10208      archive_cmds_need_lc=no
10209      hardcode_shlibpath_var=no
10210      hardcode_libdir_flag_spec='$wl-R,$libdir'
10211      hardcode_libdir_separator=':'
10212      link_all_deplibs=yes
10213      export_dynamic_flag_spec='$wl-Bexport'
10214      runpath_var='LD_RUN_PATH'
10215
10216      if test yes = "$GCC"; then
10217	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219      else
10220	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222      fi
10223      ;;
10224
10225    uts4*)
10226      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227      hardcode_libdir_flag_spec='-L$libdir'
10228      hardcode_shlibpath_var=no
10229      ;;
10230
10231    *)
10232      ld_shlibs=no
10233      ;;
10234    esac
10235
10236    if test sni = "$host_vendor"; then
10237      case $host in
10238      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239	export_dynamic_flag_spec='$wl-Blargedynsym'
10240	;;
10241      esac
10242    fi
10243  fi
10244
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10246$as_echo "$ld_shlibs" >&6; }
10247test no = "$ld_shlibs" && can_build_shared=no
10248
10249with_gnu_ld=$with_gnu_ld
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265#
10266# Do we need to explicitly link libc?
10267#
10268case "x$archive_cmds_need_lc" in
10269x|xyes)
10270  # Assume -lc should be added
10271  archive_cmds_need_lc=yes
10272
10273  if test yes,yes = "$GCC,$enable_shared"; then
10274    case $archive_cmds in
10275    *'~'*)
10276      # FIXME: we may have to deal with multi-command sequences.
10277      ;;
10278    '$CC '*)
10279      # Test whether the compiler implicitly links with -lc since on some
10280      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281      # to ld, don't add -lc before -lgcc.
10282      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10283$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10284if ${lt_cv_archive_cmds_need_lc+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  $RM conftest*
10288	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291  (eval $ac_compile) 2>&5
10292  ac_status=$?
10293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294  test $ac_status = 0; } 2>conftest.err; then
10295	  soname=conftest
10296	  lib=conftest
10297	  libobjs=conftest.$ac_objext
10298	  deplibs=
10299	  wl=$lt_prog_compiler_wl
10300	  pic_flag=$lt_prog_compiler_pic
10301	  compiler_flags=-v
10302	  linker_flags=-v
10303	  verstring=
10304	  output_objdir=.
10305	  libname=conftest
10306	  lt_save_allow_undefined_flag=$allow_undefined_flag
10307	  allow_undefined_flag=
10308	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10309  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310  ac_status=$?
10311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312  test $ac_status = 0; }
10313	  then
10314	    lt_cv_archive_cmds_need_lc=no
10315	  else
10316	    lt_cv_archive_cmds_need_lc=yes
10317	  fi
10318	  allow_undefined_flag=$lt_save_allow_undefined_flag
10319	else
10320	  cat conftest.err 1>&5
10321	fi
10322	$RM conftest*
10323
10324fi
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10326$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10327      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328      ;;
10329    esac
10330  fi
10331  ;;
10332esac
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10486$as_echo_n "checking dynamic linker characteristics... " >&6; }
10487
10488if test yes = "$GCC"; then
10489  case $host_os in
10490    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10491    *) lt_awk_arg='/^libraries:/' ;;
10492  esac
10493  case $host_os in
10494    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10495    *) lt_sed_strip_eq='s|=/|/|g' ;;
10496  esac
10497  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498  case $lt_search_path_spec in
10499  *\;*)
10500    # if the path contains ";" then we assume it to be the separator
10501    # otherwise default to the standard path separator (i.e. ":") - it is
10502    # assumed that no part of a normal pathname contains ";" but that should
10503    # okay in the real world where ";" in dirpaths is itself problematic.
10504    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505    ;;
10506  *)
10507    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508    ;;
10509  esac
10510  # Ok, now we have the path, separated by spaces, we can step through it
10511  # and add multilib dir if necessary...
10512  lt_tmp_lt_search_path_spec=
10513  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514  # ...but if some path component already ends with the multilib dir we assume
10515  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10516  case "$lt_multi_os_dir; $lt_search_path_spec " in
10517  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10518    lt_multi_os_dir=
10519    ;;
10520  esac
10521  for lt_sys_path in $lt_search_path_spec; do
10522    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10523      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10524    elif test -n "$lt_multi_os_dir"; then
10525      test -d "$lt_sys_path" && \
10526	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10527    fi
10528  done
10529  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10530BEGIN {RS = " "; FS = "/|\n";} {
10531  lt_foo = "";
10532  lt_count = 0;
10533  for (lt_i = NF; lt_i > 0; lt_i--) {
10534    if ($lt_i != "" && $lt_i != ".") {
10535      if ($lt_i == "..") {
10536        lt_count++;
10537      } else {
10538        if (lt_count == 0) {
10539          lt_foo = "/" $lt_i lt_foo;
10540        } else {
10541          lt_count--;
10542        }
10543      }
10544    }
10545  }
10546  if (lt_foo != "") { lt_freq[lt_foo]++; }
10547  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10548}'`
10549  # AWK program above erroneously prepends '/' to C:/dos/paths
10550  # for these hosts.
10551  case $host_os in
10552    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10553      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10554  esac
10555  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10556else
10557  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10558fi
10559library_names_spec=
10560libname_spec='lib$name'
10561soname_spec=
10562shrext_cmds=.so
10563postinstall_cmds=
10564postuninstall_cmds=
10565finish_cmds=
10566finish_eval=
10567shlibpath_var=
10568shlibpath_overrides_runpath=unknown
10569version_type=none
10570dynamic_linker="$host_os ld.so"
10571sys_lib_dlsearch_path_spec="/lib /usr/lib"
10572need_lib_prefix=unknown
10573hardcode_into_libs=no
10574
10575# when you set need_version to no, make sure it does not cause -set_version
10576# flags to be left without arguments
10577need_version=unknown
10578
10579
10580
10581case $host_os in
10582aix3*)
10583  version_type=linux # correct to gnu/linux during the next big refactor
10584  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10585  shlibpath_var=LIBPATH
10586
10587  # AIX 3 has no versioning support, so we append a major version to the name.
10588  soname_spec='$libname$release$shared_ext$major'
10589  ;;
10590
10591aix[4-9]*)
10592  version_type=linux # correct to gnu/linux during the next big refactor
10593  need_lib_prefix=no
10594  need_version=no
10595  hardcode_into_libs=yes
10596  if test ia64 = "$host_cpu"; then
10597    # AIX 5 supports IA64
10598    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10599    shlibpath_var=LD_LIBRARY_PATH
10600  else
10601    # With GCC up to 2.95.x, collect2 would create an import file
10602    # for dependence libraries.  The import file would start with
10603    # the line '#! .'.  This would cause the generated library to
10604    # depend on '.', always an invalid library.  This was fixed in
10605    # development snapshots of GCC prior to 3.0.
10606    case $host_os in
10607      aix4 | aix4.[01] | aix4.[01].*)
10608      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10609	   echo ' yes '
10610	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10611	:
10612      else
10613	can_build_shared=no
10614      fi
10615      ;;
10616    esac
10617    # Using Import Files as archive members, it is possible to support
10618    # filename-based versioning of shared library archives on AIX. While
10619    # this would work for both with and without runtime linking, it will
10620    # prevent static linking of such archives. So we do filename-based
10621    # shared library versioning with .so extension only, which is used
10622    # when both runtime linking and shared linking is enabled.
10623    # Unfortunately, runtime linking may impact performance, so we do
10624    # not want this to be the default eventually. Also, we use the
10625    # versioned .so libs for executables only if there is the -brtl
10626    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10627    # To allow for filename-based versioning support, we need to create
10628    # libNAME.so.V as an archive file, containing:
10629    # *) an Import File, referring to the versioned filename of the
10630    #    archive as well as the shared archive member, telling the
10631    #    bitwidth (32 or 64) of that shared object, and providing the
10632    #    list of exported symbols of that shared object, eventually
10633    #    decorated with the 'weak' keyword
10634    # *) the shared object with the F_LOADONLY flag set, to really avoid
10635    #    it being seen by the linker.
10636    # At run time we better use the real file rather than another symlink,
10637    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10638
10639    case $with_aix_soname,$aix_use_runtimelinking in
10640    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10641    # soname into executable. Probably we can add versioning support to
10642    # collect2, so additional links can be useful in future.
10643    aix,yes) # traditional libtool
10644      dynamic_linker='AIX unversionable lib.so'
10645      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10646      # instead of lib<name>.a to let people know that these are not
10647      # typical AIX shared libraries.
10648      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10649      ;;
10650    aix,no) # traditional AIX only
10651      dynamic_linker='AIX lib.a(lib.so.V)'
10652      # We preserve .a as extension for shared libraries through AIX4.2
10653      # and later when we are not doing run time linking.
10654      library_names_spec='$libname$release.a $libname.a'
10655      soname_spec='$libname$release$shared_ext$major'
10656      ;;
10657    svr4,*) # full svr4 only
10658      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10659      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10660      # We do not specify a path in Import Files, so LIBPATH fires.
10661      shlibpath_overrides_runpath=yes
10662      ;;
10663    *,yes) # both, prefer svr4
10664      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10665      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10666      # unpreferred sharedlib libNAME.a needs extra handling
10667      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10668      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10669      # We do not specify a path in Import Files, so LIBPATH fires.
10670      shlibpath_overrides_runpath=yes
10671      ;;
10672    *,no) # both, prefer aix
10673      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10674      library_names_spec='$libname$release.a $libname.a'
10675      soname_spec='$libname$release$shared_ext$major'
10676      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10677      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10678      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10679      ;;
10680    esac
10681    shlibpath_var=LIBPATH
10682  fi
10683  ;;
10684
10685amigaos*)
10686  case $host_cpu in
10687  powerpc)
10688    # Since July 2007 AmigaOS4 officially supports .so libraries.
10689    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691    ;;
10692  m68k)
10693    library_names_spec='$libname.ixlibrary $libname.a'
10694    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10696    ;;
10697  esac
10698  ;;
10699
10700beos*)
10701  library_names_spec='$libname$shared_ext'
10702  dynamic_linker="$host_os ld.so"
10703  shlibpath_var=LIBRARY_PATH
10704  ;;
10705
10706bsdi[45]*)
10707  version_type=linux # correct to gnu/linux during the next big refactor
10708  need_version=no
10709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710  soname_spec='$libname$release$shared_ext$major'
10711  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712  shlibpath_var=LD_LIBRARY_PATH
10713  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715  # the default ld.so.conf also contains /usr/contrib/lib and
10716  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717  # libtool to hard-code these into programs
10718  ;;
10719
10720cygwin* | mingw* | pw32* | cegcc*)
10721  version_type=windows
10722  shrext_cmds=.dll
10723  need_version=no
10724  need_lib_prefix=no
10725
10726  case $GCC,$cc_basename in
10727  yes,*)
10728    # gcc
10729    library_names_spec='$libname.dll.a'
10730    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10731    postinstall_cmds='base_file=`basename \$file`~
10732      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10733      dldir=$destdir/`dirname \$dlpath`~
10734      test -d \$dldir || mkdir -p \$dldir~
10735      $install_prog $dir/$dlname \$dldir/$dlname~
10736      chmod a+x \$dldir/$dlname~
10737      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10738        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10739      fi'
10740    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10741      dlpath=$dir/\$dldll~
10742       $RM \$dlpath'
10743    shlibpath_overrides_runpath=yes
10744
10745    case $host_os in
10746    cygwin*)
10747      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10748      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10749
10750      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10751      ;;
10752    mingw* | cegcc*)
10753      # MinGW DLLs use traditional 'lib' prefix
10754      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10755      ;;
10756    pw32*)
10757      # pw32 DLLs use 'pw' prefix rather than 'lib'
10758      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10759      ;;
10760    esac
10761    dynamic_linker='Win32 ld.exe'
10762    ;;
10763
10764  *,cl*)
10765    # Native MSVC
10766    libname_spec='$name'
10767    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10768    library_names_spec='$libname.dll.lib'
10769
10770    case $build_os in
10771    mingw*)
10772      sys_lib_search_path_spec=
10773      lt_save_ifs=$IFS
10774      IFS=';'
10775      for lt_path in $LIB
10776      do
10777        IFS=$lt_save_ifs
10778        # Let DOS variable expansion print the short 8.3 style file name.
10779        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10780        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10781      done
10782      IFS=$lt_save_ifs
10783      # Convert to MSYS style.
10784      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10785      ;;
10786    cygwin*)
10787      # Convert to unix form, then to dos form, then back to unix form
10788      # but this time dos style (no spaces!) so that the unix form looks
10789      # like /cygdrive/c/PROGRA~1:/cygdr...
10790      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10791      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10792      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793      ;;
10794    *)
10795      sys_lib_search_path_spec=$LIB
10796      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10797        # It is most probably a Windows format PATH.
10798        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10799      else
10800        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10801      fi
10802      # FIXME: find the short name or the path components, as spaces are
10803      # common. (e.g. "Program Files" -> "PROGRA~1")
10804      ;;
10805    esac
10806
10807    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10808    postinstall_cmds='base_file=`basename \$file`~
10809      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10810      dldir=$destdir/`dirname \$dlpath`~
10811      test -d \$dldir || mkdir -p \$dldir~
10812      $install_prog $dir/$dlname \$dldir/$dlname'
10813    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10814      dlpath=$dir/\$dldll~
10815       $RM \$dlpath'
10816    shlibpath_overrides_runpath=yes
10817    dynamic_linker='Win32 link.exe'
10818    ;;
10819
10820  *)
10821    # Assume MSVC wrapper
10822    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10823    dynamic_linker='Win32 ld.exe'
10824    ;;
10825  esac
10826  # FIXME: first we should search . and the directory the executable is in
10827  shlibpath_var=PATH
10828  ;;
10829
10830darwin* | rhapsody*)
10831  dynamic_linker="$host_os dyld"
10832  version_type=darwin
10833  need_lib_prefix=no
10834  need_version=no
10835  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10836  soname_spec='$libname$release$major$shared_ext'
10837  shlibpath_overrides_runpath=yes
10838  shlibpath_var=DYLD_LIBRARY_PATH
10839  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10840
10841  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10842  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10843  ;;
10844
10845dgux*)
10846  version_type=linux # correct to gnu/linux during the next big refactor
10847  need_lib_prefix=no
10848  need_version=no
10849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10850  soname_spec='$libname$release$shared_ext$major'
10851  shlibpath_var=LD_LIBRARY_PATH
10852  ;;
10853
10854freebsd* | dragonfly*)
10855  # DragonFly does not have aout.  When/if they implement a new
10856  # versioning mechanism, adjust this.
10857  if test -x /usr/bin/objformat; then
10858    objformat=`/usr/bin/objformat`
10859  else
10860    case $host_os in
10861    freebsd[23].*) objformat=aout ;;
10862    *) objformat=elf ;;
10863    esac
10864  fi
10865  version_type=freebsd-$objformat
10866  case $version_type in
10867    freebsd-elf*)
10868      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869      soname_spec='$libname$release$shared_ext$major'
10870      need_version=no
10871      need_lib_prefix=no
10872      ;;
10873    freebsd-*)
10874      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10875      need_version=yes
10876      ;;
10877  esac
10878  shlibpath_var=LD_LIBRARY_PATH
10879  case $host_os in
10880  freebsd2.*)
10881    shlibpath_overrides_runpath=yes
10882    ;;
10883  freebsd3.[01]* | freebsdelf3.[01]*)
10884    shlibpath_overrides_runpath=yes
10885    hardcode_into_libs=yes
10886    ;;
10887  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10888  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10889    shlibpath_overrides_runpath=no
10890    hardcode_into_libs=yes
10891    ;;
10892  *) # from 4.6 on, and DragonFly
10893    shlibpath_overrides_runpath=yes
10894    hardcode_into_libs=yes
10895    ;;
10896  esac
10897  ;;
10898
10899haiku*)
10900  version_type=linux # correct to gnu/linux during the next big refactor
10901  need_lib_prefix=no
10902  need_version=no
10903  dynamic_linker="$host_os runtime_loader"
10904  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10905  soname_spec='$libname$release$shared_ext$major'
10906  shlibpath_var=LIBRARY_PATH
10907  shlibpath_overrides_runpath=no
10908  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10909  hardcode_into_libs=yes
10910  ;;
10911
10912hpux9* | hpux10* | hpux11*)
10913  # Give a soname corresponding to the major version so that dld.sl refuses to
10914  # link against other versions.
10915  version_type=sunos
10916  need_lib_prefix=no
10917  need_version=no
10918  case $host_cpu in
10919  ia64*)
10920    shrext_cmds='.so'
10921    hardcode_into_libs=yes
10922    dynamic_linker="$host_os dld.so"
10923    shlibpath_var=LD_LIBRARY_PATH
10924    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10925    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10926    soname_spec='$libname$release$shared_ext$major'
10927    if test 32 = "$HPUX_IA64_MODE"; then
10928      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10929      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10930    else
10931      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10932      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10933    fi
10934    ;;
10935  hppa*64*)
10936    shrext_cmds='.sl'
10937    hardcode_into_libs=yes
10938    dynamic_linker="$host_os dld.sl"
10939    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10940    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942    soname_spec='$libname$release$shared_ext$major'
10943    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10944    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945    ;;
10946  *)
10947    shrext_cmds='.sl'
10948    dynamic_linker="$host_os dld.sl"
10949    shlibpath_var=SHLIB_PATH
10950    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10951    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952    soname_spec='$libname$release$shared_ext$major'
10953    ;;
10954  esac
10955  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10956  postinstall_cmds='chmod 555 $lib'
10957  # or fails outright, so override atomically:
10958  install_override_mode=555
10959  ;;
10960
10961interix[3-9]*)
10962  version_type=linux # correct to gnu/linux during the next big refactor
10963  need_lib_prefix=no
10964  need_version=no
10965  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10966  soname_spec='$libname$release$shared_ext$major'
10967  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10968  shlibpath_var=LD_LIBRARY_PATH
10969  shlibpath_overrides_runpath=no
10970  hardcode_into_libs=yes
10971  ;;
10972
10973irix5* | irix6* | nonstopux*)
10974  case $host_os in
10975    nonstopux*) version_type=nonstopux ;;
10976    *)
10977	if test yes = "$lt_cv_prog_gnu_ld"; then
10978		version_type=linux # correct to gnu/linux during the next big refactor
10979	else
10980		version_type=irix
10981	fi ;;
10982  esac
10983  need_lib_prefix=no
10984  need_version=no
10985  soname_spec='$libname$release$shared_ext$major'
10986  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10987  case $host_os in
10988  irix5* | nonstopux*)
10989    libsuff= shlibsuff=
10990    ;;
10991  *)
10992    case $LD in # libtool.m4 will add one of these switches to LD
10993    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10994      libsuff= shlibsuff= libmagic=32-bit;;
10995    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10996      libsuff=32 shlibsuff=N32 libmagic=N32;;
10997    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10998      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10999    *) libsuff= shlibsuff= libmagic=never-match;;
11000    esac
11001    ;;
11002  esac
11003  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11004  shlibpath_overrides_runpath=no
11005  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11006  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11007  hardcode_into_libs=yes
11008  ;;
11009
11010# No shared lib support for Linux oldld, aout, or coff.
11011linux*oldld* | linux*aout* | linux*coff*)
11012  dynamic_linker=no
11013  ;;
11014
11015linux*android*)
11016  version_type=none # Android doesn't support versioned libraries.
11017  need_lib_prefix=no
11018  need_version=no
11019  library_names_spec='$libname$release$shared_ext'
11020  soname_spec='$libname$release$shared_ext'
11021  finish_cmds=
11022  shlibpath_var=LD_LIBRARY_PATH
11023  shlibpath_overrides_runpath=yes
11024
11025  # This implies no fast_install, which is unacceptable.
11026  # Some rework will be needed to allow for fast_install
11027  # before this can be enabled.
11028  hardcode_into_libs=yes
11029
11030  dynamic_linker='Android linker'
11031  # Don't embed -rpath directories since the linker doesn't support them.
11032  hardcode_libdir_flag_spec='-L$libdir'
11033  ;;
11034
11035# This must be glibc/ELF.
11036linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11037  version_type=linux # correct to gnu/linux during the next big refactor
11038  need_lib_prefix=no
11039  need_version=no
11040  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041  soname_spec='$libname$release$shared_ext$major'
11042  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11043  shlibpath_var=LD_LIBRARY_PATH
11044  shlibpath_overrides_runpath=no
11045
11046  # Some binutils ld are patched to set DT_RUNPATH
11047  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  lt_cv_shlibpath_overrides_runpath=no
11051    save_LDFLAGS=$LDFLAGS
11052    save_libdir=$libdir
11053    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11054	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056/* end confdefs.h.  */
11057
11058int
11059main ()
11060{
11061
11062  ;
11063  return 0;
11064}
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11068  lt_cv_shlibpath_overrides_runpath=yes
11069fi
11070fi
11071rm -f core conftest.err conftest.$ac_objext \
11072    conftest$ac_exeext conftest.$ac_ext
11073    LDFLAGS=$save_LDFLAGS
11074    libdir=$save_libdir
11075
11076fi
11077
11078  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11079
11080  # This implies no fast_install, which is unacceptable.
11081  # Some rework will be needed to allow for fast_install
11082  # before this can be enabled.
11083  hardcode_into_libs=yes
11084
11085  # Ideally, we could use ldconfig to report *all* directores which are
11086  # searched for libraries, however this is still not possible.  Aside from not
11087  # being certain /sbin/ldconfig is available, command
11088  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11089  # even though it is searched at run-time.  Try to do the best guess by
11090  # appending ld.so.conf contents (and includes) to the search path.
11091  if test -f /etc/ld.so.conf; then
11092    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' ' '`
11093    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11094  fi
11095
11096  # We used to test for /lib/ld.so.1 and disable shared libraries on
11097  # powerpc, because MkLinux only supported shared libraries with the
11098  # GNU dynamic linker.  Since this was broken with cross compilers,
11099  # most powerpc-linux boxes support dynamic linking these days and
11100  # people can always --disable-shared, the test was removed, and we
11101  # assume the GNU/Linux dynamic linker is in use.
11102  dynamic_linker='GNU/Linux ld.so'
11103  ;;
11104
11105netbsdelf*-gnu)
11106  version_type=linux
11107  need_lib_prefix=no
11108  need_version=no
11109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110  soname_spec='${libname}${release}${shared_ext}$major'
11111  shlibpath_var=LD_LIBRARY_PATH
11112  shlibpath_overrides_runpath=no
11113  hardcode_into_libs=yes
11114  dynamic_linker='NetBSD ld.elf_so'
11115  ;;
11116
11117netbsd*)
11118  version_type=sunos
11119  need_lib_prefix=no
11120  need_version=no
11121  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11123    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11124    dynamic_linker='NetBSD (a.out) ld.so'
11125  else
11126    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127    soname_spec='$libname$release$shared_ext$major'
11128    dynamic_linker='NetBSD ld.elf_so'
11129  fi
11130  shlibpath_var=LD_LIBRARY_PATH
11131  shlibpath_overrides_runpath=yes
11132  hardcode_into_libs=yes
11133  ;;
11134
11135newsos6)
11136  version_type=linux # correct to gnu/linux during the next big refactor
11137  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11138  shlibpath_var=LD_LIBRARY_PATH
11139  shlibpath_overrides_runpath=yes
11140  ;;
11141
11142*nto* | *qnx*)
11143  version_type=qnx
11144  need_lib_prefix=no
11145  need_version=no
11146  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147  soname_spec='$libname$release$shared_ext$major'
11148  shlibpath_var=LD_LIBRARY_PATH
11149  shlibpath_overrides_runpath=no
11150  hardcode_into_libs=yes
11151  dynamic_linker='ldqnx.so'
11152  ;;
11153
11154openbsd* | bitrig*)
11155  version_type=sunos
11156  sys_lib_dlsearch_path_spec=/usr/lib
11157  need_lib_prefix=no
11158  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11159    need_version=no
11160  else
11161    need_version=yes
11162  fi
11163  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11164  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  shlibpath_overrides_runpath=yes
11167  ;;
11168
11169os2*)
11170  libname_spec='$name'
11171  version_type=windows
11172  shrext_cmds=.dll
11173  need_version=no
11174  need_lib_prefix=no
11175  # OS/2 can only load a DLL with a base name of 8 characters or less.
11176  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11177    v=$($ECHO $release$versuffix | tr -d .-);
11178    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11179    $ECHO $n$v`$shared_ext'
11180  library_names_spec='${libname}_dll.$libext'
11181  dynamic_linker='OS/2 ld.exe'
11182  shlibpath_var=BEGINLIBPATH
11183  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11184  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11185  postinstall_cmds='base_file=`basename \$file`~
11186    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11187    dldir=$destdir/`dirname \$dlpath`~
11188    test -d \$dldir || mkdir -p \$dldir~
11189    $install_prog $dir/$dlname \$dldir/$dlname~
11190    chmod a+x \$dldir/$dlname~
11191    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11192      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11193    fi'
11194  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11195    dlpath=$dir/\$dldll~
11196    $RM \$dlpath'
11197  ;;
11198
11199osf3* | osf4* | osf5*)
11200  version_type=osf
11201  need_lib_prefix=no
11202  need_version=no
11203  soname_spec='$libname$release$shared_ext$major'
11204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205  shlibpath_var=LD_LIBRARY_PATH
11206  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11207  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11208  ;;
11209
11210rdos*)
11211  dynamic_linker=no
11212  ;;
11213
11214solaris*)
11215  version_type=linux # correct to gnu/linux during the next big refactor
11216  need_lib_prefix=no
11217  need_version=no
11218  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11219  soname_spec='$libname$release$shared_ext$major'
11220  shlibpath_var=LD_LIBRARY_PATH
11221  shlibpath_overrides_runpath=yes
11222  hardcode_into_libs=yes
11223  # ldd complains unless libraries are executable
11224  postinstall_cmds='chmod +x $lib'
11225  ;;
11226
11227sunos4*)
11228  version_type=sunos
11229  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11230  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11231  shlibpath_var=LD_LIBRARY_PATH
11232  shlibpath_overrides_runpath=yes
11233  if test yes = "$with_gnu_ld"; then
11234    need_lib_prefix=no
11235  fi
11236  need_version=yes
11237  ;;
11238
11239sysv4 | sysv4.3*)
11240  version_type=linux # correct to gnu/linux during the next big refactor
11241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242  soname_spec='$libname$release$shared_ext$major'
11243  shlibpath_var=LD_LIBRARY_PATH
11244  case $host_vendor in
11245    sni)
11246      shlibpath_overrides_runpath=no
11247      need_lib_prefix=no
11248      runpath_var=LD_RUN_PATH
11249      ;;
11250    siemens)
11251      need_lib_prefix=no
11252      ;;
11253    motorola)
11254      need_lib_prefix=no
11255      need_version=no
11256      shlibpath_overrides_runpath=no
11257      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11258      ;;
11259  esac
11260  ;;
11261
11262sysv4*MP*)
11263  if test -d /usr/nec; then
11264    version_type=linux # correct to gnu/linux during the next big refactor
11265    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11266    soname_spec='$libname$shared_ext.$major'
11267    shlibpath_var=LD_LIBRARY_PATH
11268  fi
11269  ;;
11270
11271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11272  version_type=sco
11273  need_lib_prefix=no
11274  need_version=no
11275  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11276  soname_spec='$libname$release$shared_ext$major'
11277  shlibpath_var=LD_LIBRARY_PATH
11278  shlibpath_overrides_runpath=yes
11279  hardcode_into_libs=yes
11280  if test yes = "$with_gnu_ld"; then
11281    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11282  else
11283    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11284    case $host_os in
11285      sco3.2v5*)
11286        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11287	;;
11288    esac
11289  fi
11290  sys_lib_dlsearch_path_spec='/usr/lib'
11291  ;;
11292
11293tpf*)
11294  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11295  version_type=linux # correct to gnu/linux during the next big refactor
11296  need_lib_prefix=no
11297  need_version=no
11298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299  shlibpath_var=LD_LIBRARY_PATH
11300  shlibpath_overrides_runpath=no
11301  hardcode_into_libs=yes
11302  ;;
11303
11304uts4*)
11305  version_type=linux # correct to gnu/linux during the next big refactor
11306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307  soname_spec='$libname$release$shared_ext$major'
11308  shlibpath_var=LD_LIBRARY_PATH
11309  ;;
11310
11311*)
11312  dynamic_linker=no
11313  ;;
11314esac
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11316$as_echo "$dynamic_linker" >&6; }
11317test no = "$dynamic_linker" && can_build_shared=no
11318
11319variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11320if test yes = "$GCC"; then
11321  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11322fi
11323
11324if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11325  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11326fi
11327
11328if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11329  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11330fi
11331
11332# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11333configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11334
11335# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11336func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11337
11338# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11339configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11438$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11439hardcode_action=
11440if test -n "$hardcode_libdir_flag_spec" ||
11441   test -n "$runpath_var" ||
11442   test yes = "$hardcode_automatic"; then
11443
11444  # We can hardcode non-existent directories.
11445  if test no != "$hardcode_direct" &&
11446     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11447     # have to relink, otherwise we might link with an installed library
11448     # when we should be linking with a yet-to-be-installed one
11449     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11450     test no != "$hardcode_minus_L"; then
11451    # Linking always hardcodes the temporary library directory.
11452    hardcode_action=relink
11453  else
11454    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11455    hardcode_action=immediate
11456  fi
11457else
11458  # We cannot hardcode anything, or else we can only hardcode existing
11459  # directories.
11460  hardcode_action=unsupported
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11463$as_echo "$hardcode_action" >&6; }
11464
11465if test relink = "$hardcode_action" ||
11466   test yes = "$inherit_rpath"; then
11467  # Fast installation is not supported
11468  enable_fast_install=no
11469elif test yes = "$shlibpath_overrides_runpath" ||
11470     test no = "$enable_shared"; then
11471  # Fast installation is not necessary
11472  enable_fast_install=needless
11473fi
11474
11475
11476
11477
11478
11479
11480  if test yes != "$enable_dlopen"; then
11481  enable_dlopen=unknown
11482  enable_dlopen_self=unknown
11483  enable_dlopen_self_static=unknown
11484else
11485  lt_cv_dlopen=no
11486  lt_cv_dlopen_libs=
11487
11488  case $host_os in
11489  beos*)
11490    lt_cv_dlopen=load_add_on
11491    lt_cv_dlopen_libs=
11492    lt_cv_dlopen_self=yes
11493    ;;
11494
11495  mingw* | pw32* | cegcc*)
11496    lt_cv_dlopen=LoadLibrary
11497    lt_cv_dlopen_libs=
11498    ;;
11499
11500  cygwin*)
11501    lt_cv_dlopen=dlopen
11502    lt_cv_dlopen_libs=
11503    ;;
11504
11505  darwin*)
11506    # if libdl is installed we need to link against it
11507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11508$as_echo_n "checking for dlopen in -ldl... " >&6; }
11509if ${ac_cv_lib_dl_dlopen+:} false; then :
11510  $as_echo_n "(cached) " >&6
11511else
11512  ac_check_lib_save_LIBS=$LIBS
11513LIBS="-ldl  $LIBS"
11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h.  */
11516
11517/* Override any GCC internal prototype to avoid an error.
11518   Use char because int might match the return type of a GCC
11519   builtin and then its argument prototype would still apply.  */
11520#ifdef __cplusplus
11521extern "C"
11522#endif
11523char dlopen ();
11524int
11525main ()
11526{
11527return dlopen ();
11528  ;
11529  return 0;
11530}
11531_ACEOF
11532if ac_fn_c_try_link "$LINENO"; then :
11533  ac_cv_lib_dl_dlopen=yes
11534else
11535  ac_cv_lib_dl_dlopen=no
11536fi
11537rm -f core conftest.err conftest.$ac_objext \
11538    conftest$ac_exeext conftest.$ac_ext
11539LIBS=$ac_check_lib_save_LIBS
11540fi
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11542$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11543if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11544  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11545else
11546
11547    lt_cv_dlopen=dyld
11548    lt_cv_dlopen_libs=
11549    lt_cv_dlopen_self=yes
11550
11551fi
11552
11553    ;;
11554
11555  tpf*)
11556    # Don't try to run any link tests for TPF.  We know it's impossible
11557    # because TPF is a cross-compiler, and we know how we open DSOs.
11558    lt_cv_dlopen=dlopen
11559    lt_cv_dlopen_libs=
11560    lt_cv_dlopen_self=no
11561    ;;
11562
11563  *)
11564    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11565if test "x$ac_cv_func_shl_load" = xyes; then :
11566  lt_cv_dlopen=shl_load
11567else
11568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11569$as_echo_n "checking for shl_load in -ldld... " >&6; }
11570if ${ac_cv_lib_dld_shl_load+:} false; then :
11571  $as_echo_n "(cached) " >&6
11572else
11573  ac_check_lib_save_LIBS=$LIBS
11574LIBS="-ldld  $LIBS"
11575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576/* end confdefs.h.  */
11577
11578/* Override any GCC internal prototype to avoid an error.
11579   Use char because int might match the return type of a GCC
11580   builtin and then its argument prototype would still apply.  */
11581#ifdef __cplusplus
11582extern "C"
11583#endif
11584char shl_load ();
11585int
11586main ()
11587{
11588return shl_load ();
11589  ;
11590  return 0;
11591}
11592_ACEOF
11593if ac_fn_c_try_link "$LINENO"; then :
11594  ac_cv_lib_dld_shl_load=yes
11595else
11596  ac_cv_lib_dld_shl_load=no
11597fi
11598rm -f core conftest.err conftest.$ac_objext \
11599    conftest$ac_exeext conftest.$ac_ext
11600LIBS=$ac_check_lib_save_LIBS
11601fi
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11603$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11604if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11605  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11606else
11607  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11608if test "x$ac_cv_func_dlopen" = xyes; then :
11609  lt_cv_dlopen=dlopen
11610else
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11612$as_echo_n "checking for dlopen in -ldl... " >&6; }
11613if ${ac_cv_lib_dl_dlopen+:} false; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  ac_check_lib_save_LIBS=$LIBS
11617LIBS="-ldl  $LIBS"
11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619/* end confdefs.h.  */
11620
11621/* Override any GCC internal prototype to avoid an error.
11622   Use char because int might match the return type of a GCC
11623   builtin and then its argument prototype would still apply.  */
11624#ifdef __cplusplus
11625extern "C"
11626#endif
11627char dlopen ();
11628int
11629main ()
11630{
11631return dlopen ();
11632  ;
11633  return 0;
11634}
11635_ACEOF
11636if ac_fn_c_try_link "$LINENO"; then :
11637  ac_cv_lib_dl_dlopen=yes
11638else
11639  ac_cv_lib_dl_dlopen=no
11640fi
11641rm -f core conftest.err conftest.$ac_objext \
11642    conftest$ac_exeext conftest.$ac_ext
11643LIBS=$ac_check_lib_save_LIBS
11644fi
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11646$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11647if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11648  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11649else
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11651$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11652if ${ac_cv_lib_svld_dlopen+:} false; then :
11653  $as_echo_n "(cached) " >&6
11654else
11655  ac_check_lib_save_LIBS=$LIBS
11656LIBS="-lsvld  $LIBS"
11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658/* end confdefs.h.  */
11659
11660/* Override any GCC internal prototype to avoid an error.
11661   Use char because int might match the return type of a GCC
11662   builtin and then its argument prototype would still apply.  */
11663#ifdef __cplusplus
11664extern "C"
11665#endif
11666char dlopen ();
11667int
11668main ()
11669{
11670return dlopen ();
11671  ;
11672  return 0;
11673}
11674_ACEOF
11675if ac_fn_c_try_link "$LINENO"; then :
11676  ac_cv_lib_svld_dlopen=yes
11677else
11678  ac_cv_lib_svld_dlopen=no
11679fi
11680rm -f core conftest.err conftest.$ac_objext \
11681    conftest$ac_exeext conftest.$ac_ext
11682LIBS=$ac_check_lib_save_LIBS
11683fi
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11685$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11686if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11687  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11688else
11689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11690$as_echo_n "checking for dld_link in -ldld... " >&6; }
11691if ${ac_cv_lib_dld_dld_link+:} false; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  ac_check_lib_save_LIBS=$LIBS
11695LIBS="-ldld  $LIBS"
11696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697/* end confdefs.h.  */
11698
11699/* Override any GCC internal prototype to avoid an error.
11700   Use char because int might match the return type of a GCC
11701   builtin and then its argument prototype would still apply.  */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705char dld_link ();
11706int
11707main ()
11708{
11709return dld_link ();
11710  ;
11711  return 0;
11712}
11713_ACEOF
11714if ac_fn_c_try_link "$LINENO"; then :
11715  ac_cv_lib_dld_dld_link=yes
11716else
11717  ac_cv_lib_dld_dld_link=no
11718fi
11719rm -f core conftest.err conftest.$ac_objext \
11720    conftest$ac_exeext conftest.$ac_ext
11721LIBS=$ac_check_lib_save_LIBS
11722fi
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11724$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11725if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11726  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11727fi
11728
11729
11730fi
11731
11732
11733fi
11734
11735
11736fi
11737
11738
11739fi
11740
11741
11742fi
11743
11744    ;;
11745  esac
11746
11747  if test no = "$lt_cv_dlopen"; then
11748    enable_dlopen=no
11749  else
11750    enable_dlopen=yes
11751  fi
11752
11753  case $lt_cv_dlopen in
11754  dlopen)
11755    save_CPPFLAGS=$CPPFLAGS
11756    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11757
11758    save_LDFLAGS=$LDFLAGS
11759    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11760
11761    save_LIBS=$LIBS
11762    LIBS="$lt_cv_dlopen_libs $LIBS"
11763
11764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11765$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11766if ${lt_cv_dlopen_self+:} false; then :
11767  $as_echo_n "(cached) " >&6
11768else
11769  	  if test yes = "$cross_compiling"; then :
11770  lt_cv_dlopen_self=cross
11771else
11772  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11773  lt_status=$lt_dlunknown
11774  cat > conftest.$ac_ext <<_LT_EOF
11775#line $LINENO "configure"
11776#include "confdefs.h"
11777
11778#if HAVE_DLFCN_H
11779#include <dlfcn.h>
11780#endif
11781
11782#include <stdio.h>
11783
11784#ifdef RTLD_GLOBAL
11785#  define LT_DLGLOBAL		RTLD_GLOBAL
11786#else
11787#  ifdef DL_GLOBAL
11788#    define LT_DLGLOBAL		DL_GLOBAL
11789#  else
11790#    define LT_DLGLOBAL		0
11791#  endif
11792#endif
11793
11794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11795   find out it does not work in some platform. */
11796#ifndef LT_DLLAZY_OR_NOW
11797#  ifdef RTLD_LAZY
11798#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11799#  else
11800#    ifdef DL_LAZY
11801#      define LT_DLLAZY_OR_NOW		DL_LAZY
11802#    else
11803#      ifdef RTLD_NOW
11804#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11805#      else
11806#        ifdef DL_NOW
11807#          define LT_DLLAZY_OR_NOW	DL_NOW
11808#        else
11809#          define LT_DLLAZY_OR_NOW	0
11810#        endif
11811#      endif
11812#    endif
11813#  endif
11814#endif
11815
11816/* When -fvisibility=hidden is used, assume the code has been annotated
11817   correspondingly for the symbols needed.  */
11818#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11819int fnord () __attribute__((visibility("default")));
11820#endif
11821
11822int fnord () { return 42; }
11823int main ()
11824{
11825  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826  int status = $lt_dlunknown;
11827
11828  if (self)
11829    {
11830      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11831      else
11832        {
11833	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11834          else puts (dlerror ());
11835	}
11836      /* dlclose (self); */
11837    }
11838  else
11839    puts (dlerror ());
11840
11841  return status;
11842}
11843_LT_EOF
11844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11845  (eval $ac_link) 2>&5
11846  ac_status=$?
11847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11849    (./conftest; exit; ) >&5 2>/dev/null
11850    lt_status=$?
11851    case x$lt_status in
11852      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11853      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11854      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11855    esac
11856  else :
11857    # compilation failed
11858    lt_cv_dlopen_self=no
11859  fi
11860fi
11861rm -fr conftest*
11862
11863
11864fi
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11866$as_echo "$lt_cv_dlopen_self" >&6; }
11867
11868    if test yes = "$lt_cv_dlopen_self"; then
11869      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11870      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11871$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11872if ${lt_cv_dlopen_self_static+:} false; then :
11873  $as_echo_n "(cached) " >&6
11874else
11875  	  if test yes = "$cross_compiling"; then :
11876  lt_cv_dlopen_self_static=cross
11877else
11878  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11879  lt_status=$lt_dlunknown
11880  cat > conftest.$ac_ext <<_LT_EOF
11881#line $LINENO "configure"
11882#include "confdefs.h"
11883
11884#if HAVE_DLFCN_H
11885#include <dlfcn.h>
11886#endif
11887
11888#include <stdio.h>
11889
11890#ifdef RTLD_GLOBAL
11891#  define LT_DLGLOBAL		RTLD_GLOBAL
11892#else
11893#  ifdef DL_GLOBAL
11894#    define LT_DLGLOBAL		DL_GLOBAL
11895#  else
11896#    define LT_DLGLOBAL		0
11897#  endif
11898#endif
11899
11900/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11901   find out it does not work in some platform. */
11902#ifndef LT_DLLAZY_OR_NOW
11903#  ifdef RTLD_LAZY
11904#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11905#  else
11906#    ifdef DL_LAZY
11907#      define LT_DLLAZY_OR_NOW		DL_LAZY
11908#    else
11909#      ifdef RTLD_NOW
11910#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11911#      else
11912#        ifdef DL_NOW
11913#          define LT_DLLAZY_OR_NOW	DL_NOW
11914#        else
11915#          define LT_DLLAZY_OR_NOW	0
11916#        endif
11917#      endif
11918#    endif
11919#  endif
11920#endif
11921
11922/* When -fvisibility=hidden is used, assume the code has been annotated
11923   correspondingly for the symbols needed.  */
11924#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11925int fnord () __attribute__((visibility("default")));
11926#endif
11927
11928int fnord () { return 42; }
11929int main ()
11930{
11931  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11932  int status = $lt_dlunknown;
11933
11934  if (self)
11935    {
11936      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11937      else
11938        {
11939	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11940          else puts (dlerror ());
11941	}
11942      /* dlclose (self); */
11943    }
11944  else
11945    puts (dlerror ());
11946
11947  return status;
11948}
11949_LT_EOF
11950  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11951  (eval $ac_link) 2>&5
11952  ac_status=$?
11953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11955    (./conftest; exit; ) >&5 2>/dev/null
11956    lt_status=$?
11957    case x$lt_status in
11958      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11959      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11960      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11961    esac
11962  else :
11963    # compilation failed
11964    lt_cv_dlopen_self_static=no
11965  fi
11966fi
11967rm -fr conftest*
11968
11969
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11972$as_echo "$lt_cv_dlopen_self_static" >&6; }
11973    fi
11974
11975    CPPFLAGS=$save_CPPFLAGS
11976    LDFLAGS=$save_LDFLAGS
11977    LIBS=$save_LIBS
11978    ;;
11979  esac
11980
11981  case $lt_cv_dlopen_self in
11982  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11983  *) enable_dlopen_self=unknown ;;
11984  esac
11985
11986  case $lt_cv_dlopen_self_static in
11987  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11988  *) enable_dlopen_self_static=unknown ;;
11989  esac
11990fi
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008striplib=
12009old_striplib=
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12011$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12012if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12013  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12014  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12016$as_echo "yes" >&6; }
12017else
12018# FIXME - insert some real tests, host_os isn't really good enough
12019  case $host_os in
12020  darwin*)
12021    if test -n "$STRIP"; then
12022      striplib="$STRIP -x"
12023      old_striplib="$STRIP -S"
12024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025$as_echo "yes" >&6; }
12026    else
12027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029    fi
12030    ;;
12031  *)
12032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033$as_echo "no" >&6; }
12034    ;;
12035  esac
12036fi
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049  # Report what library types will actually be built
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12051$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12053$as_echo "$can_build_shared" >&6; }
12054
12055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12056$as_echo_n "checking whether to build shared libraries... " >&6; }
12057  test no = "$can_build_shared" && enable_shared=no
12058
12059  # On AIX, shared libraries and static libraries use the same namespace, and
12060  # are all built from PIC.
12061  case $host_os in
12062  aix3*)
12063    test yes = "$enable_shared" && enable_static=no
12064    if test -n "$RANLIB"; then
12065      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12066      postinstall_cmds='$RANLIB $lib'
12067    fi
12068    ;;
12069
12070  aix[4-9]*)
12071    if test ia64 != "$host_cpu"; then
12072      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12073      yes,aix,yes) ;;			# shared object as lib.so file only
12074      yes,svr4,*) ;;			# shared object as lib.so archive member only
12075      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12076      esac
12077    fi
12078    ;;
12079  esac
12080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12081$as_echo "$enable_shared" >&6; }
12082
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12084$as_echo_n "checking whether to build static libraries... " >&6; }
12085  # Make sure either enable_shared or enable_static is yes.
12086  test yes = "$enable_shared" || enable_static=yes
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12088$as_echo "$enable_static" >&6; }
12089
12090
12091
12092
12093fi
12094ac_ext=c
12095ac_cpp='$CPP $CPPFLAGS'
12096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098ac_compiler_gnu=$ac_cv_c_compiler_gnu
12099
12100CC=$lt_save_CC
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116        ac_config_commands="$ac_config_commands libtool"
12117
12118
12119
12120
12121# Only expand once:
12122
12123
12124
12125# Require xorg-macros: XORG_DEFAULT_OPTIONS
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12138$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12139if ${ac_cv_prog_cc_c99+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  ac_cv_prog_cc_c99=no
12143ac_save_CC=$CC
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146#include <stdarg.h>
12147#include <stdbool.h>
12148#include <stdlib.h>
12149#include <wchar.h>
12150#include <stdio.h>
12151
12152// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12153#define debug(...) fprintf (stderr, __VA_ARGS__)
12154#define showlist(...) puts (#__VA_ARGS__)
12155#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12156static void
12157test_varargs_macros (void)
12158{
12159  int x = 1234;
12160  int y = 5678;
12161  debug ("Flag");
12162  debug ("X = %d\n", x);
12163  showlist (The first, second, and third items.);
12164  report (x>y, "x is %d but y is %d", x, y);
12165}
12166
12167// Check long long types.
12168#define BIG64 18446744073709551615ull
12169#define BIG32 4294967295ul
12170#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12171#if !BIG_OK
12172  your preprocessor is broken;
12173#endif
12174#if BIG_OK
12175#else
12176  your preprocessor is broken;
12177#endif
12178static long long int bignum = -9223372036854775807LL;
12179static unsigned long long int ubignum = BIG64;
12180
12181struct incomplete_array
12182{
12183  int datasize;
12184  double data[];
12185};
12186
12187struct named_init {
12188  int number;
12189  const wchar_t *name;
12190  double average;
12191};
12192
12193typedef const char *ccp;
12194
12195static inline int
12196test_restrict (ccp restrict text)
12197{
12198  // See if C++-style comments work.
12199  // Iterate through items via the restricted pointer.
12200  // Also check for declarations in for loops.
12201  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12202    continue;
12203  return 0;
12204}
12205
12206// Check varargs and va_copy.
12207static void
12208test_varargs (const char *format, ...)
12209{
12210  va_list args;
12211  va_start (args, format);
12212  va_list args_copy;
12213  va_copy (args_copy, args);
12214
12215  const char *str;
12216  int number;
12217  float fnumber;
12218
12219  while (*format)
12220    {
12221      switch (*format++)
12222	{
12223	case 's': // string
12224	  str = va_arg (args_copy, const char *);
12225	  break;
12226	case 'd': // int
12227	  number = va_arg (args_copy, int);
12228	  break;
12229	case 'f': // float
12230	  fnumber = va_arg (args_copy, double);
12231	  break;
12232	default:
12233	  break;
12234	}
12235    }
12236  va_end (args_copy);
12237  va_end (args);
12238}
12239
12240int
12241main ()
12242{
12243
12244  // Check bool.
12245  _Bool success = false;
12246
12247  // Check restrict.
12248  if (test_restrict ("String literal") == 0)
12249    success = true;
12250  char *restrict newvar = "Another string";
12251
12252  // Check varargs.
12253  test_varargs ("s, d' f .", "string", 65, 34.234);
12254  test_varargs_macros ();
12255
12256  // Check flexible array members.
12257  struct incomplete_array *ia =
12258    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12259  ia->datasize = 10;
12260  for (int i = 0; i < ia->datasize; ++i)
12261    ia->data[i] = i * 1.234;
12262
12263  // Check named initializers.
12264  struct named_init ni = {
12265    .number = 34,
12266    .name = L"Test wide string",
12267    .average = 543.34343,
12268  };
12269
12270  ni.number = 58;
12271
12272  int dynamic_array[ni.number];
12273  dynamic_array[ni.number - 1] = 543;
12274
12275  // work around unused variable warnings
12276  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12277	  || dynamic_array[ni.number - 1] != 543);
12278
12279  ;
12280  return 0;
12281}
12282_ACEOF
12283for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12284do
12285  CC="$ac_save_CC $ac_arg"
12286  if ac_fn_c_try_compile "$LINENO"; then :
12287  ac_cv_prog_cc_c99=$ac_arg
12288fi
12289rm -f core conftest.err conftest.$ac_objext
12290  test "x$ac_cv_prog_cc_c99" != "xno" && break
12291done
12292rm -f conftest.$ac_ext
12293CC=$ac_save_CC
12294
12295fi
12296# AC_CACHE_VAL
12297case "x$ac_cv_prog_cc_c99" in
12298  x)
12299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12300$as_echo "none needed" >&6; } ;;
12301  xno)
12302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12303$as_echo "unsupported" >&6; } ;;
12304  *)
12305    CC="$CC $ac_cv_prog_cc_c99"
12306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12307$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12308esac
12309if test "x$ac_cv_prog_cc_c99" != xno; then :
12310
12311fi
12312
12313
12314
12315
12316
12317
12318ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12319if test "x$ac_cv_have_decl___clang__" = xyes; then :
12320  CLANGCC="yes"
12321else
12322  CLANGCC="no"
12323fi
12324
12325ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12326if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12327  INTELCC="yes"
12328else
12329  INTELCC="no"
12330fi
12331
12332ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12333if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12334  SUNCC="yes"
12335else
12336  SUNCC="no"
12337fi
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12348	if test -n "$ac_tool_prefix"; then
12349  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12350set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if ${ac_cv_path_PKG_CONFIG+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  case $PKG_CONFIG in
12357  [\\/]* | ?:[\\/]*)
12358  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12359  ;;
12360  *)
12361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364  IFS=$as_save_IFS
12365  test -z "$as_dir" && as_dir=.
12366    for ac_exec_ext in '' $ac_executable_extensions; do
12367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12368    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370    break 2
12371  fi
12372done
12373  done
12374IFS=$as_save_IFS
12375
12376  ;;
12377esac
12378fi
12379PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12380if test -n "$PKG_CONFIG"; then
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12382$as_echo "$PKG_CONFIG" >&6; }
12383else
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387
12388
12389fi
12390if test -z "$ac_cv_path_PKG_CONFIG"; then
12391  ac_pt_PKG_CONFIG=$PKG_CONFIG
12392  # Extract the first word of "pkg-config", so it can be a program name with args.
12393set dummy pkg-config; ac_word=$2
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395$as_echo_n "checking for $ac_word... " >&6; }
12396if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12397  $as_echo_n "(cached) " >&6
12398else
12399  case $ac_pt_PKG_CONFIG in
12400  [\\/]* | ?:[\\/]*)
12401  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12402  ;;
12403  *)
12404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407  IFS=$as_save_IFS
12408  test -z "$as_dir" && as_dir=.
12409    for ac_exec_ext in '' $ac_executable_extensions; do
12410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413    break 2
12414  fi
12415done
12416  done
12417IFS=$as_save_IFS
12418
12419  ;;
12420esac
12421fi
12422ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12423if test -n "$ac_pt_PKG_CONFIG"; then
12424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12425$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12426else
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428$as_echo "no" >&6; }
12429fi
12430
12431  if test "x$ac_pt_PKG_CONFIG" = x; then
12432    PKG_CONFIG=""
12433  else
12434    case $cross_compiling:$ac_tool_warned in
12435yes:)
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12438ac_tool_warned=yes ;;
12439esac
12440    PKG_CONFIG=$ac_pt_PKG_CONFIG
12441  fi
12442else
12443  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12444fi
12445
12446fi
12447if test -n "$PKG_CONFIG"; then
12448	_pkg_min_version=0.9.0
12449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12450$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12451	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12453$as_echo "yes" >&6; }
12454	else
12455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
12457		PKG_CONFIG=""
12458	fi
12459fi
12460
12461
12462
12463
12464
12465# Check whether --enable-selective-werror was given.
12466if test "${enable_selective_werror+set}" = set; then :
12467  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12468else
12469  SELECTIVE_WERROR=yes
12470fi
12471
12472
12473
12474
12475
12476# -v is too short to test reliably with XORG_TESTSET_CFLAG
12477if test "x$SUNCC" = "xyes"; then
12478    BASE_CFLAGS="-v"
12479else
12480    BASE_CFLAGS=""
12481fi
12482
12483# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497xorg_testset_save_CFLAGS="$CFLAGS"
12498
12499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12504  $as_echo_n "(cached) " >&6
12505else
12506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507/* end confdefs.h.  */
12508int i;
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511  xorg_cv_cc_flag_unknown_warning_option=yes
12512else
12513  xorg_cv_cc_flag_unknown_warning_option=no
12514fi
12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12520	CFLAGS="$xorg_testset_save_CFLAGS"
12521fi
12522
12523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12526	fi
12527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h.  */
12535int i;
12536_ACEOF
12537if ac_fn_c_try_compile "$LINENO"; then :
12538  xorg_cv_cc_flag_unused_command_line_argument=yes
12539else
12540  xorg_cv_cc_flag_unused_command_line_argument=no
12541fi
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12547	CFLAGS="$xorg_testset_save_CFLAGS"
12548fi
12549
12550found="no"
12551
12552	if test $found = "no" ; then
12553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555		fi
12556
12557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12559		fi
12560
12561		CFLAGS="$CFLAGS -Wall"
12562
12563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12564$as_echo_n "checking if $CC supports -Wall... " >&6; }
12565		cacheid=xorg_cv_cc_flag__Wall
12566		if eval \${$cacheid+:} false; then :
12567  $as_echo_n "(cached) " >&6
12568else
12569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h.  */
12571int i;
12572int
12573main ()
12574{
12575
12576  ;
12577  return 0;
12578}
12579_ACEOF
12580if ac_fn_c_try_link "$LINENO"; then :
12581  eval $cacheid=yes
12582else
12583  eval $cacheid=no
12584fi
12585rm -f core conftest.err conftest.$ac_objext \
12586    conftest$ac_exeext conftest.$ac_ext
12587fi
12588
12589
12590		CFLAGS="$xorg_testset_save_CFLAGS"
12591
12592		eval supported=\$$cacheid
12593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12594$as_echo "$supported" >&6; }
12595		if test "$supported" = "yes" ; then
12596			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12597			found="yes"
12598		fi
12599	fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615xorg_testset_save_CFLAGS="$CFLAGS"
12616
12617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12622  $as_echo_n "(cached) " >&6
12623else
12624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h.  */
12626int i;
12627_ACEOF
12628if ac_fn_c_try_compile "$LINENO"; then :
12629  xorg_cv_cc_flag_unknown_warning_option=yes
12630else
12631  xorg_cv_cc_flag_unknown_warning_option=no
12632fi
12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12638	CFLAGS="$xorg_testset_save_CFLAGS"
12639fi
12640
12641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12644	fi
12645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12649  $as_echo_n "(cached) " >&6
12650else
12651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652/* end confdefs.h.  */
12653int i;
12654_ACEOF
12655if ac_fn_c_try_compile "$LINENO"; then :
12656  xorg_cv_cc_flag_unused_command_line_argument=yes
12657else
12658  xorg_cv_cc_flag_unused_command_line_argument=no
12659fi
12660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661fi
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12665	CFLAGS="$xorg_testset_save_CFLAGS"
12666fi
12667
12668found="no"
12669
12670	if test $found = "no" ; then
12671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12673		fi
12674
12675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12677		fi
12678
12679		CFLAGS="$CFLAGS -Wpointer-arith"
12680
12681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12682$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12683		cacheid=xorg_cv_cc_flag__Wpointer_arith
12684		if eval \${$cacheid+:} false; then :
12685  $as_echo_n "(cached) " >&6
12686else
12687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h.  */
12689int i;
12690int
12691main ()
12692{
12693
12694  ;
12695  return 0;
12696}
12697_ACEOF
12698if ac_fn_c_try_link "$LINENO"; then :
12699  eval $cacheid=yes
12700else
12701  eval $cacheid=no
12702fi
12703rm -f core conftest.err conftest.$ac_objext \
12704    conftest$ac_exeext conftest.$ac_ext
12705fi
12706
12707
12708		CFLAGS="$xorg_testset_save_CFLAGS"
12709
12710		eval supported=\$$cacheid
12711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12712$as_echo "$supported" >&6; }
12713		if test "$supported" = "yes" ; then
12714			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12715			found="yes"
12716		fi
12717	fi
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733xorg_testset_save_CFLAGS="$CFLAGS"
12734
12735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743/* end confdefs.h.  */
12744int i;
12745_ACEOF
12746if ac_fn_c_try_compile "$LINENO"; then :
12747  xorg_cv_cc_flag_unknown_warning_option=yes
12748else
12749  xorg_cv_cc_flag_unknown_warning_option=no
12750fi
12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12756	CFLAGS="$xorg_testset_save_CFLAGS"
12757fi
12758
12759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12762	fi
12763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h.  */
12771int i;
12772_ACEOF
12773if ac_fn_c_try_compile "$LINENO"; then :
12774  xorg_cv_cc_flag_unused_command_line_argument=yes
12775else
12776  xorg_cv_cc_flag_unused_command_line_argument=no
12777fi
12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779fi
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12783	CFLAGS="$xorg_testset_save_CFLAGS"
12784fi
12785
12786found="no"
12787
12788	if test $found = "no" ; then
12789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791		fi
12792
12793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12795		fi
12796
12797		CFLAGS="$CFLAGS -Wmissing-declarations"
12798
12799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12800$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12801		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12802		if eval \${$cacheid+:} false; then :
12803  $as_echo_n "(cached) " >&6
12804else
12805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807int i;
12808int
12809main ()
12810{
12811
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"; then :
12817  eval $cacheid=yes
12818else
12819  eval $cacheid=no
12820fi
12821rm -f core conftest.err conftest.$ac_objext \
12822    conftest$ac_exeext conftest.$ac_ext
12823fi
12824
12825
12826		CFLAGS="$xorg_testset_save_CFLAGS"
12827
12828		eval supported=\$$cacheid
12829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12830$as_echo "$supported" >&6; }
12831		if test "$supported" = "yes" ; then
12832			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12833			found="yes"
12834		fi
12835	fi
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851xorg_testset_save_CFLAGS="$CFLAGS"
12852
12853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12858  $as_echo_n "(cached) " >&6
12859else
12860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862int i;
12863_ACEOF
12864if ac_fn_c_try_compile "$LINENO"; then :
12865  xorg_cv_cc_flag_unknown_warning_option=yes
12866else
12867  xorg_cv_cc_flag_unknown_warning_option=no
12868fi
12869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870fi
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12874	CFLAGS="$xorg_testset_save_CFLAGS"
12875fi
12876
12877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12880	fi
12881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12885  $as_echo_n "(cached) " >&6
12886else
12887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888/* end confdefs.h.  */
12889int i;
12890_ACEOF
12891if ac_fn_c_try_compile "$LINENO"; then :
12892  xorg_cv_cc_flag_unused_command_line_argument=yes
12893else
12894  xorg_cv_cc_flag_unused_command_line_argument=no
12895fi
12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897fi
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12901	CFLAGS="$xorg_testset_save_CFLAGS"
12902fi
12903
12904found="no"
12905
12906	if test $found = "no" ; then
12907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12909		fi
12910
12911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12913		fi
12914
12915		CFLAGS="$CFLAGS -Wformat=2"
12916
12917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12918$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12919		cacheid=xorg_cv_cc_flag__Wformat_2
12920		if eval \${$cacheid+:} false; then :
12921  $as_echo_n "(cached) " >&6
12922else
12923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924/* end confdefs.h.  */
12925int i;
12926int
12927main ()
12928{
12929
12930  ;
12931  return 0;
12932}
12933_ACEOF
12934if ac_fn_c_try_link "$LINENO"; then :
12935  eval $cacheid=yes
12936else
12937  eval $cacheid=no
12938fi
12939rm -f core conftest.err conftest.$ac_objext \
12940    conftest$ac_exeext conftest.$ac_ext
12941fi
12942
12943
12944		CFLAGS="$xorg_testset_save_CFLAGS"
12945
12946		eval supported=\$$cacheid
12947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12948$as_echo "$supported" >&6; }
12949		if test "$supported" = "yes" ; then
12950			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12951			found="yes"
12952		fi
12953	fi
12954
12955	if test $found = "no" ; then
12956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12958		fi
12959
12960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12962		fi
12963
12964		CFLAGS="$CFLAGS -Wformat"
12965
12966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12967$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12968		cacheid=xorg_cv_cc_flag__Wformat
12969		if eval \${$cacheid+:} false; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h.  */
12974int i;
12975int
12976main ()
12977{
12978
12979  ;
12980  return 0;
12981}
12982_ACEOF
12983if ac_fn_c_try_link "$LINENO"; then :
12984  eval $cacheid=yes
12985else
12986  eval $cacheid=no
12987fi
12988rm -f core conftest.err conftest.$ac_objext \
12989    conftest$ac_exeext conftest.$ac_ext
12990fi
12991
12992
12993		CFLAGS="$xorg_testset_save_CFLAGS"
12994
12995		eval supported=\$$cacheid
12996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12997$as_echo "$supported" >&6; }
12998		if test "$supported" = "yes" ; then
12999			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13000			found="yes"
13001		fi
13002	fi
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020xorg_testset_save_CFLAGS="$CFLAGS"
13021
13022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13027  $as_echo_n "(cached) " >&6
13028else
13029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h.  */
13031int i;
13032_ACEOF
13033if ac_fn_c_try_compile "$LINENO"; then :
13034  xorg_cv_cc_flag_unknown_warning_option=yes
13035else
13036  xorg_cv_cc_flag_unknown_warning_option=no
13037fi
13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039fi
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13043	CFLAGS="$xorg_testset_save_CFLAGS"
13044fi
13045
13046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049	fi
13050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13054  $as_echo_n "(cached) " >&6
13055else
13056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057/* end confdefs.h.  */
13058int i;
13059_ACEOF
13060if ac_fn_c_try_compile "$LINENO"; then :
13061  xorg_cv_cc_flag_unused_command_line_argument=yes
13062else
13063  xorg_cv_cc_flag_unused_command_line_argument=no
13064fi
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066fi
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13070	CFLAGS="$xorg_testset_save_CFLAGS"
13071fi
13072
13073found="no"
13074
13075	if test $found = "no" ; then
13076		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13078		fi
13079
13080		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13082		fi
13083
13084		CFLAGS="$CFLAGS -Wstrict-prototypes"
13085
13086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13087$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13088		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13089		if eval \${$cacheid+:} false; then :
13090  $as_echo_n "(cached) " >&6
13091else
13092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h.  */
13094int i;
13095int
13096main ()
13097{
13098
13099  ;
13100  return 0;
13101}
13102_ACEOF
13103if ac_fn_c_try_link "$LINENO"; then :
13104  eval $cacheid=yes
13105else
13106  eval $cacheid=no
13107fi
13108rm -f core conftest.err conftest.$ac_objext \
13109    conftest$ac_exeext conftest.$ac_ext
13110fi
13111
13112
13113		CFLAGS="$xorg_testset_save_CFLAGS"
13114
13115		eval supported=\$$cacheid
13116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13117$as_echo "$supported" >&6; }
13118		if test "$supported" = "yes" ; then
13119			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13120			found="yes"
13121		fi
13122	fi
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138xorg_testset_save_CFLAGS="$CFLAGS"
13139
13140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13145  $as_echo_n "(cached) " >&6
13146else
13147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149int i;
13150_ACEOF
13151if ac_fn_c_try_compile "$LINENO"; then :
13152  xorg_cv_cc_flag_unknown_warning_option=yes
13153else
13154  xorg_cv_cc_flag_unknown_warning_option=no
13155fi
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13161	CFLAGS="$xorg_testset_save_CFLAGS"
13162fi
13163
13164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167	fi
13168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13172  $as_echo_n "(cached) " >&6
13173else
13174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175/* end confdefs.h.  */
13176int i;
13177_ACEOF
13178if ac_fn_c_try_compile "$LINENO"; then :
13179  xorg_cv_cc_flag_unused_command_line_argument=yes
13180else
13181  xorg_cv_cc_flag_unused_command_line_argument=no
13182fi
13183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184fi
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13188	CFLAGS="$xorg_testset_save_CFLAGS"
13189fi
13190
13191found="no"
13192
13193	if test $found = "no" ; then
13194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13196		fi
13197
13198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13200		fi
13201
13202		CFLAGS="$CFLAGS -Wmissing-prototypes"
13203
13204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13205$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13206		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13207		if eval \${$cacheid+:} false; then :
13208  $as_echo_n "(cached) " >&6
13209else
13210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* end confdefs.h.  */
13212int i;
13213int
13214main ()
13215{
13216
13217  ;
13218  return 0;
13219}
13220_ACEOF
13221if ac_fn_c_try_link "$LINENO"; then :
13222  eval $cacheid=yes
13223else
13224  eval $cacheid=no
13225fi
13226rm -f core conftest.err conftest.$ac_objext \
13227    conftest$ac_exeext conftest.$ac_ext
13228fi
13229
13230
13231		CFLAGS="$xorg_testset_save_CFLAGS"
13232
13233		eval supported=\$$cacheid
13234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13235$as_echo "$supported" >&6; }
13236		if test "$supported" = "yes" ; then
13237			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13238			found="yes"
13239		fi
13240	fi
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256xorg_testset_save_CFLAGS="$CFLAGS"
13257
13258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13263  $as_echo_n "(cached) " >&6
13264else
13265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266/* end confdefs.h.  */
13267int i;
13268_ACEOF
13269if ac_fn_c_try_compile "$LINENO"; then :
13270  xorg_cv_cc_flag_unknown_warning_option=yes
13271else
13272  xorg_cv_cc_flag_unknown_warning_option=no
13273fi
13274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275fi
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13279	CFLAGS="$xorg_testset_save_CFLAGS"
13280fi
13281
13282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13285	fi
13286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h.  */
13294int i;
13295_ACEOF
13296if ac_fn_c_try_compile "$LINENO"; then :
13297  xorg_cv_cc_flag_unused_command_line_argument=yes
13298else
13299  xorg_cv_cc_flag_unused_command_line_argument=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302fi
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13306	CFLAGS="$xorg_testset_save_CFLAGS"
13307fi
13308
13309found="no"
13310
13311	if test $found = "no" ; then
13312		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314		fi
13315
13316		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13318		fi
13319
13320		CFLAGS="$CFLAGS -Wnested-externs"
13321
13322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13323$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13324		cacheid=xorg_cv_cc_flag__Wnested_externs
13325		if eval \${$cacheid+:} false; then :
13326  $as_echo_n "(cached) " >&6
13327else
13328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330int i;
13331int
13332main ()
13333{
13334
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339if ac_fn_c_try_link "$LINENO"; then :
13340  eval $cacheid=yes
13341else
13342  eval $cacheid=no
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345    conftest$ac_exeext conftest.$ac_ext
13346fi
13347
13348
13349		CFLAGS="$xorg_testset_save_CFLAGS"
13350
13351		eval supported=\$$cacheid
13352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13353$as_echo "$supported" >&6; }
13354		if test "$supported" = "yes" ; then
13355			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13356			found="yes"
13357		fi
13358	fi
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374xorg_testset_save_CFLAGS="$CFLAGS"
13375
13376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13381  $as_echo_n "(cached) " >&6
13382else
13383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384/* end confdefs.h.  */
13385int i;
13386_ACEOF
13387if ac_fn_c_try_compile "$LINENO"; then :
13388  xorg_cv_cc_flag_unknown_warning_option=yes
13389else
13390  xorg_cv_cc_flag_unknown_warning_option=no
13391fi
13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13397	CFLAGS="$xorg_testset_save_CFLAGS"
13398fi
13399
13400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403	fi
13404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13408  $as_echo_n "(cached) " >&6
13409else
13410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411/* end confdefs.h.  */
13412int i;
13413_ACEOF
13414if ac_fn_c_try_compile "$LINENO"; then :
13415  xorg_cv_cc_flag_unused_command_line_argument=yes
13416else
13417  xorg_cv_cc_flag_unused_command_line_argument=no
13418fi
13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13424	CFLAGS="$xorg_testset_save_CFLAGS"
13425fi
13426
13427found="no"
13428
13429	if test $found = "no" ; then
13430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432		fi
13433
13434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13436		fi
13437
13438		CFLAGS="$CFLAGS -Wbad-function-cast"
13439
13440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13441$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13442		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13443		if eval \${$cacheid+:} false; then :
13444  $as_echo_n "(cached) " >&6
13445else
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448int i;
13449int
13450main ()
13451{
13452
13453  ;
13454  return 0;
13455}
13456_ACEOF
13457if ac_fn_c_try_link "$LINENO"; then :
13458  eval $cacheid=yes
13459else
13460  eval $cacheid=no
13461fi
13462rm -f core conftest.err conftest.$ac_objext \
13463    conftest$ac_exeext conftest.$ac_ext
13464fi
13465
13466
13467		CFLAGS="$xorg_testset_save_CFLAGS"
13468
13469		eval supported=\$$cacheid
13470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13471$as_echo "$supported" >&6; }
13472		if test "$supported" = "yes" ; then
13473			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13474			found="yes"
13475		fi
13476	fi
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492xorg_testset_save_CFLAGS="$CFLAGS"
13493
13494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13499  $as_echo_n "(cached) " >&6
13500else
13501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503int i;
13504_ACEOF
13505if ac_fn_c_try_compile "$LINENO"; then :
13506  xorg_cv_cc_flag_unknown_warning_option=yes
13507else
13508  xorg_cv_cc_flag_unknown_warning_option=no
13509fi
13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13515	CFLAGS="$xorg_testset_save_CFLAGS"
13516fi
13517
13518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521	fi
13522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529/* end confdefs.h.  */
13530int i;
13531_ACEOF
13532if ac_fn_c_try_compile "$LINENO"; then :
13533  xorg_cv_cc_flag_unused_command_line_argument=yes
13534else
13535  xorg_cv_cc_flag_unused_command_line_argument=no
13536fi
13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13542	CFLAGS="$xorg_testset_save_CFLAGS"
13543fi
13544
13545found="no"
13546
13547	if test $found = "no" ; then
13548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550		fi
13551
13552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13554		fi
13555
13556		CFLAGS="$CFLAGS -Wold-style-definition"
13557
13558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13559$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13560		cacheid=xorg_cv_cc_flag__Wold_style_definition
13561		if eval \${$cacheid+:} false; then :
13562  $as_echo_n "(cached) " >&6
13563else
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566int i;
13567int
13568main ()
13569{
13570
13571  ;
13572  return 0;
13573}
13574_ACEOF
13575if ac_fn_c_try_link "$LINENO"; then :
13576  eval $cacheid=yes
13577else
13578  eval $cacheid=no
13579fi
13580rm -f core conftest.err conftest.$ac_objext \
13581    conftest$ac_exeext conftest.$ac_ext
13582fi
13583
13584
13585		CFLAGS="$xorg_testset_save_CFLAGS"
13586
13587		eval supported=\$$cacheid
13588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13589$as_echo "$supported" >&6; }
13590		if test "$supported" = "yes" ; then
13591			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13592			found="yes"
13593		fi
13594	fi
13595
13596	if test $found = "no" ; then
13597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13599		fi
13600
13601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13603		fi
13604
13605		CFLAGS="$CFLAGS -fd"
13606
13607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13608$as_echo_n "checking if $CC supports -fd... " >&6; }
13609		cacheid=xorg_cv_cc_flag__fd
13610		if eval \${$cacheid+:} false; then :
13611  $as_echo_n "(cached) " >&6
13612else
13613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614/* end confdefs.h.  */
13615int i;
13616int
13617main ()
13618{
13619
13620  ;
13621  return 0;
13622}
13623_ACEOF
13624if ac_fn_c_try_link "$LINENO"; then :
13625  eval $cacheid=yes
13626else
13627  eval $cacheid=no
13628fi
13629rm -f core conftest.err conftest.$ac_objext \
13630    conftest$ac_exeext conftest.$ac_ext
13631fi
13632
13633
13634		CFLAGS="$xorg_testset_save_CFLAGS"
13635
13636		eval supported=\$$cacheid
13637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13638$as_echo "$supported" >&6; }
13639		if test "$supported" = "yes" ; then
13640			BASE_CFLAGS="$BASE_CFLAGS -fd"
13641			found="yes"
13642		fi
13643	fi
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659xorg_testset_save_CFLAGS="$CFLAGS"
13660
13661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13666  $as_echo_n "(cached) " >&6
13667else
13668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669/* end confdefs.h.  */
13670int i;
13671_ACEOF
13672if ac_fn_c_try_compile "$LINENO"; then :
13673  xorg_cv_cc_flag_unknown_warning_option=yes
13674else
13675  xorg_cv_cc_flag_unknown_warning_option=no
13676fi
13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13682	CFLAGS="$xorg_testset_save_CFLAGS"
13683fi
13684
13685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13688	fi
13689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13692if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
13701else
13702  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
13707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13709	CFLAGS="$xorg_testset_save_CFLAGS"
13710fi
13711
13712found="no"
13713
13714	if test $found = "no" ; then
13715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13717		fi
13718
13719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13721		fi
13722
13723		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13724
13725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13726$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13727		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13728		if eval \${$cacheid+:} false; then :
13729  $as_echo_n "(cached) " >&6
13730else
13731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h.  */
13733int i;
13734int
13735main ()
13736{
13737
13738  ;
13739  return 0;
13740}
13741_ACEOF
13742if ac_fn_c_try_link "$LINENO"; then :
13743  eval $cacheid=yes
13744else
13745  eval $cacheid=no
13746fi
13747rm -f core conftest.err conftest.$ac_objext \
13748    conftest$ac_exeext conftest.$ac_ext
13749fi
13750
13751
13752		CFLAGS="$xorg_testset_save_CFLAGS"
13753
13754		eval supported=\$$cacheid
13755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13756$as_echo "$supported" >&6; }
13757		if test "$supported" = "yes" ; then
13758			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13759			found="yes"
13760		fi
13761	fi
13762
13763
13764
13765
13766
13767# This chunk adds additional warnings that could catch undesired effects.
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781xorg_testset_save_CFLAGS="$CFLAGS"
13782
13783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791/* end confdefs.h.  */
13792int i;
13793_ACEOF
13794if ac_fn_c_try_compile "$LINENO"; then :
13795  xorg_cv_cc_flag_unknown_warning_option=yes
13796else
13797  xorg_cv_cc_flag_unknown_warning_option=no
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13804	CFLAGS="$xorg_testset_save_CFLAGS"
13805fi
13806
13807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13810	fi
13811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13815  $as_echo_n "(cached) " >&6
13816else
13817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818/* end confdefs.h.  */
13819int i;
13820_ACEOF
13821if ac_fn_c_try_compile "$LINENO"; then :
13822  xorg_cv_cc_flag_unused_command_line_argument=yes
13823else
13824  xorg_cv_cc_flag_unused_command_line_argument=no
13825fi
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13831	CFLAGS="$xorg_testset_save_CFLAGS"
13832fi
13833
13834found="no"
13835
13836	if test $found = "no" ; then
13837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839		fi
13840
13841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13843		fi
13844
13845		CFLAGS="$CFLAGS -Wunused"
13846
13847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13848$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13849		cacheid=xorg_cv_cc_flag__Wunused
13850		if eval \${$cacheid+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854/* end confdefs.h.  */
13855int i;
13856int
13857main ()
13858{
13859
13860  ;
13861  return 0;
13862}
13863_ACEOF
13864if ac_fn_c_try_link "$LINENO"; then :
13865  eval $cacheid=yes
13866else
13867  eval $cacheid=no
13868fi
13869rm -f core conftest.err conftest.$ac_objext \
13870    conftest$ac_exeext conftest.$ac_ext
13871fi
13872
13873
13874		CFLAGS="$xorg_testset_save_CFLAGS"
13875
13876		eval supported=\$$cacheid
13877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13878$as_echo "$supported" >&6; }
13879		if test "$supported" = "yes" ; then
13880			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13881			found="yes"
13882		fi
13883	fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899xorg_testset_save_CFLAGS="$CFLAGS"
13900
13901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13906  $as_echo_n "(cached) " >&6
13907else
13908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h.  */
13910int i;
13911_ACEOF
13912if ac_fn_c_try_compile "$LINENO"; then :
13913  xorg_cv_cc_flag_unknown_warning_option=yes
13914else
13915  xorg_cv_cc_flag_unknown_warning_option=no
13916fi
13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918fi
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13922	CFLAGS="$xorg_testset_save_CFLAGS"
13923fi
13924
13925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928	fi
13929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13933  $as_echo_n "(cached) " >&6
13934else
13935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936/* end confdefs.h.  */
13937int i;
13938_ACEOF
13939if ac_fn_c_try_compile "$LINENO"; then :
13940  xorg_cv_cc_flag_unused_command_line_argument=yes
13941else
13942  xorg_cv_cc_flag_unused_command_line_argument=no
13943fi
13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945fi
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13949	CFLAGS="$xorg_testset_save_CFLAGS"
13950fi
13951
13952found="no"
13953
13954	if test $found = "no" ; then
13955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957		fi
13958
13959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13961		fi
13962
13963		CFLAGS="$CFLAGS -Wuninitialized"
13964
13965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13966$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13967		cacheid=xorg_cv_cc_flag__Wuninitialized
13968		if eval \${$cacheid+:} false; then :
13969  $as_echo_n "(cached) " >&6
13970else
13971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h.  */
13973int i;
13974int
13975main ()
13976{
13977
13978  ;
13979  return 0;
13980}
13981_ACEOF
13982if ac_fn_c_try_link "$LINENO"; then :
13983  eval $cacheid=yes
13984else
13985  eval $cacheid=no
13986fi
13987rm -f core conftest.err conftest.$ac_objext \
13988    conftest$ac_exeext conftest.$ac_ext
13989fi
13990
13991
13992		CFLAGS="$xorg_testset_save_CFLAGS"
13993
13994		eval supported=\$$cacheid
13995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13996$as_echo "$supported" >&6; }
13997		if test "$supported" = "yes" ; then
13998			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13999			found="yes"
14000		fi
14001	fi
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017xorg_testset_save_CFLAGS="$CFLAGS"
14018
14019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027/* end confdefs.h.  */
14028int i;
14029_ACEOF
14030if ac_fn_c_try_compile "$LINENO"; then :
14031  xorg_cv_cc_flag_unknown_warning_option=yes
14032else
14033  xorg_cv_cc_flag_unknown_warning_option=no
14034fi
14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036fi
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14040	CFLAGS="$xorg_testset_save_CFLAGS"
14041fi
14042
14043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046	fi
14047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14051  $as_echo_n "(cached) " >&6
14052else
14053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054/* end confdefs.h.  */
14055int i;
14056_ACEOF
14057if ac_fn_c_try_compile "$LINENO"; then :
14058  xorg_cv_cc_flag_unused_command_line_argument=yes
14059else
14060  xorg_cv_cc_flag_unused_command_line_argument=no
14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063fi
14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14067	CFLAGS="$xorg_testset_save_CFLAGS"
14068fi
14069
14070found="no"
14071
14072	if test $found = "no" ; then
14073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075		fi
14076
14077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14079		fi
14080
14081		CFLAGS="$CFLAGS -Wshadow"
14082
14083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14084$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14085		cacheid=xorg_cv_cc_flag__Wshadow
14086		if eval \${$cacheid+:} false; then :
14087  $as_echo_n "(cached) " >&6
14088else
14089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091int i;
14092int
14093main ()
14094{
14095
14096  ;
14097  return 0;
14098}
14099_ACEOF
14100if ac_fn_c_try_link "$LINENO"; then :
14101  eval $cacheid=yes
14102else
14103  eval $cacheid=no
14104fi
14105rm -f core conftest.err conftest.$ac_objext \
14106    conftest$ac_exeext conftest.$ac_ext
14107fi
14108
14109
14110		CFLAGS="$xorg_testset_save_CFLAGS"
14111
14112		eval supported=\$$cacheid
14113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14114$as_echo "$supported" >&6; }
14115		if test "$supported" = "yes" ; then
14116			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14117			found="yes"
14118		fi
14119	fi
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135xorg_testset_save_CFLAGS="$CFLAGS"
14136
14137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14142  $as_echo_n "(cached) " >&6
14143else
14144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h.  */
14146int i;
14147_ACEOF
14148if ac_fn_c_try_compile "$LINENO"; then :
14149  xorg_cv_cc_flag_unknown_warning_option=yes
14150else
14151  xorg_cv_cc_flag_unknown_warning_option=no
14152fi
14153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14158	CFLAGS="$xorg_testset_save_CFLAGS"
14159fi
14160
14161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164	fi
14165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14169  $as_echo_n "(cached) " >&6
14170else
14171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172/* end confdefs.h.  */
14173int i;
14174_ACEOF
14175if ac_fn_c_try_compile "$LINENO"; then :
14176  xorg_cv_cc_flag_unused_command_line_argument=yes
14177else
14178  xorg_cv_cc_flag_unused_command_line_argument=no
14179fi
14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14185	CFLAGS="$xorg_testset_save_CFLAGS"
14186fi
14187
14188found="no"
14189
14190	if test $found = "no" ; then
14191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193		fi
14194
14195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14197		fi
14198
14199		CFLAGS="$CFLAGS -Wmissing-noreturn"
14200
14201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14202$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14203		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14204		if eval \${$cacheid+:} false; then :
14205  $as_echo_n "(cached) " >&6
14206else
14207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209int i;
14210int
14211main ()
14212{
14213
14214  ;
14215  return 0;
14216}
14217_ACEOF
14218if ac_fn_c_try_link "$LINENO"; then :
14219  eval $cacheid=yes
14220else
14221  eval $cacheid=no
14222fi
14223rm -f core conftest.err conftest.$ac_objext \
14224    conftest$ac_exeext conftest.$ac_ext
14225fi
14226
14227
14228		CFLAGS="$xorg_testset_save_CFLAGS"
14229
14230		eval supported=\$$cacheid
14231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14232$as_echo "$supported" >&6; }
14233		if test "$supported" = "yes" ; then
14234			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14235			found="yes"
14236		fi
14237	fi
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253xorg_testset_save_CFLAGS="$CFLAGS"
14254
14255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14260  $as_echo_n "(cached) " >&6
14261else
14262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264int i;
14265_ACEOF
14266if ac_fn_c_try_compile "$LINENO"; then :
14267  xorg_cv_cc_flag_unknown_warning_option=yes
14268else
14269  xorg_cv_cc_flag_unknown_warning_option=no
14270fi
14271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272fi
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14276	CFLAGS="$xorg_testset_save_CFLAGS"
14277fi
14278
14279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282	fi
14283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14287  $as_echo_n "(cached) " >&6
14288else
14289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290/* end confdefs.h.  */
14291int i;
14292_ACEOF
14293if ac_fn_c_try_compile "$LINENO"; then :
14294  xorg_cv_cc_flag_unused_command_line_argument=yes
14295else
14296  xorg_cv_cc_flag_unused_command_line_argument=no
14297fi
14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299fi
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14303	CFLAGS="$xorg_testset_save_CFLAGS"
14304fi
14305
14306found="no"
14307
14308	if test $found = "no" ; then
14309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311		fi
14312
14313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315		fi
14316
14317		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14318
14319		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14320$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14321		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14322		if eval \${$cacheid+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327int i;
14328int
14329main ()
14330{
14331
14332  ;
14333  return 0;
14334}
14335_ACEOF
14336if ac_fn_c_try_link "$LINENO"; then :
14337  eval $cacheid=yes
14338else
14339  eval $cacheid=no
14340fi
14341rm -f core conftest.err conftest.$ac_objext \
14342    conftest$ac_exeext conftest.$ac_ext
14343fi
14344
14345
14346		CFLAGS="$xorg_testset_save_CFLAGS"
14347
14348		eval supported=\$$cacheid
14349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14350$as_echo "$supported" >&6; }
14351		if test "$supported" = "yes" ; then
14352			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14353			found="yes"
14354		fi
14355	fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371xorg_testset_save_CFLAGS="$CFLAGS"
14372
14373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14378  $as_echo_n "(cached) " >&6
14379else
14380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h.  */
14382int i;
14383_ACEOF
14384if ac_fn_c_try_compile "$LINENO"; then :
14385  xorg_cv_cc_flag_unknown_warning_option=yes
14386else
14387  xorg_cv_cc_flag_unknown_warning_option=no
14388fi
14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390fi
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14394	CFLAGS="$xorg_testset_save_CFLAGS"
14395fi
14396
14397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14400	fi
14401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14405  $as_echo_n "(cached) " >&6
14406else
14407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h.  */
14409int i;
14410_ACEOF
14411if ac_fn_c_try_compile "$LINENO"; then :
14412  xorg_cv_cc_flag_unused_command_line_argument=yes
14413else
14414  xorg_cv_cc_flag_unused_command_line_argument=no
14415fi
14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417fi
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14421	CFLAGS="$xorg_testset_save_CFLAGS"
14422fi
14423
14424found="no"
14425
14426	if test $found = "no" ; then
14427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429		fi
14430
14431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14433		fi
14434
14435		CFLAGS="$CFLAGS -Wredundant-decls"
14436
14437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14438$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14439		cacheid=xorg_cv_cc_flag__Wredundant_decls
14440		if eval \${$cacheid+:} false; then :
14441  $as_echo_n "(cached) " >&6
14442else
14443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444/* end confdefs.h.  */
14445int i;
14446int
14447main ()
14448{
14449
14450  ;
14451  return 0;
14452}
14453_ACEOF
14454if ac_fn_c_try_link "$LINENO"; then :
14455  eval $cacheid=yes
14456else
14457  eval $cacheid=no
14458fi
14459rm -f core conftest.err conftest.$ac_objext \
14460    conftest$ac_exeext conftest.$ac_ext
14461fi
14462
14463
14464		CFLAGS="$xorg_testset_save_CFLAGS"
14465
14466		eval supported=\$$cacheid
14467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14468$as_echo "$supported" >&6; }
14469		if test "$supported" = "yes" ; then
14470			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14471			found="yes"
14472		fi
14473	fi
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489xorg_testset_save_CFLAGS="$CFLAGS"
14490
14491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14496  $as_echo_n "(cached) " >&6
14497else
14498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499/* end confdefs.h.  */
14500int i;
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"; then :
14503  xorg_cv_cc_flag_unknown_warning_option=yes
14504else
14505  xorg_cv_cc_flag_unknown_warning_option=no
14506fi
14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508fi
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14512	CFLAGS="$xorg_testset_save_CFLAGS"
14513fi
14514
14515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518	fi
14519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14523  $as_echo_n "(cached) " >&6
14524else
14525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527int i;
14528_ACEOF
14529if ac_fn_c_try_compile "$LINENO"; then :
14530  xorg_cv_cc_flag_unused_command_line_argument=yes
14531else
14532  xorg_cv_cc_flag_unused_command_line_argument=no
14533fi
14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535fi
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14539	CFLAGS="$xorg_testset_save_CFLAGS"
14540fi
14541
14542found="no"
14543
14544	if test $found = "no" ; then
14545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547		fi
14548
14549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14551		fi
14552
14553		CFLAGS="$CFLAGS -Wlogical-op"
14554
14555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14556$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14557		cacheid=xorg_cv_cc_flag__Wlogical_op
14558		if eval \${$cacheid+:} false; then :
14559  $as_echo_n "(cached) " >&6
14560else
14561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563int i;
14564int
14565main ()
14566{
14567
14568  ;
14569  return 0;
14570}
14571_ACEOF
14572if ac_fn_c_try_link "$LINENO"; then :
14573  eval $cacheid=yes
14574else
14575  eval $cacheid=no
14576fi
14577rm -f core conftest.err conftest.$ac_objext \
14578    conftest$ac_exeext conftest.$ac_ext
14579fi
14580
14581
14582		CFLAGS="$xorg_testset_save_CFLAGS"
14583
14584		eval supported=\$$cacheid
14585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14586$as_echo "$supported" >&6; }
14587		if test "$supported" = "yes" ; then
14588			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14589			found="yes"
14590		fi
14591	fi
14592
14593
14594
14595# These are currently disabled because they are noisy.  They will be enabled
14596# in the future once the codebase is sufficiently modernized to silence
14597# them.  For now, I don't want them to drown out the other warnings.
14598# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14599# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14600# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14601
14602# Turn some warnings into errors, so we don't accidently get successful builds
14603# when there are problems that should be fixed.
14604
14605if test "x$SELECTIVE_WERROR" = "xyes" ; then
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619xorg_testset_save_CFLAGS="$CFLAGS"
14620
14621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14622	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14626  $as_echo_n "(cached) " >&6
14627else
14628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629/* end confdefs.h.  */
14630int i;
14631_ACEOF
14632if ac_fn_c_try_compile "$LINENO"; then :
14633  xorg_cv_cc_flag_unknown_warning_option=yes
14634else
14635  xorg_cv_cc_flag_unknown_warning_option=no
14636fi
14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638fi
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14642	CFLAGS="$xorg_testset_save_CFLAGS"
14643fi
14644
14645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648	fi
14649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h.  */
14657int i;
14658_ACEOF
14659if ac_fn_c_try_compile "$LINENO"; then :
14660  xorg_cv_cc_flag_unused_command_line_argument=yes
14661else
14662  xorg_cv_cc_flag_unused_command_line_argument=no
14663fi
14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14669	CFLAGS="$xorg_testset_save_CFLAGS"
14670fi
14671
14672found="no"
14673
14674	if test $found = "no" ; then
14675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14677		fi
14678
14679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14681		fi
14682
14683		CFLAGS="$CFLAGS -Werror=implicit"
14684
14685		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14686$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14687		cacheid=xorg_cv_cc_flag__Werror_implicit
14688		if eval \${$cacheid+:} false; then :
14689  $as_echo_n "(cached) " >&6
14690else
14691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h.  */
14693int i;
14694int
14695main ()
14696{
14697
14698  ;
14699  return 0;
14700}
14701_ACEOF
14702if ac_fn_c_try_link "$LINENO"; then :
14703  eval $cacheid=yes
14704else
14705  eval $cacheid=no
14706fi
14707rm -f core conftest.err conftest.$ac_objext \
14708    conftest$ac_exeext conftest.$ac_ext
14709fi
14710
14711
14712		CFLAGS="$xorg_testset_save_CFLAGS"
14713
14714		eval supported=\$$cacheid
14715		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14716$as_echo "$supported" >&6; }
14717		if test "$supported" = "yes" ; then
14718			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14719			found="yes"
14720		fi
14721	fi
14722
14723	if test $found = "no" ; then
14724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726		fi
14727
14728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730		fi
14731
14732		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14733
14734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14735$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14736		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14737		if eval \${$cacheid+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742int i;
14743int
14744main ()
14745{
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"; then :
14752  eval $cacheid=yes
14753else
14754  eval $cacheid=no
14755fi
14756rm -f core conftest.err conftest.$ac_objext \
14757    conftest$ac_exeext conftest.$ac_ext
14758fi
14759
14760
14761		CFLAGS="$xorg_testset_save_CFLAGS"
14762
14763		eval supported=\$$cacheid
14764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14765$as_echo "$supported" >&6; }
14766		if test "$supported" = "yes" ; then
14767			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14768			found="yes"
14769		fi
14770	fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786xorg_testset_save_CFLAGS="$CFLAGS"
14787
14788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14793  $as_echo_n "(cached) " >&6
14794else
14795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h.  */
14797int i;
14798_ACEOF
14799if ac_fn_c_try_compile "$LINENO"; then :
14800  xorg_cv_cc_flag_unknown_warning_option=yes
14801else
14802  xorg_cv_cc_flag_unknown_warning_option=no
14803fi
14804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14809	CFLAGS="$xorg_testset_save_CFLAGS"
14810fi
14811
14812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815	fi
14816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14820  $as_echo_n "(cached) " >&6
14821else
14822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h.  */
14824int i;
14825_ACEOF
14826if ac_fn_c_try_compile "$LINENO"; then :
14827  xorg_cv_cc_flag_unused_command_line_argument=yes
14828else
14829  xorg_cv_cc_flag_unused_command_line_argument=no
14830fi
14831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14836	CFLAGS="$xorg_testset_save_CFLAGS"
14837fi
14838
14839found="no"
14840
14841	if test $found = "no" ; then
14842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844		fi
14845
14846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14848		fi
14849
14850		CFLAGS="$CFLAGS -Werror=nonnull"
14851
14852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14853$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14854		cacheid=xorg_cv_cc_flag__Werror_nonnull
14855		if eval \${$cacheid+:} false; then :
14856  $as_echo_n "(cached) " >&6
14857else
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860int i;
14861int
14862main ()
14863{
14864
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869if ac_fn_c_try_link "$LINENO"; then :
14870  eval $cacheid=yes
14871else
14872  eval $cacheid=no
14873fi
14874rm -f core conftest.err conftest.$ac_objext \
14875    conftest$ac_exeext conftest.$ac_ext
14876fi
14877
14878
14879		CFLAGS="$xorg_testset_save_CFLAGS"
14880
14881		eval supported=\$$cacheid
14882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14883$as_echo "$supported" >&6; }
14884		if test "$supported" = "yes" ; then
14885			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14886			found="yes"
14887		fi
14888	fi
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904xorg_testset_save_CFLAGS="$CFLAGS"
14905
14906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14911  $as_echo_n "(cached) " >&6
14912else
14913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914/* end confdefs.h.  */
14915int i;
14916_ACEOF
14917if ac_fn_c_try_compile "$LINENO"; then :
14918  xorg_cv_cc_flag_unknown_warning_option=yes
14919else
14920  xorg_cv_cc_flag_unknown_warning_option=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923fi
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14927	CFLAGS="$xorg_testset_save_CFLAGS"
14928fi
14929
14930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933	fi
14934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941/* end confdefs.h.  */
14942int i;
14943_ACEOF
14944if ac_fn_c_try_compile "$LINENO"; then :
14945  xorg_cv_cc_flag_unused_command_line_argument=yes
14946else
14947  xorg_cv_cc_flag_unused_command_line_argument=no
14948fi
14949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14954	CFLAGS="$xorg_testset_save_CFLAGS"
14955fi
14956
14957found="no"
14958
14959	if test $found = "no" ; then
14960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962		fi
14963
14964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14966		fi
14967
14968		CFLAGS="$CFLAGS -Werror=init-self"
14969
14970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14971$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14972		cacheid=xorg_cv_cc_flag__Werror_init_self
14973		if eval \${$cacheid+:} false; then :
14974  $as_echo_n "(cached) " >&6
14975else
14976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977/* end confdefs.h.  */
14978int i;
14979int
14980main ()
14981{
14982
14983  ;
14984  return 0;
14985}
14986_ACEOF
14987if ac_fn_c_try_link "$LINENO"; then :
14988  eval $cacheid=yes
14989else
14990  eval $cacheid=no
14991fi
14992rm -f core conftest.err conftest.$ac_objext \
14993    conftest$ac_exeext conftest.$ac_ext
14994fi
14995
14996
14997		CFLAGS="$xorg_testset_save_CFLAGS"
14998
14999		eval supported=\$$cacheid
15000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15001$as_echo "$supported" >&6; }
15002		if test "$supported" = "yes" ; then
15003			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15004			found="yes"
15005		fi
15006	fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022xorg_testset_save_CFLAGS="$CFLAGS"
15023
15024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15029  $as_echo_n "(cached) " >&6
15030else
15031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032/* end confdefs.h.  */
15033int i;
15034_ACEOF
15035if ac_fn_c_try_compile "$LINENO"; then :
15036  xorg_cv_cc_flag_unknown_warning_option=yes
15037else
15038  xorg_cv_cc_flag_unknown_warning_option=no
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041fi
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15045	CFLAGS="$xorg_testset_save_CFLAGS"
15046fi
15047
15048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051	fi
15052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15056  $as_echo_n "(cached) " >&6
15057else
15058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059/* end confdefs.h.  */
15060int i;
15061_ACEOF
15062if ac_fn_c_try_compile "$LINENO"; then :
15063  xorg_cv_cc_flag_unused_command_line_argument=yes
15064else
15065  xorg_cv_cc_flag_unused_command_line_argument=no
15066fi
15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068fi
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15072	CFLAGS="$xorg_testset_save_CFLAGS"
15073fi
15074
15075found="no"
15076
15077	if test $found = "no" ; then
15078		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080		fi
15081
15082		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15084		fi
15085
15086		CFLAGS="$CFLAGS -Werror=main"
15087
15088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15089$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15090		cacheid=xorg_cv_cc_flag__Werror_main
15091		if eval \${$cacheid+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h.  */
15096int i;
15097int
15098main ()
15099{
15100
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_link "$LINENO"; then :
15106  eval $cacheid=yes
15107else
15108  eval $cacheid=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111    conftest$ac_exeext conftest.$ac_ext
15112fi
15113
15114
15115		CFLAGS="$xorg_testset_save_CFLAGS"
15116
15117		eval supported=\$$cacheid
15118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15119$as_echo "$supported" >&6; }
15120		if test "$supported" = "yes" ; then
15121			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15122			found="yes"
15123		fi
15124	fi
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140xorg_testset_save_CFLAGS="$CFLAGS"
15141
15142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15147  $as_echo_n "(cached) " >&6
15148else
15149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150/* end confdefs.h.  */
15151int i;
15152_ACEOF
15153if ac_fn_c_try_compile "$LINENO"; then :
15154  xorg_cv_cc_flag_unknown_warning_option=yes
15155else
15156  xorg_cv_cc_flag_unknown_warning_option=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15163	CFLAGS="$xorg_testset_save_CFLAGS"
15164fi
15165
15166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169	fi
15170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15174  $as_echo_n "(cached) " >&6
15175else
15176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177/* end confdefs.h.  */
15178int i;
15179_ACEOF
15180if ac_fn_c_try_compile "$LINENO"; then :
15181  xorg_cv_cc_flag_unused_command_line_argument=yes
15182else
15183  xorg_cv_cc_flag_unused_command_line_argument=no
15184fi
15185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186fi
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15190	CFLAGS="$xorg_testset_save_CFLAGS"
15191fi
15192
15193found="no"
15194
15195	if test $found = "no" ; then
15196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198		fi
15199
15200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202		fi
15203
15204		CFLAGS="$CFLAGS -Werror=missing-braces"
15205
15206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15207$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15208		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15209		if eval \${$cacheid+:} false; then :
15210  $as_echo_n "(cached) " >&6
15211else
15212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214int i;
15215int
15216main ()
15217{
15218
15219  ;
15220  return 0;
15221}
15222_ACEOF
15223if ac_fn_c_try_link "$LINENO"; then :
15224  eval $cacheid=yes
15225else
15226  eval $cacheid=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext \
15229    conftest$ac_exeext conftest.$ac_ext
15230fi
15231
15232
15233		CFLAGS="$xorg_testset_save_CFLAGS"
15234
15235		eval supported=\$$cacheid
15236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15237$as_echo "$supported" >&6; }
15238		if test "$supported" = "yes" ; then
15239			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15240			found="yes"
15241		fi
15242	fi
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258xorg_testset_save_CFLAGS="$CFLAGS"
15259
15260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15265  $as_echo_n "(cached) " >&6
15266else
15267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h.  */
15269int i;
15270_ACEOF
15271if ac_fn_c_try_compile "$LINENO"; then :
15272  xorg_cv_cc_flag_unknown_warning_option=yes
15273else
15274  xorg_cv_cc_flag_unknown_warning_option=no
15275fi
15276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15277fi
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15280	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15281	CFLAGS="$xorg_testset_save_CFLAGS"
15282fi
15283
15284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15285	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287	fi
15288	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15292  $as_echo_n "(cached) " >&6
15293else
15294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h.  */
15296int i;
15297_ACEOF
15298if ac_fn_c_try_compile "$LINENO"; then :
15299  xorg_cv_cc_flag_unused_command_line_argument=yes
15300else
15301  xorg_cv_cc_flag_unused_command_line_argument=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304fi
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15307	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15308	CFLAGS="$xorg_testset_save_CFLAGS"
15309fi
15310
15311found="no"
15312
15313	if test $found = "no" ; then
15314		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15315			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316		fi
15317
15318		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15319			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15320		fi
15321
15322		CFLAGS="$CFLAGS -Werror=sequence-point"
15323
15324		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15325$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15326		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15327		if eval \${$cacheid+:} false; then :
15328  $as_echo_n "(cached) " >&6
15329else
15330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331/* end confdefs.h.  */
15332int i;
15333int
15334main ()
15335{
15336
15337  ;
15338  return 0;
15339}
15340_ACEOF
15341if ac_fn_c_try_link "$LINENO"; then :
15342  eval $cacheid=yes
15343else
15344  eval $cacheid=no
15345fi
15346rm -f core conftest.err conftest.$ac_objext \
15347    conftest$ac_exeext conftest.$ac_ext
15348fi
15349
15350
15351		CFLAGS="$xorg_testset_save_CFLAGS"
15352
15353		eval supported=\$$cacheid
15354		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15355$as_echo "$supported" >&6; }
15356		if test "$supported" = "yes" ; then
15357			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15358			found="yes"
15359		fi
15360	fi
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376xorg_testset_save_CFLAGS="$CFLAGS"
15377
15378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15383  $as_echo_n "(cached) " >&6
15384else
15385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h.  */
15387int i;
15388_ACEOF
15389if ac_fn_c_try_compile "$LINENO"; then :
15390  xorg_cv_cc_flag_unknown_warning_option=yes
15391else
15392  xorg_cv_cc_flag_unknown_warning_option=no
15393fi
15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395fi
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15399	CFLAGS="$xorg_testset_save_CFLAGS"
15400fi
15401
15402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405	fi
15406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15410  $as_echo_n "(cached) " >&6
15411else
15412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413/* end confdefs.h.  */
15414int i;
15415_ACEOF
15416if ac_fn_c_try_compile "$LINENO"; then :
15417  xorg_cv_cc_flag_unused_command_line_argument=yes
15418else
15419  xorg_cv_cc_flag_unused_command_line_argument=no
15420fi
15421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422fi
15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15425	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15426	CFLAGS="$xorg_testset_save_CFLAGS"
15427fi
15428
15429found="no"
15430
15431	if test $found = "no" ; then
15432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434		fi
15435
15436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15438		fi
15439
15440		CFLAGS="$CFLAGS -Werror=return-type"
15441
15442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15443$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15444		cacheid=xorg_cv_cc_flag__Werror_return_type
15445		if eval \${$cacheid+:} false; then :
15446  $as_echo_n "(cached) " >&6
15447else
15448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449/* end confdefs.h.  */
15450int i;
15451int
15452main ()
15453{
15454
15455  ;
15456  return 0;
15457}
15458_ACEOF
15459if ac_fn_c_try_link "$LINENO"; then :
15460  eval $cacheid=yes
15461else
15462  eval $cacheid=no
15463fi
15464rm -f core conftest.err conftest.$ac_objext \
15465    conftest$ac_exeext conftest.$ac_ext
15466fi
15467
15468
15469		CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471		eval supported=\$$cacheid
15472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473$as_echo "$supported" >&6; }
15474		if test "$supported" = "yes" ; then
15475			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15476			found="yes"
15477		fi
15478	fi
15479
15480	if test $found = "no" ; then
15481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483		fi
15484
15485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487		fi
15488
15489		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15490
15491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15492$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15493		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15494		if eval \${$cacheid+:} false; then :
15495  $as_echo_n "(cached) " >&6
15496else
15497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498/* end confdefs.h.  */
15499int i;
15500int
15501main ()
15502{
15503
15504  ;
15505  return 0;
15506}
15507_ACEOF
15508if ac_fn_c_try_link "$LINENO"; then :
15509  eval $cacheid=yes
15510else
15511  eval $cacheid=no
15512fi
15513rm -f core conftest.err conftest.$ac_objext \
15514    conftest$ac_exeext conftest.$ac_ext
15515fi
15516
15517
15518		CFLAGS="$xorg_testset_save_CFLAGS"
15519
15520		eval supported=\$$cacheid
15521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15522$as_echo "$supported" >&6; }
15523		if test "$supported" = "yes" ; then
15524			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15525			found="yes"
15526		fi
15527	fi
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543xorg_testset_save_CFLAGS="$CFLAGS"
15544
15545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15550  $as_echo_n "(cached) " >&6
15551else
15552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553/* end confdefs.h.  */
15554int i;
15555_ACEOF
15556if ac_fn_c_try_compile "$LINENO"; then :
15557  xorg_cv_cc_flag_unknown_warning_option=yes
15558else
15559  xorg_cv_cc_flag_unknown_warning_option=no
15560fi
15561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562fi
15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15566	CFLAGS="$xorg_testset_save_CFLAGS"
15567fi
15568
15569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15572	fi
15573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15577  $as_echo_n "(cached) " >&6
15578else
15579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580/* end confdefs.h.  */
15581int i;
15582_ACEOF
15583if ac_fn_c_try_compile "$LINENO"; then :
15584  xorg_cv_cc_flag_unused_command_line_argument=yes
15585else
15586  xorg_cv_cc_flag_unused_command_line_argument=no
15587fi
15588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589fi
15590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15593	CFLAGS="$xorg_testset_save_CFLAGS"
15594fi
15595
15596found="no"
15597
15598	if test $found = "no" ; then
15599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15601		fi
15602
15603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15605		fi
15606
15607		CFLAGS="$CFLAGS -Werror=trigraphs"
15608
15609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15610$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15611		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15612		if eval \${$cacheid+:} false; then :
15613  $as_echo_n "(cached) " >&6
15614else
15615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h.  */
15617int i;
15618int
15619main ()
15620{
15621
15622  ;
15623  return 0;
15624}
15625_ACEOF
15626if ac_fn_c_try_link "$LINENO"; then :
15627  eval $cacheid=yes
15628else
15629  eval $cacheid=no
15630fi
15631rm -f core conftest.err conftest.$ac_objext \
15632    conftest$ac_exeext conftest.$ac_ext
15633fi
15634
15635
15636		CFLAGS="$xorg_testset_save_CFLAGS"
15637
15638		eval supported=\$$cacheid
15639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15640$as_echo "$supported" >&6; }
15641		if test "$supported" = "yes" ; then
15642			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15643			found="yes"
15644		fi
15645	fi
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661xorg_testset_save_CFLAGS="$CFLAGS"
15662
15663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15668  $as_echo_n "(cached) " >&6
15669else
15670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671/* end confdefs.h.  */
15672int i;
15673_ACEOF
15674if ac_fn_c_try_compile "$LINENO"; then :
15675  xorg_cv_cc_flag_unknown_warning_option=yes
15676else
15677  xorg_cv_cc_flag_unknown_warning_option=no
15678fi
15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680fi
15681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15684	CFLAGS="$xorg_testset_save_CFLAGS"
15685fi
15686
15687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15690	fi
15691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15695  $as_echo_n "(cached) " >&6
15696else
15697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698/* end confdefs.h.  */
15699int i;
15700_ACEOF
15701if ac_fn_c_try_compile "$LINENO"; then :
15702  xorg_cv_cc_flag_unused_command_line_argument=yes
15703else
15704  xorg_cv_cc_flag_unused_command_line_argument=no
15705fi
15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707fi
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15711	CFLAGS="$xorg_testset_save_CFLAGS"
15712fi
15713
15714found="no"
15715
15716	if test $found = "no" ; then
15717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719		fi
15720
15721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15723		fi
15724
15725		CFLAGS="$CFLAGS -Werror=array-bounds"
15726
15727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15728$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15729		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15730		if eval \${$cacheid+:} false; then :
15731  $as_echo_n "(cached) " >&6
15732else
15733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734/* end confdefs.h.  */
15735int i;
15736int
15737main ()
15738{
15739
15740  ;
15741  return 0;
15742}
15743_ACEOF
15744if ac_fn_c_try_link "$LINENO"; then :
15745  eval $cacheid=yes
15746else
15747  eval $cacheid=no
15748fi
15749rm -f core conftest.err conftest.$ac_objext \
15750    conftest$ac_exeext conftest.$ac_ext
15751fi
15752
15753
15754		CFLAGS="$xorg_testset_save_CFLAGS"
15755
15756		eval supported=\$$cacheid
15757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15758$as_echo "$supported" >&6; }
15759		if test "$supported" = "yes" ; then
15760			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15761			found="yes"
15762		fi
15763	fi
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779xorg_testset_save_CFLAGS="$CFLAGS"
15780
15781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15786  $as_echo_n "(cached) " >&6
15787else
15788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789/* end confdefs.h.  */
15790int i;
15791_ACEOF
15792if ac_fn_c_try_compile "$LINENO"; then :
15793  xorg_cv_cc_flag_unknown_warning_option=yes
15794else
15795  xorg_cv_cc_flag_unknown_warning_option=no
15796fi
15797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798fi
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15802	CFLAGS="$xorg_testset_save_CFLAGS"
15803fi
15804
15805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15808	fi
15809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15813  $as_echo_n "(cached) " >&6
15814else
15815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816/* end confdefs.h.  */
15817int i;
15818_ACEOF
15819if ac_fn_c_try_compile "$LINENO"; then :
15820  xorg_cv_cc_flag_unused_command_line_argument=yes
15821else
15822  xorg_cv_cc_flag_unused_command_line_argument=no
15823fi
15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825fi
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15829	CFLAGS="$xorg_testset_save_CFLAGS"
15830fi
15831
15832found="no"
15833
15834	if test $found = "no" ; then
15835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837		fi
15838
15839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15841		fi
15842
15843		CFLAGS="$CFLAGS -Werror=write-strings"
15844
15845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15846$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15847		cacheid=xorg_cv_cc_flag__Werror_write_strings
15848		if eval \${$cacheid+:} false; then :
15849  $as_echo_n "(cached) " >&6
15850else
15851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h.  */
15853int i;
15854int
15855main ()
15856{
15857
15858  ;
15859  return 0;
15860}
15861_ACEOF
15862if ac_fn_c_try_link "$LINENO"; then :
15863  eval $cacheid=yes
15864else
15865  eval $cacheid=no
15866fi
15867rm -f core conftest.err conftest.$ac_objext \
15868    conftest$ac_exeext conftest.$ac_ext
15869fi
15870
15871
15872		CFLAGS="$xorg_testset_save_CFLAGS"
15873
15874		eval supported=\$$cacheid
15875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15876$as_echo "$supported" >&6; }
15877		if test "$supported" = "yes" ; then
15878			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15879			found="yes"
15880		fi
15881	fi
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897xorg_testset_save_CFLAGS="$CFLAGS"
15898
15899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15904  $as_echo_n "(cached) " >&6
15905else
15906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h.  */
15908int i;
15909_ACEOF
15910if ac_fn_c_try_compile "$LINENO"; then :
15911  xorg_cv_cc_flag_unknown_warning_option=yes
15912else
15913  xorg_cv_cc_flag_unknown_warning_option=no
15914fi
15915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916fi
15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15920	CFLAGS="$xorg_testset_save_CFLAGS"
15921fi
15922
15923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15926	fi
15927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15931  $as_echo_n "(cached) " >&6
15932else
15933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934/* end confdefs.h.  */
15935int i;
15936_ACEOF
15937if ac_fn_c_try_compile "$LINENO"; then :
15938  xorg_cv_cc_flag_unused_command_line_argument=yes
15939else
15940  xorg_cv_cc_flag_unused_command_line_argument=no
15941fi
15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943fi
15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15947	CFLAGS="$xorg_testset_save_CFLAGS"
15948fi
15949
15950found="no"
15951
15952	if test $found = "no" ; then
15953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15955		fi
15956
15957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15959		fi
15960
15961		CFLAGS="$CFLAGS -Werror=address"
15962
15963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15964$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15965		cacheid=xorg_cv_cc_flag__Werror_address
15966		if eval \${$cacheid+:} false; then :
15967  $as_echo_n "(cached) " >&6
15968else
15969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h.  */
15971int i;
15972int
15973main ()
15974{
15975
15976  ;
15977  return 0;
15978}
15979_ACEOF
15980if ac_fn_c_try_link "$LINENO"; then :
15981  eval $cacheid=yes
15982else
15983  eval $cacheid=no
15984fi
15985rm -f core conftest.err conftest.$ac_objext \
15986    conftest$ac_exeext conftest.$ac_ext
15987fi
15988
15989
15990		CFLAGS="$xorg_testset_save_CFLAGS"
15991
15992		eval supported=\$$cacheid
15993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15994$as_echo "$supported" >&6; }
15995		if test "$supported" = "yes" ; then
15996			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15997			found="yes"
15998		fi
15999	fi
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015xorg_testset_save_CFLAGS="$CFLAGS"
16016
16017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16022  $as_echo_n "(cached) " >&6
16023else
16024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025/* end confdefs.h.  */
16026int i;
16027_ACEOF
16028if ac_fn_c_try_compile "$LINENO"; then :
16029  xorg_cv_cc_flag_unknown_warning_option=yes
16030else
16031  xorg_cv_cc_flag_unknown_warning_option=no
16032fi
16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034fi
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16038	CFLAGS="$xorg_testset_save_CFLAGS"
16039fi
16040
16041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044	fi
16045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16049  $as_echo_n "(cached) " >&6
16050else
16051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052/* end confdefs.h.  */
16053int i;
16054_ACEOF
16055if ac_fn_c_try_compile "$LINENO"; then :
16056  xorg_cv_cc_flag_unused_command_line_argument=yes
16057else
16058  xorg_cv_cc_flag_unused_command_line_argument=no
16059fi
16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061fi
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16065	CFLAGS="$xorg_testset_save_CFLAGS"
16066fi
16067
16068found="no"
16069
16070	if test $found = "no" ; then
16071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073		fi
16074
16075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16077		fi
16078
16079		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16080
16081		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16082$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16083		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16084		if eval \${$cacheid+:} false; then :
16085  $as_echo_n "(cached) " >&6
16086else
16087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088/* end confdefs.h.  */
16089int i;
16090int
16091main ()
16092{
16093
16094  ;
16095  return 0;
16096}
16097_ACEOF
16098if ac_fn_c_try_link "$LINENO"; then :
16099  eval $cacheid=yes
16100else
16101  eval $cacheid=no
16102fi
16103rm -f core conftest.err conftest.$ac_objext \
16104    conftest$ac_exeext conftest.$ac_ext
16105fi
16106
16107
16108		CFLAGS="$xorg_testset_save_CFLAGS"
16109
16110		eval supported=\$$cacheid
16111		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16112$as_echo "$supported" >&6; }
16113		if test "$supported" = "yes" ; then
16114			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16115			found="yes"
16116		fi
16117	fi
16118
16119	if test $found = "no" ; then
16120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16122		fi
16123
16124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16126		fi
16127
16128		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16129
16130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16131$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16132		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16133		if eval \${$cacheid+:} false; then :
16134  $as_echo_n "(cached) " >&6
16135else
16136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137/* end confdefs.h.  */
16138int i;
16139int
16140main ()
16141{
16142
16143  ;
16144  return 0;
16145}
16146_ACEOF
16147if ac_fn_c_try_link "$LINENO"; then :
16148  eval $cacheid=yes
16149else
16150  eval $cacheid=no
16151fi
16152rm -f core conftest.err conftest.$ac_objext \
16153    conftest$ac_exeext conftest.$ac_ext
16154fi
16155
16156
16157		CFLAGS="$xorg_testset_save_CFLAGS"
16158
16159		eval supported=\$$cacheid
16160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16161$as_echo "$supported" >&6; }
16162		if test "$supported" = "yes" ; then
16163			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16164			found="yes"
16165		fi
16166	fi
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182xorg_testset_save_CFLAGS="$CFLAGS"
16183
16184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16189  $as_echo_n "(cached) " >&6
16190else
16191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192/* end confdefs.h.  */
16193int i;
16194_ACEOF
16195if ac_fn_c_try_compile "$LINENO"; then :
16196  xorg_cv_cc_flag_unknown_warning_option=yes
16197else
16198  xorg_cv_cc_flag_unknown_warning_option=no
16199fi
16200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201fi
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16205	CFLAGS="$xorg_testset_save_CFLAGS"
16206fi
16207
16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211	fi
16212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16216  $as_echo_n "(cached) " >&6
16217else
16218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219/* end confdefs.h.  */
16220int i;
16221_ACEOF
16222if ac_fn_c_try_compile "$LINENO"; then :
16223  xorg_cv_cc_flag_unused_command_line_argument=yes
16224else
16225  xorg_cv_cc_flag_unused_command_line_argument=no
16226fi
16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228fi
16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16232	CFLAGS="$xorg_testset_save_CFLAGS"
16233fi
16234
16235found="no"
16236
16237	if test $found = "no" ; then
16238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16240		fi
16241
16242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244		fi
16245
16246		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16247
16248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16249$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16250		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16251		if eval \${$cacheid+:} false; then :
16252  $as_echo_n "(cached) " >&6
16253else
16254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255/* end confdefs.h.  */
16256int i;
16257int
16258main ()
16259{
16260
16261  ;
16262  return 0;
16263}
16264_ACEOF
16265if ac_fn_c_try_link "$LINENO"; then :
16266  eval $cacheid=yes
16267else
16268  eval $cacheid=no
16269fi
16270rm -f core conftest.err conftest.$ac_objext \
16271    conftest$ac_exeext conftest.$ac_ext
16272fi
16273
16274
16275		CFLAGS="$xorg_testset_save_CFLAGS"
16276
16277		eval supported=\$$cacheid
16278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16279$as_echo "$supported" >&6; }
16280		if test "$supported" = "yes" ; then
16281			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16282			found="yes"
16283		fi
16284	fi
16285
16286 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16287else
16288{ $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
16289$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;}
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303xorg_testset_save_CFLAGS="$CFLAGS"
16304
16305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16310  $as_echo_n "(cached) " >&6
16311else
16312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313/* end confdefs.h.  */
16314int i;
16315_ACEOF
16316if ac_fn_c_try_compile "$LINENO"; then :
16317  xorg_cv_cc_flag_unknown_warning_option=yes
16318else
16319  xorg_cv_cc_flag_unknown_warning_option=no
16320fi
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16326	CFLAGS="$xorg_testset_save_CFLAGS"
16327fi
16328
16329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16332	fi
16333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16337  $as_echo_n "(cached) " >&6
16338else
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341int i;
16342_ACEOF
16343if ac_fn_c_try_compile "$LINENO"; then :
16344  xorg_cv_cc_flag_unused_command_line_argument=yes
16345else
16346  xorg_cv_cc_flag_unused_command_line_argument=no
16347fi
16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349fi
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16353	CFLAGS="$xorg_testset_save_CFLAGS"
16354fi
16355
16356found="no"
16357
16358	if test $found = "no" ; then
16359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16361		fi
16362
16363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16365		fi
16366
16367		CFLAGS="$CFLAGS -Wimplicit"
16368
16369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16370$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16371		cacheid=xorg_cv_cc_flag__Wimplicit
16372		if eval \${$cacheid+:} false; then :
16373  $as_echo_n "(cached) " >&6
16374else
16375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376/* end confdefs.h.  */
16377int i;
16378int
16379main ()
16380{
16381
16382  ;
16383  return 0;
16384}
16385_ACEOF
16386if ac_fn_c_try_link "$LINENO"; then :
16387  eval $cacheid=yes
16388else
16389  eval $cacheid=no
16390fi
16391rm -f core conftest.err conftest.$ac_objext \
16392    conftest$ac_exeext conftest.$ac_ext
16393fi
16394
16395
16396		CFLAGS="$xorg_testset_save_CFLAGS"
16397
16398		eval supported=\$$cacheid
16399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16400$as_echo "$supported" >&6; }
16401		if test "$supported" = "yes" ; then
16402			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16403			found="yes"
16404		fi
16405	fi
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421xorg_testset_save_CFLAGS="$CFLAGS"
16422
16423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16428  $as_echo_n "(cached) " >&6
16429else
16430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431/* end confdefs.h.  */
16432int i;
16433_ACEOF
16434if ac_fn_c_try_compile "$LINENO"; then :
16435  xorg_cv_cc_flag_unknown_warning_option=yes
16436else
16437  xorg_cv_cc_flag_unknown_warning_option=no
16438fi
16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440fi
16441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16444	CFLAGS="$xorg_testset_save_CFLAGS"
16445fi
16446
16447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16450	fi
16451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16455  $as_echo_n "(cached) " >&6
16456else
16457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458/* end confdefs.h.  */
16459int i;
16460_ACEOF
16461if ac_fn_c_try_compile "$LINENO"; then :
16462  xorg_cv_cc_flag_unused_command_line_argument=yes
16463else
16464  xorg_cv_cc_flag_unused_command_line_argument=no
16465fi
16466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467fi
16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16471	CFLAGS="$xorg_testset_save_CFLAGS"
16472fi
16473
16474found="no"
16475
16476	if test $found = "no" ; then
16477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479		fi
16480
16481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16483		fi
16484
16485		CFLAGS="$CFLAGS -Wnonnull"
16486
16487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16488$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16489		cacheid=xorg_cv_cc_flag__Wnonnull
16490		if eval \${$cacheid+:} false; then :
16491  $as_echo_n "(cached) " >&6
16492else
16493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h.  */
16495int i;
16496int
16497main ()
16498{
16499
16500  ;
16501  return 0;
16502}
16503_ACEOF
16504if ac_fn_c_try_link "$LINENO"; then :
16505  eval $cacheid=yes
16506else
16507  eval $cacheid=no
16508fi
16509rm -f core conftest.err conftest.$ac_objext \
16510    conftest$ac_exeext conftest.$ac_ext
16511fi
16512
16513
16514		CFLAGS="$xorg_testset_save_CFLAGS"
16515
16516		eval supported=\$$cacheid
16517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16518$as_echo "$supported" >&6; }
16519		if test "$supported" = "yes" ; then
16520			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16521			found="yes"
16522		fi
16523	fi
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539xorg_testset_save_CFLAGS="$CFLAGS"
16540
16541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16546  $as_echo_n "(cached) " >&6
16547else
16548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549/* end confdefs.h.  */
16550int i;
16551_ACEOF
16552if ac_fn_c_try_compile "$LINENO"; then :
16553  xorg_cv_cc_flag_unknown_warning_option=yes
16554else
16555  xorg_cv_cc_flag_unknown_warning_option=no
16556fi
16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558fi
16559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16562	CFLAGS="$xorg_testset_save_CFLAGS"
16563fi
16564
16565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16568	fi
16569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16573  $as_echo_n "(cached) " >&6
16574else
16575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576/* end confdefs.h.  */
16577int i;
16578_ACEOF
16579if ac_fn_c_try_compile "$LINENO"; then :
16580  xorg_cv_cc_flag_unused_command_line_argument=yes
16581else
16582  xorg_cv_cc_flag_unused_command_line_argument=no
16583fi
16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16589	CFLAGS="$xorg_testset_save_CFLAGS"
16590fi
16591
16592found="no"
16593
16594	if test $found = "no" ; then
16595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597		fi
16598
16599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16601		fi
16602
16603		CFLAGS="$CFLAGS -Winit-self"
16604
16605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16606$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16607		cacheid=xorg_cv_cc_flag__Winit_self
16608		if eval \${$cacheid+:} false; then :
16609  $as_echo_n "(cached) " >&6
16610else
16611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612/* end confdefs.h.  */
16613int i;
16614int
16615main ()
16616{
16617
16618  ;
16619  return 0;
16620}
16621_ACEOF
16622if ac_fn_c_try_link "$LINENO"; then :
16623  eval $cacheid=yes
16624else
16625  eval $cacheid=no
16626fi
16627rm -f core conftest.err conftest.$ac_objext \
16628    conftest$ac_exeext conftest.$ac_ext
16629fi
16630
16631
16632		CFLAGS="$xorg_testset_save_CFLAGS"
16633
16634		eval supported=\$$cacheid
16635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16636$as_echo "$supported" >&6; }
16637		if test "$supported" = "yes" ; then
16638			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16639			found="yes"
16640		fi
16641	fi
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657xorg_testset_save_CFLAGS="$CFLAGS"
16658
16659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16664  $as_echo_n "(cached) " >&6
16665else
16666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667/* end confdefs.h.  */
16668int i;
16669_ACEOF
16670if ac_fn_c_try_compile "$LINENO"; then :
16671  xorg_cv_cc_flag_unknown_warning_option=yes
16672else
16673  xorg_cv_cc_flag_unknown_warning_option=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16680	CFLAGS="$xorg_testset_save_CFLAGS"
16681fi
16682
16683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686	fi
16687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16691  $as_echo_n "(cached) " >&6
16692else
16693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h.  */
16695int i;
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"; then :
16698  xorg_cv_cc_flag_unused_command_line_argument=yes
16699else
16700  xorg_cv_cc_flag_unused_command_line_argument=no
16701fi
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703fi
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16707	CFLAGS="$xorg_testset_save_CFLAGS"
16708fi
16709
16710found="no"
16711
16712	if test $found = "no" ; then
16713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715		fi
16716
16717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16719		fi
16720
16721		CFLAGS="$CFLAGS -Wmain"
16722
16723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16724$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16725		cacheid=xorg_cv_cc_flag__Wmain
16726		if eval \${$cacheid+:} false; then :
16727  $as_echo_n "(cached) " >&6
16728else
16729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h.  */
16731int i;
16732int
16733main ()
16734{
16735
16736  ;
16737  return 0;
16738}
16739_ACEOF
16740if ac_fn_c_try_link "$LINENO"; then :
16741  eval $cacheid=yes
16742else
16743  eval $cacheid=no
16744fi
16745rm -f core conftest.err conftest.$ac_objext \
16746    conftest$ac_exeext conftest.$ac_ext
16747fi
16748
16749
16750		CFLAGS="$xorg_testset_save_CFLAGS"
16751
16752		eval supported=\$$cacheid
16753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16754$as_echo "$supported" >&6; }
16755		if test "$supported" = "yes" ; then
16756			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16757			found="yes"
16758		fi
16759	fi
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775xorg_testset_save_CFLAGS="$CFLAGS"
16776
16777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16782  $as_echo_n "(cached) " >&6
16783else
16784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785/* end confdefs.h.  */
16786int i;
16787_ACEOF
16788if ac_fn_c_try_compile "$LINENO"; then :
16789  xorg_cv_cc_flag_unknown_warning_option=yes
16790else
16791  xorg_cv_cc_flag_unknown_warning_option=no
16792fi
16793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794fi
16795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16798	CFLAGS="$xorg_testset_save_CFLAGS"
16799fi
16800
16801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16804	fi
16805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16809  $as_echo_n "(cached) " >&6
16810else
16811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h.  */
16813int i;
16814_ACEOF
16815if ac_fn_c_try_compile "$LINENO"; then :
16816  xorg_cv_cc_flag_unused_command_line_argument=yes
16817else
16818  xorg_cv_cc_flag_unused_command_line_argument=no
16819fi
16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821fi
16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16825	CFLAGS="$xorg_testset_save_CFLAGS"
16826fi
16827
16828found="no"
16829
16830	if test $found = "no" ; then
16831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833		fi
16834
16835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16837		fi
16838
16839		CFLAGS="$CFLAGS -Wmissing-braces"
16840
16841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16842$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16843		cacheid=xorg_cv_cc_flag__Wmissing_braces
16844		if eval \${$cacheid+:} false; then :
16845  $as_echo_n "(cached) " >&6
16846else
16847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848/* end confdefs.h.  */
16849int i;
16850int
16851main ()
16852{
16853
16854  ;
16855  return 0;
16856}
16857_ACEOF
16858if ac_fn_c_try_link "$LINENO"; then :
16859  eval $cacheid=yes
16860else
16861  eval $cacheid=no
16862fi
16863rm -f core conftest.err conftest.$ac_objext \
16864    conftest$ac_exeext conftest.$ac_ext
16865fi
16866
16867
16868		CFLAGS="$xorg_testset_save_CFLAGS"
16869
16870		eval supported=\$$cacheid
16871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16872$as_echo "$supported" >&6; }
16873		if test "$supported" = "yes" ; then
16874			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16875			found="yes"
16876		fi
16877	fi
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893xorg_testset_save_CFLAGS="$CFLAGS"
16894
16895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16900  $as_echo_n "(cached) " >&6
16901else
16902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903/* end confdefs.h.  */
16904int i;
16905_ACEOF
16906if ac_fn_c_try_compile "$LINENO"; then :
16907  xorg_cv_cc_flag_unknown_warning_option=yes
16908else
16909  xorg_cv_cc_flag_unknown_warning_option=no
16910fi
16911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912fi
16913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16916	CFLAGS="$xorg_testset_save_CFLAGS"
16917fi
16918
16919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16922	fi
16923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16927  $as_echo_n "(cached) " >&6
16928else
16929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930/* end confdefs.h.  */
16931int i;
16932_ACEOF
16933if ac_fn_c_try_compile "$LINENO"; then :
16934  xorg_cv_cc_flag_unused_command_line_argument=yes
16935else
16936  xorg_cv_cc_flag_unused_command_line_argument=no
16937fi
16938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16943	CFLAGS="$xorg_testset_save_CFLAGS"
16944fi
16945
16946found="no"
16947
16948	if test $found = "no" ; then
16949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951		fi
16952
16953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16955		fi
16956
16957		CFLAGS="$CFLAGS -Wsequence-point"
16958
16959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16960$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16961		cacheid=xorg_cv_cc_flag__Wsequence_point
16962		if eval \${$cacheid+:} false; then :
16963  $as_echo_n "(cached) " >&6
16964else
16965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966/* end confdefs.h.  */
16967int i;
16968int
16969main ()
16970{
16971
16972  ;
16973  return 0;
16974}
16975_ACEOF
16976if ac_fn_c_try_link "$LINENO"; then :
16977  eval $cacheid=yes
16978else
16979  eval $cacheid=no
16980fi
16981rm -f core conftest.err conftest.$ac_objext \
16982    conftest$ac_exeext conftest.$ac_ext
16983fi
16984
16985
16986		CFLAGS="$xorg_testset_save_CFLAGS"
16987
16988		eval supported=\$$cacheid
16989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16990$as_echo "$supported" >&6; }
16991		if test "$supported" = "yes" ; then
16992			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16993			found="yes"
16994		fi
16995	fi
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011xorg_testset_save_CFLAGS="$CFLAGS"
17012
17013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17018  $as_echo_n "(cached) " >&6
17019else
17020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021/* end confdefs.h.  */
17022int i;
17023_ACEOF
17024if ac_fn_c_try_compile "$LINENO"; then :
17025  xorg_cv_cc_flag_unknown_warning_option=yes
17026else
17027  xorg_cv_cc_flag_unknown_warning_option=no
17028fi
17029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030fi
17031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17034	CFLAGS="$xorg_testset_save_CFLAGS"
17035fi
17036
17037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17040	fi
17041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17045  $as_echo_n "(cached) " >&6
17046else
17047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048/* end confdefs.h.  */
17049int i;
17050_ACEOF
17051if ac_fn_c_try_compile "$LINENO"; then :
17052  xorg_cv_cc_flag_unused_command_line_argument=yes
17053else
17054  xorg_cv_cc_flag_unused_command_line_argument=no
17055fi
17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057fi
17058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17061	CFLAGS="$xorg_testset_save_CFLAGS"
17062fi
17063
17064found="no"
17065
17066	if test $found = "no" ; then
17067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069		fi
17070
17071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17073		fi
17074
17075		CFLAGS="$CFLAGS -Wreturn-type"
17076
17077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17078$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17079		cacheid=xorg_cv_cc_flag__Wreturn_type
17080		if eval \${$cacheid+:} false; then :
17081  $as_echo_n "(cached) " >&6
17082else
17083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h.  */
17085int i;
17086int
17087main ()
17088{
17089
17090  ;
17091  return 0;
17092}
17093_ACEOF
17094if ac_fn_c_try_link "$LINENO"; then :
17095  eval $cacheid=yes
17096else
17097  eval $cacheid=no
17098fi
17099rm -f core conftest.err conftest.$ac_objext \
17100    conftest$ac_exeext conftest.$ac_ext
17101fi
17102
17103
17104		CFLAGS="$xorg_testset_save_CFLAGS"
17105
17106		eval supported=\$$cacheid
17107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17108$as_echo "$supported" >&6; }
17109		if test "$supported" = "yes" ; then
17110			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17111			found="yes"
17112		fi
17113	fi
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129xorg_testset_save_CFLAGS="$CFLAGS"
17130
17131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17136  $as_echo_n "(cached) " >&6
17137else
17138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139/* end confdefs.h.  */
17140int i;
17141_ACEOF
17142if ac_fn_c_try_compile "$LINENO"; then :
17143  xorg_cv_cc_flag_unknown_warning_option=yes
17144else
17145  xorg_cv_cc_flag_unknown_warning_option=no
17146fi
17147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148fi
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17152	CFLAGS="$xorg_testset_save_CFLAGS"
17153fi
17154
17155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158	fi
17159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17163  $as_echo_n "(cached) " >&6
17164else
17165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166/* end confdefs.h.  */
17167int i;
17168_ACEOF
17169if ac_fn_c_try_compile "$LINENO"; then :
17170  xorg_cv_cc_flag_unused_command_line_argument=yes
17171else
17172  xorg_cv_cc_flag_unused_command_line_argument=no
17173fi
17174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175fi
17176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17179	CFLAGS="$xorg_testset_save_CFLAGS"
17180fi
17181
17182found="no"
17183
17184	if test $found = "no" ; then
17185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187		fi
17188
17189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17191		fi
17192
17193		CFLAGS="$CFLAGS -Wtrigraphs"
17194
17195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17196$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17197		cacheid=xorg_cv_cc_flag__Wtrigraphs
17198		if eval \${$cacheid+:} false; then :
17199  $as_echo_n "(cached) " >&6
17200else
17201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203int i;
17204int
17205main ()
17206{
17207
17208  ;
17209  return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_link "$LINENO"; then :
17213  eval $cacheid=yes
17214else
17215  eval $cacheid=no
17216fi
17217rm -f core conftest.err conftest.$ac_objext \
17218    conftest$ac_exeext conftest.$ac_ext
17219fi
17220
17221
17222		CFLAGS="$xorg_testset_save_CFLAGS"
17223
17224		eval supported=\$$cacheid
17225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17226$as_echo "$supported" >&6; }
17227		if test "$supported" = "yes" ; then
17228			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17229			found="yes"
17230		fi
17231	fi
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247xorg_testset_save_CFLAGS="$CFLAGS"
17248
17249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17254  $as_echo_n "(cached) " >&6
17255else
17256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257/* end confdefs.h.  */
17258int i;
17259_ACEOF
17260if ac_fn_c_try_compile "$LINENO"; then :
17261  xorg_cv_cc_flag_unknown_warning_option=yes
17262else
17263  xorg_cv_cc_flag_unknown_warning_option=no
17264fi
17265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266fi
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17270	CFLAGS="$xorg_testset_save_CFLAGS"
17271fi
17272
17273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276	fi
17277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17281  $as_echo_n "(cached) " >&6
17282else
17283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285int i;
17286_ACEOF
17287if ac_fn_c_try_compile "$LINENO"; then :
17288  xorg_cv_cc_flag_unused_command_line_argument=yes
17289else
17290  xorg_cv_cc_flag_unused_command_line_argument=no
17291fi
17292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17293fi
17294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17297	CFLAGS="$xorg_testset_save_CFLAGS"
17298fi
17299
17300found="no"
17301
17302	if test $found = "no" ; then
17303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305		fi
17306
17307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17309		fi
17310
17311		CFLAGS="$CFLAGS -Warray-bounds"
17312
17313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17314$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17315		cacheid=xorg_cv_cc_flag__Warray_bounds
17316		if eval \${$cacheid+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320/* end confdefs.h.  */
17321int i;
17322int
17323main ()
17324{
17325
17326  ;
17327  return 0;
17328}
17329_ACEOF
17330if ac_fn_c_try_link "$LINENO"; then :
17331  eval $cacheid=yes
17332else
17333  eval $cacheid=no
17334fi
17335rm -f core conftest.err conftest.$ac_objext \
17336    conftest$ac_exeext conftest.$ac_ext
17337fi
17338
17339
17340		CFLAGS="$xorg_testset_save_CFLAGS"
17341
17342		eval supported=\$$cacheid
17343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17344$as_echo "$supported" >&6; }
17345		if test "$supported" = "yes" ; then
17346			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17347			found="yes"
17348		fi
17349	fi
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365xorg_testset_save_CFLAGS="$CFLAGS"
17366
17367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17372  $as_echo_n "(cached) " >&6
17373else
17374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375/* end confdefs.h.  */
17376int i;
17377_ACEOF
17378if ac_fn_c_try_compile "$LINENO"; then :
17379  xorg_cv_cc_flag_unknown_warning_option=yes
17380else
17381  xorg_cv_cc_flag_unknown_warning_option=no
17382fi
17383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17384fi
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17388	CFLAGS="$xorg_testset_save_CFLAGS"
17389fi
17390
17391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17394	fi
17395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17399  $as_echo_n "(cached) " >&6
17400else
17401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402/* end confdefs.h.  */
17403int i;
17404_ACEOF
17405if ac_fn_c_try_compile "$LINENO"; then :
17406  xorg_cv_cc_flag_unused_command_line_argument=yes
17407else
17408  xorg_cv_cc_flag_unused_command_line_argument=no
17409fi
17410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411fi
17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17415	CFLAGS="$xorg_testset_save_CFLAGS"
17416fi
17417
17418found="no"
17419
17420	if test $found = "no" ; then
17421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423		fi
17424
17425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17427		fi
17428
17429		CFLAGS="$CFLAGS -Wwrite-strings"
17430
17431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17432$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17433		cacheid=xorg_cv_cc_flag__Wwrite_strings
17434		if eval \${$cacheid+:} false; then :
17435  $as_echo_n "(cached) " >&6
17436else
17437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438/* end confdefs.h.  */
17439int i;
17440int
17441main ()
17442{
17443
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448if ac_fn_c_try_link "$LINENO"; then :
17449  eval $cacheid=yes
17450else
17451  eval $cacheid=no
17452fi
17453rm -f core conftest.err conftest.$ac_objext \
17454    conftest$ac_exeext conftest.$ac_ext
17455fi
17456
17457
17458		CFLAGS="$xorg_testset_save_CFLAGS"
17459
17460		eval supported=\$$cacheid
17461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17462$as_echo "$supported" >&6; }
17463		if test "$supported" = "yes" ; then
17464			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17465			found="yes"
17466		fi
17467	fi
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483xorg_testset_save_CFLAGS="$CFLAGS"
17484
17485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17490  $as_echo_n "(cached) " >&6
17491else
17492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493/* end confdefs.h.  */
17494int i;
17495_ACEOF
17496if ac_fn_c_try_compile "$LINENO"; then :
17497  xorg_cv_cc_flag_unknown_warning_option=yes
17498else
17499  xorg_cv_cc_flag_unknown_warning_option=no
17500fi
17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502fi
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17506	CFLAGS="$xorg_testset_save_CFLAGS"
17507fi
17508
17509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512	fi
17513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17517  $as_echo_n "(cached) " >&6
17518else
17519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520/* end confdefs.h.  */
17521int i;
17522_ACEOF
17523if ac_fn_c_try_compile "$LINENO"; then :
17524  xorg_cv_cc_flag_unused_command_line_argument=yes
17525else
17526  xorg_cv_cc_flag_unused_command_line_argument=no
17527fi
17528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17529fi
17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17533	CFLAGS="$xorg_testset_save_CFLAGS"
17534fi
17535
17536found="no"
17537
17538	if test $found = "no" ; then
17539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17541		fi
17542
17543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17545		fi
17546
17547		CFLAGS="$CFLAGS -Waddress"
17548
17549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17550$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17551		cacheid=xorg_cv_cc_flag__Waddress
17552		if eval \${$cacheid+:} false; then :
17553  $as_echo_n "(cached) " >&6
17554else
17555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556/* end confdefs.h.  */
17557int i;
17558int
17559main ()
17560{
17561
17562  ;
17563  return 0;
17564}
17565_ACEOF
17566if ac_fn_c_try_link "$LINENO"; then :
17567  eval $cacheid=yes
17568else
17569  eval $cacheid=no
17570fi
17571rm -f core conftest.err conftest.$ac_objext \
17572    conftest$ac_exeext conftest.$ac_ext
17573fi
17574
17575
17576		CFLAGS="$xorg_testset_save_CFLAGS"
17577
17578		eval supported=\$$cacheid
17579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17580$as_echo "$supported" >&6; }
17581		if test "$supported" = "yes" ; then
17582			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17583			found="yes"
17584		fi
17585	fi
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601xorg_testset_save_CFLAGS="$CFLAGS"
17602
17603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17608  $as_echo_n "(cached) " >&6
17609else
17610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17611/* end confdefs.h.  */
17612int i;
17613_ACEOF
17614if ac_fn_c_try_compile "$LINENO"; then :
17615  xorg_cv_cc_flag_unknown_warning_option=yes
17616else
17617  xorg_cv_cc_flag_unknown_warning_option=no
17618fi
17619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620fi
17621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17624	CFLAGS="$xorg_testset_save_CFLAGS"
17625fi
17626
17627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630	fi
17631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17635  $as_echo_n "(cached) " >&6
17636else
17637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639int i;
17640_ACEOF
17641if ac_fn_c_try_compile "$LINENO"; then :
17642  xorg_cv_cc_flag_unused_command_line_argument=yes
17643else
17644  xorg_cv_cc_flag_unused_command_line_argument=no
17645fi
17646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647fi
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17651	CFLAGS="$xorg_testset_save_CFLAGS"
17652fi
17653
17654found="no"
17655
17656	if test $found = "no" ; then
17657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17659		fi
17660
17661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17663		fi
17664
17665		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17666
17667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17668$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17669		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17670		if eval \${$cacheid+:} false; then :
17671  $as_echo_n "(cached) " >&6
17672else
17673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674/* end confdefs.h.  */
17675int i;
17676int
17677main ()
17678{
17679
17680  ;
17681  return 0;
17682}
17683_ACEOF
17684if ac_fn_c_try_link "$LINENO"; then :
17685  eval $cacheid=yes
17686else
17687  eval $cacheid=no
17688fi
17689rm -f core conftest.err conftest.$ac_objext \
17690    conftest$ac_exeext conftest.$ac_ext
17691fi
17692
17693
17694		CFLAGS="$xorg_testset_save_CFLAGS"
17695
17696		eval supported=\$$cacheid
17697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17698$as_echo "$supported" >&6; }
17699		if test "$supported" = "yes" ; then
17700			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17701			found="yes"
17702		fi
17703	fi
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719xorg_testset_save_CFLAGS="$CFLAGS"
17720
17721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17726  $as_echo_n "(cached) " >&6
17727else
17728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729/* end confdefs.h.  */
17730int i;
17731_ACEOF
17732if ac_fn_c_try_compile "$LINENO"; then :
17733  xorg_cv_cc_flag_unknown_warning_option=yes
17734else
17735  xorg_cv_cc_flag_unknown_warning_option=no
17736fi
17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738fi
17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17742	CFLAGS="$xorg_testset_save_CFLAGS"
17743fi
17744
17745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17748	fi
17749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17753  $as_echo_n "(cached) " >&6
17754else
17755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h.  */
17757int i;
17758_ACEOF
17759if ac_fn_c_try_compile "$LINENO"; then :
17760  xorg_cv_cc_flag_unused_command_line_argument=yes
17761else
17762  xorg_cv_cc_flag_unused_command_line_argument=no
17763fi
17764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765fi
17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17769	CFLAGS="$xorg_testset_save_CFLAGS"
17770fi
17771
17772found="no"
17773
17774	if test $found = "no" ; then
17775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777		fi
17778
17779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17781		fi
17782
17783		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17784
17785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17786$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17787		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17788		if eval \${$cacheid+:} false; then :
17789  $as_echo_n "(cached) " >&6
17790else
17791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792/* end confdefs.h.  */
17793int i;
17794int
17795main ()
17796{
17797
17798  ;
17799  return 0;
17800}
17801_ACEOF
17802if ac_fn_c_try_link "$LINENO"; then :
17803  eval $cacheid=yes
17804else
17805  eval $cacheid=no
17806fi
17807rm -f core conftest.err conftest.$ac_objext \
17808    conftest$ac_exeext conftest.$ac_ext
17809fi
17810
17811
17812		CFLAGS="$xorg_testset_save_CFLAGS"
17813
17814		eval supported=\$$cacheid
17815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17816$as_echo "$supported" >&6; }
17817		if test "$supported" = "yes" ; then
17818			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17819			found="yes"
17820		fi
17821	fi
17822
17823
17824fi
17825
17826
17827
17828
17829
17830
17831
17832		CWARNFLAGS="$BASE_CFLAGS"
17833		if  test "x$GCC" = xyes ; then
17834		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17835		fi
17836
17837
17838
17839
17840
17841
17842
17843
17844# Check whether --enable-strict-compilation was given.
17845if test "${enable_strict_compilation+set}" = set; then :
17846  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17847else
17848  STRICT_COMPILE=no
17849fi
17850
17851
17852
17853
17854
17855
17856STRICT_CFLAGS=""
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870xorg_testset_save_CFLAGS="$CFLAGS"
17871
17872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17877  $as_echo_n "(cached) " >&6
17878else
17879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881int i;
17882_ACEOF
17883if ac_fn_c_try_compile "$LINENO"; then :
17884  xorg_cv_cc_flag_unknown_warning_option=yes
17885else
17886  xorg_cv_cc_flag_unknown_warning_option=no
17887fi
17888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889fi
17890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17892	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17893	CFLAGS="$xorg_testset_save_CFLAGS"
17894fi
17895
17896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17897	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17899	fi
17900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17904  $as_echo_n "(cached) " >&6
17905else
17906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907/* end confdefs.h.  */
17908int i;
17909_ACEOF
17910if ac_fn_c_try_compile "$LINENO"; then :
17911  xorg_cv_cc_flag_unused_command_line_argument=yes
17912else
17913  xorg_cv_cc_flag_unused_command_line_argument=no
17914fi
17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916fi
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17920	CFLAGS="$xorg_testset_save_CFLAGS"
17921fi
17922
17923found="no"
17924
17925	if test $found = "no" ; then
17926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928		fi
17929
17930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17932		fi
17933
17934		CFLAGS="$CFLAGS -pedantic"
17935
17936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17937$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17938		cacheid=xorg_cv_cc_flag__pedantic
17939		if eval \${$cacheid+:} false; then :
17940  $as_echo_n "(cached) " >&6
17941else
17942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943/* end confdefs.h.  */
17944int i;
17945int
17946main ()
17947{
17948
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953if ac_fn_c_try_link "$LINENO"; then :
17954  eval $cacheid=yes
17955else
17956  eval $cacheid=no
17957fi
17958rm -f core conftest.err conftest.$ac_objext \
17959    conftest$ac_exeext conftest.$ac_ext
17960fi
17961
17962
17963		CFLAGS="$xorg_testset_save_CFLAGS"
17964
17965		eval supported=\$$cacheid
17966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17967$as_echo "$supported" >&6; }
17968		if test "$supported" = "yes" ; then
17969			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17970			found="yes"
17971		fi
17972	fi
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988xorg_testset_save_CFLAGS="$CFLAGS"
17989
17990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17995  $as_echo_n "(cached) " >&6
17996else
17997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998/* end confdefs.h.  */
17999int i;
18000_ACEOF
18001if ac_fn_c_try_compile "$LINENO"; then :
18002  xorg_cv_cc_flag_unknown_warning_option=yes
18003else
18004  xorg_cv_cc_flag_unknown_warning_option=no
18005fi
18006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007fi
18008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18011	CFLAGS="$xorg_testset_save_CFLAGS"
18012fi
18013
18014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017	fi
18018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18022  $as_echo_n "(cached) " >&6
18023else
18024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025/* end confdefs.h.  */
18026int i;
18027_ACEOF
18028if ac_fn_c_try_compile "$LINENO"; then :
18029  xorg_cv_cc_flag_unused_command_line_argument=yes
18030else
18031  xorg_cv_cc_flag_unused_command_line_argument=no
18032fi
18033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034fi
18035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18038	CFLAGS="$xorg_testset_save_CFLAGS"
18039fi
18040
18041found="no"
18042
18043	if test $found = "no" ; then
18044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18046		fi
18047
18048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18050		fi
18051
18052		CFLAGS="$CFLAGS -Werror"
18053
18054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18055$as_echo_n "checking if $CC supports -Werror... " >&6; }
18056		cacheid=xorg_cv_cc_flag__Werror
18057		if eval \${$cacheid+:} false; then :
18058  $as_echo_n "(cached) " >&6
18059else
18060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061/* end confdefs.h.  */
18062int i;
18063int
18064main ()
18065{
18066
18067  ;
18068  return 0;
18069}
18070_ACEOF
18071if ac_fn_c_try_link "$LINENO"; then :
18072  eval $cacheid=yes
18073else
18074  eval $cacheid=no
18075fi
18076rm -f core conftest.err conftest.$ac_objext \
18077    conftest$ac_exeext conftest.$ac_ext
18078fi
18079
18080
18081		CFLAGS="$xorg_testset_save_CFLAGS"
18082
18083		eval supported=\$$cacheid
18084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18085$as_echo "$supported" >&6; }
18086		if test "$supported" = "yes" ; then
18087			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18088			found="yes"
18089		fi
18090	fi
18091
18092	if test $found = "no" ; then
18093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18095		fi
18096
18097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18099		fi
18100
18101		CFLAGS="$CFLAGS -errwarn"
18102
18103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18104$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18105		cacheid=xorg_cv_cc_flag__errwarn
18106		if eval \${$cacheid+:} false; then :
18107  $as_echo_n "(cached) " >&6
18108else
18109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110/* end confdefs.h.  */
18111int i;
18112int
18113main ()
18114{
18115
18116  ;
18117  return 0;
18118}
18119_ACEOF
18120if ac_fn_c_try_link "$LINENO"; then :
18121  eval $cacheid=yes
18122else
18123  eval $cacheid=no
18124fi
18125rm -f core conftest.err conftest.$ac_objext \
18126    conftest$ac_exeext conftest.$ac_ext
18127fi
18128
18129
18130		CFLAGS="$xorg_testset_save_CFLAGS"
18131
18132		eval supported=\$$cacheid
18133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18134$as_echo "$supported" >&6; }
18135		if test "$supported" = "yes" ; then
18136			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18137			found="yes"
18138		fi
18139	fi
18140
18141
18142
18143# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18144# activate it with -Werror, so we add it here explicitly.
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158xorg_testset_save_CFLAGS="$CFLAGS"
18159
18160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18165  $as_echo_n "(cached) " >&6
18166else
18167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168/* end confdefs.h.  */
18169int i;
18170_ACEOF
18171if ac_fn_c_try_compile "$LINENO"; then :
18172  xorg_cv_cc_flag_unknown_warning_option=yes
18173else
18174  xorg_cv_cc_flag_unknown_warning_option=no
18175fi
18176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177fi
18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18181	CFLAGS="$xorg_testset_save_CFLAGS"
18182fi
18183
18184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18187	fi
18188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18192  $as_echo_n "(cached) " >&6
18193else
18194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195/* end confdefs.h.  */
18196int i;
18197_ACEOF
18198if ac_fn_c_try_compile "$LINENO"; then :
18199  xorg_cv_cc_flag_unused_command_line_argument=yes
18200else
18201  xorg_cv_cc_flag_unused_command_line_argument=no
18202fi
18203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204fi
18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18208	CFLAGS="$xorg_testset_save_CFLAGS"
18209fi
18210
18211found="no"
18212
18213	if test $found = "no" ; then
18214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216		fi
18217
18218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18220		fi
18221
18222		CFLAGS="$CFLAGS -Werror=attributes"
18223
18224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18225$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18226		cacheid=xorg_cv_cc_flag__Werror_attributes
18227		if eval \${$cacheid+:} false; then :
18228  $as_echo_n "(cached) " >&6
18229else
18230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231/* end confdefs.h.  */
18232int i;
18233int
18234main ()
18235{
18236
18237  ;
18238  return 0;
18239}
18240_ACEOF
18241if ac_fn_c_try_link "$LINENO"; then :
18242  eval $cacheid=yes
18243else
18244  eval $cacheid=no
18245fi
18246rm -f core conftest.err conftest.$ac_objext \
18247    conftest$ac_exeext conftest.$ac_ext
18248fi
18249
18250
18251		CFLAGS="$xorg_testset_save_CFLAGS"
18252
18253		eval supported=\$$cacheid
18254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18255$as_echo "$supported" >&6; }
18256		if test "$supported" = "yes" ; then
18257			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18258			found="yes"
18259		fi
18260	fi
18261
18262
18263
18264if test "x$STRICT_COMPILE" = "xyes"; then
18265    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18266    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18267fi
18268
18269
18270
18271
18272
18273
18274cat >>confdefs.h <<_ACEOF
18275#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18276_ACEOF
18277
18278	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18279	if test "x$PVM" = "x"; then
18280		PVM="0"
18281	fi
18282
18283cat >>confdefs.h <<_ACEOF
18284#define PACKAGE_VERSION_MINOR $PVM
18285_ACEOF
18286
18287	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18288	if test "x$PVP" = "x"; then
18289		PVP="0"
18290	fi
18291
18292cat >>confdefs.h <<_ACEOF
18293#define PACKAGE_VERSION_PATCHLEVEL $PVP
18294_ACEOF
18295
18296
18297
18298CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18299mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18300|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18301echo 'git directory not found: installing possibly empty changelog.' >&2)"
18302
18303
18304
18305
18306macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18307INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18308mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18309|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18310echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18311
18312
18313
18314
18315
18316
18317if test x$APP_MAN_SUFFIX = x    ; then
18318    APP_MAN_SUFFIX=1
18319fi
18320if test x$APP_MAN_DIR = x    ; then
18321    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18322fi
18323
18324if test x$LIB_MAN_SUFFIX = x    ; then
18325    LIB_MAN_SUFFIX=3
18326fi
18327if test x$LIB_MAN_DIR = x    ; then
18328    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18329fi
18330
18331if test x$FILE_MAN_SUFFIX = x    ; then
18332    case $host_os in
18333	solaris*)	FILE_MAN_SUFFIX=4  ;;
18334	*)		FILE_MAN_SUFFIX=5  ;;
18335    esac
18336fi
18337if test x$FILE_MAN_DIR = x    ; then
18338    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18339fi
18340
18341if test x$MISC_MAN_SUFFIX = x    ; then
18342    case $host_os in
18343	solaris*)	MISC_MAN_SUFFIX=5  ;;
18344	*)		MISC_MAN_SUFFIX=7  ;;
18345    esac
18346fi
18347if test x$MISC_MAN_DIR = x    ; then
18348    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18349fi
18350
18351if test x$DRIVER_MAN_SUFFIX = x    ; then
18352    case $host_os in
18353	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18354	*)		DRIVER_MAN_SUFFIX=4  ;;
18355    esac
18356fi
18357if test x$DRIVER_MAN_DIR = x    ; then
18358    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18359fi
18360
18361if test x$ADMIN_MAN_SUFFIX = x    ; then
18362    case $host_os in
18363	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18364	*)		ADMIN_MAN_SUFFIX=8  ;;
18365    esac
18366fi
18367if test x$ADMIN_MAN_DIR = x    ; then
18368    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18369fi
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385XORG_MAN_PAGE="X Version 11"
18386
18387MAN_SUBSTS="\
18388	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18389	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18390	-e 's|__xservername__|Xorg|g' \
18391	-e 's|__xconfigfile__|xorg.conf|g' \
18392	-e 's|__projectroot__|\$(prefix)|g' \
18393	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18394	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18395	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18396	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18397	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18398	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18399	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18400
18401
18402
18403# Check whether --enable-silent-rules was given.
18404if test "${enable_silent_rules+set}" = set; then :
18405  enableval=$enable_silent_rules;
18406fi
18407
18408case $enable_silent_rules in # (((
18409  yes) AM_DEFAULT_VERBOSITY=0;;
18410   no) AM_DEFAULT_VERBOSITY=1;;
18411    *) AM_DEFAULT_VERBOSITY=0;;
18412esac
18413am_make=${MAKE-make}
18414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18415$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18416if ${am_cv_make_support_nested_variables+:} false; then :
18417  $as_echo_n "(cached) " >&6
18418else
18419  if $as_echo 'TRUE=$(BAR$(V))
18420BAR0=false
18421BAR1=true
18422V=1
18423am__doit:
18424	@$(TRUE)
18425.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18426  am_cv_make_support_nested_variables=yes
18427else
18428  am_cv_make_support_nested_variables=no
18429fi
18430fi
18431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18432$as_echo "$am_cv_make_support_nested_variables" >&6; }
18433if test $am_cv_make_support_nested_variables = yes; then
18434    AM_V='$(V)'
18435  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18436else
18437  AM_V=$AM_DEFAULT_VERBOSITY
18438  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18439fi
18440AM_BACKSLASH='\'
18441
18442
18443
18444# Checks for programs.
18445# Check whether --enable-static was given.
18446if test "${enable_static+set}" = set; then :
18447  enableval=$enable_static; p=${PACKAGE-default}
18448    case $enableval in
18449    yes) enable_static=yes ;;
18450    no) enable_static=no ;;
18451    *)
18452     enable_static=no
18453      # Look at the argument we got.  We use all the common list separators.
18454      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18455      for pkg in $enableval; do
18456	IFS=$lt_save_ifs
18457	if test "X$pkg" = "X$p"; then
18458	  enable_static=yes
18459	fi
18460      done
18461      IFS=$lt_save_ifs
18462      ;;
18463    esac
18464else
18465  enable_static=no
18466fi
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477# -----------------------------------------------------------------------------
18478#			Configuration options
18479# -----------------------------------------------------------------------------
18480# Define a configure option for an alternate input module directory
18481
18482# Check whether --with-xorg-module-dir was given.
18483if test "${with_xorg_module_dir+set}" = set; then :
18484  withval=$with_xorg_module_dir; moduledir="$withval"
18485else
18486  moduledir="$libdir/xorg/modules"
18487fi
18488
18489
18490
18491# Define a configure option to enable/disable lcd panel support
18492# Check whether --enable-geodegx-panel was given.
18493if test "${enable_geodegx_panel+set}" = set; then :
18494  enableval=$enable_geodegx_panel;
18495else
18496   PANEL_CPPFLAGS=-DPNL_SUP
18497fi
18498
18499
18500
18501# Define a configure option to enable/disable ztv
18502# Check whether --enable-ztv was given.
18503if test "${enable_ztv+set}" = set; then :
18504  enableval=$enable_ztv; ztv=$enableval
18505else
18506  ztv=auto
18507fi
18508
18509
18510# Check for Video4Linux Version 2 (V4L2) availability
18511for ac_header in linux/videodev2.h
18512do :
18513  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default"
18514if test "x$ac_cv_header_linux_videodev2_h" = xyes; then :
18515  cat >>confdefs.h <<_ACEOF
18516#define HAVE_LINUX_VIDEODEV2_H 1
18517_ACEOF
18518 v4l2=yes
18519else
18520  v4l2=no
18521fi
18522
18523done
18524
18525if test "x$ztv" != "xno" ; then
18526    if test "x$v4l2" = "xno" ; then
18527	if test "x$ztv" = "xyes" ; then
18528	    # User really wants ztv but V4L2 is not found
18529	    as_fn_error $? "ZTV driver requested, but videodev2.h not found." "$LINENO" 5
18530	fi
18531    else
18532	BUILD_ZTV=yes
18533    fi
18534fi
18535 if test "x$BUILD_ZTV" = xyes; then
18536  BUILD_ZTV_TRUE=
18537  BUILD_ZTV_FALSE='#'
18538else
18539  BUILD_ZTV_TRUE='#'
18540  BUILD_ZTV_FALSE=
18541fi
18542
18543
18544# Check if GCC supports compiling in 32 bit mode for 64 bit computers
18545case $host_cpu in
18546    x86_64*|amd64*)
18547	if  test "x$GCC" = xyes ; then
18548	    SAVE_CFLAGS="$CFLAGS"
18549	    CFLAGS="$CFLAGS -m32"
18550	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the -m32 Intel/AMD option" >&5
18551$as_echo_n "checking if $CC supports the -m32 Intel/AMD option... " >&6; }
18552	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553/* end confdefs.h.  */
18554
18555#include <unistd.h>
18556int
18557main ()
18558{
18559  ;
18560  return 0;
18561}
18562_ACEOF
18563if ac_fn_c_try_compile "$LINENO"; then :
18564  m32_support=yes; M32_CFLAGS=-m32
18565else
18566  m32_support=no
18567fi
18568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m32_support" >&5
18570$as_echo "$m32_support" >&6; }
18571	    CFLAGS="$SAVE_CFLAGS"
18572	fi
18573	;;
18574esac
18575
18576
18577# Store the list of server defined optional extensions in REQUIRED_MODULES
18578
18579
18580	SAVE_CFLAGS="$CFLAGS"
18581	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18582	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583/* end confdefs.h.  */
18584
18585#include "xorg-server.h"
18586#if !defined RANDR
18587#error RANDR not defined
18588#endif
18589
18590int
18591main ()
18592{
18593
18594  ;
18595  return 0;
18596}
18597_ACEOF
18598if ac_fn_c_try_compile "$LINENO"; then :
18599  _EXT_CHECK=yes
18600else
18601  _EXT_CHECK=no
18602fi
18603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604	CFLAGS="$SAVE_CFLAGS"
18605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18606$as_echo_n "checking if RANDR is defined... " >&6; }
18607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18608$as_echo "$_EXT_CHECK" >&6; }
18609	if test "$_EXT_CHECK" != no; then
18610		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18611	fi
18612
18613
18614
18615	SAVE_CFLAGS="$CFLAGS"
18616	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18617	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618/* end confdefs.h.  */
18619
18620#include "xorg-server.h"
18621#if !defined RENDER
18622#error RENDER not defined
18623#endif
18624
18625int
18626main ()
18627{
18628
18629  ;
18630  return 0;
18631}
18632_ACEOF
18633if ac_fn_c_try_compile "$LINENO"; then :
18634  _EXT_CHECK=yes
18635else
18636  _EXT_CHECK=no
18637fi
18638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18639	CFLAGS="$SAVE_CFLAGS"
18640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18641$as_echo_n "checking if RENDER is defined... " >&6; }
18642	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18643$as_echo "$_EXT_CHECK" >&6; }
18644	if test "$_EXT_CHECK" != no; then
18645		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18646	fi
18647
18648
18649
18650	SAVE_CFLAGS="$CFLAGS"
18651	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18652	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h.  */
18654
18655#include "xorg-server.h"
18656#if !defined XV
18657#error XV not defined
18658#endif
18659
18660int
18661main ()
18662{
18663
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_compile "$LINENO"; then :
18669  _EXT_CHECK=yes
18670else
18671  _EXT_CHECK=no
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674	CFLAGS="$SAVE_CFLAGS"
18675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18676$as_echo_n "checking if XV is defined... " >&6; }
18677	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18678$as_echo "$_EXT_CHECK" >&6; }
18679	if test "$_EXT_CHECK" != no; then
18680		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18681	fi
18682
18683
18684
18685	SAVE_CFLAGS="$CFLAGS"
18686	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18687	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688/* end confdefs.h.  */
18689
18690#include "xorg-server.h"
18691#if !defined DPMSExtension
18692#error DPMSExtension not defined
18693#endif
18694
18695int
18696main ()
18697{
18698
18699  ;
18700  return 0;
18701}
18702_ACEOF
18703if ac_fn_c_try_compile "$LINENO"; then :
18704  _EXT_CHECK=yes
18705else
18706  _EXT_CHECK=no
18707fi
18708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709	CFLAGS="$SAVE_CFLAGS"
18710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18711$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18712	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18713$as_echo "$_EXT_CHECK" >&6; }
18714	if test "$_EXT_CHECK" != no; then
18715		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18716	fi
18717
18718
18719# Obtain compiler/linker options for the Geode driver dependencies
18720
18721pkg_failed=no
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18723$as_echo_n "checking for XORG... " >&6; }
18724
18725if test -n "$XORG_CFLAGS"; then
18726    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18727 elif test -n "$PKG_CONFIG"; then
18728    if test -n "$PKG_CONFIG" && \
18729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18730  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18731  ac_status=$?
18732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18733  test $ac_status = 0; }; then
18734  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18735		      test "x$?" != "x0" && pkg_failed=yes
18736else
18737  pkg_failed=yes
18738fi
18739 else
18740    pkg_failed=untried
18741fi
18742if test -n "$XORG_LIBS"; then
18743    pkg_cv_XORG_LIBS="$XORG_LIBS"
18744 elif test -n "$PKG_CONFIG"; then
18745    if test -n "$PKG_CONFIG" && \
18746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18747  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
18748  ac_status=$?
18749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18750  test $ac_status = 0; }; then
18751  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18752		      test "x$?" != "x0" && pkg_failed=yes
18753else
18754  pkg_failed=yes
18755fi
18756 else
18757    pkg_failed=untried
18758fi
18759
18760
18761
18762if test $pkg_failed = yes; then
18763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764$as_echo "no" >&6; }
18765
18766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18767        _pkg_short_errors_supported=yes
18768else
18769        _pkg_short_errors_supported=no
18770fi
18771        if test $_pkg_short_errors_supported = yes; then
18772	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18773        else
18774	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
18775        fi
18776	# Put the nasty error message in config.log where it belongs
18777	echo "$XORG_PKG_ERRORS" >&5
18778
18779	as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
18780
18781$XORG_PKG_ERRORS
18782
18783Consider adjusting the PKG_CONFIG_PATH environment variable if you
18784installed software in a non-standard prefix.
18785
18786Alternatively, you may set the environment variables XORG_CFLAGS
18787and XORG_LIBS to avoid the need to call pkg-config.
18788See the pkg-config man page for more details." "$LINENO" 5
18789elif test $pkg_failed = untried; then
18790     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791$as_echo "no" >&6; }
18792	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18794as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18795is in your PATH or set the PKG_CONFIG environment variable to the full
18796path to pkg-config.
18797
18798Alternatively, you may set the environment variables XORG_CFLAGS
18799and XORG_LIBS to avoid the need to call pkg-config.
18800See the pkg-config man page for more details.
18801
18802To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18803See \`config.log' for more details" "$LINENO" 5; }
18804else
18805	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18806	XORG_LIBS=$pkg_cv_XORG_LIBS
18807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18808$as_echo "yes" >&6; }
18809
18810fi
18811
18812pkg_failed=no
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18814$as_echo_n "checking for XEXT... " >&6; }
18815
18816if test -n "$XEXT_CFLAGS"; then
18817    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18818 elif test -n "$PKG_CONFIG"; then
18819    if test -n "$PKG_CONFIG" && \
18820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18821  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18822  ac_status=$?
18823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18824  test $ac_status = 0; }; then
18825  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18826		      test "x$?" != "x0" && pkg_failed=yes
18827else
18828  pkg_failed=yes
18829fi
18830 else
18831    pkg_failed=untried
18832fi
18833if test -n "$XEXT_LIBS"; then
18834    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18835 elif test -n "$PKG_CONFIG"; then
18836    if test -n "$PKG_CONFIG" && \
18837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18838  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18839  ac_status=$?
18840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18841  test $ac_status = 0; }; then
18842  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18843		      test "x$?" != "x0" && pkg_failed=yes
18844else
18845  pkg_failed=yes
18846fi
18847 else
18848    pkg_failed=untried
18849fi
18850
18851
18852
18853if test $pkg_failed = yes; then
18854   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18855$as_echo "no" >&6; }
18856
18857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18858        _pkg_short_errors_supported=yes
18859else
18860        _pkg_short_errors_supported=no
18861fi
18862        if test $_pkg_short_errors_supported = yes; then
18863	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18864        else
18865	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18866        fi
18867	# Put the nasty error message in config.log where it belongs
18868	echo "$XEXT_PKG_ERRORS" >&5
18869
18870	HAVE_XEXTPROTO_71="no"
18871elif test $pkg_failed = untried; then
18872     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873$as_echo "no" >&6; }
18874	HAVE_XEXTPROTO_71="no"
18875else
18876	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18877	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18879$as_echo "yes" >&6; }
18880	HAVE_XEXTPROTO_71="yes";
18881$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18882
18883fi
18884
18885# Define a configure option to enable/disable XAA support;
18886# handles unavailability of XAA since xserver-1.13
18887# Check whether --enable-xaa was given.
18888if test "${enable_xaa+set}" = set; then :
18889  enableval=$enable_xaa;
18890fi
18891
18892
18893if test "x$enable_xaa" != "xno"; then :
18894
18895        save_CFLAGS=$CFLAGS
18896        save_CPPFLAGS=$CPPFLAGS
18897        CFLAGS=$XORG_CFLAGS
18898        CPPFLAGS="$XORG_CFLAGS"
18899        for ac_header in xaa.h
18900do :
18901  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18902if test "x$ac_cv_header_xaa_h" = xyes; then :
18903  cat >>confdefs.h <<_ACEOF
18904#define HAVE_XAA_H 1
18905_ACEOF
18906 have_XAA=yes
18907else
18908  have_XAA=no
18909fi
18910
18911done
18912
18913        CFLAGS=$save_CFLAGS
18914        CPPFLAGS=$save_CPPFLAGS
18915
18916fi
18917
18918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18919$as_echo_n "checking whether to include XAA support... " >&6; }
18920
18921if test "x$have_XAA" = "xyes"; then :
18922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923$as_echo "yes" >&6; }
18924else
18925  if test "x$enable_xaa" = "xyes"; then :
18926  as_fn_error $? "XAA requested but not found (perhaps building against xserver-1.13 or newer?)" "$LINENO" 5
18927else
18928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929$as_echo "no" >&6; }
18930
18931fi
18932
18933fi
18934
18935# Checks for libpciaccess support.
18936SAVE_CPPFLAGS="$CPPFLAGS"
18937CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18938ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18939"
18940if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18941  XSERVER_LIBPCIACCESS=yes
18942else
18943  XSERVER_LIBPCIACCESS=no
18944fi
18945
18946CPPFLAGS="$SAVE_CPPFLAGS"
18947
18948if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18949
18950pkg_failed=no
18951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18952$as_echo_n "checking for PCIACCESS... " >&6; }
18953
18954if test -n "$PCIACCESS_CFLAGS"; then
18955    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18956 elif test -n "$PKG_CONFIG"; then
18957    if test -n "$PKG_CONFIG" && \
18958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18959  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18960  ac_status=$?
18961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962  test $ac_status = 0; }; then
18963  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18964		      test "x$?" != "x0" && pkg_failed=yes
18965else
18966  pkg_failed=yes
18967fi
18968 else
18969    pkg_failed=untried
18970fi
18971if test -n "$PCIACCESS_LIBS"; then
18972    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18973 elif test -n "$PKG_CONFIG"; then
18974    if test -n "$PKG_CONFIG" && \
18975    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18976  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18977  ac_status=$?
18978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18979  test $ac_status = 0; }; then
18980  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18981		      test "x$?" != "x0" && pkg_failed=yes
18982else
18983  pkg_failed=yes
18984fi
18985 else
18986    pkg_failed=untried
18987fi
18988
18989
18990
18991if test $pkg_failed = yes; then
18992   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993$as_echo "no" >&6; }
18994
18995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18996        _pkg_short_errors_supported=yes
18997else
18998        _pkg_short_errors_supported=no
18999fi
19000        if test $_pkg_short_errors_supported = yes; then
19001	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19002        else
19003	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19004        fi
19005	# Put the nasty error message in config.log where it belongs
19006	echo "$PCIACCESS_PKG_ERRORS" >&5
19007
19008	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19009
19010$PCIACCESS_PKG_ERRORS
19011
19012Consider adjusting the PKG_CONFIG_PATH environment variable if you
19013installed software in a non-standard prefix.
19014
19015Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19016and PCIACCESS_LIBS to avoid the need to call pkg-config.
19017See the pkg-config man page for more details." "$LINENO" 5
19018elif test $pkg_failed = untried; then
19019     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020$as_echo "no" >&6; }
19021	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19023as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19024is in your PATH or set the PKG_CONFIG environment variable to the full
19025path to pkg-config.
19026
19027Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19028and PCIACCESS_LIBS to avoid the need to call pkg-config.
19029See the pkg-config man page for more details.
19030
19031To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19032See \`config.log' for more details" "$LINENO" 5; }
19033else
19034	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19035	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19037$as_echo "yes" >&6; }
19038
19039fi
19040    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19041fi
19042
19043ac_config_files="$ac_config_files Makefile src/Makefile"
19044
19045cat >confcache <<\_ACEOF
19046# This file is a shell script that caches the results of configure
19047# tests run on this system so they can be shared between configure
19048# scripts and configure runs, see configure's option --config-cache.
19049# It is not useful on other systems.  If it contains results you don't
19050# want to keep, you may remove or edit it.
19051#
19052# config.status only pays attention to the cache file if you give it
19053# the --recheck option to rerun configure.
19054#
19055# `ac_cv_env_foo' variables (set or unset) will be overridden when
19056# loading this file, other *unset* `ac_cv_foo' will be assigned the
19057# following values.
19058
19059_ACEOF
19060
19061# The following way of writing the cache mishandles newlines in values,
19062# but we know of no workaround that is simple, portable, and efficient.
19063# So, we kill variables containing newlines.
19064# Ultrix sh set writes to stderr and can't be redirected directly,
19065# and sets the high bit in the cache file unless we assign to the vars.
19066(
19067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19068    eval ac_val=\$$ac_var
19069    case $ac_val in #(
19070    *${as_nl}*)
19071      case $ac_var in #(
19072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19074      esac
19075      case $ac_var in #(
19076      _ | IFS | as_nl) ;; #(
19077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19078      *) { eval $ac_var=; unset $ac_var;} ;;
19079      esac ;;
19080    esac
19081  done
19082
19083  (set) 2>&1 |
19084    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19085    *${as_nl}ac_space=\ *)
19086      # `set' does not quote correctly, so add quotes: double-quote
19087      # substitution turns \\\\ into \\, and sed turns \\ into \.
19088      sed -n \
19089	"s/'/'\\\\''/g;
19090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19091      ;; #(
19092    *)
19093      # `set' quotes correctly as required by POSIX, so do not add quotes.
19094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19095      ;;
19096    esac |
19097    sort
19098) |
19099  sed '
19100     /^ac_cv_env_/b end
19101     t clear
19102     :clear
19103     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19104     t end
19105     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19106     :end' >>confcache
19107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19108  if test -w "$cache_file"; then
19109    if test "x$cache_file" != "x/dev/null"; then
19110      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19111$as_echo "$as_me: updating cache $cache_file" >&6;}
19112      if test ! -f "$cache_file" || test -h "$cache_file"; then
19113	cat confcache >"$cache_file"
19114      else
19115        case $cache_file in #(
19116        */* | ?:*)
19117	  mv -f confcache "$cache_file"$$ &&
19118	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19119        *)
19120	  mv -f confcache "$cache_file" ;;
19121	esac
19122      fi
19123    fi
19124  else
19125    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19127  fi
19128fi
19129rm -f confcache
19130
19131test "x$prefix" = xNONE && prefix=$ac_default_prefix
19132# Let make expand exec_prefix.
19133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19134
19135DEFS=-DHAVE_CONFIG_H
19136
19137ac_libobjs=
19138ac_ltlibobjs=
19139U=
19140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19141  # 1. Remove the extension, and $U if already installed.
19142  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19143  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19144  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19145  #    will be set to the directory where LIBOBJS objects are built.
19146  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19147  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19148done
19149LIBOBJS=$ac_libobjs
19150
19151LTLIBOBJS=$ac_ltlibobjs
19152
19153
19154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19155$as_echo_n "checking that generated files are newer than configure... " >&6; }
19156   if test -n "$am_sleep_pid"; then
19157     # Hide warnings about reused PIDs.
19158     wait $am_sleep_pid 2>/dev/null
19159   fi
19160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19161$as_echo "done" >&6; }
19162 if test -n "$EXEEXT"; then
19163  am__EXEEXT_TRUE=
19164  am__EXEEXT_FALSE='#'
19165else
19166  am__EXEEXT_TRUE='#'
19167  am__EXEEXT_FALSE=
19168fi
19169
19170if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19171  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19172Usually this means the macro was only invoked conditionally." "$LINENO" 5
19173fi
19174if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19175  as_fn_error $? "conditional \"AMDEP\" was never defined.
19176Usually this means the macro was only invoked conditionally." "$LINENO" 5
19177fi
19178if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19179  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19180Usually this means the macro was only invoked conditionally." "$LINENO" 5
19181fi
19182if test -z "${BUILD_ZTV_TRUE}" && test -z "${BUILD_ZTV_FALSE}"; then
19183  as_fn_error $? "conditional \"BUILD_ZTV\" was never defined.
19184Usually this means the macro was only invoked conditionally." "$LINENO" 5
19185fi
19186
19187: "${CONFIG_STATUS=./config.status}"
19188ac_write_fail=0
19189ac_clean_files_save=$ac_clean_files
19190ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19192$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19193as_write_fail=0
19194cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19195#! $SHELL
19196# Generated by $as_me.
19197# Run this file to recreate the current configuration.
19198# Compiler output produced by configure, useful for debugging
19199# configure, is in config.log if it exists.
19200
19201debug=false
19202ac_cs_recheck=false
19203ac_cs_silent=false
19204
19205SHELL=\${CONFIG_SHELL-$SHELL}
19206export SHELL
19207_ASEOF
19208cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19209## -------------------- ##
19210## M4sh Initialization. ##
19211## -------------------- ##
19212
19213# Be more Bourne compatible
19214DUALCASE=1; export DUALCASE # for MKS sh
19215if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19216  emulate sh
19217  NULLCMD=:
19218  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19219  # is contrary to our usage.  Disable this feature.
19220  alias -g '${1+"$@"}'='"$@"'
19221  setopt NO_GLOB_SUBST
19222else
19223  case `(set -o) 2>/dev/null` in #(
19224  *posix*) :
19225    set -o posix ;; #(
19226  *) :
19227     ;;
19228esac
19229fi
19230
19231
19232as_nl='
19233'
19234export as_nl
19235# Printing a long string crashes Solaris 7 /usr/bin/printf.
19236as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19237as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19238as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19239# Prefer a ksh shell builtin over an external printf program on Solaris,
19240# but without wasting forks for bash or zsh.
19241if test -z "$BASH_VERSION$ZSH_VERSION" \
19242    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19243  as_echo='print -r --'
19244  as_echo_n='print -rn --'
19245elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19246  as_echo='printf %s\n'
19247  as_echo_n='printf %s'
19248else
19249  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19250    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19251    as_echo_n='/usr/ucb/echo -n'
19252  else
19253    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19254    as_echo_n_body='eval
19255      arg=$1;
19256      case $arg in #(
19257      *"$as_nl"*)
19258	expr "X$arg" : "X\\(.*\\)$as_nl";
19259	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19260      esac;
19261      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19262    '
19263    export as_echo_n_body
19264    as_echo_n='sh -c $as_echo_n_body as_echo'
19265  fi
19266  export as_echo_body
19267  as_echo='sh -c $as_echo_body as_echo'
19268fi
19269
19270# The user is always right.
19271if test "${PATH_SEPARATOR+set}" != set; then
19272  PATH_SEPARATOR=:
19273  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19274    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19275      PATH_SEPARATOR=';'
19276  }
19277fi
19278
19279
19280# IFS
19281# We need space, tab and new line, in precisely that order.  Quoting is
19282# there to prevent editors from complaining about space-tab.
19283# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19284# splitting by setting IFS to empty value.)
19285IFS=" ""	$as_nl"
19286
19287# Find who we are.  Look in the path if we contain no directory separator.
19288as_myself=
19289case $0 in #((
19290  *[\\/]* ) as_myself=$0 ;;
19291  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19292for as_dir in $PATH
19293do
19294  IFS=$as_save_IFS
19295  test -z "$as_dir" && as_dir=.
19296    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19297  done
19298IFS=$as_save_IFS
19299
19300     ;;
19301esac
19302# We did not find ourselves, most probably we were run as `sh COMMAND'
19303# in which case we are not to be found in the path.
19304if test "x$as_myself" = x; then
19305  as_myself=$0
19306fi
19307if test ! -f "$as_myself"; then
19308  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19309  exit 1
19310fi
19311
19312# Unset variables that we do not need and which cause bugs (e.g. in
19313# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19314# suppresses any "Segmentation fault" message there.  '((' could
19315# trigger a bug in pdksh 5.2.14.
19316for as_var in BASH_ENV ENV MAIL MAILPATH
19317do eval test x\${$as_var+set} = xset \
19318  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19319done
19320PS1='$ '
19321PS2='> '
19322PS4='+ '
19323
19324# NLS nuisances.
19325LC_ALL=C
19326export LC_ALL
19327LANGUAGE=C
19328export LANGUAGE
19329
19330# CDPATH.
19331(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19332
19333
19334# as_fn_error STATUS ERROR [LINENO LOG_FD]
19335# ----------------------------------------
19336# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19337# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19338# script with STATUS, using 1 if that was 0.
19339as_fn_error ()
19340{
19341  as_status=$1; test $as_status -eq 0 && as_status=1
19342  if test "$4"; then
19343    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19344    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19345  fi
19346  $as_echo "$as_me: error: $2" >&2
19347  as_fn_exit $as_status
19348} # as_fn_error
19349
19350
19351# as_fn_set_status STATUS
19352# -----------------------
19353# Set $? to STATUS, without forking.
19354as_fn_set_status ()
19355{
19356  return $1
19357} # as_fn_set_status
19358
19359# as_fn_exit STATUS
19360# -----------------
19361# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19362as_fn_exit ()
19363{
19364  set +e
19365  as_fn_set_status $1
19366  exit $1
19367} # as_fn_exit
19368
19369# as_fn_unset VAR
19370# ---------------
19371# Portably unset VAR.
19372as_fn_unset ()
19373{
19374  { eval $1=; unset $1;}
19375}
19376as_unset=as_fn_unset
19377# as_fn_append VAR VALUE
19378# ----------------------
19379# Append the text in VALUE to the end of the definition contained in VAR. Take
19380# advantage of any shell optimizations that allow amortized linear growth over
19381# repeated appends, instead of the typical quadratic growth present in naive
19382# implementations.
19383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19384  eval 'as_fn_append ()
19385  {
19386    eval $1+=\$2
19387  }'
19388else
19389  as_fn_append ()
19390  {
19391    eval $1=\$$1\$2
19392  }
19393fi # as_fn_append
19394
19395# as_fn_arith ARG...
19396# ------------------
19397# Perform arithmetic evaluation on the ARGs, and store the result in the
19398# global $as_val. Take advantage of shells that can avoid forks. The arguments
19399# must be portable across $(()) and expr.
19400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19401  eval 'as_fn_arith ()
19402  {
19403    as_val=$(( $* ))
19404  }'
19405else
19406  as_fn_arith ()
19407  {
19408    as_val=`expr "$@" || test $? -eq 1`
19409  }
19410fi # as_fn_arith
19411
19412
19413if expr a : '\(a\)' >/dev/null 2>&1 &&
19414   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19415  as_expr=expr
19416else
19417  as_expr=false
19418fi
19419
19420if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19421  as_basename=basename
19422else
19423  as_basename=false
19424fi
19425
19426if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19427  as_dirname=dirname
19428else
19429  as_dirname=false
19430fi
19431
19432as_me=`$as_basename -- "$0" ||
19433$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19434	 X"$0" : 'X\(//\)$' \| \
19435	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19436$as_echo X/"$0" |
19437    sed '/^.*\/\([^/][^/]*\)\/*$/{
19438	    s//\1/
19439	    q
19440	  }
19441	  /^X\/\(\/\/\)$/{
19442	    s//\1/
19443	    q
19444	  }
19445	  /^X\/\(\/\).*/{
19446	    s//\1/
19447	    q
19448	  }
19449	  s/.*/./; q'`
19450
19451# Avoid depending upon Character Ranges.
19452as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19453as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19454as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19455as_cr_digits='0123456789'
19456as_cr_alnum=$as_cr_Letters$as_cr_digits
19457
19458ECHO_C= ECHO_N= ECHO_T=
19459case `echo -n x` in #(((((
19460-n*)
19461  case `echo 'xy\c'` in
19462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19463  xy)  ECHO_C='\c';;
19464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19465       ECHO_T='	';;
19466  esac;;
19467*)
19468  ECHO_N='-n';;
19469esac
19470
19471rm -f conf$$ conf$$.exe conf$$.file
19472if test -d conf$$.dir; then
19473  rm -f conf$$.dir/conf$$.file
19474else
19475  rm -f conf$$.dir
19476  mkdir conf$$.dir 2>/dev/null
19477fi
19478if (echo >conf$$.file) 2>/dev/null; then
19479  if ln -s conf$$.file conf$$ 2>/dev/null; then
19480    as_ln_s='ln -s'
19481    # ... but there are two gotchas:
19482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19484    # In both cases, we have to default to `cp -pR'.
19485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19486      as_ln_s='cp -pR'
19487  elif ln conf$$.file conf$$ 2>/dev/null; then
19488    as_ln_s=ln
19489  else
19490    as_ln_s='cp -pR'
19491  fi
19492else
19493  as_ln_s='cp -pR'
19494fi
19495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19496rmdir conf$$.dir 2>/dev/null
19497
19498
19499# as_fn_mkdir_p
19500# -------------
19501# Create "$as_dir" as a directory, including parents if necessary.
19502as_fn_mkdir_p ()
19503{
19504
19505  case $as_dir in #(
19506  -*) as_dir=./$as_dir;;
19507  esac
19508  test -d "$as_dir" || eval $as_mkdir_p || {
19509    as_dirs=
19510    while :; do
19511      case $as_dir in #(
19512      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19513      *) as_qdir=$as_dir;;
19514      esac
19515      as_dirs="'$as_qdir' $as_dirs"
19516      as_dir=`$as_dirname -- "$as_dir" ||
19517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19518	 X"$as_dir" : 'X\(//\)[^/]' \| \
19519	 X"$as_dir" : 'X\(//\)$' \| \
19520	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19521$as_echo X"$as_dir" |
19522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19523	    s//\1/
19524	    q
19525	  }
19526	  /^X\(\/\/\)[^/].*/{
19527	    s//\1/
19528	    q
19529	  }
19530	  /^X\(\/\/\)$/{
19531	    s//\1/
19532	    q
19533	  }
19534	  /^X\(\/\).*/{
19535	    s//\1/
19536	    q
19537	  }
19538	  s/.*/./; q'`
19539      test -d "$as_dir" && break
19540    done
19541    test -z "$as_dirs" || eval "mkdir $as_dirs"
19542  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19543
19544
19545} # as_fn_mkdir_p
19546if mkdir -p . 2>/dev/null; then
19547  as_mkdir_p='mkdir -p "$as_dir"'
19548else
19549  test -d ./-p && rmdir ./-p
19550  as_mkdir_p=false
19551fi
19552
19553
19554# as_fn_executable_p FILE
19555# -----------------------
19556# Test if FILE is an executable regular file.
19557as_fn_executable_p ()
19558{
19559  test -f "$1" && test -x "$1"
19560} # as_fn_executable_p
19561as_test_x='test -x'
19562as_executable_p=as_fn_executable_p
19563
19564# Sed expression to map a string onto a valid CPP name.
19565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19566
19567# Sed expression to map a string onto a valid variable name.
19568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19569
19570
19571exec 6>&1
19572## ----------------------------------- ##
19573## Main body of $CONFIG_STATUS script. ##
19574## ----------------------------------- ##
19575_ASEOF
19576test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19577
19578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19579# Save the log message, to keep $0 and so on meaningful, and to
19580# report actual input values of CONFIG_FILES etc. instead of their
19581# values after options handling.
19582ac_log="
19583This file was extended by xf86-video-geode $as_me 2.11.20, which was
19584generated by GNU Autoconf 2.69.  Invocation command line was
19585
19586  CONFIG_FILES    = $CONFIG_FILES
19587  CONFIG_HEADERS  = $CONFIG_HEADERS
19588  CONFIG_LINKS    = $CONFIG_LINKS
19589  CONFIG_COMMANDS = $CONFIG_COMMANDS
19590  $ $0 $@
19591
19592on `(hostname || uname -n) 2>/dev/null | sed 1q`
19593"
19594
19595_ACEOF
19596
19597case $ac_config_files in *"
19598"*) set x $ac_config_files; shift; ac_config_files=$*;;
19599esac
19600
19601case $ac_config_headers in *"
19602"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19603esac
19604
19605
19606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19607# Files that config.status was made for.
19608config_files="$ac_config_files"
19609config_headers="$ac_config_headers"
19610config_commands="$ac_config_commands"
19611
19612_ACEOF
19613
19614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19615ac_cs_usage="\
19616\`$as_me' instantiates files and other configuration actions
19617from templates according to the current configuration.  Unless the files
19618and actions are specified as TAGs, all are instantiated by default.
19619
19620Usage: $0 [OPTION]... [TAG]...
19621
19622  -h, --help       print this help, then exit
19623  -V, --version    print version number and configuration settings, then exit
19624      --config     print configuration, then exit
19625  -q, --quiet, --silent
19626                   do not print progress messages
19627  -d, --debug      don't remove temporary files
19628      --recheck    update $as_me by reconfiguring in the same conditions
19629      --file=FILE[:TEMPLATE]
19630                   instantiate the configuration file FILE
19631      --header=FILE[:TEMPLATE]
19632                   instantiate the configuration header FILE
19633
19634Configuration files:
19635$config_files
19636
19637Configuration headers:
19638$config_headers
19639
19640Configuration commands:
19641$config_commands
19642
19643Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/issues>.
19644xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>."
19645
19646_ACEOF
19647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19648ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19649ac_cs_version="\\
19650xf86-video-geode config.status 2.11.20
19651configured by $0, generated by GNU Autoconf 2.69,
19652  with options \\"\$ac_cs_config\\"
19653
19654Copyright (C) 2012 Free Software Foundation, Inc.
19655This config.status script is free software; the Free Software Foundation
19656gives unlimited permission to copy, distribute and modify it."
19657
19658ac_pwd='$ac_pwd'
19659srcdir='$srcdir'
19660INSTALL='$INSTALL'
19661MKDIR_P='$MKDIR_P'
19662AWK='$AWK'
19663test -n "\$AWK" || AWK=awk
19664_ACEOF
19665
19666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19667# The default lists apply if the user does not specify any file.
19668ac_need_defaults=:
19669while test $# != 0
19670do
19671  case $1 in
19672  --*=?*)
19673    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19674    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19675    ac_shift=:
19676    ;;
19677  --*=)
19678    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19679    ac_optarg=
19680    ac_shift=:
19681    ;;
19682  *)
19683    ac_option=$1
19684    ac_optarg=$2
19685    ac_shift=shift
19686    ;;
19687  esac
19688
19689  case $ac_option in
19690  # Handling of the options.
19691  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19692    ac_cs_recheck=: ;;
19693  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19694    $as_echo "$ac_cs_version"; exit ;;
19695  --config | --confi | --conf | --con | --co | --c )
19696    $as_echo "$ac_cs_config"; exit ;;
19697  --debug | --debu | --deb | --de | --d | -d )
19698    debug=: ;;
19699  --file | --fil | --fi | --f )
19700    $ac_shift
19701    case $ac_optarg in
19702    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19703    '') as_fn_error $? "missing file argument" ;;
19704    esac
19705    as_fn_append CONFIG_FILES " '$ac_optarg'"
19706    ac_need_defaults=false;;
19707  --header | --heade | --head | --hea )
19708    $ac_shift
19709    case $ac_optarg in
19710    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19711    esac
19712    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19713    ac_need_defaults=false;;
19714  --he | --h)
19715    # Conflict between --help and --header
19716    as_fn_error $? "ambiguous option: \`$1'
19717Try \`$0 --help' for more information.";;
19718  --help | --hel | -h )
19719    $as_echo "$ac_cs_usage"; exit ;;
19720  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19721  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19722    ac_cs_silent=: ;;
19723
19724  # This is an error.
19725  -*) as_fn_error $? "unrecognized option: \`$1'
19726Try \`$0 --help' for more information." ;;
19727
19728  *) as_fn_append ac_config_targets " $1"
19729     ac_need_defaults=false ;;
19730
19731  esac
19732  shift
19733done
19734
19735ac_configure_extra_args=
19736
19737if $ac_cs_silent; then
19738  exec 6>/dev/null
19739  ac_configure_extra_args="$ac_configure_extra_args --silent"
19740fi
19741
19742_ACEOF
19743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19744if \$ac_cs_recheck; then
19745  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19746  shift
19747  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19748  CONFIG_SHELL='$SHELL'
19749  export CONFIG_SHELL
19750  exec "\$@"
19751fi
19752
19753_ACEOF
19754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19755exec 5>>config.log
19756{
19757  echo
19758  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19759## Running $as_me. ##
19760_ASBOX
19761  $as_echo "$ac_log"
19762} >&5
19763
19764_ACEOF
19765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766#
19767# INIT-COMMANDS
19768#
19769AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19770
19771
19772# The HP-UX ksh and POSIX shell print the target directory to stdout
19773# if CDPATH is set.
19774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19775
19776sed_quote_subst='$sed_quote_subst'
19777double_quote_subst='$double_quote_subst'
19778delay_variable_subst='$delay_variable_subst'
19779enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19780macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19781macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19782enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19783pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19784enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19785shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19786SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19787ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19788PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19789host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19790host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19791host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19792build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19793build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19794build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19795SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19796Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19797GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19798EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19799FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19800LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19801NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19802LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19803max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19804ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19805exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19806lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19807lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19808lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19809lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19810lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19811reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19812reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19813OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19814deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19815file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19816file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19817want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19818DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19819sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19820AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19821AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19822archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19823STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19824RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19825old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19826old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19827old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19828lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19829CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19830CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19831compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19832GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19833lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19834lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19835lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19836lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19837lt_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"`'
19838lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19839nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19840lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19841lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19842objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19843MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19844lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19845lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19846lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19847lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19848lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19849need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19850MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19851DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19852NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19853LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19854OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19855OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19856libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19857shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19858extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19859archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19860enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19861export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19862whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19863compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19864old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19865old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19866archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19867archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19868module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19869module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19870with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19871allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19872no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19873hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19874hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19875hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19876hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19877hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19878hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19879hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19880inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19881link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19882always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19883export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19884exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19885include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19886prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19887postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19888file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19889variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19890need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19891need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19892version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19893runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19894shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19895shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19896libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19897library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19898soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19899install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19900postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19901postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19902finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19903finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19904hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19905sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19906configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19907configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19908hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19909enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19910enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19911enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19912old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19913striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19914
19915LTCC='$LTCC'
19916LTCFLAGS='$LTCFLAGS'
19917compiler='$compiler_DEFAULT'
19918
19919# A function that is used when there is no print builtin or printf.
19920func_fallback_echo ()
19921{
19922  eval 'cat <<_LTECHO_EOF
19923\$1
19924_LTECHO_EOF'
19925}
19926
19927# Quote evaled strings.
19928for var in SHELL \
19929ECHO \
19930PATH_SEPARATOR \
19931SED \
19932GREP \
19933EGREP \
19934FGREP \
19935LD \
19936NM \
19937LN_S \
19938lt_SP2NL \
19939lt_NL2SP \
19940reload_flag \
19941OBJDUMP \
19942deplibs_check_method \
19943file_magic_cmd \
19944file_magic_glob \
19945want_nocaseglob \
19946DLLTOOL \
19947sharedlib_from_linklib_cmd \
19948AR \
19949AR_FLAGS \
19950archiver_list_spec \
19951STRIP \
19952RANLIB \
19953CC \
19954CFLAGS \
19955compiler \
19956lt_cv_sys_global_symbol_pipe \
19957lt_cv_sys_global_symbol_to_cdecl \
19958lt_cv_sys_global_symbol_to_import \
19959lt_cv_sys_global_symbol_to_c_name_address \
19960lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19961lt_cv_nm_interface \
19962nm_file_list_spec \
19963lt_cv_truncate_bin \
19964lt_prog_compiler_no_builtin_flag \
19965lt_prog_compiler_pic \
19966lt_prog_compiler_wl \
19967lt_prog_compiler_static \
19968lt_cv_prog_compiler_c_o \
19969need_locks \
19970MANIFEST_TOOL \
19971DSYMUTIL \
19972NMEDIT \
19973LIPO \
19974OTOOL \
19975OTOOL64 \
19976shrext_cmds \
19977export_dynamic_flag_spec \
19978whole_archive_flag_spec \
19979compiler_needs_object \
19980with_gnu_ld \
19981allow_undefined_flag \
19982no_undefined_flag \
19983hardcode_libdir_flag_spec \
19984hardcode_libdir_separator \
19985exclude_expsyms \
19986include_expsyms \
19987file_list_spec \
19988variables_saved_for_relink \
19989libname_spec \
19990library_names_spec \
19991soname_spec \
19992install_override_mode \
19993finish_eval \
19994old_striplib \
19995striplib; do
19996    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19997    *[\\\\\\\`\\"\\\$]*)
19998      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19999      ;;
20000    *)
20001      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20002      ;;
20003    esac
20004done
20005
20006# Double-quote double-evaled strings.
20007for var in reload_cmds \
20008old_postinstall_cmds \
20009old_postuninstall_cmds \
20010old_archive_cmds \
20011extract_expsyms_cmds \
20012old_archive_from_new_cmds \
20013old_archive_from_expsyms_cmds \
20014archive_cmds \
20015archive_expsym_cmds \
20016module_cmds \
20017module_expsym_cmds \
20018export_symbols_cmds \
20019prelink_cmds \
20020postlink_cmds \
20021postinstall_cmds \
20022postuninstall_cmds \
20023finish_cmds \
20024sys_lib_search_path_spec \
20025configure_time_dlsearch_path \
20026configure_time_lt_sys_library_path; do
20027    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20028    *[\\\\\\\`\\"\\\$]*)
20029      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20030      ;;
20031    *)
20032      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20033      ;;
20034    esac
20035done
20036
20037ac_aux_dir='$ac_aux_dir'
20038
20039# See if we are running on zsh, and set the options that allow our
20040# commands through without removal of \ escapes INIT.
20041if test -n "\${ZSH_VERSION+set}"; then
20042   setopt NO_GLOB_SUBST
20043fi
20044
20045
20046    PACKAGE='$PACKAGE'
20047    VERSION='$VERSION'
20048    RM='$RM'
20049    ofile='$ofile'
20050
20051
20052
20053
20054_ACEOF
20055
20056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20057
20058# Handling of arguments.
20059for ac_config_target in $ac_config_targets
20060do
20061  case $ac_config_target in
20062    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20063    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20064    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20065    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20066    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20067
20068  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20069  esac
20070done
20071
20072
20073# If the user did not use the arguments to specify the items to instantiate,
20074# then the envvar interface is used.  Set only those that are not.
20075# We use the long form for the default assignment because of an extremely
20076# bizarre bug on SunOS 4.1.3.
20077if $ac_need_defaults; then
20078  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20079  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20080  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20081fi
20082
20083# Have a temporary directory for convenience.  Make it in the build tree
20084# simply because there is no reason against having it here, and in addition,
20085# creating and moving files from /tmp can sometimes cause problems.
20086# Hook for its removal unless debugging.
20087# Note that there is a small window in which the directory will not be cleaned:
20088# after its creation but before its name has been assigned to `$tmp'.
20089$debug ||
20090{
20091  tmp= ac_tmp=
20092  trap 'exit_status=$?
20093  : "${ac_tmp:=$tmp}"
20094  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20095' 0
20096  trap 'as_fn_exit 1' 1 2 13 15
20097}
20098# Create a (secure) tmp directory for tmp files.
20099
20100{
20101  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20102  test -d "$tmp"
20103}  ||
20104{
20105  tmp=./conf$$-$RANDOM
20106  (umask 077 && mkdir "$tmp")
20107} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20108ac_tmp=$tmp
20109
20110# Set up the scripts for CONFIG_FILES section.
20111# No need to generate them if there are no CONFIG_FILES.
20112# This happens for instance with `./config.status config.h'.
20113if test -n "$CONFIG_FILES"; then
20114
20115
20116ac_cr=`echo X | tr X '\015'`
20117# On cygwin, bash can eat \r inside `` if the user requested igncr.
20118# But we know of no other shell where ac_cr would be empty at this
20119# point, so we can use a bashism as a fallback.
20120if test "x$ac_cr" = x; then
20121  eval ac_cr=\$\'\\r\'
20122fi
20123ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20124if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20125  ac_cs_awk_cr='\\r'
20126else
20127  ac_cs_awk_cr=$ac_cr
20128fi
20129
20130echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20131_ACEOF
20132
20133
20134{
20135  echo "cat >conf$$subs.awk <<_ACEOF" &&
20136  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20137  echo "_ACEOF"
20138} >conf$$subs.sh ||
20139  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20140ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20141ac_delim='%!_!# '
20142for ac_last_try in false false false false false :; do
20143  . ./conf$$subs.sh ||
20144    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20145
20146  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20147  if test $ac_delim_n = $ac_delim_num; then
20148    break
20149  elif $ac_last_try; then
20150    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20151  else
20152    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20153  fi
20154done
20155rm -f conf$$subs.sh
20156
20157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20158cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20159_ACEOF
20160sed -n '
20161h
20162s/^/S["/; s/!.*/"]=/
20163p
20164g
20165s/^[^!]*!//
20166:repl
20167t repl
20168s/'"$ac_delim"'$//
20169t delim
20170:nl
20171h
20172s/\(.\{148\}\)..*/\1/
20173t more1
20174s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20175p
20176n
20177b repl
20178:more1
20179s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20180p
20181g
20182s/.\{148\}//
20183t nl
20184:delim
20185h
20186s/\(.\{148\}\)..*/\1/
20187t more2
20188s/["\\]/\\&/g; s/^/"/; s/$/"/
20189p
20190b
20191:more2
20192s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20193p
20194g
20195s/.\{148\}//
20196t delim
20197' <conf$$subs.awk | sed '
20198/^[^""]/{
20199  N
20200  s/\n//
20201}
20202' >>$CONFIG_STATUS || ac_write_fail=1
20203rm -f conf$$subs.awk
20204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20205_ACAWK
20206cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20207  for (key in S) S_is_set[key] = 1
20208  FS = ""
20209
20210}
20211{
20212  line = $ 0
20213  nfields = split(line, field, "@")
20214  substed = 0
20215  len = length(field[1])
20216  for (i = 2; i < nfields; i++) {
20217    key = field[i]
20218    keylen = length(key)
20219    if (S_is_set[key]) {
20220      value = S[key]
20221      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20222      len += length(value) + length(field[++i])
20223      substed = 1
20224    } else
20225      len += 1 + keylen
20226  }
20227
20228  print line
20229}
20230
20231_ACAWK
20232_ACEOF
20233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20234if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20235  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20236else
20237  cat
20238fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20239  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20240_ACEOF
20241
20242# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20243# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20244# trailing colons and then remove the whole line if VPATH becomes empty
20245# (actually we leave an empty line to preserve line numbers).
20246if test "x$srcdir" = x.; then
20247  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20248h
20249s///
20250s/^/:/
20251s/[	 ]*$/:/
20252s/:\$(srcdir):/:/g
20253s/:\${srcdir}:/:/g
20254s/:@srcdir@:/:/g
20255s/^:*//
20256s/:*$//
20257x
20258s/\(=[	 ]*\).*/\1/
20259G
20260s/\n//
20261s/^[^=]*=[	 ]*$//
20262}'
20263fi
20264
20265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20266fi # test -n "$CONFIG_FILES"
20267
20268# Set up the scripts for CONFIG_HEADERS section.
20269# No need to generate them if there are no CONFIG_HEADERS.
20270# This happens for instance with `./config.status Makefile'.
20271if test -n "$CONFIG_HEADERS"; then
20272cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20273BEGIN {
20274_ACEOF
20275
20276# Transform confdefs.h into an awk script `defines.awk', embedded as
20277# here-document in config.status, that substitutes the proper values into
20278# config.h.in to produce config.h.
20279
20280# Create a delimiter string that does not exist in confdefs.h, to ease
20281# handling of long lines.
20282ac_delim='%!_!# '
20283for ac_last_try in false false :; do
20284  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20285  if test -z "$ac_tt"; then
20286    break
20287  elif $ac_last_try; then
20288    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20289  else
20290    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20291  fi
20292done
20293
20294# For the awk script, D is an array of macro values keyed by name,
20295# likewise P contains macro parameters if any.  Preserve backslash
20296# newline sequences.
20297
20298ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20299sed -n '
20300s/.\{148\}/&'"$ac_delim"'/g
20301t rset
20302:rset
20303s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20304t def
20305d
20306:def
20307s/\\$//
20308t bsnl
20309s/["\\]/\\&/g
20310s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20311D["\1"]=" \3"/p
20312s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20313d
20314:bsnl
20315s/["\\]/\\&/g
20316s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20317D["\1"]=" \3\\\\\\n"\\/p
20318t cont
20319s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20320t cont
20321d
20322:cont
20323n
20324s/.\{148\}/&'"$ac_delim"'/g
20325t clear
20326:clear
20327s/\\$//
20328t bsnlc
20329s/["\\]/\\&/g; s/^/"/; s/$/"/p
20330d
20331:bsnlc
20332s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20333b cont
20334' <confdefs.h | sed '
20335s/'"$ac_delim"'/"\\\
20336"/g' >>$CONFIG_STATUS || ac_write_fail=1
20337
20338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20339  for (key in D) D_is_set[key] = 1
20340  FS = ""
20341}
20342/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20343  line = \$ 0
20344  split(line, arg, " ")
20345  if (arg[1] == "#") {
20346    defundef = arg[2]
20347    mac1 = arg[3]
20348  } else {
20349    defundef = substr(arg[1], 2)
20350    mac1 = arg[2]
20351  }
20352  split(mac1, mac2, "(") #)
20353  macro = mac2[1]
20354  prefix = substr(line, 1, index(line, defundef) - 1)
20355  if (D_is_set[macro]) {
20356    # Preserve the white space surrounding the "#".
20357    print prefix "define", macro P[macro] D[macro]
20358    next
20359  } else {
20360    # Replace #undef with comments.  This is necessary, for example,
20361    # in the case of _POSIX_SOURCE, which is predefined and required
20362    # on some systems where configure will not decide to define it.
20363    if (defundef == "undef") {
20364      print "/*", prefix defundef, macro, "*/"
20365      next
20366    }
20367  }
20368}
20369{ print }
20370_ACAWK
20371_ACEOF
20372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20373  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20374fi # test -n "$CONFIG_HEADERS"
20375
20376
20377eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20378shift
20379for ac_tag
20380do
20381  case $ac_tag in
20382  :[FHLC]) ac_mode=$ac_tag; continue;;
20383  esac
20384  case $ac_mode$ac_tag in
20385  :[FHL]*:*);;
20386  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20387  :[FH]-) ac_tag=-:-;;
20388  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20389  esac
20390  ac_save_IFS=$IFS
20391  IFS=:
20392  set x $ac_tag
20393  IFS=$ac_save_IFS
20394  shift
20395  ac_file=$1
20396  shift
20397
20398  case $ac_mode in
20399  :L) ac_source=$1;;
20400  :[FH])
20401    ac_file_inputs=
20402    for ac_f
20403    do
20404      case $ac_f in
20405      -) ac_f="$ac_tmp/stdin";;
20406      *) # Look for the file first in the build tree, then in the source tree
20407	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20408	 # because $ac_f cannot contain `:'.
20409	 test -f "$ac_f" ||
20410	   case $ac_f in
20411	   [\\/$]*) false;;
20412	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20413	   esac ||
20414	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20415      esac
20416      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20417      as_fn_append ac_file_inputs " '$ac_f'"
20418    done
20419
20420    # Let's still pretend it is `configure' which instantiates (i.e., don't
20421    # use $as_me), people would be surprised to read:
20422    #    /* config.h.  Generated by config.status.  */
20423    configure_input='Generated from '`
20424	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20425	`' by configure.'
20426    if test x"$ac_file" != x-; then
20427      configure_input="$ac_file.  $configure_input"
20428      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20429$as_echo "$as_me: creating $ac_file" >&6;}
20430    fi
20431    # Neutralize special characters interpreted by sed in replacement strings.
20432    case $configure_input in #(
20433    *\&* | *\|* | *\\* )
20434       ac_sed_conf_input=`$as_echo "$configure_input" |
20435       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20436    *) ac_sed_conf_input=$configure_input;;
20437    esac
20438
20439    case $ac_tag in
20440    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20441      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20442    esac
20443    ;;
20444  esac
20445
20446  ac_dir=`$as_dirname -- "$ac_file" ||
20447$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20448	 X"$ac_file" : 'X\(//\)[^/]' \| \
20449	 X"$ac_file" : 'X\(//\)$' \| \
20450	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20451$as_echo X"$ac_file" |
20452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20453	    s//\1/
20454	    q
20455	  }
20456	  /^X\(\/\/\)[^/].*/{
20457	    s//\1/
20458	    q
20459	  }
20460	  /^X\(\/\/\)$/{
20461	    s//\1/
20462	    q
20463	  }
20464	  /^X\(\/\).*/{
20465	    s//\1/
20466	    q
20467	  }
20468	  s/.*/./; q'`
20469  as_dir="$ac_dir"; as_fn_mkdir_p
20470  ac_builddir=.
20471
20472case "$ac_dir" in
20473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20474*)
20475  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20476  # A ".." for each directory in $ac_dir_suffix.
20477  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20478  case $ac_top_builddir_sub in
20479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20481  esac ;;
20482esac
20483ac_abs_top_builddir=$ac_pwd
20484ac_abs_builddir=$ac_pwd$ac_dir_suffix
20485# for backward compatibility:
20486ac_top_builddir=$ac_top_build_prefix
20487
20488case $srcdir in
20489  .)  # We are building in place.
20490    ac_srcdir=.
20491    ac_top_srcdir=$ac_top_builddir_sub
20492    ac_abs_top_srcdir=$ac_pwd ;;
20493  [\\/]* | ?:[\\/]* )  # Absolute name.
20494    ac_srcdir=$srcdir$ac_dir_suffix;
20495    ac_top_srcdir=$srcdir
20496    ac_abs_top_srcdir=$srcdir ;;
20497  *) # Relative name.
20498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20499    ac_top_srcdir=$ac_top_build_prefix$srcdir
20500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20501esac
20502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20503
20504
20505  case $ac_mode in
20506  :F)
20507  #
20508  # CONFIG_FILE
20509  #
20510
20511  case $INSTALL in
20512  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20513  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20514  esac
20515  ac_MKDIR_P=$MKDIR_P
20516  case $MKDIR_P in
20517  [\\/$]* | ?:[\\/]* ) ;;
20518  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20519  esac
20520_ACEOF
20521
20522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523# If the template does not know about datarootdir, expand it.
20524# FIXME: This hack should be removed a few years after 2.60.
20525ac_datarootdir_hack=; ac_datarootdir_seen=
20526ac_sed_dataroot='
20527/datarootdir/ {
20528  p
20529  q
20530}
20531/@datadir@/p
20532/@docdir@/p
20533/@infodir@/p
20534/@localedir@/p
20535/@mandir@/p'
20536case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20537*datarootdir*) ac_datarootdir_seen=yes;;
20538*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20539  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20540$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20541_ACEOF
20542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543  ac_datarootdir_hack='
20544  s&@datadir@&$datadir&g
20545  s&@docdir@&$docdir&g
20546  s&@infodir@&$infodir&g
20547  s&@localedir@&$localedir&g
20548  s&@mandir@&$mandir&g
20549  s&\\\${datarootdir}&$datarootdir&g' ;;
20550esac
20551_ACEOF
20552
20553# Neutralize VPATH when `$srcdir' = `.'.
20554# Shell code in configure.ac might set extrasub.
20555# FIXME: do we really want to maintain this feature?
20556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20557ac_sed_extra="$ac_vpsub
20558$extrasub
20559_ACEOF
20560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20561:t
20562/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20563s|@configure_input@|$ac_sed_conf_input|;t t
20564s&@top_builddir@&$ac_top_builddir_sub&;t t
20565s&@top_build_prefix@&$ac_top_build_prefix&;t t
20566s&@srcdir@&$ac_srcdir&;t t
20567s&@abs_srcdir@&$ac_abs_srcdir&;t t
20568s&@top_srcdir@&$ac_top_srcdir&;t t
20569s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20570s&@builddir@&$ac_builddir&;t t
20571s&@abs_builddir@&$ac_abs_builddir&;t t
20572s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20573s&@INSTALL@&$ac_INSTALL&;t t
20574s&@MKDIR_P@&$ac_MKDIR_P&;t t
20575$ac_datarootdir_hack
20576"
20577eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20578  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20579
20580test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20581  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20582  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20583      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20584  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20585which seems to be undefined.  Please make sure it is defined" >&5
20586$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20587which seems to be undefined.  Please make sure it is defined" >&2;}
20588
20589  rm -f "$ac_tmp/stdin"
20590  case $ac_file in
20591  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20592  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20593  esac \
20594  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20595 ;;
20596  :H)
20597  #
20598  # CONFIG_HEADER
20599  #
20600  if test x"$ac_file" != x-; then
20601    {
20602      $as_echo "/* $configure_input  */" \
20603      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20604    } >"$ac_tmp/config.h" \
20605      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20606    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20607      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20608$as_echo "$as_me: $ac_file is unchanged" >&6;}
20609    else
20610      rm -f "$ac_file"
20611      mv "$ac_tmp/config.h" "$ac_file" \
20612	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20613    fi
20614  else
20615    $as_echo "/* $configure_input  */" \
20616      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20617      || as_fn_error $? "could not create -" "$LINENO" 5
20618  fi
20619# Compute "$ac_file"'s index in $config_headers.
20620_am_arg="$ac_file"
20621_am_stamp_count=1
20622for _am_header in $config_headers :; do
20623  case $_am_header in
20624    $_am_arg | $_am_arg:* )
20625      break ;;
20626    * )
20627      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20628  esac
20629done
20630echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20631$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20632	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20633	 X"$_am_arg" : 'X\(//\)$' \| \
20634	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20635$as_echo X"$_am_arg" |
20636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20637	    s//\1/
20638	    q
20639	  }
20640	  /^X\(\/\/\)[^/].*/{
20641	    s//\1/
20642	    q
20643	  }
20644	  /^X\(\/\/\)$/{
20645	    s//\1/
20646	    q
20647	  }
20648	  /^X\(\/\).*/{
20649	    s//\1/
20650	    q
20651	  }
20652	  s/.*/./; q'`/stamp-h$_am_stamp_count
20653 ;;
20654
20655  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20656$as_echo "$as_me: executing $ac_file commands" >&6;}
20657 ;;
20658  esac
20659
20660
20661  case $ac_file$ac_mode in
20662    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20663  # Older Autoconf quotes --file arguments for eval, but not when files
20664  # are listed without --file.  Let's play safe and only enable the eval
20665  # if we detect the quoting.
20666  # TODO: see whether this extra hack can be removed once we start
20667  # requiring Autoconf 2.70 or later.
20668  case $CONFIG_FILES in #(
20669  *\'*) :
20670    eval set x "$CONFIG_FILES" ;; #(
20671  *) :
20672    set x $CONFIG_FILES ;; #(
20673  *) :
20674     ;;
20675esac
20676  shift
20677  # Used to flag and report bootstrapping failures.
20678  am_rc=0
20679  for am_mf
20680  do
20681    # Strip MF so we end up with the name of the file.
20682    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20683    # Check whether this is an Automake generated Makefile which includes
20684    # dependency-tracking related rules and includes.
20685    # Grep'ing the whole file directly is not great: AIX grep has a line
20686    # limit of 2048, but all sed's we know have understand at least 4000.
20687    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20688      || continue
20689    am_dirpart=`$as_dirname -- "$am_mf" ||
20690$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20691	 X"$am_mf" : 'X\(//\)[^/]' \| \
20692	 X"$am_mf" : 'X\(//\)$' \| \
20693	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20694$as_echo X"$am_mf" |
20695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20696	    s//\1/
20697	    q
20698	  }
20699	  /^X\(\/\/\)[^/].*/{
20700	    s//\1/
20701	    q
20702	  }
20703	  /^X\(\/\/\)$/{
20704	    s//\1/
20705	    q
20706	  }
20707	  /^X\(\/\).*/{
20708	    s//\1/
20709	    q
20710	  }
20711	  s/.*/./; q'`
20712    am_filepart=`$as_basename -- "$am_mf" ||
20713$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20714	 X"$am_mf" : 'X\(//\)$' \| \
20715	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20716$as_echo X/"$am_mf" |
20717    sed '/^.*\/\([^/][^/]*\)\/*$/{
20718	    s//\1/
20719	    q
20720	  }
20721	  /^X\/\(\/\/\)$/{
20722	    s//\1/
20723	    q
20724	  }
20725	  /^X\/\(\/\).*/{
20726	    s//\1/
20727	    q
20728	  }
20729	  s/.*/./; q'`
20730    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20731      && sed -e '/# am--include-marker/d' "$am_filepart" \
20732        | $MAKE -f - am--depfiles" >&5
20733   (cd "$am_dirpart" \
20734      && sed -e '/# am--include-marker/d' "$am_filepart" \
20735        | $MAKE -f - am--depfiles) >&5 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } || am_rc=$?
20739  done
20740  if test $am_rc -ne 0; then
20741    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20743as_fn_error $? "Something went wrong bootstrapping makefile fragments
20744    for automatic dependency tracking.  Try re-running configure with the
20745    '--disable-dependency-tracking' option to at least be able to build
20746    the package (albeit without support for automatic dependency tracking).
20747See \`config.log' for more details" "$LINENO" 5; }
20748  fi
20749  { am_dirpart=; unset am_dirpart;}
20750  { am_filepart=; unset am_filepart;}
20751  { am_mf=; unset am_mf;}
20752  { am_rc=; unset am_rc;}
20753  rm -f conftest-deps.mk
20754}
20755 ;;
20756    "libtool":C)
20757
20758    # See if we are running on zsh, and set the options that allow our
20759    # commands through without removal of \ escapes.
20760    if test -n "${ZSH_VERSION+set}"; then
20761      setopt NO_GLOB_SUBST
20762    fi
20763
20764    cfgfile=${ofile}T
20765    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20766    $RM "$cfgfile"
20767
20768    cat <<_LT_EOF >> "$cfgfile"
20769#! $SHELL
20770# Generated automatically by $as_me ($PACKAGE) $VERSION
20771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20772
20773# Provide generalized library-building support services.
20774# Written by Gordon Matzigkeit, 1996
20775
20776# Copyright (C) 2014 Free Software Foundation, Inc.
20777# This is free software; see the source for copying conditions.  There is NO
20778# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20779
20780# GNU Libtool is free software; you can redistribute it and/or modify
20781# it under the terms of the GNU General Public License as published by
20782# the Free Software Foundation; either version 2 of of the License, or
20783# (at your option) any later version.
20784#
20785# As a special exception to the GNU General Public License, if you
20786# distribute this file as part of a program or library that is built
20787# using GNU Libtool, you may include this file under the  same
20788# distribution terms that you use for the rest of that program.
20789#
20790# GNU Libtool is distributed in the hope that it will be useful, but
20791# WITHOUT ANY WARRANTY; without even the implied warranty of
20792# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20793# GNU General Public License for more details.
20794#
20795# You should have received a copy of the GNU General Public License
20796# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20797
20798
20799# The names of the tagged configurations supported by this script.
20800available_tags=''
20801
20802# Configured defaults for sys_lib_dlsearch_path munging.
20803: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20804
20805# ### BEGIN LIBTOOL CONFIG
20806
20807# Whether or not to build static libraries.
20808build_old_libs=$enable_static
20809
20810# Which release of libtool.m4 was used?
20811macro_version=$macro_version
20812macro_revision=$macro_revision
20813
20814# Whether or not to build shared libraries.
20815build_libtool_libs=$enable_shared
20816
20817# What type of objects to build.
20818pic_mode=$pic_mode
20819
20820# Whether or not to optimize for fast installation.
20821fast_install=$enable_fast_install
20822
20823# Shared archive member basename,for filename based shared library versioning on AIX.
20824shared_archive_member_spec=$shared_archive_member_spec
20825
20826# Shell to use when invoking shell scripts.
20827SHELL=$lt_SHELL
20828
20829# An echo program that protects backslashes.
20830ECHO=$lt_ECHO
20831
20832# The PATH separator for the build system.
20833PATH_SEPARATOR=$lt_PATH_SEPARATOR
20834
20835# The host system.
20836host_alias=$host_alias
20837host=$host
20838host_os=$host_os
20839
20840# The build system.
20841build_alias=$build_alias
20842build=$build
20843build_os=$build_os
20844
20845# A sed program that does not truncate output.
20846SED=$lt_SED
20847
20848# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20849Xsed="\$SED -e 1s/^X//"
20850
20851# A grep program that handles long lines.
20852GREP=$lt_GREP
20853
20854# An ERE matcher.
20855EGREP=$lt_EGREP
20856
20857# A literal string matcher.
20858FGREP=$lt_FGREP
20859
20860# A BSD- or MS-compatible name lister.
20861NM=$lt_NM
20862
20863# Whether we need soft or hard links.
20864LN_S=$lt_LN_S
20865
20866# What is the maximum length of a command?
20867max_cmd_len=$max_cmd_len
20868
20869# Object file suffix (normally "o").
20870objext=$ac_objext
20871
20872# Executable file suffix (normally "").
20873exeext=$exeext
20874
20875# whether the shell understands "unset".
20876lt_unset=$lt_unset
20877
20878# turn spaces into newlines.
20879SP2NL=$lt_lt_SP2NL
20880
20881# turn newlines into spaces.
20882NL2SP=$lt_lt_NL2SP
20883
20884# convert \$build file names to \$host format.
20885to_host_file_cmd=$lt_cv_to_host_file_cmd
20886
20887# convert \$build files to toolchain format.
20888to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20889
20890# An object symbol dumper.
20891OBJDUMP=$lt_OBJDUMP
20892
20893# Method to check whether dependent libraries are shared objects.
20894deplibs_check_method=$lt_deplibs_check_method
20895
20896# Command to use when deplibs_check_method = "file_magic".
20897file_magic_cmd=$lt_file_magic_cmd
20898
20899# How to find potential files when deplibs_check_method = "file_magic".
20900file_magic_glob=$lt_file_magic_glob
20901
20902# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20903want_nocaseglob=$lt_want_nocaseglob
20904
20905# DLL creation program.
20906DLLTOOL=$lt_DLLTOOL
20907
20908# Command to associate shared and link libraries.
20909sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20910
20911# The archiver.
20912AR=$lt_AR
20913
20914# Flags to create an archive.
20915AR_FLAGS=$lt_AR_FLAGS
20916
20917# How to feed a file listing to the archiver.
20918archiver_list_spec=$lt_archiver_list_spec
20919
20920# A symbol stripping program.
20921STRIP=$lt_STRIP
20922
20923# Commands used to install an old-style archive.
20924RANLIB=$lt_RANLIB
20925old_postinstall_cmds=$lt_old_postinstall_cmds
20926old_postuninstall_cmds=$lt_old_postuninstall_cmds
20927
20928# Whether to use a lock for old archive extraction.
20929lock_old_archive_extraction=$lock_old_archive_extraction
20930
20931# A C compiler.
20932LTCC=$lt_CC
20933
20934# LTCC compiler flags.
20935LTCFLAGS=$lt_CFLAGS
20936
20937# Take the output of nm and produce a listing of raw symbols and C names.
20938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20939
20940# Transform the output of nm in a proper C declaration.
20941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20942
20943# Transform the output of nm into a list of symbols to manually relocate.
20944global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20945
20946# Transform the output of nm in a C name address pair.
20947global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20948
20949# Transform the output of nm in a C name address pair when lib prefix is needed.
20950global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20951
20952# The name lister interface.
20953nm_interface=$lt_lt_cv_nm_interface
20954
20955# Specify filename containing input files for \$NM.
20956nm_file_list_spec=$lt_nm_file_list_spec
20957
20958# The root where to search for dependent libraries,and where our libraries should be installed.
20959lt_sysroot=$lt_sysroot
20960
20961# Command to truncate a binary pipe.
20962lt_truncate_bin=$lt_lt_cv_truncate_bin
20963
20964# The name of the directory that contains temporary libtool files.
20965objdir=$objdir
20966
20967# Used to examine libraries when file_magic_cmd begins with "file".
20968MAGIC_CMD=$MAGIC_CMD
20969
20970# Must we lock files when doing compilation?
20971need_locks=$lt_need_locks
20972
20973# Manifest tool.
20974MANIFEST_TOOL=$lt_MANIFEST_TOOL
20975
20976# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20977DSYMUTIL=$lt_DSYMUTIL
20978
20979# Tool to change global to local symbols on Mac OS X.
20980NMEDIT=$lt_NMEDIT
20981
20982# Tool to manipulate fat objects and archives on Mac OS X.
20983LIPO=$lt_LIPO
20984
20985# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20986OTOOL=$lt_OTOOL
20987
20988# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20989OTOOL64=$lt_OTOOL64
20990
20991# Old archive suffix (normally "a").
20992libext=$libext
20993
20994# Shared library suffix (normally ".so").
20995shrext_cmds=$lt_shrext_cmds
20996
20997# The commands to extract the exported symbol list from a shared archive.
20998extract_expsyms_cmds=$lt_extract_expsyms_cmds
20999
21000# Variables whose values should be saved in libtool wrapper scripts and
21001# restored at link time.
21002variables_saved_for_relink=$lt_variables_saved_for_relink
21003
21004# Do we need the "lib" prefix for modules?
21005need_lib_prefix=$need_lib_prefix
21006
21007# Do we need a version for libraries?
21008need_version=$need_version
21009
21010# Library versioning type.
21011version_type=$version_type
21012
21013# Shared library runtime path variable.
21014runpath_var=$runpath_var
21015
21016# Shared library path variable.
21017shlibpath_var=$shlibpath_var
21018
21019# Is shlibpath searched before the hard-coded library search path?
21020shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21021
21022# Format of library name prefix.
21023libname_spec=$lt_libname_spec
21024
21025# List of archive names.  First name is the real one, the rest are links.
21026# The last name is the one that the linker finds with -lNAME
21027library_names_spec=$lt_library_names_spec
21028
21029# The coded name of the library, if different from the real name.
21030soname_spec=$lt_soname_spec
21031
21032# Permission mode override for installation of shared libraries.
21033install_override_mode=$lt_install_override_mode
21034
21035# Command to use after installation of a shared archive.
21036postinstall_cmds=$lt_postinstall_cmds
21037
21038# Command to use after uninstallation of a shared archive.
21039postuninstall_cmds=$lt_postuninstall_cmds
21040
21041# Commands used to finish a libtool library installation in a directory.
21042finish_cmds=$lt_finish_cmds
21043
21044# As "finish_cmds", except a single script fragment to be evaled but
21045# not shown.
21046finish_eval=$lt_finish_eval
21047
21048# Whether we should hardcode library paths into libraries.
21049hardcode_into_libs=$hardcode_into_libs
21050
21051# Compile-time system search path for libraries.
21052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21053
21054# Detected run-time system search path for libraries.
21055sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21056
21057# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21058configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21059
21060# Whether dlopen is supported.
21061dlopen_support=$enable_dlopen
21062
21063# Whether dlopen of programs is supported.
21064dlopen_self=$enable_dlopen_self
21065
21066# Whether dlopen of statically linked programs is supported.
21067dlopen_self_static=$enable_dlopen_self_static
21068
21069# Commands to strip libraries.
21070old_striplib=$lt_old_striplib
21071striplib=$lt_striplib
21072
21073
21074# The linker used to build libraries.
21075LD=$lt_LD
21076
21077# How to create reloadable object files.
21078reload_flag=$lt_reload_flag
21079reload_cmds=$lt_reload_cmds
21080
21081# Commands used to build an old-style archive.
21082old_archive_cmds=$lt_old_archive_cmds
21083
21084# A language specific compiler.
21085CC=$lt_compiler
21086
21087# Is the compiler the GNU compiler?
21088with_gcc=$GCC
21089
21090# Compiler flag to turn off builtin functions.
21091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21092
21093# Additional compiler flags for building library objects.
21094pic_flag=$lt_lt_prog_compiler_pic
21095
21096# How to pass a linker flag through the compiler.
21097wl=$lt_lt_prog_compiler_wl
21098
21099# Compiler flag to prevent dynamic linking.
21100link_static_flag=$lt_lt_prog_compiler_static
21101
21102# Does compiler simultaneously support -c and -o options?
21103compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21104
21105# Whether or not to add -lc for building shared libraries.
21106build_libtool_need_lc=$archive_cmds_need_lc
21107
21108# Whether or not to disallow shared libs when runtime libs are static.
21109allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21110
21111# Compiler flag to allow reflexive dlopens.
21112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21113
21114# Compiler flag to generate shared objects directly from archives.
21115whole_archive_flag_spec=$lt_whole_archive_flag_spec
21116
21117# Whether the compiler copes with passing no objects directly.
21118compiler_needs_object=$lt_compiler_needs_object
21119
21120# Create an old-style archive from a shared archive.
21121old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21122
21123# Create a temporary old-style archive to link instead of a shared archive.
21124old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21125
21126# Commands used to build a shared archive.
21127archive_cmds=$lt_archive_cmds
21128archive_expsym_cmds=$lt_archive_expsym_cmds
21129
21130# Commands used to build a loadable module if different from building
21131# a shared archive.
21132module_cmds=$lt_module_cmds
21133module_expsym_cmds=$lt_module_expsym_cmds
21134
21135# Whether we are building with GNU ld or not.
21136with_gnu_ld=$lt_with_gnu_ld
21137
21138# Flag that allows shared libraries with undefined symbols to be built.
21139allow_undefined_flag=$lt_allow_undefined_flag
21140
21141# Flag that enforces no undefined symbols.
21142no_undefined_flag=$lt_no_undefined_flag
21143
21144# Flag to hardcode \$libdir into a binary during linking.
21145# This must work even if \$libdir does not exist
21146hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21147
21148# Whether we need a single "-rpath" flag with a separated argument.
21149hardcode_libdir_separator=$lt_hardcode_libdir_separator
21150
21151# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21152# DIR into the resulting binary.
21153hardcode_direct=$hardcode_direct
21154
21155# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21156# DIR into the resulting binary and the resulting library dependency is
21157# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21158# library is relocated.
21159hardcode_direct_absolute=$hardcode_direct_absolute
21160
21161# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21162# into the resulting binary.
21163hardcode_minus_L=$hardcode_minus_L
21164
21165# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21166# into the resulting binary.
21167hardcode_shlibpath_var=$hardcode_shlibpath_var
21168
21169# Set to "yes" if building a shared library automatically hardcodes DIR
21170# into the library and all subsequent libraries and executables linked
21171# against it.
21172hardcode_automatic=$hardcode_automatic
21173
21174# Set to yes if linker adds runtime paths of dependent libraries
21175# to runtime path list.
21176inherit_rpath=$inherit_rpath
21177
21178# Whether libtool must link a program against all its dependency libraries.
21179link_all_deplibs=$link_all_deplibs
21180
21181# Set to "yes" if exported symbols are required.
21182always_export_symbols=$always_export_symbols
21183
21184# The commands to list exported symbols.
21185export_symbols_cmds=$lt_export_symbols_cmds
21186
21187# Symbols that should not be listed in the preloaded symbols.
21188exclude_expsyms=$lt_exclude_expsyms
21189
21190# Symbols that must always be exported.
21191include_expsyms=$lt_include_expsyms
21192
21193# Commands necessary for linking programs (against libraries) with templates.
21194prelink_cmds=$lt_prelink_cmds
21195
21196# Commands necessary for finishing linking programs.
21197postlink_cmds=$lt_postlink_cmds
21198
21199# Specify filename containing input files.
21200file_list_spec=$lt_file_list_spec
21201
21202# How to hardcode a shared library path into an executable.
21203hardcode_action=$hardcode_action
21204
21205# ### END LIBTOOL CONFIG
21206
21207_LT_EOF
21208
21209    cat <<'_LT_EOF' >> "$cfgfile"
21210
21211# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21212
21213# func_munge_path_list VARIABLE PATH
21214# -----------------------------------
21215# VARIABLE is name of variable containing _space_ separated list of
21216# directories to be munged by the contents of PATH, which is string
21217# having a format:
21218# "DIR[:DIR]:"
21219#       string "DIR[ DIR]" will be prepended to VARIABLE
21220# ":DIR[:DIR]"
21221#       string "DIR[ DIR]" will be appended to VARIABLE
21222# "DIRP[:DIRP]::[DIRA:]DIRA"
21223#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21224#       "DIRA[ DIRA]" will be appended to VARIABLE
21225# "DIR[:DIR]"
21226#       VARIABLE will be replaced by "DIR[ DIR]"
21227func_munge_path_list ()
21228{
21229    case x$2 in
21230    x)
21231        ;;
21232    *:)
21233        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21234        ;;
21235    x:*)
21236        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21237        ;;
21238    *::*)
21239        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21240        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21241        ;;
21242    *)
21243        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21244        ;;
21245    esac
21246}
21247
21248
21249# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21250func_cc_basename ()
21251{
21252    for cc_temp in $*""; do
21253      case $cc_temp in
21254        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21255        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21256        \-*) ;;
21257        *) break;;
21258      esac
21259    done
21260    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21261}
21262
21263
21264# ### END FUNCTIONS SHARED WITH CONFIGURE
21265
21266_LT_EOF
21267
21268  case $host_os in
21269  aix3*)
21270    cat <<\_LT_EOF >> "$cfgfile"
21271# AIX sometimes has problems with the GCC collect2 program.  For some
21272# reason, if we set the COLLECT_NAMES environment variable, the problems
21273# vanish in a puff of smoke.
21274if test set != "${COLLECT_NAMES+set}"; then
21275  COLLECT_NAMES=
21276  export COLLECT_NAMES
21277fi
21278_LT_EOF
21279    ;;
21280  esac
21281
21282
21283ltmain=$ac_aux_dir/ltmain.sh
21284
21285
21286  # We use sed instead of cat because bash on DJGPP gets confused if
21287  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21288  # text mode, it properly converts lines to CR/LF.  This bash problem
21289  # is reportedly fixed, but why not run on old versions too?
21290  sed '$q' "$ltmain" >> "$cfgfile" \
21291     || (rm -f "$cfgfile"; exit 1)
21292
21293   mv -f "$cfgfile" "$ofile" ||
21294    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21295  chmod +x "$ofile"
21296
21297 ;;
21298
21299  esac
21300done # for ac_tag
21301
21302
21303as_fn_exit 0
21304_ACEOF
21305ac_clean_files=$ac_clean_files_save
21306
21307test $ac_write_fail = 0 ||
21308  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21309
21310
21311# configure is writing to config.log, and then calls config.status.
21312# config.status does its own redirection, appending to config.log.
21313# Unfortunately, on DOS this fails, as config.log is still kept open
21314# by configure, so config.status won't be able to write to it; its
21315# output is simply discarded.  So we exec the FD to /dev/null,
21316# effectively closing config.log, so it can be properly (re)opened and
21317# appended to by config.status.  When coming back to configure, we
21318# need to make the FD available again.
21319if test "$no_create" != yes; then
21320  ac_cs_success=:
21321  ac_config_status_args=
21322  test "$silent" = yes &&
21323    ac_config_status_args="$ac_config_status_args --quiet"
21324  exec 5>/dev/null
21325  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21326  exec 5>>config.log
21327  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21328  # would make configure fail if this is the last instruction.
21329  $ac_cs_success || as_fn_exit 1
21330fi
21331if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21332  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21333$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21334fi
21335
21336