1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-apm 1.3.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-apm'
593PACKAGE_TARNAME='xf86-video-apm'
594PACKAGE_VERSION='1.3.0'
595PACKAGE_STRING='xf86-video-apm 1.3.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640XAA_FALSE
641XAA_TRUE
642XV_NEW_REPUT_FALSE
643XV_NEW_REPUT_TRUE
644DRIVER_NAME
645PCIACCESS_LIBS
646PCIACCESS_CFLAGS
647HAVE_XEXTPROTO_71_FALSE
648HAVE_XEXTPROTO_71_TRUE
649XEXT_LIBS
650XEXT_CFLAGS
651XORG_LIBS
652XORG_CFLAGS
653moduledir
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672LIBTOOL
673MAN_SUBSTS
674XORG_MAN_PAGE
675ADMIN_MAN_DIR
676DRIVER_MAN_DIR
677MISC_MAN_DIR
678FILE_MAN_DIR
679LIB_MAN_DIR
680APP_MAN_DIR
681ADMIN_MAN_SUFFIX
682DRIVER_MAN_SUFFIX
683MISC_MAN_SUFFIX
684FILE_MAN_SUFFIX
685LIB_MAN_SUFFIX
686APP_MAN_SUFFIX
687SED
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696INSTALL_CMD
697PKG_CONFIG_LIBDIR
698PKG_CONFIG_PATH
699PKG_CONFIG
700CHANGELOG_CMD
701STRICT_CFLAGS
702CWARNFLAGS
703BASE_CFLAGS
704EGREP
705GREP
706CPP
707am__fastdepCC_FALSE
708am__fastdepCC_TRUE
709CCDEPMODE
710am__nodep
711AMDEPBACKSLASH
712AMDEP_FALSE
713AMDEP_TRUE
714am__quote
715am__include
716DEPDIR
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773runstatedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796enable_silent_rules
797enable_maintainer_mode
798enable_dependency_tracking
799enable_selective_werror
800enable_strict_compilation
801enable_static
802enable_shared
803with_pic
804enable_fast_install
805with_aix_soname
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809with_xorg_module_dir
810enable_xaa
811'
812      ac_precious_vars='build_alias
813host_alias
814target_alias
815CC
816CFLAGS
817LDFLAGS
818LIBS
819CPPFLAGS
820CPP
821PKG_CONFIG
822PKG_CONFIG_PATH
823PKG_CONFIG_LIBDIR
824LT_SYS_LIBRARY_PATH
825XORG_CFLAGS
826XORG_LIBS
827XEXT_CFLAGS
828XEXT_LIBS
829PCIACCESS_CFLAGS
830PCIACCESS_LIBS'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869runstatedir='${localstatedir}/run'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886  # If the previous option needs an argument, assign it.
887  if test -n "$ac_prev"; then
888    eval $ac_prev=\$ac_option
889    ac_prev=
890    continue
891  fi
892
893  case $ac_option in
894  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895  *=)   ac_optarg= ;;
896  *)    ac_optarg=yes ;;
897  esac
898
899  # Accept the important Cygnus configure options, so we can diagnose typos.
900
901  case $ac_dashdash$ac_option in
902  --)
903    ac_dashdash=yes ;;
904
905  -bindir | --bindir | --bindi | --bind | --bin | --bi)
906    ac_prev=bindir ;;
907  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908    bindir=$ac_optarg ;;
909
910  -build | --build | --buil | --bui | --bu)
911    ac_prev=build_alias ;;
912  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913    build_alias=$ac_optarg ;;
914
915  -cache-file | --cache-file | --cache-fil | --cache-fi \
916  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917    ac_prev=cache_file ;;
918  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920    cache_file=$ac_optarg ;;
921
922  --config-cache | -C)
923    cache_file=config.cache ;;
924
925  -datadir | --datadir | --datadi | --datad)
926    ac_prev=datadir ;;
927  -datadir=* | --datadir=* | --datadi=* | --datad=*)
928    datadir=$ac_optarg ;;
929
930  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931  | --dataroo | --dataro | --datar)
932    ac_prev=datarootdir ;;
933  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935    datarootdir=$ac_optarg ;;
936
937  -disable-* | --disable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: $ac_useropt"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=no ;;
952
953  -docdir | --docdir | --docdi | --doc | --do)
954    ac_prev=docdir ;;
955  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956    docdir=$ac_optarg ;;
957
958  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959    ac_prev=dvidir ;;
960  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961    dvidir=$ac_optarg ;;
962
963  -enable-* | --enable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=\$ac_optarg ;;
978
979  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981  | --exec | --exe | --ex)
982    ac_prev=exec_prefix ;;
983  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985  | --exec=* | --exe=* | --ex=*)
986    exec_prefix=$ac_optarg ;;
987
988  -gas | --gas | --ga | --g)
989    # Obsolete; use --with-gas.
990    with_gas=yes ;;
991
992  -help | --help | --hel | --he | -h)
993    ac_init_help=long ;;
994  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995    ac_init_help=recursive ;;
996  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997    ac_init_help=short ;;
998
999  -host | --host | --hos | --ho)
1000    ac_prev=host_alias ;;
1001  -host=* | --host=* | --hos=* | --ho=*)
1002    host_alias=$ac_optarg ;;
1003
1004  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005    ac_prev=htmldir ;;
1006  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007  | --ht=*)
1008    htmldir=$ac_optarg ;;
1009
1010  -includedir | --includedir | --includedi | --included | --include \
1011  | --includ | --inclu | --incl | --inc)
1012    ac_prev=includedir ;;
1013  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014  | --includ=* | --inclu=* | --incl=* | --inc=*)
1015    includedir=$ac_optarg ;;
1016
1017  -infodir | --infodir | --infodi | --infod | --info | --inf)
1018    ac_prev=infodir ;;
1019  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020    infodir=$ac_optarg ;;
1021
1022  -libdir | --libdir | --libdi | --libd)
1023    ac_prev=libdir ;;
1024  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025    libdir=$ac_optarg ;;
1026
1027  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028  | --libexe | --libex | --libe)
1029    ac_prev=libexecdir ;;
1030  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031  | --libexe=* | --libex=* | --libe=*)
1032    libexecdir=$ac_optarg ;;
1033
1034  -localedir | --localedir | --localedi | --localed | --locale)
1035    ac_prev=localedir ;;
1036  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037    localedir=$ac_optarg ;;
1038
1039  -localstatedir | --localstatedir | --localstatedi | --localstated \
1040  | --localstate | --localstat | --localsta | --localst | --locals)
1041    ac_prev=localstatedir ;;
1042  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044    localstatedir=$ac_optarg ;;
1045
1046  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047    ac_prev=mandir ;;
1048  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049    mandir=$ac_optarg ;;
1050
1051  -nfp | --nfp | --nf)
1052    # Obsolete; use --without-fp.
1053    with_fp=no ;;
1054
1055  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056  | --no-cr | --no-c | -n)
1057    no_create=yes ;;
1058
1059  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061    no_recursion=yes ;;
1062
1063  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065  | --oldin | --oldi | --old | --ol | --o)
1066    ac_prev=oldincludedir ;;
1067  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070    oldincludedir=$ac_optarg ;;
1071
1072  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073    ac_prev=prefix ;;
1074  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075    prefix=$ac_optarg ;;
1076
1077  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078  | --program-pre | --program-pr | --program-p)
1079    ac_prev=program_prefix ;;
1080  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082    program_prefix=$ac_optarg ;;
1083
1084  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085  | --program-suf | --program-su | --program-s)
1086    ac_prev=program_suffix ;;
1087  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089    program_suffix=$ac_optarg ;;
1090
1091  -program-transform-name | --program-transform-name \
1092  | --program-transform-nam | --program-transform-na \
1093  | --program-transform-n | --program-transform- \
1094  | --program-transform | --program-transfor \
1095  | --program-transfo | --program-transf \
1096  | --program-trans | --program-tran \
1097  | --progr-tra | --program-tr | --program-t)
1098    ac_prev=program_transform_name ;;
1099  -program-transform-name=* | --program-transform-name=* \
1100  | --program-transform-nam=* | --program-transform-na=* \
1101  | --program-transform-n=* | --program-transform-=* \
1102  | --program-transform=* | --program-transfor=* \
1103  | --program-transfo=* | --program-transf=* \
1104  | --program-trans=* | --program-tran=* \
1105  | --progr-tra=* | --program-tr=* | --program-t=*)
1106    program_transform_name=$ac_optarg ;;
1107
1108  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109    ac_prev=pdfdir ;;
1110  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111    pdfdir=$ac_optarg ;;
1112
1113  -psdir | --psdir | --psdi | --psd | --ps)
1114    ac_prev=psdir ;;
1115  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116    psdir=$ac_optarg ;;
1117
1118  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119  | -silent | --silent | --silen | --sile | --sil)
1120    silent=yes ;;
1121
1122  -runstatedir | --runstatedir | --runstatedi | --runstated \
1123  | --runstate | --runstat | --runsta | --runst | --runs \
1124  | --run | --ru | --r)
1125    ac_prev=runstatedir ;;
1126  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1127  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1128  | --run=* | --ru=* | --r=*)
1129    runstatedir=$ac_optarg ;;
1130
1131  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132    ac_prev=sbindir ;;
1133  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134  | --sbi=* | --sb=*)
1135    sbindir=$ac_optarg ;;
1136
1137  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139  | --sharedst | --shareds | --shared | --share | --shar \
1140  | --sha | --sh)
1141    ac_prev=sharedstatedir ;;
1142  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145  | --sha=* | --sh=*)
1146    sharedstatedir=$ac_optarg ;;
1147
1148  -site | --site | --sit)
1149    ac_prev=site ;;
1150  -site=* | --site=* | --sit=*)
1151    site=$ac_optarg ;;
1152
1153  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154    ac_prev=srcdir ;;
1155  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156    srcdir=$ac_optarg ;;
1157
1158  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159  | --syscon | --sysco | --sysc | --sys | --sy)
1160    ac_prev=sysconfdir ;;
1161  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163    sysconfdir=$ac_optarg ;;
1164
1165  -target | --target | --targe | --targ | --tar | --ta | --t)
1166    ac_prev=target_alias ;;
1167  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168    target_alias=$ac_optarg ;;
1169
1170  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171    verbose=yes ;;
1172
1173  -version | --version | --versio | --versi | --vers | -V)
1174    ac_init_version=: ;;
1175
1176  -with-* | --with-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: $ac_useropt"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=\$ac_optarg ;;
1191
1192  -without-* | --without-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: $ac_useropt"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=no ;;
1207
1208  --x)
1209    # Obsolete; use --with-x.
1210    with_x=yes ;;
1211
1212  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213  | --x-incl | --x-inc | --x-in | --x-i)
1214    ac_prev=x_includes ;;
1215  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217    x_includes=$ac_optarg ;;
1218
1219  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221    ac_prev=x_libraries ;;
1222  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224    x_libraries=$ac_optarg ;;
1225
1226  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
1228    ;;
1229
1230  *=*)
1231    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232    # Reject names that are not valid shell variable names.
1233    case $ac_envvar in #(
1234      '' | [0-9]* | *[!_$as_cr_alnum]* )
1235      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236    esac
1237    eval $ac_envvar=\$ac_optarg
1238    export $ac_envvar ;;
1239
1240  *)
1241    # FIXME: should be removed in autoconf 3.0.
1242    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246    ;;
1247
1248  esac
1249done
1250
1251if test -n "$ac_prev"; then
1252  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253  as_fn_error $? "missing argument to $ac_option"
1254fi
1255
1256if test -n "$ac_unrecognized_opts"; then
1257  case $enable_option_checking in
1258    no) ;;
1259    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261  esac
1262fi
1263
1264# Check all directory arguments for consistency.
1265for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266		datadir sysconfdir sharedstatedir localstatedir includedir \
1267		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268		libdir localedir mandir runstatedir
1269do
1270  eval ac_val=\$$ac_var
1271  # Remove trailing slashes.
1272  case $ac_val in
1273    */ )
1274      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275      eval $ac_var=\$ac_val;;
1276  esac
1277  # Be sure to have absolute directory names.
1278  case $ac_val in
1279    [\\/$]* | ?:[\\/]* )  continue;;
1280    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281  esac
1282  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294  if test "x$build_alias" = x; then
1295    cross_compiling=maybe
1296  elif test "x$build_alias" != "x$host_alias"; then
1297    cross_compiling=yes
1298  fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310  as_fn_error $? "working directory cannot be determined"
1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312  as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317  ac_srcdir_defaulted=yes
1318  # Try the directory containing this script, then the parent directory.
1319  ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321	 X"$as_myself" : 'X\(//\)[^/]' \| \
1322	 X"$as_myself" : 'X\(//\)$' \| \
1323	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\/\)[^/].*/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\/\)$/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\).*/{
1338	    s//\1/
1339	    q
1340	  }
1341	  s/.*/./; q'`
1342  srcdir=$ac_confdir
1343  if test ! -r "$srcdir/$ac_unique_file"; then
1344    srcdir=..
1345  fi
1346else
1347  ac_srcdir_defaulted=no
1348fi
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
1355	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356	pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359  srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369  eval ac_env_${ac_var}_value=\$${ac_var}
1370  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378  # Omit some internal or obsolete options to make the list less imposing.
1379  # This message is too long to be a string in the A/UX 3.1 sh.
1380  cat <<_ACEOF
1381\`configure' configures xf86-video-apm 1.3.0 to adapt to many kinds of systems.
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE.  See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391  -h, --help              display this help and exit
1392      --help=short        display options specific to this package
1393      --help=recursive    display the short help of all the included packages
1394  -V, --version           display version information and exit
1395  -q, --quiet, --silent   do not print \`checking ...' messages
1396      --cache-file=FILE   cache test results in FILE [disabled]
1397  -C, --config-cache      alias for \`--cache-file=config.cache'
1398  -n, --no-create         do not create output files
1399      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1400
1401Installation directories:
1402  --prefix=PREFIX         install architecture-independent files in PREFIX
1403                          [$ac_default_prefix]
1404  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1405                          [PREFIX]
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
1415  --bindir=DIR            user executables [EPREFIX/bin]
1416  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1417  --libexecdir=DIR        program executables [EPREFIX/libexec]
1418  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1419  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1420  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1421  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1422  --libdir=DIR            object code libraries [EPREFIX/lib]
1423  --includedir=DIR        C header files [PREFIX/include]
1424  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427  --infodir=DIR           info documentation [DATAROOTDIR/info]
1428  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429  --mandir=DIR            man documentation [DATAROOTDIR/man]
1430  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-apm]
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-apm 1.3.0:";;
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-dependency-tracking
1466                          do not reject slow dependency extractors
1467  --disable-dependency-tracking
1468                          speeds up one-time build
1469  --disable-selective-werror
1470                          Turn off selective compiler errors. (default:
1471                          enabled)
1472  --enable-strict-compilation
1473                          Enable all warnings from compiler and make them
1474                          errors (default: disabled)
1475  --enable-static[=PKGS]  build static libraries [default=no]
1476  --enable-shared[=PKGS]  build shared libraries [default=yes]
1477  --enable-fast-install[=PKGS]
1478                          optimize for fast installation [default=yes]
1479  --disable-libtool-lock  avoid locking (might break parallel builds)
1480  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1481                          [default=auto]
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1487                          both]
1488  --with-aix-soname=aix|svr4|both
1489                          shared library versioning (aka "SONAME") variant to
1490                          provide on AIX, [default=aix].
1491  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1493                          compiler's sysroot if not specified).
1494  --with-xorg-module-dir=DIR
1495
1496Some influential environment variables:
1497  CC          C compiler command
1498  CFLAGS      C compiler flags
1499  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1500              nonstandard directory <lib dir>
1501  LIBS        libraries to pass to the linker, e.g. -l<library>
1502  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503              you have headers in a nonstandard directory <include dir>
1504  CPP         C preprocessor
1505  PKG_CONFIG  path to pkg-config utility
1506  PKG_CONFIG_PATH
1507              directories to add to pkg-config's search path
1508  PKG_CONFIG_LIBDIR
1509              path overriding pkg-config's built-in search path
1510  LT_SYS_LIBRARY_PATH
1511              User-defined run-time library search path.
1512  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1513  XORG_LIBS   linker flags for XORG, overriding pkg-config
1514  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1515  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1516  PCIACCESS_CFLAGS
1517              C compiler flags for PCIACCESS, overriding pkg-config
1518  PCIACCESS_LIBS
1519              linker flags for PCIACCESS, overriding pkg-config
1520
1521Use these variables to override the choices made by `configure' or to help
1522it to find libraries and programs with nonstandard names/locations.
1523
1524Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1525_ACEOF
1526ac_status=$?
1527fi
1528
1529if test "$ac_init_help" = "recursive"; then
1530  # If there are subdirs, report their specific --help.
1531  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532    test -d "$ac_dir" ||
1533      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534      continue
1535    ac_builddir=.
1536
1537case "$ac_dir" in
1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539*)
1540  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541  # A ".." for each directory in $ac_dir_suffix.
1542  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543  case $ac_top_builddir_sub in
1544  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546  esac ;;
1547esac
1548ac_abs_top_builddir=$ac_pwd
1549ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550# for backward compatibility:
1551ac_top_builddir=$ac_top_build_prefix
1552
1553case $srcdir in
1554  .)  # We are building in place.
1555    ac_srcdir=.
1556    ac_top_srcdir=$ac_top_builddir_sub
1557    ac_abs_top_srcdir=$ac_pwd ;;
1558  [\\/]* | ?:[\\/]* )  # Absolute name.
1559    ac_srcdir=$srcdir$ac_dir_suffix;
1560    ac_top_srcdir=$srcdir
1561    ac_abs_top_srcdir=$srcdir ;;
1562  *) # Relative name.
1563    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564    ac_top_srcdir=$ac_top_build_prefix$srcdir
1565    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566esac
1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569    cd "$ac_dir" || { ac_status=$?; continue; }
1570    # Check for guested configure.
1571    if test -f "$ac_srcdir/configure.gnu"; then
1572      echo &&
1573      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574    elif test -f "$ac_srcdir/configure"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure" --help=recursive
1577    else
1578      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579    fi || ac_status=$?
1580    cd "$ac_pwd" || { ac_status=$?; break; }
1581  done
1582fi
1583
1584test -n "$ac_init_help" && exit $ac_status
1585if $ac_init_version; then
1586  cat <<\_ACEOF
1587xf86-video-apm configure 1.3.0
1588generated by GNU Autoconf 2.69
1589
1590Copyright (C) 2012 Free Software Foundation, Inc.
1591This configure script is free software; the Free Software Foundation
1592gives unlimited permission to copy, distribute and modify it.
1593_ACEOF
1594  exit
1595fi
1596
1597## ------------------------ ##
1598## Autoconf initialization. ##
1599## ------------------------ ##
1600
1601# ac_fn_c_try_compile LINENO
1602# --------------------------
1603# Try to compile conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_compile ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  rm -f conftest.$ac_objext
1608  if { { ac_try="$ac_compile"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615  (eval "$ac_compile") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && {
1624	 test -z "$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       } && test -s conftest.$ac_objext; then :
1627  ac_retval=0
1628else
1629  $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1
1633fi
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635  as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_compile
1638
1639# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1640# ---------------------------------------------
1641# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1642# accordingly.
1643ac_fn_c_check_decl ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  as_decl_name=`echo $2|sed 's/ *(.*//'`
1647  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1649$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1650if eval \${$3+:} false; then :
1651  $as_echo_n "(cached) " >&6
1652else
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656int
1657main ()
1658{
1659#ifndef $as_decl_name
1660#ifdef __cplusplus
1661  (void) $as_decl_use;
1662#else
1663  (void) $as_decl_name;
1664#endif
1665#endif
1666
1667  ;
1668  return 0;
1669}
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672  eval "$3=yes"
1673else
1674  eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_decl
1684
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_cpp conftest.$ac_ext"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } > conftest.i && {
1707	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715    ac_retval=1
1716fi
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_cpp
1721
1722# ac_fn_c_try_run LINENO
1723# ----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725# that executables *can* be run.
1726ac_fn_c_try_run ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>&5
1737  ac_status=$?
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740  { { case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_try") 2>&5
1747  ac_status=$?
1748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749  test $ac_status = 0; }; }; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: program exited with status $ac_status" >&5
1753       $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756       ac_retval=$ac_status
1757fi
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_run
1763
1764# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists and can be compiled using the include files in
1767# INCLUDES, setting the cache variable VAR accordingly.
1768ac_fn_c_check_header_compile ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775else
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778$4
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782  eval "$3=yes"
1783else
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_header_compile
1794
1795# ac_fn_c_try_link LINENO
1796# -----------------------
1797# Try to link conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_link ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  rm -f conftest.$ac_objext conftest$ac_exeext
1802  if { { ac_try="$ac_link"
1803case "(($ac_try" in
1804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805  *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809  (eval "$ac_link") 2>conftest.err
1810  ac_status=$?
1811  if test -s conftest.err; then
1812    grep -v '^ *+' conftest.err >conftest.er1
1813    cat conftest.er1 >&5
1814    mv -f conftest.er1 conftest.err
1815  fi
1816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817  test $ac_status = 0; } && {
1818	 test -z "$ac_c_werror_flag" ||
1819	 test ! -s conftest.err
1820       } && test -s conftest$ac_exeext && {
1821	 test "$cross_compiling" = yes ||
1822	 test -x conftest$ac_exeext
1823       }; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829	ac_retval=1
1830fi
1831  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833  # interfere with the next link command; also delete a directory that is
1834  # left behind by Apple's compiler.  We do this before executing the actions.
1835  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837  as_fn_set_status $ac_retval
1838
1839} # ac_fn_c_try_link
1840
1841# ac_fn_c_check_func LINENO FUNC VAR
1842# ----------------------------------
1843# Tests whether FUNC exists, setting the cache variable VAR accordingly
1844ac_fn_c_check_func ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval \${$3+:} false; then :
1850  $as_echo_n "(cached) " >&6
1851else
1852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1856#define $2 innocuous_$2
1857
1858/* System header to define __stub macros and hopefully few prototypes,
1859    which can conflict with char $2 (); below.
1860    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861    <limits.h> exists even on freestanding compilers.  */
1862
1863#ifdef __STDC__
1864# include <limits.h>
1865#else
1866# include <assert.h>
1867#endif
1868
1869#undef $2
1870
1871/* Override any GCC internal prototype to avoid an error.
1872   Use char because int might match the return type of a GCC
1873   builtin and then its argument prototype would still apply.  */
1874#ifdef __cplusplus
1875extern "C"
1876#endif
1877char $2 ();
1878/* The GNU C library defines this for functions which it implements
1879    to always fail with ENOSYS.  Some functions are actually named
1880    something starting with __ and the normal name is an alias.  */
1881#if defined __stub_$2 || defined __stub___$2
1882choke me
1883#endif
1884
1885int
1886main ()
1887{
1888return $2 ();
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_link "$LINENO"; then :
1894  eval "$3=yes"
1895else
1896  eval "$3=no"
1897fi
1898rm -f core conftest.err conftest.$ac_objext \
1899    conftest$ac_exeext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906} # ac_fn_c_check_func
1907
1908# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1909# ----------------------------------------------------
1910# Tries to find if the field MEMBER exists in type AGGR, after including
1911# INCLUDES, setting cache variable VAR accordingly.
1912ac_fn_c_check_member ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1916$as_echo_n "checking for $2.$3... " >&6; }
1917if eval \${$4+:} false; then :
1918  $as_echo_n "(cached) " >&6
1919else
1920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922$5
1923int
1924main ()
1925{
1926static $2 ac_aggr;
1927if (ac_aggr.$3)
1928return 0;
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934  eval "$4=yes"
1935else
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938$5
1939int
1940main ()
1941{
1942static $2 ac_aggr;
1943if (sizeof ac_aggr.$3)
1944return 0;
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950  eval "$4=yes"
1951else
1952  eval "$4=no"
1953fi
1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958eval ac_res=\$$4
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963} # ac_fn_c_check_member
1964
1965# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966# -------------------------------------------------------
1967# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968# the include files in INCLUDES and setting the cache variable VAR
1969# accordingly.
1970ac_fn_c_check_header_mongrel ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if eval \${$3+:} false; then :
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval \${$3+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982else
1983  # Is the header compilable?
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985$as_echo_n "checking $2 usability... " >&6; }
1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989#include <$2>
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992  ac_header_compiler=yes
1993else
1994  ac_header_compiler=no
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998$as_echo "$ac_header_compiler" >&6; }
1999
2000# Is the header present?
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002$as_echo_n "checking $2 presence... " >&6; }
2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005#include <$2>
2006_ACEOF
2007if ac_fn_c_try_cpp "$LINENO"; then :
2008  ac_header_preproc=yes
2009else
2010  ac_header_preproc=no
2011fi
2012rm -f conftest.err conftest.i conftest.$ac_ext
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014$as_echo "$ac_header_preproc" >&6; }
2015
2016# So?  What about this header?
2017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018  yes:no: )
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023    ;;
2024  no:yes:* )
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2028$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2032$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035( $as_echo "## ---------------------------------------------------------------------- ##
2036## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2037## ---------------------------------------------------------------------- ##"
2038     ) | sed "s/^/$as_me: WARNING:     /" >&2
2039    ;;
2040esac
2041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042$as_echo_n "checking for $2... " >&6; }
2043if eval \${$3+:} false; then :
2044  $as_echo_n "(cached) " >&6
2045else
2046  eval "$3=\$ac_header_compiler"
2047fi
2048eval ac_res=\$$3
2049	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051fi
2052  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054} # ac_fn_c_check_header_mongrel
2055cat >config.log <<_ACEOF
2056This file contains any messages produced by compilers while
2057running configure, to aid debugging if configure makes a mistake.
2058
2059It was created by xf86-video-apm $as_me 1.3.0, which was
2060generated by GNU Autoconf 2.69.  Invocation command line was
2061
2062  $ $0 $@
2063
2064_ACEOF
2065exec 5>>config.log
2066{
2067cat <<_ASUNAME
2068## --------- ##
2069## Platform. ##
2070## --------- ##
2071
2072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2080
2081/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2082/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2085/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2086/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2087/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2088
2089_ASUNAME
2090
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096    $as_echo "PATH: $as_dir"
2097  done
2098IFS=$as_save_IFS
2099
2100} >&5
2101
2102cat >&5 <<_ACEOF
2103
2104
2105## ----------- ##
2106## Core tests. ##
2107## ----------- ##
2108
2109_ACEOF
2110
2111
2112# Keep a trace of the command line.
2113# Strip out --no-create and --no-recursion so they do not pile up.
2114# Strip out --silent because we don't want to record it for future runs.
2115# Also quote any args containing shell meta-characters.
2116# Make two passes to allow for proper duplicate-argument suppression.
2117ac_configure_args=
2118ac_configure_args0=
2119ac_configure_args1=
2120ac_must_keep_next=false
2121for ac_pass in 1 2
2122do
2123  for ac_arg
2124  do
2125    case $ac_arg in
2126    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128    | -silent | --silent | --silen | --sile | --sil)
2129      continue ;;
2130    *\'*)
2131      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132    esac
2133    case $ac_pass in
2134    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135    2)
2136      as_fn_append ac_configure_args1 " '$ac_arg'"
2137      if test $ac_must_keep_next = true; then
2138	ac_must_keep_next=false # Got value, back to normal.
2139      else
2140	case $ac_arg in
2141	  *=* | --config-cache | -C | -disable-* | --disable-* \
2142	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144	  | -with-* | --with-* | -without-* | --without-* | --x)
2145	    case "$ac_configure_args0 " in
2146	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147	    esac
2148	    ;;
2149	  -* ) ac_must_keep_next=true ;;
2150	esac
2151      fi
2152      as_fn_append ac_configure_args " '$ac_arg'"
2153      ;;
2154    esac
2155  done
2156done
2157{ ac_configure_args0=; unset ac_configure_args0;}
2158{ ac_configure_args1=; unset ac_configure_args1;}
2159
2160# When interrupted or exit'd, cleanup temporary files, and complete
2161# config.log.  We remove comments because anyway the quotes in there
2162# would cause problems or look ugly.
2163# WARNING: Use '\'' to represent an apostrophe within the trap.
2164# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165trap 'exit_status=$?
2166  # Save into config.log some information that might help in debugging.
2167  {
2168    echo
2169
2170    $as_echo "## ---------------- ##
2171## Cache variables. ##
2172## ---------------- ##"
2173    echo
2174    # The following way of writing the cache mishandles newlines in values,
2175(
2176  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177    eval ac_val=\$$ac_var
2178    case $ac_val in #(
2179    *${as_nl}*)
2180      case $ac_var in #(
2181      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183      esac
2184      case $ac_var in #(
2185      _ | IFS | as_nl) ;; #(
2186      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187      *) { eval $ac_var=; unset $ac_var;} ;;
2188      esac ;;
2189    esac
2190  done
2191  (set) 2>&1 |
2192    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193    *${as_nl}ac_space=\ *)
2194      sed -n \
2195	"s/'\''/'\''\\\\'\'''\''/g;
2196	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197      ;; #(
2198    *)
2199      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200      ;;
2201    esac |
2202    sort
2203)
2204    echo
2205
2206    $as_echo "## ----------------- ##
2207## Output variables. ##
2208## ----------------- ##"
2209    echo
2210    for ac_var in $ac_subst_vars
2211    do
2212      eval ac_val=\$$ac_var
2213      case $ac_val in
2214      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215      esac
2216      $as_echo "$ac_var='\''$ac_val'\''"
2217    done | sort
2218    echo
2219
2220    if test -n "$ac_subst_files"; then
2221      $as_echo "## ------------------- ##
2222## File substitutions. ##
2223## ------------------- ##"
2224      echo
2225      for ac_var in $ac_subst_files
2226      do
2227	eval ac_val=\$$ac_var
2228	case $ac_val in
2229	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230	esac
2231	$as_echo "$ac_var='\''$ac_val'\''"
2232      done | sort
2233      echo
2234    fi
2235
2236    if test -s confdefs.h; then
2237      $as_echo "## ----------- ##
2238## confdefs.h. ##
2239## ----------- ##"
2240      echo
2241      cat confdefs.h
2242      echo
2243    fi
2244    test "$ac_signal" != 0 &&
2245      $as_echo "$as_me: caught signal $ac_signal"
2246    $as_echo "$as_me: exit $exit_status"
2247  } >&5
2248  rm -f core *.core core.conftest.* &&
2249    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250    exit $exit_status
2251' 0
2252for ac_signal in 1 2 13 15; do
2253  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254done
2255ac_signal=0
2256
2257# confdefs.h avoids OS command line length limits that DEFS can exceed.
2258rm -f -r conftest* confdefs.h
2259
2260$as_echo "/* confdefs.h */" > confdefs.h
2261
2262# Predefined preprocessor variables.
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_NAME "$PACKAGE_NAME"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_VERSION "$PACKAGE_VERSION"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_STRING "$PACKAGE_STRING"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_URL "$PACKAGE_URL"
2286_ACEOF
2287
2288
2289# Let the site file select an alternate cache file if it wants to.
2290# Prefer an explicitly selected file to automatically selected ones.
2291ac_site_file1=NONE
2292ac_site_file2=NONE
2293if test -n "$CONFIG_SITE"; then
2294  # We do not want a PATH search for config.site.
2295  case $CONFIG_SITE in #((
2296    -*)  ac_site_file1=./$CONFIG_SITE;;
2297    */*) ac_site_file1=$CONFIG_SITE;;
2298    *)   ac_site_file1=./$CONFIG_SITE;;
2299  esac
2300elif test "x$prefix" != xNONE; then
2301  ac_site_file1=$prefix/share/config.site
2302  ac_site_file2=$prefix/etc/config.site
2303else
2304  ac_site_file1=$ac_default_prefix/share/config.site
2305  ac_site_file2=$ac_default_prefix/etc/config.site
2306fi
2307for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308do
2309  test "x$ac_site_file" = xNONE && continue
2310  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313    sed 's/^/| /' "$ac_site_file" >&5
2314    . "$ac_site_file" \
2315      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317as_fn_error $? "failed to load site script $ac_site_file
2318See \`config.log' for more details" "$LINENO" 5; }
2319  fi
2320done
2321
2322if test -r "$cache_file"; then
2323  # Some versions of bash will fail to source /dev/null (special files
2324  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2325  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327$as_echo "$as_me: loading cache $cache_file" >&6;}
2328    case $cache_file in
2329      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330      *)                      . "./$cache_file";;
2331    esac
2332  fi
2333else
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335$as_echo "$as_me: creating cache $cache_file" >&6;}
2336  >$cache_file
2337fi
2338
2339# Check that the precious variables saved in the cache have kept the same
2340# value.
2341ac_cache_corrupted=false
2342for ac_var in $ac_precious_vars; do
2343  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344  eval ac_new_set=\$ac_env_${ac_var}_set
2345  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346  eval ac_new_val=\$ac_env_${ac_var}_value
2347  case $ac_old_set,$ac_new_set in
2348    set,)
2349      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351      ac_cache_corrupted=: ;;
2352    ,set)
2353      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355      ac_cache_corrupted=: ;;
2356    ,);;
2357    *)
2358      if test "x$ac_old_val" != "x$ac_new_val"; then
2359	# differences in whitespace do not lead to failure.
2360	ac_old_val_w=`echo x $ac_old_val`
2361	ac_new_val_w=`echo x $ac_new_val`
2362	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365	  ac_cache_corrupted=:
2366	else
2367	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369	  eval $ac_var=\$ac_old_val
2370	fi
2371	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2372$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2373	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2374$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2375      fi;;
2376  esac
2377  # Pass precious variables to config.status.
2378  if test "$ac_new_set" = set; then
2379    case $ac_new_val in
2380    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381    *) ac_arg=$ac_var=$ac_new_val ;;
2382    esac
2383    case " $ac_configure_args " in
2384      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2385      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386    esac
2387  fi
2388done
2389if $ac_cache_corrupted; then
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395fi
2396## -------------------- ##
2397## Main body of script. ##
2398## -------------------- ##
2399
2400ac_ext=c
2401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407
2408ac_config_headers="$ac_config_headers config.h"
2409
2410ac_aux_dir=
2411for ac_dir in . "$srcdir"/.; do
2412  if test -f "$ac_dir/install-sh"; then
2413    ac_aux_dir=$ac_dir
2414    ac_install_sh="$ac_aux_dir/install-sh -c"
2415    break
2416  elif test -f "$ac_dir/install.sh"; then
2417    ac_aux_dir=$ac_dir
2418    ac_install_sh="$ac_aux_dir/install.sh -c"
2419    break
2420  elif test -f "$ac_dir/shtool"; then
2421    ac_aux_dir=$ac_dir
2422    ac_install_sh="$ac_aux_dir/shtool install -c"
2423    break
2424  fi
2425done
2426if test -z "$ac_aux_dir"; then
2427  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2428fi
2429
2430# These three variables are undocumented and unsupported,
2431# and are intended to be withdrawn in a future Autoconf release.
2432# They can cause serious problems if a builder's source tree is in a directory
2433# whose full name contains unusual characters.
2434ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2435ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2436ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2437
2438
2439
2440# Initialize Automake
2441am__api_version='1.15'
2442
2443# Find a good install program.  We prefer a C program (faster),
2444# so one script is as good as another.  But avoid the broken or
2445# incompatible versions:
2446# SysV /etc/install, /usr/sbin/install
2447# SunOS /usr/etc/install
2448# IRIX /sbin/install
2449# AIX /bin/install
2450# AmigaOS /C/install, which installs bootblocks on floppy discs
2451# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454# OS/2's system install, which has a completely different semantic
2455# ./install, which can be erroneously created by make from ./install.sh.
2456# Reject install programs that cannot install multiple files.
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458$as_echo_n "checking for a BSD-compatible install... " >&6; }
2459if test -z "$INSTALL"; then
2460if ${ac_cv_path_install+:} false; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468    # Account for people who put trailing slashes in PATH elements.
2469case $as_dir/ in #((
2470  ./ | .// | /[cC]/* | \
2471  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473  /usr/ucb/* ) ;;
2474  *)
2475    # OSF1 and SCO ODT 3.0 have their own names for install.
2476    # Don't use installbsd from OSF since it installs stuff as root
2477    # by default.
2478    for ac_prog in ginstall scoinst install; do
2479      for ac_exec_ext in '' $ac_executable_extensions; do
2480	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481	  if test $ac_prog = install &&
2482	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483	    # AIX install.  It has an incompatible calling convention.
2484	    :
2485	  elif test $ac_prog = install &&
2486	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487	    # program-specific install script used by HP pwplus--don't use.
2488	    :
2489	  else
2490	    rm -rf conftest.one conftest.two conftest.dir
2491	    echo one > conftest.one
2492	    echo two > conftest.two
2493	    mkdir conftest.dir
2494	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495	      test -s conftest.one && test -s conftest.two &&
2496	      test -s conftest.dir/conftest.one &&
2497	      test -s conftest.dir/conftest.two
2498	    then
2499	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500	      break 3
2501	    fi
2502	  fi
2503	fi
2504      done
2505    done
2506    ;;
2507esac
2508
2509  done
2510IFS=$as_save_IFS
2511
2512rm -rf conftest.one conftest.two conftest.dir
2513
2514fi
2515  if test "${ac_cv_path_install+set}" = set; then
2516    INSTALL=$ac_cv_path_install
2517  else
2518    # As a last resort, use the slow shell script.  Don't cache a
2519    # value for INSTALL within a source directory, because that will
2520    # break other packages using the cache if that directory is
2521    # removed, or if the value is a relative name.
2522    INSTALL=$ac_install_sh
2523  fi
2524fi
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526$as_echo "$INSTALL" >&6; }
2527
2528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529# It thinks the first close brace ends the variable substitution.
2530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537$as_echo_n "checking whether build environment is sane... " >&6; }
2538# Reject unsafe characters in $srcdir or the absolute working directory
2539# name.  Accept space and tab only in the latter.
2540am_lf='
2541'
2542case `pwd` in
2543  *[\\\"\#\$\&\'\`$am_lf]*)
2544    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2545esac
2546case $srcdir in
2547  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2548    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2549esac
2550
2551# Do 'set' in a subshell so we don't clobber the current shell's
2552# arguments.  Must try -L first in case configure is actually a
2553# symlink; some systems play weird games with the mod time of symlinks
2554# (eg FreeBSD returns the mod time of the symlink's containing
2555# directory).
2556if (
2557   am_has_slept=no
2558   for am_try in 1 2; do
2559     echo "timestamp, slept: $am_has_slept" > conftest.file
2560     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561     if test "$*" = "X"; then
2562	# -L didn't work.
2563	set X `ls -t "$srcdir/configure" conftest.file`
2564     fi
2565     if test "$*" != "X $srcdir/configure conftest.file" \
2566	&& test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568	# If neither matched, then we have a broken ls.  This can happen
2569	# if, for instance, CONFIG_SHELL is bash and it inherits a
2570	# broken ls alias from the environment.  This has actually
2571	# happened.  Such a system could not be considered "sane".
2572	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2573  alias in your environment" "$LINENO" 5
2574     fi
2575     if test "$2" = conftest.file || test $am_try -eq 2; then
2576       break
2577     fi
2578     # Just in case.
2579     sleep 1
2580     am_has_slept=yes
2581   done
2582   test "$2" = conftest.file
2583   )
2584then
2585   # Ok.
2586   :
2587else
2588   as_fn_error $? "newly created file is older than distributed files!
2589Check your system clock" "$LINENO" 5
2590fi
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592$as_echo "yes" >&6; }
2593# If we didn't sleep, we still need to ensure time stamps of config.status and
2594# generated files are strictly newer.
2595am_sleep_pid=
2596if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597  ( sleep 1 ) &
2598  am_sleep_pid=$!
2599fi
2600
2601rm -f conftest.file
2602
2603test "$program_prefix" != NONE &&
2604  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2605# Use a double $ so make ignores it.
2606test "$program_suffix" != NONE &&
2607  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2608# Double any \ or $.
2609# By default was `s,x,x', remove it if useless.
2610ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612
2613# Expand $ac_aux_dir to an absolute path.
2614am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615
2616if test x"${MISSING+set}" != xset; then
2617  case $am_aux_dir in
2618  *\ * | *\	*)
2619    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620  *)
2621    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622  esac
2623fi
2624# Use eval to expand $SHELL
2625if eval "$MISSING --is-lightweight"; then
2626  am_missing_run="$MISSING "
2627else
2628  am_missing_run=
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631fi
2632
2633if test x"${install_sh+set}" != xset; then
2634  case $am_aux_dir in
2635  *\ * | *\	*)
2636    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637  *)
2638    install_sh="\${SHELL} $am_aux_dir/install-sh"
2639  esac
2640fi
2641
2642# Installed binaries are usually stripped using 'strip' when the user
2643# run "make install-strip".  However 'strip' might not be the right
2644# tool to use in cross-compilation environments, therefore Automake
2645# will honor the 'STRIP' environment variable to overrule this program.
2646if test "$cross_compiling" != no; then
2647  if test -n "$ac_tool_prefix"; then
2648  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649set dummy ${ac_tool_prefix}strip; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if ${ac_cv_prog_STRIP+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  if test -n "$STRIP"; then
2656  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  test -z "$as_dir" && as_dir=.
2663    for ac_exec_ext in '' $ac_executable_extensions; do
2664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667    break 2
2668  fi
2669done
2670  done
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675STRIP=$ac_cv_prog_STRIP
2676if test -n "$STRIP"; then
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2678$as_echo "$STRIP" >&6; }
2679else
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682fi
2683
2684
2685fi
2686if test -z "$ac_cv_prog_STRIP"; then
2687  ac_ct_STRIP=$STRIP
2688  # Extract the first word of "strip", so it can be a program name with args.
2689set dummy strip; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$ac_ct_STRIP"; then
2696  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_exec_ext in '' $ac_executable_extensions; do
2704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705    ac_cv_prog_ac_ct_STRIP="strip"
2706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710  done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716if test -n "$ac_ct_STRIP"; then
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2718$as_echo "$ac_ct_STRIP" >&6; }
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724  if test "x$ac_ct_STRIP" = x; then
2725    STRIP=":"
2726  else
2727    case $cross_compiling:$ac_tool_warned in
2728yes:)
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731ac_tool_warned=yes ;;
2732esac
2733    STRIP=$ac_ct_STRIP
2734  fi
2735else
2736  STRIP="$ac_cv_prog_STRIP"
2737fi
2738
2739fi
2740INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2743$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2744if test -z "$MKDIR_P"; then
2745  if ${ac_cv_path_mkdir+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_prog in mkdir gmkdir; do
2754	 for ac_exec_ext in '' $ac_executable_extensions; do
2755	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2756	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757	     'mkdir (GNU coreutils) '* | \
2758	     'mkdir (coreutils) '* | \
2759	     'mkdir (fileutils) '4.1*)
2760	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761	       break 3;;
2762	   esac
2763	 done
2764       done
2765  done
2766IFS=$as_save_IFS
2767
2768fi
2769
2770  test -d ./--version && rmdir ./--version
2771  if test "${ac_cv_path_mkdir+set}" = set; then
2772    MKDIR_P="$ac_cv_path_mkdir -p"
2773  else
2774    # As a last resort, use the slow shell script.  Don't cache a
2775    # value for MKDIR_P within a source directory, because that will
2776    # break other packages using the cache if that directory is
2777    # removed, or if the value is a relative name.
2778    MKDIR_P="$ac_install_sh -d"
2779  fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2782$as_echo "$MKDIR_P" >&6; }
2783
2784for ac_prog in gawk mawk nawk awk
2785do
2786  # Extract the first word of "$ac_prog", so it can be a program name with args.
2787set dummy $ac_prog; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_AWK+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$AWK"; then
2794  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_AWK="$ac_prog"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813AWK=$ac_cv_prog_AWK
2814if test -n "$AWK"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816$as_echo "$AWK" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823  test -n "$AWK" && break
2824done
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828set x ${MAKE-make}
2829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2830if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  cat >conftest.make <<\_ACEOF
2834SHELL = /bin/sh
2835all:
2836	@echo '@@@%%%=$(MAKE)=@@@%%%'
2837_ACEOF
2838# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2839case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840  *@@@%%%=?*=@@@%%%*)
2841    eval ac_cv_prog_make_${ac_make}_set=yes;;
2842  *)
2843    eval ac_cv_prog_make_${ac_make}_set=no;;
2844esac
2845rm -f conftest.make
2846fi
2847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849$as_echo "yes" >&6; }
2850  SET_MAKE=
2851else
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854  SET_MAKE="MAKE=${MAKE-make}"
2855fi
2856
2857rm -rf .tst 2>/dev/null
2858mkdir .tst 2>/dev/null
2859if test -d .tst; then
2860  am__leading_dot=.
2861else
2862  am__leading_dot=_
2863fi
2864rmdir .tst 2>/dev/null
2865
2866# Check whether --enable-silent-rules was given.
2867if test "${enable_silent_rules+set}" = set; then :
2868  enableval=$enable_silent_rules;
2869fi
2870
2871case $enable_silent_rules in # (((
2872  yes) AM_DEFAULT_VERBOSITY=0;;
2873   no) AM_DEFAULT_VERBOSITY=1;;
2874    *) AM_DEFAULT_VERBOSITY=1;;
2875esac
2876am_make=${MAKE-make}
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879if ${am_cv_make_support_nested_variables+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  if $as_echo 'TRUE=$(BAR$(V))
2883BAR0=false
2884BAR1=true
2885V=1
2886am__doit:
2887	@$(TRUE)
2888.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889  am_cv_make_support_nested_variables=yes
2890else
2891  am_cv_make_support_nested_variables=no
2892fi
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895$as_echo "$am_cv_make_support_nested_variables" >&6; }
2896if test $am_cv_make_support_nested_variables = yes; then
2897    AM_V='$(V)'
2898  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2899else
2900  AM_V=$AM_DEFAULT_VERBOSITY
2901  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2902fi
2903AM_BACKSLASH='\'
2904
2905if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907  # is not polluted with repeated "-I."
2908  am__isrc=' -I$(srcdir)'
2909  # test to see if srcdir already configured
2910  if test -f $srcdir/config.status; then
2911    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912  fi
2913fi
2914
2915# test whether we have cygpath
2916if test -z "$CYGPATH_W"; then
2917  if (cygpath --version) >/dev/null 2>/dev/null; then
2918    CYGPATH_W='cygpath -w'
2919  else
2920    CYGPATH_W=echo
2921  fi
2922fi
2923
2924
2925# Define the identity of the package.
2926 PACKAGE='xf86-video-apm'
2927 VERSION='1.3.0'
2928
2929
2930cat >>confdefs.h <<_ACEOF
2931#define PACKAGE "$PACKAGE"
2932_ACEOF
2933
2934
2935cat >>confdefs.h <<_ACEOF
2936#define VERSION "$VERSION"
2937_ACEOF
2938
2939# Some tools Automake needs.
2940
2941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2942
2943
2944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2945
2946
2947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2948
2949
2950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2951
2952
2953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2954
2955# For better backward compatibility.  To be removed once Automake 1.9.x
2956# dies out for good.  For more background, see:
2957# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2959mkdir_p='$(MKDIR_P)'
2960
2961# We need awk for the "check" target (and possibly the TAP driver).  The
2962# system "awk" is bad on some platforms.
2963# Always define AMTAR for backward compatibility.  Yes, it's still used
2964# in the wild :-(  We should find a proper way to deprecate it ...
2965AMTAR='$${TAR-tar}'
2966
2967
2968# We'll loop over all known methods to create a tar archive until one works.
2969_am_tools='gnutar  pax cpio none'
2970
2971am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2972
2973
2974
2975
2976
2977
2978# POSIX will say in a future version that running "rm -f" with no argument
2979# is OK; and we want to be able to make that assumption in our Makefile
2980# recipes.  So use an aggressive probe to check that the usage we want is
2981# actually supported "in the wild" to an acceptable degree.
2982# See automake bug#10828.
2983# To make any issue more visible, cause the running configure to be aborted
2984# by default if the 'rm' program in use doesn't match our expectations; the
2985# user can still override this though.
2986if rm -f && rm -fr && rm -rf; then : OK; else
2987  cat >&2 <<'END'
2988Oops!
2989
2990Your 'rm' program seems unable to run without file operands specified
2991on the command line, even when the '-f' option is present.  This is contrary
2992to the behaviour of most rm programs out there, and not conforming with
2993the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2994
2995Please tell bug-automake@gnu.org about your system, including the value
2996of your $PATH and any error possibly output before this message.  This
2997can help us improve future automake versions.
2998
2999END
3000  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3001    echo 'Configuration will proceed anyway, since you have set the' >&2
3002    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3003    echo >&2
3004  else
3005    cat >&2 <<'END'
3006Aborting the configuration process, to ensure you take notice of the issue.
3007
3008You can download and install GNU coreutils to get an 'rm' implementation
3009that behaves properly: <http://www.gnu.org/software/coreutils/>.
3010
3011If you want to complete the configuration process using your problematic
3012'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3013to "yes", and re-run configure.
3014
3015END
3016    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3017  fi
3018fi
3019
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3022$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3023    # Check whether --enable-maintainer-mode was given.
3024if test "${enable_maintainer_mode+set}" = set; then :
3025  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3026else
3027  USE_MAINTAINER_MODE=no
3028fi
3029
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3031$as_echo "$USE_MAINTAINER_MODE" >&6; }
3032   if test $USE_MAINTAINER_MODE = yes; then
3033  MAINTAINER_MODE_TRUE=
3034  MAINTAINER_MODE_FALSE='#'
3035else
3036  MAINTAINER_MODE_TRUE='#'
3037  MAINTAINER_MODE_FALSE=
3038fi
3039
3040  MAINT=$MAINTAINER_MODE_TRUE
3041
3042
3043
3044# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056DEPDIR="${am__leading_dot}deps"
3057
3058ac_config_commands="$ac_config_commands depfiles"
3059
3060
3061am_make=${MAKE-make}
3062cat > confinc << 'END'
3063am__doit:
3064	@echo this is the am__doit target
3065.PHONY: am__doit
3066END
3067# If we don't find an include directive, just comment out the code.
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3069$as_echo_n "checking for style of include used by $am_make... " >&6; }
3070am__include="#"
3071am__quote=
3072_am_result=none
3073# First try GNU make style include.
3074echo "include confinc" > confmf
3075# Ignore all kinds of additional output from 'make'.
3076case `$am_make -s -f confmf 2> /dev/null` in #(
3077*the\ am__doit\ target*)
3078  am__include=include
3079  am__quote=
3080  _am_result=GNU
3081  ;;
3082esac
3083# Now try BSD make style include.
3084if test "$am__include" = "#"; then
3085   echo '.include "confinc"' > confmf
3086   case `$am_make -s -f confmf 2> /dev/null` in #(
3087   *the\ am__doit\ target*)
3088     am__include=.include
3089     am__quote="\""
3090     _am_result=BSD
3091     ;;
3092   esac
3093fi
3094
3095
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3097$as_echo "$_am_result" >&6; }
3098rm -f confinc confmf
3099
3100# Check whether --enable-dependency-tracking was given.
3101if test "${enable_dependency_tracking+set}" = set; then :
3102  enableval=$enable_dependency_tracking;
3103fi
3104
3105if test "x$enable_dependency_tracking" != xno; then
3106  am_depcomp="$ac_aux_dir/depcomp"
3107  AMDEPBACKSLASH='\'
3108  am__nodep='_no'
3109fi
3110 if test "x$enable_dependency_tracking" != xno; then
3111  AMDEP_TRUE=
3112  AMDEP_FALSE='#'
3113else
3114  AMDEP_TRUE='#'
3115  AMDEP_FALSE=
3116fi
3117
3118
3119ac_ext=c
3120ac_cpp='$CPP $CPPFLAGS'
3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124if test -n "$ac_tool_prefix"; then
3125  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3126set dummy ${ac_tool_prefix}gcc; ac_word=$2
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if ${ac_cv_prog_CC+:} false; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test -n "$CC"; then
3133  ac_cv_prog_CC="$CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138  IFS=$as_save_IFS
3139  test -z "$as_dir" && as_dir=.
3140    for ac_exec_ext in '' $ac_executable_extensions; do
3141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144    break 2
3145  fi
3146done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155$as_echo "$CC" >&6; }
3156else
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159fi
3160
3161
3162fi
3163if test -z "$ac_cv_prog_CC"; then
3164  ac_ct_CC=$CC
3165  # Extract the first word of "gcc", so it can be a program name with args.
3166set dummy gcc; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$ac_ct_CC"; then
3173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182    ac_cv_prog_ac_ct_CC="gcc"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193if test -n "$ac_ct_CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195$as_echo "$ac_ct_CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201  if test "x$ac_ct_CC" = x; then
3202    CC=""
3203  else
3204    case $cross_compiling:$ac_tool_warned in
3205yes:)
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208ac_tool_warned=yes ;;
3209esac
3210    CC=$ac_ct_CC
3211  fi
3212else
3213  CC="$ac_cv_prog_CC"
3214fi
3215
3216if test -z "$CC"; then
3217          if test -n "$ac_tool_prefix"; then
3218    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3219set dummy ${ac_tool_prefix}cc; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if ${ac_cv_prog_CC+:} false; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  if test -n "$CC"; then
3226  ac_cv_prog_CC="$CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  test -z "$as_dir" && as_dir=.
3233    for ac_exec_ext in '' $ac_executable_extensions; do
3234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235    ac_cv_prog_CC="${ac_tool_prefix}cc"
3236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237    break 2
3238  fi
3239done
3240  done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248$as_echo "$CC" >&6; }
3249else
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255  fi
3256fi
3257if test -z "$CC"; then
3258  # Extract the first word of "cc", so it can be a program name with args.
3259set dummy cc; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if ${ac_cv_prog_CC+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$CC"; then
3266  ac_cv_prog_CC="$CC" # Let the user override the test.
3267else
3268  ac_prog_rejected=no
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3277       ac_prog_rejected=yes
3278       continue
3279     fi
3280    ac_cv_prog_CC="cc"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288if test $ac_prog_rejected = yes; then
3289  # We found a bogon in the path, so make sure we never use it.
3290  set dummy $ac_cv_prog_CC
3291  shift
3292  if test $# != 0; then
3293    # We chose a different compiler from the bogus one.
3294    # However, it has the same basename, so the bogon will be chosen
3295    # first if we set CC to just the basename; use the full file name.
3296    shift
3297    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3298  fi
3299fi
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305$as_echo "$CC" >&6; }
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309fi
3310
3311
3312fi
3313if test -z "$CC"; then
3314  if test -n "$ac_tool_prefix"; then
3315  for ac_prog in cl.exe
3316  do
3317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_CC+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if test -n "$CC"; then
3325  ac_cv_prog_CC="$CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344CC=$ac_cv_prog_CC
3345if test -n "$CC"; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347$as_echo "$CC" >&6; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354    test -n "$CC" && break
3355  done
3356fi
3357if test -z "$CC"; then
3358  ac_ct_CC=$CC
3359  for ac_prog in cl.exe
3360do
3361  # Extract the first word of "$ac_prog", so it can be a program name with args.
3362set dummy $ac_prog; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_ac_ct_CC+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$ac_ct_CC"; then
3369  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378    ac_cv_prog_ac_ct_CC="$ac_prog"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383  done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389if test -n "$ac_ct_CC"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391$as_echo "$ac_ct_CC" >&6; }
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398  test -n "$ac_ct_CC" && break
3399done
3400
3401  if test "x$ac_ct_CC" = x; then
3402    CC=""
3403  else
3404    case $cross_compiling:$ac_tool_warned in
3405yes:)
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408ac_tool_warned=yes ;;
3409esac
3410    CC=$ac_ct_CC
3411  fi
3412fi
3413
3414fi
3415
3416
3417test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "no acceptable C compiler found in \$PATH
3420See \`config.log' for more details" "$LINENO" 5; }
3421
3422# Provide some information about the compiler.
3423$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3424set X $ac_compile
3425ac_compiler=$2
3426for ac_option in --version -v -V -qversion; do
3427  { { ac_try="$ac_compiler $ac_option >&5"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3435  ac_status=$?
3436  if test -s conftest.err; then
3437    sed '10a\
3438... rest of stderr output deleted ...
3439         10q' conftest.err >conftest.er1
3440    cat conftest.er1 >&5
3441  fi
3442  rm -f conftest.er1 conftest.err
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }
3445done
3446
3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458ac_clean_files_save=$ac_clean_files
3459ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3460# Try to create an executable without -o first, disregard a.out.
3461# It will help us diagnose broken compilers, and finding out an intuition
3462# of exeext.
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3464$as_echo_n "checking whether the C compiler works... " >&6; }
3465ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3466
3467# The possible output files:
3468ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469
3470ac_rmfiles=
3471for ac_file in $ac_files
3472do
3473  case $ac_file in
3474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3476  esac
3477done
3478rm -f $ac_rmfiles
3479
3480if { { ac_try="$ac_link_default"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487  (eval "$ac_link_default") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }; then :
3491  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3492# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3493# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3494# so that the user can short-circuit this test for compilers unknown to
3495# Autoconf.
3496for ac_file in $ac_files ''
3497do
3498  test -f "$ac_file" || continue
3499  case $ac_file in
3500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501	;;
3502    [ab].out )
3503	# We found the default executable, but exeext='' is most
3504	# certainly right.
3505	break;;
3506    *.* )
3507	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3508	then :; else
3509	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510	fi
3511	# We set ac_cv_exeext here because the later test for it is not
3512	# safe: cross compilers may not add the suffix if given an `-o'
3513	# argument, so we may need to know it at that point already.
3514	# Even if this section looks crufty: it has the advantage of
3515	# actually working.
3516	break;;
3517    * )
3518	break;;
3519  esac
3520done
3521test "$ac_cv_exeext" = no && ac_cv_exeext=
3522
3523else
3524  ac_file=''
3525fi
3526if test -z "$ac_file"; then :
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529$as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error 77 "C compiler cannot create executables
3535See \`config.log' for more details" "$LINENO" 5; }
3536else
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3538$as_echo "yes" >&6; }
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3541$as_echo_n "checking for C compiler default output file name... " >&6; }
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3543$as_echo "$ac_file" >&6; }
3544ac_exeext=$ac_cv_exeext
3545
3546rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3547ac_clean_files=$ac_clean_files_save
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3549$as_echo_n "checking for suffix of executables... " >&6; }
3550if { { ac_try="$ac_link"
3551case "(($ac_try" in
3552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553  *) ac_try_echo=$ac_try;;
3554esac
3555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556$as_echo "$ac_try_echo"; } >&5
3557  (eval "$ac_link") 2>&5
3558  ac_status=$?
3559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560  test $ac_status = 0; }; then :
3561  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3562# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3563# work properly (i.e., refer to `conftest.exe'), while it won't with
3564# `rm'.
3565for ac_file in conftest.exe conftest conftest.*; do
3566  test -f "$ac_file" || continue
3567  case $ac_file in
3568    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570	  break;;
3571    * ) break;;
3572  esac
3573done
3574else
3575  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3578See \`config.log' for more details" "$LINENO" 5; }
3579fi
3580rm -f conftest conftest$ac_cv_exeext
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3582$as_echo "$ac_cv_exeext" >&6; }
3583
3584rm -f conftest.$ac_ext
3585EXEEXT=$ac_cv_exeext
3586ac_exeext=$EXEEXT
3587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589#include <stdio.h>
3590int
3591main ()
3592{
3593FILE *f = fopen ("conftest.out", "w");
3594 return ferror (f) || fclose (f) != 0;
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600ac_clean_files="$ac_clean_files conftest.out"
3601# Check that the compiler produces executables we can run.  If not, either
3602# the compiler is broken, or we cross compile.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604$as_echo_n "checking whether we are cross compiling... " >&6; }
3605if test "$cross_compiling" != yes; then
3606  { { ac_try="$ac_link"
3607case "(($ac_try" in
3608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609  *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613  (eval "$ac_link") 2>&5
3614  ac_status=$?
3615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616  test $ac_status = 0; }
3617  if { ac_try='./conftest$ac_cv_exeext'
3618  { { case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_try") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; }; then
3628    cross_compiling=no
3629  else
3630    if test "$cross_compiling" = maybe; then
3631	cross_compiling=yes
3632    else
3633	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error $? "cannot run C compiled programs.
3636If you meant to cross compile, use \`--host'.
3637See \`config.log' for more details" "$LINENO" 5; }
3638    fi
3639  fi
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3642$as_echo "$cross_compiling" >&6; }
3643
3644rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3645ac_clean_files=$ac_clean_files_save
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647$as_echo_n "checking for suffix of object files... " >&6; }
3648if ${ac_cv_objext+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.o conftest.obj
3663if { { ac_try="$ac_compile"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669$as_echo "$ac_try_echo"; } >&5
3670  (eval "$ac_compile") 2>&5
3671  ac_status=$?
3672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673  test $ac_status = 0; }; then :
3674  for ac_file in conftest.o conftest.obj conftest.*; do
3675  test -f "$ac_file" || continue;
3676  case $ac_file in
3677    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679       break;;
3680  esac
3681done
3682else
3683  $as_echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688as_fn_error $? "cannot compute suffix of object files: cannot compile
3689See \`config.log' for more details" "$LINENO" 5; }
3690fi
3691rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694$as_echo "$ac_cv_objext" >&6; }
3695OBJEXT=$ac_cv_objext
3696ac_objext=$OBJEXT
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699if ${ac_cv_c_compiler_gnu+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708#ifndef __GNUC__
3709       choke me
3710#endif
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717  ac_compiler_gnu=yes
3718else
3719  ac_compiler_gnu=no
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727if test $ac_compiler_gnu = yes; then
3728  GCC=yes
3729else
3730  GCC=
3731fi
3732ac_test_CFLAGS=${CFLAGS+set}
3733ac_save_CFLAGS=$CFLAGS
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735$as_echo_n "checking whether $CC accepts -g... " >&6; }
3736if ${ac_cv_prog_cc_g+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  ac_save_c_werror_flag=$ac_c_werror_flag
3740   ac_c_werror_flag=yes
3741   ac_cv_prog_cc_g=no
3742   CFLAGS="-g"
3743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main ()
3748{
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755  ac_cv_prog_cc_g=yes
3756else
3757  CFLAGS=""
3758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760
3761int
3762main ()
3763{
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770
3771else
3772  ac_c_werror_flag=$ac_save_c_werror_flag
3773	 CFLAGS="-g"
3774	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785if ac_fn_c_try_compile "$LINENO"; then :
3786  ac_cv_prog_cc_g=yes
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789fi
3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793   ac_c_werror_flag=$ac_save_c_werror_flag
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796$as_echo "$ac_cv_prog_cc_g" >&6; }
3797if test "$ac_test_CFLAGS" = set; then
3798  CFLAGS=$ac_save_CFLAGS
3799elif test $ac_cv_prog_cc_g = yes; then
3800  if test "$GCC" = yes; then
3801    CFLAGS="-g -O2"
3802  else
3803    CFLAGS="-g"
3804  fi
3805else
3806  if test "$GCC" = yes; then
3807    CFLAGS="-O2"
3808  else
3809    CFLAGS=
3810  fi
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814if ${ac_cv_prog_cc_c89+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  ac_cv_prog_cc_c89=no
3818ac_save_CC=$CC
3819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821#include <stdarg.h>
3822#include <stdio.h>
3823struct stat;
3824/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3825struct buf { int x; };
3826FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827static char *e (p, i)
3828     char **p;
3829     int i;
3830{
3831  return p[i];
3832}
3833static char *f (char * (*g) (char **, int), char **p, ...)
3834{
3835  char *s;
3836  va_list v;
3837  va_start (v,p);
3838  s = g (p, va_arg (v,int));
3839  va_end (v);
3840  return s;
3841}
3842
3843/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3844   function prototypes and stuff, but not '\xHH' hex character constants.
3845   These don't provoke an error unfortunately, instead are silently treated
3846   as 'x'.  The following induces an error, until -std is added to get
3847   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3848   array size at least.  It's necessary to write '\x00'==0 to get something
3849   that's true only with -std.  */
3850int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851
3852/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853   inside strings and character constants.  */
3854#define FOO(x) 'x'
3855int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856
3857int test (int i, double x);
3858struct s1 {int (*f) (int a);};
3859struct s2 {int (*f) (double a);};
3860int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861int argc;
3862char **argv;
3863int
3864main ()
3865{
3866return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873do
3874  CC="$ac_save_CC $ac_arg"
3875  if ac_fn_c_try_compile "$LINENO"; then :
3876  ac_cv_prog_cc_c89=$ac_arg
3877fi
3878rm -f core conftest.err conftest.$ac_objext
3879  test "x$ac_cv_prog_cc_c89" != "xno" && break
3880done
3881rm -f conftest.$ac_ext
3882CC=$ac_save_CC
3883
3884fi
3885# AC_CACHE_VAL
3886case "x$ac_cv_prog_cc_c89" in
3887  x)
3888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889$as_echo "none needed" >&6; } ;;
3890  xno)
3891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892$as_echo "unsupported" >&6; } ;;
3893  *)
3894    CC="$CC $ac_cv_prog_cc_c89"
3895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897esac
3898if test "x$ac_cv_prog_cc_c89" != xno; then :
3899
3900fi
3901
3902ac_ext=c
3903ac_cpp='$CPP $CPPFLAGS'
3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3914$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3915if ${am_cv_prog_cc_c_o+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920
3921int
3922main ()
3923{
3924
3925  ;
3926  return 0;
3927}
3928_ACEOF
3929  # Make sure it works both with $CC and with simple cc.
3930  # Following AC_PROG_CC_C_O, we do the test twice because some
3931  # compilers refuse to overwrite an existing .o file with -o,
3932  # though they will create one.
3933  am_cv_prog_cc_c_o=yes
3934  for am_i in 1 2; do
3935    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3936   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } \
3940         && test -f conftest2.$ac_objext; then
3941      : OK
3942    else
3943      am_cv_prog_cc_c_o=no
3944      break
3945    fi
3946  done
3947  rm -f core conftest*
3948  unset am_i
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3951$as_echo "$am_cv_prog_cc_c_o" >&6; }
3952if test "$am_cv_prog_cc_c_o" != yes; then
3953   # Losing compiler, so override with the script.
3954   # FIXME: It is wrong to rewrite CC.
3955   # But if we don't then we get into trouble of one sort or another.
3956   # A longer-term fix would be to have automake use am__CC in this case,
3957   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3958   CC="$am_aux_dir/compile $CC"
3959fi
3960ac_ext=c
3961ac_cpp='$CPP $CPPFLAGS'
3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966
3967depcc="$CC"   am_compiler_list=
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3970$as_echo_n "checking dependency style of $depcc... " >&6; }
3971if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3975  # We make a subdir and do the tests there.  Otherwise we can end up
3976  # making bogus files that we don't know about and never remove.  For
3977  # instance it was reported that on HP-UX the gcc test will end up
3978  # making a dummy file named 'D' -- because '-MD' means "put the output
3979  # in D".
3980  rm -rf conftest.dir
3981  mkdir conftest.dir
3982  # Copy depcomp to subdir because otherwise we won't find it if we're
3983  # using a relative directory.
3984  cp "$am_depcomp" conftest.dir
3985  cd conftest.dir
3986  # We will build objects and dependencies in a subdirectory because
3987  # it helps to detect inapplicable dependency modes.  For instance
3988  # both Tru64's cc and ICC support -MD to output dependencies as a
3989  # side effect of compilation, but ICC will put the dependencies in
3990  # the current directory while Tru64 will put them in the object
3991  # directory.
3992  mkdir sub
3993
3994  am_cv_CC_dependencies_compiler_type=none
3995  if test "$am_compiler_list" = ""; then
3996     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3997  fi
3998  am__universal=false
3999  case " $depcc " in #(
4000     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4001     esac
4002
4003  for depmode in $am_compiler_list; do
4004    # Setup a source with many dependencies, because some compilers
4005    # like to wrap large dependency lists on column 80 (with \), and
4006    # we should not choose a depcomp mode which is confused by this.
4007    #
4008    # We need to recreate these files for each test, as the compiler may
4009    # overwrite some of them when testing with obscure command lines.
4010    # This happens at least with the AIX C compiler.
4011    : > sub/conftest.c
4012    for i in 1 2 3 4 5 6; do
4013      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4014      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4015      # Solaris 10 /bin/sh.
4016      echo '/* dummy */' > sub/conftst$i.h
4017    done
4018    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4019
4020    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4021    # mode.  It turns out that the SunPro C++ compiler does not properly
4022    # handle '-M -o', and we need to detect this.  Also, some Intel
4023    # versions had trouble with output in subdirs.
4024    am__obj=sub/conftest.${OBJEXT-o}
4025    am__minus_obj="-o $am__obj"
4026    case $depmode in
4027    gcc)
4028      # This depmode causes a compiler race in universal mode.
4029      test "$am__universal" = false || continue
4030      ;;
4031    nosideeffect)
4032      # After this tag, mechanisms are not by side-effect, so they'll
4033      # only be used when explicitly requested.
4034      if test "x$enable_dependency_tracking" = xyes; then
4035	continue
4036      else
4037	break
4038      fi
4039      ;;
4040    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4041      # This compiler won't grok '-c -o', but also, the minuso test has
4042      # not run yet.  These depmodes are late enough in the game, and
4043      # so weak that their functioning should not be impacted.
4044      am__obj=conftest.${OBJEXT-o}
4045      am__minus_obj=
4046      ;;
4047    none) break ;;
4048    esac
4049    if depmode=$depmode \
4050       source=sub/conftest.c object=$am__obj \
4051       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4052       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4053         >/dev/null 2>conftest.err &&
4054       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4055       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4057       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058      # icc doesn't choke on unknown options, it will just issue warnings
4059      # or remarks (even with -Werror).  So we grep stderr for any message
4060      # that says an option was ignored or not supported.
4061      # When given -MP, icc 7.0 and 7.1 complain thusly:
4062      #   icc: Command line warning: ignoring option '-M'; no argument required
4063      # The diagnosis changed in icc 8.0:
4064      #   icc: Command line remark: option '-MP' not supported
4065      if (grep 'ignoring option' conftest.err ||
4066          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067        am_cv_CC_dependencies_compiler_type=$depmode
4068        break
4069      fi
4070    fi
4071  done
4072
4073  cd ..
4074  rm -rf conftest.dir
4075else
4076  am_cv_CC_dependencies_compiler_type=none
4077fi
4078
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4081$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4082CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084 if
4085  test "x$enable_dependency_tracking" != xno \
4086  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4087  am__fastdepCC_TRUE=
4088  am__fastdepCC_FALSE='#'
4089else
4090  am__fastdepCC_TRUE='#'
4091  am__fastdepCC_FALSE=
4092fi
4093
4094
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4096$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4097if ${ac_cv_prog_cc_c99+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  ac_cv_prog_cc_c99=no
4101ac_save_CC=$CC
4102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103/* end confdefs.h.  */
4104#include <stdarg.h>
4105#include <stdbool.h>
4106#include <stdlib.h>
4107#include <wchar.h>
4108#include <stdio.h>
4109
4110// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4111#define debug(...) fprintf (stderr, __VA_ARGS__)
4112#define showlist(...) puts (#__VA_ARGS__)
4113#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4114static void
4115test_varargs_macros (void)
4116{
4117  int x = 1234;
4118  int y = 5678;
4119  debug ("Flag");
4120  debug ("X = %d\n", x);
4121  showlist (The first, second, and third items.);
4122  report (x>y, "x is %d but y is %d", x, y);
4123}
4124
4125// Check long long types.
4126#define BIG64 18446744073709551615ull
4127#define BIG32 4294967295ul
4128#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4129#if !BIG_OK
4130  your preprocessor is broken;
4131#endif
4132#if BIG_OK
4133#else
4134  your preprocessor is broken;
4135#endif
4136static long long int bignum = -9223372036854775807LL;
4137static unsigned long long int ubignum = BIG64;
4138
4139struct incomplete_array
4140{
4141  int datasize;
4142  double data[];
4143};
4144
4145struct named_init {
4146  int number;
4147  const wchar_t *name;
4148  double average;
4149};
4150
4151typedef const char *ccp;
4152
4153static inline int
4154test_restrict (ccp restrict text)
4155{
4156  // See if C++-style comments work.
4157  // Iterate through items via the restricted pointer.
4158  // Also check for declarations in for loops.
4159  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4160    continue;
4161  return 0;
4162}
4163
4164// Check varargs and va_copy.
4165static void
4166test_varargs (const char *format, ...)
4167{
4168  va_list args;
4169  va_start (args, format);
4170  va_list args_copy;
4171  va_copy (args_copy, args);
4172
4173  const char *str;
4174  int number;
4175  float fnumber;
4176
4177  while (*format)
4178    {
4179      switch (*format++)
4180	{
4181	case 's': // string
4182	  str = va_arg (args_copy, const char *);
4183	  break;
4184	case 'd': // int
4185	  number = va_arg (args_copy, int);
4186	  break;
4187	case 'f': // float
4188	  fnumber = va_arg (args_copy, double);
4189	  break;
4190	default:
4191	  break;
4192	}
4193    }
4194  va_end (args_copy);
4195  va_end (args);
4196}
4197
4198int
4199main ()
4200{
4201
4202  // Check bool.
4203  _Bool success = false;
4204
4205  // Check restrict.
4206  if (test_restrict ("String literal") == 0)
4207    success = true;
4208  char *restrict newvar = "Another string";
4209
4210  // Check varargs.
4211  test_varargs ("s, d' f .", "string", 65, 34.234);
4212  test_varargs_macros ();
4213
4214  // Check flexible array members.
4215  struct incomplete_array *ia =
4216    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4217  ia->datasize = 10;
4218  for (int i = 0; i < ia->datasize; ++i)
4219    ia->data[i] = i * 1.234;
4220
4221  // Check named initializers.
4222  struct named_init ni = {
4223    .number = 34,
4224    .name = L"Test wide string",
4225    .average = 543.34343,
4226  };
4227
4228  ni.number = 58;
4229
4230  int dynamic_array[ni.number];
4231  dynamic_array[ni.number - 1] = 543;
4232
4233  // work around unused variable warnings
4234  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4235	  || dynamic_array[ni.number - 1] != 543);
4236
4237  ;
4238  return 0;
4239}
4240_ACEOF
4241for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4242do
4243  CC="$ac_save_CC $ac_arg"
4244  if ac_fn_c_try_compile "$LINENO"; then :
4245  ac_cv_prog_cc_c99=$ac_arg
4246fi
4247rm -f core conftest.err conftest.$ac_objext
4248  test "x$ac_cv_prog_cc_c99" != "xno" && break
4249done
4250rm -f conftest.$ac_ext
4251CC=$ac_save_CC
4252
4253fi
4254# AC_CACHE_VAL
4255case "x$ac_cv_prog_cc_c99" in
4256  x)
4257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258$as_echo "none needed" >&6; } ;;
4259  xno)
4260    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261$as_echo "unsupported" >&6; } ;;
4262  *)
4263    CC="$CC $ac_cv_prog_cc_c99"
4264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4265$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4266esac
4267if test "x$ac_cv_prog_cc_c99" != xno; then :
4268
4269fi
4270
4271
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4279$as_echo_n "checking how to run the C preprocessor... " >&6; }
4280# On Suns, sometimes $CPP names a directory.
4281if test -n "$CPP" && test -d "$CPP"; then
4282  CPP=
4283fi
4284if test -z "$CPP"; then
4285  if ${ac_cv_prog_CPP+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288      # Double quotes because CPP needs to be expanded
4289    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4290    do
4291      ac_preproc_ok=false
4292for ac_c_preproc_warn_flag in '' yes
4293do
4294  # Use a header file that comes with gcc, so configuring glibc
4295  # with a fresh cross-compiler works.
4296  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297  # <limits.h> exists even on freestanding compilers.
4298  # On the NeXT, cc -E runs the code through the compiler's parser,
4299  # not just through cpp. "Syntax error" is here to catch this case.
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302#ifdef __STDC__
4303# include <limits.h>
4304#else
4305# include <assert.h>
4306#endif
4307		     Syntax error
4308_ACEOF
4309if ac_fn_c_try_cpp "$LINENO"; then :
4310
4311else
4312  # Broken: fails on valid input.
4313continue
4314fi
4315rm -f conftest.err conftest.i conftest.$ac_ext
4316
4317  # OK, works on sane cases.  Now check whether nonexistent headers
4318  # can be detected and how.
4319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h.  */
4321#include <ac_nonexistent.h>
4322_ACEOF
4323if ac_fn_c_try_cpp "$LINENO"; then :
4324  # Broken: success on invalid input.
4325continue
4326else
4327  # Passes both tests.
4328ac_preproc_ok=:
4329break
4330fi
4331rm -f conftest.err conftest.i conftest.$ac_ext
4332
4333done
4334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335rm -f conftest.i conftest.err conftest.$ac_ext
4336if $ac_preproc_ok; then :
4337  break
4338fi
4339
4340    done
4341    ac_cv_prog_CPP=$CPP
4342
4343fi
4344  CPP=$ac_cv_prog_CPP
4345else
4346  ac_cv_prog_CPP=$CPP
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4349$as_echo "$CPP" >&6; }
4350ac_preproc_ok=false
4351for ac_c_preproc_warn_flag in '' yes
4352do
4353  # Use a header file that comes with gcc, so configuring glibc
4354  # with a fresh cross-compiler works.
4355  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356  # <limits.h> exists even on freestanding compilers.
4357  # On the NeXT, cc -E runs the code through the compiler's parser,
4358  # not just through cpp. "Syntax error" is here to catch this case.
4359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h.  */
4361#ifdef __STDC__
4362# include <limits.h>
4363#else
4364# include <assert.h>
4365#endif
4366		     Syntax error
4367_ACEOF
4368if ac_fn_c_try_cpp "$LINENO"; then :
4369
4370else
4371  # Broken: fails on valid input.
4372continue
4373fi
4374rm -f conftest.err conftest.i conftest.$ac_ext
4375
4376  # OK, works on sane cases.  Now check whether nonexistent headers
4377  # can be detected and how.
4378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380#include <ac_nonexistent.h>
4381_ACEOF
4382if ac_fn_c_try_cpp "$LINENO"; then :
4383  # Broken: success on invalid input.
4384continue
4385else
4386  # Passes both tests.
4387ac_preproc_ok=:
4388break
4389fi
4390rm -f conftest.err conftest.i conftest.$ac_ext
4391
4392done
4393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394rm -f conftest.i conftest.err conftest.$ac_ext
4395if $ac_preproc_ok; then :
4396
4397else
4398  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4401See \`config.log' for more details" "$LINENO" 5; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4412$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4413if ${ac_cv_path_GREP+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  if test -z "$GREP"; then
4417  ac_path_GREP_found=false
4418  # Loop through the user's path and test for each of PROGNAME-LIST
4419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424    for ac_prog in grep ggrep; do
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4427      as_fn_executable_p "$ac_path_GREP" || continue
4428# Check for GNU ac_path_GREP and select it if it is found.
4429  # Check for GNU $ac_path_GREP
4430case `"$ac_path_GREP" --version 2>&1` in
4431*GNU*)
4432  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433*)
4434  ac_count=0
4435  $as_echo_n 0123456789 >"conftest.in"
4436  while :
4437  do
4438    cat "conftest.in" "conftest.in" >"conftest.tmp"
4439    mv "conftest.tmp" "conftest.in"
4440    cp "conftest.in" "conftest.nl"
4441    $as_echo 'GREP' >> "conftest.nl"
4442    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444    as_fn_arith $ac_count + 1 && ac_count=$as_val
4445    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4446      # Best one so far, save it but keep looking for a better one
4447      ac_cv_path_GREP="$ac_path_GREP"
4448      ac_path_GREP_max=$ac_count
4449    fi
4450    # 10*(2^10) chars as input seems more than enough
4451    test $ac_count -gt 10 && break
4452  done
4453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454esac
4455
4456      $ac_path_GREP_found && break 3
4457    done
4458  done
4459  done
4460IFS=$as_save_IFS
4461  if test -z "$ac_cv_path_GREP"; then
4462    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463  fi
4464else
4465  ac_cv_path_GREP=$GREP
4466fi
4467
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4470$as_echo "$ac_cv_path_GREP" >&6; }
4471 GREP="$ac_cv_path_GREP"
4472
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4475$as_echo_n "checking for egrep... " >&6; }
4476if ${ac_cv_path_EGREP+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4480   then ac_cv_path_EGREP="$GREP -E"
4481   else
4482     if test -z "$EGREP"; then
4483  ac_path_EGREP_found=false
4484  # Loop through the user's path and test for each of PROGNAME-LIST
4485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487do
4488  IFS=$as_save_IFS
4489  test -z "$as_dir" && as_dir=.
4490    for ac_prog in egrep; do
4491    for ac_exec_ext in '' $ac_executable_extensions; do
4492      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4493      as_fn_executable_p "$ac_path_EGREP" || continue
4494# Check for GNU ac_path_EGREP and select it if it is found.
4495  # Check for GNU $ac_path_EGREP
4496case `"$ac_path_EGREP" --version 2>&1` in
4497*GNU*)
4498  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4499*)
4500  ac_count=0
4501  $as_echo_n 0123456789 >"conftest.in"
4502  while :
4503  do
4504    cat "conftest.in" "conftest.in" >"conftest.tmp"
4505    mv "conftest.tmp" "conftest.in"
4506    cp "conftest.in" "conftest.nl"
4507    $as_echo 'EGREP' >> "conftest.nl"
4508    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510    as_fn_arith $ac_count + 1 && ac_count=$as_val
4511    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512      # Best one so far, save it but keep looking for a better one
4513      ac_cv_path_EGREP="$ac_path_EGREP"
4514      ac_path_EGREP_max=$ac_count
4515    fi
4516    # 10*(2^10) chars as input seems more than enough
4517    test $ac_count -gt 10 && break
4518  done
4519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520esac
4521
4522      $ac_path_EGREP_found && break 3
4523    done
4524  done
4525  done
4526IFS=$as_save_IFS
4527  if test -z "$ac_cv_path_EGREP"; then
4528    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529  fi
4530else
4531  ac_cv_path_EGREP=$EGREP
4532fi
4533
4534   fi
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4537$as_echo "$ac_cv_path_EGREP" >&6; }
4538 EGREP="$ac_cv_path_EGREP"
4539
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4542$as_echo_n "checking for ANSI C header files... " >&6; }
4543if ${ac_cv_header_stdc+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h.  */
4548#include <stdlib.h>
4549#include <stdarg.h>
4550#include <string.h>
4551#include <float.h>
4552
4553int
4554main ()
4555{
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562  ac_cv_header_stdc=yes
4563else
4564  ac_cv_header_stdc=no
4565fi
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567
4568if test $ac_cv_header_stdc = yes; then
4569  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572#include <string.h>
4573
4574_ACEOF
4575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576  $EGREP "memchr" >/dev/null 2>&1; then :
4577
4578else
4579  ac_cv_header_stdc=no
4580fi
4581rm -f conftest*
4582
4583fi
4584
4585if test $ac_cv_header_stdc = yes; then
4586  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589#include <stdlib.h>
4590
4591_ACEOF
4592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4593  $EGREP "free" >/dev/null 2>&1; then :
4594
4595else
4596  ac_cv_header_stdc=no
4597fi
4598rm -f conftest*
4599
4600fi
4601
4602if test $ac_cv_header_stdc = yes; then
4603  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4604  if test "$cross_compiling" = yes; then :
4605  :
4606else
4607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h.  */
4609#include <ctype.h>
4610#include <stdlib.h>
4611#if ((' ' & 0x0FF) == 0x020)
4612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4614#else
4615# define ISLOWER(c) \
4616		   (('a' <= (c) && (c) <= 'i') \
4617		     || ('j' <= (c) && (c) <= 'r') \
4618		     || ('s' <= (c) && (c) <= 'z'))
4619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4620#endif
4621
4622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4623int
4624main ()
4625{
4626  int i;
4627  for (i = 0; i < 256; i++)
4628    if (XOR (islower (i), ISLOWER (i))
4629	|| toupper (i) != TOUPPER (i))
4630      return 2;
4631  return 0;
4632}
4633_ACEOF
4634if ac_fn_c_try_run "$LINENO"; then :
4635
4636else
4637  ac_cv_header_stdc=no
4638fi
4639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4640  conftest.$ac_objext conftest.beam conftest.$ac_ext
4641fi
4642
4643fi
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4646$as_echo "$ac_cv_header_stdc" >&6; }
4647if test $ac_cv_header_stdc = yes; then
4648
4649$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4650
4651fi
4652
4653# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4654for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4655		  inttypes.h stdint.h unistd.h
4656do :
4657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4658ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4659"
4660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4661  cat >>confdefs.h <<_ACEOF
4662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663_ACEOF
4664
4665fi
4666
4667done
4668
4669
4670
4671
4672
4673
4674ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4675if test "x$ac_cv_have_decl___clang__" = xyes; then :
4676  CLANGCC="yes"
4677else
4678  CLANGCC="no"
4679fi
4680
4681ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4682if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4683  INTELCC="yes"
4684else
4685  INTELCC="no"
4686fi
4687
4688ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4689if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4690  SUNCC="yes"
4691else
4692  SUNCC="no"
4693fi
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4704	if test -n "$ac_tool_prefix"; then
4705  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_path_PKG_CONFIG+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  case $PKG_CONFIG in
4713  [\\/]* | ?:[\\/]*)
4714  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715  ;;
4716  *)
4717  as_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_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
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
4732  ;;
4733esac
4734fi
4735PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4736if test -n "$PKG_CONFIG"; then
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4738$as_echo "$PKG_CONFIG" >&6; }
4739else
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
4743
4744
4745fi
4746if test -z "$ac_cv_path_PKG_CONFIG"; then
4747  ac_pt_PKG_CONFIG=$PKG_CONFIG
4748  # Extract the first word of "pkg-config", so it can be a program name with args.
4749set dummy pkg-config; ac_word=$2
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  case $ac_pt_PKG_CONFIG in
4756  [\\/]* | ?:[\\/]*)
4757  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4758  ;;
4759  *)
4760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763  IFS=$as_save_IFS
4764  test -z "$as_dir" && as_dir=.
4765    for ac_exec_ext in '' $ac_executable_extensions; do
4766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769    break 2
4770  fi
4771done
4772  done
4773IFS=$as_save_IFS
4774
4775  ;;
4776esac
4777fi
4778ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4779if test -n "$ac_pt_PKG_CONFIG"; then
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4781$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4782else
4783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787  if test "x$ac_pt_PKG_CONFIG" = x; then
4788    PKG_CONFIG=""
4789  else
4790    case $cross_compiling:$ac_tool_warned in
4791yes:)
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794ac_tool_warned=yes ;;
4795esac
4796    PKG_CONFIG=$ac_pt_PKG_CONFIG
4797  fi
4798else
4799  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4800fi
4801
4802fi
4803if test -n "$PKG_CONFIG"; then
4804	_pkg_min_version=0.9.0
4805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4806$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4807	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809$as_echo "yes" >&6; }
4810	else
4811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813		PKG_CONFIG=""
4814	fi
4815fi
4816# Make sure we can run config.sub.
4817$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4818  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4819
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4821$as_echo_n "checking build system type... " >&6; }
4822if ${ac_cv_build+:} false; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  ac_build_alias=$build_alias
4826test "x$ac_build_alias" = x &&
4827  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4828test "x$ac_build_alias" = x &&
4829  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4830ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4831  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4832
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4835$as_echo "$ac_cv_build" >&6; }
4836case $ac_cv_build in
4837*-*-*) ;;
4838*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4839esac
4840build=$ac_cv_build
4841ac_save_IFS=$IFS; IFS='-'
4842set x $ac_cv_build
4843shift
4844build_cpu=$1
4845build_vendor=$2
4846shift; shift
4847# Remember, the first character of IFS is used to create $*,
4848# except with old shells:
4849build_os=$*
4850IFS=$ac_save_IFS
4851case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4852
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4855$as_echo_n "checking host system type... " >&6; }
4856if ${ac_cv_host+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test "x$host_alias" = x; then
4860  ac_cv_host=$ac_cv_build
4861else
4862  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4863    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4868$as_echo "$ac_cv_host" >&6; }
4869case $ac_cv_host in
4870*-*-*) ;;
4871*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4872esac
4873host=$ac_cv_host
4874ac_save_IFS=$IFS; IFS='-'
4875set x $ac_cv_host
4876shift
4877host_cpu=$1
4878host_vendor=$2
4879shift; shift
4880# Remember, the first character of IFS is used to create $*,
4881# except with old shells:
4882host_os=$*
4883IFS=$ac_save_IFS
4884case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4885
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4888$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4889if ${ac_cv_path_SED+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4893     for ac_i in 1 2 3 4 5 6 7; do
4894       ac_script="$ac_script$as_nl$ac_script"
4895     done
4896     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4897     { ac_script=; unset ac_script;}
4898     if test -z "$SED"; then
4899  ac_path_SED_found=false
4900  # Loop through the user's path and test for each of PROGNAME-LIST
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_prog in sed gsed; do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4909      as_fn_executable_p "$ac_path_SED" || continue
4910# Check for GNU ac_path_SED and select it if it is found.
4911  # Check for GNU $ac_path_SED
4912case `"$ac_path_SED" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915*)
4916  ac_count=0
4917  $as_echo_n 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    $as_echo '' >> "conftest.nl"
4924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_SED="$ac_path_SED"
4930      ac_path_SED_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_SED_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_SED"; then
4944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_SED=$SED
4948fi
4949
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952$as_echo "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954  rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961# Check whether --enable-selective-werror was given.
4962if test "${enable_selective_werror+set}" = set; then :
4963  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4964else
4965  SELECTIVE_WERROR=yes
4966fi
4967
4968
4969
4970
4971
4972# -v is too short to test reliably with XORG_TESTSET_CFLAG
4973if test "x$SUNCC" = "xyes"; then
4974    BASE_CFLAGS="-v"
4975else
4976    BASE_CFLAGS=""
4977fi
4978
4979# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993xorg_testset_save_CFLAGS="$CFLAGS"
4994
4995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004int i;
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007  xorg_cv_cc_flag_unknown_warning_option=yes
5008else
5009  xorg_cv_cc_flag_unknown_warning_option=no
5010fi
5011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016	CFLAGS="$xorg_testset_save_CFLAGS"
5017fi
5018
5019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022	fi
5023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h.  */
5031int i;
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  xorg_cv_cc_flag_unused_command_line_argument=yes
5035else
5036  xorg_cv_cc_flag_unused_command_line_argument=no
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5043	CFLAGS="$xorg_testset_save_CFLAGS"
5044fi
5045
5046found="no"
5047
5048	if test $found = "no" ; then
5049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051		fi
5052
5053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5055		fi
5056
5057		CFLAGS="$CFLAGS -Wall"
5058
5059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5060$as_echo_n "checking if $CC supports -Wall... " >&6; }
5061		cacheid=xorg_cv_cc_flag__Wall
5062		if eval \${$cacheid+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int i;
5068int
5069main ()
5070{
5071
5072  ;
5073  return 0;
5074}
5075_ACEOF
5076if ac_fn_c_try_link "$LINENO"; then :
5077  eval $cacheid=yes
5078else
5079  eval $cacheid=no
5080fi
5081rm -f core conftest.err conftest.$ac_objext \
5082    conftest$ac_exeext conftest.$ac_ext
5083fi
5084
5085
5086		CFLAGS="$xorg_testset_save_CFLAGS"
5087
5088		eval supported=\$$cacheid
5089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5090$as_echo "$supported" >&6; }
5091		if test "$supported" = "yes" ; then
5092			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5093			found="yes"
5094		fi
5095	fi
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111xorg_testset_save_CFLAGS="$CFLAGS"
5112
5113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5118  $as_echo_n "(cached) " >&6
5119else
5120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h.  */
5122int i;
5123_ACEOF
5124if ac_fn_c_try_compile "$LINENO"; then :
5125  xorg_cv_cc_flag_unknown_warning_option=yes
5126else
5127  xorg_cv_cc_flag_unknown_warning_option=no
5128fi
5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130fi
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5134	CFLAGS="$xorg_testset_save_CFLAGS"
5135fi
5136
5137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5140	fi
5141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149int i;
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"; then :
5152  xorg_cv_cc_flag_unused_command_line_argument=yes
5153else
5154  xorg_cv_cc_flag_unused_command_line_argument=no
5155fi
5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5161	CFLAGS="$xorg_testset_save_CFLAGS"
5162fi
5163
5164found="no"
5165
5166	if test $found = "no" ; then
5167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169		fi
5170
5171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5173		fi
5174
5175		CFLAGS="$CFLAGS -Wpointer-arith"
5176
5177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5178$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5179		cacheid=xorg_cv_cc_flag__Wpointer_arith
5180		if eval \${$cacheid+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h.  */
5185int i;
5186int
5187main ()
5188{
5189
5190  ;
5191  return 0;
5192}
5193_ACEOF
5194if ac_fn_c_try_link "$LINENO"; then :
5195  eval $cacheid=yes
5196else
5197  eval $cacheid=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext \
5200    conftest$ac_exeext conftest.$ac_ext
5201fi
5202
5203
5204		CFLAGS="$xorg_testset_save_CFLAGS"
5205
5206		eval supported=\$$cacheid
5207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5208$as_echo "$supported" >&6; }
5209		if test "$supported" = "yes" ; then
5210			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5211			found="yes"
5212		fi
5213	fi
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229xorg_testset_save_CFLAGS="$CFLAGS"
5230
5231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240int i;
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"; then :
5243  xorg_cv_cc_flag_unknown_warning_option=yes
5244else
5245  xorg_cv_cc_flag_unknown_warning_option=no
5246fi
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248fi
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5252	CFLAGS="$xorg_testset_save_CFLAGS"
5253fi
5254
5255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5258	fi
5259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5263  $as_echo_n "(cached) " >&6
5264else
5265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267int i;
5268_ACEOF
5269if ac_fn_c_try_compile "$LINENO"; then :
5270  xorg_cv_cc_flag_unused_command_line_argument=yes
5271else
5272  xorg_cv_cc_flag_unused_command_line_argument=no
5273fi
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5279	CFLAGS="$xorg_testset_save_CFLAGS"
5280fi
5281
5282found="no"
5283
5284	if test $found = "no" ; then
5285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5287		fi
5288
5289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291		fi
5292
5293		CFLAGS="$CFLAGS -Wmissing-declarations"
5294
5295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5296$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5297		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5298		if eval \${$cacheid+:} false; then :
5299  $as_echo_n "(cached) " >&6
5300else
5301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303int i;
5304int
5305main ()
5306{
5307
5308  ;
5309  return 0;
5310}
5311_ACEOF
5312if ac_fn_c_try_link "$LINENO"; then :
5313  eval $cacheid=yes
5314else
5315  eval $cacheid=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext \
5318    conftest$ac_exeext conftest.$ac_ext
5319fi
5320
5321
5322		CFLAGS="$xorg_testset_save_CFLAGS"
5323
5324		eval supported=\$$cacheid
5325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5326$as_echo "$supported" >&6; }
5327		if test "$supported" = "yes" ; then
5328			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5329			found="yes"
5330		fi
5331	fi
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347xorg_testset_save_CFLAGS="$CFLAGS"
5348
5349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h.  */
5358int i;
5359_ACEOF
5360if ac_fn_c_try_compile "$LINENO"; then :
5361  xorg_cv_cc_flag_unknown_warning_option=yes
5362else
5363  xorg_cv_cc_flag_unknown_warning_option=no
5364fi
5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5370	CFLAGS="$xorg_testset_save_CFLAGS"
5371fi
5372
5373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376	fi
5377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5381  $as_echo_n "(cached) " >&6
5382else
5383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h.  */
5385int i;
5386_ACEOF
5387if ac_fn_c_try_compile "$LINENO"; then :
5388  xorg_cv_cc_flag_unused_command_line_argument=yes
5389else
5390  xorg_cv_cc_flag_unused_command_line_argument=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5397	CFLAGS="$xorg_testset_save_CFLAGS"
5398fi
5399
5400found="no"
5401
5402	if test $found = "no" ; then
5403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5405		fi
5406
5407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409		fi
5410
5411		CFLAGS="$CFLAGS -Wformat=2"
5412
5413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5414$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5415		cacheid=xorg_cv_cc_flag__Wformat_2
5416		if eval \${$cacheid+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421int i;
5422int
5423main ()
5424{
5425
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430if ac_fn_c_try_link "$LINENO"; then :
5431  eval $cacheid=yes
5432else
5433  eval $cacheid=no
5434fi
5435rm -f core conftest.err conftest.$ac_objext \
5436    conftest$ac_exeext conftest.$ac_ext
5437fi
5438
5439
5440		CFLAGS="$xorg_testset_save_CFLAGS"
5441
5442		eval supported=\$$cacheid
5443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5444$as_echo "$supported" >&6; }
5445		if test "$supported" = "yes" ; then
5446			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5447			found="yes"
5448		fi
5449	fi
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wformat"
5461
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5463$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wformat
5465		if eval \${$cacheid+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471int
5472main ()
5473{
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_link "$LINENO"; then :
5480  eval $cacheid=yes
5481else
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493$as_echo "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  xorg_cv_cc_flag_unknown_warning_option=yes
5531else
5532  xorg_cv_cc_flag_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5539	CFLAGS="$xorg_testset_save_CFLAGS"
5540fi
5541
5542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545	fi
5546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  xorg_cv_cc_flag_unused_command_line_argument=yes
5558else
5559  xorg_cv_cc_flag_unused_command_line_argument=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569found="no"
5570
5571	if test $found = "no" ; then
5572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574		fi
5575
5576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578		fi
5579
5580		CFLAGS="$CFLAGS -Wstrict-prototypes"
5581
5582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5583$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5584		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5585		if eval \${$cacheid+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591int
5592main ()
5593{
5594
5595  ;
5596  return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600  eval $cacheid=yes
5601else
5602  eval $cacheid=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605    conftest$ac_exeext conftest.$ac_ext
5606fi
5607
5608
5609		CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611		eval supported=\$$cacheid
5612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613$as_echo "$supported" >&6; }
5614		if test "$supported" = "yes" ; then
5615			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5616			found="yes"
5617		fi
5618	fi
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634xorg_testset_save_CFLAGS="$CFLAGS"
5635
5636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645int i;
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648  xorg_cv_cc_flag_unknown_warning_option=yes
5649else
5650  xorg_cv_cc_flag_unknown_warning_option=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5657	CFLAGS="$xorg_testset_save_CFLAGS"
5658fi
5659
5660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663	fi
5664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672int i;
5673_ACEOF
5674if ac_fn_c_try_compile "$LINENO"; then :
5675  xorg_cv_cc_flag_unused_command_line_argument=yes
5676else
5677  xorg_cv_cc_flag_unused_command_line_argument=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687found="no"
5688
5689	if test $found = "no" ; then
5690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692		fi
5693
5694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5696		fi
5697
5698		CFLAGS="$CFLAGS -Wmissing-prototypes"
5699
5700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5701$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5702		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5703		if eval \${$cacheid+:} false; then :
5704  $as_echo_n "(cached) " >&6
5705else
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709int
5710main ()
5711{
5712
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_link "$LINENO"; then :
5718  eval $cacheid=yes
5719else
5720  eval $cacheid=no
5721fi
5722rm -f core conftest.err conftest.$ac_objext \
5723    conftest$ac_exeext conftest.$ac_ext
5724fi
5725
5726
5727		CFLAGS="$xorg_testset_save_CFLAGS"
5728
5729		eval supported=\$$cacheid
5730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5731$as_echo "$supported" >&6; }
5732		if test "$supported" = "yes" ; then
5733			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5734			found="yes"
5735		fi
5736	fi
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752xorg_testset_save_CFLAGS="$CFLAGS"
5753
5754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763int i;
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766  xorg_cv_cc_flag_unknown_warning_option=yes
5767else
5768  xorg_cv_cc_flag_unknown_warning_option=no
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775	CFLAGS="$xorg_testset_save_CFLAGS"
5776fi
5777
5778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781	fi
5782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793  xorg_cv_cc_flag_unused_command_line_argument=yes
5794else
5795  xorg_cv_cc_flag_unused_command_line_argument=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805found="no"
5806
5807	if test $found = "no" ; then
5808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810		fi
5811
5812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814		fi
5815
5816		CFLAGS="$CFLAGS -Wnested-externs"
5817
5818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5819$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5820		cacheid=xorg_cv_cc_flag__Wnested_externs
5821		if eval \${$cacheid+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h.  */
5826int i;
5827int
5828main ()
5829{
5830
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_link "$LINENO"; then :
5836  eval $cacheid=yes
5837else
5838  eval $cacheid=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext \
5841    conftest$ac_exeext conftest.$ac_ext
5842fi
5843
5844
5845		CFLAGS="$xorg_testset_save_CFLAGS"
5846
5847		eval supported=\$$cacheid
5848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5849$as_echo "$supported" >&6; }
5850		if test "$supported" = "yes" ; then
5851			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5852			found="yes"
5853		fi
5854	fi
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870xorg_testset_save_CFLAGS="$CFLAGS"
5871
5872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h.  */
5881int i;
5882_ACEOF
5883if ac_fn_c_try_compile "$LINENO"; then :
5884  xorg_cv_cc_flag_unknown_warning_option=yes
5885else
5886  xorg_cv_cc_flag_unknown_warning_option=no
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5892	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5893	CFLAGS="$xorg_testset_save_CFLAGS"
5894fi
5895
5896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5897	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899	fi
5900	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908int i;
5909_ACEOF
5910if ac_fn_c_try_compile "$LINENO"; then :
5911  xorg_cv_cc_flag_unused_command_line_argument=yes
5912else
5913  xorg_cv_cc_flag_unused_command_line_argument=no
5914fi
5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916fi
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5920	CFLAGS="$xorg_testset_save_CFLAGS"
5921fi
5922
5923found="no"
5924
5925	if test $found = "no" ; then
5926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928		fi
5929
5930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5932		fi
5933
5934		CFLAGS="$CFLAGS -Wbad-function-cast"
5935
5936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5937$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5938		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5939		if eval \${$cacheid+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944int i;
5945int
5946main ()
5947{
5948
5949  ;
5950  return 0;
5951}
5952_ACEOF
5953if ac_fn_c_try_link "$LINENO"; then :
5954  eval $cacheid=yes
5955else
5956  eval $cacheid=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext \
5959    conftest$ac_exeext conftest.$ac_ext
5960fi
5961
5962
5963		CFLAGS="$xorg_testset_save_CFLAGS"
5964
5965		eval supported=\$$cacheid
5966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5967$as_echo "$supported" >&6; }
5968		if test "$supported" = "yes" ; then
5969			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5970			found="yes"
5971		fi
5972	fi
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988xorg_testset_save_CFLAGS="$CFLAGS"
5989
5990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999int i;
6000_ACEOF
6001if ac_fn_c_try_compile "$LINENO"; then :
6002  xorg_cv_cc_flag_unknown_warning_option=yes
6003else
6004  xorg_cv_cc_flag_unknown_warning_option=no
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6011	CFLAGS="$xorg_testset_save_CFLAGS"
6012fi
6013
6014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017	fi
6018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6022  $as_echo_n "(cached) " >&6
6023else
6024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026int i;
6027_ACEOF
6028if ac_fn_c_try_compile "$LINENO"; then :
6029  xorg_cv_cc_flag_unused_command_line_argument=yes
6030else
6031  xorg_cv_cc_flag_unused_command_line_argument=no
6032fi
6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034fi
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6038	CFLAGS="$xorg_testset_save_CFLAGS"
6039fi
6040
6041found="no"
6042
6043	if test $found = "no" ; then
6044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6046		fi
6047
6048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6050		fi
6051
6052		CFLAGS="$CFLAGS -Wold-style-definition"
6053
6054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6055$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6056		cacheid=xorg_cv_cc_flag__Wold_style_definition
6057		if eval \${$cacheid+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062int i;
6063int
6064main ()
6065{
6066
6067  ;
6068  return 0;
6069}
6070_ACEOF
6071if ac_fn_c_try_link "$LINENO"; then :
6072  eval $cacheid=yes
6073else
6074  eval $cacheid=no
6075fi
6076rm -f core conftest.err conftest.$ac_objext \
6077    conftest$ac_exeext conftest.$ac_ext
6078fi
6079
6080
6081		CFLAGS="$xorg_testset_save_CFLAGS"
6082
6083		eval supported=\$$cacheid
6084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6085$as_echo "$supported" >&6; }
6086		if test "$supported" = "yes" ; then
6087			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6088			found="yes"
6089		fi
6090	fi
6091
6092	if test $found = "no" ; then
6093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095		fi
6096
6097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099		fi
6100
6101		CFLAGS="$CFLAGS -fd"
6102
6103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6104$as_echo_n "checking if $CC supports -fd... " >&6; }
6105		cacheid=xorg_cv_cc_flag__fd
6106		if eval \${$cacheid+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h.  */
6111int i;
6112int
6113main ()
6114{
6115
6116  ;
6117  return 0;
6118}
6119_ACEOF
6120if ac_fn_c_try_link "$LINENO"; then :
6121  eval $cacheid=yes
6122else
6123  eval $cacheid=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext \
6126    conftest$ac_exeext conftest.$ac_ext
6127fi
6128
6129
6130		CFLAGS="$xorg_testset_save_CFLAGS"
6131
6132		eval supported=\$$cacheid
6133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6134$as_echo "$supported" >&6; }
6135		if test "$supported" = "yes" ; then
6136			BASE_CFLAGS="$BASE_CFLAGS -fd"
6137			found="yes"
6138		fi
6139	fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155xorg_testset_save_CFLAGS="$CFLAGS"
6156
6157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h.  */
6166int i;
6167_ACEOF
6168if ac_fn_c_try_compile "$LINENO"; then :
6169  xorg_cv_cc_flag_unknown_warning_option=yes
6170else
6171  xorg_cv_cc_flag_unknown_warning_option=no
6172fi
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174fi
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6178	CFLAGS="$xorg_testset_save_CFLAGS"
6179fi
6180
6181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184	fi
6185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193int i;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196  xorg_cv_cc_flag_unused_command_line_argument=yes
6197else
6198  xorg_cv_cc_flag_unused_command_line_argument=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6205	CFLAGS="$xorg_testset_save_CFLAGS"
6206fi
6207
6208found="no"
6209
6210	if test $found = "no" ; then
6211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6213		fi
6214
6215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217		fi
6218
6219		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6220
6221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6222$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6223		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6224		if eval \${$cacheid+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229int i;
6230int
6231main ()
6232{
6233
6234  ;
6235  return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_link "$LINENO"; then :
6239  eval $cacheid=yes
6240else
6241  eval $cacheid=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext \
6244    conftest$ac_exeext conftest.$ac_ext
6245fi
6246
6247
6248		CFLAGS="$xorg_testset_save_CFLAGS"
6249
6250		eval supported=\$$cacheid
6251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6252$as_echo "$supported" >&6; }
6253		if test "$supported" = "yes" ; then
6254			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6255			found="yes"
6256		fi
6257	fi
6258
6259
6260
6261
6262
6263# This chunk adds additional warnings that could catch undesired effects.
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277xorg_testset_save_CFLAGS="$CFLAGS"
6278
6279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h.  */
6288int i;
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291  xorg_cv_cc_flag_unknown_warning_option=yes
6292else
6293  xorg_cv_cc_flag_unknown_warning_option=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6300	CFLAGS="$xorg_testset_save_CFLAGS"
6301fi
6302
6303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6306	fi
6307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315int i;
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  xorg_cv_cc_flag_unused_command_line_argument=yes
6319else
6320  xorg_cv_cc_flag_unused_command_line_argument=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6327	CFLAGS="$xorg_testset_save_CFLAGS"
6328fi
6329
6330found="no"
6331
6332	if test $found = "no" ; then
6333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335		fi
6336
6337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339		fi
6340
6341		CFLAGS="$CFLAGS -Wunused"
6342
6343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6344$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6345		cacheid=xorg_cv_cc_flag__Wunused
6346		if eval \${$cacheid+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352int
6353main ()
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_link "$LINENO"; then :
6361  eval $cacheid=yes
6362else
6363  eval $cacheid=no
6364fi
6365rm -f core conftest.err conftest.$ac_objext \
6366    conftest$ac_exeext conftest.$ac_ext
6367fi
6368
6369
6370		CFLAGS="$xorg_testset_save_CFLAGS"
6371
6372		eval supported=\$$cacheid
6373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6374$as_echo "$supported" >&6; }
6375		if test "$supported" = "yes" ; then
6376			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6377			found="yes"
6378		fi
6379	fi
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395xorg_testset_save_CFLAGS="$CFLAGS"
6396
6397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h.  */
6406int i;
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"; then :
6409  xorg_cv_cc_flag_unknown_warning_option=yes
6410else
6411  xorg_cv_cc_flag_unknown_warning_option=no
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6418	CFLAGS="$xorg_testset_save_CFLAGS"
6419fi
6420
6421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424	fi
6425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433int i;
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"; then :
6436  xorg_cv_cc_flag_unused_command_line_argument=yes
6437else
6438  xorg_cv_cc_flag_unused_command_line_argument=no
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6445	CFLAGS="$xorg_testset_save_CFLAGS"
6446fi
6447
6448found="no"
6449
6450	if test $found = "no" ; then
6451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453		fi
6454
6455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6457		fi
6458
6459		CFLAGS="$CFLAGS -Wuninitialized"
6460
6461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6462$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6463		cacheid=xorg_cv_cc_flag__Wuninitialized
6464		if eval \${$cacheid+:} false; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469int i;
6470int
6471main ()
6472{
6473
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478if ac_fn_c_try_link "$LINENO"; then :
6479  eval $cacheid=yes
6480else
6481  eval $cacheid=no
6482fi
6483rm -f core conftest.err conftest.$ac_objext \
6484    conftest$ac_exeext conftest.$ac_ext
6485fi
6486
6487
6488		CFLAGS="$xorg_testset_save_CFLAGS"
6489
6490		eval supported=\$$cacheid
6491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6492$as_echo "$supported" >&6; }
6493		if test "$supported" = "yes" ; then
6494			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6495			found="yes"
6496		fi
6497	fi
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513xorg_testset_save_CFLAGS="$CFLAGS"
6514
6515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h.  */
6524int i;
6525_ACEOF
6526if ac_fn_c_try_compile "$LINENO"; then :
6527  xorg_cv_cc_flag_unknown_warning_option=yes
6528else
6529  xorg_cv_cc_flag_unknown_warning_option=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6536	CFLAGS="$xorg_testset_save_CFLAGS"
6537fi
6538
6539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542	fi
6543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h.  */
6551int i;
6552_ACEOF
6553if ac_fn_c_try_compile "$LINENO"; then :
6554  xorg_cv_cc_flag_unused_command_line_argument=yes
6555else
6556  xorg_cv_cc_flag_unused_command_line_argument=no
6557fi
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559fi
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6563	CFLAGS="$xorg_testset_save_CFLAGS"
6564fi
6565
6566found="no"
6567
6568	if test $found = "no" ; then
6569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571		fi
6572
6573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6575		fi
6576
6577		CFLAGS="$CFLAGS -Wshadow"
6578
6579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6580$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6581		cacheid=xorg_cv_cc_flag__Wshadow
6582		if eval \${$cacheid+:} false; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587int i;
6588int
6589main ()
6590{
6591
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_link "$LINENO"; then :
6597  eval $cacheid=yes
6598else
6599  eval $cacheid=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602    conftest$ac_exeext conftest.$ac_ext
6603fi
6604
6605
6606		CFLAGS="$xorg_testset_save_CFLAGS"
6607
6608		eval supported=\$$cacheid
6609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6610$as_echo "$supported" >&6; }
6611		if test "$supported" = "yes" ; then
6612			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6613			found="yes"
6614		fi
6615	fi
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631xorg_testset_save_CFLAGS="$CFLAGS"
6632
6633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642int i;
6643_ACEOF
6644if ac_fn_c_try_compile "$LINENO"; then :
6645  xorg_cv_cc_flag_unknown_warning_option=yes
6646else
6647  xorg_cv_cc_flag_unknown_warning_option=no
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650fi
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6654	CFLAGS="$xorg_testset_save_CFLAGS"
6655fi
6656
6657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6660	fi
6661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670_ACEOF
6671if ac_fn_c_try_compile "$LINENO"; then :
6672  xorg_cv_cc_flag_unused_command_line_argument=yes
6673else
6674  xorg_cv_cc_flag_unused_command_line_argument=no
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677fi
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6681	CFLAGS="$xorg_testset_save_CFLAGS"
6682fi
6683
6684found="no"
6685
6686	if test $found = "no" ; then
6687		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689		fi
6690
6691		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6693		fi
6694
6695		CFLAGS="$CFLAGS -Wmissing-noreturn"
6696
6697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6698$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6699		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6700		if eval \${$cacheid+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h.  */
6705int i;
6706int
6707main ()
6708{
6709
6710  ;
6711  return 0;
6712}
6713_ACEOF
6714if ac_fn_c_try_link "$LINENO"; then :
6715  eval $cacheid=yes
6716else
6717  eval $cacheid=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext \
6720    conftest$ac_exeext conftest.$ac_ext
6721fi
6722
6723
6724		CFLAGS="$xorg_testset_save_CFLAGS"
6725
6726		eval supported=\$$cacheid
6727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728$as_echo "$supported" >&6; }
6729		if test "$supported" = "yes" ; then
6730			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6731			found="yes"
6732		fi
6733	fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749xorg_testset_save_CFLAGS="$CFLAGS"
6750
6751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6756  $as_echo_n "(cached) " >&6
6757else
6758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760int i;
6761_ACEOF
6762if ac_fn_c_try_compile "$LINENO"; then :
6763  xorg_cv_cc_flag_unknown_warning_option=yes
6764else
6765  xorg_cv_cc_flag_unknown_warning_option=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768fi
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772	CFLAGS="$xorg_testset_save_CFLAGS"
6773fi
6774
6775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778	fi
6779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788_ACEOF
6789if ac_fn_c_try_compile "$LINENO"; then :
6790  xorg_cv_cc_flag_unused_command_line_argument=yes
6791else
6792  xorg_cv_cc_flag_unused_command_line_argument=no
6793fi
6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6799	CFLAGS="$xorg_testset_save_CFLAGS"
6800fi
6801
6802found="no"
6803
6804	if test $found = "no" ; then
6805		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807		fi
6808
6809		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6811		fi
6812
6813		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6814
6815		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6816$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6817		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6818		if eval \${$cacheid+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823int i;
6824int
6825main ()
6826{
6827
6828  ;
6829  return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_link "$LINENO"; then :
6833  eval $cacheid=yes
6834else
6835  eval $cacheid=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext \
6838    conftest$ac_exeext conftest.$ac_ext
6839fi
6840
6841
6842		CFLAGS="$xorg_testset_save_CFLAGS"
6843
6844		eval supported=\$$cacheid
6845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6846$as_echo "$supported" >&6; }
6847		if test "$supported" = "yes" ; then
6848			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6849			found="yes"
6850		fi
6851	fi
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867xorg_testset_save_CFLAGS="$CFLAGS"
6868
6869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h.  */
6878int i;
6879_ACEOF
6880if ac_fn_c_try_compile "$LINENO"; then :
6881  xorg_cv_cc_flag_unknown_warning_option=yes
6882else
6883  xorg_cv_cc_flag_unknown_warning_option=no
6884fi
6885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886fi
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6889	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6890	CFLAGS="$xorg_testset_save_CFLAGS"
6891fi
6892
6893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6894	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896	fi
6897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905int i;
6906_ACEOF
6907if ac_fn_c_try_compile "$LINENO"; then :
6908  xorg_cv_cc_flag_unused_command_line_argument=yes
6909else
6910  xorg_cv_cc_flag_unused_command_line_argument=no
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913fi
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6917	CFLAGS="$xorg_testset_save_CFLAGS"
6918fi
6919
6920found="no"
6921
6922	if test $found = "no" ; then
6923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925		fi
6926
6927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6929		fi
6930
6931		CFLAGS="$CFLAGS -Wredundant-decls"
6932
6933		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6934$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6935		cacheid=xorg_cv_cc_flag__Wredundant_decls
6936		if eval \${$cacheid+:} false; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h.  */
6941int i;
6942int
6943main ()
6944{
6945
6946  ;
6947  return 0;
6948}
6949_ACEOF
6950if ac_fn_c_try_link "$LINENO"; then :
6951  eval $cacheid=yes
6952else
6953  eval $cacheid=no
6954fi
6955rm -f core conftest.err conftest.$ac_objext \
6956    conftest$ac_exeext conftest.$ac_ext
6957fi
6958
6959
6960		CFLAGS="$xorg_testset_save_CFLAGS"
6961
6962		eval supported=\$$cacheid
6963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6964$as_echo "$supported" >&6; }
6965		if test "$supported" = "yes" ; then
6966			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6967			found="yes"
6968		fi
6969	fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996int i;
6997_ACEOF
6998if ac_fn_c_try_compile "$LINENO"; then :
6999  xorg_cv_cc_flag_unknown_warning_option=yes
7000else
7001  xorg_cv_cc_flag_unknown_warning_option=no
7002fi
7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7008	CFLAGS="$xorg_testset_save_CFLAGS"
7009fi
7010
7011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014	fi
7015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023int i;
7024_ACEOF
7025if ac_fn_c_try_compile "$LINENO"; then :
7026  xorg_cv_cc_flag_unused_command_line_argument=yes
7027else
7028  xorg_cv_cc_flag_unused_command_line_argument=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031fi
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7035	CFLAGS="$xorg_testset_save_CFLAGS"
7036fi
7037
7038found="no"
7039
7040	if test $found = "no" ; then
7041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043		fi
7044
7045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047		fi
7048
7049		CFLAGS="$CFLAGS -Wlogical-op"
7050
7051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7052$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7053		cacheid=xorg_cv_cc_flag__Wlogical_op
7054		if eval \${$cacheid+:} false; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059int i;
7060int
7061main ()
7062{
7063
7064  ;
7065  return 0;
7066}
7067_ACEOF
7068if ac_fn_c_try_link "$LINENO"; then :
7069  eval $cacheid=yes
7070else
7071  eval $cacheid=no
7072fi
7073rm -f core conftest.err conftest.$ac_objext \
7074    conftest$ac_exeext conftest.$ac_ext
7075fi
7076
7077
7078		CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080		eval supported=\$$cacheid
7081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082$as_echo "$supported" >&6; }
7083		if test "$supported" = "yes" ; then
7084			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7085			found="yes"
7086		fi
7087	fi
7088
7089
7090
7091# These are currently disabled because they are noisy.  They will be enabled
7092# in the future once the codebase is sufficiently modernized to silence
7093# them.  For now, I don't want them to drown out the other warnings.
7094# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7095# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7096# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7097
7098# Turn some warnings into errors, so we don't accidently get successful builds
7099# when there are problems that should be fixed.
7100
7101if test "x$SELECTIVE_WERROR" = "xyes" ; then
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115xorg_testset_save_CFLAGS="$CFLAGS"
7116
7117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126int i;
7127_ACEOF
7128if ac_fn_c_try_compile "$LINENO"; then :
7129  xorg_cv_cc_flag_unknown_warning_option=yes
7130else
7131  xorg_cv_cc_flag_unknown_warning_option=no
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7138	CFLAGS="$xorg_testset_save_CFLAGS"
7139fi
7140
7141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144	fi
7145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153int i;
7154_ACEOF
7155if ac_fn_c_try_compile "$LINENO"; then :
7156  xorg_cv_cc_flag_unused_command_line_argument=yes
7157else
7158  xorg_cv_cc_flag_unused_command_line_argument=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7165	CFLAGS="$xorg_testset_save_CFLAGS"
7166fi
7167
7168found="no"
7169
7170	if test $found = "no" ; then
7171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173		fi
7174
7175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7177		fi
7178
7179		CFLAGS="$CFLAGS -Werror=implicit"
7180
7181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7182$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7183		cacheid=xorg_cv_cc_flag__Werror_implicit
7184		if eval \${$cacheid+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190int
7191main ()
7192{
7193
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198if ac_fn_c_try_link "$LINENO"; then :
7199  eval $cacheid=yes
7200else
7201  eval $cacheid=no
7202fi
7203rm -f core conftest.err conftest.$ac_objext \
7204    conftest$ac_exeext conftest.$ac_ext
7205fi
7206
7207
7208		CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210		eval supported=\$$cacheid
7211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212$as_echo "$supported" >&6; }
7213		if test "$supported" = "yes" ; then
7214			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7215			found="yes"
7216		fi
7217	fi
7218
7219	if test $found = "no" ; then
7220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222		fi
7223
7224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226		fi
7227
7228		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7229
7230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7231$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7232		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7233		if eval \${$cacheid+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238int i;
7239int
7240main ()
7241{
7242
7243  ;
7244  return 0;
7245}
7246_ACEOF
7247if ac_fn_c_try_link "$LINENO"; then :
7248  eval $cacheid=yes
7249else
7250  eval $cacheid=no
7251fi
7252rm -f core conftest.err conftest.$ac_objext \
7253    conftest$ac_exeext conftest.$ac_ext
7254fi
7255
7256
7257		CFLAGS="$xorg_testset_save_CFLAGS"
7258
7259		eval supported=\$$cacheid
7260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7261$as_echo "$supported" >&6; }
7262		if test "$supported" = "yes" ; then
7263			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7264			found="yes"
7265		fi
7266	fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282xorg_testset_save_CFLAGS="$CFLAGS"
7283
7284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293int i;
7294_ACEOF
7295if ac_fn_c_try_compile "$LINENO"; then :
7296  xorg_cv_cc_flag_unknown_warning_option=yes
7297else
7298  xorg_cv_cc_flag_unknown_warning_option=no
7299fi
7300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7305	CFLAGS="$xorg_testset_save_CFLAGS"
7306fi
7307
7308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311	fi
7312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"; then :
7323  xorg_cv_cc_flag_unused_command_line_argument=yes
7324else
7325  xorg_cv_cc_flag_unused_command_line_argument=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7332	CFLAGS="$xorg_testset_save_CFLAGS"
7333fi
7334
7335found="no"
7336
7337	if test $found = "no" ; then
7338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340		fi
7341
7342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344		fi
7345
7346		CFLAGS="$CFLAGS -Werror=nonnull"
7347
7348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7349$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7350		cacheid=xorg_cv_cc_flag__Werror_nonnull
7351		if eval \${$cacheid+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356int i;
7357int
7358main ()
7359{
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365if ac_fn_c_try_link "$LINENO"; then :
7366  eval $cacheid=yes
7367else
7368  eval $cacheid=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext \
7371    conftest$ac_exeext conftest.$ac_ext
7372fi
7373
7374
7375		CFLAGS="$xorg_testset_save_CFLAGS"
7376
7377		eval supported=\$$cacheid
7378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7379$as_echo "$supported" >&6; }
7380		if test "$supported" = "yes" ; then
7381			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7382			found="yes"
7383		fi
7384	fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400xorg_testset_save_CFLAGS="$CFLAGS"
7401
7402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411int i;
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414  xorg_cv_cc_flag_unknown_warning_option=yes
7415else
7416  xorg_cv_cc_flag_unknown_warning_option=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423	CFLAGS="$xorg_testset_save_CFLAGS"
7424fi
7425
7426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429	fi
7430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"; then :
7441  xorg_cv_cc_flag_unused_command_line_argument=yes
7442else
7443  xorg_cv_cc_flag_unused_command_line_argument=no
7444fi
7445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7450	CFLAGS="$xorg_testset_save_CFLAGS"
7451fi
7452
7453found="no"
7454
7455	if test $found = "no" ; then
7456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458		fi
7459
7460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462		fi
7463
7464		CFLAGS="$CFLAGS -Werror=init-self"
7465
7466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7467$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7468		cacheid=xorg_cv_cc_flag__Werror_init_self
7469		if eval \${$cacheid+:} false; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h.  */
7474int i;
7475int
7476main ()
7477{
7478
7479  ;
7480  return 0;
7481}
7482_ACEOF
7483if ac_fn_c_try_link "$LINENO"; then :
7484  eval $cacheid=yes
7485else
7486  eval $cacheid=no
7487fi
7488rm -f core conftest.err conftest.$ac_objext \
7489    conftest$ac_exeext conftest.$ac_ext
7490fi
7491
7492
7493		CFLAGS="$xorg_testset_save_CFLAGS"
7494
7495		eval supported=\$$cacheid
7496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7497$as_echo "$supported" >&6; }
7498		if test "$supported" = "yes" ; then
7499			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7500			found="yes"
7501		fi
7502	fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518xorg_testset_save_CFLAGS="$CFLAGS"
7519
7520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529int i;
7530_ACEOF
7531if ac_fn_c_try_compile "$LINENO"; then :
7532  xorg_cv_cc_flag_unknown_warning_option=yes
7533else
7534  xorg_cv_cc_flag_unknown_warning_option=no
7535fi
7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537fi
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7541	CFLAGS="$xorg_testset_save_CFLAGS"
7542fi
7543
7544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547	fi
7548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h.  */
7556int i;
7557_ACEOF
7558if ac_fn_c_try_compile "$LINENO"; then :
7559  xorg_cv_cc_flag_unused_command_line_argument=yes
7560else
7561  xorg_cv_cc_flag_unused_command_line_argument=no
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564fi
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7568	CFLAGS="$xorg_testset_save_CFLAGS"
7569fi
7570
7571found="no"
7572
7573	if test $found = "no" ; then
7574		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576		fi
7577
7578		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580		fi
7581
7582		CFLAGS="$CFLAGS -Werror=main"
7583
7584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7585$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7586		cacheid=xorg_cv_cc_flag__Werror_main
7587		if eval \${$cacheid+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593int
7594main ()
7595{
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601if ac_fn_c_try_link "$LINENO"; then :
7602  eval $cacheid=yes
7603else
7604  eval $cacheid=no
7605fi
7606rm -f core conftest.err conftest.$ac_objext \
7607    conftest$ac_exeext conftest.$ac_ext
7608fi
7609
7610
7611		CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613		eval supported=\$$cacheid
7614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615$as_echo "$supported" >&6; }
7616		if test "$supported" = "yes" ; then
7617			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7618			found="yes"
7619		fi
7620	fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7643  $as_echo_n "(cached) " >&6
7644else
7645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647int i;
7648_ACEOF
7649if ac_fn_c_try_compile "$LINENO"; then :
7650  xorg_cv_cc_flag_unknown_warning_option=yes
7651else
7652  xorg_cv_cc_flag_unknown_warning_option=no
7653fi
7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7659	CFLAGS="$xorg_testset_save_CFLAGS"
7660fi
7661
7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665	fi
7666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  xorg_cv_cc_flag_unused_command_line_argument=yes
7678else
7679  xorg_cv_cc_flag_unused_command_line_argument=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686	CFLAGS="$xorg_testset_save_CFLAGS"
7687fi
7688
7689found="no"
7690
7691	if test $found = "no" ; then
7692		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7693			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694		fi
7695
7696		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7697			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7698		fi
7699
7700		CFLAGS="$CFLAGS -Werror=missing-braces"
7701
7702		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7703$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7704		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7705		if eval \${$cacheid+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710int i;
7711int
7712main ()
7713{
7714
7715  ;
7716  return 0;
7717}
7718_ACEOF
7719if ac_fn_c_try_link "$LINENO"; then :
7720  eval $cacheid=yes
7721else
7722  eval $cacheid=no
7723fi
7724rm -f core conftest.err conftest.$ac_objext \
7725    conftest$ac_exeext conftest.$ac_ext
7726fi
7727
7728
7729		CFLAGS="$xorg_testset_save_CFLAGS"
7730
7731		eval supported=\$$cacheid
7732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733$as_echo "$supported" >&6; }
7734		if test "$supported" = "yes" ; then
7735			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7736			found="yes"
7737		fi
7738	fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754xorg_testset_save_CFLAGS="$CFLAGS"
7755
7756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7761  $as_echo_n "(cached) " >&6
7762else
7763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765int i;
7766_ACEOF
7767if ac_fn_c_try_compile "$LINENO"; then :
7768  xorg_cv_cc_flag_unknown_warning_option=yes
7769else
7770  xorg_cv_cc_flag_unknown_warning_option=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773fi
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7777	CFLAGS="$xorg_testset_save_CFLAGS"
7778fi
7779
7780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7783	fi
7784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792int i;
7793_ACEOF
7794if ac_fn_c_try_compile "$LINENO"; then :
7795  xorg_cv_cc_flag_unused_command_line_argument=yes
7796else
7797  xorg_cv_cc_flag_unused_command_line_argument=no
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7804	CFLAGS="$xorg_testset_save_CFLAGS"
7805fi
7806
7807found="no"
7808
7809	if test $found = "no" ; then
7810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812		fi
7813
7814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7816		fi
7817
7818		CFLAGS="$CFLAGS -Werror=sequence-point"
7819
7820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7821$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7822		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7823		if eval \${$cacheid+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829int
7830main ()
7831{
7832
7833  ;
7834  return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"; then :
7838  eval $cacheid=yes
7839else
7840  eval $cacheid=no
7841fi
7842rm -f core conftest.err conftest.$ac_objext \
7843    conftest$ac_exeext conftest.$ac_ext
7844fi
7845
7846
7847		CFLAGS="$xorg_testset_save_CFLAGS"
7848
7849		eval supported=\$$cacheid
7850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851$as_echo "$supported" >&6; }
7852		if test "$supported" = "yes" ; then
7853			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7854			found="yes"
7855		fi
7856	fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872xorg_testset_save_CFLAGS="$CFLAGS"
7873
7874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883int i;
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886  xorg_cv_cc_flag_unknown_warning_option=yes
7887else
7888  xorg_cv_cc_flag_unknown_warning_option=no
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7895	CFLAGS="$xorg_testset_save_CFLAGS"
7896fi
7897
7898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7901	fi
7902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913  xorg_cv_cc_flag_unused_command_line_argument=yes
7914else
7915  xorg_cv_cc_flag_unused_command_line_argument=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7922	CFLAGS="$xorg_testset_save_CFLAGS"
7923fi
7924
7925found="no"
7926
7927	if test $found = "no" ; then
7928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930		fi
7931
7932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934		fi
7935
7936		CFLAGS="$CFLAGS -Werror=return-type"
7937
7938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7939$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7940		cacheid=xorg_cv_cc_flag__Werror_return_type
7941		if eval \${$cacheid+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946int i;
7947int
7948main ()
7949{
7950
7951  ;
7952  return 0;
7953}
7954_ACEOF
7955if ac_fn_c_try_link "$LINENO"; then :
7956  eval $cacheid=yes
7957else
7958  eval $cacheid=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext \
7961    conftest$ac_exeext conftest.$ac_ext
7962fi
7963
7964
7965		CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967		eval supported=\$$cacheid
7968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969$as_echo "$supported" >&6; }
7970		if test "$supported" = "yes" ; then
7971			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7972			found="yes"
7973		fi
7974	fi
7975
7976	if test $found = "no" ; then
7977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979		fi
7980
7981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983		fi
7984
7985		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7986
7987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7988$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7989		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7990		if eval \${$cacheid+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994/* end confdefs.h.  */
7995int i;
7996int
7997main ()
7998{
7999
8000  ;
8001  return 0;
8002}
8003_ACEOF
8004if ac_fn_c_try_link "$LINENO"; then :
8005  eval $cacheid=yes
8006else
8007  eval $cacheid=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext \
8010    conftest$ac_exeext conftest.$ac_ext
8011fi
8012
8013
8014		CFLAGS="$xorg_testset_save_CFLAGS"
8015
8016		eval supported=\$$cacheid
8017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8018$as_echo "$supported" >&6; }
8019		if test "$supported" = "yes" ; then
8020			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8021			found="yes"
8022		fi
8023	fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039xorg_testset_save_CFLAGS="$CFLAGS"
8040
8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051_ACEOF
8052if ac_fn_c_try_compile "$LINENO"; then :
8053  xorg_cv_cc_flag_unknown_warning_option=yes
8054else
8055  xorg_cv_cc_flag_unknown_warning_option=no
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8062	CFLAGS="$xorg_testset_save_CFLAGS"
8063fi
8064
8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068	fi
8069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h.  */
8077int i;
8078_ACEOF
8079if ac_fn_c_try_compile "$LINENO"; then :
8080  xorg_cv_cc_flag_unused_command_line_argument=yes
8081else
8082  xorg_cv_cc_flag_unused_command_line_argument=no
8083fi
8084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8089	CFLAGS="$xorg_testset_save_CFLAGS"
8090fi
8091
8092found="no"
8093
8094	if test $found = "no" ; then
8095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097		fi
8098
8099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101		fi
8102
8103		CFLAGS="$CFLAGS -Werror=trigraphs"
8104
8105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8106$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8107		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8108		if eval \${$cacheid+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113int i;
8114int
8115main ()
8116{
8117
8118  ;
8119  return 0;
8120}
8121_ACEOF
8122if ac_fn_c_try_link "$LINENO"; then :
8123  eval $cacheid=yes
8124else
8125  eval $cacheid=no
8126fi
8127rm -f core conftest.err conftest.$ac_objext \
8128    conftest$ac_exeext conftest.$ac_ext
8129fi
8130
8131
8132		CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134		eval supported=\$$cacheid
8135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136$as_echo "$supported" >&6; }
8137		if test "$supported" = "yes" ; then
8138			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8139			found="yes"
8140		fi
8141	fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157xorg_testset_save_CFLAGS="$CFLAGS"
8158
8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8164  $as_echo_n "(cached) " >&6
8165else
8166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h.  */
8168int i;
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"; then :
8171  xorg_cv_cc_flag_unknown_warning_option=yes
8172else
8173  xorg_cv_cc_flag_unknown_warning_option=no
8174fi
8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8180	CFLAGS="$xorg_testset_save_CFLAGS"
8181fi
8182
8183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186	fi
8187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h.  */
8195int i;
8196_ACEOF
8197if ac_fn_c_try_compile "$LINENO"; then :
8198  xorg_cv_cc_flag_unused_command_line_argument=yes
8199else
8200  xorg_cv_cc_flag_unused_command_line_argument=no
8201fi
8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203fi
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8207	CFLAGS="$xorg_testset_save_CFLAGS"
8208fi
8209
8210found="no"
8211
8212	if test $found = "no" ; then
8213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215		fi
8216
8217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8219		fi
8220
8221		CFLAGS="$CFLAGS -Werror=array-bounds"
8222
8223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8224$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8225		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8226		if eval \${$cacheid+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231int i;
8232int
8233main ()
8234{
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_link "$LINENO"; then :
8241  eval $cacheid=yes
8242else
8243  eval $cacheid=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext \
8246    conftest$ac_exeext conftest.$ac_ext
8247fi
8248
8249
8250		CFLAGS="$xorg_testset_save_CFLAGS"
8251
8252		eval supported=\$$cacheid
8253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8254$as_echo "$supported" >&6; }
8255		if test "$supported" = "yes" ; then
8256			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8257			found="yes"
8258		fi
8259	fi
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275xorg_testset_save_CFLAGS="$CFLAGS"
8276
8277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286int i;
8287_ACEOF
8288if ac_fn_c_try_compile "$LINENO"; then :
8289  xorg_cv_cc_flag_unknown_warning_option=yes
8290else
8291  xorg_cv_cc_flag_unknown_warning_option=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304	fi
8305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313int i;
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316  xorg_cv_cc_flag_unused_command_line_argument=yes
8317else
8318  xorg_cv_cc_flag_unused_command_line_argument=no
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8325	CFLAGS="$xorg_testset_save_CFLAGS"
8326fi
8327
8328found="no"
8329
8330	if test $found = "no" ; then
8331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333		fi
8334
8335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8337		fi
8338
8339		CFLAGS="$CFLAGS -Werror=write-strings"
8340
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8342$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8343		cacheid=xorg_cv_cc_flag__Werror_write_strings
8344		if eval \${$cacheid+:} false; then :
8345  $as_echo_n "(cached) " >&6
8346else
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349int i;
8350int
8351main ()
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358if ac_fn_c_try_link "$LINENO"; then :
8359  eval $cacheid=yes
8360else
8361  eval $cacheid=no
8362fi
8363rm -f core conftest.err conftest.$ac_objext \
8364    conftest$ac_exeext conftest.$ac_ext
8365fi
8366
8367
8368		CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370		eval supported=\$$cacheid
8371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372$as_echo "$supported" >&6; }
8373		if test "$supported" = "yes" ; then
8374			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8375			found="yes"
8376		fi
8377	fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393xorg_testset_save_CFLAGS="$CFLAGS"
8394
8395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h.  */
8404int i;
8405_ACEOF
8406if ac_fn_c_try_compile "$LINENO"; then :
8407  xorg_cv_cc_flag_unknown_warning_option=yes
8408else
8409  xorg_cv_cc_flag_unknown_warning_option=no
8410fi
8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412fi
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8416	CFLAGS="$xorg_testset_save_CFLAGS"
8417fi
8418
8419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8422	fi
8423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431int i;
8432_ACEOF
8433if ac_fn_c_try_compile "$LINENO"; then :
8434  xorg_cv_cc_flag_unused_command_line_argument=yes
8435else
8436  xorg_cv_cc_flag_unused_command_line_argument=no
8437fi
8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8443	CFLAGS="$xorg_testset_save_CFLAGS"
8444fi
8445
8446found="no"
8447
8448	if test $found = "no" ; then
8449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451		fi
8452
8453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8455		fi
8456
8457		CFLAGS="$CFLAGS -Werror=address"
8458
8459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8460$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8461		cacheid=xorg_cv_cc_flag__Werror_address
8462		if eval \${$cacheid+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467int i;
8468int
8469main ()
8470{
8471
8472  ;
8473  return 0;
8474}
8475_ACEOF
8476if ac_fn_c_try_link "$LINENO"; then :
8477  eval $cacheid=yes
8478else
8479  eval $cacheid=no
8480fi
8481rm -f core conftest.err conftest.$ac_objext \
8482    conftest$ac_exeext conftest.$ac_ext
8483fi
8484
8485
8486		CFLAGS="$xorg_testset_save_CFLAGS"
8487
8488		eval supported=\$$cacheid
8489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8490$as_echo "$supported" >&6; }
8491		if test "$supported" = "yes" ; then
8492			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8493			found="yes"
8494		fi
8495	fi
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511xorg_testset_save_CFLAGS="$CFLAGS"
8512
8513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h.  */
8522int i;
8523_ACEOF
8524if ac_fn_c_try_compile "$LINENO"; then :
8525  xorg_cv_cc_flag_unknown_warning_option=yes
8526else
8527  xorg_cv_cc_flag_unknown_warning_option=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8534	CFLAGS="$xorg_testset_save_CFLAGS"
8535fi
8536
8537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540	fi
8541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8545  $as_echo_n "(cached) " >&6
8546else
8547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549int i;
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"; then :
8552  xorg_cv_cc_flag_unused_command_line_argument=yes
8553else
8554  xorg_cv_cc_flag_unused_command_line_argument=no
8555fi
8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557fi
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8561	CFLAGS="$xorg_testset_save_CFLAGS"
8562fi
8563
8564found="no"
8565
8566	if test $found = "no" ; then
8567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569		fi
8570
8571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573		fi
8574
8575		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8576
8577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8578$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8579		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8580		if eval \${$cacheid+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586int
8587main ()
8588{
8589
8590  ;
8591  return 0;
8592}
8593_ACEOF
8594if ac_fn_c_try_link "$LINENO"; then :
8595  eval $cacheid=yes
8596else
8597  eval $cacheid=no
8598fi
8599rm -f core conftest.err conftest.$ac_objext \
8600    conftest$ac_exeext conftest.$ac_ext
8601fi
8602
8603
8604		CFLAGS="$xorg_testset_save_CFLAGS"
8605
8606		eval supported=\$$cacheid
8607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8608$as_echo "$supported" >&6; }
8609		if test "$supported" = "yes" ; then
8610			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8611			found="yes"
8612		fi
8613	fi
8614
8615	if test $found = "no" ; then
8616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618		fi
8619
8620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622		fi
8623
8624		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8625
8626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8627$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8628		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8629		if eval \${$cacheid+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635int
8636main ()
8637{
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643if ac_fn_c_try_link "$LINENO"; then :
8644  eval $cacheid=yes
8645else
8646  eval $cacheid=no
8647fi
8648rm -f core conftest.err conftest.$ac_objext \
8649    conftest$ac_exeext conftest.$ac_ext
8650fi
8651
8652
8653		CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655		eval supported=\$$cacheid
8656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657$as_echo "$supported" >&6; }
8658		if test "$supported" = "yes" ; then
8659			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8660			found="yes"
8661		fi
8662	fi
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678xorg_testset_save_CFLAGS="$CFLAGS"
8679
8680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692  xorg_cv_cc_flag_unknown_warning_option=yes
8693else
8694  xorg_cv_cc_flag_unknown_warning_option=no
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8701	CFLAGS="$xorg_testset_save_CFLAGS"
8702fi
8703
8704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707	fi
8708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"; then :
8719  xorg_cv_cc_flag_unused_command_line_argument=yes
8720else
8721  xorg_cv_cc_flag_unused_command_line_argument=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8728	CFLAGS="$xorg_testset_save_CFLAGS"
8729fi
8730
8731found="no"
8732
8733	if test $found = "no" ; then
8734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736		fi
8737
8738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740		fi
8741
8742		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8743
8744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8745$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8746		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8747		if eval \${$cacheid+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752int i;
8753int
8754main ()
8755{
8756
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_link "$LINENO"; then :
8762  eval $cacheid=yes
8763else
8764  eval $cacheid=no
8765fi
8766rm -f core conftest.err conftest.$ac_objext \
8767    conftest$ac_exeext conftest.$ac_ext
8768fi
8769
8770
8771		CFLAGS="$xorg_testset_save_CFLAGS"
8772
8773		eval supported=\$$cacheid
8774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8775$as_echo "$supported" >&6; }
8776		if test "$supported" = "yes" ; then
8777			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8778			found="yes"
8779		fi
8780	fi
8781
8782 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8783else
8784{ $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
8785$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;}
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799xorg_testset_save_CFLAGS="$CFLAGS"
8800
8801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h.  */
8810int i;
8811_ACEOF
8812if ac_fn_c_try_compile "$LINENO"; then :
8813  xorg_cv_cc_flag_unknown_warning_option=yes
8814else
8815  xorg_cv_cc_flag_unknown_warning_option=no
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8822	CFLAGS="$xorg_testset_save_CFLAGS"
8823fi
8824
8825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828	fi
8829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836/* end confdefs.h.  */
8837int i;
8838_ACEOF
8839if ac_fn_c_try_compile "$LINENO"; then :
8840  xorg_cv_cc_flag_unused_command_line_argument=yes
8841else
8842  xorg_cv_cc_flag_unused_command_line_argument=no
8843fi
8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8849	CFLAGS="$xorg_testset_save_CFLAGS"
8850fi
8851
8852found="no"
8853
8854	if test $found = "no" ; then
8855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857		fi
8858
8859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8861		fi
8862
8863		CFLAGS="$CFLAGS -Wimplicit"
8864
8865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8866$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8867		cacheid=xorg_cv_cc_flag__Wimplicit
8868		if eval \${$cacheid+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873int i;
8874int
8875main ()
8876{
8877
8878  ;
8879  return 0;
8880}
8881_ACEOF
8882if ac_fn_c_try_link "$LINENO"; then :
8883  eval $cacheid=yes
8884else
8885  eval $cacheid=no
8886fi
8887rm -f core conftest.err conftest.$ac_objext \
8888    conftest$ac_exeext conftest.$ac_ext
8889fi
8890
8891
8892		CFLAGS="$xorg_testset_save_CFLAGS"
8893
8894		eval supported=\$$cacheid
8895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8896$as_echo "$supported" >&6; }
8897		if test "$supported" = "yes" ; then
8898			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8899			found="yes"
8900		fi
8901	fi
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917xorg_testset_save_CFLAGS="$CFLAGS"
8918
8919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8924  $as_echo_n "(cached) " >&6
8925else
8926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h.  */
8928int i;
8929_ACEOF
8930if ac_fn_c_try_compile "$LINENO"; then :
8931  xorg_cv_cc_flag_unknown_warning_option=yes
8932else
8933  xorg_cv_cc_flag_unknown_warning_option=no
8934fi
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936fi
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8940	CFLAGS="$xorg_testset_save_CFLAGS"
8941fi
8942
8943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946	fi
8947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8951  $as_echo_n "(cached) " >&6
8952else
8953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954/* end confdefs.h.  */
8955int i;
8956_ACEOF
8957if ac_fn_c_try_compile "$LINENO"; then :
8958  xorg_cv_cc_flag_unused_command_line_argument=yes
8959else
8960  xorg_cv_cc_flag_unused_command_line_argument=no
8961fi
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963fi
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8967	CFLAGS="$xorg_testset_save_CFLAGS"
8968fi
8969
8970found="no"
8971
8972	if test $found = "no" ; then
8973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975		fi
8976
8977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8979		fi
8980
8981		CFLAGS="$CFLAGS -Wnonnull"
8982
8983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8984$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8985		cacheid=xorg_cv_cc_flag__Wnonnull
8986		if eval \${$cacheid+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h.  */
8991int i;
8992int
8993main ()
8994{
8995
8996  ;
8997  return 0;
8998}
8999_ACEOF
9000if ac_fn_c_try_link "$LINENO"; then :
9001  eval $cacheid=yes
9002else
9003  eval $cacheid=no
9004fi
9005rm -f core conftest.err conftest.$ac_objext \
9006    conftest$ac_exeext conftest.$ac_ext
9007fi
9008
9009
9010		CFLAGS="$xorg_testset_save_CFLAGS"
9011
9012		eval supported=\$$cacheid
9013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9014$as_echo "$supported" >&6; }
9015		if test "$supported" = "yes" ; then
9016			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9017			found="yes"
9018		fi
9019	fi
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035xorg_testset_save_CFLAGS="$CFLAGS"
9036
9037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046int i;
9047_ACEOF
9048if ac_fn_c_try_compile "$LINENO"; then :
9049  xorg_cv_cc_flag_unknown_warning_option=yes
9050else
9051  xorg_cv_cc_flag_unknown_warning_option=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9058	CFLAGS="$xorg_testset_save_CFLAGS"
9059fi
9060
9061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9064	fi
9065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9069  $as_echo_n "(cached) " >&6
9070else
9071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073int i;
9074_ACEOF
9075if ac_fn_c_try_compile "$LINENO"; then :
9076  xorg_cv_cc_flag_unused_command_line_argument=yes
9077else
9078  xorg_cv_cc_flag_unused_command_line_argument=no
9079fi
9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9085	CFLAGS="$xorg_testset_save_CFLAGS"
9086fi
9087
9088found="no"
9089
9090	if test $found = "no" ; then
9091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093		fi
9094
9095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9097		fi
9098
9099		CFLAGS="$CFLAGS -Winit-self"
9100
9101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9102$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9103		cacheid=xorg_cv_cc_flag__Winit_self
9104		if eval \${$cacheid+:} false; then :
9105  $as_echo_n "(cached) " >&6
9106else
9107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109int i;
9110int
9111main ()
9112{
9113
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118if ac_fn_c_try_link "$LINENO"; then :
9119  eval $cacheid=yes
9120else
9121  eval $cacheid=no
9122fi
9123rm -f core conftest.err conftest.$ac_objext \
9124    conftest$ac_exeext conftest.$ac_ext
9125fi
9126
9127
9128		CFLAGS="$xorg_testset_save_CFLAGS"
9129
9130		eval supported=\$$cacheid
9131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9132$as_echo "$supported" >&6; }
9133		if test "$supported" = "yes" ; then
9134			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9135			found="yes"
9136		fi
9137	fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153xorg_testset_save_CFLAGS="$CFLAGS"
9154
9155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h.  */
9164int i;
9165_ACEOF
9166if ac_fn_c_try_compile "$LINENO"; then :
9167  xorg_cv_cc_flag_unknown_warning_option=yes
9168else
9169  xorg_cv_cc_flag_unknown_warning_option=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9176	CFLAGS="$xorg_testset_save_CFLAGS"
9177fi
9178
9179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9182	fi
9183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191int i;
9192_ACEOF
9193if ac_fn_c_try_compile "$LINENO"; then :
9194  xorg_cv_cc_flag_unused_command_line_argument=yes
9195else
9196  xorg_cv_cc_flag_unused_command_line_argument=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9203	CFLAGS="$xorg_testset_save_CFLAGS"
9204fi
9205
9206found="no"
9207
9208	if test $found = "no" ; then
9209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211		fi
9212
9213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9215		fi
9216
9217		CFLAGS="$CFLAGS -Wmain"
9218
9219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9220$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9221		cacheid=xorg_cv_cc_flag__Wmain
9222		if eval \${$cacheid+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227int i;
9228int
9229main ()
9230{
9231
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236if ac_fn_c_try_link "$LINENO"; then :
9237  eval $cacheid=yes
9238else
9239  eval $cacheid=no
9240fi
9241rm -f core conftest.err conftest.$ac_objext \
9242    conftest$ac_exeext conftest.$ac_ext
9243fi
9244
9245
9246		CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248		eval supported=\$$cacheid
9249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250$as_echo "$supported" >&6; }
9251		if test "$supported" = "yes" ; then
9252			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9253			found="yes"
9254		fi
9255	fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9278  $as_echo_n "(cached) " >&6
9279else
9280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282int i;
9283_ACEOF
9284if ac_fn_c_try_compile "$LINENO"; then :
9285  xorg_cv_cc_flag_unknown_warning_option=yes
9286else
9287  xorg_cv_cc_flag_unknown_warning_option=no
9288fi
9289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290fi
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9294	CFLAGS="$xorg_testset_save_CFLAGS"
9295fi
9296
9297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300	fi
9301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9305  $as_echo_n "(cached) " >&6
9306else
9307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"; then :
9312  xorg_cv_cc_flag_unused_command_line_argument=yes
9313else
9314  xorg_cv_cc_flag_unused_command_line_argument=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324found="no"
9325
9326	if test $found = "no" ; then
9327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329		fi
9330
9331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9333		fi
9334
9335		CFLAGS="$CFLAGS -Wmissing-braces"
9336
9337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9338$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9339		cacheid=xorg_cv_cc_flag__Wmissing_braces
9340		if eval \${$cacheid+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346int
9347main ()
9348{
9349
9350  ;
9351  return 0;
9352}
9353_ACEOF
9354if ac_fn_c_try_link "$LINENO"; then :
9355  eval $cacheid=yes
9356else
9357  eval $cacheid=no
9358fi
9359rm -f core conftest.err conftest.$ac_objext \
9360    conftest$ac_exeext conftest.$ac_ext
9361fi
9362
9363
9364		CFLAGS="$xorg_testset_save_CFLAGS"
9365
9366		eval supported=\$$cacheid
9367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9368$as_echo "$supported" >&6; }
9369		if test "$supported" = "yes" ; then
9370			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9371			found="yes"
9372		fi
9373	fi
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389xorg_testset_save_CFLAGS="$CFLAGS"
9390
9391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9396  $as_echo_n "(cached) " >&6
9397else
9398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399/* end confdefs.h.  */
9400int i;
9401_ACEOF
9402if ac_fn_c_try_compile "$LINENO"; then :
9403  xorg_cv_cc_flag_unknown_warning_option=yes
9404else
9405  xorg_cv_cc_flag_unknown_warning_option=no
9406fi
9407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9412	CFLAGS="$xorg_testset_save_CFLAGS"
9413fi
9414
9415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418	fi
9419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427int i;
9428_ACEOF
9429if ac_fn_c_try_compile "$LINENO"; then :
9430  xorg_cv_cc_flag_unused_command_line_argument=yes
9431else
9432  xorg_cv_cc_flag_unused_command_line_argument=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9439	CFLAGS="$xorg_testset_save_CFLAGS"
9440fi
9441
9442found="no"
9443
9444	if test $found = "no" ; then
9445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447		fi
9448
9449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9451		fi
9452
9453		CFLAGS="$CFLAGS -Wsequence-point"
9454
9455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9456$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9457		cacheid=xorg_cv_cc_flag__Wsequence_point
9458		if eval \${$cacheid+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h.  */
9463int i;
9464int
9465main ()
9466{
9467
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472if ac_fn_c_try_link "$LINENO"; then :
9473  eval $cacheid=yes
9474else
9475  eval $cacheid=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext \
9478    conftest$ac_exeext conftest.$ac_ext
9479fi
9480
9481
9482		CFLAGS="$xorg_testset_save_CFLAGS"
9483
9484		eval supported=\$$cacheid
9485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9486$as_echo "$supported" >&6; }
9487		if test "$supported" = "yes" ; then
9488			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9489			found="yes"
9490		fi
9491	fi
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507xorg_testset_save_CFLAGS="$CFLAGS"
9508
9509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9514  $as_echo_n "(cached) " >&6
9515else
9516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h.  */
9518int i;
9519_ACEOF
9520if ac_fn_c_try_compile "$LINENO"; then :
9521  xorg_cv_cc_flag_unknown_warning_option=yes
9522else
9523  xorg_cv_cc_flag_unknown_warning_option=no
9524fi
9525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526fi
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9530	CFLAGS="$xorg_testset_save_CFLAGS"
9531fi
9532
9533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536	fi
9537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9541  $as_echo_n "(cached) " >&6
9542else
9543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h.  */
9545int i;
9546_ACEOF
9547if ac_fn_c_try_compile "$LINENO"; then :
9548  xorg_cv_cc_flag_unused_command_line_argument=yes
9549else
9550  xorg_cv_cc_flag_unused_command_line_argument=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9557	CFLAGS="$xorg_testset_save_CFLAGS"
9558fi
9559
9560found="no"
9561
9562	if test $found = "no" ; then
9563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565		fi
9566
9567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569		fi
9570
9571		CFLAGS="$CFLAGS -Wreturn-type"
9572
9573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9574$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9575		cacheid=xorg_cv_cc_flag__Wreturn_type
9576		if eval \${$cacheid+:} false; then :
9577  $as_echo_n "(cached) " >&6
9578else
9579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h.  */
9581int i;
9582int
9583main ()
9584{
9585
9586  ;
9587  return 0;
9588}
9589_ACEOF
9590if ac_fn_c_try_link "$LINENO"; then :
9591  eval $cacheid=yes
9592else
9593  eval $cacheid=no
9594fi
9595rm -f core conftest.err conftest.$ac_objext \
9596    conftest$ac_exeext conftest.$ac_ext
9597fi
9598
9599
9600		CFLAGS="$xorg_testset_save_CFLAGS"
9601
9602		eval supported=\$$cacheid
9603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9604$as_echo "$supported" >&6; }
9605		if test "$supported" = "yes" ; then
9606			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9607			found="yes"
9608		fi
9609	fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625xorg_testset_save_CFLAGS="$CFLAGS"
9626
9627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9632  $as_echo_n "(cached) " >&6
9633else
9634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h.  */
9636int i;
9637_ACEOF
9638if ac_fn_c_try_compile "$LINENO"; then :
9639  xorg_cv_cc_flag_unknown_warning_option=yes
9640else
9641  xorg_cv_cc_flag_unknown_warning_option=no
9642fi
9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9648	CFLAGS="$xorg_testset_save_CFLAGS"
9649fi
9650
9651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654	fi
9655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9659  $as_echo_n "(cached) " >&6
9660else
9661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663int i;
9664_ACEOF
9665if ac_fn_c_try_compile "$LINENO"; then :
9666  xorg_cv_cc_flag_unused_command_line_argument=yes
9667else
9668  xorg_cv_cc_flag_unused_command_line_argument=no
9669fi
9670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9675	CFLAGS="$xorg_testset_save_CFLAGS"
9676fi
9677
9678found="no"
9679
9680	if test $found = "no" ; then
9681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683		fi
9684
9685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687		fi
9688
9689		CFLAGS="$CFLAGS -Wtrigraphs"
9690
9691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9692$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9693		cacheid=xorg_cv_cc_flag__Wtrigraphs
9694		if eval \${$cacheid+:} false; then :
9695  $as_echo_n "(cached) " >&6
9696else
9697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h.  */
9699int i;
9700int
9701main ()
9702{
9703
9704  ;
9705  return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709  eval $cacheid=yes
9710else
9711  eval $cacheid=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714    conftest$ac_exeext conftest.$ac_ext
9715fi
9716
9717
9718		CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720		eval supported=\$$cacheid
9721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722$as_echo "$supported" >&6; }
9723		if test "$supported" = "yes" ; then
9724			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9725			found="yes"
9726		fi
9727	fi
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743xorg_testset_save_CFLAGS="$CFLAGS"
9744
9745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9750  $as_echo_n "(cached) " >&6
9751else
9752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h.  */
9754int i;
9755_ACEOF
9756if ac_fn_c_try_compile "$LINENO"; then :
9757  xorg_cv_cc_flag_unknown_warning_option=yes
9758else
9759  xorg_cv_cc_flag_unknown_warning_option=no
9760fi
9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9766	CFLAGS="$xorg_testset_save_CFLAGS"
9767fi
9768
9769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9772	fi
9773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"; then :
9784  xorg_cv_cc_flag_unused_command_line_argument=yes
9785else
9786  xorg_cv_cc_flag_unused_command_line_argument=no
9787fi
9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9793	CFLAGS="$xorg_testset_save_CFLAGS"
9794fi
9795
9796found="no"
9797
9798	if test $found = "no" ; then
9799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801		fi
9802
9803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9805		fi
9806
9807		CFLAGS="$CFLAGS -Warray-bounds"
9808
9809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9810$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9811		cacheid=xorg_cv_cc_flag__Warray_bounds
9812		if eval \${$cacheid+:} false; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h.  */
9817int i;
9818int
9819main ()
9820{
9821
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_link "$LINENO"; then :
9827  eval $cacheid=yes
9828else
9829  eval $cacheid=no
9830fi
9831rm -f core conftest.err conftest.$ac_objext \
9832    conftest$ac_exeext conftest.$ac_ext
9833fi
9834
9835
9836		CFLAGS="$xorg_testset_save_CFLAGS"
9837
9838		eval supported=\$$cacheid
9839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9840$as_echo "$supported" >&6; }
9841		if test "$supported" = "yes" ; then
9842			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9843			found="yes"
9844		fi
9845	fi
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861xorg_testset_save_CFLAGS="$CFLAGS"
9862
9863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9868  $as_echo_n "(cached) " >&6
9869else
9870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h.  */
9872int i;
9873_ACEOF
9874if ac_fn_c_try_compile "$LINENO"; then :
9875  xorg_cv_cc_flag_unknown_warning_option=yes
9876else
9877  xorg_cv_cc_flag_unknown_warning_option=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880fi
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9884	CFLAGS="$xorg_testset_save_CFLAGS"
9885fi
9886
9887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9890	fi
9891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"; then :
9902  xorg_cv_cc_flag_unused_command_line_argument=yes
9903else
9904  xorg_cv_cc_flag_unused_command_line_argument=no
9905fi
9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907fi
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9911	CFLAGS="$xorg_testset_save_CFLAGS"
9912fi
9913
9914found="no"
9915
9916	if test $found = "no" ; then
9917		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919		fi
9920
9921		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923		fi
9924
9925		CFLAGS="$CFLAGS -Wwrite-strings"
9926
9927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9928$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9929		cacheid=xorg_cv_cc_flag__Wwrite_strings
9930		if eval \${$cacheid+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934/* end confdefs.h.  */
9935int i;
9936int
9937main ()
9938{
9939
9940  ;
9941  return 0;
9942}
9943_ACEOF
9944if ac_fn_c_try_link "$LINENO"; then :
9945  eval $cacheid=yes
9946else
9947  eval $cacheid=no
9948fi
9949rm -f core conftest.err conftest.$ac_objext \
9950    conftest$ac_exeext conftest.$ac_ext
9951fi
9952
9953
9954		CFLAGS="$xorg_testset_save_CFLAGS"
9955
9956		eval supported=\$$cacheid
9957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9958$as_echo "$supported" >&6; }
9959		if test "$supported" = "yes" ; then
9960			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9961			found="yes"
9962		fi
9963	fi
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979xorg_testset_save_CFLAGS="$CFLAGS"
9980
9981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9982	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9986  $as_echo_n "(cached) " >&6
9987else
9988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989/* end confdefs.h.  */
9990int i;
9991_ACEOF
9992if ac_fn_c_try_compile "$LINENO"; then :
9993  xorg_cv_cc_flag_unknown_warning_option=yes
9994else
9995  xorg_cv_cc_flag_unknown_warning_option=no
9996fi
9997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998fi
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10002	CFLAGS="$xorg_testset_save_CFLAGS"
10003fi
10004
10005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10008	fi
10009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016/* end confdefs.h.  */
10017int i;
10018_ACEOF
10019if ac_fn_c_try_compile "$LINENO"; then :
10020  xorg_cv_cc_flag_unused_command_line_argument=yes
10021else
10022  xorg_cv_cc_flag_unused_command_line_argument=no
10023fi
10024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025fi
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10029	CFLAGS="$xorg_testset_save_CFLAGS"
10030fi
10031
10032found="no"
10033
10034	if test $found = "no" ; then
10035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037		fi
10038
10039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041		fi
10042
10043		CFLAGS="$CFLAGS -Waddress"
10044
10045		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10046$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10047		cacheid=xorg_cv_cc_flag__Waddress
10048		if eval \${$cacheid+:} false; then :
10049  $as_echo_n "(cached) " >&6
10050else
10051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052/* end confdefs.h.  */
10053int i;
10054int
10055main ()
10056{
10057
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062if ac_fn_c_try_link "$LINENO"; then :
10063  eval $cacheid=yes
10064else
10065  eval $cacheid=no
10066fi
10067rm -f core conftest.err conftest.$ac_objext \
10068    conftest$ac_exeext conftest.$ac_ext
10069fi
10070
10071
10072		CFLAGS="$xorg_testset_save_CFLAGS"
10073
10074		eval supported=\$$cacheid
10075		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10076$as_echo "$supported" >&6; }
10077		if test "$supported" = "yes" ; then
10078			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10079			found="yes"
10080		fi
10081	fi
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097xorg_testset_save_CFLAGS="$CFLAGS"
10098
10099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10104  $as_echo_n "(cached) " >&6
10105else
10106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h.  */
10108int i;
10109_ACEOF
10110if ac_fn_c_try_compile "$LINENO"; then :
10111  xorg_cv_cc_flag_unknown_warning_option=yes
10112else
10113  xorg_cv_cc_flag_unknown_warning_option=no
10114fi
10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116fi
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10119	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10120	CFLAGS="$xorg_testset_save_CFLAGS"
10121fi
10122
10123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10124	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126	fi
10127	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10131  $as_echo_n "(cached) " >&6
10132else
10133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135int i;
10136_ACEOF
10137if ac_fn_c_try_compile "$LINENO"; then :
10138  xorg_cv_cc_flag_unused_command_line_argument=yes
10139else
10140  xorg_cv_cc_flag_unused_command_line_argument=no
10141fi
10142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10143fi
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10146	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10147	CFLAGS="$xorg_testset_save_CFLAGS"
10148fi
10149
10150found="no"
10151
10152	if test $found = "no" ; then
10153		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10154			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10155		fi
10156
10157		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10158			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10159		fi
10160
10161		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10162
10163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10164$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10165		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10166		if eval \${$cacheid+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h.  */
10171int i;
10172int
10173main ()
10174{
10175
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180if ac_fn_c_try_link "$LINENO"; then :
10181  eval $cacheid=yes
10182else
10183  eval $cacheid=no
10184fi
10185rm -f core conftest.err conftest.$ac_objext \
10186    conftest$ac_exeext conftest.$ac_ext
10187fi
10188
10189
10190		CFLAGS="$xorg_testset_save_CFLAGS"
10191
10192		eval supported=\$$cacheid
10193		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10194$as_echo "$supported" >&6; }
10195		if test "$supported" = "yes" ; then
10196			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10197			found="yes"
10198		fi
10199	fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215xorg_testset_save_CFLAGS="$CFLAGS"
10216
10217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225/* end confdefs.h.  */
10226int i;
10227_ACEOF
10228if ac_fn_c_try_compile "$LINENO"; then :
10229  xorg_cv_cc_flag_unknown_warning_option=yes
10230else
10231  xorg_cv_cc_flag_unknown_warning_option=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234fi
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10238	CFLAGS="$xorg_testset_save_CFLAGS"
10239fi
10240
10241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244	fi
10245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10249  $as_echo_n "(cached) " >&6
10250else
10251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252/* end confdefs.h.  */
10253int i;
10254_ACEOF
10255if ac_fn_c_try_compile "$LINENO"; then :
10256  xorg_cv_cc_flag_unused_command_line_argument=yes
10257else
10258  xorg_cv_cc_flag_unused_command_line_argument=no
10259fi
10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261fi
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10265	CFLAGS="$xorg_testset_save_CFLAGS"
10266fi
10267
10268found="no"
10269
10270	if test $found = "no" ; then
10271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273		fi
10274
10275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277		fi
10278
10279		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10280
10281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10282$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10283		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10284		if eval \${$cacheid+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290int
10291main ()
10292{
10293
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"; then :
10299  eval $cacheid=yes
10300else
10301  eval $cacheid=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext \
10304    conftest$ac_exeext conftest.$ac_ext
10305fi
10306
10307
10308		CFLAGS="$xorg_testset_save_CFLAGS"
10309
10310		eval supported=\$$cacheid
10311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10312$as_echo "$supported" >&6; }
10313		if test "$supported" = "yes" ; then
10314			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10315			found="yes"
10316		fi
10317	fi
10318
10319
10320fi
10321
10322
10323
10324
10325
10326
10327
10328		CWARNFLAGS="$BASE_CFLAGS"
10329		if  test "x$GCC" = xyes ; then
10330		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10331		fi
10332
10333
10334
10335
10336
10337
10338
10339
10340# Check whether --enable-strict-compilation was given.
10341if test "${enable_strict_compilation+set}" = set; then :
10342  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10343else
10344  STRICT_COMPILE=no
10345fi
10346
10347
10348
10349
10350
10351
10352STRICT_CFLAGS=""
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366xorg_testset_save_CFLAGS="$CFLAGS"
10367
10368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10373  $as_echo_n "(cached) " >&6
10374else
10375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377int i;
10378_ACEOF
10379if ac_fn_c_try_compile "$LINENO"; then :
10380  xorg_cv_cc_flag_unknown_warning_option=yes
10381else
10382  xorg_cv_cc_flag_unknown_warning_option=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10389	CFLAGS="$xorg_testset_save_CFLAGS"
10390fi
10391
10392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10395	fi
10396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10400  $as_echo_n "(cached) " >&6
10401else
10402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403/* end confdefs.h.  */
10404int i;
10405_ACEOF
10406if ac_fn_c_try_compile "$LINENO"; then :
10407  xorg_cv_cc_flag_unused_command_line_argument=yes
10408else
10409  xorg_cv_cc_flag_unused_command_line_argument=no
10410fi
10411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412fi
10413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10416	CFLAGS="$xorg_testset_save_CFLAGS"
10417fi
10418
10419found="no"
10420
10421	if test $found = "no" ; then
10422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10424		fi
10425
10426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10428		fi
10429
10430		CFLAGS="$CFLAGS -pedantic"
10431
10432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10433$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10434		cacheid=xorg_cv_cc_flag__pedantic
10435		if eval \${$cacheid+:} false; then :
10436  $as_echo_n "(cached) " >&6
10437else
10438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440int i;
10441int
10442main ()
10443{
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450  eval $cacheid=yes
10451else
10452  eval $cacheid=no
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455    conftest$ac_exeext conftest.$ac_ext
10456fi
10457
10458
10459		CFLAGS="$xorg_testset_save_CFLAGS"
10460
10461		eval supported=\$$cacheid
10462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10463$as_echo "$supported" >&6; }
10464		if test "$supported" = "yes" ; then
10465			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10466			found="yes"
10467		fi
10468	fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10491  $as_echo_n "(cached) " >&6
10492else
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495int i;
10496_ACEOF
10497if ac_fn_c_try_compile "$LINENO"; then :
10498  xorg_cv_cc_flag_unknown_warning_option=yes
10499else
10500  xorg_cv_cc_flag_unknown_warning_option=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503fi
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10507	CFLAGS="$xorg_testset_save_CFLAGS"
10508fi
10509
10510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513	fi
10514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10518  $as_echo_n "(cached) " >&6
10519else
10520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521/* end confdefs.h.  */
10522int i;
10523_ACEOF
10524if ac_fn_c_try_compile "$LINENO"; then :
10525  xorg_cv_cc_flag_unused_command_line_argument=yes
10526else
10527  xorg_cv_cc_flag_unused_command_line_argument=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530fi
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534	CFLAGS="$xorg_testset_save_CFLAGS"
10535fi
10536
10537found="no"
10538
10539	if test $found = "no" ; then
10540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542		fi
10543
10544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546		fi
10547
10548		CFLAGS="$CFLAGS -Werror"
10549
10550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10551$as_echo_n "checking if $CC supports -Werror... " >&6; }
10552		cacheid=xorg_cv_cc_flag__Werror
10553		if eval \${$cacheid+:} false; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558int i;
10559int
10560main ()
10561{
10562
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568  eval $cacheid=yes
10569else
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581$as_echo "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10584			found="yes"
10585		fi
10586	fi
10587
10588	if test $found = "no" ; then
10589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591		fi
10592
10593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595		fi
10596
10597		CFLAGS="$CFLAGS -errwarn"
10598
10599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10600$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10601		cacheid=xorg_cv_cc_flag__errwarn
10602		if eval \${$cacheid+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606/* end confdefs.h.  */
10607int i;
10608int
10609main ()
10610{
10611
10612  ;
10613  return 0;
10614}
10615_ACEOF
10616if ac_fn_c_try_link "$LINENO"; then :
10617  eval $cacheid=yes
10618else
10619  eval $cacheid=no
10620fi
10621rm -f core conftest.err conftest.$ac_objext \
10622    conftest$ac_exeext conftest.$ac_ext
10623fi
10624
10625
10626		CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628		eval supported=\$$cacheid
10629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630$as_echo "$supported" >&6; }
10631		if test "$supported" = "yes" ; then
10632			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10633			found="yes"
10634		fi
10635	fi
10636
10637
10638
10639# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10640# activate it with -Werror, so we add it here explicitly.
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654xorg_testset_save_CFLAGS="$CFLAGS"
10655
10656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664/* end confdefs.h.  */
10665int i;
10666_ACEOF
10667if ac_fn_c_try_compile "$LINENO"; then :
10668  xorg_cv_cc_flag_unknown_warning_option=yes
10669else
10670  xorg_cv_cc_flag_unknown_warning_option=no
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673fi
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10677	CFLAGS="$xorg_testset_save_CFLAGS"
10678fi
10679
10680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10683	fi
10684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10688  $as_echo_n "(cached) " >&6
10689else
10690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691/* end confdefs.h.  */
10692int i;
10693_ACEOF
10694if ac_fn_c_try_compile "$LINENO"; then :
10695  xorg_cv_cc_flag_unused_command_line_argument=yes
10696else
10697  xorg_cv_cc_flag_unused_command_line_argument=no
10698fi
10699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700fi
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10704	CFLAGS="$xorg_testset_save_CFLAGS"
10705fi
10706
10707found="no"
10708
10709	if test $found = "no" ; then
10710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10712		fi
10713
10714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10716		fi
10717
10718		CFLAGS="$CFLAGS -Werror=attributes"
10719
10720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10721$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10722		cacheid=xorg_cv_cc_flag__Werror_attributes
10723		if eval \${$cacheid+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727/* end confdefs.h.  */
10728int i;
10729int
10730main ()
10731{
10732
10733  ;
10734  return 0;
10735}
10736_ACEOF
10737if ac_fn_c_try_link "$LINENO"; then :
10738  eval $cacheid=yes
10739else
10740  eval $cacheid=no
10741fi
10742rm -f core conftest.err conftest.$ac_objext \
10743    conftest$ac_exeext conftest.$ac_ext
10744fi
10745
10746
10747		CFLAGS="$xorg_testset_save_CFLAGS"
10748
10749		eval supported=\$$cacheid
10750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10751$as_echo "$supported" >&6; }
10752		if test "$supported" = "yes" ; then
10753			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10754			found="yes"
10755		fi
10756	fi
10757
10758
10759
10760if test "x$STRICT_COMPILE" = "xyes"; then
10761    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10762    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10763fi
10764
10765
10766
10767
10768
10769
10770cat >>confdefs.h <<_ACEOF
10771#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10772_ACEOF
10773
10774	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10775	if test "x$PVM" = "x"; then
10776		PVM="0"
10777	fi
10778
10779cat >>confdefs.h <<_ACEOF
10780#define PACKAGE_VERSION_MINOR $PVM
10781_ACEOF
10782
10783	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10784	if test "x$PVP" = "x"; then
10785		PVP="0"
10786	fi
10787
10788cat >>confdefs.h <<_ACEOF
10789#define PACKAGE_VERSION_PATCHLEVEL $PVP
10790_ACEOF
10791
10792
10793
10794CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10795mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10796|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10797echo 'git directory not found: installing possibly empty changelog.' >&2)"
10798
10799
10800
10801
10802macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10803INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10804mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10805|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10806echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10807
10808
10809
10810
10811
10812
10813if test x$APP_MAN_SUFFIX = x    ; then
10814    APP_MAN_SUFFIX=1
10815fi
10816if test x$APP_MAN_DIR = x    ; then
10817    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10818fi
10819
10820if test x$LIB_MAN_SUFFIX = x    ; then
10821    LIB_MAN_SUFFIX=3
10822fi
10823if test x$LIB_MAN_DIR = x    ; then
10824    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10825fi
10826
10827if test x$FILE_MAN_SUFFIX = x    ; then
10828    case $host_os in
10829	solaris*)	FILE_MAN_SUFFIX=4  ;;
10830	*)		FILE_MAN_SUFFIX=5  ;;
10831    esac
10832fi
10833if test x$FILE_MAN_DIR = x    ; then
10834    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10835fi
10836
10837if test x$MISC_MAN_SUFFIX = x    ; then
10838    case $host_os in
10839	solaris*)	MISC_MAN_SUFFIX=5  ;;
10840	*)		MISC_MAN_SUFFIX=7  ;;
10841    esac
10842fi
10843if test x$MISC_MAN_DIR = x    ; then
10844    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10845fi
10846
10847if test x$DRIVER_MAN_SUFFIX = x    ; then
10848    case $host_os in
10849	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10850	*)		DRIVER_MAN_SUFFIX=4  ;;
10851    esac
10852fi
10853if test x$DRIVER_MAN_DIR = x    ; then
10854    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10855fi
10856
10857if test x$ADMIN_MAN_SUFFIX = x    ; then
10858    case $host_os in
10859	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10860	*)		ADMIN_MAN_SUFFIX=8  ;;
10861    esac
10862fi
10863if test x$ADMIN_MAN_DIR = x    ; then
10864    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10865fi
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881XORG_MAN_PAGE="X Version 11"
10882
10883MAN_SUBSTS="\
10884	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10885	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10886	-e 's|__xservername__|Xorg|g' \
10887	-e 's|__xconfigfile__|xorg.conf|g' \
10888	-e 's|__projectroot__|\$(prefix)|g' \
10889	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10890	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10891	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10892	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10893	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10894	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10895	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10896
10897
10898
10899# Check whether --enable-silent-rules was given.
10900if test "${enable_silent_rules+set}" = set; then :
10901  enableval=$enable_silent_rules;
10902fi
10903
10904case $enable_silent_rules in # (((
10905  yes) AM_DEFAULT_VERBOSITY=0;;
10906   no) AM_DEFAULT_VERBOSITY=1;;
10907    *) AM_DEFAULT_VERBOSITY=0;;
10908esac
10909am_make=${MAKE-make}
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10911$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10912if ${am_cv_make_support_nested_variables+:} false; then :
10913  $as_echo_n "(cached) " >&6
10914else
10915  if $as_echo 'TRUE=$(BAR$(V))
10916BAR0=false
10917BAR1=true
10918V=1
10919am__doit:
10920	@$(TRUE)
10921.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10922  am_cv_make_support_nested_variables=yes
10923else
10924  am_cv_make_support_nested_variables=no
10925fi
10926fi
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10928$as_echo "$am_cv_make_support_nested_variables" >&6; }
10929if test $am_cv_make_support_nested_variables = yes; then
10930    AM_V='$(V)'
10931  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10932else
10933  AM_V=$AM_DEFAULT_VERBOSITY
10934  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10935fi
10936AM_BACKSLASH='\'
10937
10938
10939
10940# Initialize libtool
10941# Check whether --enable-static was given.
10942if test "${enable_static+set}" = set; then :
10943  enableval=$enable_static; p=${PACKAGE-default}
10944    case $enableval in
10945    yes) enable_static=yes ;;
10946    no) enable_static=no ;;
10947    *)
10948     enable_static=no
10949      # Look at the argument we got.  We use all the common list separators.
10950      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10951      for pkg in $enableval; do
10952	IFS=$lt_save_ifs
10953	if test "X$pkg" = "X$p"; then
10954	  enable_static=yes
10955	fi
10956      done
10957      IFS=$lt_save_ifs
10958      ;;
10959    esac
10960else
10961  enable_static=no
10962fi
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972case `pwd` in
10973  *\ * | *\	*)
10974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10975$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10976esac
10977
10978
10979
10980macro_version='2.4.6'
10981macro_revision='2.4.6'
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995ltmain=$ac_aux_dir/ltmain.sh
10996
10997# Backslashify metacharacters that are still active within
10998# double-quoted strings.
10999sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11000
11001# Same as above, but do not quote variable references.
11002double_quote_subst='s/\(["`\\]\)/\\\1/g'
11003
11004# Sed substitution to delay expansion of an escaped shell variable in a
11005# double_quote_subst'ed string.
11006delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11007
11008# Sed substitution to delay expansion of an escaped single quote.
11009delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11010
11011# Sed substitution to avoid accidental globbing in evaled expressions
11012no_glob_subst='s/\*/\\\*/g'
11013
11014ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11015ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11016ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11017
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11019$as_echo_n "checking how to print strings... " >&6; }
11020# Test print first, because it will be a builtin if present.
11021if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11022   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11023  ECHO='print -r --'
11024elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11025  ECHO='printf %s\n'
11026else
11027  # Use this function as a fallback that always works.
11028  func_fallback_echo ()
11029  {
11030    eval 'cat <<_LTECHO_EOF
11031$1
11032_LTECHO_EOF'
11033  }
11034  ECHO='func_fallback_echo'
11035fi
11036
11037# func_echo_all arg...
11038# Invoke $ECHO with all args, space-separated.
11039func_echo_all ()
11040{
11041    $ECHO ""
11042}
11043
11044case $ECHO in
11045  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11046$as_echo "printf" >&6; } ;;
11047  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11048$as_echo "print -r" >&6; } ;;
11049  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11050$as_echo "cat" >&6; } ;;
11051esac
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11067$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11068if ${ac_cv_path_SED+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11072     for ac_i in 1 2 3 4 5 6 7; do
11073       ac_script="$ac_script$as_nl$ac_script"
11074     done
11075     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11076     { ac_script=; unset ac_script;}
11077     if test -z "$SED"; then
11078  ac_path_SED_found=false
11079  # Loop through the user's path and test for each of PROGNAME-LIST
11080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081for as_dir in $PATH
11082do
11083  IFS=$as_save_IFS
11084  test -z "$as_dir" && as_dir=.
11085    for ac_prog in sed gsed; do
11086    for ac_exec_ext in '' $ac_executable_extensions; do
11087      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11088      as_fn_executable_p "$ac_path_SED" || continue
11089# Check for GNU ac_path_SED and select it if it is found.
11090  # Check for GNU $ac_path_SED
11091case `"$ac_path_SED" --version 2>&1` in
11092*GNU*)
11093  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11094*)
11095  ac_count=0
11096  $as_echo_n 0123456789 >"conftest.in"
11097  while :
11098  do
11099    cat "conftest.in" "conftest.in" >"conftest.tmp"
11100    mv "conftest.tmp" "conftest.in"
11101    cp "conftest.in" "conftest.nl"
11102    $as_echo '' >> "conftest.nl"
11103    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11104    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11105    as_fn_arith $ac_count + 1 && ac_count=$as_val
11106    if test $ac_count -gt ${ac_path_SED_max-0}; then
11107      # Best one so far, save it but keep looking for a better one
11108      ac_cv_path_SED="$ac_path_SED"
11109      ac_path_SED_max=$ac_count
11110    fi
11111    # 10*(2^10) chars as input seems more than enough
11112    test $ac_count -gt 10 && break
11113  done
11114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11115esac
11116
11117      $ac_path_SED_found && break 3
11118    done
11119  done
11120  done
11121IFS=$as_save_IFS
11122  if test -z "$ac_cv_path_SED"; then
11123    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11124  fi
11125else
11126  ac_cv_path_SED=$SED
11127fi
11128
11129fi
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11131$as_echo "$ac_cv_path_SED" >&6; }
11132 SED="$ac_cv_path_SED"
11133  rm -f conftest.sed
11134
11135test -z "$SED" && SED=sed
11136Xsed="$SED -e 1s/^X//"
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11149$as_echo_n "checking for fgrep... " >&6; }
11150if ${ac_cv_path_FGREP+:} false; then :
11151  $as_echo_n "(cached) " >&6
11152else
11153  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11154   then ac_cv_path_FGREP="$GREP -F"
11155   else
11156     if test -z "$FGREP"; then
11157  ac_path_FGREP_found=false
11158  # Loop through the user's path and test for each of PROGNAME-LIST
11159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11161do
11162  IFS=$as_save_IFS
11163  test -z "$as_dir" && as_dir=.
11164    for ac_prog in fgrep; do
11165    for ac_exec_ext in '' $ac_executable_extensions; do
11166      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11167      as_fn_executable_p "$ac_path_FGREP" || continue
11168# Check for GNU ac_path_FGREP and select it if it is found.
11169  # Check for GNU $ac_path_FGREP
11170case `"$ac_path_FGREP" --version 2>&1` in
11171*GNU*)
11172  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11173*)
11174  ac_count=0
11175  $as_echo_n 0123456789 >"conftest.in"
11176  while :
11177  do
11178    cat "conftest.in" "conftest.in" >"conftest.tmp"
11179    mv "conftest.tmp" "conftest.in"
11180    cp "conftest.in" "conftest.nl"
11181    $as_echo 'FGREP' >> "conftest.nl"
11182    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11183    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11184    as_fn_arith $ac_count + 1 && ac_count=$as_val
11185    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11186      # Best one so far, save it but keep looking for a better one
11187      ac_cv_path_FGREP="$ac_path_FGREP"
11188      ac_path_FGREP_max=$ac_count
11189    fi
11190    # 10*(2^10) chars as input seems more than enough
11191    test $ac_count -gt 10 && break
11192  done
11193  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11194esac
11195
11196      $ac_path_FGREP_found && break 3
11197    done
11198  done
11199  done
11200IFS=$as_save_IFS
11201  if test -z "$ac_cv_path_FGREP"; then
11202    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11203  fi
11204else
11205  ac_cv_path_FGREP=$FGREP
11206fi
11207
11208   fi
11209fi
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11211$as_echo "$ac_cv_path_FGREP" >&6; }
11212 FGREP="$ac_cv_path_FGREP"
11213
11214
11215test -z "$GREP" && GREP=grep
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235# Check whether --with-gnu-ld was given.
11236if test "${with_gnu_ld+set}" = set; then :
11237  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11238else
11239  with_gnu_ld=no
11240fi
11241
11242ac_prog=ld
11243if test yes = "$GCC"; then
11244  # Check if gcc -print-prog-name=ld gives a path.
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11246$as_echo_n "checking for ld used by $CC... " >&6; }
11247  case $host in
11248  *-*-mingw*)
11249    # gcc leaves a trailing carriage return, which upsets mingw
11250    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11251  *)
11252    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11253  esac
11254  case $ac_prog in
11255    # Accept absolute paths.
11256    [\\/]* | ?:[\\/]*)
11257      re_direlt='/[^/][^/]*/\.\./'
11258      # Canonicalize the pathname of ld
11259      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11260      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11261	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11262      done
11263      test -z "$LD" && LD=$ac_prog
11264      ;;
11265  "")
11266    # If it fails, then pretend we aren't using GCC.
11267    ac_prog=ld
11268    ;;
11269  *)
11270    # If it is relative, then search for the first ld in PATH.
11271    with_gnu_ld=unknown
11272    ;;
11273  esac
11274elif test yes = "$with_gnu_ld"; then
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11276$as_echo_n "checking for GNU ld... " >&6; }
11277else
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11279$as_echo_n "checking for non-GNU ld... " >&6; }
11280fi
11281if ${lt_cv_path_LD+:} false; then :
11282  $as_echo_n "(cached) " >&6
11283else
11284  if test -z "$LD"; then
11285  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11286  for ac_dir in $PATH; do
11287    IFS=$lt_save_ifs
11288    test -z "$ac_dir" && ac_dir=.
11289    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11290      lt_cv_path_LD=$ac_dir/$ac_prog
11291      # Check to see if the program is GNU ld.  I'd rather use --version,
11292      # but apparently some variants of GNU ld only accept -v.
11293      # Break only if it was the GNU/non-GNU ld that we prefer.
11294      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11295      *GNU* | *'with BFD'*)
11296	test no != "$with_gnu_ld" && break
11297	;;
11298      *)
11299	test yes != "$with_gnu_ld" && break
11300	;;
11301      esac
11302    fi
11303  done
11304  IFS=$lt_save_ifs
11305else
11306  lt_cv_path_LD=$LD # Let the user override the test with a path.
11307fi
11308fi
11309
11310LD=$lt_cv_path_LD
11311if test -n "$LD"; then
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11313$as_echo "$LD" >&6; }
11314else
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
11317fi
11318test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11320$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11321if ${lt_cv_prog_gnu_ld+:} false; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11325case `$LD -v 2>&1 </dev/null` in
11326*GNU* | *'with BFD'*)
11327  lt_cv_prog_gnu_ld=yes
11328  ;;
11329*)
11330  lt_cv_prog_gnu_ld=no
11331  ;;
11332esac
11333fi
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11335$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11336with_gnu_ld=$lt_cv_prog_gnu_ld
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11347$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11348if ${lt_cv_path_NM+:} false; then :
11349  $as_echo_n "(cached) " >&6
11350else
11351  if test -n "$NM"; then
11352  # Let the user override the test.
11353  lt_cv_path_NM=$NM
11354else
11355  lt_nm_to_check=${ac_tool_prefix}nm
11356  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11357    lt_nm_to_check="$lt_nm_to_check nm"
11358  fi
11359  for lt_tmp_nm in $lt_nm_to_check; do
11360    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11361    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11362      IFS=$lt_save_ifs
11363      test -z "$ac_dir" && ac_dir=.
11364      tmp_nm=$ac_dir/$lt_tmp_nm
11365      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11366	# Check to see if the nm accepts a BSD-compat flag.
11367	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11368	#   nm: unknown option "B" ignored
11369	# Tru64's nm complains that /dev/null is an invalid object file
11370	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11371	case $build_os in
11372	mingw*) lt_bad_file=conftest.nm/nofile ;;
11373	*) lt_bad_file=/dev/null ;;
11374	esac
11375	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11376	*$lt_bad_file* | *'Invalid file or object type'*)
11377	  lt_cv_path_NM="$tmp_nm -B"
11378	  break 2
11379	  ;;
11380	*)
11381	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11382	  */dev/null*)
11383	    lt_cv_path_NM="$tmp_nm -p"
11384	    break 2
11385	    ;;
11386	  *)
11387	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11388	    continue # so that we can try to find one that supports BSD flags
11389	    ;;
11390	  esac
11391	  ;;
11392	esac
11393      fi
11394    done
11395    IFS=$lt_save_ifs
11396  done
11397  : ${lt_cv_path_NM=no}
11398fi
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11401$as_echo "$lt_cv_path_NM" >&6; }
11402if test no != "$lt_cv_path_NM"; then
11403  NM=$lt_cv_path_NM
11404else
11405  # Didn't find any BSD compatible name lister, look for dumpbin.
11406  if test -n "$DUMPBIN"; then :
11407    # Let the user override the test.
11408  else
11409    if test -n "$ac_tool_prefix"; then
11410  for ac_prog in dumpbin "link -dump"
11411  do
11412    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415$as_echo_n "checking for $ac_word... " >&6; }
11416if ${ac_cv_prog_DUMPBIN+:} false; then :
11417  $as_echo_n "(cached) " >&6
11418else
11419  if test -n "$DUMPBIN"; then
11420  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11421else
11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423for as_dir in $PATH
11424do
11425  IFS=$as_save_IFS
11426  test -z "$as_dir" && as_dir=.
11427    for ac_exec_ext in '' $ac_executable_extensions; do
11428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431    break 2
11432  fi
11433done
11434  done
11435IFS=$as_save_IFS
11436
11437fi
11438fi
11439DUMPBIN=$ac_cv_prog_DUMPBIN
11440if test -n "$DUMPBIN"; then
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11442$as_echo "$DUMPBIN" >&6; }
11443else
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
11447
11448
11449    test -n "$DUMPBIN" && break
11450  done
11451fi
11452if test -z "$DUMPBIN"; then
11453  ac_ct_DUMPBIN=$DUMPBIN
11454  for ac_prog in dumpbin "link -dump"
11455do
11456  # Extract the first word of "$ac_prog", so it can be a program name with args.
11457set dummy $ac_prog; ac_word=$2
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459$as_echo_n "checking for $ac_word... " >&6; }
11460if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463  if test -n "$ac_ct_DUMPBIN"; then
11464  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11465else
11466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467for as_dir in $PATH
11468do
11469  IFS=$as_save_IFS
11470  test -z "$as_dir" && as_dir=.
11471    for ac_exec_ext in '' $ac_executable_extensions; do
11472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475    break 2
11476  fi
11477done
11478  done
11479IFS=$as_save_IFS
11480
11481fi
11482fi
11483ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11484if test -n "$ac_ct_DUMPBIN"; then
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11486$as_echo "$ac_ct_DUMPBIN" >&6; }
11487else
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489$as_echo "no" >&6; }
11490fi
11491
11492
11493  test -n "$ac_ct_DUMPBIN" && break
11494done
11495
11496  if test "x$ac_ct_DUMPBIN" = x; then
11497    DUMPBIN=":"
11498  else
11499    case $cross_compiling:$ac_tool_warned in
11500yes:)
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11503ac_tool_warned=yes ;;
11504esac
11505    DUMPBIN=$ac_ct_DUMPBIN
11506  fi
11507fi
11508
11509    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11510    *COFF*)
11511      DUMPBIN="$DUMPBIN -symbols -headers"
11512      ;;
11513    *)
11514      DUMPBIN=:
11515      ;;
11516    esac
11517  fi
11518
11519  if test : != "$DUMPBIN"; then
11520    NM=$DUMPBIN
11521  fi
11522fi
11523test -z "$NM" && NM=nm
11524
11525
11526
11527
11528
11529
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11531$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11532if ${lt_cv_nm_interface+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  lt_cv_nm_interface="BSD nm"
11536  echo "int some_variable = 0;" > conftest.$ac_ext
11537  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11538  (eval "$ac_compile" 2>conftest.err)
11539  cat conftest.err >&5
11540  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11541  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11542  cat conftest.err >&5
11543  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11544  cat conftest.out >&5
11545  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11546    lt_cv_nm_interface="MS dumpbin"
11547  fi
11548  rm -f conftest*
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11551$as_echo "$lt_cv_nm_interface" >&6; }
11552
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11554$as_echo_n "checking whether ln -s works... " >&6; }
11555LN_S=$as_ln_s
11556if test "$LN_S" = "ln -s"; then
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11558$as_echo "yes" >&6; }
11559else
11560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11561$as_echo "no, using $LN_S" >&6; }
11562fi
11563
11564# find the maximum length of command line arguments
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11566$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11567if ${lt_cv_sys_max_cmd_len+:} false; then :
11568  $as_echo_n "(cached) " >&6
11569else
11570    i=0
11571  teststring=ABCD
11572
11573  case $build_os in
11574  msdosdjgpp*)
11575    # On DJGPP, this test can blow up pretty badly due to problems in libc
11576    # (any single argument exceeding 2000 bytes causes a buffer overrun
11577    # during glob expansion).  Even if it were fixed, the result of this
11578    # check would be larger than it should be.
11579    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11580    ;;
11581
11582  gnu*)
11583    # Under GNU Hurd, this test is not required because there is
11584    # no limit to the length of command line arguments.
11585    # Libtool will interpret -1 as no limit whatsoever
11586    lt_cv_sys_max_cmd_len=-1;
11587    ;;
11588
11589  cygwin* | mingw* | cegcc*)
11590    # On Win9x/ME, this test blows up -- it succeeds, but takes
11591    # about 5 minutes as the teststring grows exponentially.
11592    # Worse, since 9x/ME are not pre-emptively multitasking,
11593    # you end up with a "frozen" computer, even though with patience
11594    # the test eventually succeeds (with a max line length of 256k).
11595    # Instead, let's just punt: use the minimum linelength reported by
11596    # all of the supported platforms: 8192 (on NT/2K/XP).
11597    lt_cv_sys_max_cmd_len=8192;
11598    ;;
11599
11600  mint*)
11601    # On MiNT this can take a long time and run out of memory.
11602    lt_cv_sys_max_cmd_len=8192;
11603    ;;
11604
11605  amigaos*)
11606    # On AmigaOS with pdksh, this test takes hours, literally.
11607    # So we just punt and use a minimum line length of 8192.
11608    lt_cv_sys_max_cmd_len=8192;
11609    ;;
11610
11611  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11612    # This has been around since 386BSD, at least.  Likely further.
11613    if test -x /sbin/sysctl; then
11614      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11615    elif test -x /usr/sbin/sysctl; then
11616      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11617    else
11618      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11619    fi
11620    # And add a safety zone
11621    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11622    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11623    ;;
11624
11625  interix*)
11626    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11627    lt_cv_sys_max_cmd_len=196608
11628    ;;
11629
11630  os2*)
11631    # The test takes a long time on OS/2.
11632    lt_cv_sys_max_cmd_len=8192
11633    ;;
11634
11635  osf*)
11636    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11637    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11638    # nice to cause kernel panics so lets avoid the loop below.
11639    # First set a reasonable default.
11640    lt_cv_sys_max_cmd_len=16384
11641    #
11642    if test -x /sbin/sysconfig; then
11643      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11644        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11645      esac
11646    fi
11647    ;;
11648  sco3.2v5*)
11649    lt_cv_sys_max_cmd_len=102400
11650    ;;
11651  sysv5* | sco5v6* | sysv4.2uw2*)
11652    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11653    if test -n "$kargmax"; then
11654      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11655    else
11656      lt_cv_sys_max_cmd_len=32768
11657    fi
11658    ;;
11659  *)
11660    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11661    if test -n "$lt_cv_sys_max_cmd_len" && \
11662       test undefined != "$lt_cv_sys_max_cmd_len"; then
11663      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11664      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11665    else
11666      # Make teststring a little bigger before we do anything with it.
11667      # a 1K string should be a reasonable start.
11668      for i in 1 2 3 4 5 6 7 8; do
11669        teststring=$teststring$teststring
11670      done
11671      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11672      # If test is not a shell built-in, we'll probably end up computing a
11673      # maximum length that is only half of the actual maximum length, but
11674      # we can't tell.
11675      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11676	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11677	      test 17 != "$i" # 1/2 MB should be enough
11678      do
11679        i=`expr $i + 1`
11680        teststring=$teststring$teststring
11681      done
11682      # Only check the string length outside the loop.
11683      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11684      teststring=
11685      # Add a significant safety factor because C++ compilers can tack on
11686      # massive amounts of additional arguments before passing them to the
11687      # linker.  It appears as though 1/2 is a usable value.
11688      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11689    fi
11690    ;;
11691  esac
11692
11693fi
11694
11695if test -n "$lt_cv_sys_max_cmd_len"; then
11696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11697$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11698else
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11700$as_echo "none" >&6; }
11701fi
11702max_cmd_len=$lt_cv_sys_max_cmd_len
11703
11704
11705
11706
11707
11708
11709: ${CP="cp -f"}
11710: ${MV="mv -f"}
11711: ${RM="rm -f"}
11712
11713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11714  lt_unset=unset
11715else
11716  lt_unset=false
11717fi
11718
11719
11720
11721
11722
11723# test EBCDIC or ASCII
11724case `echo X|tr X '\101'` in
11725 A) # ASCII based system
11726    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11727  lt_SP2NL='tr \040 \012'
11728  lt_NL2SP='tr \015\012 \040\040'
11729  ;;
11730 *) # EBCDIC based system
11731  lt_SP2NL='tr \100 \n'
11732  lt_NL2SP='tr \r\n \100\100'
11733  ;;
11734esac
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11745$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11746if ${lt_cv_to_host_file_cmd+:} false; then :
11747  $as_echo_n "(cached) " >&6
11748else
11749  case $host in
11750  *-*-mingw* )
11751    case $build in
11752      *-*-mingw* ) # actually msys
11753        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11754        ;;
11755      *-*-cygwin* )
11756        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11757        ;;
11758      * ) # otherwise, assume *nix
11759        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11760        ;;
11761    esac
11762    ;;
11763  *-*-cygwin* )
11764    case $build in
11765      *-*-mingw* ) # actually msys
11766        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11767        ;;
11768      *-*-cygwin* )
11769        lt_cv_to_host_file_cmd=func_convert_file_noop
11770        ;;
11771      * ) # otherwise, assume *nix
11772        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11773        ;;
11774    esac
11775    ;;
11776  * ) # unhandled hosts (and "normal" native builds)
11777    lt_cv_to_host_file_cmd=func_convert_file_noop
11778    ;;
11779esac
11780
11781fi
11782
11783to_host_file_cmd=$lt_cv_to_host_file_cmd
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11785$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11786
11787
11788
11789
11790
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11792$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11793if ${lt_cv_to_tool_file_cmd+:} false; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  #assume ordinary cross tools, or native build.
11797lt_cv_to_tool_file_cmd=func_convert_file_noop
11798case $host in
11799  *-*-mingw* )
11800    case $build in
11801      *-*-mingw* ) # actually msys
11802        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11803        ;;
11804    esac
11805    ;;
11806esac
11807
11808fi
11809
11810to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11812$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11813
11814
11815
11816
11817
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11819$as_echo_n "checking for $LD option to reload object files... " >&6; }
11820if ${lt_cv_ld_reload_flag+:} false; then :
11821  $as_echo_n "(cached) " >&6
11822else
11823  lt_cv_ld_reload_flag='-r'
11824fi
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11826$as_echo "$lt_cv_ld_reload_flag" >&6; }
11827reload_flag=$lt_cv_ld_reload_flag
11828case $reload_flag in
11829"" | " "*) ;;
11830*) reload_flag=" $reload_flag" ;;
11831esac
11832reload_cmds='$LD$reload_flag -o $output$reload_objs'
11833case $host_os in
11834  cygwin* | mingw* | pw32* | cegcc*)
11835    if test yes != "$GCC"; then
11836      reload_cmds=false
11837    fi
11838    ;;
11839  darwin*)
11840    if test yes = "$GCC"; then
11841      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11842    else
11843      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11844    fi
11845    ;;
11846esac
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856if test -n "$ac_tool_prefix"; then
11857  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11858set dummy ${ac_tool_prefix}objdump; ac_word=$2
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860$as_echo_n "checking for $ac_word... " >&6; }
11861if ${ac_cv_prog_OBJDUMP+:} false; then :
11862  $as_echo_n "(cached) " >&6
11863else
11864  if test -n "$OBJDUMP"; then
11865  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11866else
11867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH
11869do
11870  IFS=$as_save_IFS
11871  test -z "$as_dir" && as_dir=.
11872    for ac_exec_ext in '' $ac_executable_extensions; do
11873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876    break 2
11877  fi
11878done
11879  done
11880IFS=$as_save_IFS
11881
11882fi
11883fi
11884OBJDUMP=$ac_cv_prog_OBJDUMP
11885if test -n "$OBJDUMP"; then
11886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11887$as_echo "$OBJDUMP" >&6; }
11888else
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
11891fi
11892
11893
11894fi
11895if test -z "$ac_cv_prog_OBJDUMP"; then
11896  ac_ct_OBJDUMP=$OBJDUMP
11897  # Extract the first word of "objdump", so it can be a program name with args.
11898set dummy objdump; ac_word=$2
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900$as_echo_n "checking for $ac_word... " >&6; }
11901if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11902  $as_echo_n "(cached) " >&6
11903else
11904  if test -n "$ac_ct_OBJDUMP"; then
11905  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11906else
11907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910  IFS=$as_save_IFS
11911  test -z "$as_dir" && as_dir=.
11912    for ac_exec_ext in '' $ac_executable_extensions; do
11913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916    break 2
11917  fi
11918done
11919  done
11920IFS=$as_save_IFS
11921
11922fi
11923fi
11924ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11925if test -n "$ac_ct_OBJDUMP"; then
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11927$as_echo "$ac_ct_OBJDUMP" >&6; }
11928else
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
11931fi
11932
11933  if test "x$ac_ct_OBJDUMP" = x; then
11934    OBJDUMP="false"
11935  else
11936    case $cross_compiling:$ac_tool_warned in
11937yes:)
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940ac_tool_warned=yes ;;
11941esac
11942    OBJDUMP=$ac_ct_OBJDUMP
11943  fi
11944else
11945  OBJDUMP="$ac_cv_prog_OBJDUMP"
11946fi
11947
11948test -z "$OBJDUMP" && OBJDUMP=objdump
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11959$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11960if ${lt_cv_deplibs_check_method+:} false; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  lt_cv_file_magic_cmd='$MAGIC_CMD'
11964lt_cv_file_magic_test_file=
11965lt_cv_deplibs_check_method='unknown'
11966# Need to set the preceding variable on all platforms that support
11967# interlibrary dependencies.
11968# 'none' -- dependencies not supported.
11969# 'unknown' -- same as none, but documents that we really don't know.
11970# 'pass_all' -- all dependencies passed with no checks.
11971# 'test_compile' -- check by making test program.
11972# 'file_magic [[regex]]' -- check by looking for files in library path
11973# that responds to the $file_magic_cmd with a given extended regex.
11974# If you have 'file' or equivalent on your system and you're not sure
11975# whether 'pass_all' will *always* work, you probably want this one.
11976
11977case $host_os in
11978aix[4-9]*)
11979  lt_cv_deplibs_check_method=pass_all
11980  ;;
11981
11982beos*)
11983  lt_cv_deplibs_check_method=pass_all
11984  ;;
11985
11986bsdi[45]*)
11987  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11988  lt_cv_file_magic_cmd='/usr/bin/file -L'
11989  lt_cv_file_magic_test_file=/shlib/libc.so
11990  ;;
11991
11992cygwin*)
11993  # func_win32_libid is a shell function defined in ltmain.sh
11994  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11995  lt_cv_file_magic_cmd='func_win32_libid'
11996  ;;
11997
11998mingw* | pw32*)
11999  # Base MSYS/MinGW do not provide the 'file' command needed by
12000  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12001  # unless we find 'file', for example because we are cross-compiling.
12002  if ( file / ) >/dev/null 2>&1; then
12003    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12004    lt_cv_file_magic_cmd='func_win32_libid'
12005  else
12006    # Keep this pattern in sync with the one in func_win32_libid.
12007    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12008    lt_cv_file_magic_cmd='$OBJDUMP -f'
12009  fi
12010  ;;
12011
12012cegcc*)
12013  # use the weaker test based on 'objdump'. See mingw*.
12014  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12015  lt_cv_file_magic_cmd='$OBJDUMP -f'
12016  ;;
12017
12018darwin* | rhapsody*)
12019  lt_cv_deplibs_check_method=pass_all
12020  ;;
12021
12022freebsd* | dragonfly*)
12023  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12024    case $host_cpu in
12025    i*86 )
12026      # Not sure whether the presence of OpenBSD here was a mistake.
12027      # Let's accept both of them until this is cleared up.
12028      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12029      lt_cv_file_magic_cmd=/usr/bin/file
12030      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12031      ;;
12032    esac
12033  else
12034    lt_cv_deplibs_check_method=pass_all
12035  fi
12036  ;;
12037
12038haiku*)
12039  lt_cv_deplibs_check_method=pass_all
12040  ;;
12041
12042hpux10.20* | hpux11*)
12043  lt_cv_file_magic_cmd=/usr/bin/file
12044  case $host_cpu in
12045  ia64*)
12046    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12047    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12048    ;;
12049  hppa*64*)
12050    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]'
12051    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12052    ;;
12053  *)
12054    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12055    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12056    ;;
12057  esac
12058  ;;
12059
12060interix[3-9]*)
12061  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12062  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12063  ;;
12064
12065irix5* | irix6* | nonstopux*)
12066  case $LD in
12067  *-32|*"-32 ") libmagic=32-bit;;
12068  *-n32|*"-n32 ") libmagic=N32;;
12069  *-64|*"-64 ") libmagic=64-bit;;
12070  *) libmagic=never-match;;
12071  esac
12072  lt_cv_deplibs_check_method=pass_all
12073  ;;
12074
12075# This must be glibc/ELF.
12076linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12077  lt_cv_deplibs_check_method=pass_all
12078  ;;
12079
12080netbsd* | netbsdelf*-gnu)
12081  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12082    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12083  else
12084    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12085  fi
12086  ;;
12087
12088newos6*)
12089  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12090  lt_cv_file_magic_cmd=/usr/bin/file
12091  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12092  ;;
12093
12094*nto* | *qnx*)
12095  lt_cv_deplibs_check_method=pass_all
12096  ;;
12097
12098openbsd* | bitrig*)
12099  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12100    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12101  else
12102    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12103  fi
12104  ;;
12105
12106osf3* | osf4* | osf5*)
12107  lt_cv_deplibs_check_method=pass_all
12108  ;;
12109
12110rdos*)
12111  lt_cv_deplibs_check_method=pass_all
12112  ;;
12113
12114solaris*)
12115  lt_cv_deplibs_check_method=pass_all
12116  ;;
12117
12118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12119  lt_cv_deplibs_check_method=pass_all
12120  ;;
12121
12122sysv4 | sysv4.3*)
12123  case $host_vendor in
12124  motorola)
12125    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]'
12126    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12127    ;;
12128  ncr)
12129    lt_cv_deplibs_check_method=pass_all
12130    ;;
12131  sequent)
12132    lt_cv_file_magic_cmd='/bin/file'
12133    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12134    ;;
12135  sni)
12136    lt_cv_file_magic_cmd='/bin/file'
12137    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12138    lt_cv_file_magic_test_file=/lib/libc.so
12139    ;;
12140  siemens)
12141    lt_cv_deplibs_check_method=pass_all
12142    ;;
12143  pc)
12144    lt_cv_deplibs_check_method=pass_all
12145    ;;
12146  esac
12147  ;;
12148
12149tpf*)
12150  lt_cv_deplibs_check_method=pass_all
12151  ;;
12152os2*)
12153  lt_cv_deplibs_check_method=pass_all
12154  ;;
12155esac
12156
12157fi
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12159$as_echo "$lt_cv_deplibs_check_method" >&6; }
12160
12161file_magic_glob=
12162want_nocaseglob=no
12163if test "$build" = "$host"; then
12164  case $host_os in
12165  mingw* | pw32*)
12166    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12167      want_nocaseglob=yes
12168    else
12169      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12170    fi
12171    ;;
12172  esac
12173fi
12174
12175file_magic_cmd=$lt_cv_file_magic_cmd
12176deplibs_check_method=$lt_cv_deplibs_check_method
12177test -z "$deplibs_check_method" && deplibs_check_method=unknown
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200if test -n "$ac_tool_prefix"; then
12201  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12202set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if ${ac_cv_prog_DLLTOOL+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  if test -n "$DLLTOOL"; then
12209  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214  IFS=$as_save_IFS
12215  test -z "$as_dir" && as_dir=.
12216    for ac_exec_ext in '' $ac_executable_extensions; do
12217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220    break 2
12221  fi
12222done
12223  done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228DLLTOOL=$ac_cv_prog_DLLTOOL
12229if test -n "$DLLTOOL"; then
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12231$as_echo "$DLLTOOL" >&6; }
12232else
12233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238fi
12239if test -z "$ac_cv_prog_DLLTOOL"; then
12240  ac_ct_DLLTOOL=$DLLTOOL
12241  # Extract the first word of "dlltool", so it can be a program name with args.
12242set dummy dlltool; ac_word=$2
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
12245if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12246  $as_echo_n "(cached) " >&6
12247else
12248  if test -n "$ac_ct_DLLTOOL"; then
12249  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254  IFS=$as_save_IFS
12255  test -z "$as_dir" && as_dir=.
12256    for ac_exec_ext in '' $ac_executable_extensions; do
12257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260    break 2
12261  fi
12262done
12263  done
12264IFS=$as_save_IFS
12265
12266fi
12267fi
12268ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12269if test -n "$ac_ct_DLLTOOL"; then
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12271$as_echo "$ac_ct_DLLTOOL" >&6; }
12272else
12273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
12275fi
12276
12277  if test "x$ac_ct_DLLTOOL" = x; then
12278    DLLTOOL="false"
12279  else
12280    case $cross_compiling:$ac_tool_warned in
12281yes:)
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12284ac_tool_warned=yes ;;
12285esac
12286    DLLTOOL=$ac_ct_DLLTOOL
12287  fi
12288else
12289  DLLTOOL="$ac_cv_prog_DLLTOOL"
12290fi
12291
12292test -z "$DLLTOOL" && DLLTOOL=dlltool
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12304$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12306  $as_echo_n "(cached) " >&6
12307else
12308  lt_cv_sharedlib_from_linklib_cmd='unknown'
12309
12310case $host_os in
12311cygwin* | mingw* | pw32* | cegcc*)
12312  # two different shell functions defined in ltmain.sh;
12313  # decide which one to use based on capabilities of $DLLTOOL
12314  case `$DLLTOOL --help 2>&1` in
12315  *--identify-strict*)
12316    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12317    ;;
12318  *)
12319    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12320    ;;
12321  esac
12322  ;;
12323*)
12324  # fallback: assume linklib IS sharedlib
12325  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12326  ;;
12327esac
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12334
12335
12336
12337
12338
12339
12340
12341if test -n "$ac_tool_prefix"; then
12342  for ac_prog in ar
12343  do
12344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if ${ac_cv_prog_AR+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  if test -n "$AR"; then
12352  ac_cv_prog_AR="$AR" # Let the user override the test.
12353else
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357  IFS=$as_save_IFS
12358  test -z "$as_dir" && as_dir=.
12359    for ac_exec_ext in '' $ac_executable_extensions; do
12360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363    break 2
12364  fi
12365done
12366  done
12367IFS=$as_save_IFS
12368
12369fi
12370fi
12371AR=$ac_cv_prog_AR
12372if test -n "$AR"; then
12373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12374$as_echo "$AR" >&6; }
12375else
12376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
12378fi
12379
12380
12381    test -n "$AR" && break
12382  done
12383fi
12384if test -z "$AR"; then
12385  ac_ct_AR=$AR
12386  for ac_prog in ar
12387do
12388  # Extract the first word of "$ac_prog", so it can be a program name with args.
12389set dummy $ac_prog; ac_word=$2
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
12392if ${ac_cv_prog_ac_ct_AR+:} false; then :
12393  $as_echo_n "(cached) " >&6
12394else
12395  if test -n "$ac_ct_AR"; then
12396  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12397else
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401  IFS=$as_save_IFS
12402  test -z "$as_dir" && as_dir=.
12403    for ac_exec_ext in '' $ac_executable_extensions; do
12404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12405    ac_cv_prog_ac_ct_AR="$ac_prog"
12406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407    break 2
12408  fi
12409done
12410  done
12411IFS=$as_save_IFS
12412
12413fi
12414fi
12415ac_ct_AR=$ac_cv_prog_ac_ct_AR
12416if test -n "$ac_ct_AR"; then
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12418$as_echo "$ac_ct_AR" >&6; }
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
12422fi
12423
12424
12425  test -n "$ac_ct_AR" && break
12426done
12427
12428  if test "x$ac_ct_AR" = x; then
12429    AR="false"
12430  else
12431    case $cross_compiling:$ac_tool_warned in
12432yes:)
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12435ac_tool_warned=yes ;;
12436esac
12437    AR=$ac_ct_AR
12438  fi
12439fi
12440
12441: ${AR=ar}
12442: ${AR_FLAGS=cru}
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12455$as_echo_n "checking for archiver @FILE support... " >&6; }
12456if ${lt_cv_ar_at_file+:} false; then :
12457  $as_echo_n "(cached) " >&6
12458else
12459  lt_cv_ar_at_file=no
12460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461/* end confdefs.h.  */
12462
12463int
12464main ()
12465{
12466
12467  ;
12468  return 0;
12469}
12470_ACEOF
12471if ac_fn_c_try_compile "$LINENO"; then :
12472  echo conftest.$ac_objext > conftest.lst
12473      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12474      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12475  (eval $lt_ar_try) 2>&5
12476  ac_status=$?
12477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478  test $ac_status = 0; }
12479      if test 0 -eq "$ac_status"; then
12480	# Ensure the archiver fails upon bogus file names.
12481	rm -f conftest.$ac_objext libconftest.a
12482	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12483  (eval $lt_ar_try) 2>&5
12484  ac_status=$?
12485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486  test $ac_status = 0; }
12487	if test 0 -ne "$ac_status"; then
12488          lt_cv_ar_at_file=@
12489        fi
12490      fi
12491      rm -f conftest.* libconftest.a
12492
12493fi
12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12498$as_echo "$lt_cv_ar_at_file" >&6; }
12499
12500if test no = "$lt_cv_ar_at_file"; then
12501  archiver_list_spec=
12502else
12503  archiver_list_spec=$lt_cv_ar_at_file
12504fi
12505
12506
12507
12508
12509
12510
12511
12512if test -n "$ac_tool_prefix"; then
12513  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12514set dummy ${ac_tool_prefix}strip; ac_word=$2
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
12517if ${ac_cv_prog_STRIP+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  if test -n "$STRIP"; then
12521  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526  IFS=$as_save_IFS
12527  test -z "$as_dir" && as_dir=.
12528    for ac_exec_ext in '' $ac_executable_extensions; do
12529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532    break 2
12533  fi
12534done
12535  done
12536IFS=$as_save_IFS
12537
12538fi
12539fi
12540STRIP=$ac_cv_prog_STRIP
12541if test -n "$STRIP"; then
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12543$as_echo "$STRIP" >&6; }
12544else
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550fi
12551if test -z "$ac_cv_prog_STRIP"; then
12552  ac_ct_STRIP=$STRIP
12553  # Extract the first word of "strip", so it can be a program name with args.
12554set dummy strip; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
12557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  if test -n "$ac_ct_STRIP"; then
12561  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566  IFS=$as_save_IFS
12567  test -z "$as_dir" && as_dir=.
12568    for ac_exec_ext in '' $ac_executable_extensions; do
12569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570    ac_cv_prog_ac_ct_STRIP="strip"
12571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572    break 2
12573  fi
12574done
12575  done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12581if test -n "$ac_ct_STRIP"; then
12582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12583$as_echo "$ac_ct_STRIP" >&6; }
12584else
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589  if test "x$ac_ct_STRIP" = x; then
12590    STRIP=":"
12591  else
12592    case $cross_compiling:$ac_tool_warned in
12593yes:)
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12596ac_tool_warned=yes ;;
12597esac
12598    STRIP=$ac_ct_STRIP
12599  fi
12600else
12601  STRIP="$ac_cv_prog_STRIP"
12602fi
12603
12604test -z "$STRIP" && STRIP=:
12605
12606
12607
12608
12609
12610
12611if test -n "$ac_tool_prefix"; then
12612  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615$as_echo_n "checking for $ac_word... " >&6; }
12616if ${ac_cv_prog_RANLIB+:} false; then :
12617  $as_echo_n "(cached) " >&6
12618else
12619  if test -n "$RANLIB"; then
12620  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12621else
12622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623for as_dir in $PATH
12624do
12625  IFS=$as_save_IFS
12626  test -z "$as_dir" && as_dir=.
12627    for ac_exec_ext in '' $ac_executable_extensions; do
12628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631    break 2
12632  fi
12633done
12634  done
12635IFS=$as_save_IFS
12636
12637fi
12638fi
12639RANLIB=$ac_cv_prog_RANLIB
12640if test -n "$RANLIB"; then
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12642$as_echo "$RANLIB" >&6; }
12643else
12644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
12646fi
12647
12648
12649fi
12650if test -z "$ac_cv_prog_RANLIB"; then
12651  ac_ct_RANLIB=$RANLIB
12652  # Extract the first word of "ranlib", so it can be a program name with args.
12653set dummy ranlib; ac_word=$2
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
12656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  if test -n "$ac_ct_RANLIB"; then
12660  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12661else
12662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $PATH
12664do
12665  IFS=$as_save_IFS
12666  test -z "$as_dir" && as_dir=.
12667    for ac_exec_ext in '' $ac_executable_extensions; do
12668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669    ac_cv_prog_ac_ct_RANLIB="ranlib"
12670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671    break 2
12672  fi
12673done
12674  done
12675IFS=$as_save_IFS
12676
12677fi
12678fi
12679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12680if test -n "$ac_ct_RANLIB"; then
12681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12682$as_echo "$ac_ct_RANLIB" >&6; }
12683else
12684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686fi
12687
12688  if test "x$ac_ct_RANLIB" = x; then
12689    RANLIB=":"
12690  else
12691    case $cross_compiling:$ac_tool_warned in
12692yes:)
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12695ac_tool_warned=yes ;;
12696esac
12697    RANLIB=$ac_ct_RANLIB
12698  fi
12699else
12700  RANLIB="$ac_cv_prog_RANLIB"
12701fi
12702
12703test -z "$RANLIB" && RANLIB=:
12704
12705
12706
12707
12708
12709
12710# Determine commands to create old-style static archives.
12711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12712old_postinstall_cmds='chmod 644 $oldlib'
12713old_postuninstall_cmds=
12714
12715if test -n "$RANLIB"; then
12716  case $host_os in
12717  bitrig* | openbsd*)
12718    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12719    ;;
12720  *)
12721    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12722    ;;
12723  esac
12724  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12725fi
12726
12727case $host_os in
12728  darwin*)
12729    lock_old_archive_extraction=yes ;;
12730  *)
12731    lock_old_archive_extraction=no ;;
12732esac
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772# If no C compiler was specified, use CC.
12773LTCC=${LTCC-"$CC"}
12774
12775# If no C compiler flags were specified, use CFLAGS.
12776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12777
12778# Allow CC to be a program name with arguments.
12779compiler=$CC
12780
12781
12782# Check for command to grab the raw symbol name followed by C symbol from nm.
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12785if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12786  $as_echo_n "(cached) " >&6
12787else
12788
12789# These are sane defaults that work on at least a few old systems.
12790# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12791
12792# Character class describing NM global symbol codes.
12793symcode='[BCDEGRST]'
12794
12795# Regexp to match symbols that can be accessed directly from C.
12796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12797
12798# Define system-specific variables.
12799case $host_os in
12800aix*)
12801  symcode='[BCDT]'
12802  ;;
12803cygwin* | mingw* | pw32* | cegcc*)
12804  symcode='[ABCDGISTW]'
12805  ;;
12806hpux*)
12807  if test ia64 = "$host_cpu"; then
12808    symcode='[ABCDEGRST]'
12809  fi
12810  ;;
12811irix* | nonstopux*)
12812  symcode='[BCDEGRST]'
12813  ;;
12814osf*)
12815  symcode='[BCDEGQRST]'
12816  ;;
12817solaris*)
12818  symcode='[BDRT]'
12819  ;;
12820sco3.2v5*)
12821  symcode='[DT]'
12822  ;;
12823sysv4.2uw2*)
12824  symcode='[DT]'
12825  ;;
12826sysv5* | sco5v6* | unixware* | OpenUNIX*)
12827  symcode='[ABDT]'
12828  ;;
12829sysv4)
12830  symcode='[DFNSTU]'
12831  ;;
12832esac
12833
12834# If we're using GNU nm, then use its standard symbol codes.
12835case `$NM -V 2>&1` in
12836*GNU* | *'with BFD'*)
12837  symcode='[ABCDGIRSTW]' ;;
12838esac
12839
12840if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12841  # Gets list of data symbols to import.
12842  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12843  # Adjust the below global symbol transforms to fixup imported variables.
12844  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12845  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12846  lt_c_name_lib_hook="\
12847  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12848  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12849else
12850  # Disable hooks by default.
12851  lt_cv_sys_global_symbol_to_import=
12852  lt_cdecl_hook=
12853  lt_c_name_hook=
12854  lt_c_name_lib_hook=
12855fi
12856
12857# Transform an extracted symbol line into a proper C declaration.
12858# Some systems (esp. on ia64) link data and code symbols differently,
12859# so use this general approach.
12860lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12861$lt_cdecl_hook\
12862" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12863" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12864
12865# Transform an extracted symbol line into symbol name and symbol address
12866lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12867$lt_c_name_hook\
12868" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12869" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12870
12871# Transform an extracted symbol line into symbol name with lib prefix and
12872# symbol address.
12873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12874$lt_c_name_lib_hook\
12875" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12876" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12877" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12878
12879# Handle CRLF in mingw tool chain
12880opt_cr=
12881case $build_os in
12882mingw*)
12883  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12884  ;;
12885esac
12886
12887# Try without a prefix underscore, then with it.
12888for ac_symprfx in "" "_"; do
12889
12890  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12891  symxfrm="\\1 $ac_symprfx\\2 \\2"
12892
12893  # Write the raw and C identifiers.
12894  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12895    # Fake it for dumpbin and say T for any non-static function,
12896    # D for any global variable and I for any imported variable.
12897    # Also find C++ and __fastcall symbols from MSVC++,
12898    # which start with @ or ?.
12899    lt_cv_sys_global_symbol_pipe="$AWK '"\
12900"     {last_section=section; section=\$ 3};"\
12901"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12902"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12903"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12904"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12905"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12906"     \$ 0!~/External *\|/{next};"\
12907"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12908"     {if(hide[section]) next};"\
12909"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12910"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12911"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12912"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12913"     ' prfx=^$ac_symprfx"
12914  else
12915    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12916  fi
12917  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12918
12919  # Check to see that the pipe works correctly.
12920  pipe_works=no
12921
12922  rm -f conftest*
12923  cat > conftest.$ac_ext <<_LT_EOF
12924#ifdef __cplusplus
12925extern "C" {
12926#endif
12927char nm_test_var;
12928void nm_test_func(void);
12929void nm_test_func(void){}
12930#ifdef __cplusplus
12931}
12932#endif
12933int main(){nm_test_var='a';nm_test_func();return(0);}
12934_LT_EOF
12935
12936  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12937  (eval $ac_compile) 2>&5
12938  ac_status=$?
12939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940  test $ac_status = 0; }; then
12941    # Now try to grab the symbols.
12942    nlist=conftest.nm
12943    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12944  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12945  ac_status=$?
12946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947  test $ac_status = 0; } && test -s "$nlist"; then
12948      # Try sorting and uniquifying the output.
12949      if sort "$nlist" | uniq > "$nlist"T; then
12950	mv -f "$nlist"T "$nlist"
12951      else
12952	rm -f "$nlist"T
12953      fi
12954
12955      # Make sure that we snagged all the symbols we need.
12956      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12957	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12958	  cat <<_LT_EOF > conftest.$ac_ext
12959/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12960#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12961/* DATA imports from DLLs on WIN32 can't be const, because runtime
12962   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12963# define LT_DLSYM_CONST
12964#elif defined __osf__
12965/* This system does not cope well with relocations in const data.  */
12966# define LT_DLSYM_CONST
12967#else
12968# define LT_DLSYM_CONST const
12969#endif
12970
12971#ifdef __cplusplus
12972extern "C" {
12973#endif
12974
12975_LT_EOF
12976	  # Now generate the symbol file.
12977	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12978
12979	  cat <<_LT_EOF >> conftest.$ac_ext
12980
12981/* The mapping between symbol names and symbols.  */
12982LT_DLSYM_CONST struct {
12983  const char *name;
12984  void       *address;
12985}
12986lt__PROGRAM__LTX_preloaded_symbols[] =
12987{
12988  { "@PROGRAM@", (void *) 0 },
12989_LT_EOF
12990	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12991	  cat <<\_LT_EOF >> conftest.$ac_ext
12992  {0, (void *) 0}
12993};
12994
12995/* This works around a problem in FreeBSD linker */
12996#ifdef FREEBSD_WORKAROUND
12997static const void *lt_preloaded_setup() {
12998  return lt__PROGRAM__LTX_preloaded_symbols;
12999}
13000#endif
13001
13002#ifdef __cplusplus
13003}
13004#endif
13005_LT_EOF
13006	  # Now try linking the two files.
13007	  mv conftest.$ac_objext conftstm.$ac_objext
13008	  lt_globsym_save_LIBS=$LIBS
13009	  lt_globsym_save_CFLAGS=$CFLAGS
13010	  LIBS=conftstm.$ac_objext
13011	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13012	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13013  (eval $ac_link) 2>&5
13014  ac_status=$?
13015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13017	    pipe_works=yes
13018	  fi
13019	  LIBS=$lt_globsym_save_LIBS
13020	  CFLAGS=$lt_globsym_save_CFLAGS
13021	else
13022	  echo "cannot find nm_test_func in $nlist" >&5
13023	fi
13024      else
13025	echo "cannot find nm_test_var in $nlist" >&5
13026      fi
13027    else
13028      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13029    fi
13030  else
13031    echo "$progname: failed program was:" >&5
13032    cat conftest.$ac_ext >&5
13033  fi
13034  rm -rf conftest* conftst*
13035
13036  # Do not use the global_symbol_pipe unless it works.
13037  if test yes = "$pipe_works"; then
13038    break
13039  else
13040    lt_cv_sys_global_symbol_pipe=
13041  fi
13042done
13043
13044fi
13045
13046if test -z "$lt_cv_sys_global_symbol_pipe"; then
13047  lt_cv_sys_global_symbol_to_cdecl=
13048fi
13049if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13051$as_echo "failed" >&6; }
13052else
13053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13054$as_echo "ok" >&6; }
13055fi
13056
13057# Response file support.
13058if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13059  nm_file_list_spec='@'
13060elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13061  nm_file_list_spec='@'
13062fi
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13101$as_echo_n "checking for sysroot... " >&6; }
13102
13103# Check whether --with-sysroot was given.
13104if test "${with_sysroot+set}" = set; then :
13105  withval=$with_sysroot;
13106else
13107  with_sysroot=no
13108fi
13109
13110
13111lt_sysroot=
13112case $with_sysroot in #(
13113 yes)
13114   if test yes = "$GCC"; then
13115     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13116   fi
13117   ;; #(
13118 /*)
13119   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13120   ;; #(
13121 no|'')
13122   ;; #(
13123 *)
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13125$as_echo "$with_sysroot" >&6; }
13126   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13127   ;;
13128esac
13129
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13131$as_echo "${lt_sysroot:-no}" >&6; }
13132
13133
13134
13135
13136
13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13138$as_echo_n "checking for a working dd... " >&6; }
13139if ${ac_cv_path_lt_DD+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142  printf 0123456789abcdef0123456789abcdef >conftest.i
13143cat conftest.i conftest.i >conftest2.i
13144: ${lt_DD:=$DD}
13145if test -z "$lt_DD"; then
13146  ac_path_lt_DD_found=false
13147  # Loop through the user's path and test for each of PROGNAME-LIST
13148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151  IFS=$as_save_IFS
13152  test -z "$as_dir" && as_dir=.
13153    for ac_prog in dd; do
13154    for ac_exec_ext in '' $ac_executable_extensions; do
13155      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13156      as_fn_executable_p "$ac_path_lt_DD" || continue
13157if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13158  cmp -s conftest.i conftest.out \
13159  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13160fi
13161      $ac_path_lt_DD_found && break 3
13162    done
13163  done
13164  done
13165IFS=$as_save_IFS
13166  if test -z "$ac_cv_path_lt_DD"; then
13167    :
13168  fi
13169else
13170  ac_cv_path_lt_DD=$lt_DD
13171fi
13172
13173rm -f conftest.i conftest2.i conftest.out
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13176$as_echo "$ac_cv_path_lt_DD" >&6; }
13177
13178
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13180$as_echo_n "checking how to truncate binary pipes... " >&6; }
13181if ${lt_cv_truncate_bin+:} false; then :
13182  $as_echo_n "(cached) " >&6
13183else
13184  printf 0123456789abcdef0123456789abcdef >conftest.i
13185cat conftest.i conftest.i >conftest2.i
13186lt_cv_truncate_bin=
13187if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13188  cmp -s conftest.i conftest.out \
13189  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13190fi
13191rm -f conftest.i conftest2.i conftest.out
13192test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13193fi
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13195$as_echo "$lt_cv_truncate_bin" >&6; }
13196
13197
13198
13199
13200
13201
13202
13203# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13204func_cc_basename ()
13205{
13206    for cc_temp in $*""; do
13207      case $cc_temp in
13208        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13209        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13210        \-*) ;;
13211        *) break;;
13212      esac
13213    done
13214    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13215}
13216
13217# Check whether --enable-libtool-lock was given.
13218if test "${enable_libtool_lock+set}" = set; then :
13219  enableval=$enable_libtool_lock;
13220fi
13221
13222test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13223
13224# Some flags need to be propagated to the compiler or linker for good
13225# libtool support.
13226case $host in
13227ia64-*-hpux*)
13228  # Find out what ABI is being produced by ac_compile, and set mode
13229  # options accordingly.
13230  echo 'int i;' > conftest.$ac_ext
13231  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13232  (eval $ac_compile) 2>&5
13233  ac_status=$?
13234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235  test $ac_status = 0; }; then
13236    case `/usr/bin/file conftest.$ac_objext` in
13237      *ELF-32*)
13238	HPUX_IA64_MODE=32
13239	;;
13240      *ELF-64*)
13241	HPUX_IA64_MODE=64
13242	;;
13243    esac
13244  fi
13245  rm -rf conftest*
13246  ;;
13247*-*-irix6*)
13248  # Find out what ABI is being produced by ac_compile, and set linker
13249  # options accordingly.
13250  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13252  (eval $ac_compile) 2>&5
13253  ac_status=$?
13254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255  test $ac_status = 0; }; then
13256    if test yes = "$lt_cv_prog_gnu_ld"; then
13257      case `/usr/bin/file conftest.$ac_objext` in
13258	*32-bit*)
13259	  LD="${LD-ld} -melf32bsmip"
13260	  ;;
13261	*N32*)
13262	  LD="${LD-ld} -melf32bmipn32"
13263	  ;;
13264	*64-bit*)
13265	  LD="${LD-ld} -melf64bmip"
13266	;;
13267      esac
13268    else
13269      case `/usr/bin/file conftest.$ac_objext` in
13270	*32-bit*)
13271	  LD="${LD-ld} -32"
13272	  ;;
13273	*N32*)
13274	  LD="${LD-ld} -n32"
13275	  ;;
13276	*64-bit*)
13277	  LD="${LD-ld} -64"
13278	  ;;
13279      esac
13280    fi
13281  fi
13282  rm -rf conftest*
13283  ;;
13284
13285mips64*-*linux*)
13286  # Find out what ABI is being produced by ac_compile, and set linker
13287  # options accordingly.
13288  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13290  (eval $ac_compile) 2>&5
13291  ac_status=$?
13292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293  test $ac_status = 0; }; then
13294    emul=elf
13295    case `/usr/bin/file conftest.$ac_objext` in
13296      *32-bit*)
13297	emul="${emul}32"
13298	;;
13299      *64-bit*)
13300	emul="${emul}64"
13301	;;
13302    esac
13303    case `/usr/bin/file conftest.$ac_objext` in
13304      *MSB*)
13305	emul="${emul}btsmip"
13306	;;
13307      *LSB*)
13308	emul="${emul}ltsmip"
13309	;;
13310    esac
13311    case `/usr/bin/file conftest.$ac_objext` in
13312      *N32*)
13313	emul="${emul}n32"
13314	;;
13315    esac
13316    LD="${LD-ld} -m $emul"
13317  fi
13318  rm -rf conftest*
13319  ;;
13320
13321x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13322s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13323  # Find out what ABI is being produced by ac_compile, and set linker
13324  # options accordingly.  Note that the listed cases only cover the
13325  # situations where additional linker options are needed (such as when
13326  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13327  # vice versa); the common cases where no linker options are needed do
13328  # not appear in the list.
13329  echo 'int i;' > conftest.$ac_ext
13330  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13331  (eval $ac_compile) 2>&5
13332  ac_status=$?
13333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334  test $ac_status = 0; }; then
13335    case `/usr/bin/file conftest.o` in
13336      *32-bit*)
13337	case $host in
13338	  x86_64-*kfreebsd*-gnu)
13339	    LD="${LD-ld} -m elf_i386_fbsd"
13340	    ;;
13341	  x86_64-*linux*)
13342	    case `/usr/bin/file conftest.o` in
13343	      *x86-64*)
13344		LD="${LD-ld} -m elf32_x86_64"
13345		;;
13346	      *)
13347		LD="${LD-ld} -m elf_i386"
13348		;;
13349	    esac
13350	    ;;
13351	  powerpc64le-*linux*)
13352	    LD="${LD-ld} -m elf32lppclinux"
13353	    ;;
13354	  powerpc64-*linux*)
13355	    LD="${LD-ld} -m elf32ppclinux"
13356	    ;;
13357	  s390x-*linux*)
13358	    LD="${LD-ld} -m elf_s390"
13359	    ;;
13360	  sparc64-*linux*)
13361	    LD="${LD-ld} -m elf32_sparc"
13362	    ;;
13363	esac
13364	;;
13365      *64-bit*)
13366	case $host in
13367	  x86_64-*kfreebsd*-gnu)
13368	    LD="${LD-ld} -m elf_x86_64_fbsd"
13369	    ;;
13370	  x86_64-*linux*)
13371	    LD="${LD-ld} -m elf_x86_64"
13372	    ;;
13373	  powerpcle-*linux*)
13374	    LD="${LD-ld} -m elf64lppc"
13375	    ;;
13376	  powerpc-*linux*)
13377	    LD="${LD-ld} -m elf64ppc"
13378	    ;;
13379	  s390*-*linux*|s390*-*tpf*)
13380	    LD="${LD-ld} -m elf64_s390"
13381	    ;;
13382	  sparc*-*linux*)
13383	    LD="${LD-ld} -m elf64_sparc"
13384	    ;;
13385	esac
13386	;;
13387    esac
13388  fi
13389  rm -rf conftest*
13390  ;;
13391
13392*-*-sco3.2v5*)
13393  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13394  SAVE_CFLAGS=$CFLAGS
13395  CFLAGS="$CFLAGS -belf"
13396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13397$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13398if ${lt_cv_cc_needs_belf+:} false; then :
13399  $as_echo_n "(cached) " >&6
13400else
13401  ac_ext=c
13402ac_cpp='$CPP $CPPFLAGS'
13403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13405ac_compiler_gnu=$ac_cv_c_compiler_gnu
13406
13407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h.  */
13409
13410int
13411main ()
13412{
13413
13414  ;
13415  return 0;
13416}
13417_ACEOF
13418if ac_fn_c_try_link "$LINENO"; then :
13419  lt_cv_cc_needs_belf=yes
13420else
13421  lt_cv_cc_needs_belf=no
13422fi
13423rm -f core conftest.err conftest.$ac_objext \
13424    conftest$ac_exeext conftest.$ac_ext
13425     ac_ext=c
13426ac_cpp='$CPP $CPPFLAGS'
13427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429ac_compiler_gnu=$ac_cv_c_compiler_gnu
13430
13431fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13433$as_echo "$lt_cv_cc_needs_belf" >&6; }
13434  if test yes != "$lt_cv_cc_needs_belf"; then
13435    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13436    CFLAGS=$SAVE_CFLAGS
13437  fi
13438  ;;
13439*-*solaris*)
13440  # Find out what ABI is being produced by ac_compile, and set linker
13441  # options accordingly.
13442  echo 'int i;' > conftest.$ac_ext
13443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13444  (eval $ac_compile) 2>&5
13445  ac_status=$?
13446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13447  test $ac_status = 0; }; then
13448    case `/usr/bin/file conftest.o` in
13449    *64-bit*)
13450      case $lt_cv_prog_gnu_ld in
13451      yes*)
13452        case $host in
13453        i?86-*-solaris*|x86_64-*-solaris*)
13454          LD="${LD-ld} -m elf_x86_64"
13455          ;;
13456        sparc*-*-solaris*)
13457          LD="${LD-ld} -m elf64_sparc"
13458          ;;
13459        esac
13460        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13461        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13462          LD=${LD-ld}_sol2
13463        fi
13464        ;;
13465      *)
13466	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13467	  LD="${LD-ld} -64"
13468	fi
13469	;;
13470      esac
13471      ;;
13472    esac
13473  fi
13474  rm -rf conftest*
13475  ;;
13476esac
13477
13478need_locks=$enable_libtool_lock
13479
13480if test -n "$ac_tool_prefix"; then
13481  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13482set dummy ${ac_tool_prefix}mt; ac_word=$2
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484$as_echo_n "checking for $ac_word... " >&6; }
13485if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  if test -n "$MANIFEST_TOOL"; then
13489  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13490else
13491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492for as_dir in $PATH
13493do
13494  IFS=$as_save_IFS
13495  test -z "$as_dir" && as_dir=.
13496    for ac_exec_ext in '' $ac_executable_extensions; do
13497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500    break 2
13501  fi
13502done
13503  done
13504IFS=$as_save_IFS
13505
13506fi
13507fi
13508MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13509if test -n "$MANIFEST_TOOL"; then
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13511$as_echo "$MANIFEST_TOOL" >&6; }
13512else
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514$as_echo "no" >&6; }
13515fi
13516
13517
13518fi
13519if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13520  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13521  # Extract the first word of "mt", so it can be a program name with args.
13522set dummy mt; ac_word=$2
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524$as_echo_n "checking for $ac_word... " >&6; }
13525if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  if test -n "$ac_ct_MANIFEST_TOOL"; then
13529  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13530else
13531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532for as_dir in $PATH
13533do
13534  IFS=$as_save_IFS
13535  test -z "$as_dir" && as_dir=.
13536    for ac_exec_ext in '' $ac_executable_extensions; do
13537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13538    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540    break 2
13541  fi
13542done
13543  done
13544IFS=$as_save_IFS
13545
13546fi
13547fi
13548ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13549if test -n "$ac_ct_MANIFEST_TOOL"; then
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13551$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13552else
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
13555fi
13556
13557  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13558    MANIFEST_TOOL=":"
13559  else
13560    case $cross_compiling:$ac_tool_warned in
13561yes:)
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13564ac_tool_warned=yes ;;
13565esac
13566    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13567  fi
13568else
13569  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13570fi
13571
13572test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13574$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13575if ${lt_cv_path_mainfest_tool+:} false; then :
13576  $as_echo_n "(cached) " >&6
13577else
13578  lt_cv_path_mainfest_tool=no
13579  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13580  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13581  cat conftest.err >&5
13582  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13583    lt_cv_path_mainfest_tool=yes
13584  fi
13585  rm -f conftest*
13586fi
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13588$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13589if test yes != "$lt_cv_path_mainfest_tool"; then
13590  MANIFEST_TOOL=:
13591fi
13592
13593
13594
13595
13596
13597
13598  case $host_os in
13599    rhapsody* | darwin*)
13600    if test -n "$ac_tool_prefix"; then
13601  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13602set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604$as_echo_n "checking for $ac_word... " >&6; }
13605if ${ac_cv_prog_DSYMUTIL+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  if test -n "$DSYMUTIL"; then
13609  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13610else
13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612for as_dir in $PATH
13613do
13614  IFS=$as_save_IFS
13615  test -z "$as_dir" && as_dir=.
13616    for ac_exec_ext in '' $ac_executable_extensions; do
13617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13618    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13620    break 2
13621  fi
13622done
13623  done
13624IFS=$as_save_IFS
13625
13626fi
13627fi
13628DSYMUTIL=$ac_cv_prog_DSYMUTIL
13629if test -n "$DSYMUTIL"; then
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13631$as_echo "$DSYMUTIL" >&6; }
13632else
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635fi
13636
13637
13638fi
13639if test -z "$ac_cv_prog_DSYMUTIL"; then
13640  ac_ct_DSYMUTIL=$DSYMUTIL
13641  # Extract the first word of "dsymutil", so it can be a program name with args.
13642set dummy dsymutil; ac_word=$2
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644$as_echo_n "checking for $ac_word... " >&6; }
13645if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  if test -n "$ac_ct_DSYMUTIL"; then
13649  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13650else
13651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652for as_dir in $PATH
13653do
13654  IFS=$as_save_IFS
13655  test -z "$as_dir" && as_dir=.
13656    for ac_exec_ext in '' $ac_executable_extensions; do
13657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660    break 2
13661  fi
13662done
13663  done
13664IFS=$as_save_IFS
13665
13666fi
13667fi
13668ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13669if test -n "$ac_ct_DSYMUTIL"; then
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13671$as_echo "$ac_ct_DSYMUTIL" >&6; }
13672else
13673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674$as_echo "no" >&6; }
13675fi
13676
13677  if test "x$ac_ct_DSYMUTIL" = x; then
13678    DSYMUTIL=":"
13679  else
13680    case $cross_compiling:$ac_tool_warned in
13681yes:)
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13684ac_tool_warned=yes ;;
13685esac
13686    DSYMUTIL=$ac_ct_DSYMUTIL
13687  fi
13688else
13689  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13690fi
13691
13692    if test -n "$ac_tool_prefix"; then
13693  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13694set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696$as_echo_n "checking for $ac_word... " >&6; }
13697if ${ac_cv_prog_NMEDIT+:} false; then :
13698  $as_echo_n "(cached) " >&6
13699else
13700  if test -n "$NMEDIT"; then
13701  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13702else
13703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704for as_dir in $PATH
13705do
13706  IFS=$as_save_IFS
13707  test -z "$as_dir" && as_dir=.
13708    for ac_exec_ext in '' $ac_executable_extensions; do
13709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13710    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712    break 2
13713  fi
13714done
13715  done
13716IFS=$as_save_IFS
13717
13718fi
13719fi
13720NMEDIT=$ac_cv_prog_NMEDIT
13721if test -n "$NMEDIT"; then
13722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13723$as_echo "$NMEDIT" >&6; }
13724else
13725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726$as_echo "no" >&6; }
13727fi
13728
13729
13730fi
13731if test -z "$ac_cv_prog_NMEDIT"; then
13732  ac_ct_NMEDIT=$NMEDIT
13733  # Extract the first word of "nmedit", so it can be a program name with args.
13734set dummy nmedit; ac_word=$2
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736$as_echo_n "checking for $ac_word... " >&6; }
13737if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740  if test -n "$ac_ct_NMEDIT"; then
13741  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13742else
13743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744for as_dir in $PATH
13745do
13746  IFS=$as_save_IFS
13747  test -z "$as_dir" && as_dir=.
13748    for ac_exec_ext in '' $ac_executable_extensions; do
13749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13750    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752    break 2
13753  fi
13754done
13755  done
13756IFS=$as_save_IFS
13757
13758fi
13759fi
13760ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13761if test -n "$ac_ct_NMEDIT"; then
13762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13763$as_echo "$ac_ct_NMEDIT" >&6; }
13764else
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766$as_echo "no" >&6; }
13767fi
13768
13769  if test "x$ac_ct_NMEDIT" = x; then
13770    NMEDIT=":"
13771  else
13772    case $cross_compiling:$ac_tool_warned in
13773yes:)
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13776ac_tool_warned=yes ;;
13777esac
13778    NMEDIT=$ac_ct_NMEDIT
13779  fi
13780else
13781  NMEDIT="$ac_cv_prog_NMEDIT"
13782fi
13783
13784    if test -n "$ac_tool_prefix"; then
13785  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13786set dummy ${ac_tool_prefix}lipo; ac_word=$2
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788$as_echo_n "checking for $ac_word... " >&6; }
13789if ${ac_cv_prog_LIPO+:} false; then :
13790  $as_echo_n "(cached) " >&6
13791else
13792  if test -n "$LIPO"; then
13793  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13794else
13795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798  IFS=$as_save_IFS
13799  test -z "$as_dir" && as_dir=.
13800    for ac_exec_ext in '' $ac_executable_extensions; do
13801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13802    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804    break 2
13805  fi
13806done
13807  done
13808IFS=$as_save_IFS
13809
13810fi
13811fi
13812LIPO=$ac_cv_prog_LIPO
13813if test -n "$LIPO"; then
13814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13815$as_echo "$LIPO" >&6; }
13816else
13817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819fi
13820
13821
13822fi
13823if test -z "$ac_cv_prog_LIPO"; then
13824  ac_ct_LIPO=$LIPO
13825  # Extract the first word of "lipo", so it can be a program name with args.
13826set dummy lipo; ac_word=$2
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828$as_echo_n "checking for $ac_word... " >&6; }
13829if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  if test -n "$ac_ct_LIPO"; then
13833  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838  IFS=$as_save_IFS
13839  test -z "$as_dir" && as_dir=.
13840    for ac_exec_ext in '' $ac_executable_extensions; do
13841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842    ac_cv_prog_ac_ct_LIPO="lipo"
13843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844    break 2
13845  fi
13846done
13847  done
13848IFS=$as_save_IFS
13849
13850fi
13851fi
13852ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13853if test -n "$ac_ct_LIPO"; then
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13855$as_echo "$ac_ct_LIPO" >&6; }
13856else
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
13859fi
13860
13861  if test "x$ac_ct_LIPO" = x; then
13862    LIPO=":"
13863  else
13864    case $cross_compiling:$ac_tool_warned in
13865yes:)
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13868ac_tool_warned=yes ;;
13869esac
13870    LIPO=$ac_ct_LIPO
13871  fi
13872else
13873  LIPO="$ac_cv_prog_LIPO"
13874fi
13875
13876    if test -n "$ac_tool_prefix"; then
13877  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13878set dummy ${ac_tool_prefix}otool; ac_word=$2
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880$as_echo_n "checking for $ac_word... " >&6; }
13881if ${ac_cv_prog_OTOOL+:} false; then :
13882  $as_echo_n "(cached) " >&6
13883else
13884  if test -n "$OTOOL"; then
13885  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13886else
13887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888for as_dir in $PATH
13889do
13890  IFS=$as_save_IFS
13891  test -z "$as_dir" && as_dir=.
13892    for ac_exec_ext in '' $ac_executable_extensions; do
13893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896    break 2
13897  fi
13898done
13899  done
13900IFS=$as_save_IFS
13901
13902fi
13903fi
13904OTOOL=$ac_cv_prog_OTOOL
13905if test -n "$OTOOL"; then
13906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13907$as_echo "$OTOOL" >&6; }
13908else
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911fi
13912
13913
13914fi
13915if test -z "$ac_cv_prog_OTOOL"; then
13916  ac_ct_OTOOL=$OTOOL
13917  # Extract the first word of "otool", so it can be a program name with args.
13918set dummy otool; ac_word=$2
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920$as_echo_n "checking for $ac_word... " >&6; }
13921if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  if test -n "$ac_ct_OTOOL"; then
13925  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930  IFS=$as_save_IFS
13931  test -z "$as_dir" && as_dir=.
13932    for ac_exec_ext in '' $ac_executable_extensions; do
13933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934    ac_cv_prog_ac_ct_OTOOL="otool"
13935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936    break 2
13937  fi
13938done
13939  done
13940IFS=$as_save_IFS
13941
13942fi
13943fi
13944ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13945if test -n "$ac_ct_OTOOL"; then
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13947$as_echo "$ac_ct_OTOOL" >&6; }
13948else
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950$as_echo "no" >&6; }
13951fi
13952
13953  if test "x$ac_ct_OTOOL" = x; then
13954    OTOOL=":"
13955  else
13956    case $cross_compiling:$ac_tool_warned in
13957yes:)
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13960ac_tool_warned=yes ;;
13961esac
13962    OTOOL=$ac_ct_OTOOL
13963  fi
13964else
13965  OTOOL="$ac_cv_prog_OTOOL"
13966fi
13967
13968    if test -n "$ac_tool_prefix"; then
13969  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13970set dummy ${ac_tool_prefix}otool64; ac_word=$2
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13972$as_echo_n "checking for $ac_word... " >&6; }
13973if ${ac_cv_prog_OTOOL64+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  if test -n "$OTOOL64"; then
13977  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13978else
13979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980for as_dir in $PATH
13981do
13982  IFS=$as_save_IFS
13983  test -z "$as_dir" && as_dir=.
13984    for ac_exec_ext in '' $ac_executable_extensions; do
13985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13986    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13988    break 2
13989  fi
13990done
13991  done
13992IFS=$as_save_IFS
13993
13994fi
13995fi
13996OTOOL64=$ac_cv_prog_OTOOL64
13997if test -n "$OTOOL64"; then
13998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13999$as_echo "$OTOOL64" >&6; }
14000else
14001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002$as_echo "no" >&6; }
14003fi
14004
14005
14006fi
14007if test -z "$ac_cv_prog_OTOOL64"; then
14008  ac_ct_OTOOL64=$OTOOL64
14009  # Extract the first word of "otool64", so it can be a program name with args.
14010set dummy otool64; ac_word=$2
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012$as_echo_n "checking for $ac_word... " >&6; }
14013if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  if test -n "$ac_ct_OTOOL64"; then
14017  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14018else
14019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $PATH
14021do
14022  IFS=$as_save_IFS
14023  test -z "$as_dir" && as_dir=.
14024    for ac_exec_ext in '' $ac_executable_extensions; do
14025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14026    ac_cv_prog_ac_ct_OTOOL64="otool64"
14027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028    break 2
14029  fi
14030done
14031  done
14032IFS=$as_save_IFS
14033
14034fi
14035fi
14036ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14037if test -n "$ac_ct_OTOOL64"; then
14038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14039$as_echo "$ac_ct_OTOOL64" >&6; }
14040else
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042$as_echo "no" >&6; }
14043fi
14044
14045  if test "x$ac_ct_OTOOL64" = x; then
14046    OTOOL64=":"
14047  else
14048    case $cross_compiling:$ac_tool_warned in
14049yes:)
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14052ac_tool_warned=yes ;;
14053esac
14054    OTOOL64=$ac_ct_OTOOL64
14055  fi
14056else
14057  OTOOL64="$ac_cv_prog_OTOOL64"
14058fi
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14087$as_echo_n "checking for -single_module linker flag... " >&6; }
14088if ${lt_cv_apple_cc_single_mod+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  lt_cv_apple_cc_single_mod=no
14092      if test -z "$LT_MULTI_MODULE"; then
14093	# By default we will add the -single_module flag. You can override
14094	# by either setting the environment variable LT_MULTI_MODULE
14095	# non-empty at configure time, or by adding -multi_module to the
14096	# link flags.
14097	rm -rf libconftest.dylib*
14098	echo "int foo(void){return 1;}" > conftest.c
14099	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14100-dynamiclib -Wl,-single_module conftest.c" >&5
14101	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14102	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14103        _lt_result=$?
14104	# If there is a non-empty error log, and "single_module"
14105	# appears in it, assume the flag caused a linker warning
14106        if test -s conftest.err && $GREP single_module conftest.err; then
14107	  cat conftest.err >&5
14108	# Otherwise, if the output was created with a 0 exit code from
14109	# the compiler, it worked.
14110	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14111	  lt_cv_apple_cc_single_mod=yes
14112	else
14113	  cat conftest.err >&5
14114	fi
14115	rm -rf libconftest.dylib*
14116	rm -f conftest.*
14117      fi
14118fi
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14120$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14121
14122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14123$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14124if ${lt_cv_ld_exported_symbols_list+:} false; then :
14125  $as_echo_n "(cached) " >&6
14126else
14127  lt_cv_ld_exported_symbols_list=no
14128      save_LDFLAGS=$LDFLAGS
14129      echo "_main" > conftest.sym
14130      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133
14134int
14135main ()
14136{
14137
14138  ;
14139  return 0;
14140}
14141_ACEOF
14142if ac_fn_c_try_link "$LINENO"; then :
14143  lt_cv_ld_exported_symbols_list=yes
14144else
14145  lt_cv_ld_exported_symbols_list=no
14146fi
14147rm -f core conftest.err conftest.$ac_objext \
14148    conftest$ac_exeext conftest.$ac_ext
14149	LDFLAGS=$save_LDFLAGS
14150
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14153$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14154
14155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14156$as_echo_n "checking for -force_load linker flag... " >&6; }
14157if ${lt_cv_ld_force_load+:} false; then :
14158  $as_echo_n "(cached) " >&6
14159else
14160  lt_cv_ld_force_load=no
14161      cat > conftest.c << _LT_EOF
14162int forced_loaded() { return 2;}
14163_LT_EOF
14164      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14165      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14166      echo "$AR cru libconftest.a conftest.o" >&5
14167      $AR cru libconftest.a conftest.o 2>&5
14168      echo "$RANLIB libconftest.a" >&5
14169      $RANLIB libconftest.a 2>&5
14170      cat > conftest.c << _LT_EOF
14171int main() { return 0;}
14172_LT_EOF
14173      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14174      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14175      _lt_result=$?
14176      if test -s conftest.err && $GREP force_load conftest.err; then
14177	cat conftest.err >&5
14178      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14179	lt_cv_ld_force_load=yes
14180      else
14181	cat conftest.err >&5
14182      fi
14183        rm -f conftest.err libconftest.a conftest conftest.c
14184        rm -rf conftest.dSYM
14185
14186fi
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14188$as_echo "$lt_cv_ld_force_load" >&6; }
14189    case $host_os in
14190    rhapsody* | darwin1.[012])
14191      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14192    darwin1.*)
14193      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14194    darwin*) # darwin 5.x on
14195      # if running on 10.5 or later, the deployment target defaults
14196      # to the OS version, if on x86, and 10.4, the deployment
14197      # target defaults to 10.4. Don't you love it?
14198      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14199	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14200	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14201	10.[012][,.]*)
14202	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14203	10.*)
14204	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14205      esac
14206    ;;
14207  esac
14208    if test yes = "$lt_cv_apple_cc_single_mod"; then
14209      _lt_dar_single_mod='$single_module'
14210    fi
14211    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14212      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14213    else
14214      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14215    fi
14216    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14217      _lt_dsymutil='~$DSYMUTIL $lib || :'
14218    else
14219      _lt_dsymutil=
14220    fi
14221    ;;
14222  esac
14223
14224# func_munge_path_list VARIABLE PATH
14225# -----------------------------------
14226# VARIABLE is name of variable containing _space_ separated list of
14227# directories to be munged by the contents of PATH, which is string
14228# having a format:
14229# "DIR[:DIR]:"
14230#       string "DIR[ DIR]" will be prepended to VARIABLE
14231# ":DIR[:DIR]"
14232#       string "DIR[ DIR]" will be appended to VARIABLE
14233# "DIRP[:DIRP]::[DIRA:]DIRA"
14234#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14235#       "DIRA[ DIRA]" will be appended to VARIABLE
14236# "DIR[:DIR]"
14237#       VARIABLE will be replaced by "DIR[ DIR]"
14238func_munge_path_list ()
14239{
14240    case x$2 in
14241    x)
14242        ;;
14243    *:)
14244        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14245        ;;
14246    x:*)
14247        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14248        ;;
14249    *::*)
14250        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14251        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14252        ;;
14253    *)
14254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14255        ;;
14256    esac
14257}
14258
14259for ac_header in dlfcn.h
14260do :
14261  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14262"
14263if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14264  cat >>confdefs.h <<_ACEOF
14265#define HAVE_DLFCN_H 1
14266_ACEOF
14267
14268fi
14269
14270done
14271
14272
14273
14274
14275
14276# Set options
14277
14278
14279
14280        enable_dlopen=no
14281
14282
14283  enable_win32_dll=no
14284
14285
14286            # Check whether --enable-shared was given.
14287if test "${enable_shared+set}" = set; then :
14288  enableval=$enable_shared; p=${PACKAGE-default}
14289    case $enableval in
14290    yes) enable_shared=yes ;;
14291    no) enable_shared=no ;;
14292    *)
14293      enable_shared=no
14294      # Look at the argument we got.  We use all the common list separators.
14295      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14296      for pkg in $enableval; do
14297	IFS=$lt_save_ifs
14298	if test "X$pkg" = "X$p"; then
14299	  enable_shared=yes
14300	fi
14301      done
14302      IFS=$lt_save_ifs
14303      ;;
14304    esac
14305else
14306  enable_shared=yes
14307fi
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319# Check whether --with-pic was given.
14320if test "${with_pic+set}" = set; then :
14321  withval=$with_pic; lt_p=${PACKAGE-default}
14322    case $withval in
14323    yes|no) pic_mode=$withval ;;
14324    *)
14325      pic_mode=default
14326      # Look at the argument we got.  We use all the common list separators.
14327      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14328      for lt_pkg in $withval; do
14329	IFS=$lt_save_ifs
14330	if test "X$lt_pkg" = "X$lt_p"; then
14331	  pic_mode=yes
14332	fi
14333      done
14334      IFS=$lt_save_ifs
14335      ;;
14336    esac
14337else
14338  pic_mode=default
14339fi
14340
14341
14342
14343
14344
14345
14346
14347
14348  # Check whether --enable-fast-install was given.
14349if test "${enable_fast_install+set}" = set; then :
14350  enableval=$enable_fast_install; p=${PACKAGE-default}
14351    case $enableval in
14352    yes) enable_fast_install=yes ;;
14353    no) enable_fast_install=no ;;
14354    *)
14355      enable_fast_install=no
14356      # Look at the argument we got.  We use all the common list separators.
14357      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14358      for pkg in $enableval; do
14359	IFS=$lt_save_ifs
14360	if test "X$pkg" = "X$p"; then
14361	  enable_fast_install=yes
14362	fi
14363      done
14364      IFS=$lt_save_ifs
14365      ;;
14366    esac
14367else
14368  enable_fast_install=yes
14369fi
14370
14371
14372
14373
14374
14375
14376
14377
14378  shared_archive_member_spec=
14379case $host,$enable_shared in
14380power*-*-aix[5-9]*,yes)
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14382$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14383
14384# Check whether --with-aix-soname was given.
14385if test "${with_aix_soname+set}" = set; then :
14386  withval=$with_aix_soname; case $withval in
14387    aix|svr4|both)
14388      ;;
14389    *)
14390      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14391      ;;
14392    esac
14393    lt_cv_with_aix_soname=$with_aix_soname
14394else
14395  if ${lt_cv_with_aix_soname+:} false; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398  lt_cv_with_aix_soname=aix
14399fi
14400
14401    with_aix_soname=$lt_cv_with_aix_soname
14402fi
14403
14404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14405$as_echo "$with_aix_soname" >&6; }
14406  if test aix != "$with_aix_soname"; then
14407    # For the AIX way of multilib, we name the shared archive member
14408    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14409    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14410    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14411    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14412    if test 64 = "${OBJECT_MODE-32}"; then
14413      shared_archive_member_spec=shr_64
14414    else
14415      shared_archive_member_spec=shr
14416    fi
14417  fi
14418  ;;
14419*)
14420  with_aix_soname=aix
14421  ;;
14422esac
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433# This can be used to rebuild libtool when needed
14434LIBTOOL_DEPS=$ltmain
14435
14436# Always use our own libtool.
14437LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468test -z "$LN_S" && LN_S="ln -s"
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483if test -n "${ZSH_VERSION+set}"; then
14484   setopt NO_GLOB_SUBST
14485fi
14486
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14488$as_echo_n "checking for objdir... " >&6; }
14489if ${lt_cv_objdir+:} false; then :
14490  $as_echo_n "(cached) " >&6
14491else
14492  rm -f .libs 2>/dev/null
14493mkdir .libs 2>/dev/null
14494if test -d .libs; then
14495  lt_cv_objdir=.libs
14496else
14497  # MS-DOS does not allow filenames that begin with a dot.
14498  lt_cv_objdir=_libs
14499fi
14500rmdir .libs 2>/dev/null
14501fi
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14503$as_echo "$lt_cv_objdir" >&6; }
14504objdir=$lt_cv_objdir
14505
14506
14507
14508
14509
14510cat >>confdefs.h <<_ACEOF
14511#define LT_OBJDIR "$lt_cv_objdir/"
14512_ACEOF
14513
14514
14515
14516
14517case $host_os in
14518aix3*)
14519  # AIX sometimes has problems with the GCC collect2 program.  For some
14520  # reason, if we set the COLLECT_NAMES environment variable, the problems
14521  # vanish in a puff of smoke.
14522  if test set != "${COLLECT_NAMES+set}"; then
14523    COLLECT_NAMES=
14524    export COLLECT_NAMES
14525  fi
14526  ;;
14527esac
14528
14529# Global variables:
14530ofile=libtool
14531can_build_shared=yes
14532
14533# All known linkers require a '.a' archive for static linking (except MSVC,
14534# which needs '.lib').
14535libext=a
14536
14537with_gnu_ld=$lt_cv_prog_gnu_ld
14538
14539old_CC=$CC
14540old_CFLAGS=$CFLAGS
14541
14542# Set sane defaults for various variables
14543test -z "$CC" && CC=cc
14544test -z "$LTCC" && LTCC=$CC
14545test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14546test -z "$LD" && LD=ld
14547test -z "$ac_objext" && ac_objext=o
14548
14549func_cc_basename $compiler
14550cc_basename=$func_cc_basename_result
14551
14552
14553# Only perform the check for file, if the check method requires it
14554test -z "$MAGIC_CMD" && MAGIC_CMD=file
14555case $deplibs_check_method in
14556file_magic*)
14557  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14559$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14560if ${lt_cv_path_MAGIC_CMD+:} false; then :
14561  $as_echo_n "(cached) " >&6
14562else
14563  case $MAGIC_CMD in
14564[\\/*] |  ?:[\\/]*)
14565  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14566  ;;
14567*)
14568  lt_save_MAGIC_CMD=$MAGIC_CMD
14569  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14570  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571  for ac_dir in $ac_dummy; do
14572    IFS=$lt_save_ifs
14573    test -z "$ac_dir" && ac_dir=.
14574    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14575      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14576      if test -n "$file_magic_test_file"; then
14577	case $deplibs_check_method in
14578	"file_magic "*)
14579	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14581	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582	    $EGREP "$file_magic_regex" > /dev/null; then
14583	    :
14584	  else
14585	    cat <<_LT_EOF 1>&2
14586
14587*** Warning: the command libtool uses to detect shared libraries,
14588*** $file_magic_cmd, produces output that libtool cannot recognize.
14589*** The result is that libtool may fail to recognize shared libraries
14590*** as such.  This will affect the creation of libtool libraries that
14591*** depend on shared libraries, but programs linked with such libtool
14592*** libraries will work regardless of this problem.  Nevertheless, you
14593*** may want to report the problem to your system manager and/or to
14594*** bug-libtool@gnu.org
14595
14596_LT_EOF
14597	  fi ;;
14598	esac
14599      fi
14600      break
14601    fi
14602  done
14603  IFS=$lt_save_ifs
14604  MAGIC_CMD=$lt_save_MAGIC_CMD
14605  ;;
14606esac
14607fi
14608
14609MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14610if test -n "$MAGIC_CMD"; then
14611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612$as_echo "$MAGIC_CMD" >&6; }
14613else
14614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616fi
14617
14618
14619
14620
14621
14622if test -z "$lt_cv_path_MAGIC_CMD"; then
14623  if test -n "$ac_tool_prefix"; then
14624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14625$as_echo_n "checking for file... " >&6; }
14626if ${lt_cv_path_MAGIC_CMD+:} false; then :
14627  $as_echo_n "(cached) " >&6
14628else
14629  case $MAGIC_CMD in
14630[\\/*] |  ?:[\\/]*)
14631  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14632  ;;
14633*)
14634  lt_save_MAGIC_CMD=$MAGIC_CMD
14635  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14636  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14637  for ac_dir in $ac_dummy; do
14638    IFS=$lt_save_ifs
14639    test -z "$ac_dir" && ac_dir=.
14640    if test -f "$ac_dir/file"; then
14641      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14642      if test -n "$file_magic_test_file"; then
14643	case $deplibs_check_method in
14644	"file_magic "*)
14645	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14646	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14647	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14648	    $EGREP "$file_magic_regex" > /dev/null; then
14649	    :
14650	  else
14651	    cat <<_LT_EOF 1>&2
14652
14653*** Warning: the command libtool uses to detect shared libraries,
14654*** $file_magic_cmd, produces output that libtool cannot recognize.
14655*** The result is that libtool may fail to recognize shared libraries
14656*** as such.  This will affect the creation of libtool libraries that
14657*** depend on shared libraries, but programs linked with such libtool
14658*** libraries will work regardless of this problem.  Nevertheless, you
14659*** may want to report the problem to your system manager and/or to
14660*** bug-libtool@gnu.org
14661
14662_LT_EOF
14663	  fi ;;
14664	esac
14665      fi
14666      break
14667    fi
14668  done
14669  IFS=$lt_save_ifs
14670  MAGIC_CMD=$lt_save_MAGIC_CMD
14671  ;;
14672esac
14673fi
14674
14675MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14676if test -n "$MAGIC_CMD"; then
14677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14678$as_echo "$MAGIC_CMD" >&6; }
14679else
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
14682fi
14683
14684
14685  else
14686    MAGIC_CMD=:
14687  fi
14688fi
14689
14690  fi
14691  ;;
14692esac
14693
14694# Use C for the default configuration in the libtool script
14695
14696lt_save_CC=$CC
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}'
14716
14717
14718
14719
14720
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
14726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732# Save the default compiler, since it gets overwritten when the other
14733# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14734compiler_DEFAULT=$CC
14735
14736# save warnings/boilerplate of simple test code
14737ac_outfile=conftest.$ac_objext
14738echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740_lt_compiler_boilerplate=`cat conftest.err`
14741$RM conftest*
14742
14743ac_outfile=conftest.$ac_objext
14744echo "$lt_simple_link_test_code" >conftest.$ac_ext
14745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746_lt_linker_boilerplate=`cat conftest.err`
14747$RM -r conftest*
14748
14749
14750if test -n "$compiler"; then
14751
14752lt_prog_compiler_no_builtin_flag=
14753
14754if test yes = "$GCC"; then
14755  case $cc_basename in
14756  nvcc*)
14757    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14758  *)
14759    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14760  esac
14761
14762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14763$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14764if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14765  $as_echo_n "(cached) " >&6
14766else
14767  lt_cv_prog_compiler_rtti_exceptions=no
14768   ac_outfile=conftest.$ac_objext
14769   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14771   # Insert the option either (1) after the last *FLAGS variable, or
14772   # (2) before a word containing "conftest.", or (3) at the end.
14773   # Note that $ac_compile itself does not contain backslashes and begins
14774   # with a dollar sign (not a hyphen), so the echo should work correctly.
14775   # The option is referenced via a variable to avoid confusing sed.
14776   lt_compile=`echo "$ac_compile" | $SED \
14777   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779   -e 's:$: $lt_compiler_flag:'`
14780   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14781   (eval "$lt_compile" 2>conftest.err)
14782   ac_status=$?
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   if (exit $ac_status) && test -s "$ac_outfile"; then
14786     # The compiler can only warn and ignore the option if not recognized
14787     # So say no if there are warnings other than the usual output.
14788     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14789     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14790     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14791       lt_cv_prog_compiler_rtti_exceptions=yes
14792     fi
14793   fi
14794   $RM conftest*
14795
14796fi
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14798$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14799
14800if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14801    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14802else
14803    :
14804fi
14805
14806fi
14807
14808
14809
14810
14811
14812
14813  lt_prog_compiler_wl=
14814lt_prog_compiler_pic=
14815lt_prog_compiler_static=
14816
14817
14818  if test yes = "$GCC"; then
14819    lt_prog_compiler_wl='-Wl,'
14820    lt_prog_compiler_static='-static'
14821
14822    case $host_os in
14823      aix*)
14824      # All AIX code is PIC.
14825      if test ia64 = "$host_cpu"; then
14826	# AIX 5 now supports IA64 processor
14827	lt_prog_compiler_static='-Bstatic'
14828      fi
14829      lt_prog_compiler_pic='-fPIC'
14830      ;;
14831
14832    amigaos*)
14833      case $host_cpu in
14834      powerpc)
14835            # see comment about AmigaOS4 .so support
14836            lt_prog_compiler_pic='-fPIC'
14837        ;;
14838      m68k)
14839            # FIXME: we need at least 68020 code to build shared libraries, but
14840            # adding the '-m68020' flag to GCC prevents building anything better,
14841            # like '-m68040'.
14842            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14843        ;;
14844      esac
14845      ;;
14846
14847    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14848      # PIC is the default for these OSes.
14849      ;;
14850
14851    mingw* | cygwin* | pw32* | os2* | cegcc*)
14852      # This hack is so that the source file can tell whether it is being
14853      # built for inclusion in a dll (and should export symbols for example).
14854      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14855      # (--disable-auto-import) libraries
14856      lt_prog_compiler_pic='-DDLL_EXPORT'
14857      case $host_os in
14858      os2*)
14859	lt_prog_compiler_static='$wl-static'
14860	;;
14861      esac
14862      ;;
14863
14864    darwin* | rhapsody*)
14865      # PIC is the default on this platform
14866      # Common symbols not allowed in MH_DYLIB files
14867      lt_prog_compiler_pic='-fno-common'
14868      ;;
14869
14870    haiku*)
14871      # PIC is the default for Haiku.
14872      # The "-static" flag exists, but is broken.
14873      lt_prog_compiler_static=
14874      ;;
14875
14876    hpux*)
14877      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14878      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14879      # sets the default TLS model and affects inlining.
14880      case $host_cpu in
14881      hppa*64*)
14882	# +Z the default
14883	;;
14884      *)
14885	lt_prog_compiler_pic='-fPIC'
14886	;;
14887      esac
14888      ;;
14889
14890    interix[3-9]*)
14891      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14892      # Instead, we relocate shared libraries at runtime.
14893      ;;
14894
14895    msdosdjgpp*)
14896      # Just because we use GCC doesn't mean we suddenly get shared libraries
14897      # on systems that don't support them.
14898      lt_prog_compiler_can_build_shared=no
14899      enable_shared=no
14900      ;;
14901
14902    *nto* | *qnx*)
14903      # QNX uses GNU C++, but need to define -shared option too, otherwise
14904      # it will coredump.
14905      lt_prog_compiler_pic='-fPIC -shared'
14906      ;;
14907
14908    sysv4*MP*)
14909      if test -d /usr/nec; then
14910	lt_prog_compiler_pic=-Kconform_pic
14911      fi
14912      ;;
14913
14914    *)
14915      lt_prog_compiler_pic='-fPIC'
14916      ;;
14917    esac
14918
14919    case $cc_basename in
14920    nvcc*) # Cuda Compiler Driver 2.2
14921      lt_prog_compiler_wl='-Xlinker '
14922      if test -n "$lt_prog_compiler_pic"; then
14923        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14924      fi
14925      ;;
14926    esac
14927  else
14928    # PORTME Check for flag to pass linker flags through the system compiler.
14929    case $host_os in
14930    aix*)
14931      lt_prog_compiler_wl='-Wl,'
14932      if test ia64 = "$host_cpu"; then
14933	# AIX 5 now supports IA64 processor
14934	lt_prog_compiler_static='-Bstatic'
14935      else
14936	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14937      fi
14938      ;;
14939
14940    darwin* | rhapsody*)
14941      # PIC is the default on this platform
14942      # Common symbols not allowed in MH_DYLIB files
14943      lt_prog_compiler_pic='-fno-common'
14944      case $cc_basename in
14945      nagfor*)
14946        # NAG Fortran compiler
14947        lt_prog_compiler_wl='-Wl,-Wl,,'
14948        lt_prog_compiler_pic='-PIC'
14949        lt_prog_compiler_static='-Bstatic'
14950        ;;
14951      esac
14952      ;;
14953
14954    mingw* | cygwin* | pw32* | os2* | cegcc*)
14955      # This hack is so that the source file can tell whether it is being
14956      # built for inclusion in a dll (and should export symbols for example).
14957      lt_prog_compiler_pic='-DDLL_EXPORT'
14958      case $host_os in
14959      os2*)
14960	lt_prog_compiler_static='$wl-static'
14961	;;
14962      esac
14963      ;;
14964
14965    hpux9* | hpux10* | hpux11*)
14966      lt_prog_compiler_wl='-Wl,'
14967      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14968      # not for PA HP-UX.
14969      case $host_cpu in
14970      hppa*64*|ia64*)
14971	# +Z the default
14972	;;
14973      *)
14974	lt_prog_compiler_pic='+Z'
14975	;;
14976      esac
14977      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14978      lt_prog_compiler_static='$wl-a ${wl}archive'
14979      ;;
14980
14981    irix5* | irix6* | nonstopux*)
14982      lt_prog_compiler_wl='-Wl,'
14983      # PIC (with -KPIC) is the default.
14984      lt_prog_compiler_static='-non_shared'
14985      ;;
14986
14987    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14988      case $cc_basename in
14989      # old Intel for x86_64, which still supported -KPIC.
14990      ecc*)
14991	lt_prog_compiler_wl='-Wl,'
14992	lt_prog_compiler_pic='-KPIC'
14993	lt_prog_compiler_static='-static'
14994        ;;
14995      # icc used to be incompatible with GCC.
14996      # ICC 10 doesn't accept -KPIC any more.
14997      icc* | ifort*)
14998	lt_prog_compiler_wl='-Wl,'
14999	lt_prog_compiler_pic='-fPIC'
15000	lt_prog_compiler_static='-static'
15001        ;;
15002      # Lahey Fortran 8.1.
15003      lf95*)
15004	lt_prog_compiler_wl='-Wl,'
15005	lt_prog_compiler_pic='--shared'
15006	lt_prog_compiler_static='--static'
15007	;;
15008      nagfor*)
15009	# NAG Fortran compiler
15010	lt_prog_compiler_wl='-Wl,-Wl,,'
15011	lt_prog_compiler_pic='-PIC'
15012	lt_prog_compiler_static='-Bstatic'
15013	;;
15014      tcc*)
15015	# Fabrice Bellard et al's Tiny C Compiler
15016	lt_prog_compiler_wl='-Wl,'
15017	lt_prog_compiler_pic='-fPIC'
15018	lt_prog_compiler_static='-static'
15019	;;
15020      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15021        # Portland Group compilers (*not* the Pentium gcc compiler,
15022	# which looks to be a dead project)
15023	lt_prog_compiler_wl='-Wl,'
15024	lt_prog_compiler_pic='-fpic'
15025	lt_prog_compiler_static='-Bstatic'
15026        ;;
15027      ccc*)
15028        lt_prog_compiler_wl='-Wl,'
15029        # All Alpha code is PIC.
15030        lt_prog_compiler_static='-non_shared'
15031        ;;
15032      xl* | bgxl* | bgf* | mpixl*)
15033	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15034	lt_prog_compiler_wl='-Wl,'
15035	lt_prog_compiler_pic='-qpic'
15036	lt_prog_compiler_static='-qstaticlink'
15037	;;
15038      *)
15039	case `$CC -V 2>&1 | sed 5q` in
15040	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15041	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15042	  lt_prog_compiler_pic='-KPIC'
15043	  lt_prog_compiler_static='-Bstatic'
15044	  lt_prog_compiler_wl=''
15045	  ;;
15046	*Sun\ F* | *Sun*Fortran*)
15047	  lt_prog_compiler_pic='-KPIC'
15048	  lt_prog_compiler_static='-Bstatic'
15049	  lt_prog_compiler_wl='-Qoption ld '
15050	  ;;
15051	*Sun\ C*)
15052	  # Sun C 5.9
15053	  lt_prog_compiler_pic='-KPIC'
15054	  lt_prog_compiler_static='-Bstatic'
15055	  lt_prog_compiler_wl='-Wl,'
15056	  ;;
15057        *Intel*\ [CF]*Compiler*)
15058	  lt_prog_compiler_wl='-Wl,'
15059	  lt_prog_compiler_pic='-fPIC'
15060	  lt_prog_compiler_static='-static'
15061	  ;;
15062	*Portland\ Group*)
15063	  lt_prog_compiler_wl='-Wl,'
15064	  lt_prog_compiler_pic='-fpic'
15065	  lt_prog_compiler_static='-Bstatic'
15066	  ;;
15067	esac
15068	;;
15069      esac
15070      ;;
15071
15072    newsos6)
15073      lt_prog_compiler_pic='-KPIC'
15074      lt_prog_compiler_static='-Bstatic'
15075      ;;
15076
15077    *nto* | *qnx*)
15078      # QNX uses GNU C++, but need to define -shared option too, otherwise
15079      # it will coredump.
15080      lt_prog_compiler_pic='-fPIC -shared'
15081      ;;
15082
15083    osf3* | osf4* | osf5*)
15084      lt_prog_compiler_wl='-Wl,'
15085      # All OSF/1 code is PIC.
15086      lt_prog_compiler_static='-non_shared'
15087      ;;
15088
15089    rdos*)
15090      lt_prog_compiler_static='-non_shared'
15091      ;;
15092
15093    solaris*)
15094      lt_prog_compiler_pic='-KPIC'
15095      lt_prog_compiler_static='-Bstatic'
15096      case $cc_basename in
15097      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15098	lt_prog_compiler_wl='-Qoption ld ';;
15099      *)
15100	lt_prog_compiler_wl='-Wl,';;
15101      esac
15102      ;;
15103
15104    sunos4*)
15105      lt_prog_compiler_wl='-Qoption ld '
15106      lt_prog_compiler_pic='-PIC'
15107      lt_prog_compiler_static='-Bstatic'
15108      ;;
15109
15110    sysv4 | sysv4.2uw2* | sysv4.3*)
15111      lt_prog_compiler_wl='-Wl,'
15112      lt_prog_compiler_pic='-KPIC'
15113      lt_prog_compiler_static='-Bstatic'
15114      ;;
15115
15116    sysv4*MP*)
15117      if test -d /usr/nec; then
15118	lt_prog_compiler_pic='-Kconform_pic'
15119	lt_prog_compiler_static='-Bstatic'
15120      fi
15121      ;;
15122
15123    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15124      lt_prog_compiler_wl='-Wl,'
15125      lt_prog_compiler_pic='-KPIC'
15126      lt_prog_compiler_static='-Bstatic'
15127      ;;
15128
15129    unicos*)
15130      lt_prog_compiler_wl='-Wl,'
15131      lt_prog_compiler_can_build_shared=no
15132      ;;
15133
15134    uts4*)
15135      lt_prog_compiler_pic='-pic'
15136      lt_prog_compiler_static='-Bstatic'
15137      ;;
15138
15139    *)
15140      lt_prog_compiler_can_build_shared=no
15141      ;;
15142    esac
15143  fi
15144
15145case $host_os in
15146  # For platforms that do not support PIC, -DPIC is meaningless:
15147  *djgpp*)
15148    lt_prog_compiler_pic=
15149    ;;
15150  *)
15151    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15152    ;;
15153esac
15154
15155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15156$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15157if ${lt_cv_prog_compiler_pic+:} false; then :
15158  $as_echo_n "(cached) " >&6
15159else
15160  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15163$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15164lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15165
15166#
15167# Check to make sure the PIC flag actually works.
15168#
15169if test -n "$lt_prog_compiler_pic"; then
15170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15171$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15172if ${lt_cv_prog_compiler_pic_works+:} false; then :
15173  $as_echo_n "(cached) " >&6
15174else
15175  lt_cv_prog_compiler_pic_works=no
15176   ac_outfile=conftest.$ac_objext
15177   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15178   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15179   # Insert the option either (1) after the last *FLAGS variable, or
15180   # (2) before a word containing "conftest.", or (3) at the end.
15181   # Note that $ac_compile itself does not contain backslashes and begins
15182   # with a dollar sign (not a hyphen), so the echo should work correctly.
15183   # The option is referenced via a variable to avoid confusing sed.
15184   lt_compile=`echo "$ac_compile" | $SED \
15185   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15187   -e 's:$: $lt_compiler_flag:'`
15188   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15189   (eval "$lt_compile" 2>conftest.err)
15190   ac_status=$?
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   if (exit $ac_status) && test -s "$ac_outfile"; then
15194     # The compiler can only warn and ignore the option if not recognized
15195     # So say no if there are warnings other than the usual output.
15196     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15197     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15198     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15199       lt_cv_prog_compiler_pic_works=yes
15200     fi
15201   fi
15202   $RM conftest*
15203
15204fi
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15206$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15207
15208if test yes = "$lt_cv_prog_compiler_pic_works"; then
15209    case $lt_prog_compiler_pic in
15210     "" | " "*) ;;
15211     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15212     esac
15213else
15214    lt_prog_compiler_pic=
15215     lt_prog_compiler_can_build_shared=no
15216fi
15217
15218fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230#
15231# Check to make sure the static flag actually works.
15232#
15233wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15235$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15236if ${lt_cv_prog_compiler_static_works+:} false; then :
15237  $as_echo_n "(cached) " >&6
15238else
15239  lt_cv_prog_compiler_static_works=no
15240   save_LDFLAGS=$LDFLAGS
15241   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15242   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15243   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15244     # The linker can only warn and ignore the option if not recognized
15245     # So say no if there are warnings
15246     if test -s conftest.err; then
15247       # Append any errors to the config.log.
15248       cat conftest.err 1>&5
15249       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15250       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251       if diff conftest.exp conftest.er2 >/dev/null; then
15252         lt_cv_prog_compiler_static_works=yes
15253       fi
15254     else
15255       lt_cv_prog_compiler_static_works=yes
15256     fi
15257   fi
15258   $RM -r conftest*
15259   LDFLAGS=$save_LDFLAGS
15260
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15263$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15264
15265if test yes = "$lt_cv_prog_compiler_static_works"; then
15266    :
15267else
15268    lt_prog_compiler_static=
15269fi
15270
15271
15272
15273
15274
15275
15276
15277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15278$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15279if ${lt_cv_prog_compiler_c_o+:} false; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  lt_cv_prog_compiler_c_o=no
15283   $RM -r conftest 2>/dev/null
15284   mkdir conftest
15285   cd conftest
15286   mkdir out
15287   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15288
15289   lt_compiler_flag="-o out/conftest2.$ac_objext"
15290   # Insert the option either (1) after the last *FLAGS variable, or
15291   # (2) before a word containing "conftest.", or (3) at the end.
15292   # Note that $ac_compile itself does not contain backslashes and begins
15293   # with a dollar sign (not a hyphen), so the echo should work correctly.
15294   lt_compile=`echo "$ac_compile" | $SED \
15295   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15297   -e 's:$: $lt_compiler_flag:'`
15298   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15299   (eval "$lt_compile" 2>out/conftest.err)
15300   ac_status=$?
15301   cat out/conftest.err >&5
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15304   then
15305     # The compiler can only warn and ignore the option if not recognized
15306     # So say no if there are warnings
15307     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15308     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15309     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15310       lt_cv_prog_compiler_c_o=yes
15311     fi
15312   fi
15313   chmod u+w . 2>&5
15314   $RM conftest*
15315   # SGI C++ compiler will create directory out/ii_files/ for
15316   # template instantiation
15317   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15318   $RM out/* && rmdir out
15319   cd ..
15320   $RM -r conftest
15321   $RM conftest*
15322
15323fi
15324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15325$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15326
15327
15328
15329
15330
15331
15332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15333$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15334if ${lt_cv_prog_compiler_c_o+:} false; then :
15335  $as_echo_n "(cached) " >&6
15336else
15337  lt_cv_prog_compiler_c_o=no
15338   $RM -r conftest 2>/dev/null
15339   mkdir conftest
15340   cd conftest
15341   mkdir out
15342   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15343
15344   lt_compiler_flag="-o out/conftest2.$ac_objext"
15345   # Insert the option either (1) after the last *FLAGS variable, or
15346   # (2) before a word containing "conftest.", or (3) at the end.
15347   # Note that $ac_compile itself does not contain backslashes and begins
15348   # with a dollar sign (not a hyphen), so the echo should work correctly.
15349   lt_compile=`echo "$ac_compile" | $SED \
15350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15352   -e 's:$: $lt_compiler_flag:'`
15353   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15354   (eval "$lt_compile" 2>out/conftest.err)
15355   ac_status=$?
15356   cat out/conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15359   then
15360     # The compiler can only warn and ignore the option if not recognized
15361     # So say no if there are warnings
15362     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15363     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15364     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15365       lt_cv_prog_compiler_c_o=yes
15366     fi
15367   fi
15368   chmod u+w . 2>&5
15369   $RM conftest*
15370   # SGI C++ compiler will create directory out/ii_files/ for
15371   # template instantiation
15372   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15373   $RM out/* && rmdir out
15374   cd ..
15375   $RM -r conftest
15376   $RM conftest*
15377
15378fi
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15380$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15381
15382
15383
15384
15385hard_links=nottested
15386if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15387  # do not overwrite the value of need_locks provided by the user
15388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15389$as_echo_n "checking if we can lock with hard links... " >&6; }
15390  hard_links=yes
15391  $RM conftest*
15392  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393  touch conftest.a
15394  ln conftest.a conftest.b 2>&5 || hard_links=no
15395  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15397$as_echo "$hard_links" >&6; }
15398  if test no = "$hard_links"; then
15399    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15400$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15401    need_locks=warn
15402  fi
15403else
15404  need_locks=no
15405fi
15406
15407
15408
15409
15410
15411
15412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15413$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15414
15415  runpath_var=
15416  allow_undefined_flag=
15417  always_export_symbols=no
15418  archive_cmds=
15419  archive_expsym_cmds=
15420  compiler_needs_object=no
15421  enable_shared_with_static_runtimes=no
15422  export_dynamic_flag_spec=
15423  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15424  hardcode_automatic=no
15425  hardcode_direct=no
15426  hardcode_direct_absolute=no
15427  hardcode_libdir_flag_spec=
15428  hardcode_libdir_separator=
15429  hardcode_minus_L=no
15430  hardcode_shlibpath_var=unsupported
15431  inherit_rpath=no
15432  link_all_deplibs=unknown
15433  module_cmds=
15434  module_expsym_cmds=
15435  old_archive_from_new_cmds=
15436  old_archive_from_expsyms_cmds=
15437  thread_safe_flag_spec=
15438  whole_archive_flag_spec=
15439  # include_expsyms should be a list of space-separated symbols to be *always*
15440  # included in the symbol list
15441  include_expsyms=
15442  # exclude_expsyms can be an extended regexp of symbols to exclude
15443  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15444  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15445  # as well as any symbol that contains 'd'.
15446  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15447  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448  # platforms (ab)use it in PIC code, but their linkers get confused if
15449  # the symbol is explicitly referenced.  Since portable code cannot
15450  # rely on this symbol name, it's probably fine to never include it in
15451  # preloaded symbol tables.
15452  # Exclude shared library initialization/finalization symbols.
15453  extract_expsyms_cmds=
15454
15455  case $host_os in
15456  cygwin* | mingw* | pw32* | cegcc*)
15457    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15458    # When not using gcc, we currently assume that we are using
15459    # Microsoft Visual C++.
15460    if test yes != "$GCC"; then
15461      with_gnu_ld=no
15462    fi
15463    ;;
15464  interix*)
15465    # we just hope/assume this is gcc and not c89 (= MSVC++)
15466    with_gnu_ld=yes
15467    ;;
15468  openbsd* | bitrig*)
15469    with_gnu_ld=no
15470    ;;
15471  linux* | k*bsd*-gnu | gnu*)
15472    link_all_deplibs=no
15473    ;;
15474  esac
15475
15476  ld_shlibs=yes
15477
15478  # On some targets, GNU ld is compatible enough with the native linker
15479  # that we're better off using the native interface for both.
15480  lt_use_gnu_ld_interface=no
15481  if test yes = "$with_gnu_ld"; then
15482    case $host_os in
15483      aix*)
15484	# The AIX port of GNU ld has always aspired to compatibility
15485	# with the native linker.  However, as the warning in the GNU ld
15486	# block says, versions before 2.19.5* couldn't really create working
15487	# shared libraries, regardless of the interface used.
15488	case `$LD -v 2>&1` in
15489	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15490	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15491	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15492	  *)
15493	    lt_use_gnu_ld_interface=yes
15494	    ;;
15495	esac
15496	;;
15497      *)
15498	lt_use_gnu_ld_interface=yes
15499	;;
15500    esac
15501  fi
15502
15503  if test yes = "$lt_use_gnu_ld_interface"; then
15504    # If archive_cmds runs LD, not CC, wlarc should be empty
15505    wlarc='$wl'
15506
15507    # Set some defaults for GNU ld with shared library support. These
15508    # are reset later if shared libraries are not supported. Putting them
15509    # here allows them to be overridden if necessary.
15510    runpath_var=LD_RUN_PATH
15511    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15512    export_dynamic_flag_spec='$wl--export-dynamic'
15513    # ancient GNU ld didn't support --whole-archive et. al.
15514    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15515      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15516    else
15517      whole_archive_flag_spec=
15518    fi
15519    supports_anon_versioning=no
15520    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15521      *GNU\ gold*) supports_anon_versioning=yes ;;
15522      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15523      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15524      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15525      *\ 2.11.*) ;; # other 2.11 versions
15526      *) supports_anon_versioning=yes ;;
15527    esac
15528
15529    # See if GNU ld supports shared libraries.
15530    case $host_os in
15531    aix[3-9]*)
15532      # On AIX/PPC, the GNU linker is very broken
15533      if test ia64 != "$host_cpu"; then
15534	ld_shlibs=no
15535	cat <<_LT_EOF 1>&2
15536
15537*** Warning: the GNU linker, at least up to release 2.19, is reported
15538*** to be unable to reliably create shared libraries on AIX.
15539*** Therefore, libtool is disabling shared libraries support.  If you
15540*** really care for shared libraries, you may want to install binutils
15541*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15542*** You will then need to restart the configuration process.
15543
15544_LT_EOF
15545      fi
15546      ;;
15547
15548    amigaos*)
15549      case $host_cpu in
15550      powerpc)
15551            # see comment about AmigaOS4 .so support
15552            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15553            archive_expsym_cmds=''
15554        ;;
15555      m68k)
15556            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)'
15557            hardcode_libdir_flag_spec='-L$libdir'
15558            hardcode_minus_L=yes
15559        ;;
15560      esac
15561      ;;
15562
15563    beos*)
15564      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15565	allow_undefined_flag=unsupported
15566	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15567	# support --undefined.  This deserves some investigation.  FIXME
15568	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15569      else
15570	ld_shlibs=no
15571      fi
15572      ;;
15573
15574    cygwin* | mingw* | pw32* | cegcc*)
15575      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15576      # as there is no search path for DLLs.
15577      hardcode_libdir_flag_spec='-L$libdir'
15578      export_dynamic_flag_spec='$wl--export-all-symbols'
15579      allow_undefined_flag=unsupported
15580      always_export_symbols=no
15581      enable_shared_with_static_runtimes=yes
15582      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'
15583      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15584
15585      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15586        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15587	# If the export-symbols file already is a .def file, use it as
15588	# is; otherwise, prepend EXPORTS...
15589	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15590          cp $export_symbols $output_objdir/$soname.def;
15591        else
15592          echo EXPORTS > $output_objdir/$soname.def;
15593          cat $export_symbols >> $output_objdir/$soname.def;
15594        fi~
15595        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15596      else
15597	ld_shlibs=no
15598      fi
15599      ;;
15600
15601    haiku*)
15602      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15603      link_all_deplibs=yes
15604      ;;
15605
15606    os2*)
15607      hardcode_libdir_flag_spec='-L$libdir'
15608      hardcode_minus_L=yes
15609      allow_undefined_flag=unsupported
15610      shrext_cmds=.dll
15611      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15612	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15613	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15614	$ECHO EXPORTS >> $output_objdir/$libname.def~
15615	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15616	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15617	emximp -o $lib $output_objdir/$libname.def'
15618      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15619	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15620	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15621	$ECHO EXPORTS >> $output_objdir/$libname.def~
15622	prefix_cmds="$SED"~
15623	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15624	  prefix_cmds="$prefix_cmds -e 1d";
15625	fi~
15626	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15627	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15628	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15629	emximp -o $lib $output_objdir/$libname.def'
15630      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15631      enable_shared_with_static_runtimes=yes
15632      ;;
15633
15634    interix[3-9]*)
15635      hardcode_direct=no
15636      hardcode_shlibpath_var=no
15637      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15638      export_dynamic_flag_spec='$wl-E'
15639      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15640      # Instead, shared libraries are loaded at an image base (0x10000000 by
15641      # default) and relocated if they conflict, which is a slow very memory
15642      # consuming and fragmenting process.  To avoid this, we pick a random,
15643      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15644      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15645      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15646      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'
15647      ;;
15648
15649    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15650      tmp_diet=no
15651      if test linux-dietlibc = "$host_os"; then
15652	case $cc_basename in
15653	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15654	esac
15655      fi
15656      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15657	 && test no = "$tmp_diet"
15658      then
15659	tmp_addflag=' $pic_flag'
15660	tmp_sharedflag='-shared'
15661	case $cc_basename,$host_cpu in
15662        pgcc*)				# Portland Group C compiler
15663	  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'
15664	  tmp_addflag=' $pic_flag'
15665	  ;;
15666	pgf77* | pgf90* | pgf95* | pgfortran*)
15667					# Portland Group f77 and f90 compilers
15668	  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'
15669	  tmp_addflag=' $pic_flag -Mnomain' ;;
15670	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15671	  tmp_addflag=' -i_dynamic' ;;
15672	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15673	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15674	ifc* | ifort*)			# Intel Fortran compiler
15675	  tmp_addflag=' -nofor_main' ;;
15676	lf95*)				# Lahey Fortran 8.1
15677	  whole_archive_flag_spec=
15678	  tmp_sharedflag='--shared' ;;
15679        nagfor*)                        # NAGFOR 5.3
15680          tmp_sharedflag='-Wl,-shared' ;;
15681	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15682	  tmp_sharedflag='-qmkshrobj'
15683	  tmp_addflag= ;;
15684	nvcc*)	# Cuda Compiler Driver 2.2
15685	  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'
15686	  compiler_needs_object=yes
15687	  ;;
15688	esac
15689	case `$CC -V 2>&1 | sed 5q` in
15690	*Sun\ C*)			# Sun C 5.9
15691	  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'
15692	  compiler_needs_object=yes
15693	  tmp_sharedflag='-G' ;;
15694	*Sun\ F*)			# Sun Fortran 8.3
15695	  tmp_sharedflag='-G' ;;
15696	esac
15697	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15698
15699        if test yes = "$supports_anon_versioning"; then
15700          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15701            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15702            echo "local: *; };" >> $output_objdir/$libname.ver~
15703            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15704        fi
15705
15706	case $cc_basename in
15707	tcc*)
15708	  export_dynamic_flag_spec='-rdynamic'
15709	  ;;
15710	xlf* | bgf* | bgxlf* | mpixlf*)
15711	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15712	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15713	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15714	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15715	  if test yes = "$supports_anon_versioning"; then
15716	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15717              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15718              echo "local: *; };" >> $output_objdir/$libname.ver~
15719              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15720	  fi
15721	  ;;
15722	esac
15723      else
15724        ld_shlibs=no
15725      fi
15726      ;;
15727
15728    netbsd* | netbsdelf*-gnu)
15729      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15730	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15731	wlarc=
15732      else
15733	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15734	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15735      fi
15736      ;;
15737
15738    solaris*)
15739      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15740	ld_shlibs=no
15741	cat <<_LT_EOF 1>&2
15742
15743*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15744*** create shared libraries on Solaris systems.  Therefore, libtool
15745*** is disabling shared libraries support.  We urge you to upgrade GNU
15746*** binutils to release 2.9.1 or newer.  Another option is to modify
15747*** your PATH or compiler configuration so that the native linker is
15748*** used, and then restart.
15749
15750_LT_EOF
15751      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15752	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15753	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15754      else
15755	ld_shlibs=no
15756      fi
15757      ;;
15758
15759    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15760      case `$LD -v 2>&1` in
15761        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15762	ld_shlibs=no
15763	cat <<_LT_EOF 1>&2
15764
15765*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15766*** reliably create shared libraries on SCO systems.  Therefore, libtool
15767*** is disabling shared libraries support.  We urge you to upgrade GNU
15768*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15769*** your PATH or compiler configuration so that the native linker is
15770*** used, and then restart.
15771
15772_LT_EOF
15773	;;
15774	*)
15775	  # For security reasons, it is highly recommended that you always
15776	  # use absolute paths for naming shared libraries, and exclude the
15777	  # DT_RUNPATH tag from executables and libraries.  But doing so
15778	  # requires that you compile everything twice, which is a pain.
15779	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15780	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15781	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15782	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15783	  else
15784	    ld_shlibs=no
15785	  fi
15786	;;
15787      esac
15788      ;;
15789
15790    sunos4*)
15791      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15792      wlarc=
15793      hardcode_direct=yes
15794      hardcode_shlibpath_var=no
15795      ;;
15796
15797    *)
15798      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15799	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15800	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15801      else
15802	ld_shlibs=no
15803      fi
15804      ;;
15805    esac
15806
15807    if test no = "$ld_shlibs"; then
15808      runpath_var=
15809      hardcode_libdir_flag_spec=
15810      export_dynamic_flag_spec=
15811      whole_archive_flag_spec=
15812    fi
15813  else
15814    # PORTME fill in a description of your system's linker (not GNU ld)
15815    case $host_os in
15816    aix3*)
15817      allow_undefined_flag=unsupported
15818      always_export_symbols=yes
15819      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'
15820      # Note: this linker hardcodes the directories in LIBPATH if there
15821      # are no directories specified by -L.
15822      hardcode_minus_L=yes
15823      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15824	# Neither direct hardcoding nor static linking is supported with a
15825	# broken collect2.
15826	hardcode_direct=unsupported
15827      fi
15828      ;;
15829
15830    aix[4-9]*)
15831      if test ia64 = "$host_cpu"; then
15832	# On IA64, the linker does run time linking by default, so we don't
15833	# have to do anything special.
15834	aix_use_runtimelinking=no
15835	exp_sym_flag='-Bexport'
15836	no_entry_flag=
15837      else
15838	# If we're using GNU nm, then we don't want the "-C" option.
15839	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15840	# Without the "-l" option, or with the "-B" option, AIX nm treats
15841	# weak defined symbols like other global defined symbols, whereas
15842	# GNU nm marks them as "W".
15843	# While the 'weak' keyword is ignored in the Export File, we need
15844	# it in the Import File for the 'aix-soname' feature, so we have
15845	# to replace the "-B" option with "-P" for AIX nm.
15846	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15847	  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'
15848	else
15849	  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'
15850	fi
15851	aix_use_runtimelinking=no
15852
15853	# Test if we are trying to use run time linking or normal
15854	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15855	# have runtime linking enabled, and use it for executables.
15856	# For shared libraries, we enable/disable runtime linking
15857	# depending on the kind of the shared library created -
15858	# when "with_aix_soname,aix_use_runtimelinking" is:
15859	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15860	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15861	#            lib.a           static archive
15862	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15863	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15864	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15865	#            lib.a(lib.so.V) shared, rtl:no
15866	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15867	#            lib.a           static archive
15868	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15869	  for ld_flag in $LDFLAGS; do
15870	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15871	    aix_use_runtimelinking=yes
15872	    break
15873	  fi
15874	  done
15875	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15876	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15877	    # so we don't have lib.a shared libs to link our executables.
15878	    # We have to force runtime linking in this case.
15879	    aix_use_runtimelinking=yes
15880	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15881	  fi
15882	  ;;
15883	esac
15884
15885	exp_sym_flag='-bexport'
15886	no_entry_flag='-bnoentry'
15887      fi
15888
15889      # When large executables or shared objects are built, AIX ld can
15890      # have problems creating the table of contents.  If linking a library
15891      # or program results in "error TOC overflow" add -mminimal-toc to
15892      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15893      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15894
15895      archive_cmds=''
15896      hardcode_direct=yes
15897      hardcode_direct_absolute=yes
15898      hardcode_libdir_separator=':'
15899      link_all_deplibs=yes
15900      file_list_spec='$wl-f,'
15901      case $with_aix_soname,$aix_use_runtimelinking in
15902      aix,*) ;; # traditional, no import file
15903      svr4,* | *,yes) # use import file
15904	# The Import File defines what to hardcode.
15905	hardcode_direct=no
15906	hardcode_direct_absolute=no
15907	;;
15908      esac
15909
15910      if test yes = "$GCC"; then
15911	case $host_os in aix4.[012]|aix4.[012].*)
15912	# We only want to do this on AIX 4.2 and lower, the check
15913	# below for broken collect2 doesn't work under 4.3+
15914	  collect2name=`$CC -print-prog-name=collect2`
15915	  if test -f "$collect2name" &&
15916	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15917	  then
15918	  # We have reworked collect2
15919	  :
15920	  else
15921	  # We have old collect2
15922	  hardcode_direct=unsupported
15923	  # It fails to find uninstalled libraries when the uninstalled
15924	  # path is not listed in the libpath.  Setting hardcode_minus_L
15925	  # to unsupported forces relinking
15926	  hardcode_minus_L=yes
15927	  hardcode_libdir_flag_spec='-L$libdir'
15928	  hardcode_libdir_separator=
15929	  fi
15930	  ;;
15931	esac
15932	shared_flag='-shared'
15933	if test yes = "$aix_use_runtimelinking"; then
15934	  shared_flag="$shared_flag "'$wl-G'
15935	fi
15936	# Need to ensure runtime linking is disabled for the traditional
15937	# shared library, or the linker may eventually find shared libraries
15938	# /with/ Import File - we do not want to mix them.
15939	shared_flag_aix='-shared'
15940	shared_flag_svr4='-shared $wl-G'
15941      else
15942	# not using gcc
15943	if test ia64 = "$host_cpu"; then
15944	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15945	# chokes on -Wl,-G. The following line is correct:
15946	  shared_flag='-G'
15947	else
15948	  if test yes = "$aix_use_runtimelinking"; then
15949	    shared_flag='$wl-G'
15950	  else
15951	    shared_flag='$wl-bM:SRE'
15952	  fi
15953	  shared_flag_aix='$wl-bM:SRE'
15954	  shared_flag_svr4='$wl-G'
15955	fi
15956      fi
15957
15958      export_dynamic_flag_spec='$wl-bexpall'
15959      # It seems that -bexpall does not export symbols beginning with
15960      # underscore (_), so it is better to generate a list of symbols to export.
15961      always_export_symbols=yes
15962      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15963	# Warning - without using the other runtime loading flags (-brtl),
15964	# -berok will link without error, but may produce a broken library.
15965	allow_undefined_flag='-berok'
15966        # Determine the default libpath from the value encoded in an
15967        # empty executable.
15968        if test set = "${lt_cv_aix_libpath+set}"; then
15969  aix_libpath=$lt_cv_aix_libpath
15970else
15971  if ${lt_cv_aix_libpath_+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976
15977int
15978main ()
15979{
15980
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_link "$LINENO"; then :
15986
15987  lt_aix_libpath_sed='
15988      /Import File Strings/,/^$/ {
15989	  /^0/ {
15990	      s/^0  *\([^ ]*\) *$/\1/
15991	      p
15992	  }
15993      }'
15994  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15995  # Check for a 64-bit object if we didn't find anything.
15996  if test -z "$lt_cv_aix_libpath_"; then
15997    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15998  fi
15999fi
16000rm -f core conftest.err conftest.$ac_objext \
16001    conftest$ac_exeext conftest.$ac_ext
16002  if test -z "$lt_cv_aix_libpath_"; then
16003    lt_cv_aix_libpath_=/usr/lib:/lib
16004  fi
16005
16006fi
16007
16008  aix_libpath=$lt_cv_aix_libpath_
16009fi
16010
16011        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16012        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
16013      else
16014	if test ia64 = "$host_cpu"; then
16015	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16016	  allow_undefined_flag="-z nodefs"
16017	  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"
16018	else
16019	 # Determine the default libpath from the value encoded in an
16020	 # empty executable.
16021	 if test set = "${lt_cv_aix_libpath+set}"; then
16022  aix_libpath=$lt_cv_aix_libpath
16023else
16024  if ${lt_cv_aix_libpath_+:} false; then :
16025  $as_echo_n "(cached) " >&6
16026else
16027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028/* end confdefs.h.  */
16029
16030int
16031main ()
16032{
16033
16034  ;
16035  return 0;
16036}
16037_ACEOF
16038if ac_fn_c_try_link "$LINENO"; then :
16039
16040  lt_aix_libpath_sed='
16041      /Import File Strings/,/^$/ {
16042	  /^0/ {
16043	      s/^0  *\([^ ]*\) *$/\1/
16044	      p
16045	  }
16046      }'
16047  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16048  # Check for a 64-bit object if we didn't find anything.
16049  if test -z "$lt_cv_aix_libpath_"; then
16050    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16051  fi
16052fi
16053rm -f core conftest.err conftest.$ac_objext \
16054    conftest$ac_exeext conftest.$ac_ext
16055  if test -z "$lt_cv_aix_libpath_"; then
16056    lt_cv_aix_libpath_=/usr/lib:/lib
16057  fi
16058
16059fi
16060
16061  aix_libpath=$lt_cv_aix_libpath_
16062fi
16063
16064	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16065	  # Warning - without using the other run time loading flags,
16066	  # -berok will link without error, but may produce a broken library.
16067	  no_undefined_flag=' $wl-bernotok'
16068	  allow_undefined_flag=' $wl-berok'
16069	  if test yes = "$with_gnu_ld"; then
16070	    # We only use this code for GNU lds that support --whole-archive.
16071	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16072	  else
16073	    # Exported symbols can be pulled into shared objects from archives
16074	    whole_archive_flag_spec='$convenience'
16075	  fi
16076	  archive_cmds_need_lc=yes
16077	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16078	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16079	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16080	  if test svr4 != "$with_aix_soname"; then
16081	    # This is similar to how AIX traditionally builds its shared libraries.
16082	    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'
16083	  fi
16084	  if test aix != "$with_aix_soname"; then
16085	    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'
16086	  else
16087	    # used by -dlpreopen to get the symbols
16088	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16089	  fi
16090	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16091	fi
16092      fi
16093      ;;
16094
16095    amigaos*)
16096      case $host_cpu in
16097      powerpc)
16098            # see comment about AmigaOS4 .so support
16099            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16100            archive_expsym_cmds=''
16101        ;;
16102      m68k)
16103            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)'
16104            hardcode_libdir_flag_spec='-L$libdir'
16105            hardcode_minus_L=yes
16106        ;;
16107      esac
16108      ;;
16109
16110    bsdi[45]*)
16111      export_dynamic_flag_spec=-rdynamic
16112      ;;
16113
16114    cygwin* | mingw* | pw32* | cegcc*)
16115      # When not using gcc, we currently assume that we are using
16116      # Microsoft Visual C++.
16117      # hardcode_libdir_flag_spec is actually meaningless, as there is
16118      # no search path for DLLs.
16119      case $cc_basename in
16120      cl*)
16121	# Native MSVC
16122	hardcode_libdir_flag_spec=' '
16123	allow_undefined_flag=unsupported
16124	always_export_symbols=yes
16125	file_list_spec='@'
16126	# Tell ltmain to make .lib files, not .a files.
16127	libext=lib
16128	# Tell ltmain to make .dll files, not .so files.
16129	shrext_cmds=.dll
16130	# FIXME: Setting linknames here is a bad hack.
16131	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16132	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16133            cp "$export_symbols" "$output_objdir/$soname.def";
16134            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16135          else
16136            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16137          fi~
16138          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16139          linknames='
16140	# The linker will not automatically build a static lib if we build a DLL.
16141	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16142	enable_shared_with_static_runtimes=yes
16143	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16144	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16145	# Don't use ranlib
16146	old_postinstall_cmds='chmod 644 $oldlib'
16147	postlink_cmds='lt_outputfile="@OUTPUT@"~
16148          lt_tool_outputfile="@TOOL_OUTPUT@"~
16149          case $lt_outputfile in
16150            *.exe|*.EXE) ;;
16151            *)
16152              lt_outputfile=$lt_outputfile.exe
16153              lt_tool_outputfile=$lt_tool_outputfile.exe
16154              ;;
16155          esac~
16156          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16157            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16158            $RM "$lt_outputfile.manifest";
16159          fi'
16160	;;
16161      *)
16162	# Assume MSVC wrapper
16163	hardcode_libdir_flag_spec=' '
16164	allow_undefined_flag=unsupported
16165	# Tell ltmain to make .lib files, not .a files.
16166	libext=lib
16167	# Tell ltmain to make .dll files, not .so files.
16168	shrext_cmds=.dll
16169	# FIXME: Setting linknames here is a bad hack.
16170	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16171	# The linker will automatically build a .lib file if we build a DLL.
16172	old_archive_from_new_cmds='true'
16173	# FIXME: Should let the user specify the lib program.
16174	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16175	enable_shared_with_static_runtimes=yes
16176	;;
16177      esac
16178      ;;
16179
16180    darwin* | rhapsody*)
16181
16182
16183  archive_cmds_need_lc=no
16184  hardcode_direct=no
16185  hardcode_automatic=yes
16186  hardcode_shlibpath_var=unsupported
16187  if test yes = "$lt_cv_ld_force_load"; then
16188    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\"`'
16189
16190  else
16191    whole_archive_flag_spec=''
16192  fi
16193  link_all_deplibs=yes
16194  allow_undefined_flag=$_lt_dar_allow_undefined
16195  case $cc_basename in
16196     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16197     *) _lt_dar_can_shared=$GCC ;;
16198  esac
16199  if test yes = "$_lt_dar_can_shared"; then
16200    output_verbose_link_cmd=func_echo_all
16201    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16202    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16203    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"
16204    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"
16205
16206  else
16207  ld_shlibs=no
16208  fi
16209
16210      ;;
16211
16212    dgux*)
16213      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16214      hardcode_libdir_flag_spec='-L$libdir'
16215      hardcode_shlibpath_var=no
16216      ;;
16217
16218    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16219    # support.  Future versions do this automatically, but an explicit c++rt0.o
16220    # does not break anything, and helps significantly (at the cost of a little
16221    # extra space).
16222    freebsd2.2*)
16223      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16224      hardcode_libdir_flag_spec='-R$libdir'
16225      hardcode_direct=yes
16226      hardcode_shlibpath_var=no
16227      ;;
16228
16229    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16230    freebsd2.*)
16231      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16232      hardcode_direct=yes
16233      hardcode_minus_L=yes
16234      hardcode_shlibpath_var=no
16235      ;;
16236
16237    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16238    freebsd* | dragonfly*)
16239      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16240      hardcode_libdir_flag_spec='-R$libdir'
16241      hardcode_direct=yes
16242      hardcode_shlibpath_var=no
16243      ;;
16244
16245    hpux9*)
16246      if test yes = "$GCC"; then
16247	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'
16248      else
16249	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'
16250      fi
16251      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16252      hardcode_libdir_separator=:
16253      hardcode_direct=yes
16254
16255      # hardcode_minus_L: Not really in the search PATH,
16256      # but as the default location of the library.
16257      hardcode_minus_L=yes
16258      export_dynamic_flag_spec='$wl-E'
16259      ;;
16260
16261    hpux10*)
16262      if test yes,no = "$GCC,$with_gnu_ld"; then
16263	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16264      else
16265	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16266      fi
16267      if test no = "$with_gnu_ld"; then
16268	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16269	hardcode_libdir_separator=:
16270	hardcode_direct=yes
16271	hardcode_direct_absolute=yes
16272	export_dynamic_flag_spec='$wl-E'
16273	# hardcode_minus_L: Not really in the search PATH,
16274	# but as the default location of the library.
16275	hardcode_minus_L=yes
16276      fi
16277      ;;
16278
16279    hpux11*)
16280      if test yes,no = "$GCC,$with_gnu_ld"; then
16281	case $host_cpu in
16282	hppa*64*)
16283	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16284	  ;;
16285	ia64*)
16286	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16287	  ;;
16288	*)
16289	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16290	  ;;
16291	esac
16292      else
16293	case $host_cpu in
16294	hppa*64*)
16295	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16296	  ;;
16297	ia64*)
16298	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16299	  ;;
16300	*)
16301
16302	  # Older versions of the 11.00 compiler do not understand -b yet
16303	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16304	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16305$as_echo_n "checking if $CC understands -b... " >&6; }
16306if ${lt_cv_prog_compiler__b+:} false; then :
16307  $as_echo_n "(cached) " >&6
16308else
16309  lt_cv_prog_compiler__b=no
16310   save_LDFLAGS=$LDFLAGS
16311   LDFLAGS="$LDFLAGS -b"
16312   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16313   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16314     # The linker can only warn and ignore the option if not recognized
16315     # So say no if there are warnings
16316     if test -s conftest.err; then
16317       # Append any errors to the config.log.
16318       cat conftest.err 1>&5
16319       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16320       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16321       if diff conftest.exp conftest.er2 >/dev/null; then
16322         lt_cv_prog_compiler__b=yes
16323       fi
16324     else
16325       lt_cv_prog_compiler__b=yes
16326     fi
16327   fi
16328   $RM -r conftest*
16329   LDFLAGS=$save_LDFLAGS
16330
16331fi
16332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16333$as_echo "$lt_cv_prog_compiler__b" >&6; }
16334
16335if test yes = "$lt_cv_prog_compiler__b"; then
16336    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16337else
16338    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16339fi
16340
16341	  ;;
16342	esac
16343      fi
16344      if test no = "$with_gnu_ld"; then
16345	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16346	hardcode_libdir_separator=:
16347
16348	case $host_cpu in
16349	hppa*64*|ia64*)
16350	  hardcode_direct=no
16351	  hardcode_shlibpath_var=no
16352	  ;;
16353	*)
16354	  hardcode_direct=yes
16355	  hardcode_direct_absolute=yes
16356	  export_dynamic_flag_spec='$wl-E'
16357
16358	  # hardcode_minus_L: Not really in the search PATH,
16359	  # but as the default location of the library.
16360	  hardcode_minus_L=yes
16361	  ;;
16362	esac
16363      fi
16364      ;;
16365
16366    irix5* | irix6* | nonstopux*)
16367      if test yes = "$GCC"; then
16368	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'
16369	# Try to use the -exported_symbol ld option, if it does not
16370	# work, assume that -exports_file does not work either and
16371	# implicitly export all symbols.
16372	# This should be the same for all languages, so no per-tag cache variable.
16373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16374$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16375if ${lt_cv_irix_exported_symbol+:} false; then :
16376  $as_echo_n "(cached) " >&6
16377else
16378  save_LDFLAGS=$LDFLAGS
16379	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16380	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382int foo (void) { return 0; }
16383_ACEOF
16384if ac_fn_c_try_link "$LINENO"; then :
16385  lt_cv_irix_exported_symbol=yes
16386else
16387  lt_cv_irix_exported_symbol=no
16388fi
16389rm -f core conftest.err conftest.$ac_objext \
16390    conftest$ac_exeext conftest.$ac_ext
16391           LDFLAGS=$save_LDFLAGS
16392fi
16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16394$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16395	if test yes = "$lt_cv_irix_exported_symbol"; then
16396          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'
16397	fi
16398	link_all_deplibs=no
16399      else
16400	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'
16401	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'
16402      fi
16403      archive_cmds_need_lc='no'
16404      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16405      hardcode_libdir_separator=:
16406      inherit_rpath=yes
16407      link_all_deplibs=yes
16408      ;;
16409
16410    linux*)
16411      case $cc_basename in
16412      tcc*)
16413	# Fabrice Bellard et al's Tiny C Compiler
16414	ld_shlibs=yes
16415	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16416	;;
16417      esac
16418      ;;
16419
16420    netbsd* | netbsdelf*-gnu)
16421      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16422	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16423      else
16424	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16425      fi
16426      hardcode_libdir_flag_spec='-R$libdir'
16427      hardcode_direct=yes
16428      hardcode_shlibpath_var=no
16429      ;;
16430
16431    newsos6)
16432      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16433      hardcode_direct=yes
16434      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16435      hardcode_libdir_separator=:
16436      hardcode_shlibpath_var=no
16437      ;;
16438
16439    *nto* | *qnx*)
16440      ;;
16441
16442    openbsd* | bitrig*)
16443      if test -f /usr/libexec/ld.so; then
16444	hardcode_direct=yes
16445	hardcode_shlibpath_var=no
16446	hardcode_direct_absolute=yes
16447	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16448	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16449	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16450	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16451	  export_dynamic_flag_spec='$wl-E'
16452	else
16453	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16454	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16455	fi
16456      else
16457	ld_shlibs=no
16458      fi
16459      ;;
16460
16461    os2*)
16462      hardcode_libdir_flag_spec='-L$libdir'
16463      hardcode_minus_L=yes
16464      allow_undefined_flag=unsupported
16465      shrext_cmds=.dll
16466      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16467	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16468	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16469	$ECHO EXPORTS >> $output_objdir/$libname.def~
16470	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16471	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16472	emximp -o $lib $output_objdir/$libname.def'
16473      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16474	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16475	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16476	$ECHO EXPORTS >> $output_objdir/$libname.def~
16477	prefix_cmds="$SED"~
16478	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16479	  prefix_cmds="$prefix_cmds -e 1d";
16480	fi~
16481	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16482	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16483	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16484	emximp -o $lib $output_objdir/$libname.def'
16485      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16486      enable_shared_with_static_runtimes=yes
16487      ;;
16488
16489    osf3*)
16490      if test yes = "$GCC"; then
16491	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16492	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'
16493      else
16494	allow_undefined_flag=' -expect_unresolved \*'
16495	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'
16496      fi
16497      archive_cmds_need_lc='no'
16498      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16499      hardcode_libdir_separator=:
16500      ;;
16501
16502    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16503      if test yes = "$GCC"; then
16504	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16505	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'
16506	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16507      else
16508	allow_undefined_flag=' -expect_unresolved \*'
16509	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'
16510	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~
16511          $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'
16512
16513	# Both c and cxx compiler support -rpath directly
16514	hardcode_libdir_flag_spec='-rpath $libdir'
16515      fi
16516      archive_cmds_need_lc='no'
16517      hardcode_libdir_separator=:
16518      ;;
16519
16520    solaris*)
16521      no_undefined_flag=' -z defs'
16522      if test yes = "$GCC"; then
16523	wlarc='$wl'
16524	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16525	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16526          $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'
16527      else
16528	case `$CC -V 2>&1` in
16529	*"Compilers 5.0"*)
16530	  wlarc=''
16531	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16533            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16534	  ;;
16535	*)
16536	  wlarc='$wl'
16537	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16538	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16539            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16540	  ;;
16541	esac
16542      fi
16543      hardcode_libdir_flag_spec='-R$libdir'
16544      hardcode_shlibpath_var=no
16545      case $host_os in
16546      solaris2.[0-5] | solaris2.[0-5].*) ;;
16547      *)
16548	# The compiler driver will combine and reorder linker options,
16549	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16550	# but is careful enough not to reorder.
16551	# Supported since Solaris 2.6 (maybe 2.5.1?)
16552	if test yes = "$GCC"; then
16553	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16554	else
16555	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16556	fi
16557	;;
16558      esac
16559      link_all_deplibs=yes
16560      ;;
16561
16562    sunos4*)
16563      if test sequent = "$host_vendor"; then
16564	# Use $CC to link under sequent, because it throws in some extra .o
16565	# files that make .init and .fini sections work.
16566	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16567      else
16568	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16569      fi
16570      hardcode_libdir_flag_spec='-L$libdir'
16571      hardcode_direct=yes
16572      hardcode_minus_L=yes
16573      hardcode_shlibpath_var=no
16574      ;;
16575
16576    sysv4)
16577      case $host_vendor in
16578	sni)
16579	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580	  hardcode_direct=yes # is this really true???
16581	;;
16582	siemens)
16583	  ## LD is ld it makes a PLAMLIB
16584	  ## CC just makes a GrossModule.
16585	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16586	  reload_cmds='$CC -r -o $output$reload_objs'
16587	  hardcode_direct=no
16588        ;;
16589	motorola)
16590	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16591	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16592	;;
16593      esac
16594      runpath_var='LD_RUN_PATH'
16595      hardcode_shlibpath_var=no
16596      ;;
16597
16598    sysv4.3*)
16599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600      hardcode_shlibpath_var=no
16601      export_dynamic_flag_spec='-Bexport'
16602      ;;
16603
16604    sysv4*MP*)
16605      if test -d /usr/nec; then
16606	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607	hardcode_shlibpath_var=no
16608	runpath_var=LD_RUN_PATH
16609	hardcode_runpath_var=yes
16610	ld_shlibs=yes
16611      fi
16612      ;;
16613
16614    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16615      no_undefined_flag='$wl-z,text'
16616      archive_cmds_need_lc=no
16617      hardcode_shlibpath_var=no
16618      runpath_var='LD_RUN_PATH'
16619
16620      if test yes = "$GCC"; then
16621	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16622	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16623      else
16624	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16625	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16626      fi
16627      ;;
16628
16629    sysv5* | sco3.2v5* | sco5v6*)
16630      # Note: We CANNOT use -z defs as we might desire, because we do not
16631      # link with -lc, and that would cause any symbols used from libc to
16632      # always be unresolved, which means just about no library would
16633      # ever link correctly.  If we're not using GNU ld we use -z text
16634      # though, which does catch some bad symbols but isn't as heavy-handed
16635      # as -z defs.
16636      no_undefined_flag='$wl-z,text'
16637      allow_undefined_flag='$wl-z,nodefs'
16638      archive_cmds_need_lc=no
16639      hardcode_shlibpath_var=no
16640      hardcode_libdir_flag_spec='$wl-R,$libdir'
16641      hardcode_libdir_separator=':'
16642      link_all_deplibs=yes
16643      export_dynamic_flag_spec='$wl-Bexport'
16644      runpath_var='LD_RUN_PATH'
16645
16646      if test yes = "$GCC"; then
16647	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16648	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16649      else
16650	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16651	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16652      fi
16653      ;;
16654
16655    uts4*)
16656      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657      hardcode_libdir_flag_spec='-L$libdir'
16658      hardcode_shlibpath_var=no
16659      ;;
16660
16661    *)
16662      ld_shlibs=no
16663      ;;
16664    esac
16665
16666    if test sni = "$host_vendor"; then
16667      case $host in
16668      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16669	export_dynamic_flag_spec='$wl-Blargedynsym'
16670	;;
16671      esac
16672    fi
16673  fi
16674
16675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16676$as_echo "$ld_shlibs" >&6; }
16677test no = "$ld_shlibs" && can_build_shared=no
16678
16679with_gnu_ld=$with_gnu_ld
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695#
16696# Do we need to explicitly link libc?
16697#
16698case "x$archive_cmds_need_lc" in
16699x|xyes)
16700  # Assume -lc should be added
16701  archive_cmds_need_lc=yes
16702
16703  if test yes,yes = "$GCC,$enable_shared"; then
16704    case $archive_cmds in
16705    *'~'*)
16706      # FIXME: we may have to deal with multi-command sequences.
16707      ;;
16708    '$CC '*)
16709      # Test whether the compiler implicitly links with -lc since on some
16710      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16711      # to ld, don't add -lc before -lgcc.
16712      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16713$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16714if ${lt_cv_archive_cmds_need_lc+:} false; then :
16715  $as_echo_n "(cached) " >&6
16716else
16717  $RM conftest*
16718	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719
16720	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16721  (eval $ac_compile) 2>&5
16722  ac_status=$?
16723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724  test $ac_status = 0; } 2>conftest.err; then
16725	  soname=conftest
16726	  lib=conftest
16727	  libobjs=conftest.$ac_objext
16728	  deplibs=
16729	  wl=$lt_prog_compiler_wl
16730	  pic_flag=$lt_prog_compiler_pic
16731	  compiler_flags=-v
16732	  linker_flags=-v
16733	  verstring=
16734	  output_objdir=.
16735	  libname=conftest
16736	  lt_save_allow_undefined_flag=$allow_undefined_flag
16737	  allow_undefined_flag=
16738	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16739  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16740  ac_status=$?
16741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742  test $ac_status = 0; }
16743	  then
16744	    lt_cv_archive_cmds_need_lc=no
16745	  else
16746	    lt_cv_archive_cmds_need_lc=yes
16747	  fi
16748	  allow_undefined_flag=$lt_save_allow_undefined_flag
16749	else
16750	  cat conftest.err 1>&5
16751	fi
16752	$RM conftest*
16753
16754fi
16755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16756$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16757      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16758      ;;
16759    esac
16760  fi
16761  ;;
16762esac
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16916$as_echo_n "checking dynamic linker characteristics... " >&6; }
16917
16918if test yes = "$GCC"; then
16919  case $host_os in
16920    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16921    *) lt_awk_arg='/^libraries:/' ;;
16922  esac
16923  case $host_os in
16924    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16925    *) lt_sed_strip_eq='s|=/|/|g' ;;
16926  esac
16927  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16928  case $lt_search_path_spec in
16929  *\;*)
16930    # if the path contains ";" then we assume it to be the separator
16931    # otherwise default to the standard path separator (i.e. ":") - it is
16932    # assumed that no part of a normal pathname contains ";" but that should
16933    # okay in the real world where ";" in dirpaths is itself problematic.
16934    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16935    ;;
16936  *)
16937    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16938    ;;
16939  esac
16940  # Ok, now we have the path, separated by spaces, we can step through it
16941  # and add multilib dir if necessary...
16942  lt_tmp_lt_search_path_spec=
16943  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16944  # ...but if some path component already ends with the multilib dir we assume
16945  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16946  case "$lt_multi_os_dir; $lt_search_path_spec " in
16947  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16948    lt_multi_os_dir=
16949    ;;
16950  esac
16951  for lt_sys_path in $lt_search_path_spec; do
16952    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16953      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16954    elif test -n "$lt_multi_os_dir"; then
16955      test -d "$lt_sys_path" && \
16956	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16957    fi
16958  done
16959  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16960BEGIN {RS = " "; FS = "/|\n";} {
16961  lt_foo = "";
16962  lt_count = 0;
16963  for (lt_i = NF; lt_i > 0; lt_i--) {
16964    if ($lt_i != "" && $lt_i != ".") {
16965      if ($lt_i == "..") {
16966        lt_count++;
16967      } else {
16968        if (lt_count == 0) {
16969          lt_foo = "/" $lt_i lt_foo;
16970        } else {
16971          lt_count--;
16972        }
16973      }
16974    }
16975  }
16976  if (lt_foo != "") { lt_freq[lt_foo]++; }
16977  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16978}'`
16979  # AWK program above erroneously prepends '/' to C:/dos/paths
16980  # for these hosts.
16981  case $host_os in
16982    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16983      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16984  esac
16985  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16986else
16987  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16988fi
16989library_names_spec=
16990libname_spec='lib$name'
16991soname_spec=
16992shrext_cmds=.so
16993postinstall_cmds=
16994postuninstall_cmds=
16995finish_cmds=
16996finish_eval=
16997shlibpath_var=
16998shlibpath_overrides_runpath=unknown
16999version_type=none
17000dynamic_linker="$host_os ld.so"
17001sys_lib_dlsearch_path_spec="/lib /usr/lib"
17002need_lib_prefix=unknown
17003hardcode_into_libs=no
17004
17005# when you set need_version to no, make sure it does not cause -set_version
17006# flags to be left without arguments
17007need_version=unknown
17008
17009
17010
17011case $host_os in
17012aix3*)
17013  version_type=linux # correct to gnu/linux during the next big refactor
17014  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17015  shlibpath_var=LIBPATH
17016
17017  # AIX 3 has no versioning support, so we append a major version to the name.
17018  soname_spec='$libname$release$shared_ext$major'
17019  ;;
17020
17021aix[4-9]*)
17022  version_type=linux # correct to gnu/linux during the next big refactor
17023  need_lib_prefix=no
17024  need_version=no
17025  hardcode_into_libs=yes
17026  if test ia64 = "$host_cpu"; then
17027    # AIX 5 supports IA64
17028    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17029    shlibpath_var=LD_LIBRARY_PATH
17030  else
17031    # With GCC up to 2.95.x, collect2 would create an import file
17032    # for dependence libraries.  The import file would start with
17033    # the line '#! .'.  This would cause the generated library to
17034    # depend on '.', always an invalid library.  This was fixed in
17035    # development snapshots of GCC prior to 3.0.
17036    case $host_os in
17037      aix4 | aix4.[01] | aix4.[01].*)
17038      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17039	   echo ' yes '
17040	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17041	:
17042      else
17043	can_build_shared=no
17044      fi
17045      ;;
17046    esac
17047    # Using Import Files as archive members, it is possible to support
17048    # filename-based versioning of shared library archives on AIX. While
17049    # this would work for both with and without runtime linking, it will
17050    # prevent static linking of such archives. So we do filename-based
17051    # shared library versioning with .so extension only, which is used
17052    # when both runtime linking and shared linking is enabled.
17053    # Unfortunately, runtime linking may impact performance, so we do
17054    # not want this to be the default eventually. Also, we use the
17055    # versioned .so libs for executables only if there is the -brtl
17056    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17057    # To allow for filename-based versioning support, we need to create
17058    # libNAME.so.V as an archive file, containing:
17059    # *) an Import File, referring to the versioned filename of the
17060    #    archive as well as the shared archive member, telling the
17061    #    bitwidth (32 or 64) of that shared object, and providing the
17062    #    list of exported symbols of that shared object, eventually
17063    #    decorated with the 'weak' keyword
17064    # *) the shared object with the F_LOADONLY flag set, to really avoid
17065    #    it being seen by the linker.
17066    # At run time we better use the real file rather than another symlink,
17067    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17068
17069    case $with_aix_soname,$aix_use_runtimelinking in
17070    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17071    # soname into executable. Probably we can add versioning support to
17072    # collect2, so additional links can be useful in future.
17073    aix,yes) # traditional libtool
17074      dynamic_linker='AIX unversionable lib.so'
17075      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17076      # instead of lib<name>.a to let people know that these are not
17077      # typical AIX shared libraries.
17078      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17079      ;;
17080    aix,no) # traditional AIX only
17081      dynamic_linker='AIX lib.a(lib.so.V)'
17082      # We preserve .a as extension for shared libraries through AIX4.2
17083      # and later when we are not doing run time linking.
17084      library_names_spec='$libname$release.a $libname.a'
17085      soname_spec='$libname$release$shared_ext$major'
17086      ;;
17087    svr4,*) # full svr4 only
17088      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17089      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17090      # We do not specify a path in Import Files, so LIBPATH fires.
17091      shlibpath_overrides_runpath=yes
17092      ;;
17093    *,yes) # both, prefer svr4
17094      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17095      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17096      # unpreferred sharedlib libNAME.a needs extra handling
17097      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"'
17098      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"'
17099      # We do not specify a path in Import Files, so LIBPATH fires.
17100      shlibpath_overrides_runpath=yes
17101      ;;
17102    *,no) # both, prefer aix
17103      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17104      library_names_spec='$libname$release.a $libname.a'
17105      soname_spec='$libname$release$shared_ext$major'
17106      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17107      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)'
17108      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"'
17109      ;;
17110    esac
17111    shlibpath_var=LIBPATH
17112  fi
17113  ;;
17114
17115amigaos*)
17116  case $host_cpu in
17117  powerpc)
17118    # Since July 2007 AmigaOS4 officially supports .so libraries.
17119    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17120    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17121    ;;
17122  m68k)
17123    library_names_spec='$libname.ixlibrary $libname.a'
17124    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17125    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'
17126    ;;
17127  esac
17128  ;;
17129
17130beos*)
17131  library_names_spec='$libname$shared_ext'
17132  dynamic_linker="$host_os ld.so"
17133  shlibpath_var=LIBRARY_PATH
17134  ;;
17135
17136bsdi[45]*)
17137  version_type=linux # correct to gnu/linux during the next big refactor
17138  need_version=no
17139  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17140  soname_spec='$libname$release$shared_ext$major'
17141  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17142  shlibpath_var=LD_LIBRARY_PATH
17143  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17144  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17145  # the default ld.so.conf also contains /usr/contrib/lib and
17146  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17147  # libtool to hard-code these into programs
17148  ;;
17149
17150cygwin* | mingw* | pw32* | cegcc*)
17151  version_type=windows
17152  shrext_cmds=.dll
17153  need_version=no
17154  need_lib_prefix=no
17155
17156  case $GCC,$cc_basename in
17157  yes,*)
17158    # gcc
17159    library_names_spec='$libname.dll.a'
17160    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17161    postinstall_cmds='base_file=`basename \$file`~
17162      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17163      dldir=$destdir/`dirname \$dlpath`~
17164      test -d \$dldir || mkdir -p \$dldir~
17165      $install_prog $dir/$dlname \$dldir/$dlname~
17166      chmod a+x \$dldir/$dlname~
17167      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17168        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17169      fi'
17170    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17171      dlpath=$dir/\$dldll~
17172       $RM \$dlpath'
17173    shlibpath_overrides_runpath=yes
17174
17175    case $host_os in
17176    cygwin*)
17177      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17178      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17179
17180      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17181      ;;
17182    mingw* | cegcc*)
17183      # MinGW DLLs use traditional 'lib' prefix
17184      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17185      ;;
17186    pw32*)
17187      # pw32 DLLs use 'pw' prefix rather than 'lib'
17188      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17189      ;;
17190    esac
17191    dynamic_linker='Win32 ld.exe'
17192    ;;
17193
17194  *,cl*)
17195    # Native MSVC
17196    libname_spec='$name'
17197    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17198    library_names_spec='$libname.dll.lib'
17199
17200    case $build_os in
17201    mingw*)
17202      sys_lib_search_path_spec=
17203      lt_save_ifs=$IFS
17204      IFS=';'
17205      for lt_path in $LIB
17206      do
17207        IFS=$lt_save_ifs
17208        # Let DOS variable expansion print the short 8.3 style file name.
17209        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17210        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17211      done
17212      IFS=$lt_save_ifs
17213      # Convert to MSYS style.
17214      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17215      ;;
17216    cygwin*)
17217      # Convert to unix form, then to dos form, then back to unix form
17218      # but this time dos style (no spaces!) so that the unix form looks
17219      # like /cygdrive/c/PROGRA~1:/cygdr...
17220      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17221      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17222      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17223      ;;
17224    *)
17225      sys_lib_search_path_spec=$LIB
17226      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17227        # It is most probably a Windows format PATH.
17228        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17229      else
17230        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17231      fi
17232      # FIXME: find the short name or the path components, as spaces are
17233      # common. (e.g. "Program Files" -> "PROGRA~1")
17234      ;;
17235    esac
17236
17237    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17238    postinstall_cmds='base_file=`basename \$file`~
17239      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17240      dldir=$destdir/`dirname \$dlpath`~
17241      test -d \$dldir || mkdir -p \$dldir~
17242      $install_prog $dir/$dlname \$dldir/$dlname'
17243    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17244      dlpath=$dir/\$dldll~
17245       $RM \$dlpath'
17246    shlibpath_overrides_runpath=yes
17247    dynamic_linker='Win32 link.exe'
17248    ;;
17249
17250  *)
17251    # Assume MSVC wrapper
17252    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17253    dynamic_linker='Win32 ld.exe'
17254    ;;
17255  esac
17256  # FIXME: first we should search . and the directory the executable is in
17257  shlibpath_var=PATH
17258  ;;
17259
17260darwin* | rhapsody*)
17261  dynamic_linker="$host_os dyld"
17262  version_type=darwin
17263  need_lib_prefix=no
17264  need_version=no
17265  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17266  soname_spec='$libname$release$major$shared_ext'
17267  shlibpath_overrides_runpath=yes
17268  shlibpath_var=DYLD_LIBRARY_PATH
17269  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17270
17271  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17272  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17273  ;;
17274
17275dgux*)
17276  version_type=linux # correct to gnu/linux during the next big refactor
17277  need_lib_prefix=no
17278  need_version=no
17279  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17280  soname_spec='$libname$release$shared_ext$major'
17281  shlibpath_var=LD_LIBRARY_PATH
17282  ;;
17283
17284freebsd* | dragonfly*)
17285  # DragonFly does not have aout.  When/if they implement a new
17286  # versioning mechanism, adjust this.
17287  if test -x /usr/bin/objformat; then
17288    objformat=`/usr/bin/objformat`
17289  else
17290    case $host_os in
17291    freebsd[23].*) objformat=aout ;;
17292    *) objformat=elf ;;
17293    esac
17294  fi
17295  version_type=freebsd-$objformat
17296  case $version_type in
17297    freebsd-elf*)
17298      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17299      soname_spec='$libname$release$shared_ext$major'
17300      need_version=no
17301      need_lib_prefix=no
17302      ;;
17303    freebsd-*)
17304      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17305      need_version=yes
17306      ;;
17307  esac
17308  shlibpath_var=LD_LIBRARY_PATH
17309  case $host_os in
17310  freebsd2.*)
17311    shlibpath_overrides_runpath=yes
17312    ;;
17313  freebsd3.[01]* | freebsdelf3.[01]*)
17314    shlibpath_overrides_runpath=yes
17315    hardcode_into_libs=yes
17316    ;;
17317  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17318  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17319    shlibpath_overrides_runpath=no
17320    hardcode_into_libs=yes
17321    ;;
17322  *) # from 4.6 on, and DragonFly
17323    shlibpath_overrides_runpath=yes
17324    hardcode_into_libs=yes
17325    ;;
17326  esac
17327  ;;
17328
17329haiku*)
17330  version_type=linux # correct to gnu/linux during the next big refactor
17331  need_lib_prefix=no
17332  need_version=no
17333  dynamic_linker="$host_os runtime_loader"
17334  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17335  soname_spec='$libname$release$shared_ext$major'
17336  shlibpath_var=LIBRARY_PATH
17337  shlibpath_overrides_runpath=no
17338  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17339  hardcode_into_libs=yes
17340  ;;
17341
17342hpux9* | hpux10* | hpux11*)
17343  # Give a soname corresponding to the major version so that dld.sl refuses to
17344  # link against other versions.
17345  version_type=sunos
17346  need_lib_prefix=no
17347  need_version=no
17348  case $host_cpu in
17349  ia64*)
17350    shrext_cmds='.so'
17351    hardcode_into_libs=yes
17352    dynamic_linker="$host_os dld.so"
17353    shlibpath_var=LD_LIBRARY_PATH
17354    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17355    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17356    soname_spec='$libname$release$shared_ext$major'
17357    if test 32 = "$HPUX_IA64_MODE"; then
17358      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17359      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17360    else
17361      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17362      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17363    fi
17364    ;;
17365  hppa*64*)
17366    shrext_cmds='.sl'
17367    hardcode_into_libs=yes
17368    dynamic_linker="$host_os dld.sl"
17369    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17370    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17371    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17372    soname_spec='$libname$release$shared_ext$major'
17373    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17374    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17375    ;;
17376  *)
17377    shrext_cmds='.sl'
17378    dynamic_linker="$host_os dld.sl"
17379    shlibpath_var=SHLIB_PATH
17380    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17381    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17382    soname_spec='$libname$release$shared_ext$major'
17383    ;;
17384  esac
17385  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17386  postinstall_cmds='chmod 555 $lib'
17387  # or fails outright, so override atomically:
17388  install_override_mode=555
17389  ;;
17390
17391interix[3-9]*)
17392  version_type=linux # correct to gnu/linux during the next big refactor
17393  need_lib_prefix=no
17394  need_version=no
17395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17396  soname_spec='$libname$release$shared_ext$major'
17397  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17398  shlibpath_var=LD_LIBRARY_PATH
17399  shlibpath_overrides_runpath=no
17400  hardcode_into_libs=yes
17401  ;;
17402
17403irix5* | irix6* | nonstopux*)
17404  case $host_os in
17405    nonstopux*) version_type=nonstopux ;;
17406    *)
17407	if test yes = "$lt_cv_prog_gnu_ld"; then
17408		version_type=linux # correct to gnu/linux during the next big refactor
17409	else
17410		version_type=irix
17411	fi ;;
17412  esac
17413  need_lib_prefix=no
17414  need_version=no
17415  soname_spec='$libname$release$shared_ext$major'
17416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17417  case $host_os in
17418  irix5* | nonstopux*)
17419    libsuff= shlibsuff=
17420    ;;
17421  *)
17422    case $LD in # libtool.m4 will add one of these switches to LD
17423    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17424      libsuff= shlibsuff= libmagic=32-bit;;
17425    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17426      libsuff=32 shlibsuff=N32 libmagic=N32;;
17427    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17428      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17429    *) libsuff= shlibsuff= libmagic=never-match;;
17430    esac
17431    ;;
17432  esac
17433  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17434  shlibpath_overrides_runpath=no
17435  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17436  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17437  hardcode_into_libs=yes
17438  ;;
17439
17440# No shared lib support for Linux oldld, aout, or coff.
17441linux*oldld* | linux*aout* | linux*coff*)
17442  dynamic_linker=no
17443  ;;
17444
17445linux*android*)
17446  version_type=none # Android doesn't support versioned libraries.
17447  need_lib_prefix=no
17448  need_version=no
17449  library_names_spec='$libname$release$shared_ext'
17450  soname_spec='$libname$release$shared_ext'
17451  finish_cmds=
17452  shlibpath_var=LD_LIBRARY_PATH
17453  shlibpath_overrides_runpath=yes
17454
17455  # This implies no fast_install, which is unacceptable.
17456  # Some rework will be needed to allow for fast_install
17457  # before this can be enabled.
17458  hardcode_into_libs=yes
17459
17460  dynamic_linker='Android linker'
17461  # Don't embed -rpath directories since the linker doesn't support them.
17462  hardcode_libdir_flag_spec='-L$libdir'
17463  ;;
17464
17465# This must be glibc/ELF.
17466linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17467  version_type=linux # correct to gnu/linux during the next big refactor
17468  need_lib_prefix=no
17469  need_version=no
17470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17471  soname_spec='$libname$release$shared_ext$major'
17472  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17473  shlibpath_var=LD_LIBRARY_PATH
17474  shlibpath_overrides_runpath=no
17475
17476  # Some binutils ld are patched to set DT_RUNPATH
17477  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17478  $as_echo_n "(cached) " >&6
17479else
17480  lt_cv_shlibpath_overrides_runpath=no
17481    save_LDFLAGS=$LDFLAGS
17482    save_libdir=$libdir
17483    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17484	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486/* end confdefs.h.  */
17487
17488int
17489main ()
17490{
17491
17492  ;
17493  return 0;
17494}
17495_ACEOF
17496if ac_fn_c_try_link "$LINENO"; then :
17497  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17498  lt_cv_shlibpath_overrides_runpath=yes
17499fi
17500fi
17501rm -f core conftest.err conftest.$ac_objext \
17502    conftest$ac_exeext conftest.$ac_ext
17503    LDFLAGS=$save_LDFLAGS
17504    libdir=$save_libdir
17505
17506fi
17507
17508  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17509
17510  # This implies no fast_install, which is unacceptable.
17511  # Some rework will be needed to allow for fast_install
17512  # before this can be enabled.
17513  hardcode_into_libs=yes
17514
17515  # Ideally, we could use ldconfig to report *all* directores which are
17516  # searched for libraries, however this is still not possible.  Aside from not
17517  # being certain /sbin/ldconfig is available, command
17518  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17519  # even though it is searched at run-time.  Try to do the best guess by
17520  # appending ld.so.conf contents (and includes) to the search path.
17521  if test -f /etc/ld.so.conf; then
17522    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' ' '`
17523    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17524  fi
17525
17526  # We used to test for /lib/ld.so.1 and disable shared libraries on
17527  # powerpc, because MkLinux only supported shared libraries with the
17528  # GNU dynamic linker.  Since this was broken with cross compilers,
17529  # most powerpc-linux boxes support dynamic linking these days and
17530  # people can always --disable-shared, the test was removed, and we
17531  # assume the GNU/Linux dynamic linker is in use.
17532  dynamic_linker='GNU/Linux ld.so'
17533  ;;
17534
17535netbsdelf*-gnu)
17536  version_type=linux
17537  need_lib_prefix=no
17538  need_version=no
17539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17540  soname_spec='${libname}${release}${shared_ext}$major'
17541  shlibpath_var=LD_LIBRARY_PATH
17542  shlibpath_overrides_runpath=no
17543  hardcode_into_libs=yes
17544  dynamic_linker='NetBSD ld.elf_so'
17545  ;;
17546
17547netbsd*)
17548  version_type=sunos
17549  need_lib_prefix=no
17550  need_version=no
17551  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17552    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17553    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17554    dynamic_linker='NetBSD (a.out) ld.so'
17555  else
17556    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17557    soname_spec='$libname$release$shared_ext$major'
17558    dynamic_linker='NetBSD ld.elf_so'
17559  fi
17560  shlibpath_var=LD_LIBRARY_PATH
17561  shlibpath_overrides_runpath=yes
17562  hardcode_into_libs=yes
17563  ;;
17564
17565newsos6)
17566  version_type=linux # correct to gnu/linux during the next big refactor
17567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17568  shlibpath_var=LD_LIBRARY_PATH
17569  shlibpath_overrides_runpath=yes
17570  ;;
17571
17572*nto* | *qnx*)
17573  version_type=qnx
17574  need_lib_prefix=no
17575  need_version=no
17576  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17577  soname_spec='$libname$release$shared_ext$major'
17578  shlibpath_var=LD_LIBRARY_PATH
17579  shlibpath_overrides_runpath=no
17580  hardcode_into_libs=yes
17581  dynamic_linker='ldqnx.so'
17582  ;;
17583
17584openbsd* | bitrig*)
17585  version_type=sunos
17586  sys_lib_dlsearch_path_spec=/usr/lib
17587  need_lib_prefix=no
17588  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17589    need_version=no
17590  else
17591    need_version=yes
17592  fi
17593  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17594  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17595  shlibpath_var=LD_LIBRARY_PATH
17596  shlibpath_overrides_runpath=yes
17597  ;;
17598
17599os2*)
17600  libname_spec='$name'
17601  version_type=windows
17602  shrext_cmds=.dll
17603  need_version=no
17604  need_lib_prefix=no
17605  # OS/2 can only load a DLL with a base name of 8 characters or less.
17606  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17607    v=$($ECHO $release$versuffix | tr -d .-);
17608    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17609    $ECHO $n$v`$shared_ext'
17610  library_names_spec='${libname}_dll.$libext'
17611  dynamic_linker='OS/2 ld.exe'
17612  shlibpath_var=BEGINLIBPATH
17613  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17614  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17615  postinstall_cmds='base_file=`basename \$file`~
17616    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17617    dldir=$destdir/`dirname \$dlpath`~
17618    test -d \$dldir || mkdir -p \$dldir~
17619    $install_prog $dir/$dlname \$dldir/$dlname~
17620    chmod a+x \$dldir/$dlname~
17621    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17622      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17623    fi'
17624  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17625    dlpath=$dir/\$dldll~
17626    $RM \$dlpath'
17627  ;;
17628
17629osf3* | osf4* | osf5*)
17630  version_type=osf
17631  need_lib_prefix=no
17632  need_version=no
17633  soname_spec='$libname$release$shared_ext$major'
17634  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17635  shlibpath_var=LD_LIBRARY_PATH
17636  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17637  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17638  ;;
17639
17640rdos*)
17641  dynamic_linker=no
17642  ;;
17643
17644solaris*)
17645  version_type=linux # correct to gnu/linux during the next big refactor
17646  need_lib_prefix=no
17647  need_version=no
17648  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17649  soname_spec='$libname$release$shared_ext$major'
17650  shlibpath_var=LD_LIBRARY_PATH
17651  shlibpath_overrides_runpath=yes
17652  hardcode_into_libs=yes
17653  # ldd complains unless libraries are executable
17654  postinstall_cmds='chmod +x $lib'
17655  ;;
17656
17657sunos4*)
17658  version_type=sunos
17659  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17660  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17661  shlibpath_var=LD_LIBRARY_PATH
17662  shlibpath_overrides_runpath=yes
17663  if test yes = "$with_gnu_ld"; then
17664    need_lib_prefix=no
17665  fi
17666  need_version=yes
17667  ;;
17668
17669sysv4 | sysv4.3*)
17670  version_type=linux # correct to gnu/linux during the next big refactor
17671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17672  soname_spec='$libname$release$shared_ext$major'
17673  shlibpath_var=LD_LIBRARY_PATH
17674  case $host_vendor in
17675    sni)
17676      shlibpath_overrides_runpath=no
17677      need_lib_prefix=no
17678      runpath_var=LD_RUN_PATH
17679      ;;
17680    siemens)
17681      need_lib_prefix=no
17682      ;;
17683    motorola)
17684      need_lib_prefix=no
17685      need_version=no
17686      shlibpath_overrides_runpath=no
17687      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17688      ;;
17689  esac
17690  ;;
17691
17692sysv4*MP*)
17693  if test -d /usr/nec; then
17694    version_type=linux # correct to gnu/linux during the next big refactor
17695    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17696    soname_spec='$libname$shared_ext.$major'
17697    shlibpath_var=LD_LIBRARY_PATH
17698  fi
17699  ;;
17700
17701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17702  version_type=sco
17703  need_lib_prefix=no
17704  need_version=no
17705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17706  soname_spec='$libname$release$shared_ext$major'
17707  shlibpath_var=LD_LIBRARY_PATH
17708  shlibpath_overrides_runpath=yes
17709  hardcode_into_libs=yes
17710  if test yes = "$with_gnu_ld"; then
17711    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17712  else
17713    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17714    case $host_os in
17715      sco3.2v5*)
17716        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17717	;;
17718    esac
17719  fi
17720  sys_lib_dlsearch_path_spec='/usr/lib'
17721  ;;
17722
17723tpf*)
17724  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17725  version_type=linux # correct to gnu/linux during the next big refactor
17726  need_lib_prefix=no
17727  need_version=no
17728  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17729  shlibpath_var=LD_LIBRARY_PATH
17730  shlibpath_overrides_runpath=no
17731  hardcode_into_libs=yes
17732  ;;
17733
17734uts4*)
17735  version_type=linux # correct to gnu/linux during the next big refactor
17736  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17737  soname_spec='$libname$release$shared_ext$major'
17738  shlibpath_var=LD_LIBRARY_PATH
17739  ;;
17740
17741*)
17742  dynamic_linker=no
17743  ;;
17744esac
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17746$as_echo "$dynamic_linker" >&6; }
17747test no = "$dynamic_linker" && can_build_shared=no
17748
17749variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17750if test yes = "$GCC"; then
17751  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17752fi
17753
17754if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17755  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17756fi
17757
17758if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17759  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17760fi
17761
17762# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17763configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17764
17765# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17766func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17767
17768# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17769configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17868$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17869hardcode_action=
17870if test -n "$hardcode_libdir_flag_spec" ||
17871   test -n "$runpath_var" ||
17872   test yes = "$hardcode_automatic"; then
17873
17874  # We can hardcode non-existent directories.
17875  if test no != "$hardcode_direct" &&
17876     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17877     # have to relink, otherwise we might link with an installed library
17878     # when we should be linking with a yet-to-be-installed one
17879     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17880     test no != "$hardcode_minus_L"; then
17881    # Linking always hardcodes the temporary library directory.
17882    hardcode_action=relink
17883  else
17884    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17885    hardcode_action=immediate
17886  fi
17887else
17888  # We cannot hardcode anything, or else we can only hardcode existing
17889  # directories.
17890  hardcode_action=unsupported
17891fi
17892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17893$as_echo "$hardcode_action" >&6; }
17894
17895if test relink = "$hardcode_action" ||
17896   test yes = "$inherit_rpath"; then
17897  # Fast installation is not supported
17898  enable_fast_install=no
17899elif test yes = "$shlibpath_overrides_runpath" ||
17900     test no = "$enable_shared"; then
17901  # Fast installation is not necessary
17902  enable_fast_install=needless
17903fi
17904
17905
17906
17907
17908
17909
17910  if test yes != "$enable_dlopen"; then
17911  enable_dlopen=unknown
17912  enable_dlopen_self=unknown
17913  enable_dlopen_self_static=unknown
17914else
17915  lt_cv_dlopen=no
17916  lt_cv_dlopen_libs=
17917
17918  case $host_os in
17919  beos*)
17920    lt_cv_dlopen=load_add_on
17921    lt_cv_dlopen_libs=
17922    lt_cv_dlopen_self=yes
17923    ;;
17924
17925  mingw* | pw32* | cegcc*)
17926    lt_cv_dlopen=LoadLibrary
17927    lt_cv_dlopen_libs=
17928    ;;
17929
17930  cygwin*)
17931    lt_cv_dlopen=dlopen
17932    lt_cv_dlopen_libs=
17933    ;;
17934
17935  darwin*)
17936    # if libdl is installed we need to link against it
17937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17938$as_echo_n "checking for dlopen in -ldl... " >&6; }
17939if ${ac_cv_lib_dl_dlopen+:} false; then :
17940  $as_echo_n "(cached) " >&6
17941else
17942  ac_check_lib_save_LIBS=$LIBS
17943LIBS="-ldl  $LIBS"
17944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945/* end confdefs.h.  */
17946
17947/* Override any GCC internal prototype to avoid an error.
17948   Use char because int might match the return type of a GCC
17949   builtin and then its argument prototype would still apply.  */
17950#ifdef __cplusplus
17951extern "C"
17952#endif
17953char dlopen ();
17954int
17955main ()
17956{
17957return dlopen ();
17958  ;
17959  return 0;
17960}
17961_ACEOF
17962if ac_fn_c_try_link "$LINENO"; then :
17963  ac_cv_lib_dl_dlopen=yes
17964else
17965  ac_cv_lib_dl_dlopen=no
17966fi
17967rm -f core conftest.err conftest.$ac_objext \
17968    conftest$ac_exeext conftest.$ac_ext
17969LIBS=$ac_check_lib_save_LIBS
17970fi
17971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17972$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17973if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17974  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17975else
17976
17977    lt_cv_dlopen=dyld
17978    lt_cv_dlopen_libs=
17979    lt_cv_dlopen_self=yes
17980
17981fi
17982
17983    ;;
17984
17985  tpf*)
17986    # Don't try to run any link tests for TPF.  We know it's impossible
17987    # because TPF is a cross-compiler, and we know how we open DSOs.
17988    lt_cv_dlopen=dlopen
17989    lt_cv_dlopen_libs=
17990    lt_cv_dlopen_self=no
17991    ;;
17992
17993  *)
17994    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17995if test "x$ac_cv_func_shl_load" = xyes; then :
17996  lt_cv_dlopen=shl_load
17997else
17998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17999$as_echo_n "checking for shl_load in -ldld... " >&6; }
18000if ${ac_cv_lib_dld_shl_load+:} false; then :
18001  $as_echo_n "(cached) " >&6
18002else
18003  ac_check_lib_save_LIBS=$LIBS
18004LIBS="-ldld  $LIBS"
18005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007
18008/* Override any GCC internal prototype to avoid an error.
18009   Use char because int might match the return type of a GCC
18010   builtin and then its argument prototype would still apply.  */
18011#ifdef __cplusplus
18012extern "C"
18013#endif
18014char shl_load ();
18015int
18016main ()
18017{
18018return shl_load ();
18019  ;
18020  return 0;
18021}
18022_ACEOF
18023if ac_fn_c_try_link "$LINENO"; then :
18024  ac_cv_lib_dld_shl_load=yes
18025else
18026  ac_cv_lib_dld_shl_load=no
18027fi
18028rm -f core conftest.err conftest.$ac_objext \
18029    conftest$ac_exeext conftest.$ac_ext
18030LIBS=$ac_check_lib_save_LIBS
18031fi
18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18033$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18034if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18035  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18036else
18037  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18038if test "x$ac_cv_func_dlopen" = xyes; then :
18039  lt_cv_dlopen=dlopen
18040else
18041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18042$as_echo_n "checking for dlopen in -ldl... " >&6; }
18043if ${ac_cv_lib_dl_dlopen+:} false; then :
18044  $as_echo_n "(cached) " >&6
18045else
18046  ac_check_lib_save_LIBS=$LIBS
18047LIBS="-ldl  $LIBS"
18048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049/* end confdefs.h.  */
18050
18051/* Override any GCC internal prototype to avoid an error.
18052   Use char because int might match the return type of a GCC
18053   builtin and then its argument prototype would still apply.  */
18054#ifdef __cplusplus
18055extern "C"
18056#endif
18057char dlopen ();
18058int
18059main ()
18060{
18061return dlopen ();
18062  ;
18063  return 0;
18064}
18065_ACEOF
18066if ac_fn_c_try_link "$LINENO"; then :
18067  ac_cv_lib_dl_dlopen=yes
18068else
18069  ac_cv_lib_dl_dlopen=no
18070fi
18071rm -f core conftest.err conftest.$ac_objext \
18072    conftest$ac_exeext conftest.$ac_ext
18073LIBS=$ac_check_lib_save_LIBS
18074fi
18075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18076$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18077if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18078  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18079else
18080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18081$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18082if ${ac_cv_lib_svld_dlopen+:} false; then :
18083  $as_echo_n "(cached) " >&6
18084else
18085  ac_check_lib_save_LIBS=$LIBS
18086LIBS="-lsvld  $LIBS"
18087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h.  */
18089
18090/* Override any GCC internal prototype to avoid an error.
18091   Use char because int might match the return type of a GCC
18092   builtin and then its argument prototype would still apply.  */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char dlopen ();
18097int
18098main ()
18099{
18100return dlopen ();
18101  ;
18102  return 0;
18103}
18104_ACEOF
18105if ac_fn_c_try_link "$LINENO"; then :
18106  ac_cv_lib_svld_dlopen=yes
18107else
18108  ac_cv_lib_svld_dlopen=no
18109fi
18110rm -f core conftest.err conftest.$ac_objext \
18111    conftest$ac_exeext conftest.$ac_ext
18112LIBS=$ac_check_lib_save_LIBS
18113fi
18114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18115$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18116if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18117  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18118else
18119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18120$as_echo_n "checking for dld_link in -ldld... " >&6; }
18121if ${ac_cv_lib_dld_dld_link+:} false; then :
18122  $as_echo_n "(cached) " >&6
18123else
18124  ac_check_lib_save_LIBS=$LIBS
18125LIBS="-ldld  $LIBS"
18126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h.  */
18128
18129/* Override any GCC internal prototype to avoid an error.
18130   Use char because int might match the return type of a GCC
18131   builtin and then its argument prototype would still apply.  */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char dld_link ();
18136int
18137main ()
18138{
18139return dld_link ();
18140  ;
18141  return 0;
18142}
18143_ACEOF
18144if ac_fn_c_try_link "$LINENO"; then :
18145  ac_cv_lib_dld_dld_link=yes
18146else
18147  ac_cv_lib_dld_dld_link=no
18148fi
18149rm -f core conftest.err conftest.$ac_objext \
18150    conftest$ac_exeext conftest.$ac_ext
18151LIBS=$ac_check_lib_save_LIBS
18152fi
18153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18154$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18155if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18156  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18157fi
18158
18159
18160fi
18161
18162
18163fi
18164
18165
18166fi
18167
18168
18169fi
18170
18171
18172fi
18173
18174    ;;
18175  esac
18176
18177  if test no = "$lt_cv_dlopen"; then
18178    enable_dlopen=no
18179  else
18180    enable_dlopen=yes
18181  fi
18182
18183  case $lt_cv_dlopen in
18184  dlopen)
18185    save_CPPFLAGS=$CPPFLAGS
18186    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18187
18188    save_LDFLAGS=$LDFLAGS
18189    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18190
18191    save_LIBS=$LIBS
18192    LIBS="$lt_cv_dlopen_libs $LIBS"
18193
18194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18195$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18196if ${lt_cv_dlopen_self+:} false; then :
18197  $as_echo_n "(cached) " >&6
18198else
18199  	  if test yes = "$cross_compiling"; then :
18200  lt_cv_dlopen_self=cross
18201else
18202  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18203  lt_status=$lt_dlunknown
18204  cat > conftest.$ac_ext <<_LT_EOF
18205#line $LINENO "configure"
18206#include "confdefs.h"
18207
18208#if HAVE_DLFCN_H
18209#include <dlfcn.h>
18210#endif
18211
18212#include <stdio.h>
18213
18214#ifdef RTLD_GLOBAL
18215#  define LT_DLGLOBAL		RTLD_GLOBAL
18216#else
18217#  ifdef DL_GLOBAL
18218#    define LT_DLGLOBAL		DL_GLOBAL
18219#  else
18220#    define LT_DLGLOBAL		0
18221#  endif
18222#endif
18223
18224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18225   find out it does not work in some platform. */
18226#ifndef LT_DLLAZY_OR_NOW
18227#  ifdef RTLD_LAZY
18228#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18229#  else
18230#    ifdef DL_LAZY
18231#      define LT_DLLAZY_OR_NOW		DL_LAZY
18232#    else
18233#      ifdef RTLD_NOW
18234#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18235#      else
18236#        ifdef DL_NOW
18237#          define LT_DLLAZY_OR_NOW	DL_NOW
18238#        else
18239#          define LT_DLLAZY_OR_NOW	0
18240#        endif
18241#      endif
18242#    endif
18243#  endif
18244#endif
18245
18246/* When -fvisibility=hidden is used, assume the code has been annotated
18247   correspondingly for the symbols needed.  */
18248#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18249int fnord () __attribute__((visibility("default")));
18250#endif
18251
18252int fnord () { return 42; }
18253int main ()
18254{
18255  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18256  int status = $lt_dlunknown;
18257
18258  if (self)
18259    {
18260      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18261      else
18262        {
18263	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18264          else puts (dlerror ());
18265	}
18266      /* dlclose (self); */
18267    }
18268  else
18269    puts (dlerror ());
18270
18271  return status;
18272}
18273_LT_EOF
18274  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18275  (eval $ac_link) 2>&5
18276  ac_status=$?
18277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18278  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18279    (./conftest; exit; ) >&5 2>/dev/null
18280    lt_status=$?
18281    case x$lt_status in
18282      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18283      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18284      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18285    esac
18286  else :
18287    # compilation failed
18288    lt_cv_dlopen_self=no
18289  fi
18290fi
18291rm -fr conftest*
18292
18293
18294fi
18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18296$as_echo "$lt_cv_dlopen_self" >&6; }
18297
18298    if test yes = "$lt_cv_dlopen_self"; then
18299      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18300      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18301$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18302if ${lt_cv_dlopen_self_static+:} false; then :
18303  $as_echo_n "(cached) " >&6
18304else
18305  	  if test yes = "$cross_compiling"; then :
18306  lt_cv_dlopen_self_static=cross
18307else
18308  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18309  lt_status=$lt_dlunknown
18310  cat > conftest.$ac_ext <<_LT_EOF
18311#line $LINENO "configure"
18312#include "confdefs.h"
18313
18314#if HAVE_DLFCN_H
18315#include <dlfcn.h>
18316#endif
18317
18318#include <stdio.h>
18319
18320#ifdef RTLD_GLOBAL
18321#  define LT_DLGLOBAL		RTLD_GLOBAL
18322#else
18323#  ifdef DL_GLOBAL
18324#    define LT_DLGLOBAL		DL_GLOBAL
18325#  else
18326#    define LT_DLGLOBAL		0
18327#  endif
18328#endif
18329
18330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18331   find out it does not work in some platform. */
18332#ifndef LT_DLLAZY_OR_NOW
18333#  ifdef RTLD_LAZY
18334#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18335#  else
18336#    ifdef DL_LAZY
18337#      define LT_DLLAZY_OR_NOW		DL_LAZY
18338#    else
18339#      ifdef RTLD_NOW
18340#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18341#      else
18342#        ifdef DL_NOW
18343#          define LT_DLLAZY_OR_NOW	DL_NOW
18344#        else
18345#          define LT_DLLAZY_OR_NOW	0
18346#        endif
18347#      endif
18348#    endif
18349#  endif
18350#endif
18351
18352/* When -fvisibility=hidden is used, assume the code has been annotated
18353   correspondingly for the symbols needed.  */
18354#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18355int fnord () __attribute__((visibility("default")));
18356#endif
18357
18358int fnord () { return 42; }
18359int main ()
18360{
18361  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18362  int status = $lt_dlunknown;
18363
18364  if (self)
18365    {
18366      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18367      else
18368        {
18369	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18370          else puts (dlerror ());
18371	}
18372      /* dlclose (self); */
18373    }
18374  else
18375    puts (dlerror ());
18376
18377  return status;
18378}
18379_LT_EOF
18380  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18381  (eval $ac_link) 2>&5
18382  ac_status=$?
18383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18384  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18385    (./conftest; exit; ) >&5 2>/dev/null
18386    lt_status=$?
18387    case x$lt_status in
18388      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18389      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18390      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18391    esac
18392  else :
18393    # compilation failed
18394    lt_cv_dlopen_self_static=no
18395  fi
18396fi
18397rm -fr conftest*
18398
18399
18400fi
18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18402$as_echo "$lt_cv_dlopen_self_static" >&6; }
18403    fi
18404
18405    CPPFLAGS=$save_CPPFLAGS
18406    LDFLAGS=$save_LDFLAGS
18407    LIBS=$save_LIBS
18408    ;;
18409  esac
18410
18411  case $lt_cv_dlopen_self in
18412  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18413  *) enable_dlopen_self=unknown ;;
18414  esac
18415
18416  case $lt_cv_dlopen_self_static in
18417  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18418  *) enable_dlopen_self_static=unknown ;;
18419  esac
18420fi
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438striplib=
18439old_striplib=
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18441$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18442if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18443  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18444  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18446$as_echo "yes" >&6; }
18447else
18448# FIXME - insert some real tests, host_os isn't really good enough
18449  case $host_os in
18450  darwin*)
18451    if test -n "$STRIP"; then
18452      striplib="$STRIP -x"
18453      old_striplib="$STRIP -S"
18454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18455$as_echo "yes" >&6; }
18456    else
18457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458$as_echo "no" >&6; }
18459    fi
18460    ;;
18461  *)
18462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18463$as_echo "no" >&6; }
18464    ;;
18465  esac
18466fi
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479  # Report what library types will actually be built
18480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18481$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18483$as_echo "$can_build_shared" >&6; }
18484
18485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18486$as_echo_n "checking whether to build shared libraries... " >&6; }
18487  test no = "$can_build_shared" && enable_shared=no
18488
18489  # On AIX, shared libraries and static libraries use the same namespace, and
18490  # are all built from PIC.
18491  case $host_os in
18492  aix3*)
18493    test yes = "$enable_shared" && enable_static=no
18494    if test -n "$RANLIB"; then
18495      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18496      postinstall_cmds='$RANLIB $lib'
18497    fi
18498    ;;
18499
18500  aix[4-9]*)
18501    if test ia64 != "$host_cpu"; then
18502      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18503      yes,aix,yes) ;;			# shared object as lib.so file only
18504      yes,svr4,*) ;;			# shared object as lib.so archive member only
18505      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18506      esac
18507    fi
18508    ;;
18509  esac
18510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18511$as_echo "$enable_shared" >&6; }
18512
18513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18514$as_echo_n "checking whether to build static libraries... " >&6; }
18515  # Make sure either enable_shared or enable_static is yes.
18516  test yes = "$enable_shared" || enable_static=yes
18517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18518$as_echo "$enable_static" >&6; }
18519
18520
18521
18522
18523fi
18524ac_ext=c
18525ac_cpp='$CPP $CPPFLAGS'
18526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530CC=$lt_save_CC
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546        ac_config_commands="$ac_config_commands libtool"
18547
18548
18549
18550
18551# Only expand once:
18552
18553
18554
18555
18556
18557# Define a configure option for an alternate module directory
18558
18559# Check whether --with-xorg-module-dir was given.
18560if test "${with_xorg_module_dir+set}" = set; then :
18561  withval=$with_xorg_module_dir;  moduledir="$withval"
18562else
18563   moduledir="$libdir/xorg/modules"
18564fi
18565
18566
18567
18568
18569# Store the list of server defined optional extensions in REQUIRED_MODULES
18570
18571
18572	SAVE_CFLAGS="$CFLAGS"
18573	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18574	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575/* end confdefs.h.  */
18576
18577#include "xorg-server.h"
18578#if !defined RANDR
18579#error RANDR not defined
18580#endif
18581
18582int
18583main ()
18584{
18585
18586  ;
18587  return 0;
18588}
18589_ACEOF
18590if ac_fn_c_try_compile "$LINENO"; then :
18591  _EXT_CHECK=yes
18592else
18593  _EXT_CHECK=no
18594fi
18595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18596	CFLAGS="$SAVE_CFLAGS"
18597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18598$as_echo_n "checking if RANDR is defined... " >&6; }
18599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18600$as_echo "$_EXT_CHECK" >&6; }
18601	if test "$_EXT_CHECK" != no; then
18602		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18603	fi
18604
18605
18606
18607	SAVE_CFLAGS="$CFLAGS"
18608	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18609	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611
18612#include "xorg-server.h"
18613#if !defined RENDER
18614#error RENDER not defined
18615#endif
18616
18617int
18618main ()
18619{
18620
18621  ;
18622  return 0;
18623}
18624_ACEOF
18625if ac_fn_c_try_compile "$LINENO"; then :
18626  _EXT_CHECK=yes
18627else
18628  _EXT_CHECK=no
18629fi
18630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631	CFLAGS="$SAVE_CFLAGS"
18632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18633$as_echo_n "checking if RENDER is defined... " >&6; }
18634	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18635$as_echo "$_EXT_CHECK" >&6; }
18636	if test "$_EXT_CHECK" != no; then
18637		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18638	fi
18639
18640
18641
18642	SAVE_CFLAGS="$CFLAGS"
18643	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18644	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h.  */
18646
18647#include "xorg-server.h"
18648#if !defined XV
18649#error XV not defined
18650#endif
18651
18652int
18653main ()
18654{
18655
18656  ;
18657  return 0;
18658}
18659_ACEOF
18660if ac_fn_c_try_compile "$LINENO"; then :
18661  _EXT_CHECK=yes
18662else
18663  _EXT_CHECK=no
18664fi
18665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666	CFLAGS="$SAVE_CFLAGS"
18667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18668$as_echo_n "checking if XV is defined... " >&6; }
18669	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18670$as_echo "$_EXT_CHECK" >&6; }
18671	if test "$_EXT_CHECK" != no; then
18672		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18673	fi
18674
18675
18676
18677	SAVE_CFLAGS="$CFLAGS"
18678	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18679	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680/* end confdefs.h.  */
18681
18682#include "xorg-server.h"
18683#if !defined DPMSExtension
18684#error DPMSExtension not defined
18685#endif
18686
18687int
18688main ()
18689{
18690
18691  ;
18692  return 0;
18693}
18694_ACEOF
18695if ac_fn_c_try_compile "$LINENO"; then :
18696  _EXT_CHECK=yes
18697else
18698  _EXT_CHECK=no
18699fi
18700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701	CFLAGS="$SAVE_CFLAGS"
18702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18703$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18704	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18705$as_echo "$_EXT_CHECK" >&6; }
18706	if test "$_EXT_CHECK" != no; then
18707		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18708	fi
18709
18710
18711# Obtain compiler/linker options for the driver dependencies
18712
18713pkg_failed=no
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18715$as_echo_n "checking for XORG... " >&6; }
18716
18717if test -n "$XORG_CFLAGS"; then
18718    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18719 elif test -n "$PKG_CONFIG"; then
18720    if test -n "$PKG_CONFIG" && \
18721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18722  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18723  ac_status=$?
18724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725  test $ac_status = 0; }; then
18726  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18727		      test "x$?" != "x0" && pkg_failed=yes
18728else
18729  pkg_failed=yes
18730fi
18731 else
18732    pkg_failed=untried
18733fi
18734if test -n "$XORG_LIBS"; then
18735    pkg_cv_XORG_LIBS="$XORG_LIBS"
18736 elif test -n "$PKG_CONFIG"; then
18737    if test -n "$PKG_CONFIG" && \
18738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18739  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18740  ac_status=$?
18741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18742  test $ac_status = 0; }; then
18743  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18744		      test "x$?" != "x0" && pkg_failed=yes
18745else
18746  pkg_failed=yes
18747fi
18748 else
18749    pkg_failed=untried
18750fi
18751
18752
18753
18754if test $pkg_failed = yes; then
18755   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756$as_echo "no" >&6; }
18757
18758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18759        _pkg_short_errors_supported=yes
18760else
18761        _pkg_short_errors_supported=no
18762fi
18763        if test $_pkg_short_errors_supported = yes; then
18764	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18765        else
18766	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18767        fi
18768	# Put the nasty error message in config.log where it belongs
18769	echo "$XORG_PKG_ERRORS" >&5
18770
18771	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18772
18773$XORG_PKG_ERRORS
18774
18775Consider adjusting the PKG_CONFIG_PATH environment variable if you
18776installed software in a non-standard prefix.
18777
18778Alternatively, you may set the environment variables XORG_CFLAGS
18779and XORG_LIBS to avoid the need to call pkg-config.
18780See the pkg-config man page for more details." "$LINENO" 5
18781elif test $pkg_failed = untried; then
18782     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18783$as_echo "no" >&6; }
18784	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18786as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18787is in your PATH or set the PKG_CONFIG environment variable to the full
18788path to pkg-config.
18789
18790Alternatively, you may set the environment variables XORG_CFLAGS
18791and XORG_LIBS to avoid the need to call pkg-config.
18792See the pkg-config man page for more details.
18793
18794To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18795See \`config.log' for more details" "$LINENO" 5; }
18796else
18797	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18798	XORG_LIBS=$pkg_cv_XORG_LIBS
18799        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18800$as_echo "yes" >&6; }
18801
18802fi
18803
18804pkg_failed=no
18805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18806$as_echo_n "checking for XEXT... " >&6; }
18807
18808if test -n "$XEXT_CFLAGS"; then
18809    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18810 elif test -n "$PKG_CONFIG"; then
18811    if test -n "$PKG_CONFIG" && \
18812    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18813  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18814  ac_status=$?
18815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18816  test $ac_status = 0; }; then
18817  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18818		      test "x$?" != "x0" && pkg_failed=yes
18819else
18820  pkg_failed=yes
18821fi
18822 else
18823    pkg_failed=untried
18824fi
18825if test -n "$XEXT_LIBS"; then
18826    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18827 elif test -n "$PKG_CONFIG"; then
18828    if test -n "$PKG_CONFIG" && \
18829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18830  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18831  ac_status=$?
18832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18833  test $ac_status = 0; }; then
18834  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18835		      test "x$?" != "x0" && pkg_failed=yes
18836else
18837  pkg_failed=yes
18838fi
18839 else
18840    pkg_failed=untried
18841fi
18842
18843
18844
18845if test $pkg_failed = yes; then
18846   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847$as_echo "no" >&6; }
18848
18849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18850        _pkg_short_errors_supported=yes
18851else
18852        _pkg_short_errors_supported=no
18853fi
18854        if test $_pkg_short_errors_supported = yes; then
18855	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18856        else
18857	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18858        fi
18859	# Put the nasty error message in config.log where it belongs
18860	echo "$XEXT_PKG_ERRORS" >&5
18861
18862	HAVE_XEXTPROTO_71="no"
18863elif test $pkg_failed = untried; then
18864     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18865$as_echo "no" >&6; }
18866	HAVE_XEXTPROTO_71="no"
18867else
18868	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18869	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18871$as_echo "yes" >&6; }
18872	HAVE_XEXTPROTO_71="yes";
18873$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18874
18875fi
18876 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18877  HAVE_XEXTPROTO_71_TRUE=
18878  HAVE_XEXTPROTO_71_FALSE='#'
18879else
18880  HAVE_XEXTPROTO_71_TRUE='#'
18881  HAVE_XEXTPROTO_71_FALSE=
18882fi
18883
18884
18885
18886
18887pkg_failed=no
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18889$as_echo_n "checking for PCIACCESS... " >&6; }
18890
18891if test -n "$PCIACCESS_CFLAGS"; then
18892    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18893 elif test -n "$PKG_CONFIG"; then
18894    if test -n "$PKG_CONFIG" && \
18895    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18896  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18897  ac_status=$?
18898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18899  test $ac_status = 0; }; then
18900  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18901		      test "x$?" != "x0" && pkg_failed=yes
18902else
18903  pkg_failed=yes
18904fi
18905 else
18906    pkg_failed=untried
18907fi
18908if test -n "$PCIACCESS_LIBS"; then
18909    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18910 elif test -n "$PKG_CONFIG"; then
18911    if test -n "$PKG_CONFIG" && \
18912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18913  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18914  ac_status=$?
18915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916  test $ac_status = 0; }; then
18917  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18918		      test "x$?" != "x0" && pkg_failed=yes
18919else
18920  pkg_failed=yes
18921fi
18922 else
18923    pkg_failed=untried
18924fi
18925
18926
18927
18928if test $pkg_failed = yes; then
18929   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18930$as_echo "no" >&6; }
18931
18932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18933        _pkg_short_errors_supported=yes
18934else
18935        _pkg_short_errors_supported=no
18936fi
18937        if test $_pkg_short_errors_supported = yes; then
18938	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18939        else
18940	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18941        fi
18942	# Put the nasty error message in config.log where it belongs
18943	echo "$PCIACCESS_PKG_ERRORS" >&5
18944
18945	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18946
18947$PCIACCESS_PKG_ERRORS
18948
18949Consider adjusting the PKG_CONFIG_PATH environment variable if you
18950installed software in a non-standard prefix.
18951
18952Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18953and PCIACCESS_LIBS to avoid the need to call pkg-config.
18954See the pkg-config man page for more details." "$LINENO" 5
18955elif test $pkg_failed = untried; then
18956     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957$as_echo "no" >&6; }
18958	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18960as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18961is in your PATH or set the PKG_CONFIG environment variable to the full
18962path to pkg-config.
18963
18964Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18965and PCIACCESS_LIBS to avoid the need to call pkg-config.
18966See the pkg-config man page for more details.
18967
18968To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18969See \`config.log' for more details" "$LINENO" 5; }
18970else
18971	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18972	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18973        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18974$as_echo "yes" >&6; }
18975
18976fi
18977
18978DRIVER_NAME=apm
18979
18980
18981# since we cannot use the result from XORG_DRIVER_CHECK_EXT directly.
18982ac_fn_c_check_decl "$LINENO" "XV" "ac_cv_have_decl_XV" "#include \"xorg/xorg-server.h\"
18983"
18984if test "x$ac_cv_have_decl_XV" = xyes; then :
18985  have_xv=yes
18986else
18987  have_xv=false
18988fi
18989
18990if test "x$have_xv" = xyes; then
18991	SAVED_CFLAGS="$CFLAGS"
18992	CFLAGS="$CFLAGS $XORG_CFLAGS"
18993
18994	ac_fn_c_check_member "$LINENO" "ScrnInfoRec" "ModeSet" "ac_cv_member_ScrnInfoRec_ModeSet" "#include \"xf86str.h\"
18995"
18996if test "x$ac_cv_member_ScrnInfoRec_ModeSet" = xyes; then :
18997  SCRNINFO_HAS_MODESET=yes
18998else
18999  SCRNINFO_HAS_MODESET=no
19000fi
19001
19002	if test "x$SCRNINFO_HAS_MODESET" = xyes; then
19003
19004$as_echo "#define XV_NEW_REPUT 1" >>confdefs.h
19005
19006	fi
19007
19008	CFLAGS="$SAVED_CFLAGS"
19009fi
19010 if test x$XV_NEW_REPUT = xyes; then
19011  XV_NEW_REPUT_TRUE=
19012  XV_NEW_REPUT_FALSE='#'
19013else
19014  XV_NEW_REPUT_TRUE='#'
19015  XV_NEW_REPUT_FALSE=
19016fi
19017
19018
19019# Check whether --enable-xaa was given.
19020if test "${enable_xaa+set}" = set; then :
19021  enableval=$enable_xaa; XAA="$enableval"
19022else
19023  XAA=auto
19024fi
19025
19026if test "x$XAA" != xno; then
19027        save_CFLAGS=$CFLAGS
19028        save_CPPFLAGS=$CPPFLAGS
19029        CFLAGS=$XORG_CFLAGS
19030        CPPFLAGS="$XORG_CFLAGS"
19031        for ac_header in xaa.h
19032do :
19033  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19034if test "x$ac_cv_header_xaa_h" = xyes; then :
19035  cat >>confdefs.h <<_ACEOF
19036#define HAVE_XAA_H 1
19037_ACEOF
19038 XAA=yes
19039else
19040  XAA=no
19041fi
19042
19043done
19044
19045        CFLAGS=$save_CFLAGS
19046        CPPFLAGS=$save_CPPFLAGS
19047fi
19048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19049$as_echo_n "checking whether to include XAA support... " >&6; }
19050 if test "x$XAA" = xyes; then
19051  XAA_TRUE=
19052  XAA_FALSE='#'
19053else
19054  XAA_TRUE='#'
19055  XAA_FALSE=
19056fi
19057
19058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19059$as_echo "$XAA" >&6; }
19060
19061
19062ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19063
19064cat >confcache <<\_ACEOF
19065# This file is a shell script that caches the results of configure
19066# tests run on this system so they can be shared between configure
19067# scripts and configure runs, see configure's option --config-cache.
19068# It is not useful on other systems.  If it contains results you don't
19069# want to keep, you may remove or edit it.
19070#
19071# config.status only pays attention to the cache file if you give it
19072# the --recheck option to rerun configure.
19073#
19074# `ac_cv_env_foo' variables (set or unset) will be overridden when
19075# loading this file, other *unset* `ac_cv_foo' will be assigned the
19076# following values.
19077
19078_ACEOF
19079
19080# The following way of writing the cache mishandles newlines in values,
19081# but we know of no workaround that is simple, portable, and efficient.
19082# So, we kill variables containing newlines.
19083# Ultrix sh set writes to stderr and can't be redirected directly,
19084# and sets the high bit in the cache file unless we assign to the vars.
19085(
19086  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19087    eval ac_val=\$$ac_var
19088    case $ac_val in #(
19089    *${as_nl}*)
19090      case $ac_var in #(
19091      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19093      esac
19094      case $ac_var in #(
19095      _ | IFS | as_nl) ;; #(
19096      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19097      *) { eval $ac_var=; unset $ac_var;} ;;
19098      esac ;;
19099    esac
19100  done
19101
19102  (set) 2>&1 |
19103    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19104    *${as_nl}ac_space=\ *)
19105      # `set' does not quote correctly, so add quotes: double-quote
19106      # substitution turns \\\\ into \\, and sed turns \\ into \.
19107      sed -n \
19108	"s/'/'\\\\''/g;
19109	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19110      ;; #(
19111    *)
19112      # `set' quotes correctly as required by POSIX, so do not add quotes.
19113      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19114      ;;
19115    esac |
19116    sort
19117) |
19118  sed '
19119     /^ac_cv_env_/b end
19120     t clear
19121     :clear
19122     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19123     t end
19124     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19125     :end' >>confcache
19126if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19127  if test -w "$cache_file"; then
19128    if test "x$cache_file" != "x/dev/null"; then
19129      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19130$as_echo "$as_me: updating cache $cache_file" >&6;}
19131      if test ! -f "$cache_file" || test -h "$cache_file"; then
19132	cat confcache >"$cache_file"
19133      else
19134        case $cache_file in #(
19135        */* | ?:*)
19136	  mv -f confcache "$cache_file"$$ &&
19137	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19138        *)
19139	  mv -f confcache "$cache_file" ;;
19140	esac
19141      fi
19142    fi
19143  else
19144    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19145$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19146  fi
19147fi
19148rm -f confcache
19149
19150test "x$prefix" = xNONE && prefix=$ac_default_prefix
19151# Let make expand exec_prefix.
19152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19153
19154DEFS=-DHAVE_CONFIG_H
19155
19156ac_libobjs=
19157ac_ltlibobjs=
19158U=
19159for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19160  # 1. Remove the extension, and $U if already installed.
19161  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19162  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19163  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19164  #    will be set to the directory where LIBOBJS objects are built.
19165  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19166  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19167done
19168LIBOBJS=$ac_libobjs
19169
19170LTLIBOBJS=$ac_ltlibobjs
19171
19172
19173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19174$as_echo_n "checking that generated files are newer than configure... " >&6; }
19175   if test -n "$am_sleep_pid"; then
19176     # Hide warnings about reused PIDs.
19177     wait $am_sleep_pid 2>/dev/null
19178   fi
19179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19180$as_echo "done" >&6; }
19181 if test -n "$EXEEXT"; then
19182  am__EXEEXT_TRUE=
19183  am__EXEEXT_FALSE='#'
19184else
19185  am__EXEEXT_TRUE='#'
19186  am__EXEEXT_FALSE=
19187fi
19188
19189if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19190  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19191Usually this means the macro was only invoked conditionally." "$LINENO" 5
19192fi
19193if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19194  as_fn_error $? "conditional \"AMDEP\" was never defined.
19195Usually this means the macro was only invoked conditionally." "$LINENO" 5
19196fi
19197if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19198  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19199Usually this means the macro was only invoked conditionally." "$LINENO" 5
19200fi
19201if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19202  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19203Usually this means the macro was only invoked conditionally." "$LINENO" 5
19204fi
19205if test -z "${XV_NEW_REPUT_TRUE}" && test -z "${XV_NEW_REPUT_FALSE}"; then
19206  as_fn_error $? "conditional \"XV_NEW_REPUT\" was never defined.
19207Usually this means the macro was only invoked conditionally." "$LINENO" 5
19208fi
19209if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19210  as_fn_error $? "conditional \"XAA\" was never defined.
19211Usually this means the macro was only invoked conditionally." "$LINENO" 5
19212fi
19213
19214: "${CONFIG_STATUS=./config.status}"
19215ac_write_fail=0
19216ac_clean_files_save=$ac_clean_files
19217ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19218{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19219$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19220as_write_fail=0
19221cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19222#! $SHELL
19223# Generated by $as_me.
19224# Run this file to recreate the current configuration.
19225# Compiler output produced by configure, useful for debugging
19226# configure, is in config.log if it exists.
19227
19228debug=false
19229ac_cs_recheck=false
19230ac_cs_silent=false
19231
19232SHELL=\${CONFIG_SHELL-$SHELL}
19233export SHELL
19234_ASEOF
19235cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19236## -------------------- ##
19237## M4sh Initialization. ##
19238## -------------------- ##
19239
19240# Be more Bourne compatible
19241DUALCASE=1; export DUALCASE # for MKS sh
19242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19243  emulate sh
19244  NULLCMD=:
19245  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19246  # is contrary to our usage.  Disable this feature.
19247  alias -g '${1+"$@"}'='"$@"'
19248  setopt NO_GLOB_SUBST
19249else
19250  case `(set -o) 2>/dev/null` in #(
19251  *posix*) :
19252    set -o posix ;; #(
19253  *) :
19254     ;;
19255esac
19256fi
19257
19258
19259as_nl='
19260'
19261export as_nl
19262# Printing a long string crashes Solaris 7 /usr/bin/printf.
19263as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19266# Prefer a ksh shell builtin over an external printf program on Solaris,
19267# but without wasting forks for bash or zsh.
19268if test -z "$BASH_VERSION$ZSH_VERSION" \
19269    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19270  as_echo='print -r --'
19271  as_echo_n='print -rn --'
19272elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19273  as_echo='printf %s\n'
19274  as_echo_n='printf %s'
19275else
19276  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19277    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19278    as_echo_n='/usr/ucb/echo -n'
19279  else
19280    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19281    as_echo_n_body='eval
19282      arg=$1;
19283      case $arg in #(
19284      *"$as_nl"*)
19285	expr "X$arg" : "X\\(.*\\)$as_nl";
19286	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19287      esac;
19288      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19289    '
19290    export as_echo_n_body
19291    as_echo_n='sh -c $as_echo_n_body as_echo'
19292  fi
19293  export as_echo_body
19294  as_echo='sh -c $as_echo_body as_echo'
19295fi
19296
19297# The user is always right.
19298if test "${PATH_SEPARATOR+set}" != set; then
19299  PATH_SEPARATOR=:
19300  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19301    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19302      PATH_SEPARATOR=';'
19303  }
19304fi
19305
19306
19307# IFS
19308# We need space, tab and new line, in precisely that order.  Quoting is
19309# there to prevent editors from complaining about space-tab.
19310# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19311# splitting by setting IFS to empty value.)
19312IFS=" ""	$as_nl"
19313
19314# Find who we are.  Look in the path if we contain no directory separator.
19315as_myself=
19316case $0 in #((
19317  *[\\/]* ) as_myself=$0 ;;
19318  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19319for as_dir in $PATH
19320do
19321  IFS=$as_save_IFS
19322  test -z "$as_dir" && as_dir=.
19323    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19324  done
19325IFS=$as_save_IFS
19326
19327     ;;
19328esac
19329# We did not find ourselves, most probably we were run as `sh COMMAND'
19330# in which case we are not to be found in the path.
19331if test "x$as_myself" = x; then
19332  as_myself=$0
19333fi
19334if test ! -f "$as_myself"; then
19335  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19336  exit 1
19337fi
19338
19339# Unset variables that we do not need and which cause bugs (e.g. in
19340# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19341# suppresses any "Segmentation fault" message there.  '((' could
19342# trigger a bug in pdksh 5.2.14.
19343for as_var in BASH_ENV ENV MAIL MAILPATH
19344do eval test x\${$as_var+set} = xset \
19345  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19346done
19347PS1='$ '
19348PS2='> '
19349PS4='+ '
19350
19351# NLS nuisances.
19352LC_ALL=C
19353export LC_ALL
19354LANGUAGE=C
19355export LANGUAGE
19356
19357# CDPATH.
19358(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19359
19360
19361# as_fn_error STATUS ERROR [LINENO LOG_FD]
19362# ----------------------------------------
19363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19365# script with STATUS, using 1 if that was 0.
19366as_fn_error ()
19367{
19368  as_status=$1; test $as_status -eq 0 && as_status=1
19369  if test "$4"; then
19370    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19371    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19372  fi
19373  $as_echo "$as_me: error: $2" >&2
19374  as_fn_exit $as_status
19375} # as_fn_error
19376
19377
19378# as_fn_set_status STATUS
19379# -----------------------
19380# Set $? to STATUS, without forking.
19381as_fn_set_status ()
19382{
19383  return $1
19384} # as_fn_set_status
19385
19386# as_fn_exit STATUS
19387# -----------------
19388# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19389as_fn_exit ()
19390{
19391  set +e
19392  as_fn_set_status $1
19393  exit $1
19394} # as_fn_exit
19395
19396# as_fn_unset VAR
19397# ---------------
19398# Portably unset VAR.
19399as_fn_unset ()
19400{
19401  { eval $1=; unset $1;}
19402}
19403as_unset=as_fn_unset
19404# as_fn_append VAR VALUE
19405# ----------------------
19406# Append the text in VALUE to the end of the definition contained in VAR. Take
19407# advantage of any shell optimizations that allow amortized linear growth over
19408# repeated appends, instead of the typical quadratic growth present in naive
19409# implementations.
19410if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19411  eval 'as_fn_append ()
19412  {
19413    eval $1+=\$2
19414  }'
19415else
19416  as_fn_append ()
19417  {
19418    eval $1=\$$1\$2
19419  }
19420fi # as_fn_append
19421
19422# as_fn_arith ARG...
19423# ------------------
19424# Perform arithmetic evaluation on the ARGs, and store the result in the
19425# global $as_val. Take advantage of shells that can avoid forks. The arguments
19426# must be portable across $(()) and expr.
19427if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19428  eval 'as_fn_arith ()
19429  {
19430    as_val=$(( $* ))
19431  }'
19432else
19433  as_fn_arith ()
19434  {
19435    as_val=`expr "$@" || test $? -eq 1`
19436  }
19437fi # as_fn_arith
19438
19439
19440if expr a : '\(a\)' >/dev/null 2>&1 &&
19441   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19442  as_expr=expr
19443else
19444  as_expr=false
19445fi
19446
19447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19448  as_basename=basename
19449else
19450  as_basename=false
19451fi
19452
19453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19454  as_dirname=dirname
19455else
19456  as_dirname=false
19457fi
19458
19459as_me=`$as_basename -- "$0" ||
19460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19461	 X"$0" : 'X\(//\)$' \| \
19462	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19463$as_echo X/"$0" |
19464    sed '/^.*\/\([^/][^/]*\)\/*$/{
19465	    s//\1/
19466	    q
19467	  }
19468	  /^X\/\(\/\/\)$/{
19469	    s//\1/
19470	    q
19471	  }
19472	  /^X\/\(\/\).*/{
19473	    s//\1/
19474	    q
19475	  }
19476	  s/.*/./; q'`
19477
19478# Avoid depending upon Character Ranges.
19479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19482as_cr_digits='0123456789'
19483as_cr_alnum=$as_cr_Letters$as_cr_digits
19484
19485ECHO_C= ECHO_N= ECHO_T=
19486case `echo -n x` in #(((((
19487-n*)
19488  case `echo 'xy\c'` in
19489  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19490  xy)  ECHO_C='\c';;
19491  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19492       ECHO_T='	';;
19493  esac;;
19494*)
19495  ECHO_N='-n';;
19496esac
19497
19498rm -f conf$$ conf$$.exe conf$$.file
19499if test -d conf$$.dir; then
19500  rm -f conf$$.dir/conf$$.file
19501else
19502  rm -f conf$$.dir
19503  mkdir conf$$.dir 2>/dev/null
19504fi
19505if (echo >conf$$.file) 2>/dev/null; then
19506  if ln -s conf$$.file conf$$ 2>/dev/null; then
19507    as_ln_s='ln -s'
19508    # ... but there are two gotchas:
19509    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19510    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19511    # In both cases, we have to default to `cp -pR'.
19512    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19513      as_ln_s='cp -pR'
19514  elif ln conf$$.file conf$$ 2>/dev/null; then
19515    as_ln_s=ln
19516  else
19517    as_ln_s='cp -pR'
19518  fi
19519else
19520  as_ln_s='cp -pR'
19521fi
19522rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19523rmdir conf$$.dir 2>/dev/null
19524
19525
19526# as_fn_mkdir_p
19527# -------------
19528# Create "$as_dir" as a directory, including parents if necessary.
19529as_fn_mkdir_p ()
19530{
19531
19532  case $as_dir in #(
19533  -*) as_dir=./$as_dir;;
19534  esac
19535  test -d "$as_dir" || eval $as_mkdir_p || {
19536    as_dirs=
19537    while :; do
19538      case $as_dir in #(
19539      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19540      *) as_qdir=$as_dir;;
19541      esac
19542      as_dirs="'$as_qdir' $as_dirs"
19543      as_dir=`$as_dirname -- "$as_dir" ||
19544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19545	 X"$as_dir" : 'X\(//\)[^/]' \| \
19546	 X"$as_dir" : 'X\(//\)$' \| \
19547	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19548$as_echo X"$as_dir" |
19549    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19550	    s//\1/
19551	    q
19552	  }
19553	  /^X\(\/\/\)[^/].*/{
19554	    s//\1/
19555	    q
19556	  }
19557	  /^X\(\/\/\)$/{
19558	    s//\1/
19559	    q
19560	  }
19561	  /^X\(\/\).*/{
19562	    s//\1/
19563	    q
19564	  }
19565	  s/.*/./; q'`
19566      test -d "$as_dir" && break
19567    done
19568    test -z "$as_dirs" || eval "mkdir $as_dirs"
19569  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19570
19571
19572} # as_fn_mkdir_p
19573if mkdir -p . 2>/dev/null; then
19574  as_mkdir_p='mkdir -p "$as_dir"'
19575else
19576  test -d ./-p && rmdir ./-p
19577  as_mkdir_p=false
19578fi
19579
19580
19581# as_fn_executable_p FILE
19582# -----------------------
19583# Test if FILE is an executable regular file.
19584as_fn_executable_p ()
19585{
19586  test -f "$1" && test -x "$1"
19587} # as_fn_executable_p
19588as_test_x='test -x'
19589as_executable_p=as_fn_executable_p
19590
19591# Sed expression to map a string onto a valid CPP name.
19592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19593
19594# Sed expression to map a string onto a valid variable name.
19595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19596
19597
19598exec 6>&1
19599## ----------------------------------- ##
19600## Main body of $CONFIG_STATUS script. ##
19601## ----------------------------------- ##
19602_ASEOF
19603test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19604
19605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19606# Save the log message, to keep $0 and so on meaningful, and to
19607# report actual input values of CONFIG_FILES etc. instead of their
19608# values after options handling.
19609ac_log="
19610This file was extended by xf86-video-apm $as_me 1.3.0, which was
19611generated by GNU Autoconf 2.69.  Invocation command line was
19612
19613  CONFIG_FILES    = $CONFIG_FILES
19614  CONFIG_HEADERS  = $CONFIG_HEADERS
19615  CONFIG_LINKS    = $CONFIG_LINKS
19616  CONFIG_COMMANDS = $CONFIG_COMMANDS
19617  $ $0 $@
19618
19619on `(hostname || uname -n) 2>/dev/null | sed 1q`
19620"
19621
19622_ACEOF
19623
19624case $ac_config_files in *"
19625"*) set x $ac_config_files; shift; ac_config_files=$*;;
19626esac
19627
19628case $ac_config_headers in *"
19629"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19630esac
19631
19632
19633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19634# Files that config.status was made for.
19635config_files="$ac_config_files"
19636config_headers="$ac_config_headers"
19637config_commands="$ac_config_commands"
19638
19639_ACEOF
19640
19641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19642ac_cs_usage="\
19643\`$as_me' instantiates files and other configuration actions
19644from templates according to the current configuration.  Unless the files
19645and actions are specified as TAGs, all are instantiated by default.
19646
19647Usage: $0 [OPTION]... [TAG]...
19648
19649  -h, --help       print this help, then exit
19650  -V, --version    print version number and configuration settings, then exit
19651      --config     print configuration, then exit
19652  -q, --quiet, --silent
19653                   do not print progress messages
19654  -d, --debug      don't remove temporary files
19655      --recheck    update $as_me by reconfiguring in the same conditions
19656      --file=FILE[:TEMPLATE]
19657                   instantiate the configuration file FILE
19658      --header=FILE[:TEMPLATE]
19659                   instantiate the configuration header FILE
19660
19661Configuration files:
19662$config_files
19663
19664Configuration headers:
19665$config_headers
19666
19667Configuration commands:
19668$config_commands
19669
19670Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19671
19672_ACEOF
19673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19674ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19675ac_cs_version="\\
19676xf86-video-apm config.status 1.3.0
19677configured by $0, generated by GNU Autoconf 2.69,
19678  with options \\"\$ac_cs_config\\"
19679
19680Copyright (C) 2012 Free Software Foundation, Inc.
19681This config.status script is free software; the Free Software Foundation
19682gives unlimited permission to copy, distribute and modify it."
19683
19684ac_pwd='$ac_pwd'
19685srcdir='$srcdir'
19686INSTALL='$INSTALL'
19687MKDIR_P='$MKDIR_P'
19688AWK='$AWK'
19689test -n "\$AWK" || AWK=awk
19690_ACEOF
19691
19692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19693# The default lists apply if the user does not specify any file.
19694ac_need_defaults=:
19695while test $# != 0
19696do
19697  case $1 in
19698  --*=?*)
19699    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19700    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19701    ac_shift=:
19702    ;;
19703  --*=)
19704    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19705    ac_optarg=
19706    ac_shift=:
19707    ;;
19708  *)
19709    ac_option=$1
19710    ac_optarg=$2
19711    ac_shift=shift
19712    ;;
19713  esac
19714
19715  case $ac_option in
19716  # Handling of the options.
19717  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19718    ac_cs_recheck=: ;;
19719  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19720    $as_echo "$ac_cs_version"; exit ;;
19721  --config | --confi | --conf | --con | --co | --c )
19722    $as_echo "$ac_cs_config"; exit ;;
19723  --debug | --debu | --deb | --de | --d | -d )
19724    debug=: ;;
19725  --file | --fil | --fi | --f )
19726    $ac_shift
19727    case $ac_optarg in
19728    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19729    '') as_fn_error $? "missing file argument" ;;
19730    esac
19731    as_fn_append CONFIG_FILES " '$ac_optarg'"
19732    ac_need_defaults=false;;
19733  --header | --heade | --head | --hea )
19734    $ac_shift
19735    case $ac_optarg in
19736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19737    esac
19738    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19739    ac_need_defaults=false;;
19740  --he | --h)
19741    # Conflict between --help and --header
19742    as_fn_error $? "ambiguous option: \`$1'
19743Try \`$0 --help' for more information.";;
19744  --help | --hel | -h )
19745    $as_echo "$ac_cs_usage"; exit ;;
19746  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19747  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19748    ac_cs_silent=: ;;
19749
19750  # This is an error.
19751  -*) as_fn_error $? "unrecognized option: \`$1'
19752Try \`$0 --help' for more information." ;;
19753
19754  *) as_fn_append ac_config_targets " $1"
19755     ac_need_defaults=false ;;
19756
19757  esac
19758  shift
19759done
19760
19761ac_configure_extra_args=
19762
19763if $ac_cs_silent; then
19764  exec 6>/dev/null
19765  ac_configure_extra_args="$ac_configure_extra_args --silent"
19766fi
19767
19768_ACEOF
19769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19770if \$ac_cs_recheck; then
19771  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19772  shift
19773  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19774  CONFIG_SHELL='$SHELL'
19775  export CONFIG_SHELL
19776  exec "\$@"
19777fi
19778
19779_ACEOF
19780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19781exec 5>>config.log
19782{
19783  echo
19784  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19785## Running $as_me. ##
19786_ASBOX
19787  $as_echo "$ac_log"
19788} >&5
19789
19790_ACEOF
19791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792#
19793# INIT-COMMANDS
19794#
19795AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19796
19797
19798# The HP-UX ksh and POSIX shell print the target directory to stdout
19799# if CDPATH is set.
19800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19801
19802sed_quote_subst='$sed_quote_subst'
19803double_quote_subst='$double_quote_subst'
19804delay_variable_subst='$delay_variable_subst'
19805enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19806macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19807macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19808enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19809pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19810enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19811shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19812SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19813ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19814PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19821SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19822Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19823GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19824EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19825FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19826LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19827NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19828LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19829max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19830ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19831exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19832lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19833lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19834lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19835lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19836lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19837reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19838reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19839OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19840deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19841file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19842file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19843want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19844DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19845sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19846AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19847AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19848archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19849STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19850RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19851old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19852old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19853old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19854lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19855CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19856CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19857compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19858GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19859lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19860lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19861lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19862lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19863lt_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"`'
19864lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19865nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19866lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19867lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19868objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19869MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19870lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19871lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19872lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19873lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19874lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19875need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19876MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19877DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19878NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19879LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19880OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19881OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19882libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19883shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19884extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19885archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19886enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19887export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19888whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19889compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19890old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19891old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19892archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19893archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19894module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19895module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19896with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19897allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19898no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19899hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19900hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19901hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19902hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19903hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19904hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19905hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19906inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19907link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19908always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19909export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19910exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19911include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19912prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19913postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19914file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19915variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19916need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19917need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19918version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19919runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19920shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19921shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19922libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19923library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19924soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19925install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19926postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19927postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19928finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19929finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19930hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19931sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19932configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19933configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19934hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19935enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19936enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19937enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19938old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19939striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19940
19941LTCC='$LTCC'
19942LTCFLAGS='$LTCFLAGS'
19943compiler='$compiler_DEFAULT'
19944
19945# A function that is used when there is no print builtin or printf.
19946func_fallback_echo ()
19947{
19948  eval 'cat <<_LTECHO_EOF
19949\$1
19950_LTECHO_EOF'
19951}
19952
19953# Quote evaled strings.
19954for var in SHELL \
19955ECHO \
19956PATH_SEPARATOR \
19957SED \
19958GREP \
19959EGREP \
19960FGREP \
19961LD \
19962NM \
19963LN_S \
19964lt_SP2NL \
19965lt_NL2SP \
19966reload_flag \
19967OBJDUMP \
19968deplibs_check_method \
19969file_magic_cmd \
19970file_magic_glob \
19971want_nocaseglob \
19972DLLTOOL \
19973sharedlib_from_linklib_cmd \
19974AR \
19975AR_FLAGS \
19976archiver_list_spec \
19977STRIP \
19978RANLIB \
19979CC \
19980CFLAGS \
19981compiler \
19982lt_cv_sys_global_symbol_pipe \
19983lt_cv_sys_global_symbol_to_cdecl \
19984lt_cv_sys_global_symbol_to_import \
19985lt_cv_sys_global_symbol_to_c_name_address \
19986lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19987lt_cv_nm_interface \
19988nm_file_list_spec \
19989lt_cv_truncate_bin \
19990lt_prog_compiler_no_builtin_flag \
19991lt_prog_compiler_pic \
19992lt_prog_compiler_wl \
19993lt_prog_compiler_static \
19994lt_cv_prog_compiler_c_o \
19995need_locks \
19996MANIFEST_TOOL \
19997DSYMUTIL \
19998NMEDIT \
19999LIPO \
20000OTOOL \
20001OTOOL64 \
20002shrext_cmds \
20003export_dynamic_flag_spec \
20004whole_archive_flag_spec \
20005compiler_needs_object \
20006with_gnu_ld \
20007allow_undefined_flag \
20008no_undefined_flag \
20009hardcode_libdir_flag_spec \
20010hardcode_libdir_separator \
20011exclude_expsyms \
20012include_expsyms \
20013file_list_spec \
20014variables_saved_for_relink \
20015libname_spec \
20016library_names_spec \
20017soname_spec \
20018install_override_mode \
20019finish_eval \
20020old_striplib \
20021striplib; do
20022    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20023    *[\\\\\\\`\\"\\\$]*)
20024      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20025      ;;
20026    *)
20027      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20028      ;;
20029    esac
20030done
20031
20032# Double-quote double-evaled strings.
20033for var in reload_cmds \
20034old_postinstall_cmds \
20035old_postuninstall_cmds \
20036old_archive_cmds \
20037extract_expsyms_cmds \
20038old_archive_from_new_cmds \
20039old_archive_from_expsyms_cmds \
20040archive_cmds \
20041archive_expsym_cmds \
20042module_cmds \
20043module_expsym_cmds \
20044export_symbols_cmds \
20045prelink_cmds \
20046postlink_cmds \
20047postinstall_cmds \
20048postuninstall_cmds \
20049finish_cmds \
20050sys_lib_search_path_spec \
20051configure_time_dlsearch_path \
20052configure_time_lt_sys_library_path; do
20053    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20054    *[\\\\\\\`\\"\\\$]*)
20055      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20056      ;;
20057    *)
20058      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20059      ;;
20060    esac
20061done
20062
20063ac_aux_dir='$ac_aux_dir'
20064
20065# See if we are running on zsh, and set the options that allow our
20066# commands through without removal of \ escapes INIT.
20067if test -n "\${ZSH_VERSION+set}"; then
20068   setopt NO_GLOB_SUBST
20069fi
20070
20071
20072    PACKAGE='$PACKAGE'
20073    VERSION='$VERSION'
20074    RM='$RM'
20075    ofile='$ofile'
20076
20077
20078
20079
20080_ACEOF
20081
20082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20083
20084# Handling of arguments.
20085for ac_config_target in $ac_config_targets
20086do
20087  case $ac_config_target in
20088    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20089    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20090    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20091    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20092    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20093    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20094
20095  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20096  esac
20097done
20098
20099
20100# If the user did not use the arguments to specify the items to instantiate,
20101# then the envvar interface is used.  Set only those that are not.
20102# We use the long form for the default assignment because of an extremely
20103# bizarre bug on SunOS 4.1.3.
20104if $ac_need_defaults; then
20105  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20106  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20107  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20108fi
20109
20110# Have a temporary directory for convenience.  Make it in the build tree
20111# simply because there is no reason against having it here, and in addition,
20112# creating and moving files from /tmp can sometimes cause problems.
20113# Hook for its removal unless debugging.
20114# Note that there is a small window in which the directory will not be cleaned:
20115# after its creation but before its name has been assigned to `$tmp'.
20116$debug ||
20117{
20118  tmp= ac_tmp=
20119  trap 'exit_status=$?
20120  : "${ac_tmp:=$tmp}"
20121  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20122' 0
20123  trap 'as_fn_exit 1' 1 2 13 15
20124}
20125# Create a (secure) tmp directory for tmp files.
20126
20127{
20128  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20129  test -d "$tmp"
20130}  ||
20131{
20132  tmp=./conf$$-$RANDOM
20133  (umask 077 && mkdir "$tmp")
20134} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20135ac_tmp=$tmp
20136
20137# Set up the scripts for CONFIG_FILES section.
20138# No need to generate them if there are no CONFIG_FILES.
20139# This happens for instance with `./config.status config.h'.
20140if test -n "$CONFIG_FILES"; then
20141
20142
20143ac_cr=`echo X | tr X '\015'`
20144# On cygwin, bash can eat \r inside `` if the user requested igncr.
20145# But we know of no other shell where ac_cr would be empty at this
20146# point, so we can use a bashism as a fallback.
20147if test "x$ac_cr" = x; then
20148  eval ac_cr=\$\'\\r\'
20149fi
20150ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20151if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20152  ac_cs_awk_cr='\\r'
20153else
20154  ac_cs_awk_cr=$ac_cr
20155fi
20156
20157echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20158_ACEOF
20159
20160
20161{
20162  echo "cat >conf$$subs.awk <<_ACEOF" &&
20163  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20164  echo "_ACEOF"
20165} >conf$$subs.sh ||
20166  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20167ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20168ac_delim='%!_!# '
20169for ac_last_try in false false false false false :; do
20170  . ./conf$$subs.sh ||
20171    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20172
20173  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20174  if test $ac_delim_n = $ac_delim_num; then
20175    break
20176  elif $ac_last_try; then
20177    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20178  else
20179    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20180  fi
20181done
20182rm -f conf$$subs.sh
20183
20184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20185cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20186_ACEOF
20187sed -n '
20188h
20189s/^/S["/; s/!.*/"]=/
20190p
20191g
20192s/^[^!]*!//
20193:repl
20194t repl
20195s/'"$ac_delim"'$//
20196t delim
20197:nl
20198h
20199s/\(.\{148\}\)..*/\1/
20200t more1
20201s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20202p
20203n
20204b repl
20205:more1
20206s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20207p
20208g
20209s/.\{148\}//
20210t nl
20211:delim
20212h
20213s/\(.\{148\}\)..*/\1/
20214t more2
20215s/["\\]/\\&/g; s/^/"/; s/$/"/
20216p
20217b
20218:more2
20219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20220p
20221g
20222s/.\{148\}//
20223t delim
20224' <conf$$subs.awk | sed '
20225/^[^""]/{
20226  N
20227  s/\n//
20228}
20229' >>$CONFIG_STATUS || ac_write_fail=1
20230rm -f conf$$subs.awk
20231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20232_ACAWK
20233cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20234  for (key in S) S_is_set[key] = 1
20235  FS = ""
20236
20237}
20238{
20239  line = $ 0
20240  nfields = split(line, field, "@")
20241  substed = 0
20242  len = length(field[1])
20243  for (i = 2; i < nfields; i++) {
20244    key = field[i]
20245    keylen = length(key)
20246    if (S_is_set[key]) {
20247      value = S[key]
20248      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20249      len += length(value) + length(field[++i])
20250      substed = 1
20251    } else
20252      len += 1 + keylen
20253  }
20254
20255  print line
20256}
20257
20258_ACAWK
20259_ACEOF
20260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20261if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20262  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20263else
20264  cat
20265fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20266  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20267_ACEOF
20268
20269# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20270# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20271# trailing colons and then remove the whole line if VPATH becomes empty
20272# (actually we leave an empty line to preserve line numbers).
20273if test "x$srcdir" = x.; then
20274  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20275h
20276s///
20277s/^/:/
20278s/[	 ]*$/:/
20279s/:\$(srcdir):/:/g
20280s/:\${srcdir}:/:/g
20281s/:@srcdir@:/:/g
20282s/^:*//
20283s/:*$//
20284x
20285s/\(=[	 ]*\).*/\1/
20286G
20287s/\n//
20288s/^[^=]*=[	 ]*$//
20289}'
20290fi
20291
20292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20293fi # test -n "$CONFIG_FILES"
20294
20295# Set up the scripts for CONFIG_HEADERS section.
20296# No need to generate them if there are no CONFIG_HEADERS.
20297# This happens for instance with `./config.status Makefile'.
20298if test -n "$CONFIG_HEADERS"; then
20299cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20300BEGIN {
20301_ACEOF
20302
20303# Transform confdefs.h into an awk script `defines.awk', embedded as
20304# here-document in config.status, that substitutes the proper values into
20305# config.h.in to produce config.h.
20306
20307# Create a delimiter string that does not exist in confdefs.h, to ease
20308# handling of long lines.
20309ac_delim='%!_!# '
20310for ac_last_try in false false :; do
20311  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20312  if test -z "$ac_tt"; then
20313    break
20314  elif $ac_last_try; then
20315    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20316  else
20317    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20318  fi
20319done
20320
20321# For the awk script, D is an array of macro values keyed by name,
20322# likewise P contains macro parameters if any.  Preserve backslash
20323# newline sequences.
20324
20325ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20326sed -n '
20327s/.\{148\}/&'"$ac_delim"'/g
20328t rset
20329:rset
20330s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20331t def
20332d
20333:def
20334s/\\$//
20335t bsnl
20336s/["\\]/\\&/g
20337s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20338D["\1"]=" \3"/p
20339s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20340d
20341:bsnl
20342s/["\\]/\\&/g
20343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20344D["\1"]=" \3\\\\\\n"\\/p
20345t cont
20346s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20347t cont
20348d
20349:cont
20350n
20351s/.\{148\}/&'"$ac_delim"'/g
20352t clear
20353:clear
20354s/\\$//
20355t bsnlc
20356s/["\\]/\\&/g; s/^/"/; s/$/"/p
20357d
20358:bsnlc
20359s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20360b cont
20361' <confdefs.h | sed '
20362s/'"$ac_delim"'/"\\\
20363"/g' >>$CONFIG_STATUS || ac_write_fail=1
20364
20365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20366  for (key in D) D_is_set[key] = 1
20367  FS = ""
20368}
20369/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20370  line = \$ 0
20371  split(line, arg, " ")
20372  if (arg[1] == "#") {
20373    defundef = arg[2]
20374    mac1 = arg[3]
20375  } else {
20376    defundef = substr(arg[1], 2)
20377    mac1 = arg[2]
20378  }
20379  split(mac1, mac2, "(") #)
20380  macro = mac2[1]
20381  prefix = substr(line, 1, index(line, defundef) - 1)
20382  if (D_is_set[macro]) {
20383    # Preserve the white space surrounding the "#".
20384    print prefix "define", macro P[macro] D[macro]
20385    next
20386  } else {
20387    # Replace #undef with comments.  This is necessary, for example,
20388    # in the case of _POSIX_SOURCE, which is predefined and required
20389    # on some systems where configure will not decide to define it.
20390    if (defundef == "undef") {
20391      print "/*", prefix defundef, macro, "*/"
20392      next
20393    }
20394  }
20395}
20396{ print }
20397_ACAWK
20398_ACEOF
20399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20400  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20401fi # test -n "$CONFIG_HEADERS"
20402
20403
20404eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20405shift
20406for ac_tag
20407do
20408  case $ac_tag in
20409  :[FHLC]) ac_mode=$ac_tag; continue;;
20410  esac
20411  case $ac_mode$ac_tag in
20412  :[FHL]*:*);;
20413  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20414  :[FH]-) ac_tag=-:-;;
20415  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20416  esac
20417  ac_save_IFS=$IFS
20418  IFS=:
20419  set x $ac_tag
20420  IFS=$ac_save_IFS
20421  shift
20422  ac_file=$1
20423  shift
20424
20425  case $ac_mode in
20426  :L) ac_source=$1;;
20427  :[FH])
20428    ac_file_inputs=
20429    for ac_f
20430    do
20431      case $ac_f in
20432      -) ac_f="$ac_tmp/stdin";;
20433      *) # Look for the file first in the build tree, then in the source tree
20434	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20435	 # because $ac_f cannot contain `:'.
20436	 test -f "$ac_f" ||
20437	   case $ac_f in
20438	   [\\/$]*) false;;
20439	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20440	   esac ||
20441	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20442      esac
20443      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20444      as_fn_append ac_file_inputs " '$ac_f'"
20445    done
20446
20447    # Let's still pretend it is `configure' which instantiates (i.e., don't
20448    # use $as_me), people would be surprised to read:
20449    #    /* config.h.  Generated by config.status.  */
20450    configure_input='Generated from '`
20451	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20452	`' by configure.'
20453    if test x"$ac_file" != x-; then
20454      configure_input="$ac_file.  $configure_input"
20455      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20456$as_echo "$as_me: creating $ac_file" >&6;}
20457    fi
20458    # Neutralize special characters interpreted by sed in replacement strings.
20459    case $configure_input in #(
20460    *\&* | *\|* | *\\* )
20461       ac_sed_conf_input=`$as_echo "$configure_input" |
20462       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20463    *) ac_sed_conf_input=$configure_input;;
20464    esac
20465
20466    case $ac_tag in
20467    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20468      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20469    esac
20470    ;;
20471  esac
20472
20473  ac_dir=`$as_dirname -- "$ac_file" ||
20474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20475	 X"$ac_file" : 'X\(//\)[^/]' \| \
20476	 X"$ac_file" : 'X\(//\)$' \| \
20477	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20478$as_echo X"$ac_file" |
20479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20480	    s//\1/
20481	    q
20482	  }
20483	  /^X\(\/\/\)[^/].*/{
20484	    s//\1/
20485	    q
20486	  }
20487	  /^X\(\/\/\)$/{
20488	    s//\1/
20489	    q
20490	  }
20491	  /^X\(\/\).*/{
20492	    s//\1/
20493	    q
20494	  }
20495	  s/.*/./; q'`
20496  as_dir="$ac_dir"; as_fn_mkdir_p
20497  ac_builddir=.
20498
20499case "$ac_dir" in
20500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20501*)
20502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20503  # A ".." for each directory in $ac_dir_suffix.
20504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20505  case $ac_top_builddir_sub in
20506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20508  esac ;;
20509esac
20510ac_abs_top_builddir=$ac_pwd
20511ac_abs_builddir=$ac_pwd$ac_dir_suffix
20512# for backward compatibility:
20513ac_top_builddir=$ac_top_build_prefix
20514
20515case $srcdir in
20516  .)  # We are building in place.
20517    ac_srcdir=.
20518    ac_top_srcdir=$ac_top_builddir_sub
20519    ac_abs_top_srcdir=$ac_pwd ;;
20520  [\\/]* | ?:[\\/]* )  # Absolute name.
20521    ac_srcdir=$srcdir$ac_dir_suffix;
20522    ac_top_srcdir=$srcdir
20523    ac_abs_top_srcdir=$srcdir ;;
20524  *) # Relative name.
20525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20526    ac_top_srcdir=$ac_top_build_prefix$srcdir
20527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20528esac
20529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20530
20531
20532  case $ac_mode in
20533  :F)
20534  #
20535  # CONFIG_FILE
20536  #
20537
20538  case $INSTALL in
20539  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20540  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20541  esac
20542  ac_MKDIR_P=$MKDIR_P
20543  case $MKDIR_P in
20544  [\\/$]* | ?:[\\/]* ) ;;
20545  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20546  esac
20547_ACEOF
20548
20549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20550# If the template does not know about datarootdir, expand it.
20551# FIXME: This hack should be removed a few years after 2.60.
20552ac_datarootdir_hack=; ac_datarootdir_seen=
20553ac_sed_dataroot='
20554/datarootdir/ {
20555  p
20556  q
20557}
20558/@datadir@/p
20559/@docdir@/p
20560/@infodir@/p
20561/@localedir@/p
20562/@mandir@/p'
20563case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20564*datarootdir*) ac_datarootdir_seen=yes;;
20565*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20567$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20568_ACEOF
20569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20570  ac_datarootdir_hack='
20571  s&@datadir@&$datadir&g
20572  s&@docdir@&$docdir&g
20573  s&@infodir@&$infodir&g
20574  s&@localedir@&$localedir&g
20575  s&@mandir@&$mandir&g
20576  s&\\\${datarootdir}&$datarootdir&g' ;;
20577esac
20578_ACEOF
20579
20580# Neutralize VPATH when `$srcdir' = `.'.
20581# Shell code in configure.ac might set extrasub.
20582# FIXME: do we really want to maintain this feature?
20583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20584ac_sed_extra="$ac_vpsub
20585$extrasub
20586_ACEOF
20587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20588:t
20589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20590s|@configure_input@|$ac_sed_conf_input|;t t
20591s&@top_builddir@&$ac_top_builddir_sub&;t t
20592s&@top_build_prefix@&$ac_top_build_prefix&;t t
20593s&@srcdir@&$ac_srcdir&;t t
20594s&@abs_srcdir@&$ac_abs_srcdir&;t t
20595s&@top_srcdir@&$ac_top_srcdir&;t t
20596s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20597s&@builddir@&$ac_builddir&;t t
20598s&@abs_builddir@&$ac_abs_builddir&;t t
20599s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20600s&@INSTALL@&$ac_INSTALL&;t t
20601s&@MKDIR_P@&$ac_MKDIR_P&;t t
20602$ac_datarootdir_hack
20603"
20604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20605  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20606
20607test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20608  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20609  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20610      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20611  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20612which seems to be undefined.  Please make sure it is defined" >&5
20613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20614which seems to be undefined.  Please make sure it is defined" >&2;}
20615
20616  rm -f "$ac_tmp/stdin"
20617  case $ac_file in
20618  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20619  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20620  esac \
20621  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20622 ;;
20623  :H)
20624  #
20625  # CONFIG_HEADER
20626  #
20627  if test x"$ac_file" != x-; then
20628    {
20629      $as_echo "/* $configure_input  */" \
20630      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20631    } >"$ac_tmp/config.h" \
20632      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20633    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20634      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20635$as_echo "$as_me: $ac_file is unchanged" >&6;}
20636    else
20637      rm -f "$ac_file"
20638      mv "$ac_tmp/config.h" "$ac_file" \
20639	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20640    fi
20641  else
20642    $as_echo "/* $configure_input  */" \
20643      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20644      || as_fn_error $? "could not create -" "$LINENO" 5
20645  fi
20646# Compute "$ac_file"'s index in $config_headers.
20647_am_arg="$ac_file"
20648_am_stamp_count=1
20649for _am_header in $config_headers :; do
20650  case $_am_header in
20651    $_am_arg | $_am_arg:* )
20652      break ;;
20653    * )
20654      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20655  esac
20656done
20657echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20658$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20659	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20660	 X"$_am_arg" : 'X\(//\)$' \| \
20661	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20662$as_echo X"$_am_arg" |
20663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20664	    s//\1/
20665	    q
20666	  }
20667	  /^X\(\/\/\)[^/].*/{
20668	    s//\1/
20669	    q
20670	  }
20671	  /^X\(\/\/\)$/{
20672	    s//\1/
20673	    q
20674	  }
20675	  /^X\(\/\).*/{
20676	    s//\1/
20677	    q
20678	  }
20679	  s/.*/./; q'`/stamp-h$_am_stamp_count
20680 ;;
20681
20682  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20683$as_echo "$as_me: executing $ac_file commands" >&6;}
20684 ;;
20685  esac
20686
20687
20688  case $ac_file$ac_mode in
20689    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20690  # Older Autoconf quotes --file arguments for eval, but not when files
20691  # are listed without --file.  Let's play safe and only enable the eval
20692  # if we detect the quoting.
20693  case $CONFIG_FILES in
20694  *\'*) eval set x "$CONFIG_FILES" ;;
20695  *)   set x $CONFIG_FILES ;;
20696  esac
20697  shift
20698  for mf
20699  do
20700    # Strip MF so we end up with the name of the file.
20701    mf=`echo "$mf" | sed -e 's/:.*$//'`
20702    # Check whether this is an Automake generated Makefile or not.
20703    # We used to match only the files named 'Makefile.in', but
20704    # some people rename them; so instead we look at the file content.
20705    # Grep'ing the first line is not enough: some people post-process
20706    # each Makefile.in and add a new line on top of each file to say so.
20707    # Grep'ing the whole file is not good either: AIX grep has a line
20708    # limit of 2048, but all sed's we know have understand at least 4000.
20709    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20710      dirpart=`$as_dirname -- "$mf" ||
20711$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20712	 X"$mf" : 'X\(//\)[^/]' \| \
20713	 X"$mf" : 'X\(//\)$' \| \
20714	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20715$as_echo X"$mf" |
20716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20717	    s//\1/
20718	    q
20719	  }
20720	  /^X\(\/\/\)[^/].*/{
20721	    s//\1/
20722	    q
20723	  }
20724	  /^X\(\/\/\)$/{
20725	    s//\1/
20726	    q
20727	  }
20728	  /^X\(\/\).*/{
20729	    s//\1/
20730	    q
20731	  }
20732	  s/.*/./; q'`
20733    else
20734      continue
20735    fi
20736    # Extract the definition of DEPDIR, am__include, and am__quote
20737    # from the Makefile without running 'make'.
20738    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20739    test -z "$DEPDIR" && continue
20740    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20741    test -z "$am__include" && continue
20742    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20743    # Find all dependency output files, they are included files with
20744    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20745    # simplest approach to changing $(DEPDIR) to its actual value in the
20746    # expansion.
20747    for file in `sed -n "
20748      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20749	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20750      # Make sure the directory exists.
20751      test -f "$dirpart/$file" && continue
20752      fdir=`$as_dirname -- "$file" ||
20753$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754	 X"$file" : 'X\(//\)[^/]' \| \
20755	 X"$file" : 'X\(//\)$' \| \
20756	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20757$as_echo X"$file" |
20758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20759	    s//\1/
20760	    q
20761	  }
20762	  /^X\(\/\/\)[^/].*/{
20763	    s//\1/
20764	    q
20765	  }
20766	  /^X\(\/\/\)$/{
20767	    s//\1/
20768	    q
20769	  }
20770	  /^X\(\/\).*/{
20771	    s//\1/
20772	    q
20773	  }
20774	  s/.*/./; q'`
20775      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20776      # echo "creating $dirpart/$file"
20777      echo '# dummy' > "$dirpart/$file"
20778    done
20779  done
20780}
20781 ;;
20782    "libtool":C)
20783
20784    # See if we are running on zsh, and set the options that allow our
20785    # commands through without removal of \ escapes.
20786    if test -n "${ZSH_VERSION+set}"; then
20787      setopt NO_GLOB_SUBST
20788    fi
20789
20790    cfgfile=${ofile}T
20791    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20792    $RM "$cfgfile"
20793
20794    cat <<_LT_EOF >> "$cfgfile"
20795#! $SHELL
20796# Generated automatically by $as_me ($PACKAGE) $VERSION
20797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20798# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20799
20800# Provide generalized library-building support services.
20801# Written by Gordon Matzigkeit, 1996
20802
20803# Copyright (C) 2014 Free Software Foundation, Inc.
20804# This is free software; see the source for copying conditions.  There is NO
20805# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20806
20807# GNU Libtool is free software; you can redistribute it and/or modify
20808# it under the terms of the GNU General Public License as published by
20809# the Free Software Foundation; either version 2 of of the License, or
20810# (at your option) any later version.
20811#
20812# As a special exception to the GNU General Public License, if you
20813# distribute this file as part of a program or library that is built
20814# using GNU Libtool, you may include this file under the  same
20815# distribution terms that you use for the rest of that program.
20816#
20817# GNU Libtool is distributed in the hope that it will be useful, but
20818# WITHOUT ANY WARRANTY; without even the implied warranty of
20819# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20820# GNU General Public License for more details.
20821#
20822# You should have received a copy of the GNU General Public License
20823# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20824
20825
20826# The names of the tagged configurations supported by this script.
20827available_tags=''
20828
20829# Configured defaults for sys_lib_dlsearch_path munging.
20830: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20831
20832# ### BEGIN LIBTOOL CONFIG
20833
20834# Whether or not to build static libraries.
20835build_old_libs=$enable_static
20836
20837# Which release of libtool.m4 was used?
20838macro_version=$macro_version
20839macro_revision=$macro_revision
20840
20841# Whether or not to build shared libraries.
20842build_libtool_libs=$enable_shared
20843
20844# What type of objects to build.
20845pic_mode=$pic_mode
20846
20847# Whether or not to optimize for fast installation.
20848fast_install=$enable_fast_install
20849
20850# Shared archive member basename,for filename based shared library versioning on AIX.
20851shared_archive_member_spec=$shared_archive_member_spec
20852
20853# Shell to use when invoking shell scripts.
20854SHELL=$lt_SHELL
20855
20856# An echo program that protects backslashes.
20857ECHO=$lt_ECHO
20858
20859# The PATH separator for the build system.
20860PATH_SEPARATOR=$lt_PATH_SEPARATOR
20861
20862# The host system.
20863host_alias=$host_alias
20864host=$host
20865host_os=$host_os
20866
20867# The build system.
20868build_alias=$build_alias
20869build=$build
20870build_os=$build_os
20871
20872# A sed program that does not truncate output.
20873SED=$lt_SED
20874
20875# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20876Xsed="\$SED -e 1s/^X//"
20877
20878# A grep program that handles long lines.
20879GREP=$lt_GREP
20880
20881# An ERE matcher.
20882EGREP=$lt_EGREP
20883
20884# A literal string matcher.
20885FGREP=$lt_FGREP
20886
20887# A BSD- or MS-compatible name lister.
20888NM=$lt_NM
20889
20890# Whether we need soft or hard links.
20891LN_S=$lt_LN_S
20892
20893# What is the maximum length of a command?
20894max_cmd_len=$max_cmd_len
20895
20896# Object file suffix (normally "o").
20897objext=$ac_objext
20898
20899# Executable file suffix (normally "").
20900exeext=$exeext
20901
20902# whether the shell understands "unset".
20903lt_unset=$lt_unset
20904
20905# turn spaces into newlines.
20906SP2NL=$lt_lt_SP2NL
20907
20908# turn newlines into spaces.
20909NL2SP=$lt_lt_NL2SP
20910
20911# convert \$build file names to \$host format.
20912to_host_file_cmd=$lt_cv_to_host_file_cmd
20913
20914# convert \$build files to toolchain format.
20915to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20916
20917# An object symbol dumper.
20918OBJDUMP=$lt_OBJDUMP
20919
20920# Method to check whether dependent libraries are shared objects.
20921deplibs_check_method=$lt_deplibs_check_method
20922
20923# Command to use when deplibs_check_method = "file_magic".
20924file_magic_cmd=$lt_file_magic_cmd
20925
20926# How to find potential files when deplibs_check_method = "file_magic".
20927file_magic_glob=$lt_file_magic_glob
20928
20929# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20930want_nocaseglob=$lt_want_nocaseglob
20931
20932# DLL creation program.
20933DLLTOOL=$lt_DLLTOOL
20934
20935# Command to associate shared and link libraries.
20936sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20937
20938# The archiver.
20939AR=$lt_AR
20940
20941# Flags to create an archive.
20942AR_FLAGS=$lt_AR_FLAGS
20943
20944# How to feed a file listing to the archiver.
20945archiver_list_spec=$lt_archiver_list_spec
20946
20947# A symbol stripping program.
20948STRIP=$lt_STRIP
20949
20950# Commands used to install an old-style archive.
20951RANLIB=$lt_RANLIB
20952old_postinstall_cmds=$lt_old_postinstall_cmds
20953old_postuninstall_cmds=$lt_old_postuninstall_cmds
20954
20955# Whether to use a lock for old archive extraction.
20956lock_old_archive_extraction=$lock_old_archive_extraction
20957
20958# A C compiler.
20959LTCC=$lt_CC
20960
20961# LTCC compiler flags.
20962LTCFLAGS=$lt_CFLAGS
20963
20964# Take the output of nm and produce a listing of raw symbols and C names.
20965global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20966
20967# Transform the output of nm in a proper C declaration.
20968global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20969
20970# Transform the output of nm into a list of symbols to manually relocate.
20971global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20972
20973# Transform the output of nm in a C name address pair.
20974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20975
20976# Transform the output of nm in a C name address pair when lib prefix is needed.
20977global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20978
20979# The name lister interface.
20980nm_interface=$lt_lt_cv_nm_interface
20981
20982# Specify filename containing input files for \$NM.
20983nm_file_list_spec=$lt_nm_file_list_spec
20984
20985# The root where to search for dependent libraries,and where our libraries should be installed.
20986lt_sysroot=$lt_sysroot
20987
20988# Command to truncate a binary pipe.
20989lt_truncate_bin=$lt_lt_cv_truncate_bin
20990
20991# The name of the directory that contains temporary libtool files.
20992objdir=$objdir
20993
20994# Used to examine libraries when file_magic_cmd begins with "file".
20995MAGIC_CMD=$MAGIC_CMD
20996
20997# Must we lock files when doing compilation?
20998need_locks=$lt_need_locks
20999
21000# Manifest tool.
21001MANIFEST_TOOL=$lt_MANIFEST_TOOL
21002
21003# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21004DSYMUTIL=$lt_DSYMUTIL
21005
21006# Tool to change global to local symbols on Mac OS X.
21007NMEDIT=$lt_NMEDIT
21008
21009# Tool to manipulate fat objects and archives on Mac OS X.
21010LIPO=$lt_LIPO
21011
21012# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21013OTOOL=$lt_OTOOL
21014
21015# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21016OTOOL64=$lt_OTOOL64
21017
21018# Old archive suffix (normally "a").
21019libext=$libext
21020
21021# Shared library suffix (normally ".so").
21022shrext_cmds=$lt_shrext_cmds
21023
21024# The commands to extract the exported symbol list from a shared archive.
21025extract_expsyms_cmds=$lt_extract_expsyms_cmds
21026
21027# Variables whose values should be saved in libtool wrapper scripts and
21028# restored at link time.
21029variables_saved_for_relink=$lt_variables_saved_for_relink
21030
21031# Do we need the "lib" prefix for modules?
21032need_lib_prefix=$need_lib_prefix
21033
21034# Do we need a version for libraries?
21035need_version=$need_version
21036
21037# Library versioning type.
21038version_type=$version_type
21039
21040# Shared library runtime path variable.
21041runpath_var=$runpath_var
21042
21043# Shared library path variable.
21044shlibpath_var=$shlibpath_var
21045
21046# Is shlibpath searched before the hard-coded library search path?
21047shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21048
21049# Format of library name prefix.
21050libname_spec=$lt_libname_spec
21051
21052# List of archive names.  First name is the real one, the rest are links.
21053# The last name is the one that the linker finds with -lNAME
21054library_names_spec=$lt_library_names_spec
21055
21056# The coded name of the library, if different from the real name.
21057soname_spec=$lt_soname_spec
21058
21059# Permission mode override for installation of shared libraries.
21060install_override_mode=$lt_install_override_mode
21061
21062# Command to use after installation of a shared archive.
21063postinstall_cmds=$lt_postinstall_cmds
21064
21065# Command to use after uninstallation of a shared archive.
21066postuninstall_cmds=$lt_postuninstall_cmds
21067
21068# Commands used to finish a libtool library installation in a directory.
21069finish_cmds=$lt_finish_cmds
21070
21071# As "finish_cmds", except a single script fragment to be evaled but
21072# not shown.
21073finish_eval=$lt_finish_eval
21074
21075# Whether we should hardcode library paths into libraries.
21076hardcode_into_libs=$hardcode_into_libs
21077
21078# Compile-time system search path for libraries.
21079sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21080
21081# Detected run-time system search path for libraries.
21082sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21083
21084# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21085configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21086
21087# Whether dlopen is supported.
21088dlopen_support=$enable_dlopen
21089
21090# Whether dlopen of programs is supported.
21091dlopen_self=$enable_dlopen_self
21092
21093# Whether dlopen of statically linked programs is supported.
21094dlopen_self_static=$enable_dlopen_self_static
21095
21096# Commands to strip libraries.
21097old_striplib=$lt_old_striplib
21098striplib=$lt_striplib
21099
21100
21101# The linker used to build libraries.
21102LD=$lt_LD
21103
21104# How to create reloadable object files.
21105reload_flag=$lt_reload_flag
21106reload_cmds=$lt_reload_cmds
21107
21108# Commands used to build an old-style archive.
21109old_archive_cmds=$lt_old_archive_cmds
21110
21111# A language specific compiler.
21112CC=$lt_compiler
21113
21114# Is the compiler the GNU compiler?
21115with_gcc=$GCC
21116
21117# Compiler flag to turn off builtin functions.
21118no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21119
21120# Additional compiler flags for building library objects.
21121pic_flag=$lt_lt_prog_compiler_pic
21122
21123# How to pass a linker flag through the compiler.
21124wl=$lt_lt_prog_compiler_wl
21125
21126# Compiler flag to prevent dynamic linking.
21127link_static_flag=$lt_lt_prog_compiler_static
21128
21129# Does compiler simultaneously support -c and -o options?
21130compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21131
21132# Whether or not to add -lc for building shared libraries.
21133build_libtool_need_lc=$archive_cmds_need_lc
21134
21135# Whether or not to disallow shared libs when runtime libs are static.
21136allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21137
21138# Compiler flag to allow reflexive dlopens.
21139export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21140
21141# Compiler flag to generate shared objects directly from archives.
21142whole_archive_flag_spec=$lt_whole_archive_flag_spec
21143
21144# Whether the compiler copes with passing no objects directly.
21145compiler_needs_object=$lt_compiler_needs_object
21146
21147# Create an old-style archive from a shared archive.
21148old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21149
21150# Create a temporary old-style archive to link instead of a shared archive.
21151old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21152
21153# Commands used to build a shared archive.
21154archive_cmds=$lt_archive_cmds
21155archive_expsym_cmds=$lt_archive_expsym_cmds
21156
21157# Commands used to build a loadable module if different from building
21158# a shared archive.
21159module_cmds=$lt_module_cmds
21160module_expsym_cmds=$lt_module_expsym_cmds
21161
21162# Whether we are building with GNU ld or not.
21163with_gnu_ld=$lt_with_gnu_ld
21164
21165# Flag that allows shared libraries with undefined symbols to be built.
21166allow_undefined_flag=$lt_allow_undefined_flag
21167
21168# Flag that enforces no undefined symbols.
21169no_undefined_flag=$lt_no_undefined_flag
21170
21171# Flag to hardcode \$libdir into a binary during linking.
21172# This must work even if \$libdir does not exist
21173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21174
21175# Whether we need a single "-rpath" flag with a separated argument.
21176hardcode_libdir_separator=$lt_hardcode_libdir_separator
21177
21178# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21179# DIR into the resulting binary.
21180hardcode_direct=$hardcode_direct
21181
21182# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21183# DIR into the resulting binary and the resulting library dependency is
21184# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21185# library is relocated.
21186hardcode_direct_absolute=$hardcode_direct_absolute
21187
21188# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21189# into the resulting binary.
21190hardcode_minus_L=$hardcode_minus_L
21191
21192# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21193# into the resulting binary.
21194hardcode_shlibpath_var=$hardcode_shlibpath_var
21195
21196# Set to "yes" if building a shared library automatically hardcodes DIR
21197# into the library and all subsequent libraries and executables linked
21198# against it.
21199hardcode_automatic=$hardcode_automatic
21200
21201# Set to yes if linker adds runtime paths of dependent libraries
21202# to runtime path list.
21203inherit_rpath=$inherit_rpath
21204
21205# Whether libtool must link a program against all its dependency libraries.
21206link_all_deplibs=$link_all_deplibs
21207
21208# Set to "yes" if exported symbols are required.
21209always_export_symbols=$always_export_symbols
21210
21211# The commands to list exported symbols.
21212export_symbols_cmds=$lt_export_symbols_cmds
21213
21214# Symbols that should not be listed in the preloaded symbols.
21215exclude_expsyms=$lt_exclude_expsyms
21216
21217# Symbols that must always be exported.
21218include_expsyms=$lt_include_expsyms
21219
21220# Commands necessary for linking programs (against libraries) with templates.
21221prelink_cmds=$lt_prelink_cmds
21222
21223# Commands necessary for finishing linking programs.
21224postlink_cmds=$lt_postlink_cmds
21225
21226# Specify filename containing input files.
21227file_list_spec=$lt_file_list_spec
21228
21229# How to hardcode a shared library path into an executable.
21230hardcode_action=$hardcode_action
21231
21232# ### END LIBTOOL CONFIG
21233
21234_LT_EOF
21235
21236    cat <<'_LT_EOF' >> "$cfgfile"
21237
21238# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21239
21240# func_munge_path_list VARIABLE PATH
21241# -----------------------------------
21242# VARIABLE is name of variable containing _space_ separated list of
21243# directories to be munged by the contents of PATH, which is string
21244# having a format:
21245# "DIR[:DIR]:"
21246#       string "DIR[ DIR]" will be prepended to VARIABLE
21247# ":DIR[:DIR]"
21248#       string "DIR[ DIR]" will be appended to VARIABLE
21249# "DIRP[:DIRP]::[DIRA:]DIRA"
21250#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21251#       "DIRA[ DIRA]" will be appended to VARIABLE
21252# "DIR[:DIR]"
21253#       VARIABLE will be replaced by "DIR[ DIR]"
21254func_munge_path_list ()
21255{
21256    case x$2 in
21257    x)
21258        ;;
21259    *:)
21260        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21261        ;;
21262    x:*)
21263        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21264        ;;
21265    *::*)
21266        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21267        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21268        ;;
21269    *)
21270        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21271        ;;
21272    esac
21273}
21274
21275
21276# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21277func_cc_basename ()
21278{
21279    for cc_temp in $*""; do
21280      case $cc_temp in
21281        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21282        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21283        \-*) ;;
21284        *) break;;
21285      esac
21286    done
21287    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21288}
21289
21290
21291# ### END FUNCTIONS SHARED WITH CONFIGURE
21292
21293_LT_EOF
21294
21295  case $host_os in
21296  aix3*)
21297    cat <<\_LT_EOF >> "$cfgfile"
21298# AIX sometimes has problems with the GCC collect2 program.  For some
21299# reason, if we set the COLLECT_NAMES environment variable, the problems
21300# vanish in a puff of smoke.
21301if test set != "${COLLECT_NAMES+set}"; then
21302  COLLECT_NAMES=
21303  export COLLECT_NAMES
21304fi
21305_LT_EOF
21306    ;;
21307  esac
21308
21309
21310ltmain=$ac_aux_dir/ltmain.sh
21311
21312
21313  # We use sed instead of cat because bash on DJGPP gets confused if
21314  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21315  # text mode, it properly converts lines to CR/LF.  This bash problem
21316  # is reportedly fixed, but why not run on old versions too?
21317  sed '$q' "$ltmain" >> "$cfgfile" \
21318     || (rm -f "$cfgfile"; exit 1)
21319
21320   mv -f "$cfgfile" "$ofile" ||
21321    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21322  chmod +x "$ofile"
21323
21324 ;;
21325
21326  esac
21327done # for ac_tag
21328
21329
21330as_fn_exit 0
21331_ACEOF
21332ac_clean_files=$ac_clean_files_save
21333
21334test $ac_write_fail = 0 ||
21335  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21336
21337
21338# configure is writing to config.log, and then calls config.status.
21339# config.status does its own redirection, appending to config.log.
21340# Unfortunately, on DOS this fails, as config.log is still kept open
21341# by configure, so config.status won't be able to write to it; its
21342# output is simply discarded.  So we exec the FD to /dev/null,
21343# effectively closing config.log, so it can be properly (re)opened and
21344# appended to by config.status.  When coming back to configure, we
21345# need to make the FD available again.
21346if test "$no_create" != yes; then
21347  ac_cs_success=:
21348  ac_config_status_args=
21349  test "$silent" = yes &&
21350    ac_config_status_args="$ac_config_status_args --quiet"
21351  exec 5>/dev/null
21352  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21353  exec 5>>config.log
21354  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21355  # would make configure fail if this is the last instruction.
21356  $ac_cs_success || as_fn_exit 1
21357fi
21358if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21359  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21360$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21361fi
21362
21363