configure revision 49310723
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libpciaccess 0.13.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
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&component=libpciaccess
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='libpciaccess'
593PACKAGE_TARNAME='libpciaccess'
594PACKAGE_VERSION='0.13.5'
595PACKAGE_STRING='libpciaccess 0.13.5'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639PCIACCESS_LIBS
640PCIACCESS_CFLAGS
641CYGWIN_FALSE
642CYGWIN_TRUE
643GNU_FALSE
644GNU_TRUE
645SOLARIS_FALSE
646SOLARIS_TRUE
647OPENBSD_FALSE
648OPENBSD_TRUE
649NETBSD_FALSE
650NETBSD_TRUE
651FREEBSD_FALSE
652FREEBSD_TRUE
653LINUX_FALSE
654LINUX_TRUE
655PCIIDS_PATH
656MAN_SUBSTS
657XORG_MAN_PAGE
658ADMIN_MAN_DIR
659DRIVER_MAN_DIR
660MISC_MAN_DIR
661FILE_MAN_DIR
662LIB_MAN_DIR
663APP_MAN_DIR
664ADMIN_MAN_SUFFIX
665DRIVER_MAN_SUFFIX
666MISC_MAN_SUFFIX
667FILE_MAN_SUFFIX
668LIB_MAN_SUFFIX
669APP_MAN_SUFFIX
670INSTALL_CMD
671PKG_CONFIG_LIBDIR
672PKG_CONFIG_PATH
673PKG_CONFIG
674CHANGELOG_CMD
675STRICT_CFLAGS
676CWARNFLAGS
677BASE_CFLAGS
678LT_SYS_LIBRARY_PATH
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
684MANIFEST_TOOL
685RANLIB
686ac_ct_AR
687AR
688DLLTOOL
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696SED
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
705LIBTOOL
706EGREP
707GREP
708CPP
709am__fastdepCC_FALSE
710am__fastdepCC_TRUE
711CCDEPMODE
712am__nodep
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_dependency_tracking
796enable_shared
797enable_static
798with_pic
799enable_fast_install
800with_aix_soname
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804enable_selective_werror
805enable_strict_compilation
806with_pciids_path
807enable_linux_rom_fallback
808with_zlib
809enable_largefile
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820LT_SYS_LIBRARY_PATH
821PKG_CONFIG
822PKG_CONFIG_PATH
823PKG_CONFIG_LIBDIR'
824
825
826# Initialize some variables set by options.
827ac_init_help=
828ac_init_version=false
829ac_unrecognized_opts=
830ac_unrecognized_sep=
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
853# (The list follows the same order as the GNU Coding Standards.)
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878  # If the previous option needs an argument, assign it.
879  if test -n "$ac_prev"; then
880    eval $ac_prev=\$ac_option
881    ac_prev=
882    continue
883  fi
884
885  case $ac_option in
886  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887  *=)   ac_optarg= ;;
888  *)    ac_optarg=yes ;;
889  esac
890
891  # Accept the important Cygnus configure options, so we can diagnose typos.
892
893  case $ac_dashdash$ac_option in
894  --)
895    ac_dashdash=yes ;;
896
897  -bindir | --bindir | --bindi | --bind | --bin | --bi)
898    ac_prev=bindir ;;
899  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900    bindir=$ac_optarg ;;
901
902  -build | --build | --buil | --bui | --bu)
903    ac_prev=build_alias ;;
904  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905    build_alias=$ac_optarg ;;
906
907  -cache-file | --cache-file | --cache-fil | --cache-fi \
908  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909    ac_prev=cache_file ;;
910  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912    cache_file=$ac_optarg ;;
913
914  --config-cache | -C)
915    cache_file=config.cache ;;
916
917  -datadir | --datadir | --datadi | --datad)
918    ac_prev=datadir ;;
919  -datadir=* | --datadir=* | --datadi=* | --datad=*)
920    datadir=$ac_optarg ;;
921
922  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923  | --dataroo | --dataro | --datar)
924    ac_prev=datarootdir ;;
925  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927    datarootdir=$ac_optarg ;;
928
929  -disable-* | --disable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=no ;;
944
945  -docdir | --docdir | --docdi | --doc | --do)
946    ac_prev=docdir ;;
947  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948    docdir=$ac_optarg ;;
949
950  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951    ac_prev=dvidir ;;
952  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953    dvidir=$ac_optarg ;;
954
955  -enable-* | --enable-*)
956    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959      as_fn_error $? "invalid feature name: $ac_useropt"
960    ac_useropt_orig=$ac_useropt
961    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962    case $ac_user_opts in
963      *"
964"enable_$ac_useropt"
965"*) ;;
966      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967	 ac_unrecognized_sep=', ';;
968    esac
969    eval enable_$ac_useropt=\$ac_optarg ;;
970
971  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973  | --exec | --exe | --ex)
974    ac_prev=exec_prefix ;;
975  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977  | --exec=* | --exe=* | --ex=*)
978    exec_prefix=$ac_optarg ;;
979
980  -gas | --gas | --ga | --g)
981    # Obsolete; use --with-gas.
982    with_gas=yes ;;
983
984  -help | --help | --hel | --he | -h)
985    ac_init_help=long ;;
986  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987    ac_init_help=recursive ;;
988  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989    ac_init_help=short ;;
990
991  -host | --host | --hos | --ho)
992    ac_prev=host_alias ;;
993  -host=* | --host=* | --hos=* | --ho=*)
994    host_alias=$ac_optarg ;;
995
996  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997    ac_prev=htmldir ;;
998  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999  | --ht=*)
1000    htmldir=$ac_optarg ;;
1001
1002  -includedir | --includedir | --includedi | --included | --include \
1003  | --includ | --inclu | --incl | --inc)
1004    ac_prev=includedir ;;
1005  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006  | --includ=* | --inclu=* | --incl=* | --inc=*)
1007    includedir=$ac_optarg ;;
1008
1009  -infodir | --infodir | --infodi | --infod | --info | --inf)
1010    ac_prev=infodir ;;
1011  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012    infodir=$ac_optarg ;;
1013
1014  -libdir | --libdir | --libdi | --libd)
1015    ac_prev=libdir ;;
1016  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017    libdir=$ac_optarg ;;
1018
1019  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020  | --libexe | --libex | --libe)
1021    ac_prev=libexecdir ;;
1022  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023  | --libexe=* | --libex=* | --libe=*)
1024    libexecdir=$ac_optarg ;;
1025
1026  -localedir | --localedir | --localedi | --localed | --locale)
1027    ac_prev=localedir ;;
1028  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029    localedir=$ac_optarg ;;
1030
1031  -localstatedir | --localstatedir | --localstatedi | --localstated \
1032  | --localstate | --localstat | --localsta | --localst | --locals)
1033    ac_prev=localstatedir ;;
1034  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036    localstatedir=$ac_optarg ;;
1037
1038  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039    ac_prev=mandir ;;
1040  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041    mandir=$ac_optarg ;;
1042
1043  -nfp | --nfp | --nf)
1044    # Obsolete; use --without-fp.
1045    with_fp=no ;;
1046
1047  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048  | --no-cr | --no-c | -n)
1049    no_create=yes ;;
1050
1051  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053    no_recursion=yes ;;
1054
1055  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057  | --oldin | --oldi | --old | --ol | --o)
1058    ac_prev=oldincludedir ;;
1059  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062    oldincludedir=$ac_optarg ;;
1063
1064  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065    ac_prev=prefix ;;
1066  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067    prefix=$ac_optarg ;;
1068
1069  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070  | --program-pre | --program-pr | --program-p)
1071    ac_prev=program_prefix ;;
1072  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074    program_prefix=$ac_optarg ;;
1075
1076  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077  | --program-suf | --program-su | --program-s)
1078    ac_prev=program_suffix ;;
1079  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081    program_suffix=$ac_optarg ;;
1082
1083  -program-transform-name | --program-transform-name \
1084  | --program-transform-nam | --program-transform-na \
1085  | --program-transform-n | --program-transform- \
1086  | --program-transform | --program-transfor \
1087  | --program-transfo | --program-transf \
1088  | --program-trans | --program-tran \
1089  | --progr-tra | --program-tr | --program-t)
1090    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1099
1100  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101    ac_prev=pdfdir ;;
1102  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103    pdfdir=$ac_optarg ;;
1104
1105  -psdir | --psdir | --psdi | --psd | --ps)
1106    ac_prev=psdir ;;
1107  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108    psdir=$ac_optarg ;;
1109
1110  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111  | -silent | --silent | --silen | --sile | --sil)
1112    silent=yes ;;
1113
1114  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115    ac_prev=sbindir ;;
1116  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117  | --sbi=* | --sb=*)
1118    sbindir=$ac_optarg ;;
1119
1120  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122  | --sharedst | --shareds | --shared | --share | --shar \
1123  | --sha | --sh)
1124    ac_prev=sharedstatedir ;;
1125  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128  | --sha=* | --sh=*)
1129    sharedstatedir=$ac_optarg ;;
1130
1131  -site | --site | --sit)
1132    ac_prev=site ;;
1133  -site=* | --site=* | --sit=*)
1134    site=$ac_optarg ;;
1135
1136  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137    ac_prev=srcdir ;;
1138  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139    srcdir=$ac_optarg ;;
1140
1141  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142  | --syscon | --sysco | --sysc | --sys | --sy)
1143    ac_prev=sysconfdir ;;
1144  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146    sysconfdir=$ac_optarg ;;
1147
1148  -target | --target | --targe | --targ | --tar | --ta | --t)
1149    ac_prev=target_alias ;;
1150  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151    target_alias=$ac_optarg ;;
1152
1153  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154    verbose=yes ;;
1155
1156  -version | --version | --versio | --versi | --vers | -V)
1157    ac_init_version=: ;;
1158
1159  -with-* | --with-*)
1160    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163      as_fn_error $? "invalid package name: $ac_useropt"
1164    ac_useropt_orig=$ac_useropt
1165    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166    case $ac_user_opts in
1167      *"
1168"with_$ac_useropt"
1169"*) ;;
1170      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171	 ac_unrecognized_sep=', ';;
1172    esac
1173    eval with_$ac_useropt=\$ac_optarg ;;
1174
1175  -without-* | --without-*)
1176    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179      as_fn_error $? "invalid package name: $ac_useropt"
1180    ac_useropt_orig=$ac_useropt
1181    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182    case $ac_user_opts in
1183      *"
1184"with_$ac_useropt"
1185"*) ;;
1186      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187	 ac_unrecognized_sep=', ';;
1188    esac
1189    eval with_$ac_useropt=no ;;
1190
1191  --x)
1192    # Obsolete; use --with-x.
1193    with_x=yes ;;
1194
1195  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196  | --x-incl | --x-inc | --x-in | --x-i)
1197    ac_prev=x_includes ;;
1198  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200    x_includes=$ac_optarg ;;
1201
1202  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204    ac_prev=x_libraries ;;
1205  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207    x_libraries=$ac_optarg ;;
1208
1209  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1210Try \`$0 --help' for more information"
1211    ;;
1212
1213  *=*)
1214    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215    # Reject names that are not valid shell variable names.
1216    case $ac_envvar in #(
1217      '' | [0-9]* | *[!_$as_cr_alnum]* )
1218      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219    esac
1220    eval $ac_envvar=\$ac_optarg
1221    export $ac_envvar ;;
1222
1223  *)
1224    # FIXME: should be removed in autoconf 3.0.
1225    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229    ;;
1230
1231  esac
1232done
1233
1234if test -n "$ac_prev"; then
1235  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236  as_fn_error $? "missing argument to $ac_option"
1237fi
1238
1239if test -n "$ac_unrecognized_opts"; then
1240  case $enable_option_checking in
1241    no) ;;
1242    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1243    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244  esac
1245fi
1246
1247# Check all directory arguments for consistency.
1248for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249		datadir sysconfdir sharedstatedir localstatedir includedir \
1250		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251		libdir localedir mandir
1252do
1253  eval ac_val=\$$ac_var
1254  # Remove trailing slashes.
1255  case $ac_val in
1256    */ )
1257      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258      eval $ac_var=\$ac_val;;
1259  esac
1260  # Be sure to have absolute directory names.
1261  case $ac_val in
1262    [\\/$]* | ?:[\\/]* )  continue;;
1263    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264  esac
1265  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1266done
1267
1268# There might be people who depend on the old broken behavior: `$host'
1269# used to hold the argument of --host etc.
1270# FIXME: To remove some day.
1271build=$build_alias
1272host=$host_alias
1273target=$target_alias
1274
1275# FIXME: To remove some day.
1276if test "x$host_alias" != x; then
1277  if test "x$build_alias" = x; then
1278    cross_compiling=maybe
1279  elif test "x$build_alias" != "x$host_alias"; then
1280    cross_compiling=yes
1281  fi
1282fi
1283
1284ac_tool_prefix=
1285test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287test "$silent" = yes && exec 6>/dev/null
1288
1289
1290ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291ac_ls_di=`ls -di .` &&
1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293  as_fn_error $? "working directory cannot be determined"
1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295  as_fn_error $? "pwd does not report name of working directory"
1296
1297
1298# Find the source files, if location was not specified.
1299if test -z "$srcdir"; then
1300  ac_srcdir_defaulted=yes
1301  # Try the directory containing this script, then the parent directory.
1302  ac_confdir=`$as_dirname -- "$as_myself" ||
1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304	 X"$as_myself" : 'X\(//\)[^/]' \| \
1305	 X"$as_myself" : 'X\(//\)$' \| \
1306	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307$as_echo X"$as_myself" |
1308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\/\)[^/].*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)$/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\).*/{
1321	    s//\1/
1322	    q
1323	  }
1324	  s/.*/./; q'`
1325  srcdir=$ac_confdir
1326  if test ! -r "$srcdir/$ac_unique_file"; then
1327    srcdir=..
1328  fi
1329else
1330  ac_srcdir_defaulted=no
1331fi
1332if test ! -r "$srcdir/$ac_unique_file"; then
1333  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335fi
1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337ac_abs_confdir=`(
1338	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339	pwd)`
1340# When building in place, set srcdir=.
1341if test "$ac_abs_confdir" = "$ac_pwd"; then
1342  srcdir=.
1343fi
1344# Remove unnecessary trailing slashes from srcdir.
1345# Double slashes in file names in object file debugging info
1346# mess up M-x gdb in Emacs.
1347case $srcdir in
1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349esac
1350for ac_var in $ac_precious_vars; do
1351  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352  eval ac_env_${ac_var}_value=\$${ac_var}
1353  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355done
1356
1357#
1358# Report the --help message.
1359#
1360if test "$ac_init_help" = "long"; then
1361  # Omit some internal or obsolete options to make the list less imposing.
1362  # This message is too long to be a string in the A/UX 3.1 sh.
1363  cat <<_ACEOF
1364\`configure' configures libpciaccess 0.13.5 to adapt to many kinds of systems.
1365
1366Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369VAR=VALUE.  See below for descriptions of some of the useful variables.
1370
1371Defaults for the options are specified in brackets.
1372
1373Configuration:
1374  -h, --help              display this help and exit
1375      --help=short        display options specific to this package
1376      --help=recursive    display the short help of all the included packages
1377  -V, --version           display version information and exit
1378  -q, --quiet, --silent   do not print \`checking ...' messages
1379      --cache-file=FILE   cache test results in FILE [disabled]
1380  -C, --config-cache      alias for \`--cache-file=config.cache'
1381  -n, --no-create         do not create output files
1382      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1383
1384Installation directories:
1385  --prefix=PREFIX         install architecture-independent files in PREFIX
1386                          [$ac_default_prefix]
1387  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1388                          [PREFIX]
1389
1390By default, \`make install' will install all the files in
1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1392an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393for instance \`--prefix=\$HOME'.
1394
1395For better control, use the options below.
1396
1397Fine tuning of the installation directories:
1398  --bindir=DIR            user executables [EPREFIX/bin]
1399  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1400  --libexecdir=DIR        program executables [EPREFIX/libexec]
1401  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1402  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1403  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1404  --libdir=DIR            object code libraries [EPREFIX/lib]
1405  --includedir=DIR        C header files [PREFIX/include]
1406  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1407  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1408  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1409  --infodir=DIR           info documentation [DATAROOTDIR/info]
1410  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1411  --mandir=DIR            man documentation [DATAROOTDIR/man]
1412  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpciaccess]
1413  --htmldir=DIR           html documentation [DOCDIR]
1414  --dvidir=DIR            dvi documentation [DOCDIR]
1415  --pdfdir=DIR            pdf documentation [DOCDIR]
1416  --psdir=DIR             ps documentation [DOCDIR]
1417_ACEOF
1418
1419  cat <<\_ACEOF
1420
1421Program names:
1422  --program-prefix=PREFIX            prepend PREFIX to installed program names
1423  --program-suffix=SUFFIX            append SUFFIX to installed program names
1424  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1425
1426System types:
1427  --build=BUILD     configure for building on BUILD [guessed]
1428  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1429_ACEOF
1430fi
1431
1432if test -n "$ac_init_help"; then
1433  case $ac_init_help in
1434     short | recursive ) echo "Configuration of libpciaccess 0.13.5:";;
1435   esac
1436  cat <<\_ACEOF
1437
1438Optional Features:
1439  --disable-option-checking  ignore unrecognized --enable/--with options
1440  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1441  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1442  --enable-silent-rules   less verbose build output (undo: "make V=1")
1443  --disable-silent-rules  verbose build output (undo: "make V=0")
1444  --enable-dependency-tracking
1445                          do not reject slow dependency extractors
1446  --disable-dependency-tracking
1447                          speeds up one-time build
1448  --enable-shared[=PKGS]  build shared libraries [default=yes]
1449  --enable-static[=PKGS]  build static libraries [default=yes]
1450  --enable-fast-install[=PKGS]
1451                          optimize for fast installation [default=yes]
1452  --disable-libtool-lock  avoid locking (might break parallel builds)
1453  --disable-selective-werror
1454                          Turn off selective compiler errors. (default:
1455                          enabled)
1456  --enable-strict-compilation
1457                          Enable all warnings from compiler and make them
1458                          errors (default: disabled)
1459  --enable-linux-rom-fallback
1460                          Enable support for falling back to /dev/mem for roms
1461                          (default: disabled)
1462  --disable-largefile     omit support for large files
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1468                          both]
1469  --with-aix-soname=aix|svr4|both
1470                          shared library versioning (aka "SONAME") variant to
1471                          provide on AIX, [default=aix].
1472  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1474                          compiler's sysroot if not specified).
1475  --with-pciids-path=PCIIDS_PATH
1476                          Path to pci.ids file
1477  --with-zlib             Enable zlib support to read gzip compressed pci.ids
1478
1479Some influential environment variables:
1480  CC          C compiler command
1481  CFLAGS      C compiler flags
1482  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483              nonstandard directory <lib dir>
1484  LIBS        libraries to pass to the linker, e.g. -l<library>
1485  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486              you have headers in a nonstandard directory <include dir>
1487  CPP         C preprocessor
1488  LT_SYS_LIBRARY_PATH
1489              User-defined run-time library search path.
1490  PKG_CONFIG  path to pkg-config utility
1491  PKG_CONFIG_PATH
1492              directories to add to pkg-config's search path
1493  PKG_CONFIG_LIBDIR
1494              path overriding pkg-config's built-in search path
1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505  # If there are subdirs, report their specific --help.
1506  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507    test -d "$ac_dir" ||
1508      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509      continue
1510    ac_builddir=.
1511
1512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
1515  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1516  # A ".." for each directory in $ac_dir_suffix.
1517  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1518  case $ac_top_builddir_sub in
1519  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521  esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
1527
1528case $srcdir in
1529  .)  # We are building in place.
1530    ac_srcdir=.
1531    ac_top_srcdir=$ac_top_builddir_sub
1532    ac_abs_top_srcdir=$ac_pwd ;;
1533  [\\/]* | ?:[\\/]* )  # Absolute name.
1534    ac_srcdir=$srcdir$ac_dir_suffix;
1535    ac_top_srcdir=$srcdir
1536    ac_abs_top_srcdir=$srcdir ;;
1537  *) # Relative name.
1538    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539    ac_top_srcdir=$ac_top_build_prefix$srcdir
1540    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541esac
1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544    cd "$ac_dir" || { ac_status=$?; continue; }
1545    # Check for guested configure.
1546    if test -f "$ac_srcdir/configure.gnu"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549    elif test -f "$ac_srcdir/configure"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure" --help=recursive
1552    else
1553      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554    fi || ac_status=$?
1555    cd "$ac_pwd" || { ac_status=$?; break; }
1556  done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561  cat <<\_ACEOF
1562libpciaccess configure 0.13.5
1563generated by GNU Autoconf 2.69
1564
1565Copyright (C) 2012 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569  exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext
1583  if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590  (eval "$ac_compile") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest.$ac_objext; then :
1602  ac_retval=0
1603else
1604  $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607	ac_retval=1
1608fi
1609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610  as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } > conftest.i && {
1636	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644    ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654# the include files in INCLUDES and setting the cache variable VAR
1655# accordingly.
1656ac_fn_c_check_header_mongrel ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if eval \${$3+:} false; then :
1660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663  $as_echo_n "(cached) " >&6
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668else
1669  # Is the header compilable?
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671$as_echo_n "checking $2 usability... " >&6; }
1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h.  */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678  ac_header_compiler=yes
1679else
1680  ac_header_compiler=no
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684$as_echo "$ac_header_compiler" >&6; }
1685
1686# Is the header present?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688$as_echo_n "checking $2 presence... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h.  */
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_cpp "$LINENO"; then :
1694  ac_header_preproc=yes
1695else
1696  ac_header_preproc=no
1697fi
1698rm -f conftest.err conftest.i conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700$as_echo "$ac_header_preproc" >&6; }
1701
1702# So?  What about this header?
1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704  yes:no: )
1705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709    ;;
1710  no:yes:* )
1711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1714$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1718$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721( $as_echo "## --------------------------------------------------------------------------------------------- ##
1722## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
1723## --------------------------------------------------------------------------------------------- ##"
1724     ) | sed "s/^/$as_me: WARNING:     /" >&2
1725    ;;
1726esac
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  eval "$3=\$ac_header_compiler"
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_c_check_header_mongrel
1741
1742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_link") 2>&5
1757  ac_status=$?
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760  { { case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_try") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; }; }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: program exited with status $ac_status" >&5
1773       $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776       ac_retval=$ac_status
1777fi
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794  $as_echo_n "(cached) " >&6
1795else
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802  eval "$3=yes"
1803else
1804  eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_link LINENO
1816# -----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_c_try_link ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  rm -f conftest.$ac_objext conftest$ac_exeext
1822  if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_link") 2>conftest.err
1830  ac_status=$?
1831  if test -s conftest.err; then
1832    grep -v '^ *+' conftest.err >conftest.er1
1833    cat conftest.er1 >&5
1834    mv -f conftest.er1 conftest.err
1835  fi
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } && {
1838	 test -z "$ac_c_werror_flag" ||
1839	 test ! -s conftest.err
1840       } && test -s conftest$ac_exeext && {
1841	 test "$cross_compiling" = yes ||
1842	 test -x conftest$ac_exeext
1843       }; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849	ac_retval=1
1850fi
1851  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853  # interfere with the next link command; also delete a directory that is
1854  # left behind by Apple's compiler.  We do this before executing the actions.
1855  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_c_try_link
1860
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876#define $2 innocuous_$2
1877
1878/* System header to define __stub macros and hopefully few prototypes,
1879    which can conflict with char $2 (); below.
1880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881    <limits.h> exists even on freestanding compilers.  */
1882
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
1888
1889#undef $2
1890
1891/* Override any GCC internal prototype to avoid an error.
1892   Use char because int might match the return type of a GCC
1893   builtin and then its argument prototype would still apply.  */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
1904
1905int
1906main ()
1907{
1908return $2 ();
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_link "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919    conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927
1928# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1929# ---------------------------------------------
1930# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931# accordingly.
1932ac_fn_c_check_decl ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  as_decl_name=`echo $2|sed 's/ *(.*//'`
1936  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1938$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945int
1946main ()
1947{
1948#ifndef $as_decl_name
1949#ifdef __cplusplus
1950  (void) $as_decl_use;
1951#else
1952  (void) $as_decl_name;
1953#endif
1954#endif
1955
1956  ;
1957  return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961  eval "$3=yes"
1962else
1963  eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_decl
1973
1974# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975# ----------------------------------------------------
1976# Tries to find if the field MEMBER exists in type AGGR, after including
1977# INCLUDES, setting cache variable VAR accordingly.
1978ac_fn_c_check_member ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982$as_echo_n "checking for $2.$3... " >&6; }
1983if eval \${$4+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985else
1986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$5
1989int
1990main ()
1991{
1992static $2 ac_aggr;
1993if (ac_aggr.$3)
1994return 0;
1995  ;
1996  return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000  eval "$4=yes"
2001else
2002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004$5
2005int
2006main ()
2007{
2008static $2 ac_aggr;
2009if (sizeof ac_aggr.$3)
2010return 0;
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016  eval "$4=yes"
2017else
2018  eval "$4=no"
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024eval ac_res=\$$4
2025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} # ac_fn_c_check_member
2030cat >config.log <<_ACEOF
2031This file contains any messages produced by compilers while
2032running configure, to aid debugging if configure makes a mistake.
2033
2034It was created by libpciaccess $as_me 0.13.5, which was
2035generated by GNU Autoconf 2.69.  Invocation command line was
2036
2037  $ $0 $@
2038
2039_ACEOF
2040exec 5>>config.log
2041{
2042cat <<_ASUNAME
2043## --------- ##
2044## Platform. ##
2045## --------- ##
2046
2047hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2055
2056/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2057/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2058/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2060/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2061/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2062/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2063
2064_ASUNAME
2065
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071    $as_echo "PATH: $as_dir"
2072  done
2073IFS=$as_save_IFS
2074
2075} >&5
2076
2077cat >&5 <<_ACEOF
2078
2079
2080## ----------- ##
2081## Core tests. ##
2082## ----------- ##
2083
2084_ACEOF
2085
2086
2087# Keep a trace of the command line.
2088# Strip out --no-create and --no-recursion so they do not pile up.
2089# Strip out --silent because we don't want to record it for future runs.
2090# Also quote any args containing shell meta-characters.
2091# Make two passes to allow for proper duplicate-argument suppression.
2092ac_configure_args=
2093ac_configure_args0=
2094ac_configure_args1=
2095ac_must_keep_next=false
2096for ac_pass in 1 2
2097do
2098  for ac_arg
2099  do
2100    case $ac_arg in
2101    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103    | -silent | --silent | --silen | --sile | --sil)
2104      continue ;;
2105    *\'*)
2106      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107    esac
2108    case $ac_pass in
2109    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110    2)
2111      as_fn_append ac_configure_args1 " '$ac_arg'"
2112      if test $ac_must_keep_next = true; then
2113	ac_must_keep_next=false # Got value, back to normal.
2114      else
2115	case $ac_arg in
2116	  *=* | --config-cache | -C | -disable-* | --disable-* \
2117	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119	  | -with-* | --with-* | -without-* | --without-* | --x)
2120	    case "$ac_configure_args0 " in
2121	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122	    esac
2123	    ;;
2124	  -* ) ac_must_keep_next=true ;;
2125	esac
2126      fi
2127      as_fn_append ac_configure_args " '$ac_arg'"
2128      ;;
2129    esac
2130  done
2131done
2132{ ac_configure_args0=; unset ac_configure_args0;}
2133{ ac_configure_args1=; unset ac_configure_args1;}
2134
2135# When interrupted or exit'd, cleanup temporary files, and complete
2136# config.log.  We remove comments because anyway the quotes in there
2137# would cause problems or look ugly.
2138# WARNING: Use '\'' to represent an apostrophe within the trap.
2139# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140trap 'exit_status=$?
2141  # Save into config.log some information that might help in debugging.
2142  {
2143    echo
2144
2145    $as_echo "## ---------------- ##
2146## Cache variables. ##
2147## ---------------- ##"
2148    echo
2149    # The following way of writing the cache mishandles newlines in values,
2150(
2151  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152    eval ac_val=\$$ac_var
2153    case $ac_val in #(
2154    *${as_nl}*)
2155      case $ac_var in #(
2156      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158      esac
2159      case $ac_var in #(
2160      _ | IFS | as_nl) ;; #(
2161      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162      *) { eval $ac_var=; unset $ac_var;} ;;
2163      esac ;;
2164    esac
2165  done
2166  (set) 2>&1 |
2167    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168    *${as_nl}ac_space=\ *)
2169      sed -n \
2170	"s/'\''/'\''\\\\'\'''\''/g;
2171	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172      ;; #(
2173    *)
2174      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175      ;;
2176    esac |
2177    sort
2178)
2179    echo
2180
2181    $as_echo "## ----------------- ##
2182## Output variables. ##
2183## ----------------- ##"
2184    echo
2185    for ac_var in $ac_subst_vars
2186    do
2187      eval ac_val=\$$ac_var
2188      case $ac_val in
2189      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190      esac
2191      $as_echo "$ac_var='\''$ac_val'\''"
2192    done | sort
2193    echo
2194
2195    if test -n "$ac_subst_files"; then
2196      $as_echo "## ------------------- ##
2197## File substitutions. ##
2198## ------------------- ##"
2199      echo
2200      for ac_var in $ac_subst_files
2201      do
2202	eval ac_val=\$$ac_var
2203	case $ac_val in
2204	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205	esac
2206	$as_echo "$ac_var='\''$ac_val'\''"
2207      done | sort
2208      echo
2209    fi
2210
2211    if test -s confdefs.h; then
2212      $as_echo "## ----------- ##
2213## confdefs.h. ##
2214## ----------- ##"
2215      echo
2216      cat confdefs.h
2217      echo
2218    fi
2219    test "$ac_signal" != 0 &&
2220      $as_echo "$as_me: caught signal $ac_signal"
2221    $as_echo "$as_me: exit $exit_status"
2222  } >&5
2223  rm -f core *.core core.conftest.* &&
2224    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225    exit $exit_status
2226' 0
2227for ac_signal in 1 2 13 15; do
2228  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229done
2230ac_signal=0
2231
2232# confdefs.h avoids OS command line length limits that DEFS can exceed.
2233rm -f -r conftest* confdefs.h
2234
2235$as_echo "/* confdefs.h */" > confdefs.h
2236
2237# Predefined preprocessor variables.
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_NAME "$PACKAGE_NAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_VERSION "$PACKAGE_VERSION"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_STRING "$PACKAGE_STRING"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_URL "$PACKAGE_URL"
2261_ACEOF
2262
2263
2264# Let the site file select an alternate cache file if it wants to.
2265# Prefer an explicitly selected file to automatically selected ones.
2266ac_site_file1=NONE
2267ac_site_file2=NONE
2268if test -n "$CONFIG_SITE"; then
2269  # We do not want a PATH search for config.site.
2270  case $CONFIG_SITE in #((
2271    -*)  ac_site_file1=./$CONFIG_SITE;;
2272    */*) ac_site_file1=$CONFIG_SITE;;
2273    *)   ac_site_file1=./$CONFIG_SITE;;
2274  esac
2275elif test "x$prefix" != xNONE; then
2276  ac_site_file1=$prefix/share/config.site
2277  ac_site_file2=$prefix/etc/config.site
2278else
2279  ac_site_file1=$ac_default_prefix/share/config.site
2280  ac_site_file2=$ac_default_prefix/etc/config.site
2281fi
2282for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283do
2284  test "x$ac_site_file" = xNONE && continue
2285  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288    sed 's/^/| /' "$ac_site_file" >&5
2289    . "$ac_site_file" \
2290      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292as_fn_error $? "failed to load site script $ac_site_file
2293See \`config.log' for more details" "$LINENO" 5; }
2294  fi
2295done
2296
2297if test -r "$cache_file"; then
2298  # Some versions of bash will fail to source /dev/null (special files
2299  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2300  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302$as_echo "$as_me: loading cache $cache_file" >&6;}
2303    case $cache_file in
2304      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305      *)                      . "./$cache_file";;
2306    esac
2307  fi
2308else
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310$as_echo "$as_me: creating cache $cache_file" >&6;}
2311  >$cache_file
2312fi
2313
2314# Check that the precious variables saved in the cache have kept the same
2315# value.
2316ac_cache_corrupted=false
2317for ac_var in $ac_precious_vars; do
2318  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319  eval ac_new_set=\$ac_env_${ac_var}_set
2320  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321  eval ac_new_val=\$ac_env_${ac_var}_value
2322  case $ac_old_set,$ac_new_set in
2323    set,)
2324      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326      ac_cache_corrupted=: ;;
2327    ,set)
2328      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330      ac_cache_corrupted=: ;;
2331    ,);;
2332    *)
2333      if test "x$ac_old_val" != "x$ac_new_val"; then
2334	# differences in whitespace do not lead to failure.
2335	ac_old_val_w=`echo x $ac_old_val`
2336	ac_new_val_w=`echo x $ac_new_val`
2337	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340	  ac_cache_corrupted=:
2341	else
2342	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344	  eval $ac_var=\$ac_old_val
2345	fi
2346	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2347$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2348	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2349$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2350      fi;;
2351  esac
2352  # Pass precious variables to config.status.
2353  if test "$ac_new_set" = set; then
2354    case $ac_new_val in
2355    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356    *) ac_arg=$ac_var=$ac_new_val ;;
2357    esac
2358    case " $ac_configure_args " in
2359      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2360      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361    esac
2362  fi
2363done
2364if $ac_cache_corrupted; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370fi
2371## -------------------- ##
2372## Main body of script. ##
2373## -------------------- ##
2374
2375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
2382ac_config_headers="$ac_config_headers config.h"
2383
2384ac_aux_dir=
2385for ac_dir in . "$srcdir"/.; do
2386  if test -f "$ac_dir/install-sh"; then
2387    ac_aux_dir=$ac_dir
2388    ac_install_sh="$ac_aux_dir/install-sh -c"
2389    break
2390  elif test -f "$ac_dir/install.sh"; then
2391    ac_aux_dir=$ac_dir
2392    ac_install_sh="$ac_aux_dir/install.sh -c"
2393    break
2394  elif test -f "$ac_dir/shtool"; then
2395    ac_aux_dir=$ac_dir
2396    ac_install_sh="$ac_aux_dir/shtool install -c"
2397    break
2398  fi
2399done
2400if test -z "$ac_aux_dir"; then
2401  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2402fi
2403
2404# These three variables are undocumented and unsupported,
2405# and are intended to be withdrawn in a future Autoconf release.
2406# They can cause serious problems if a builder's source tree is in a directory
2407# whose full name contains unusual characters.
2408ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2409ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2410ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2411
2412
2413
2414# Initialize Automake
2415am__api_version='1.15'
2416
2417# Find a good install program.  We prefer a C program (faster),
2418# so one script is as good as another.  But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
2424# AmigaOS /C/install, which installs bootblocks on floppy discs
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428# OS/2's system install, which has a completely different semantic
2429# ./install, which can be erroneously created by make from ./install.sh.
2430# Reject install programs that cannot install multiple files.
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
2433if test -z "$INSTALL"; then
2434if ${ac_cv_path_install+:} false; then :
2435  $as_echo_n "(cached) " >&6
2436else
2437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444  ./ | .// | /[cC]/* | \
2445  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447  /usr/ucb/* ) ;;
2448  *)
2449    # OSF1 and SCO ODT 3.0 have their own names for install.
2450    # Don't use installbsd from OSF since it installs stuff as root
2451    # by default.
2452    for ac_prog in ginstall scoinst install; do
2453      for ac_exec_ext in '' $ac_executable_extensions; do
2454	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2455	  if test $ac_prog = install &&
2456	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457	    # AIX install.  It has an incompatible calling convention.
2458	    :
2459	  elif test $ac_prog = install &&
2460	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461	    # program-specific install script used by HP pwplus--don't use.
2462	    :
2463	  else
2464	    rm -rf conftest.one conftest.two conftest.dir
2465	    echo one > conftest.one
2466	    echo two > conftest.two
2467	    mkdir conftest.dir
2468	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469	      test -s conftest.one && test -s conftest.two &&
2470	      test -s conftest.dir/conftest.one &&
2471	      test -s conftest.dir/conftest.two
2472	    then
2473	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474	      break 3
2475	    fi
2476	  fi
2477	fi
2478      done
2479    done
2480    ;;
2481esac
2482
2483  done
2484IFS=$as_save_IFS
2485
2486rm -rf conftest.one conftest.two conftest.dir
2487
2488fi
2489  if test "${ac_cv_path_install+set}" = set; then
2490    INSTALL=$ac_cv_path_install
2491  else
2492    # As a last resort, use the slow shell script.  Don't cache a
2493    # value for INSTALL within a source directory, because that will
2494    # break other packages using the cache if that directory is
2495    # removed, or if the value is a relative name.
2496    INSTALL=$ac_install_sh
2497  fi
2498fi
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511$as_echo_n "checking whether build environment is sane... " >&6; }
2512# Reject unsafe characters in $srcdir or the absolute working directory
2513# name.  Accept space and tab only in the latter.
2514am_lf='
2515'
2516case `pwd` in
2517  *[\\\"\#\$\&\'\`$am_lf]*)
2518    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2519esac
2520case $srcdir in
2521  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2522    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2523esac
2524
2525# Do 'set' in a subshell so we don't clobber the current shell's
2526# arguments.  Must try -L first in case configure is actually a
2527# symlink; some systems play weird games with the mod time of symlinks
2528# (eg FreeBSD returns the mod time of the symlink's containing
2529# directory).
2530if (
2531   am_has_slept=no
2532   for am_try in 1 2; do
2533     echo "timestamp, slept: $am_has_slept" > conftest.file
2534     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535     if test "$*" = "X"; then
2536	# -L didn't work.
2537	set X `ls -t "$srcdir/configure" conftest.file`
2538     fi
2539     if test "$*" != "X $srcdir/configure conftest.file" \
2540	&& test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542	# If neither matched, then we have a broken ls.  This can happen
2543	# if, for instance, CONFIG_SHELL is bash and it inherits a
2544	# broken ls alias from the environment.  This has actually
2545	# happened.  Such a system could not be considered "sane".
2546	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2547  alias in your environment" "$LINENO" 5
2548     fi
2549     if test "$2" = conftest.file || test $am_try -eq 2; then
2550       break
2551     fi
2552     # Just in case.
2553     sleep 1
2554     am_has_slept=yes
2555   done
2556   test "$2" = conftest.file
2557   )
2558then
2559   # Ok.
2560   :
2561else
2562   as_fn_error $? "newly created file is older than distributed files!
2563Check your system clock" "$LINENO" 5
2564fi
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566$as_echo "yes" >&6; }
2567# If we didn't sleep, we still need to ensure time stamps of config.status and
2568# generated files are strictly newer.
2569am_sleep_pid=
2570if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2571  ( sleep 1 ) &
2572  am_sleep_pid=$!
2573fi
2574
2575rm -f conftest.file
2576
2577test "$program_prefix" != NONE &&
2578  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579# Use a double $ so make ignores it.
2580test "$program_suffix" != NONE &&
2581  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582# Double any \ or $.
2583# By default was `s,x,x', remove it if useless.
2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587# Expand $ac_aux_dir to an absolute path.
2588am_aux_dir=`cd "$ac_aux_dir" && pwd`
2589
2590if test x"${MISSING+set}" != xset; then
2591  case $am_aux_dir in
2592  *\ * | *\	*)
2593    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2594  *)
2595    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2596  esac
2597fi
2598# Use eval to expand $SHELL
2599if eval "$MISSING --is-lightweight"; then
2600  am_missing_run="$MISSING "
2601else
2602  am_missing_run=
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2604$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2605fi
2606
2607if test x"${install_sh+set}" != xset; then
2608  case $am_aux_dir in
2609  *\ * | *\	*)
2610    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2611  *)
2612    install_sh="\${SHELL} $am_aux_dir/install-sh"
2613  esac
2614fi
2615
2616# Installed binaries are usually stripped using 'strip' when the user
2617# run "make install-strip".  However 'strip' might not be the right
2618# tool to use in cross-compilation environments, therefore Automake
2619# will honor the 'STRIP' environment variable to overrule this program.
2620if test "$cross_compiling" != no; then
2621  if test -n "$ac_tool_prefix"; then
2622  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623set dummy ${ac_tool_prefix}strip; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_STRIP+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$STRIP"; then
2630  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649STRIP=$ac_cv_prog_STRIP
2650if test -n "$STRIP"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652$as_echo "$STRIP" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659fi
2660if test -z "$ac_cv_prog_STRIP"; then
2661  ac_ct_STRIP=$STRIP
2662  # Extract the first word of "strip", so it can be a program name with args.
2663set dummy strip; ac_word=$2
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
2666if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  if test -n "$ac_ct_STRIP"; then
2670  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    for ac_exec_ext in '' $ac_executable_extensions; do
2678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679    ac_cv_prog_ac_ct_STRIP="strip"
2680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681    break 2
2682  fi
2683done
2684  done
2685IFS=$as_save_IFS
2686
2687fi
2688fi
2689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690if test -n "$ac_ct_STRIP"; then
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692$as_echo "$ac_ct_STRIP" >&6; }
2693else
2694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695$as_echo "no" >&6; }
2696fi
2697
2698  if test "x$ac_ct_STRIP" = x; then
2699    STRIP=":"
2700  else
2701    case $cross_compiling:$ac_tool_warned in
2702yes:)
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707    STRIP=$ac_ct_STRIP
2708  fi
2709else
2710  STRIP="$ac_cv_prog_STRIP"
2711fi
2712
2713fi
2714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2715
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718if test -z "$MKDIR_P"; then
2719  if ${ac_cv_path_mkdir+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_prog in mkdir gmkdir; do
2728	 for ac_exec_ext in '' $ac_executable_extensions; do
2729	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731	     'mkdir (GNU coreutils) '* | \
2732	     'mkdir (coreutils) '* | \
2733	     'mkdir (fileutils) '4.1*)
2734	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735	       break 3;;
2736	   esac
2737	 done
2738       done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743
2744  test -d ./--version && rmdir ./--version
2745  if test "${ac_cv_path_mkdir+set}" = set; then
2746    MKDIR_P="$ac_cv_path_mkdir -p"
2747  else
2748    # As a last resort, use the slow shell script.  Don't cache a
2749    # value for MKDIR_P within a source directory, because that will
2750    # break other packages using the cache if that directory is
2751    # removed, or if the value is a relative name.
2752    MKDIR_P="$ac_install_sh -d"
2753  fi
2754fi
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756$as_echo "$MKDIR_P" >&6; }
2757
2758for ac_prog in gawk mawk nawk awk
2759do
2760  # Extract the first word of "$ac_prog", so it can be a program name with args.
2761set dummy $ac_prog; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if ${ac_cv_prog_AWK+:} false; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  if test -n "$AWK"; then
2768  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773  IFS=$as_save_IFS
2774  test -z "$as_dir" && as_dir=.
2775    for ac_exec_ext in '' $ac_executable_extensions; do
2776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777    ac_cv_prog_AWK="$ac_prog"
2778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779    break 2
2780  fi
2781done
2782  done
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787AWK=$ac_cv_prog_AWK
2788if test -n "$AWK"; then
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790$as_echo "$AWK" >&6; }
2791else
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794fi
2795
2796
2797  test -n "$AWK" && break
2798done
2799
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2802set x ${MAKE-make}
2803ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  cat >conftest.make <<\_ACEOF
2808SHELL = /bin/sh
2809all:
2810	@echo '@@@%%%=$(MAKE)=@@@%%%'
2811_ACEOF
2812# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2813case `${MAKE-make} -f conftest.make 2>/dev/null` in
2814  *@@@%%%=?*=@@@%%%*)
2815    eval ac_cv_prog_make_${ac_make}_set=yes;;
2816  *)
2817    eval ac_cv_prog_make_${ac_make}_set=no;;
2818esac
2819rm -f conftest.make
2820fi
2821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823$as_echo "yes" >&6; }
2824  SET_MAKE=
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828  SET_MAKE="MAKE=${MAKE-make}"
2829fi
2830
2831rm -rf .tst 2>/dev/null
2832mkdir .tst 2>/dev/null
2833if test -d .tst; then
2834  am__leading_dot=.
2835else
2836  am__leading_dot=_
2837fi
2838rmdir .tst 2>/dev/null
2839
2840# Check whether --enable-silent-rules was given.
2841if test "${enable_silent_rules+set}" = set; then :
2842  enableval=$enable_silent_rules;
2843fi
2844
2845case $enable_silent_rules in # (((
2846  yes) AM_DEFAULT_VERBOSITY=0;;
2847   no) AM_DEFAULT_VERBOSITY=1;;
2848    *) AM_DEFAULT_VERBOSITY=1;;
2849esac
2850am_make=${MAKE-make}
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853if ${am_cv_make_support_nested_variables+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  if $as_echo 'TRUE=$(BAR$(V))
2857BAR0=false
2858BAR1=true
2859V=1
2860am__doit:
2861	@$(TRUE)
2862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863  am_cv_make_support_nested_variables=yes
2864else
2865  am_cv_make_support_nested_variables=no
2866fi
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869$as_echo "$am_cv_make_support_nested_variables" >&6; }
2870if test $am_cv_make_support_nested_variables = yes; then
2871    AM_V='$(V)'
2872  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2873else
2874  AM_V=$AM_DEFAULT_VERBOSITY
2875  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2876fi
2877AM_BACKSLASH='\'
2878
2879if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881  # is not polluted with repeated "-I."
2882  am__isrc=' -I$(srcdir)'
2883  # test to see if srcdir already configured
2884  if test -f $srcdir/config.status; then
2885    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2886  fi
2887fi
2888
2889# test whether we have cygpath
2890if test -z "$CYGPATH_W"; then
2891  if (cygpath --version) >/dev/null 2>/dev/null; then
2892    CYGPATH_W='cygpath -w'
2893  else
2894    CYGPATH_W=echo
2895  fi
2896fi
2897
2898
2899# Define the identity of the package.
2900 PACKAGE='libpciaccess'
2901 VERSION='0.13.5'
2902
2903
2904cat >>confdefs.h <<_ACEOF
2905#define PACKAGE "$PACKAGE"
2906_ACEOF
2907
2908
2909cat >>confdefs.h <<_ACEOF
2910#define VERSION "$VERSION"
2911_ACEOF
2912
2913# Some tools Automake needs.
2914
2915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2916
2917
2918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2919
2920
2921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2922
2923
2924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2925
2926
2927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2928
2929# For better backward compatibility.  To be removed once Automake 1.9.x
2930# dies out for good.  For more background, see:
2931# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2932# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2933mkdir_p='$(MKDIR_P)'
2934
2935# We need awk for the "check" target (and possibly the TAP driver).  The
2936# system "awk" is bad on some platforms.
2937# Always define AMTAR for backward compatibility.  Yes, it's still used
2938# in the wild :-(  We should find a proper way to deprecate it ...
2939AMTAR='$${TAR-tar}'
2940
2941
2942# We'll loop over all known methods to create a tar archive until one works.
2943_am_tools='gnutar  pax cpio none'
2944
2945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2946
2947
2948
2949
2950
2951
2952# POSIX will say in a future version that running "rm -f" with no argument
2953# is OK; and we want to be able to make that assumption in our Makefile
2954# recipes.  So use an aggressive probe to check that the usage we want is
2955# actually supported "in the wild" to an acceptable degree.
2956# See automake bug#10828.
2957# To make any issue more visible, cause the running configure to be aborted
2958# by default if the 'rm' program in use doesn't match our expectations; the
2959# user can still override this though.
2960if rm -f && rm -fr && rm -rf; then : OK; else
2961  cat >&2 <<'END'
2962Oops!
2963
2964Your 'rm' program seems unable to run without file operands specified
2965on the command line, even when the '-f' option is present.  This is contrary
2966to the behaviour of most rm programs out there, and not conforming with
2967the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2968
2969Please tell bug-automake@gnu.org about your system, including the value
2970of your $PATH and any error possibly output before this message.  This
2971can help us improve future automake versions.
2972
2973END
2974  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2975    echo 'Configuration will proceed anyway, since you have set the' >&2
2976    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2977    echo >&2
2978  else
2979    cat >&2 <<'END'
2980Aborting the configuration process, to ensure you take notice of the issue.
2981
2982You can download and install GNU coreutils to get an 'rm' implementation
2983that behaves properly: <http://www.gnu.org/software/coreutils/>.
2984
2985If you want to complete the configuration process using your problematic
2986'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2987to "yes", and re-run configure.
2988
2989END
2990    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2991  fi
2992fi
2993
2994DEPDIR="${am__leading_dot}deps"
2995
2996ac_config_commands="$ac_config_commands depfiles"
2997
2998
2999am_make=${MAKE-make}
3000cat > confinc << 'END'
3001am__doit:
3002	@echo this is the am__doit target
3003.PHONY: am__doit
3004END
3005# If we don't find an include directive, just comment out the code.
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3007$as_echo_n "checking for style of include used by $am_make... " >&6; }
3008am__include="#"
3009am__quote=
3010_am_result=none
3011# First try GNU make style include.
3012echo "include confinc" > confmf
3013# Ignore all kinds of additional output from 'make'.
3014case `$am_make -s -f confmf 2> /dev/null` in #(
3015*the\ am__doit\ target*)
3016  am__include=include
3017  am__quote=
3018  _am_result=GNU
3019  ;;
3020esac
3021# Now try BSD make style include.
3022if test "$am__include" = "#"; then
3023   echo '.include "confinc"' > confmf
3024   case `$am_make -s -f confmf 2> /dev/null` in #(
3025   *the\ am__doit\ target*)
3026     am__include=.include
3027     am__quote="\""
3028     _am_result=BSD
3029     ;;
3030   esac
3031fi
3032
3033
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3035$as_echo "$_am_result" >&6; }
3036rm -f confinc confmf
3037
3038# Check whether --enable-dependency-tracking was given.
3039if test "${enable_dependency_tracking+set}" = set; then :
3040  enableval=$enable_dependency_tracking;
3041fi
3042
3043if test "x$enable_dependency_tracking" != xno; then
3044  am_depcomp="$ac_aux_dir/depcomp"
3045  AMDEPBACKSLASH='\'
3046  am__nodep='_no'
3047fi
3048 if test "x$enable_dependency_tracking" != xno; then
3049  AMDEP_TRUE=
3050  AMDEP_FALSE='#'
3051else
3052  AMDEP_TRUE='#'
3053  AMDEP_FALSE=
3054fi
3055
3056
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062if test -n "$ac_tool_prefix"; then
3063  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}gcc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if ${ac_cv_prog_CC+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085  done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090CC=$ac_cv_prog_CC
3091if test -n "$CC"; then
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093$as_echo "$CC" >&6; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100fi
3101if test -z "$ac_cv_prog_CC"; then
3102  ac_ct_CC=$CC
3103  # Extract the first word of "gcc", so it can be a program name with args.
3104set dummy gcc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_ac_ct_CC+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$ac_ct_CC"; then
3111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_ac_ct_CC="gcc"
3121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131if test -n "$ac_ct_CC"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133$as_echo "$ac_ct_CC" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139  if test "x$ac_ct_CC" = x; then
3140    CC=""
3141  else
3142    case $cross_compiling:$ac_tool_warned in
3143yes:)
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146ac_tool_warned=yes ;;
3147esac
3148    CC=$ac_ct_CC
3149  fi
3150else
3151  CC="$ac_cv_prog_CC"
3152fi
3153
3154if test -z "$CC"; then
3155          if test -n "$ac_tool_prefix"; then
3156    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3157set dummy ${ac_tool_prefix}cc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if ${ac_cv_prog_CC+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$CC"; then
3164  ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_CC="${ac_tool_prefix}cc"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183CC=$ac_cv_prog_CC
3184if test -n "$CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186$as_echo "$CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193  fi
3194fi
3195if test -z "$CC"; then
3196  # Extract the first word of "cc", so it can be a program name with args.
3197set dummy cc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if ${ac_cv_prog_CC+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$CC"; then
3204  ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206  ac_prog_rejected=no
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3215       ac_prog_rejected=yes
3216       continue
3217     fi
3218    ac_cv_prog_CC="cc"
3219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220    break 2
3221  fi
3222done
3223  done
3224IFS=$as_save_IFS
3225
3226if test $ac_prog_rejected = yes; then
3227  # We found a bogon in the path, so make sure we never use it.
3228  set dummy $ac_cv_prog_CC
3229  shift
3230  if test $# != 0; then
3231    # We chose a different compiler from the bogus one.
3232    # However, it has the same basename, so the bogon will be chosen
3233    # first if we set CC to just the basename; use the full file name.
3234    shift
3235    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3236  fi
3237fi
3238fi
3239fi
3240CC=$ac_cv_prog_CC
3241if test -n "$CC"; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243$as_echo "$CC" >&6; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249
3250fi
3251if test -z "$CC"; then
3252  if test -n "$ac_tool_prefix"; then
3253  for ac_prog in cl.exe
3254  do
3255    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if ${ac_cv_prog_CC+:} false; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  if test -n "$CC"; then
3263  ac_cv_prog_CC="$CC" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270    for ac_exec_ext in '' $ac_executable_extensions; do
3271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277  done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282CC=$ac_cv_prog_CC
3283if test -n "$CC"; then
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285$as_echo "$CC" >&6; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292    test -n "$CC" && break
3293  done
3294fi
3295if test -z "$CC"; then
3296  ac_ct_CC=$CC
3297  for ac_prog in cl.exe
3298do
3299  # Extract the first word of "$ac_prog", so it can be a program name with args.
3300set dummy $ac_prog; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if test -n "$ac_ct_CC"; then
3307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316    ac_cv_prog_ac_ct_CC="$ac_prog"
3317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318    break 2
3319  fi
3320done
3321  done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327if test -n "$ac_ct_CC"; then
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329$as_echo "$ac_ct_CC" >&6; }
3330else
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336  test -n "$ac_ct_CC" && break
3337done
3338
3339  if test "x$ac_ct_CC" = x; then
3340    CC=""
3341  else
3342    case $cross_compiling:$ac_tool_warned in
3343yes:)
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346ac_tool_warned=yes ;;
3347esac
3348    CC=$ac_ct_CC
3349  fi
3350fi
3351
3352fi
3353
3354
3355test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357as_fn_error $? "no acceptable C compiler found in \$PATH
3358See \`config.log' for more details" "$LINENO" 5; }
3359
3360# Provide some information about the compiler.
3361$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3362set X $ac_compile
3363ac_compiler=$2
3364for ac_option in --version -v -V -qversion; do
3365  { { ac_try="$ac_compiler $ac_option >&5"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3373  ac_status=$?
3374  if test -s conftest.err; then
3375    sed '10a\
3376... rest of stderr output deleted ...
3377         10q' conftest.err >conftest.er1
3378    cat conftest.er1 >&5
3379  fi
3380  rm -f conftest.er1 conftest.err
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }
3383done
3384
3385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386/* end confdefs.h.  */
3387
3388int
3389main ()
3390{
3391
3392  ;
3393  return 0;
3394}
3395_ACEOF
3396ac_clean_files_save=$ac_clean_files
3397ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398# Try to create an executable without -o first, disregard a.out.
3399# It will help us diagnose broken compilers, and finding out an intuition
3400# of exeext.
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402$as_echo_n "checking whether the C compiler works... " >&6; }
3403ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404
3405# The possible output files:
3406ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407
3408ac_rmfiles=
3409for ac_file in $ac_files
3410do
3411  case $ac_file in
3412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3414  esac
3415done
3416rm -f $ac_rmfiles
3417
3418if { { ac_try="$ac_link_default"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_link_default") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }; then :
3429  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3432# so that the user can short-circuit this test for compilers unknown to
3433# Autoconf.
3434for ac_file in $ac_files ''
3435do
3436  test -f "$ac_file" || continue
3437  case $ac_file in
3438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439	;;
3440    [ab].out )
3441	# We found the default executable, but exeext='' is most
3442	# certainly right.
3443	break;;
3444    *.* )
3445	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3446	then :; else
3447	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448	fi
3449	# We set ac_cv_exeext here because the later test for it is not
3450	# safe: cross compilers may not add the suffix if given an `-o'
3451	# argument, so we may need to know it at that point already.
3452	# Even if this section looks crufty: it has the advantage of
3453	# actually working.
3454	break;;
3455    * )
3456	break;;
3457  esac
3458done
3459test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461else
3462  ac_file=''
3463fi
3464if test -z "$ac_file"; then :
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467$as_echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error 77 "C compiler cannot create executables
3473See \`config.log' for more details" "$LINENO" 5; }
3474else
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476$as_echo "yes" >&6; }
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3479$as_echo_n "checking for C compiler default output file name... " >&6; }
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3481$as_echo "$ac_file" >&6; }
3482ac_exeext=$ac_cv_exeext
3483
3484rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485ac_clean_files=$ac_clean_files_save
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3487$as_echo_n "checking for suffix of executables... " >&6; }
3488if { { ac_try="$ac_link"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494$as_echo "$ac_try_echo"; } >&5
3495  (eval "$ac_link") 2>&5
3496  ac_status=$?
3497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498  test $ac_status = 0; }; then :
3499  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3500# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3501# work properly (i.e., refer to `conftest.exe'), while it won't with
3502# `rm'.
3503for ac_file in conftest.exe conftest conftest.*; do
3504  test -f "$ac_file" || continue
3505  case $ac_file in
3506    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3507    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508	  break;;
3509    * ) break;;
3510  esac
3511done
3512else
3513  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3516See \`config.log' for more details" "$LINENO" 5; }
3517fi
3518rm -f conftest conftest$ac_cv_exeext
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3520$as_echo "$ac_cv_exeext" >&6; }
3521
3522rm -f conftest.$ac_ext
3523EXEEXT=$ac_cv_exeext
3524ac_exeext=$EXEEXT
3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526/* end confdefs.h.  */
3527#include <stdio.h>
3528int
3529main ()
3530{
3531FILE *f = fopen ("conftest.out", "w");
3532 return ferror (f) || fclose (f) != 0;
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538ac_clean_files="$ac_clean_files conftest.out"
3539# Check that the compiler produces executables we can run.  If not, either
3540# the compiler is broken, or we cross compile.
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3542$as_echo_n "checking whether we are cross compiling... " >&6; }
3543if test "$cross_compiling" != yes; then
3544  { { ac_try="$ac_link"
3545case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550$as_echo "$ac_try_echo"; } >&5
3551  (eval "$ac_link") 2>&5
3552  ac_status=$?
3553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554  test $ac_status = 0; }
3555  if { ac_try='./conftest$ac_cv_exeext'
3556  { { case "(($ac_try" in
3557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558  *) ac_try_echo=$ac_try;;
3559esac
3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561$as_echo "$ac_try_echo"; } >&5
3562  (eval "$ac_try") 2>&5
3563  ac_status=$?
3564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565  test $ac_status = 0; }; }; then
3566    cross_compiling=no
3567  else
3568    if test "$cross_compiling" = maybe; then
3569	cross_compiling=yes
3570    else
3571	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573as_fn_error $? "cannot run C compiled programs.
3574If you meant to cross compile, use \`--host'.
3575See \`config.log' for more details" "$LINENO" 5; }
3576    fi
3577  fi
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3580$as_echo "$cross_compiling" >&6; }
3581
3582rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3583ac_clean_files=$ac_clean_files_save
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3585$as_echo_n "checking for suffix of object files... " >&6; }
3586if ${ac_cv_objext+:} false; then :
3587  $as_echo_n "(cached) " >&6
3588else
3589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.o conftest.obj
3601if { { ac_try="$ac_compile"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608  (eval "$ac_compile") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611  test $ac_status = 0; }; then :
3612  for ac_file in conftest.o conftest.obj conftest.*; do
3613  test -f "$ac_file" || continue;
3614  case $ac_file in
3615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617       break;;
3618  esac
3619done
3620else
3621  $as_echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626as_fn_error $? "cannot compute suffix of object files: cannot compile
3627See \`config.log' for more details" "$LINENO" 5; }
3628fi
3629rm -f conftest.$ac_cv_objext conftest.$ac_ext
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3632$as_echo "$ac_cv_objext" >&6; }
3633OBJEXT=$ac_cv_objext
3634ac_objext=$OBJEXT
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3636$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3637if ${ac_cv_c_compiler_gnu+:} false; then :
3638  $as_echo_n "(cached) " >&6
3639else
3640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643int
3644main ()
3645{
3646#ifndef __GNUC__
3647       choke me
3648#endif
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654if ac_fn_c_try_compile "$LINENO"; then :
3655  ac_compiler_gnu=yes
3656else
3657  ac_compiler_gnu=no
3658fi
3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3664$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3665if test $ac_compiler_gnu = yes; then
3666  GCC=yes
3667else
3668  GCC=
3669fi
3670ac_test_CFLAGS=${CFLAGS+set}
3671ac_save_CFLAGS=$CFLAGS
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3673$as_echo_n "checking whether $CC accepts -g... " >&6; }
3674if ${ac_cv_prog_cc_g+:} false; then :
3675  $as_echo_n "(cached) " >&6
3676else
3677  ac_save_c_werror_flag=$ac_c_werror_flag
3678   ac_c_werror_flag=yes
3679   ac_cv_prog_cc_g=no
3680   CFLAGS="-g"
3681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683
3684int
3685main ()
3686{
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693  ac_cv_prog_cc_g=yes
3694else
3695  CFLAGS=""
3696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698
3699int
3700main ()
3701{
3702
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_compile "$LINENO"; then :
3708
3709else
3710  ac_c_werror_flag=$ac_save_c_werror_flag
3711	 CFLAGS="-g"
3712	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723if ac_fn_c_try_compile "$LINENO"; then :
3724  ac_cv_prog_cc_g=yes
3725fi
3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727fi
3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729fi
3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731   ac_c_werror_flag=$ac_save_c_werror_flag
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3734$as_echo "$ac_cv_prog_cc_g" >&6; }
3735if test "$ac_test_CFLAGS" = set; then
3736  CFLAGS=$ac_save_CFLAGS
3737elif test $ac_cv_prog_cc_g = yes; then
3738  if test "$GCC" = yes; then
3739    CFLAGS="-g -O2"
3740  else
3741    CFLAGS="-g"
3742  fi
3743else
3744  if test "$GCC" = yes; then
3745    CFLAGS="-O2"
3746  else
3747    CFLAGS=
3748  fi
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3751$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3752if ${ac_cv_prog_cc_c89+:} false; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  ac_cv_prog_cc_c89=no
3756ac_save_CC=$CC
3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h.  */
3759#include <stdarg.h>
3760#include <stdio.h>
3761struct stat;
3762/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3763struct buf { int x; };
3764FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765static char *e (p, i)
3766     char **p;
3767     int i;
3768{
3769  return p[i];
3770}
3771static char *f (char * (*g) (char **, int), char **p, ...)
3772{
3773  char *s;
3774  va_list v;
3775  va_start (v,p);
3776  s = g (p, va_arg (v,int));
3777  va_end (v);
3778  return s;
3779}
3780
3781/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3782   function prototypes and stuff, but not '\xHH' hex character constants.
3783   These don't provoke an error unfortunately, instead are silently treated
3784   as 'x'.  The following induces an error, until -std is added to get
3785   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3786   array size at least.  It's necessary to write '\x00'==0 to get something
3787   that's true only with -std.  */
3788int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789
3790/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791   inside strings and character constants.  */
3792#define FOO(x) 'x'
3793int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794
3795int test (int i, double x);
3796struct s1 {int (*f) (int a);};
3797struct s2 {int (*f) (double a);};
3798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799int argc;
3800char **argv;
3801int
3802main ()
3803{
3804return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811do
3812  CC="$ac_save_CC $ac_arg"
3813  if ac_fn_c_try_compile "$LINENO"; then :
3814  ac_cv_prog_cc_c89=$ac_arg
3815fi
3816rm -f core conftest.err conftest.$ac_objext
3817  test "x$ac_cv_prog_cc_c89" != "xno" && break
3818done
3819rm -f conftest.$ac_ext
3820CC=$ac_save_CC
3821
3822fi
3823# AC_CACHE_VAL
3824case "x$ac_cv_prog_cc_c89" in
3825  x)
3826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3827$as_echo "none needed" >&6; } ;;
3828  xno)
3829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3830$as_echo "unsupported" >&6; } ;;
3831  *)
3832    CC="$CC $ac_cv_prog_cc_c89"
3833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3834$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3835esac
3836if test "x$ac_cv_prog_cc_c89" != xno; then :
3837
3838fi
3839
3840ac_ext=c
3841ac_cpp='$CPP $CPPFLAGS'
3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3852$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3853if ${am_cv_prog_cc_c_o+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867  # Make sure it works both with $CC and with simple cc.
3868  # Following AC_PROG_CC_C_O, we do the test twice because some
3869  # compilers refuse to overwrite an existing .o file with -o,
3870  # though they will create one.
3871  am_cv_prog_cc_c_o=yes
3872  for am_i in 1 2; do
3873    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3874   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } \
3878         && test -f conftest2.$ac_objext; then
3879      : OK
3880    else
3881      am_cv_prog_cc_c_o=no
3882      break
3883    fi
3884  done
3885  rm -f core conftest*
3886  unset am_i
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3889$as_echo "$am_cv_prog_cc_c_o" >&6; }
3890if test "$am_cv_prog_cc_c_o" != yes; then
3891   # Losing compiler, so override with the script.
3892   # FIXME: It is wrong to rewrite CC.
3893   # But if we don't then we get into trouble of one sort or another.
3894   # A longer-term fix would be to have automake use am__CC in this case,
3895   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3896   CC="$am_aux_dir/compile $CC"
3897fi
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904
3905depcc="$CC"   am_compiler_list=
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3908$as_echo_n "checking dependency style of $depcc... " >&6; }
3909if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3913  # We make a subdir and do the tests there.  Otherwise we can end up
3914  # making bogus files that we don't know about and never remove.  For
3915  # instance it was reported that on HP-UX the gcc test will end up
3916  # making a dummy file named 'D' -- because '-MD' means "put the output
3917  # in D".
3918  rm -rf conftest.dir
3919  mkdir conftest.dir
3920  # Copy depcomp to subdir because otherwise we won't find it if we're
3921  # using a relative directory.
3922  cp "$am_depcomp" conftest.dir
3923  cd conftest.dir
3924  # We will build objects and dependencies in a subdirectory because
3925  # it helps to detect inapplicable dependency modes.  For instance
3926  # both Tru64's cc and ICC support -MD to output dependencies as a
3927  # side effect of compilation, but ICC will put the dependencies in
3928  # the current directory while Tru64 will put them in the object
3929  # directory.
3930  mkdir sub
3931
3932  am_cv_CC_dependencies_compiler_type=none
3933  if test "$am_compiler_list" = ""; then
3934     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3935  fi
3936  am__universal=false
3937  case " $depcc " in #(
3938     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3939     esac
3940
3941  for depmode in $am_compiler_list; do
3942    # Setup a source with many dependencies, because some compilers
3943    # like to wrap large dependency lists on column 80 (with \), and
3944    # we should not choose a depcomp mode which is confused by this.
3945    #
3946    # We need to recreate these files for each test, as the compiler may
3947    # overwrite some of them when testing with obscure command lines.
3948    # This happens at least with the AIX C compiler.
3949    : > sub/conftest.c
3950    for i in 1 2 3 4 5 6; do
3951      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3952      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3953      # Solaris 10 /bin/sh.
3954      echo '/* dummy */' > sub/conftst$i.h
3955    done
3956    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3957
3958    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3959    # mode.  It turns out that the SunPro C++ compiler does not properly
3960    # handle '-M -o', and we need to detect this.  Also, some Intel
3961    # versions had trouble with output in subdirs.
3962    am__obj=sub/conftest.${OBJEXT-o}
3963    am__minus_obj="-o $am__obj"
3964    case $depmode in
3965    gcc)
3966      # This depmode causes a compiler race in universal mode.
3967      test "$am__universal" = false || continue
3968      ;;
3969    nosideeffect)
3970      # After this tag, mechanisms are not by side-effect, so they'll
3971      # only be used when explicitly requested.
3972      if test "x$enable_dependency_tracking" = xyes; then
3973	continue
3974      else
3975	break
3976      fi
3977      ;;
3978    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3979      # This compiler won't grok '-c -o', but also, the minuso test has
3980      # not run yet.  These depmodes are late enough in the game, and
3981      # so weak that their functioning should not be impacted.
3982      am__obj=conftest.${OBJEXT-o}
3983      am__minus_obj=
3984      ;;
3985    none) break ;;
3986    esac
3987    if depmode=$depmode \
3988       source=sub/conftest.c object=$am__obj \
3989       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3991         >/dev/null 2>conftest.err &&
3992       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3993       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3994       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3995       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3996      # icc doesn't choke on unknown options, it will just issue warnings
3997      # or remarks (even with -Werror).  So we grep stderr for any message
3998      # that says an option was ignored or not supported.
3999      # When given -MP, icc 7.0 and 7.1 complain thusly:
4000      #   icc: Command line warning: ignoring option '-M'; no argument required
4001      # The diagnosis changed in icc 8.0:
4002      #   icc: Command line remark: option '-MP' not supported
4003      if (grep 'ignoring option' conftest.err ||
4004          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4005        am_cv_CC_dependencies_compiler_type=$depmode
4006        break
4007      fi
4008    fi
4009  done
4010
4011  cd ..
4012  rm -rf conftest.dir
4013else
4014  am_cv_CC_dependencies_compiler_type=none
4015fi
4016
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4019$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4020CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4021
4022 if
4023  test "x$enable_dependency_tracking" != xno \
4024  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4025  am__fastdepCC_TRUE=
4026  am__fastdepCC_FALSE='#'
4027else
4028  am__fastdepCC_TRUE='#'
4029  am__fastdepCC_FALSE=
4030fi
4031
4032
4033
4034ac_ext=c
4035ac_cpp='$CPP $CPPFLAGS'
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4040$as_echo_n "checking how to run the C preprocessor... " >&6; }
4041# On Suns, sometimes $CPP names a directory.
4042if test -n "$CPP" && test -d "$CPP"; then
4043  CPP=
4044fi
4045if test -z "$CPP"; then
4046  if ${ac_cv_prog_CPP+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049      # Double quotes because CPP needs to be expanded
4050    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051    do
4052      ac_preproc_ok=false
4053for ac_c_preproc_warn_flag in '' yes
4054do
4055  # Use a header file that comes with gcc, so configuring glibc
4056  # with a fresh cross-compiler works.
4057  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058  # <limits.h> exists even on freestanding compilers.
4059  # On the NeXT, cc -E runs the code through the compiler's parser,
4060  # not just through cpp. "Syntax error" is here to catch this case.
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063#ifdef __STDC__
4064# include <limits.h>
4065#else
4066# include <assert.h>
4067#endif
4068		     Syntax error
4069_ACEOF
4070if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072else
4073  # Broken: fails on valid input.
4074continue
4075fi
4076rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078  # OK, works on sane cases.  Now check whether nonexistent headers
4079  # can be detected and how.
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if ac_fn_c_try_cpp "$LINENO"; then :
4085  # Broken: success on invalid input.
4086continue
4087else
4088  # Passes both tests.
4089ac_preproc_ok=:
4090break
4091fi
4092rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094done
4095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096rm -f conftest.i conftest.err conftest.$ac_ext
4097if $ac_preproc_ok; then :
4098  break
4099fi
4100
4101    done
4102    ac_cv_prog_CPP=$CPP
4103
4104fi
4105  CPP=$ac_cv_prog_CPP
4106else
4107  ac_cv_prog_CPP=$CPP
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4110$as_echo "$CPP" >&6; }
4111ac_preproc_ok=false
4112for ac_c_preproc_warn_flag in '' yes
4113do
4114  # Use a header file that comes with gcc, so configuring glibc
4115  # with a fresh cross-compiler works.
4116  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117  # <limits.h> exists even on freestanding compilers.
4118  # On the NeXT, cc -E runs the code through the compiler's parser,
4119  # not just through cpp. "Syntax error" is here to catch this case.
4120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#ifdef __STDC__
4123# include <limits.h>
4124#else
4125# include <assert.h>
4126#endif
4127		     Syntax error
4128_ACEOF
4129if ac_fn_c_try_cpp "$LINENO"; then :
4130
4131else
4132  # Broken: fails on valid input.
4133continue
4134fi
4135rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137  # OK, works on sane cases.  Now check whether nonexistent headers
4138  # can be detected and how.
4139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141#include <ac_nonexistent.h>
4142_ACEOF
4143if ac_fn_c_try_cpp "$LINENO"; then :
4144  # Broken: success on invalid input.
4145continue
4146else
4147  # Passes both tests.
4148ac_preproc_ok=:
4149break
4150fi
4151rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153done
4154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155rm -f conftest.i conftest.err conftest.$ac_ext
4156if $ac_preproc_ok; then :
4157
4158else
4159  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4162See \`config.log' for more details" "$LINENO" 5; }
4163fi
4164
4165ac_ext=c
4166ac_cpp='$CPP $CPPFLAGS'
4167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170
4171
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4173$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4174if ${ac_cv_path_GREP+:} false; then :
4175  $as_echo_n "(cached) " >&6
4176else
4177  if test -z "$GREP"; then
4178  ac_path_GREP_found=false
4179  # Loop through the user's path and test for each of PROGNAME-LIST
4180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4182do
4183  IFS=$as_save_IFS
4184  test -z "$as_dir" && as_dir=.
4185    for ac_prog in grep ggrep; do
4186    for ac_exec_ext in '' $ac_executable_extensions; do
4187      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4188      as_fn_executable_p "$ac_path_GREP" || continue
4189# Check for GNU ac_path_GREP and select it if it is found.
4190  # Check for GNU $ac_path_GREP
4191case `"$ac_path_GREP" --version 2>&1` in
4192*GNU*)
4193  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4194*)
4195  ac_count=0
4196  $as_echo_n 0123456789 >"conftest.in"
4197  while :
4198  do
4199    cat "conftest.in" "conftest.in" >"conftest.tmp"
4200    mv "conftest.tmp" "conftest.in"
4201    cp "conftest.in" "conftest.nl"
4202    $as_echo 'GREP' >> "conftest.nl"
4203    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4205    as_fn_arith $ac_count + 1 && ac_count=$as_val
4206    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4207      # Best one so far, save it but keep looking for a better one
4208      ac_cv_path_GREP="$ac_path_GREP"
4209      ac_path_GREP_max=$ac_count
4210    fi
4211    # 10*(2^10) chars as input seems more than enough
4212    test $ac_count -gt 10 && break
4213  done
4214  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215esac
4216
4217      $ac_path_GREP_found && break 3
4218    done
4219  done
4220  done
4221IFS=$as_save_IFS
4222  if test -z "$ac_cv_path_GREP"; then
4223    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4224  fi
4225else
4226  ac_cv_path_GREP=$GREP
4227fi
4228
4229fi
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4231$as_echo "$ac_cv_path_GREP" >&6; }
4232 GREP="$ac_cv_path_GREP"
4233
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4236$as_echo_n "checking for egrep... " >&6; }
4237if ${ac_cv_path_EGREP+:} false; then :
4238  $as_echo_n "(cached) " >&6
4239else
4240  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4241   then ac_cv_path_EGREP="$GREP -E"
4242   else
4243     if test -z "$EGREP"; then
4244  ac_path_EGREP_found=false
4245  # Loop through the user's path and test for each of PROGNAME-LIST
4246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248do
4249  IFS=$as_save_IFS
4250  test -z "$as_dir" && as_dir=.
4251    for ac_prog in egrep; do
4252    for ac_exec_ext in '' $ac_executable_extensions; do
4253      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4254      as_fn_executable_p "$ac_path_EGREP" || continue
4255# Check for GNU ac_path_EGREP and select it if it is found.
4256  # Check for GNU $ac_path_EGREP
4257case `"$ac_path_EGREP" --version 2>&1` in
4258*GNU*)
4259  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4260*)
4261  ac_count=0
4262  $as_echo_n 0123456789 >"conftest.in"
4263  while :
4264  do
4265    cat "conftest.in" "conftest.in" >"conftest.tmp"
4266    mv "conftest.tmp" "conftest.in"
4267    cp "conftest.in" "conftest.nl"
4268    $as_echo 'EGREP' >> "conftest.nl"
4269    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271    as_fn_arith $ac_count + 1 && ac_count=$as_val
4272    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4273      # Best one so far, save it but keep looking for a better one
4274      ac_cv_path_EGREP="$ac_path_EGREP"
4275      ac_path_EGREP_max=$ac_count
4276    fi
4277    # 10*(2^10) chars as input seems more than enough
4278    test $ac_count -gt 10 && break
4279  done
4280  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281esac
4282
4283      $ac_path_EGREP_found && break 3
4284    done
4285  done
4286  done
4287IFS=$as_save_IFS
4288  if test -z "$ac_cv_path_EGREP"; then
4289    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290  fi
4291else
4292  ac_cv_path_EGREP=$EGREP
4293fi
4294
4295   fi
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4298$as_echo "$ac_cv_path_EGREP" >&6; }
4299 EGREP="$ac_cv_path_EGREP"
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4303$as_echo_n "checking for ANSI C header files... " >&6; }
4304if ${ac_cv_header_stdc+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <stdlib.h>
4310#include <stdarg.h>
4311#include <string.h>
4312#include <float.h>
4313
4314int
4315main ()
4316{
4317
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322if ac_fn_c_try_compile "$LINENO"; then :
4323  ac_cv_header_stdc=yes
4324else
4325  ac_cv_header_stdc=no
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328
4329if test $ac_cv_header_stdc = yes; then
4330  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <string.h>
4334
4335_ACEOF
4336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337  $EGREP "memchr" >/dev/null 2>&1; then :
4338
4339else
4340  ac_cv_header_stdc=no
4341fi
4342rm -f conftest*
4343
4344fi
4345
4346if test $ac_cv_header_stdc = yes; then
4347  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349/* end confdefs.h.  */
4350#include <stdlib.h>
4351
4352_ACEOF
4353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354  $EGREP "free" >/dev/null 2>&1; then :
4355
4356else
4357  ac_cv_header_stdc=no
4358fi
4359rm -f conftest*
4360
4361fi
4362
4363if test $ac_cv_header_stdc = yes; then
4364  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4365  if test "$cross_compiling" = yes; then :
4366  :
4367else
4368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h.  */
4370#include <ctype.h>
4371#include <stdlib.h>
4372#if ((' ' & 0x0FF) == 0x020)
4373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375#else
4376# define ISLOWER(c) \
4377		   (('a' <= (c) && (c) <= 'i') \
4378		     || ('j' <= (c) && (c) <= 'r') \
4379		     || ('s' <= (c) && (c) <= 'z'))
4380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381#endif
4382
4383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384int
4385main ()
4386{
4387  int i;
4388  for (i = 0; i < 256; i++)
4389    if (XOR (islower (i), ISLOWER (i))
4390	|| toupper (i) != TOUPPER (i))
4391      return 2;
4392  return 0;
4393}
4394_ACEOF
4395if ac_fn_c_try_run "$LINENO"; then :
4396
4397else
4398  ac_cv_header_stdc=no
4399fi
4400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4401  conftest.$ac_objext conftest.beam conftest.$ac_ext
4402fi
4403
4404fi
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4407$as_echo "$ac_cv_header_stdc" >&6; }
4408if test $ac_cv_header_stdc = yes; then
4409
4410$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4411
4412fi
4413
4414# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4415for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4416		  inttypes.h stdint.h unistd.h
4417do :
4418  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4419ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4420"
4421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4422  cat >>confdefs.h <<_ACEOF
4423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424_ACEOF
4425
4426fi
4427
4428done
4429
4430
4431
4432  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4433if test "x$ac_cv_header_minix_config_h" = xyes; then :
4434  MINIX=yes
4435else
4436  MINIX=
4437fi
4438
4439
4440  if test "$MINIX" = yes; then
4441
4442$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4443
4444
4445$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4446
4447
4448$as_echo "#define _MINIX 1" >>confdefs.h
4449
4450  fi
4451
4452
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4454$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4455if ${ac_cv_safe_to_define___extensions__+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460
4461#         define __EXTENSIONS__ 1
4462          $ac_includes_default
4463int
4464main ()
4465{
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472  ac_cv_safe_to_define___extensions__=yes
4473else
4474  ac_cv_safe_to_define___extensions__=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4479$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4480  test $ac_cv_safe_to_define___extensions__ = yes &&
4481    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4482
4483  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4484
4485  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4486
4487  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4488
4489  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4490
4491
4492
4493# Initialize libtool
4494case `pwd` in
4495  *\ * | *\	*)
4496    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4497$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4498esac
4499
4500
4501
4502macro_version='2.4.6'
4503macro_revision='2.4.6'
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517ltmain=$ac_aux_dir/ltmain.sh
4518
4519# Make sure we can run config.sub.
4520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4521  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4524$as_echo_n "checking build system type... " >&6; }
4525if ${ac_cv_build+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  ac_build_alias=$build_alias
4529test "x$ac_build_alias" = x &&
4530  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4531test "x$ac_build_alias" = x &&
4532  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4533ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4534  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4535
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4538$as_echo "$ac_cv_build" >&6; }
4539case $ac_cv_build in
4540*-*-*) ;;
4541*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4542esac
4543build=$ac_cv_build
4544ac_save_IFS=$IFS; IFS='-'
4545set x $ac_cv_build
4546shift
4547build_cpu=$1
4548build_vendor=$2
4549shift; shift
4550# Remember, the first character of IFS is used to create $*,
4551# except with old shells:
4552build_os=$*
4553IFS=$ac_save_IFS
4554case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4555
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4558$as_echo_n "checking host system type... " >&6; }
4559if ${ac_cv_host+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  if test "x$host_alias" = x; then
4563  ac_cv_host=$ac_cv_build
4564else
4565  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4566    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4571$as_echo "$ac_cv_host" >&6; }
4572case $ac_cv_host in
4573*-*-*) ;;
4574*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4575esac
4576host=$ac_cv_host
4577ac_save_IFS=$IFS; IFS='-'
4578set x $ac_cv_host
4579shift
4580host_cpu=$1
4581host_vendor=$2
4582shift; shift
4583# Remember, the first character of IFS is used to create $*,
4584# except with old shells:
4585host_os=$*
4586IFS=$ac_save_IFS
4587case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4588
4589
4590# Backslashify metacharacters that are still active within
4591# double-quoted strings.
4592sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4593
4594# Same as above, but do not quote variable references.
4595double_quote_subst='s/\(["`\\]\)/\\\1/g'
4596
4597# Sed substitution to delay expansion of an escaped shell variable in a
4598# double_quote_subst'ed string.
4599delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4600
4601# Sed substitution to delay expansion of an escaped single quote.
4602delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4603
4604# Sed substitution to avoid accidental globbing in evaled expressions
4605no_glob_subst='s/\*/\\\*/g'
4606
4607ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4608ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4609ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4612$as_echo_n "checking how to print strings... " >&6; }
4613# Test print first, because it will be a builtin if present.
4614if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4615   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4616  ECHO='print -r --'
4617elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4618  ECHO='printf %s\n'
4619else
4620  # Use this function as a fallback that always works.
4621  func_fallback_echo ()
4622  {
4623    eval 'cat <<_LTECHO_EOF
4624$1
4625_LTECHO_EOF'
4626  }
4627  ECHO='func_fallback_echo'
4628fi
4629
4630# func_echo_all arg...
4631# Invoke $ECHO with all args, space-separated.
4632func_echo_all ()
4633{
4634    $ECHO ""
4635}
4636
4637case $ECHO in
4638  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4639$as_echo "printf" >&6; } ;;
4640  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4641$as_echo "print -r" >&6; } ;;
4642  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4643$as_echo "cat" >&6; } ;;
4644esac
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4660$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4661if ${ac_cv_path_SED+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4665     for ac_i in 1 2 3 4 5 6 7; do
4666       ac_script="$ac_script$as_nl$ac_script"
4667     done
4668     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4669     { ac_script=; unset ac_script;}
4670     if test -z "$SED"; then
4671  ac_path_SED_found=false
4672  # Loop through the user's path and test for each of PROGNAME-LIST
4673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678    for ac_prog in sed gsed; do
4679    for ac_exec_ext in '' $ac_executable_extensions; do
4680      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4681      as_fn_executable_p "$ac_path_SED" || continue
4682# Check for GNU ac_path_SED and select it if it is found.
4683  # Check for GNU $ac_path_SED
4684case `"$ac_path_SED" --version 2>&1` in
4685*GNU*)
4686  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4687*)
4688  ac_count=0
4689  $as_echo_n 0123456789 >"conftest.in"
4690  while :
4691  do
4692    cat "conftest.in" "conftest.in" >"conftest.tmp"
4693    mv "conftest.tmp" "conftest.in"
4694    cp "conftest.in" "conftest.nl"
4695    $as_echo '' >> "conftest.nl"
4696    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698    as_fn_arith $ac_count + 1 && ac_count=$as_val
4699    if test $ac_count -gt ${ac_path_SED_max-0}; then
4700      # Best one so far, save it but keep looking for a better one
4701      ac_cv_path_SED="$ac_path_SED"
4702      ac_path_SED_max=$ac_count
4703    fi
4704    # 10*(2^10) chars as input seems more than enough
4705    test $ac_count -gt 10 && break
4706  done
4707  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708esac
4709
4710      $ac_path_SED_found && break 3
4711    done
4712  done
4713  done
4714IFS=$as_save_IFS
4715  if test -z "$ac_cv_path_SED"; then
4716    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4717  fi
4718else
4719  ac_cv_path_SED=$SED
4720fi
4721
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4724$as_echo "$ac_cv_path_SED" >&6; }
4725 SED="$ac_cv_path_SED"
4726  rm -f conftest.sed
4727
4728test -z "$SED" && SED=sed
4729Xsed="$SED -e 1s/^X//"
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4742$as_echo_n "checking for fgrep... " >&6; }
4743if ${ac_cv_path_FGREP+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4747   then ac_cv_path_FGREP="$GREP -F"
4748   else
4749     if test -z "$FGREP"; then
4750  ac_path_FGREP_found=false
4751  # Loop through the user's path and test for each of PROGNAME-LIST
4752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_prog in fgrep; do
4758    for ac_exec_ext in '' $ac_executable_extensions; do
4759      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4760      as_fn_executable_p "$ac_path_FGREP" || continue
4761# Check for GNU ac_path_FGREP and select it if it is found.
4762  # Check for GNU $ac_path_FGREP
4763case `"$ac_path_FGREP" --version 2>&1` in
4764*GNU*)
4765  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4766*)
4767  ac_count=0
4768  $as_echo_n 0123456789 >"conftest.in"
4769  while :
4770  do
4771    cat "conftest.in" "conftest.in" >"conftest.tmp"
4772    mv "conftest.tmp" "conftest.in"
4773    cp "conftest.in" "conftest.nl"
4774    $as_echo 'FGREP' >> "conftest.nl"
4775    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777    as_fn_arith $ac_count + 1 && ac_count=$as_val
4778    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4779      # Best one so far, save it but keep looking for a better one
4780      ac_cv_path_FGREP="$ac_path_FGREP"
4781      ac_path_FGREP_max=$ac_count
4782    fi
4783    # 10*(2^10) chars as input seems more than enough
4784    test $ac_count -gt 10 && break
4785  done
4786  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787esac
4788
4789      $ac_path_FGREP_found && break 3
4790    done
4791  done
4792  done
4793IFS=$as_save_IFS
4794  if test -z "$ac_cv_path_FGREP"; then
4795    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796  fi
4797else
4798  ac_cv_path_FGREP=$FGREP
4799fi
4800
4801   fi
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4804$as_echo "$ac_cv_path_FGREP" >&6; }
4805 FGREP="$ac_cv_path_FGREP"
4806
4807
4808test -z "$GREP" && GREP=grep
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828# Check whether --with-gnu-ld was given.
4829if test "${with_gnu_ld+set}" = set; then :
4830  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4831else
4832  with_gnu_ld=no
4833fi
4834
4835ac_prog=ld
4836if test yes = "$GCC"; then
4837  # Check if gcc -print-prog-name=ld gives a path.
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4839$as_echo_n "checking for ld used by $CC... " >&6; }
4840  case $host in
4841  *-*-mingw*)
4842    # gcc leaves a trailing carriage return, which upsets mingw
4843    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4844  *)
4845    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4846  esac
4847  case $ac_prog in
4848    # Accept absolute paths.
4849    [\\/]* | ?:[\\/]*)
4850      re_direlt='/[^/][^/]*/\.\./'
4851      # Canonicalize the pathname of ld
4852      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4853      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4854	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4855      done
4856      test -z "$LD" && LD=$ac_prog
4857      ;;
4858  "")
4859    # If it fails, then pretend we aren't using GCC.
4860    ac_prog=ld
4861    ;;
4862  *)
4863    # If it is relative, then search for the first ld in PATH.
4864    with_gnu_ld=unknown
4865    ;;
4866  esac
4867elif test yes = "$with_gnu_ld"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4869$as_echo_n "checking for GNU ld... " >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4872$as_echo_n "checking for non-GNU ld... " >&6; }
4873fi
4874if ${lt_cv_path_LD+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if test -z "$LD"; then
4878  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4879  for ac_dir in $PATH; do
4880    IFS=$lt_save_ifs
4881    test -z "$ac_dir" && ac_dir=.
4882    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4883      lt_cv_path_LD=$ac_dir/$ac_prog
4884      # Check to see if the program is GNU ld.  I'd rather use --version,
4885      # but apparently some variants of GNU ld only accept -v.
4886      # Break only if it was the GNU/non-GNU ld that we prefer.
4887      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4888      *GNU* | *'with BFD'*)
4889	test no != "$with_gnu_ld" && break
4890	;;
4891      *)
4892	test yes != "$with_gnu_ld" && break
4893	;;
4894      esac
4895    fi
4896  done
4897  IFS=$lt_save_ifs
4898else
4899  lt_cv_path_LD=$LD # Let the user override the test with a path.
4900fi
4901fi
4902
4903LD=$lt_cv_path_LD
4904if test -n "$LD"; then
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4906$as_echo "$LD" >&6; }
4907else
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4914if ${lt_cv_prog_gnu_ld+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4918case `$LD -v 2>&1 </dev/null` in
4919*GNU* | *'with BFD'*)
4920  lt_cv_prog_gnu_ld=yes
4921  ;;
4922*)
4923  lt_cv_prog_gnu_ld=no
4924  ;;
4925esac
4926fi
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4928$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4929with_gnu_ld=$lt_cv_prog_gnu_ld
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4940$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4941if ${lt_cv_path_NM+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if test -n "$NM"; then
4945  # Let the user override the test.
4946  lt_cv_path_NM=$NM
4947else
4948  lt_nm_to_check=${ac_tool_prefix}nm
4949  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4950    lt_nm_to_check="$lt_nm_to_check nm"
4951  fi
4952  for lt_tmp_nm in $lt_nm_to_check; do
4953    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4954    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4955      IFS=$lt_save_ifs
4956      test -z "$ac_dir" && ac_dir=.
4957      tmp_nm=$ac_dir/$lt_tmp_nm
4958      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4959	# Check to see if the nm accepts a BSD-compat flag.
4960	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4961	#   nm: unknown option "B" ignored
4962	# Tru64's nm complains that /dev/null is an invalid object file
4963	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4964	case $build_os in
4965	mingw*) lt_bad_file=conftest.nm/nofile ;;
4966	*) lt_bad_file=/dev/null ;;
4967	esac
4968	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4969	*$lt_bad_file* | *'Invalid file or object type'*)
4970	  lt_cv_path_NM="$tmp_nm -B"
4971	  break 2
4972	  ;;
4973	*)
4974	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4975	  */dev/null*)
4976	    lt_cv_path_NM="$tmp_nm -p"
4977	    break 2
4978	    ;;
4979	  *)
4980	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4981	    continue # so that we can try to find one that supports BSD flags
4982	    ;;
4983	  esac
4984	  ;;
4985	esac
4986      fi
4987    done
4988    IFS=$lt_save_ifs
4989  done
4990  : ${lt_cv_path_NM=no}
4991fi
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4994$as_echo "$lt_cv_path_NM" >&6; }
4995if test no != "$lt_cv_path_NM"; then
4996  NM=$lt_cv_path_NM
4997else
4998  # Didn't find any BSD compatible name lister, look for dumpbin.
4999  if test -n "$DUMPBIN"; then :
5000    # Let the user override the test.
5001  else
5002    if test -n "$ac_tool_prefix"; then
5003  for ac_prog in dumpbin "link -dump"
5004  do
5005    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008$as_echo_n "checking for $ac_word... " >&6; }
5009if ${ac_cv_prog_DUMPBIN+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  if test -n "$DUMPBIN"; then
5013  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018  IFS=$as_save_IFS
5019  test -z "$as_dir" && as_dir=.
5020    for ac_exec_ext in '' $ac_executable_extensions; do
5021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024    break 2
5025  fi
5026done
5027  done
5028IFS=$as_save_IFS
5029
5030fi
5031fi
5032DUMPBIN=$ac_cv_prog_DUMPBIN
5033if test -n "$DUMPBIN"; then
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035$as_echo "$DUMPBIN" >&6; }
5036else
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038$as_echo "no" >&6; }
5039fi
5040
5041
5042    test -n "$DUMPBIN" && break
5043  done
5044fi
5045if test -z "$DUMPBIN"; then
5046  ac_ct_DUMPBIN=$DUMPBIN
5047  for ac_prog in dumpbin "link -dump"
5048do
5049  # Extract the first word of "$ac_prog", so it can be a program name with args.
5050set dummy $ac_prog; ac_word=$2
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052$as_echo_n "checking for $ac_word... " >&6; }
5053if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  if test -n "$ac_ct_DUMPBIN"; then
5057  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5058else
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062  IFS=$as_save_IFS
5063  test -z "$as_dir" && as_dir=.
5064    for ac_exec_ext in '' $ac_executable_extensions; do
5065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068    break 2
5069  fi
5070done
5071  done
5072IFS=$as_save_IFS
5073
5074fi
5075fi
5076ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077if test -n "$ac_ct_DUMPBIN"; then
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079$as_echo "$ac_ct_DUMPBIN" >&6; }
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
5083fi
5084
5085
5086  test -n "$ac_ct_DUMPBIN" && break
5087done
5088
5089  if test "x$ac_ct_DUMPBIN" = x; then
5090    DUMPBIN=":"
5091  else
5092    case $cross_compiling:$ac_tool_warned in
5093yes:)
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096ac_tool_warned=yes ;;
5097esac
5098    DUMPBIN=$ac_ct_DUMPBIN
5099  fi
5100fi
5101
5102    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5103    *COFF*)
5104      DUMPBIN="$DUMPBIN -symbols -headers"
5105      ;;
5106    *)
5107      DUMPBIN=:
5108      ;;
5109    esac
5110  fi
5111
5112  if test : != "$DUMPBIN"; then
5113    NM=$DUMPBIN
5114  fi
5115fi
5116test -z "$NM" && NM=nm
5117
5118
5119
5120
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5124$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5125if ${lt_cv_nm_interface+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  lt_cv_nm_interface="BSD nm"
5129  echo "int some_variable = 0;" > conftest.$ac_ext
5130  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5131  (eval "$ac_compile" 2>conftest.err)
5132  cat conftest.err >&5
5133  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5134  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5135  cat conftest.err >&5
5136  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5137  cat conftest.out >&5
5138  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5139    lt_cv_nm_interface="MS dumpbin"
5140  fi
5141  rm -f conftest*
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5144$as_echo "$lt_cv_nm_interface" >&6; }
5145
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5147$as_echo_n "checking whether ln -s works... " >&6; }
5148LN_S=$as_ln_s
5149if test "$LN_S" = "ln -s"; then
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151$as_echo "yes" >&6; }
5152else
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5154$as_echo "no, using $LN_S" >&6; }
5155fi
5156
5157# find the maximum length of command line arguments
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5159$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5160if ${lt_cv_sys_max_cmd_len+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163    i=0
5164  teststring=ABCD
5165
5166  case $build_os in
5167  msdosdjgpp*)
5168    # On DJGPP, this test can blow up pretty badly due to problems in libc
5169    # (any single argument exceeding 2000 bytes causes a buffer overrun
5170    # during glob expansion).  Even if it were fixed, the result of this
5171    # check would be larger than it should be.
5172    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5173    ;;
5174
5175  gnu*)
5176    # Under GNU Hurd, this test is not required because there is
5177    # no limit to the length of command line arguments.
5178    # Libtool will interpret -1 as no limit whatsoever
5179    lt_cv_sys_max_cmd_len=-1;
5180    ;;
5181
5182  cygwin* | mingw* | cegcc*)
5183    # On Win9x/ME, this test blows up -- it succeeds, but takes
5184    # about 5 minutes as the teststring grows exponentially.
5185    # Worse, since 9x/ME are not pre-emptively multitasking,
5186    # you end up with a "frozen" computer, even though with patience
5187    # the test eventually succeeds (with a max line length of 256k).
5188    # Instead, let's just punt: use the minimum linelength reported by
5189    # all of the supported platforms: 8192 (on NT/2K/XP).
5190    lt_cv_sys_max_cmd_len=8192;
5191    ;;
5192
5193  mint*)
5194    # On MiNT this can take a long time and run out of memory.
5195    lt_cv_sys_max_cmd_len=8192;
5196    ;;
5197
5198  amigaos*)
5199    # On AmigaOS with pdksh, this test takes hours, literally.
5200    # So we just punt and use a minimum line length of 8192.
5201    lt_cv_sys_max_cmd_len=8192;
5202    ;;
5203
5204  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5205    # This has been around since 386BSD, at least.  Likely further.
5206    if test -x /sbin/sysctl; then
5207      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5208    elif test -x /usr/sbin/sysctl; then
5209      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5210    else
5211      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5212    fi
5213    # And add a safety zone
5214    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5215    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5216    ;;
5217
5218  interix*)
5219    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5220    lt_cv_sys_max_cmd_len=196608
5221    ;;
5222
5223  os2*)
5224    # The test takes a long time on OS/2.
5225    lt_cv_sys_max_cmd_len=8192
5226    ;;
5227
5228  osf*)
5229    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5230    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5231    # nice to cause kernel panics so lets avoid the loop below.
5232    # First set a reasonable default.
5233    lt_cv_sys_max_cmd_len=16384
5234    #
5235    if test -x /sbin/sysconfig; then
5236      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5237        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5238      esac
5239    fi
5240    ;;
5241  sco3.2v5*)
5242    lt_cv_sys_max_cmd_len=102400
5243    ;;
5244  sysv5* | sco5v6* | sysv4.2uw2*)
5245    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5246    if test -n "$kargmax"; then
5247      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5248    else
5249      lt_cv_sys_max_cmd_len=32768
5250    fi
5251    ;;
5252  *)
5253    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5254    if test -n "$lt_cv_sys_max_cmd_len" && \
5255       test undefined != "$lt_cv_sys_max_cmd_len"; then
5256      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5257      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5258    else
5259      # Make teststring a little bigger before we do anything with it.
5260      # a 1K string should be a reasonable start.
5261      for i in 1 2 3 4 5 6 7 8; do
5262        teststring=$teststring$teststring
5263      done
5264      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5265      # If test is not a shell built-in, we'll probably end up computing a
5266      # maximum length that is only half of the actual maximum length, but
5267      # we can't tell.
5268      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5269	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5270	      test 17 != "$i" # 1/2 MB should be enough
5271      do
5272        i=`expr $i + 1`
5273        teststring=$teststring$teststring
5274      done
5275      # Only check the string length outside the loop.
5276      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5277      teststring=
5278      # Add a significant safety factor because C++ compilers can tack on
5279      # massive amounts of additional arguments before passing them to the
5280      # linker.  It appears as though 1/2 is a usable value.
5281      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282    fi
5283    ;;
5284  esac
5285
5286fi
5287
5288if test -n "$lt_cv_sys_max_cmd_len"; then
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5290$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5291else
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5293$as_echo "none" >&6; }
5294fi
5295max_cmd_len=$lt_cv_sys_max_cmd_len
5296
5297
5298
5299
5300
5301
5302: ${CP="cp -f"}
5303: ${MV="mv -f"}
5304: ${RM="rm -f"}
5305
5306if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5307  lt_unset=unset
5308else
5309  lt_unset=false
5310fi
5311
5312
5313
5314
5315
5316# test EBCDIC or ASCII
5317case `echo X|tr X '\101'` in
5318 A) # ASCII based system
5319    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5320  lt_SP2NL='tr \040 \012'
5321  lt_NL2SP='tr \015\012 \040\040'
5322  ;;
5323 *) # EBCDIC based system
5324  lt_SP2NL='tr \100 \n'
5325  lt_NL2SP='tr \r\n \100\100'
5326  ;;
5327esac
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5338$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5339if ${lt_cv_to_host_file_cmd+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  case $host in
5343  *-*-mingw* )
5344    case $build in
5345      *-*-mingw* ) # actually msys
5346        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5347        ;;
5348      *-*-cygwin* )
5349        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5350        ;;
5351      * ) # otherwise, assume *nix
5352        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5353        ;;
5354    esac
5355    ;;
5356  *-*-cygwin* )
5357    case $build in
5358      *-*-mingw* ) # actually msys
5359        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5360        ;;
5361      *-*-cygwin* )
5362        lt_cv_to_host_file_cmd=func_convert_file_noop
5363        ;;
5364      * ) # otherwise, assume *nix
5365        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5366        ;;
5367    esac
5368    ;;
5369  * ) # unhandled hosts (and "normal" native builds)
5370    lt_cv_to_host_file_cmd=func_convert_file_noop
5371    ;;
5372esac
5373
5374fi
5375
5376to_host_file_cmd=$lt_cv_to_host_file_cmd
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5378$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5385$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5386if ${lt_cv_to_tool_file_cmd+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  #assume ordinary cross tools, or native build.
5390lt_cv_to_tool_file_cmd=func_convert_file_noop
5391case $host in
5392  *-*-mingw* )
5393    case $build in
5394      *-*-mingw* ) # actually msys
5395        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5396        ;;
5397    esac
5398    ;;
5399esac
5400
5401fi
5402
5403to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5405$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5406
5407
5408
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412$as_echo_n "checking for $LD option to reload object files... " >&6; }
5413if ${lt_cv_ld_reload_flag+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  lt_cv_ld_reload_flag='-r'
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419$as_echo "$lt_cv_ld_reload_flag" >&6; }
5420reload_flag=$lt_cv_ld_reload_flag
5421case $reload_flag in
5422"" | " "*) ;;
5423*) reload_flag=" $reload_flag" ;;
5424esac
5425reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426case $host_os in
5427  cygwin* | mingw* | pw32* | cegcc*)
5428    if test yes != "$GCC"; then
5429      reload_cmds=false
5430    fi
5431    ;;
5432  darwin*)
5433    if test yes = "$GCC"; then
5434      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5435    else
5436      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5437    fi
5438    ;;
5439esac
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449if test -n "$ac_tool_prefix"; then
5450  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5451set dummy ${ac_tool_prefix}objdump; ac_word=$2
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
5454if ${ac_cv_prog_OBJDUMP+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  if test -n "$OBJDUMP"; then
5458  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463  IFS=$as_save_IFS
5464  test -z "$as_dir" && as_dir=.
5465    for ac_exec_ext in '' $ac_executable_extensions; do
5466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469    break 2
5470  fi
5471done
5472  done
5473IFS=$as_save_IFS
5474
5475fi
5476fi
5477OBJDUMP=$ac_cv_prog_OBJDUMP
5478if test -n "$OBJDUMP"; then
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5480$as_echo "$OBJDUMP" >&6; }
5481else
5482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483$as_echo "no" >&6; }
5484fi
5485
5486
5487fi
5488if test -z "$ac_cv_prog_OBJDUMP"; then
5489  ac_ct_OBJDUMP=$OBJDUMP
5490  # Extract the first word of "objdump", so it can be a program name with args.
5491set dummy objdump; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  if test -n "$ac_ct_OBJDUMP"; then
5498  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503  IFS=$as_save_IFS
5504  test -z "$as_dir" && as_dir=.
5505    for ac_exec_ext in '' $ac_executable_extensions; do
5506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509    break 2
5510  fi
5511done
5512  done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5518if test -n "$ac_ct_OBJDUMP"; then
5519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5520$as_echo "$ac_ct_OBJDUMP" >&6; }
5521else
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526  if test "x$ac_ct_OBJDUMP" = x; then
5527    OBJDUMP="false"
5528  else
5529    case $cross_compiling:$ac_tool_warned in
5530yes:)
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533ac_tool_warned=yes ;;
5534esac
5535    OBJDUMP=$ac_ct_OBJDUMP
5536  fi
5537else
5538  OBJDUMP="$ac_cv_prog_OBJDUMP"
5539fi
5540
5541test -z "$OBJDUMP" && OBJDUMP=objdump
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5552$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5553if ${lt_cv_deplibs_check_method+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  lt_cv_file_magic_cmd='$MAGIC_CMD'
5557lt_cv_file_magic_test_file=
5558lt_cv_deplibs_check_method='unknown'
5559# Need to set the preceding variable on all platforms that support
5560# interlibrary dependencies.
5561# 'none' -- dependencies not supported.
5562# 'unknown' -- same as none, but documents that we really don't know.
5563# 'pass_all' -- all dependencies passed with no checks.
5564# 'test_compile' -- check by making test program.
5565# 'file_magic [[regex]]' -- check by looking for files in library path
5566# that responds to the $file_magic_cmd with a given extended regex.
5567# If you have 'file' or equivalent on your system and you're not sure
5568# whether 'pass_all' will *always* work, you probably want this one.
5569
5570case $host_os in
5571aix[4-9]*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575beos*)
5576  lt_cv_deplibs_check_method=pass_all
5577  ;;
5578
5579bsdi[45]*)
5580  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5581  lt_cv_file_magic_cmd='/usr/bin/file -L'
5582  lt_cv_file_magic_test_file=/shlib/libc.so
5583  ;;
5584
5585cygwin*)
5586  # func_win32_libid is a shell function defined in ltmain.sh
5587  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5588  lt_cv_file_magic_cmd='func_win32_libid'
5589  ;;
5590
5591mingw* | pw32*)
5592  # Base MSYS/MinGW do not provide the 'file' command needed by
5593  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5594  # unless we find 'file', for example because we are cross-compiling.
5595  if ( file / ) >/dev/null 2>&1; then
5596    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5597    lt_cv_file_magic_cmd='func_win32_libid'
5598  else
5599    # Keep this pattern in sync with the one in func_win32_libid.
5600    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5601    lt_cv_file_magic_cmd='$OBJDUMP -f'
5602  fi
5603  ;;
5604
5605cegcc*)
5606  # use the weaker test based on 'objdump'. See mingw*.
5607  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5608  lt_cv_file_magic_cmd='$OBJDUMP -f'
5609  ;;
5610
5611darwin* | rhapsody*)
5612  lt_cv_deplibs_check_method=pass_all
5613  ;;
5614
5615freebsd* | dragonfly*)
5616  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5617    case $host_cpu in
5618    i*86 )
5619      # Not sure whether the presence of OpenBSD here was a mistake.
5620      # Let's accept both of them until this is cleared up.
5621      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5622      lt_cv_file_magic_cmd=/usr/bin/file
5623      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5624      ;;
5625    esac
5626  else
5627    lt_cv_deplibs_check_method=pass_all
5628  fi
5629  ;;
5630
5631haiku*)
5632  lt_cv_deplibs_check_method=pass_all
5633  ;;
5634
5635hpux10.20* | hpux11*)
5636  lt_cv_file_magic_cmd=/usr/bin/file
5637  case $host_cpu in
5638  ia64*)
5639    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5640    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5641    ;;
5642  hppa*64*)
5643    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]'
5644    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5645    ;;
5646  *)
5647    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5648    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5649    ;;
5650  esac
5651  ;;
5652
5653interix[3-9]*)
5654  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5655  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5656  ;;
5657
5658irix5* | irix6* | nonstopux*)
5659  case $LD in
5660  *-32|*"-32 ") libmagic=32-bit;;
5661  *-n32|*"-n32 ") libmagic=N32;;
5662  *-64|*"-64 ") libmagic=64-bit;;
5663  *) libmagic=never-match;;
5664  esac
5665  lt_cv_deplibs_check_method=pass_all
5666  ;;
5667
5668# This must be glibc/ELF.
5669linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673netbsd*)
5674  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5675    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5676  else
5677    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5678  fi
5679  ;;
5680
5681newos6*)
5682  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5683  lt_cv_file_magic_cmd=/usr/bin/file
5684  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5685  ;;
5686
5687*nto* | *qnx*)
5688  lt_cv_deplibs_check_method=pass_all
5689  ;;
5690
5691openbsd* | bitrig*)
5692  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5694  else
5695    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5696  fi
5697  ;;
5698
5699osf3* | osf4* | osf5*)
5700  lt_cv_deplibs_check_method=pass_all
5701  ;;
5702
5703rdos*)
5704  lt_cv_deplibs_check_method=pass_all
5705  ;;
5706
5707solaris*)
5708  lt_cv_deplibs_check_method=pass_all
5709  ;;
5710
5711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5712  lt_cv_deplibs_check_method=pass_all
5713  ;;
5714
5715sysv4 | sysv4.3*)
5716  case $host_vendor in
5717  motorola)
5718    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]'
5719    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5720    ;;
5721  ncr)
5722    lt_cv_deplibs_check_method=pass_all
5723    ;;
5724  sequent)
5725    lt_cv_file_magic_cmd='/bin/file'
5726    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5727    ;;
5728  sni)
5729    lt_cv_file_magic_cmd='/bin/file'
5730    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5731    lt_cv_file_magic_test_file=/lib/libc.so
5732    ;;
5733  siemens)
5734    lt_cv_deplibs_check_method=pass_all
5735    ;;
5736  pc)
5737    lt_cv_deplibs_check_method=pass_all
5738    ;;
5739  esac
5740  ;;
5741
5742tpf*)
5743  lt_cv_deplibs_check_method=pass_all
5744  ;;
5745os2*)
5746  lt_cv_deplibs_check_method=pass_all
5747  ;;
5748esac
5749
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5752$as_echo "$lt_cv_deplibs_check_method" >&6; }
5753
5754file_magic_glob=
5755want_nocaseglob=no
5756if test "$build" = "$host"; then
5757  case $host_os in
5758  mingw* | pw32*)
5759    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5760      want_nocaseglob=yes
5761    else
5762      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5763    fi
5764    ;;
5765  esac
5766fi
5767
5768file_magic_cmd=$lt_cv_file_magic_cmd
5769deplibs_check_method=$lt_cv_deplibs_check_method
5770test -z "$deplibs_check_method" && deplibs_check_method=unknown
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793if test -n "$ac_tool_prefix"; then
5794  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5795set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if ${ac_cv_prog_DLLTOOL+:} false; then :
5799  $as_echo_n "(cached) " >&6
5800else
5801  if test -n "$DLLTOOL"; then
5802  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809    for ac_exec_ext in '' $ac_executable_extensions; do
5810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816  done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821DLLTOOL=$ac_cv_prog_DLLTOOL
5822if test -n "$DLLTOOL"; then
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5824$as_echo "$DLLTOOL" >&6; }
5825else
5826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831fi
5832if test -z "$ac_cv_prog_DLLTOOL"; then
5833  ac_ct_DLLTOOL=$DLLTOOL
5834  # Extract the first word of "dlltool", so it can be a program name with args.
5835set dummy dlltool; ac_word=$2
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
5838if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  if test -n "$ac_ct_DLLTOOL"; then
5842  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847  IFS=$as_save_IFS
5848  test -z "$as_dir" && as_dir=.
5849    for ac_exec_ext in '' $ac_executable_extensions; do
5850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853    break 2
5854  fi
5855done
5856  done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5862if test -n "$ac_ct_DLLTOOL"; then
5863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5864$as_echo "$ac_ct_DLLTOOL" >&6; }
5865else
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870  if test "x$ac_ct_DLLTOOL" = x; then
5871    DLLTOOL="false"
5872  else
5873    case $cross_compiling:$ac_tool_warned in
5874yes:)
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877ac_tool_warned=yes ;;
5878esac
5879    DLLTOOL=$ac_ct_DLLTOOL
5880  fi
5881else
5882  DLLTOOL="$ac_cv_prog_DLLTOOL"
5883fi
5884
5885test -z "$DLLTOOL" && DLLTOOL=dlltool
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5897$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5898if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  lt_cv_sharedlib_from_linklib_cmd='unknown'
5902
5903case $host_os in
5904cygwin* | mingw* | pw32* | cegcc*)
5905  # two different shell functions defined in ltmain.sh;
5906  # decide which one to use based on capabilities of $DLLTOOL
5907  case `$DLLTOOL --help 2>&1` in
5908  *--identify-strict*)
5909    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5910    ;;
5911  *)
5912    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5913    ;;
5914  esac
5915  ;;
5916*)
5917  # fallback: assume linklib IS sharedlib
5918  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5919  ;;
5920esac
5921
5922fi
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5924$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5925sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5926test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5927
5928
5929
5930
5931
5932
5933
5934if test -n "$ac_tool_prefix"; then
5935  for ac_prog in ar
5936  do
5937    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940$as_echo_n "checking for $ac_word... " >&6; }
5941if ${ac_cv_prog_AR+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  if test -n "$AR"; then
5945  ac_cv_prog_AR="$AR" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952    for ac_exec_ext in '' $ac_executable_extensions; do
5953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959  done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964AR=$ac_cv_prog_AR
5965if test -n "$AR"; then
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5967$as_echo "$AR" >&6; }
5968else
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970$as_echo "no" >&6; }
5971fi
5972
5973
5974    test -n "$AR" && break
5975  done
5976fi
5977if test -z "$AR"; then
5978  ac_ct_AR=$AR
5979  for ac_prog in ar
5980do
5981  # Extract the first word of "$ac_prog", so it can be a program name with args.
5982set dummy $ac_prog; ac_word=$2
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984$as_echo_n "checking for $ac_word... " >&6; }
5985if ${ac_cv_prog_ac_ct_AR+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  if test -n "$ac_ct_AR"; then
5989  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994  IFS=$as_save_IFS
5995  test -z "$as_dir" && as_dir=.
5996    for ac_exec_ext in '' $ac_executable_extensions; do
5997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998    ac_cv_prog_ac_ct_AR="$ac_prog"
5999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000    break 2
6001  fi
6002done
6003  done
6004IFS=$as_save_IFS
6005
6006fi
6007fi
6008ac_ct_AR=$ac_cv_prog_ac_ct_AR
6009if test -n "$ac_ct_AR"; then
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6011$as_echo "$ac_ct_AR" >&6; }
6012else
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
6016
6017
6018  test -n "$ac_ct_AR" && break
6019done
6020
6021  if test "x$ac_ct_AR" = x; then
6022    AR="false"
6023  else
6024    case $cross_compiling:$ac_tool_warned in
6025yes:)
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028ac_tool_warned=yes ;;
6029esac
6030    AR=$ac_ct_AR
6031  fi
6032fi
6033
6034: ${AR=ar}
6035: ${AR_FLAGS=cru}
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6048$as_echo_n "checking for archiver @FILE support... " >&6; }
6049if ${lt_cv_ar_at_file+:} false; then :
6050  $as_echo_n "(cached) " >&6
6051else
6052  lt_cv_ar_at_file=no
6053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065  echo conftest.$ac_objext > conftest.lst
6066      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6067      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6068  (eval $lt_ar_try) 2>&5
6069  ac_status=$?
6070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071  test $ac_status = 0; }
6072      if test 0 -eq "$ac_status"; then
6073	# Ensure the archiver fails upon bogus file names.
6074	rm -f conftest.$ac_objext libconftest.a
6075	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6076  (eval $lt_ar_try) 2>&5
6077  ac_status=$?
6078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079  test $ac_status = 0; }
6080	if test 0 -ne "$ac_status"; then
6081          lt_cv_ar_at_file=@
6082        fi
6083      fi
6084      rm -f conftest.* libconftest.a
6085
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6091$as_echo "$lt_cv_ar_at_file" >&6; }
6092
6093if test no = "$lt_cv_ar_at_file"; then
6094  archiver_list_spec=
6095else
6096  archiver_list_spec=$lt_cv_ar_at_file
6097fi
6098
6099
6100
6101
6102
6103
6104
6105if test -n "$ac_tool_prefix"; then
6106  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6107set dummy ${ac_tool_prefix}strip; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_STRIP+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  if test -n "$STRIP"; then
6114  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  test -z "$as_dir" && as_dir=.
6121    for ac_exec_ext in '' $ac_executable_extensions; do
6122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125    break 2
6126  fi
6127done
6128  done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133STRIP=$ac_cv_prog_STRIP
6134if test -n "$STRIP"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6136$as_echo "$STRIP" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142
6143fi
6144if test -z "$ac_cv_prog_STRIP"; then
6145  ac_ct_STRIP=$STRIP
6146  # Extract the first word of "strip", so it can be a program name with args.
6147set dummy strip; ac_word=$2
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149$as_echo_n "checking for $ac_word... " >&6; }
6150if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  if test -n "$ac_ct_STRIP"; then
6154  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161    for ac_exec_ext in '' $ac_executable_extensions; do
6162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163    ac_cv_prog_ac_ct_STRIP="strip"
6164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168  done
6169IFS=$as_save_IFS
6170
6171fi
6172fi
6173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6174if test -n "$ac_ct_STRIP"; then
6175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6176$as_echo "$ac_ct_STRIP" >&6; }
6177else
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182  if test "x$ac_ct_STRIP" = x; then
6183    STRIP=":"
6184  else
6185    case $cross_compiling:$ac_tool_warned in
6186yes:)
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189ac_tool_warned=yes ;;
6190esac
6191    STRIP=$ac_ct_STRIP
6192  fi
6193else
6194  STRIP="$ac_cv_prog_STRIP"
6195fi
6196
6197test -z "$STRIP" && STRIP=:
6198
6199
6200
6201
6202
6203
6204if test -n "$ac_tool_prefix"; then
6205  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_prog_RANLIB+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  if test -n "$RANLIB"; then
6213  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220    for ac_exec_ext in '' $ac_executable_extensions; do
6221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227  done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232RANLIB=$ac_cv_prog_RANLIB
6233if test -n "$RANLIB"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6235$as_echo "$RANLIB" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_prog_RANLIB"; then
6244  ac_ct_RANLIB=$RANLIB
6245  # Extract the first word of "ranlib", so it can be a program name with args.
6246set dummy ranlib; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  if test -n "$ac_ct_RANLIB"; then
6253  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  test -z "$as_dir" && as_dir=.
6260    for ac_exec_ext in '' $ac_executable_extensions; do
6261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262    ac_cv_prog_ac_ct_RANLIB="ranlib"
6263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264    break 2
6265  fi
6266done
6267  done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273if test -n "$ac_ct_RANLIB"; then
6274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6275$as_echo "$ac_ct_RANLIB" >&6; }
6276else
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281  if test "x$ac_ct_RANLIB" = x; then
6282    RANLIB=":"
6283  else
6284    case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290    RANLIB=$ac_ct_RANLIB
6291  fi
6292else
6293  RANLIB="$ac_cv_prog_RANLIB"
6294fi
6295
6296test -z "$RANLIB" && RANLIB=:
6297
6298
6299
6300
6301
6302
6303# Determine commands to create old-style static archives.
6304old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6305old_postinstall_cmds='chmod 644 $oldlib'
6306old_postuninstall_cmds=
6307
6308if test -n "$RANLIB"; then
6309  case $host_os in
6310  bitrig* | openbsd*)
6311    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6312    ;;
6313  *)
6314    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6315    ;;
6316  esac
6317  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6318fi
6319
6320case $host_os in
6321  darwin*)
6322    lock_old_archive_extraction=yes ;;
6323  *)
6324    lock_old_archive_extraction=no ;;
6325esac
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365# If no C compiler was specified, use CC.
6366LTCC=${LTCC-"$CC"}
6367
6368# If no C compiler flags were specified, use CFLAGS.
6369LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6370
6371# Allow CC to be a program name with arguments.
6372compiler=$CC
6373
6374
6375# Check for command to grab the raw symbol name followed by C symbol from nm.
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6377$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6378if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381
6382# These are sane defaults that work on at least a few old systems.
6383# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6384
6385# Character class describing NM global symbol codes.
6386symcode='[BCDEGRST]'
6387
6388# Regexp to match symbols that can be accessed directly from C.
6389sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6390
6391# Define system-specific variables.
6392case $host_os in
6393aix*)
6394  symcode='[BCDT]'
6395  ;;
6396cygwin* | mingw* | pw32* | cegcc*)
6397  symcode='[ABCDGISTW]'
6398  ;;
6399hpux*)
6400  if test ia64 = "$host_cpu"; then
6401    symcode='[ABCDEGRST]'
6402  fi
6403  ;;
6404irix* | nonstopux*)
6405  symcode='[BCDEGRST]'
6406  ;;
6407osf*)
6408  symcode='[BCDEGQRST]'
6409  ;;
6410solaris*)
6411  symcode='[BDRT]'
6412  ;;
6413sco3.2v5*)
6414  symcode='[DT]'
6415  ;;
6416sysv4.2uw2*)
6417  symcode='[DT]'
6418  ;;
6419sysv5* | sco5v6* | unixware* | OpenUNIX*)
6420  symcode='[ABDT]'
6421  ;;
6422sysv4)
6423  symcode='[DFNSTU]'
6424  ;;
6425esac
6426
6427# If we're using GNU nm, then use its standard symbol codes.
6428case `$NM -V 2>&1` in
6429*GNU* | *'with BFD'*)
6430  symcode='[ABCDGIRSTW]' ;;
6431esac
6432
6433if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6434  # Gets list of data symbols to import.
6435  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6436  # Adjust the below global symbol transforms to fixup imported variables.
6437  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6438  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6439  lt_c_name_lib_hook="\
6440  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6441  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6442else
6443  # Disable hooks by default.
6444  lt_cv_sys_global_symbol_to_import=
6445  lt_cdecl_hook=
6446  lt_c_name_hook=
6447  lt_c_name_lib_hook=
6448fi
6449
6450# Transform an extracted symbol line into a proper C declaration.
6451# Some systems (esp. on ia64) link data and code symbols differently,
6452# so use this general approach.
6453lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6454$lt_cdecl_hook\
6455" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6456" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6457
6458# Transform an extracted symbol line into symbol name and symbol address
6459lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6460$lt_c_name_hook\
6461" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6462" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6463
6464# Transform an extracted symbol line into symbol name with lib prefix and
6465# symbol address.
6466lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6467$lt_c_name_lib_hook\
6468" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6469" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6470" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6471
6472# Handle CRLF in mingw tool chain
6473opt_cr=
6474case $build_os in
6475mingw*)
6476  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6477  ;;
6478esac
6479
6480# Try without a prefix underscore, then with it.
6481for ac_symprfx in "" "_"; do
6482
6483  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6484  symxfrm="\\1 $ac_symprfx\\2 \\2"
6485
6486  # Write the raw and C identifiers.
6487  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6488    # Fake it for dumpbin and say T for any non-static function,
6489    # D for any global variable and I for any imported variable.
6490    # Also find C++ and __fastcall symbols from MSVC++,
6491    # which start with @ or ?.
6492    lt_cv_sys_global_symbol_pipe="$AWK '"\
6493"     {last_section=section; section=\$ 3};"\
6494"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6495"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6496"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6497"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6498"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6499"     \$ 0!~/External *\|/{next};"\
6500"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6501"     {if(hide[section]) next};"\
6502"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6503"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6504"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6505"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6506"     ' prfx=^$ac_symprfx"
6507  else
6508    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6509  fi
6510  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6511
6512  # Check to see that the pipe works correctly.
6513  pipe_works=no
6514
6515  rm -f conftest*
6516  cat > conftest.$ac_ext <<_LT_EOF
6517#ifdef __cplusplus
6518extern "C" {
6519#endif
6520char nm_test_var;
6521void nm_test_func(void);
6522void nm_test_func(void){}
6523#ifdef __cplusplus
6524}
6525#endif
6526int main(){nm_test_var='a';nm_test_func();return(0);}
6527_LT_EOF
6528
6529  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530  (eval $ac_compile) 2>&5
6531  ac_status=$?
6532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533  test $ac_status = 0; }; then
6534    # Now try to grab the symbols.
6535    nlist=conftest.nm
6536    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6537  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6538  ac_status=$?
6539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540  test $ac_status = 0; } && test -s "$nlist"; then
6541      # Try sorting and uniquifying the output.
6542      if sort "$nlist" | uniq > "$nlist"T; then
6543	mv -f "$nlist"T "$nlist"
6544      else
6545	rm -f "$nlist"T
6546      fi
6547
6548      # Make sure that we snagged all the symbols we need.
6549      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551	  cat <<_LT_EOF > conftest.$ac_ext
6552/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6553#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6554/* DATA imports from DLLs on WIN32 can't be const, because runtime
6555   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6556# define LT_DLSYM_CONST
6557#elif defined __osf__
6558/* This system does not cope well with relocations in const data.  */
6559# define LT_DLSYM_CONST
6560#else
6561# define LT_DLSYM_CONST const
6562#endif
6563
6564#ifdef __cplusplus
6565extern "C" {
6566#endif
6567
6568_LT_EOF
6569	  # Now generate the symbol file.
6570	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6571
6572	  cat <<_LT_EOF >> conftest.$ac_ext
6573
6574/* The mapping between symbol names and symbols.  */
6575LT_DLSYM_CONST struct {
6576  const char *name;
6577  void       *address;
6578}
6579lt__PROGRAM__LTX_preloaded_symbols[] =
6580{
6581  { "@PROGRAM@", (void *) 0 },
6582_LT_EOF
6583	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6584	  cat <<\_LT_EOF >> conftest.$ac_ext
6585  {0, (void *) 0}
6586};
6587
6588/* This works around a problem in FreeBSD linker */
6589#ifdef FREEBSD_WORKAROUND
6590static const void *lt_preloaded_setup() {
6591  return lt__PROGRAM__LTX_preloaded_symbols;
6592}
6593#endif
6594
6595#ifdef __cplusplus
6596}
6597#endif
6598_LT_EOF
6599	  # Now try linking the two files.
6600	  mv conftest.$ac_objext conftstm.$ac_objext
6601	  lt_globsym_save_LIBS=$LIBS
6602	  lt_globsym_save_CFLAGS=$CFLAGS
6603	  LIBS=conftstm.$ac_objext
6604	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6605	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6606  (eval $ac_link) 2>&5
6607  ac_status=$?
6608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6610	    pipe_works=yes
6611	  fi
6612	  LIBS=$lt_globsym_save_LIBS
6613	  CFLAGS=$lt_globsym_save_CFLAGS
6614	else
6615	  echo "cannot find nm_test_func in $nlist" >&5
6616	fi
6617      else
6618	echo "cannot find nm_test_var in $nlist" >&5
6619      fi
6620    else
6621      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6622    fi
6623  else
6624    echo "$progname: failed program was:" >&5
6625    cat conftest.$ac_ext >&5
6626  fi
6627  rm -rf conftest* conftst*
6628
6629  # Do not use the global_symbol_pipe unless it works.
6630  if test yes = "$pipe_works"; then
6631    break
6632  else
6633    lt_cv_sys_global_symbol_pipe=
6634  fi
6635done
6636
6637fi
6638
6639if test -z "$lt_cv_sys_global_symbol_pipe"; then
6640  lt_cv_sys_global_symbol_to_cdecl=
6641fi
6642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6644$as_echo "failed" >&6; }
6645else
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6647$as_echo "ok" >&6; }
6648fi
6649
6650# Response file support.
6651if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652  nm_file_list_spec='@'
6653elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6654  nm_file_list_spec='@'
6655fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6694$as_echo_n "checking for sysroot... " >&6; }
6695
6696# Check whether --with-sysroot was given.
6697if test "${with_sysroot+set}" = set; then :
6698  withval=$with_sysroot;
6699else
6700  with_sysroot=no
6701fi
6702
6703
6704lt_sysroot=
6705case $with_sysroot in #(
6706 yes)
6707   if test yes = "$GCC"; then
6708     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6709   fi
6710   ;; #(
6711 /*)
6712   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6713   ;; #(
6714 no|'')
6715   ;; #(
6716 *)
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6718$as_echo "$with_sysroot" >&6; }
6719   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6720   ;;
6721esac
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6724$as_echo "${lt_sysroot:-no}" >&6; }
6725
6726
6727
6728
6729
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6731$as_echo_n "checking for a working dd... " >&6; }
6732if ${ac_cv_path_lt_DD+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  printf 0123456789abcdef0123456789abcdef >conftest.i
6736cat conftest.i conftest.i >conftest2.i
6737: ${lt_DD:=$DD}
6738if test -z "$lt_DD"; then
6739  ac_path_lt_DD_found=false
6740  # Loop through the user's path and test for each of PROGNAME-LIST
6741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  test -z "$as_dir" && as_dir=.
6746    for ac_prog in dd; do
6747    for ac_exec_ext in '' $ac_executable_extensions; do
6748      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6749      as_fn_executable_p "$ac_path_lt_DD" || continue
6750if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6751  cmp -s conftest.i conftest.out \
6752  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6753fi
6754      $ac_path_lt_DD_found && break 3
6755    done
6756  done
6757  done
6758IFS=$as_save_IFS
6759  if test -z "$ac_cv_path_lt_DD"; then
6760    :
6761  fi
6762else
6763  ac_cv_path_lt_DD=$lt_DD
6764fi
6765
6766rm -f conftest.i conftest2.i conftest.out
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6769$as_echo "$ac_cv_path_lt_DD" >&6; }
6770
6771
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6773$as_echo_n "checking how to truncate binary pipes... " >&6; }
6774if ${lt_cv_truncate_bin+:} false; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  printf 0123456789abcdef0123456789abcdef >conftest.i
6778cat conftest.i conftest.i >conftest2.i
6779lt_cv_truncate_bin=
6780if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6781  cmp -s conftest.i conftest.out \
6782  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6783fi
6784rm -f conftest.i conftest2.i conftest.out
6785test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6786fi
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6788$as_echo "$lt_cv_truncate_bin" >&6; }
6789
6790
6791
6792
6793
6794
6795
6796# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6797func_cc_basename ()
6798{
6799    for cc_temp in $*""; do
6800      case $cc_temp in
6801        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6802        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6803        \-*) ;;
6804        *) break;;
6805      esac
6806    done
6807    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6808}
6809
6810# Check whether --enable-libtool-lock was given.
6811if test "${enable_libtool_lock+set}" = set; then :
6812  enableval=$enable_libtool_lock;
6813fi
6814
6815test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6816
6817# Some flags need to be propagated to the compiler or linker for good
6818# libtool support.
6819case $host in
6820ia64-*-hpux*)
6821  # Find out what ABI is being produced by ac_compile, and set mode
6822  # options accordingly.
6823  echo 'int i;' > conftest.$ac_ext
6824  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825  (eval $ac_compile) 2>&5
6826  ac_status=$?
6827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828  test $ac_status = 0; }; then
6829    case `/usr/bin/file conftest.$ac_objext` in
6830      *ELF-32*)
6831	HPUX_IA64_MODE=32
6832	;;
6833      *ELF-64*)
6834	HPUX_IA64_MODE=64
6835	;;
6836    esac
6837  fi
6838  rm -rf conftest*
6839  ;;
6840*-*-irix6*)
6841  # Find out what ABI is being produced by ac_compile, and set linker
6842  # options accordingly.
6843  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6844  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845  (eval $ac_compile) 2>&5
6846  ac_status=$?
6847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848  test $ac_status = 0; }; then
6849    if test yes = "$lt_cv_prog_gnu_ld"; then
6850      case `/usr/bin/file conftest.$ac_objext` in
6851	*32-bit*)
6852	  LD="${LD-ld} -melf32bsmip"
6853	  ;;
6854	*N32*)
6855	  LD="${LD-ld} -melf32bmipn32"
6856	  ;;
6857	*64-bit*)
6858	  LD="${LD-ld} -melf64bmip"
6859	;;
6860      esac
6861    else
6862      case `/usr/bin/file conftest.$ac_objext` in
6863	*32-bit*)
6864	  LD="${LD-ld} -32"
6865	  ;;
6866	*N32*)
6867	  LD="${LD-ld} -n32"
6868	  ;;
6869	*64-bit*)
6870	  LD="${LD-ld} -64"
6871	  ;;
6872      esac
6873    fi
6874  fi
6875  rm -rf conftest*
6876  ;;
6877
6878mips64*-*linux*)
6879  # Find out what ABI is being produced by ac_compile, and set linker
6880  # options accordingly.
6881  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6882  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883  (eval $ac_compile) 2>&5
6884  ac_status=$?
6885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886  test $ac_status = 0; }; then
6887    emul=elf
6888    case `/usr/bin/file conftest.$ac_objext` in
6889      *32-bit*)
6890	emul="${emul}32"
6891	;;
6892      *64-bit*)
6893	emul="${emul}64"
6894	;;
6895    esac
6896    case `/usr/bin/file conftest.$ac_objext` in
6897      *MSB*)
6898	emul="${emul}btsmip"
6899	;;
6900      *LSB*)
6901	emul="${emul}ltsmip"
6902	;;
6903    esac
6904    case `/usr/bin/file conftest.$ac_objext` in
6905      *N32*)
6906	emul="${emul}n32"
6907	;;
6908    esac
6909    LD="${LD-ld} -m $emul"
6910  fi
6911  rm -rf conftest*
6912  ;;
6913
6914x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6915s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6916  # Find out what ABI is being produced by ac_compile, and set linker
6917  # options accordingly.  Note that the listed cases only cover the
6918  # situations where additional linker options are needed (such as when
6919  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6920  # vice versa); the common cases where no linker options are needed do
6921  # not appear in the list.
6922  echo 'int i;' > conftest.$ac_ext
6923  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924  (eval $ac_compile) 2>&5
6925  ac_status=$?
6926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927  test $ac_status = 0; }; then
6928    case `/usr/bin/file conftest.o` in
6929      *32-bit*)
6930	case $host in
6931	  x86_64-*kfreebsd*-gnu)
6932	    LD="${LD-ld} -m elf_i386_fbsd"
6933	    ;;
6934	  x86_64-*linux*)
6935	    case `/usr/bin/file conftest.o` in
6936	      *x86-64*)
6937		LD="${LD-ld} -m elf32_x86_64"
6938		;;
6939	      *)
6940		LD="${LD-ld} -m elf_i386"
6941		;;
6942	    esac
6943	    ;;
6944	  powerpc64le-*linux*)
6945	    LD="${LD-ld} -m elf32lppclinux"
6946	    ;;
6947	  powerpc64-*linux*)
6948	    LD="${LD-ld} -m elf32ppclinux"
6949	    ;;
6950	  s390x-*linux*)
6951	    LD="${LD-ld} -m elf_s390"
6952	    ;;
6953	  sparc64-*linux*)
6954	    LD="${LD-ld} -m elf32_sparc"
6955	    ;;
6956	esac
6957	;;
6958      *64-bit*)
6959	case $host in
6960	  x86_64-*kfreebsd*-gnu)
6961	    LD="${LD-ld} -m elf_x86_64_fbsd"
6962	    ;;
6963	  x86_64-*linux*)
6964	    LD="${LD-ld} -m elf_x86_64"
6965	    ;;
6966	  powerpcle-*linux*)
6967	    LD="${LD-ld} -m elf64lppc"
6968	    ;;
6969	  powerpc-*linux*)
6970	    LD="${LD-ld} -m elf64ppc"
6971	    ;;
6972	  s390*-*linux*|s390*-*tpf*)
6973	    LD="${LD-ld} -m elf64_s390"
6974	    ;;
6975	  sparc*-*linux*)
6976	    LD="${LD-ld} -m elf64_sparc"
6977	    ;;
6978	esac
6979	;;
6980    esac
6981  fi
6982  rm -rf conftest*
6983  ;;
6984
6985*-*-sco3.2v5*)
6986  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6987  SAVE_CFLAGS=$CFLAGS
6988  CFLAGS="$CFLAGS -belf"
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6990$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6991if ${lt_cv_cc_needs_belf+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  ac_ext=c
6995ac_cpp='$CPP $CPPFLAGS'
6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999
7000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002
7003int
7004main ()
7005{
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  lt_cv_cc_needs_belf=yes
7013else
7014  lt_cv_cc_needs_belf=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018     ac_ext=c
7019ac_cpp='$CPP $CPPFLAGS'
7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7026$as_echo "$lt_cv_cc_needs_belf" >&6; }
7027  if test yes != "$lt_cv_cc_needs_belf"; then
7028    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7029    CFLAGS=$SAVE_CFLAGS
7030  fi
7031  ;;
7032*-*solaris*)
7033  # Find out what ABI is being produced by ac_compile, and set linker
7034  # options accordingly.
7035  echo 'int i;' > conftest.$ac_ext
7036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037  (eval $ac_compile) 2>&5
7038  ac_status=$?
7039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040  test $ac_status = 0; }; then
7041    case `/usr/bin/file conftest.o` in
7042    *64-bit*)
7043      case $lt_cv_prog_gnu_ld in
7044      yes*)
7045        case $host in
7046        i?86-*-solaris*|x86_64-*-solaris*)
7047          LD="${LD-ld} -m elf_x86_64"
7048          ;;
7049        sparc*-*-solaris*)
7050          LD="${LD-ld} -m elf64_sparc"
7051          ;;
7052        esac
7053        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7054        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7055          LD=${LD-ld}_sol2
7056        fi
7057        ;;
7058      *)
7059	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7060	  LD="${LD-ld} -64"
7061	fi
7062	;;
7063      esac
7064      ;;
7065    esac
7066  fi
7067  rm -rf conftest*
7068  ;;
7069esac
7070
7071need_locks=$enable_libtool_lock
7072
7073if test -n "$ac_tool_prefix"; then
7074  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7075set dummy ${ac_tool_prefix}mt; ac_word=$2
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077$as_echo_n "checking for $ac_word... " >&6; }
7078if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7079  $as_echo_n "(cached) " >&6
7080else
7081  if test -n "$MANIFEST_TOOL"; then
7082  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7083else
7084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087  IFS=$as_save_IFS
7088  test -z "$as_dir" && as_dir=.
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093    break 2
7094  fi
7095done
7096  done
7097IFS=$as_save_IFS
7098
7099fi
7100fi
7101MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7102if test -n "$MANIFEST_TOOL"; then
7103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7104$as_echo "$MANIFEST_TOOL" >&6; }
7105else
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107$as_echo "no" >&6; }
7108fi
7109
7110
7111fi
7112if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7113  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7114  # Extract the first word of "mt", so it can be a program name with args.
7115set dummy mt; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$ac_ct_MANIFEST_TOOL"; then
7122  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7142if test -n "$ac_ct_MANIFEST_TOOL"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7144$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7151    MANIFEST_TOOL=":"
7152  else
7153    case $cross_compiling:$ac_tool_warned in
7154yes:)
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157ac_tool_warned=yes ;;
7158esac
7159    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7160  fi
7161else
7162  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7163fi
7164
7165test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7167$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7168if ${lt_cv_path_mainfest_tool+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  lt_cv_path_mainfest_tool=no
7172  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7173  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7174  cat conftest.err >&5
7175  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7176    lt_cv_path_mainfest_tool=yes
7177  fi
7178  rm -f conftest*
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7181$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7182if test yes != "$lt_cv_path_mainfest_tool"; then
7183  MANIFEST_TOOL=:
7184fi
7185
7186
7187
7188
7189
7190
7191  case $host_os in
7192    rhapsody* | darwin*)
7193    if test -n "$ac_tool_prefix"; then
7194  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7195set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_DSYMUTIL+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$DSYMUTIL"; then
7202  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221DSYMUTIL=$ac_cv_prog_DSYMUTIL
7222if test -n "$DSYMUTIL"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7224$as_echo "$DSYMUTIL" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231fi
7232if test -z "$ac_cv_prog_DSYMUTIL"; then
7233  ac_ct_DSYMUTIL=$DSYMUTIL
7234  # Extract the first word of "dsymutil", so it can be a program name with args.
7235set dummy dsymutil; ac_word=$2
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  if test -n "$ac_ct_DSYMUTIL"; then
7242  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7243else
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  test -z "$as_dir" && as_dir=.
7249    for ac_exec_ext in '' $ac_executable_extensions; do
7250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253    break 2
7254  fi
7255done
7256  done
7257IFS=$as_save_IFS
7258
7259fi
7260fi
7261ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7262if test -n "$ac_ct_DSYMUTIL"; then
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7264$as_echo "$ac_ct_DSYMUTIL" >&6; }
7265else
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268fi
7269
7270  if test "x$ac_ct_DSYMUTIL" = x; then
7271    DSYMUTIL=":"
7272  else
7273    case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279    DSYMUTIL=$ac_ct_DSYMUTIL
7280  fi
7281else
7282  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7283fi
7284
7285    if test -n "$ac_tool_prefix"; then
7286  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289$as_echo_n "checking for $ac_word... " >&6; }
7290if ${ac_cv_prog_NMEDIT+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  if test -n "$NMEDIT"; then
7294  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301    for ac_exec_ext in '' $ac_executable_extensions; do
7302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308  done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313NMEDIT=$ac_cv_prog_NMEDIT
7314if test -n "$NMEDIT"; then
7315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7316$as_echo "$NMEDIT" >&6; }
7317else
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_NMEDIT"; then
7325  ac_ct_NMEDIT=$NMEDIT
7326  # Extract the first word of "nmedit", so it can be a program name with args.
7327set dummy nmedit; ac_word=$2
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  if test -n "$ac_ct_NMEDIT"; then
7334  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  test -z "$as_dir" && as_dir=.
7341    for ac_exec_ext in '' $ac_executable_extensions; do
7342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348  done
7349IFS=$as_save_IFS
7350
7351fi
7352fi
7353ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7354if test -n "$ac_ct_NMEDIT"; then
7355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7356$as_echo "$ac_ct_NMEDIT" >&6; }
7357else
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359$as_echo "no" >&6; }
7360fi
7361
7362  if test "x$ac_ct_NMEDIT" = x; then
7363    NMEDIT=":"
7364  else
7365    case $cross_compiling:$ac_tool_warned in
7366yes:)
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369ac_tool_warned=yes ;;
7370esac
7371    NMEDIT=$ac_ct_NMEDIT
7372  fi
7373else
7374  NMEDIT="$ac_cv_prog_NMEDIT"
7375fi
7376
7377    if test -n "$ac_tool_prefix"; then
7378  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}lipo; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_LIPO+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$LIPO"; then
7386  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405LIPO=$ac_cv_prog_LIPO
7406if test -n "$LIPO"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7408$as_echo "$LIPO" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415fi
7416if test -z "$ac_cv_prog_LIPO"; then
7417  ac_ct_LIPO=$LIPO
7418  # Extract the first word of "lipo", so it can be a program name with args.
7419set dummy lipo; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421$as_echo_n "checking for $ac_word... " >&6; }
7422if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  if test -n "$ac_ct_LIPO"; then
7426  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431  IFS=$as_save_IFS
7432  test -z "$as_dir" && as_dir=.
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435    ac_cv_prog_ac_ct_LIPO="lipo"
7436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437    break 2
7438  fi
7439done
7440  done
7441IFS=$as_save_IFS
7442
7443fi
7444fi
7445ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7446if test -n "$ac_ct_LIPO"; then
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7448$as_echo "$ac_ct_LIPO" >&6; }
7449else
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454  if test "x$ac_ct_LIPO" = x; then
7455    LIPO=":"
7456  else
7457    case $cross_compiling:$ac_tool_warned in
7458yes:)
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461ac_tool_warned=yes ;;
7462esac
7463    LIPO=$ac_ct_LIPO
7464  fi
7465else
7466  LIPO="$ac_cv_prog_LIPO"
7467fi
7468
7469    if test -n "$ac_tool_prefix"; then
7470  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7471set dummy ${ac_tool_prefix}otool; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_OTOOL+:} false; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  if test -n "$OTOOL"; then
7478  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497OTOOL=$ac_cv_prog_OTOOL
7498if test -n "$OTOOL"; then
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7500$as_echo "$OTOOL" >&6; }
7501else
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507fi
7508if test -z "$ac_cv_prog_OTOOL"; then
7509  ac_ct_OTOOL=$OTOOL
7510  # Extract the first word of "otool", so it can be a program name with args.
7511set dummy otool; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  if test -n "$ac_ct_OTOOL"; then
7518  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_ac_ct_OTOOL="otool"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535fi
7536fi
7537ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7538if test -n "$ac_ct_OTOOL"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7540$as_echo "$ac_ct_OTOOL" >&6; }
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
7544fi
7545
7546  if test "x$ac_ct_OTOOL" = x; then
7547    OTOOL=":"
7548  else
7549    case $cross_compiling:$ac_tool_warned in
7550yes:)
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553ac_tool_warned=yes ;;
7554esac
7555    OTOOL=$ac_ct_OTOOL
7556  fi
7557else
7558  OTOOL="$ac_cv_prog_OTOOL"
7559fi
7560
7561    if test -n "$ac_tool_prefix"; then
7562  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7563set dummy ${ac_tool_prefix}otool64; ac_word=$2
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
7566if ${ac_cv_prog_OTOOL64+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  if test -n "$OTOOL64"; then
7570  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575  IFS=$as_save_IFS
7576  test -z "$as_dir" && as_dir=.
7577    for ac_exec_ext in '' $ac_executable_extensions; do
7578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581    break 2
7582  fi
7583done
7584  done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
7589OTOOL64=$ac_cv_prog_OTOOL64
7590if test -n "$OTOOL64"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7592$as_echo "$OTOOL64" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598
7599fi
7600if test -z "$ac_cv_prog_OTOOL64"; then
7601  ac_ct_OTOOL64=$OTOOL64
7602  # Extract the first word of "otool64", so it can be a program name with args.
7603set dummy otool64; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$ac_ct_OTOOL64"; then
7610  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_ac_ct_OTOOL64="otool64"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7630if test -n "$ac_ct_OTOOL64"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7632$as_echo "$ac_ct_OTOOL64" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638  if test "x$ac_ct_OTOOL64" = x; then
7639    OTOOL64=":"
7640  else
7641    case $cross_compiling:$ac_tool_warned in
7642yes:)
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645ac_tool_warned=yes ;;
7646esac
7647    OTOOL64=$ac_ct_OTOOL64
7648  fi
7649else
7650  OTOOL64="$ac_cv_prog_OTOOL64"
7651fi
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7680$as_echo_n "checking for -single_module linker flag... " >&6; }
7681if ${lt_cv_apple_cc_single_mod+:} false; then :
7682  $as_echo_n "(cached) " >&6
7683else
7684  lt_cv_apple_cc_single_mod=no
7685      if test -z "$LT_MULTI_MODULE"; then
7686	# By default we will add the -single_module flag. You can override
7687	# by either setting the environment variable LT_MULTI_MODULE
7688	# non-empty at configure time, or by adding -multi_module to the
7689	# link flags.
7690	rm -rf libconftest.dylib*
7691	echo "int foo(void){return 1;}" > conftest.c
7692	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7693-dynamiclib -Wl,-single_module conftest.c" >&5
7694	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7695	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7696        _lt_result=$?
7697	# If there is a non-empty error log, and "single_module"
7698	# appears in it, assume the flag caused a linker warning
7699        if test -s conftest.err && $GREP single_module conftest.err; then
7700	  cat conftest.err >&5
7701	# Otherwise, if the output was created with a 0 exit code from
7702	# the compiler, it worked.
7703	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7704	  lt_cv_apple_cc_single_mod=yes
7705	else
7706	  cat conftest.err >&5
7707	fi
7708	rm -rf libconftest.dylib*
7709	rm -f conftest.*
7710      fi
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7713$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7714
7715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7716$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7717if ${lt_cv_ld_exported_symbols_list+:} false; then :
7718  $as_echo_n "(cached) " >&6
7719else
7720  lt_cv_ld_exported_symbols_list=no
7721      save_LDFLAGS=$LDFLAGS
7722      echo "_main" > conftest.sym
7723      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7724      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726
7727int
7728main ()
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_link "$LINENO"; then :
7736  lt_cv_ld_exported_symbols_list=yes
7737else
7738  lt_cv_ld_exported_symbols_list=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext \
7741    conftest$ac_exeext conftest.$ac_ext
7742	LDFLAGS=$save_LDFLAGS
7743
7744fi
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7746$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7747
7748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7749$as_echo_n "checking for -force_load linker flag... " >&6; }
7750if ${lt_cv_ld_force_load+:} false; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753  lt_cv_ld_force_load=no
7754      cat > conftest.c << _LT_EOF
7755int forced_loaded() { return 2;}
7756_LT_EOF
7757      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7758      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7759      echo "$AR cru libconftest.a conftest.o" >&5
7760      $AR cru libconftest.a conftest.o 2>&5
7761      echo "$RANLIB libconftest.a" >&5
7762      $RANLIB libconftest.a 2>&5
7763      cat > conftest.c << _LT_EOF
7764int main() { return 0;}
7765_LT_EOF
7766      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7767      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7768      _lt_result=$?
7769      if test -s conftest.err && $GREP force_load conftest.err; then
7770	cat conftest.err >&5
7771      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7772	lt_cv_ld_force_load=yes
7773      else
7774	cat conftest.err >&5
7775      fi
7776        rm -f conftest.err libconftest.a conftest conftest.c
7777        rm -rf conftest.dSYM
7778
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7781$as_echo "$lt_cv_ld_force_load" >&6; }
7782    case $host_os in
7783    rhapsody* | darwin1.[012])
7784      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7785    darwin1.*)
7786      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7787    darwin*) # darwin 5.x on
7788      # if running on 10.5 or later, the deployment target defaults
7789      # to the OS version, if on x86, and 10.4, the deployment
7790      # target defaults to 10.4. Don't you love it?
7791      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7792	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7793	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7794	10.[012][,.]*)
7795	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7796	10.*)
7797	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7798      esac
7799    ;;
7800  esac
7801    if test yes = "$lt_cv_apple_cc_single_mod"; then
7802      _lt_dar_single_mod='$single_module'
7803    fi
7804    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7805      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7806    else
7807      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7808    fi
7809    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7810      _lt_dsymutil='~$DSYMUTIL $lib || :'
7811    else
7812      _lt_dsymutil=
7813    fi
7814    ;;
7815  esac
7816
7817# func_munge_path_list VARIABLE PATH
7818# -----------------------------------
7819# VARIABLE is name of variable containing _space_ separated list of
7820# directories to be munged by the contents of PATH, which is string
7821# having a format:
7822# "DIR[:DIR]:"
7823#       string "DIR[ DIR]" will be prepended to VARIABLE
7824# ":DIR[:DIR]"
7825#       string "DIR[ DIR]" will be appended to VARIABLE
7826# "DIRP[:DIRP]::[DIRA:]DIRA"
7827#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7828#       "DIRA[ DIRA]" will be appended to VARIABLE
7829# "DIR[:DIR]"
7830#       VARIABLE will be replaced by "DIR[ DIR]"
7831func_munge_path_list ()
7832{
7833    case x$2 in
7834    x)
7835        ;;
7836    *:)
7837        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7838        ;;
7839    x:*)
7840        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7841        ;;
7842    *::*)
7843        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7844        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7845        ;;
7846    *)
7847        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7848        ;;
7849    esac
7850}
7851
7852for ac_header in dlfcn.h
7853do :
7854  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7855"
7856if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7857  cat >>confdefs.h <<_ACEOF
7858#define HAVE_DLFCN_H 1
7859_ACEOF
7860
7861fi
7862
7863done
7864
7865
7866
7867
7868
7869# Set options
7870
7871
7872
7873        enable_dlopen=no
7874
7875
7876  enable_win32_dll=no
7877
7878
7879            # Check whether --enable-shared was given.
7880if test "${enable_shared+set}" = set; then :
7881  enableval=$enable_shared; p=${PACKAGE-default}
7882    case $enableval in
7883    yes) enable_shared=yes ;;
7884    no) enable_shared=no ;;
7885    *)
7886      enable_shared=no
7887      # Look at the argument we got.  We use all the common list separators.
7888      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7889      for pkg in $enableval; do
7890	IFS=$lt_save_ifs
7891	if test "X$pkg" = "X$p"; then
7892	  enable_shared=yes
7893	fi
7894      done
7895      IFS=$lt_save_ifs
7896      ;;
7897    esac
7898else
7899  enable_shared=yes
7900fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910  # Check whether --enable-static was given.
7911if test "${enable_static+set}" = set; then :
7912  enableval=$enable_static; p=${PACKAGE-default}
7913    case $enableval in
7914    yes) enable_static=yes ;;
7915    no) enable_static=no ;;
7916    *)
7917     enable_static=no
7918      # Look at the argument we got.  We use all the common list separators.
7919      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7920      for pkg in $enableval; do
7921	IFS=$lt_save_ifs
7922	if test "X$pkg" = "X$p"; then
7923	  enable_static=yes
7924	fi
7925      done
7926      IFS=$lt_save_ifs
7927      ;;
7928    esac
7929else
7930  enable_static=yes
7931fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942# Check whether --with-pic was given.
7943if test "${with_pic+set}" = set; then :
7944  withval=$with_pic; lt_p=${PACKAGE-default}
7945    case $withval in
7946    yes|no) pic_mode=$withval ;;
7947    *)
7948      pic_mode=default
7949      # Look at the argument we got.  We use all the common list separators.
7950      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7951      for lt_pkg in $withval; do
7952	IFS=$lt_save_ifs
7953	if test "X$lt_pkg" = "X$lt_p"; then
7954	  pic_mode=yes
7955	fi
7956      done
7957      IFS=$lt_save_ifs
7958      ;;
7959    esac
7960else
7961  pic_mode=default
7962fi
7963
7964
7965
7966
7967
7968
7969
7970
7971  # Check whether --enable-fast-install was given.
7972if test "${enable_fast_install+set}" = set; then :
7973  enableval=$enable_fast_install; p=${PACKAGE-default}
7974    case $enableval in
7975    yes) enable_fast_install=yes ;;
7976    no) enable_fast_install=no ;;
7977    *)
7978      enable_fast_install=no
7979      # Look at the argument we got.  We use all the common list separators.
7980      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7981      for pkg in $enableval; do
7982	IFS=$lt_save_ifs
7983	if test "X$pkg" = "X$p"; then
7984	  enable_fast_install=yes
7985	fi
7986      done
7987      IFS=$lt_save_ifs
7988      ;;
7989    esac
7990else
7991  enable_fast_install=yes
7992fi
7993
7994
7995
7996
7997
7998
7999
8000
8001  shared_archive_member_spec=
8002case $host,$enable_shared in
8003power*-*-aix[5-9]*,yes)
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8005$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8006
8007# Check whether --with-aix-soname was given.
8008if test "${with_aix_soname+set}" = set; then :
8009  withval=$with_aix_soname; case $withval in
8010    aix|svr4|both)
8011      ;;
8012    *)
8013      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8014      ;;
8015    esac
8016    lt_cv_with_aix_soname=$with_aix_soname
8017else
8018  if ${lt_cv_with_aix_soname+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  lt_cv_with_aix_soname=aix
8022fi
8023
8024    with_aix_soname=$lt_cv_with_aix_soname
8025fi
8026
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8028$as_echo "$with_aix_soname" >&6; }
8029  if test aix != "$with_aix_soname"; then
8030    # For the AIX way of multilib, we name the shared archive member
8031    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8032    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8033    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8034    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8035    if test 64 = "${OBJECT_MODE-32}"; then
8036      shared_archive_member_spec=shr_64
8037    else
8038      shared_archive_member_spec=shr
8039    fi
8040  fi
8041  ;;
8042*)
8043  with_aix_soname=aix
8044  ;;
8045esac
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056# This can be used to rebuild libtool when needed
8057LIBTOOL_DEPS=$ltmain
8058
8059# Always use our own libtool.
8060LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091test -z "$LN_S" && LN_S="ln -s"
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106if test -n "${ZSH_VERSION+set}"; then
8107   setopt NO_GLOB_SUBST
8108fi
8109
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8111$as_echo_n "checking for objdir... " >&6; }
8112if ${lt_cv_objdir+:} false; then :
8113  $as_echo_n "(cached) " >&6
8114else
8115  rm -f .libs 2>/dev/null
8116mkdir .libs 2>/dev/null
8117if test -d .libs; then
8118  lt_cv_objdir=.libs
8119else
8120  # MS-DOS does not allow filenames that begin with a dot.
8121  lt_cv_objdir=_libs
8122fi
8123rmdir .libs 2>/dev/null
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8126$as_echo "$lt_cv_objdir" >&6; }
8127objdir=$lt_cv_objdir
8128
8129
8130
8131
8132
8133cat >>confdefs.h <<_ACEOF
8134#define LT_OBJDIR "$lt_cv_objdir/"
8135_ACEOF
8136
8137
8138
8139
8140case $host_os in
8141aix3*)
8142  # AIX sometimes has problems with the GCC collect2 program.  For some
8143  # reason, if we set the COLLECT_NAMES environment variable, the problems
8144  # vanish in a puff of smoke.
8145  if test set != "${COLLECT_NAMES+set}"; then
8146    COLLECT_NAMES=
8147    export COLLECT_NAMES
8148  fi
8149  ;;
8150esac
8151
8152# Global variables:
8153ofile=libtool
8154can_build_shared=yes
8155
8156# All known linkers require a '.a' archive for static linking (except MSVC,
8157# which needs '.lib').
8158libext=a
8159
8160with_gnu_ld=$lt_cv_prog_gnu_ld
8161
8162old_CC=$CC
8163old_CFLAGS=$CFLAGS
8164
8165# Set sane defaults for various variables
8166test -z "$CC" && CC=cc
8167test -z "$LTCC" && LTCC=$CC
8168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8169test -z "$LD" && LD=ld
8170test -z "$ac_objext" && ac_objext=o
8171
8172func_cc_basename $compiler
8173cc_basename=$func_cc_basename_result
8174
8175
8176# Only perform the check for file, if the check method requires it
8177test -z "$MAGIC_CMD" && MAGIC_CMD=file
8178case $deplibs_check_method in
8179file_magic*)
8180  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8182$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8183if ${lt_cv_path_MAGIC_CMD+:} false; then :
8184  $as_echo_n "(cached) " >&6
8185else
8186  case $MAGIC_CMD in
8187[\\/*] |  ?:[\\/]*)
8188  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8189  ;;
8190*)
8191  lt_save_MAGIC_CMD=$MAGIC_CMD
8192  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8193  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8194  for ac_dir in $ac_dummy; do
8195    IFS=$lt_save_ifs
8196    test -z "$ac_dir" && ac_dir=.
8197    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8198      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8199      if test -n "$file_magic_test_file"; then
8200	case $deplibs_check_method in
8201	"file_magic "*)
8202	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8203	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8204	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8205	    $EGREP "$file_magic_regex" > /dev/null; then
8206	    :
8207	  else
8208	    cat <<_LT_EOF 1>&2
8209
8210*** Warning: the command libtool uses to detect shared libraries,
8211*** $file_magic_cmd, produces output that libtool cannot recognize.
8212*** The result is that libtool may fail to recognize shared libraries
8213*** as such.  This will affect the creation of libtool libraries that
8214*** depend on shared libraries, but programs linked with such libtool
8215*** libraries will work regardless of this problem.  Nevertheless, you
8216*** may want to report the problem to your system manager and/or to
8217*** bug-libtool@gnu.org
8218
8219_LT_EOF
8220	  fi ;;
8221	esac
8222      fi
8223      break
8224    fi
8225  done
8226  IFS=$lt_save_ifs
8227  MAGIC_CMD=$lt_save_MAGIC_CMD
8228  ;;
8229esac
8230fi
8231
8232MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8233if test -n "$MAGIC_CMD"; then
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8235$as_echo "$MAGIC_CMD" >&6; }
8236else
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242
8243
8244
8245if test -z "$lt_cv_path_MAGIC_CMD"; then
8246  if test -n "$ac_tool_prefix"; then
8247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8248$as_echo_n "checking for file... " >&6; }
8249if ${lt_cv_path_MAGIC_CMD+:} false; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  case $MAGIC_CMD in
8253[\\/*] |  ?:[\\/]*)
8254  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8255  ;;
8256*)
8257  lt_save_MAGIC_CMD=$MAGIC_CMD
8258  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8259  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8260  for ac_dir in $ac_dummy; do
8261    IFS=$lt_save_ifs
8262    test -z "$ac_dir" && ac_dir=.
8263    if test -f "$ac_dir/file"; then
8264      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8265      if test -n "$file_magic_test_file"; then
8266	case $deplibs_check_method in
8267	"file_magic "*)
8268	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8269	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8270	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8271	    $EGREP "$file_magic_regex" > /dev/null; then
8272	    :
8273	  else
8274	    cat <<_LT_EOF 1>&2
8275
8276*** Warning: the command libtool uses to detect shared libraries,
8277*** $file_magic_cmd, produces output that libtool cannot recognize.
8278*** The result is that libtool may fail to recognize shared libraries
8279*** as such.  This will affect the creation of libtool libraries that
8280*** depend on shared libraries, but programs linked with such libtool
8281*** libraries will work regardless of this problem.  Nevertheless, you
8282*** may want to report the problem to your system manager and/or to
8283*** bug-libtool@gnu.org
8284
8285_LT_EOF
8286	  fi ;;
8287	esac
8288      fi
8289      break
8290    fi
8291  done
8292  IFS=$lt_save_ifs
8293  MAGIC_CMD=$lt_save_MAGIC_CMD
8294  ;;
8295esac
8296fi
8297
8298MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8299if test -n "$MAGIC_CMD"; then
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8301$as_echo "$MAGIC_CMD" >&6; }
8302else
8303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
8305fi
8306
8307
8308  else
8309    MAGIC_CMD=:
8310  fi
8311fi
8312
8313  fi
8314  ;;
8315esac
8316
8317# Use C for the default configuration in the libtool script
8318
8319lt_save_CC=$CC
8320ac_ext=c
8321ac_cpp='$CPP $CPPFLAGS'
8322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8324ac_compiler_gnu=$ac_cv_c_compiler_gnu
8325
8326
8327# Source file extension for C test sources.
8328ac_ext=c
8329
8330# Object file extension for compiled C test sources.
8331objext=o
8332objext=$objext
8333
8334# Code to be used in simple compile tests
8335lt_simple_compile_test_code="int some_variable = 0;"
8336
8337# Code to be used in simple link tests
8338lt_simple_link_test_code='int main(){return(0);}'
8339
8340
8341
8342
8343
8344
8345
8346# If no C compiler was specified, use CC.
8347LTCC=${LTCC-"$CC"}
8348
8349# If no C compiler flags were specified, use CFLAGS.
8350LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8351
8352# Allow CC to be a program name with arguments.
8353compiler=$CC
8354
8355# Save the default compiler, since it gets overwritten when the other
8356# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8357compiler_DEFAULT=$CC
8358
8359# save warnings/boilerplate of simple test code
8360ac_outfile=conftest.$ac_objext
8361echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8363_lt_compiler_boilerplate=`cat conftest.err`
8364$RM conftest*
8365
8366ac_outfile=conftest.$ac_objext
8367echo "$lt_simple_link_test_code" >conftest.$ac_ext
8368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8369_lt_linker_boilerplate=`cat conftest.err`
8370$RM -r conftest*
8371
8372
8373## CAVEAT EMPTOR:
8374## There is no encapsulation within the following macros, do not change
8375## the running order or otherwise move them around unless you know exactly
8376## what you are doing...
8377if test -n "$compiler"; then
8378
8379lt_prog_compiler_no_builtin_flag=
8380
8381if test yes = "$GCC"; then
8382  case $cc_basename in
8383  nvcc*)
8384    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8385  *)
8386    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8387  esac
8388
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8390$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8391if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  lt_cv_prog_compiler_rtti_exceptions=no
8395   ac_outfile=conftest.$ac_objext
8396   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8397   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8398   # Insert the option either (1) after the last *FLAGS variable, or
8399   # (2) before a word containing "conftest.", or (3) at the end.
8400   # Note that $ac_compile itself does not contain backslashes and begins
8401   # with a dollar sign (not a hyphen), so the echo should work correctly.
8402   # The option is referenced via a variable to avoid confusing sed.
8403   lt_compile=`echo "$ac_compile" | $SED \
8404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8406   -e 's:$: $lt_compiler_flag:'`
8407   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8408   (eval "$lt_compile" 2>conftest.err)
8409   ac_status=$?
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   if (exit $ac_status) && test -s "$ac_outfile"; then
8413     # The compiler can only warn and ignore the option if not recognized
8414     # So say no if there are warnings other than the usual output.
8415     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8416     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8417     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8418       lt_cv_prog_compiler_rtti_exceptions=yes
8419     fi
8420   fi
8421   $RM conftest*
8422
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8425$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8426
8427if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8428    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8429else
8430    :
8431fi
8432
8433fi
8434
8435
8436
8437
8438
8439
8440  lt_prog_compiler_wl=
8441lt_prog_compiler_pic=
8442lt_prog_compiler_static=
8443
8444
8445  if test yes = "$GCC"; then
8446    lt_prog_compiler_wl='-Wl,'
8447    lt_prog_compiler_static='-static'
8448
8449    case $host_os in
8450      aix*)
8451      # All AIX code is PIC.
8452      if test ia64 = "$host_cpu"; then
8453	# AIX 5 now supports IA64 processor
8454	lt_prog_compiler_static='-Bstatic'
8455      fi
8456      lt_prog_compiler_pic='-fPIC'
8457      ;;
8458
8459    amigaos*)
8460      case $host_cpu in
8461      powerpc)
8462            # see comment about AmigaOS4 .so support
8463            lt_prog_compiler_pic='-fPIC'
8464        ;;
8465      m68k)
8466            # FIXME: we need at least 68020 code to build shared libraries, but
8467            # adding the '-m68020' flag to GCC prevents building anything better,
8468            # like '-m68040'.
8469            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8470        ;;
8471      esac
8472      ;;
8473
8474    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8475      # PIC is the default for these OSes.
8476      ;;
8477
8478    mingw* | cygwin* | pw32* | os2* | cegcc*)
8479      # This hack is so that the source file can tell whether it is being
8480      # built for inclusion in a dll (and should export symbols for example).
8481      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8482      # (--disable-auto-import) libraries
8483      lt_prog_compiler_pic='-DDLL_EXPORT'
8484      case $host_os in
8485      os2*)
8486	lt_prog_compiler_static='$wl-static'
8487	;;
8488      esac
8489      ;;
8490
8491    darwin* | rhapsody*)
8492      # PIC is the default on this platform
8493      # Common symbols not allowed in MH_DYLIB files
8494      lt_prog_compiler_pic='-fno-common'
8495      ;;
8496
8497    haiku*)
8498      # PIC is the default for Haiku.
8499      # The "-static" flag exists, but is broken.
8500      lt_prog_compiler_static=
8501      ;;
8502
8503    hpux*)
8504      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8505      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8506      # sets the default TLS model and affects inlining.
8507      case $host_cpu in
8508      hppa*64*)
8509	# +Z the default
8510	;;
8511      *)
8512	lt_prog_compiler_pic='-fPIC'
8513	;;
8514      esac
8515      ;;
8516
8517    interix[3-9]*)
8518      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8519      # Instead, we relocate shared libraries at runtime.
8520      ;;
8521
8522    msdosdjgpp*)
8523      # Just because we use GCC doesn't mean we suddenly get shared libraries
8524      # on systems that don't support them.
8525      lt_prog_compiler_can_build_shared=no
8526      enable_shared=no
8527      ;;
8528
8529    *nto* | *qnx*)
8530      # QNX uses GNU C++, but need to define -shared option too, otherwise
8531      # it will coredump.
8532      lt_prog_compiler_pic='-fPIC -shared'
8533      ;;
8534
8535    sysv4*MP*)
8536      if test -d /usr/nec; then
8537	lt_prog_compiler_pic=-Kconform_pic
8538      fi
8539      ;;
8540
8541    *)
8542      lt_prog_compiler_pic='-fPIC'
8543      ;;
8544    esac
8545
8546    case $cc_basename in
8547    nvcc*) # Cuda Compiler Driver 2.2
8548      lt_prog_compiler_wl='-Xlinker '
8549      if test -n "$lt_prog_compiler_pic"; then
8550        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8551      fi
8552      ;;
8553    esac
8554  else
8555    # PORTME Check for flag to pass linker flags through the system compiler.
8556    case $host_os in
8557    aix*)
8558      lt_prog_compiler_wl='-Wl,'
8559      if test ia64 = "$host_cpu"; then
8560	# AIX 5 now supports IA64 processor
8561	lt_prog_compiler_static='-Bstatic'
8562      else
8563	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8564      fi
8565      ;;
8566
8567    darwin* | rhapsody*)
8568      # PIC is the default on this platform
8569      # Common symbols not allowed in MH_DYLIB files
8570      lt_prog_compiler_pic='-fno-common'
8571      case $cc_basename in
8572      nagfor*)
8573        # NAG Fortran compiler
8574        lt_prog_compiler_wl='-Wl,-Wl,,'
8575        lt_prog_compiler_pic='-PIC'
8576        lt_prog_compiler_static='-Bstatic'
8577        ;;
8578      esac
8579      ;;
8580
8581    mingw* | cygwin* | pw32* | os2* | cegcc*)
8582      # This hack is so that the source file can tell whether it is being
8583      # built for inclusion in a dll (and should export symbols for example).
8584      lt_prog_compiler_pic='-DDLL_EXPORT'
8585      case $host_os in
8586      os2*)
8587	lt_prog_compiler_static='$wl-static'
8588	;;
8589      esac
8590      ;;
8591
8592    hpux9* | hpux10* | hpux11*)
8593      lt_prog_compiler_wl='-Wl,'
8594      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8595      # not for PA HP-UX.
8596      case $host_cpu in
8597      hppa*64*|ia64*)
8598	# +Z the default
8599	;;
8600      *)
8601	lt_prog_compiler_pic='+Z'
8602	;;
8603      esac
8604      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8605      lt_prog_compiler_static='$wl-a ${wl}archive'
8606      ;;
8607
8608    irix5* | irix6* | nonstopux*)
8609      lt_prog_compiler_wl='-Wl,'
8610      # PIC (with -KPIC) is the default.
8611      lt_prog_compiler_static='-non_shared'
8612      ;;
8613
8614    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8615      case $cc_basename in
8616      # old Intel for x86_64, which still supported -KPIC.
8617      ecc*)
8618	lt_prog_compiler_wl='-Wl,'
8619	lt_prog_compiler_pic='-KPIC'
8620	lt_prog_compiler_static='-static'
8621        ;;
8622      # icc used to be incompatible with GCC.
8623      # ICC 10 doesn't accept -KPIC any more.
8624      icc* | ifort*)
8625	lt_prog_compiler_wl='-Wl,'
8626	lt_prog_compiler_pic='-fPIC'
8627	lt_prog_compiler_static='-static'
8628        ;;
8629      # Lahey Fortran 8.1.
8630      lf95*)
8631	lt_prog_compiler_wl='-Wl,'
8632	lt_prog_compiler_pic='--shared'
8633	lt_prog_compiler_static='--static'
8634	;;
8635      nagfor*)
8636	# NAG Fortran compiler
8637	lt_prog_compiler_wl='-Wl,-Wl,,'
8638	lt_prog_compiler_pic='-PIC'
8639	lt_prog_compiler_static='-Bstatic'
8640	;;
8641      tcc*)
8642	# Fabrice Bellard et al's Tiny C Compiler
8643	lt_prog_compiler_wl='-Wl,'
8644	lt_prog_compiler_pic='-fPIC'
8645	lt_prog_compiler_static='-static'
8646	;;
8647      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8648        # Portland Group compilers (*not* the Pentium gcc compiler,
8649	# which looks to be a dead project)
8650	lt_prog_compiler_wl='-Wl,'
8651	lt_prog_compiler_pic='-fpic'
8652	lt_prog_compiler_static='-Bstatic'
8653        ;;
8654      ccc*)
8655        lt_prog_compiler_wl='-Wl,'
8656        # All Alpha code is PIC.
8657        lt_prog_compiler_static='-non_shared'
8658        ;;
8659      xl* | bgxl* | bgf* | mpixl*)
8660	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8661	lt_prog_compiler_wl='-Wl,'
8662	lt_prog_compiler_pic='-qpic'
8663	lt_prog_compiler_static='-qstaticlink'
8664	;;
8665      *)
8666	case `$CC -V 2>&1 | sed 5q` in
8667	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8668	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8669	  lt_prog_compiler_pic='-KPIC'
8670	  lt_prog_compiler_static='-Bstatic'
8671	  lt_prog_compiler_wl=''
8672	  ;;
8673	*Sun\ F* | *Sun*Fortran*)
8674	  lt_prog_compiler_pic='-KPIC'
8675	  lt_prog_compiler_static='-Bstatic'
8676	  lt_prog_compiler_wl='-Qoption ld '
8677	  ;;
8678	*Sun\ C*)
8679	  # Sun C 5.9
8680	  lt_prog_compiler_pic='-KPIC'
8681	  lt_prog_compiler_static='-Bstatic'
8682	  lt_prog_compiler_wl='-Wl,'
8683	  ;;
8684        *Intel*\ [CF]*Compiler*)
8685	  lt_prog_compiler_wl='-Wl,'
8686	  lt_prog_compiler_pic='-fPIC'
8687	  lt_prog_compiler_static='-static'
8688	  ;;
8689	*Portland\ Group*)
8690	  lt_prog_compiler_wl='-Wl,'
8691	  lt_prog_compiler_pic='-fpic'
8692	  lt_prog_compiler_static='-Bstatic'
8693	  ;;
8694	esac
8695	;;
8696      esac
8697      ;;
8698
8699    newsos6)
8700      lt_prog_compiler_pic='-KPIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      ;;
8703
8704    *nto* | *qnx*)
8705      # QNX uses GNU C++, but need to define -shared option too, otherwise
8706      # it will coredump.
8707      lt_prog_compiler_pic='-fPIC -shared'
8708      ;;
8709
8710    osf3* | osf4* | osf5*)
8711      lt_prog_compiler_wl='-Wl,'
8712      # All OSF/1 code is PIC.
8713      lt_prog_compiler_static='-non_shared'
8714      ;;
8715
8716    rdos*)
8717      lt_prog_compiler_static='-non_shared'
8718      ;;
8719
8720    solaris*)
8721      lt_prog_compiler_pic='-KPIC'
8722      lt_prog_compiler_static='-Bstatic'
8723      case $cc_basename in
8724      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8725	lt_prog_compiler_wl='-Qoption ld ';;
8726      *)
8727	lt_prog_compiler_wl='-Wl,';;
8728      esac
8729      ;;
8730
8731    sunos4*)
8732      lt_prog_compiler_wl='-Qoption ld '
8733      lt_prog_compiler_pic='-PIC'
8734      lt_prog_compiler_static='-Bstatic'
8735      ;;
8736
8737    sysv4 | sysv4.2uw2* | sysv4.3*)
8738      lt_prog_compiler_wl='-Wl,'
8739      lt_prog_compiler_pic='-KPIC'
8740      lt_prog_compiler_static='-Bstatic'
8741      ;;
8742
8743    sysv4*MP*)
8744      if test -d /usr/nec; then
8745	lt_prog_compiler_pic='-Kconform_pic'
8746	lt_prog_compiler_static='-Bstatic'
8747      fi
8748      ;;
8749
8750    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8751      lt_prog_compiler_wl='-Wl,'
8752      lt_prog_compiler_pic='-KPIC'
8753      lt_prog_compiler_static='-Bstatic'
8754      ;;
8755
8756    unicos*)
8757      lt_prog_compiler_wl='-Wl,'
8758      lt_prog_compiler_can_build_shared=no
8759      ;;
8760
8761    uts4*)
8762      lt_prog_compiler_pic='-pic'
8763      lt_prog_compiler_static='-Bstatic'
8764      ;;
8765
8766    *)
8767      lt_prog_compiler_can_build_shared=no
8768      ;;
8769    esac
8770  fi
8771
8772case $host_os in
8773  # For platforms that do not support PIC, -DPIC is meaningless:
8774  *djgpp*)
8775    lt_prog_compiler_pic=
8776    ;;
8777  *)
8778    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8779    ;;
8780esac
8781
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8783$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8784if ${lt_cv_prog_compiler_pic+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8790$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8791lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8792
8793#
8794# Check to make sure the PIC flag actually works.
8795#
8796if test -n "$lt_prog_compiler_pic"; then
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8799if ${lt_cv_prog_compiler_pic_works+:} false; then :
8800  $as_echo_n "(cached) " >&6
8801else
8802  lt_cv_prog_compiler_pic_works=no
8803   ac_outfile=conftest.$ac_objext
8804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8806   # Insert the option either (1) after the last *FLAGS variable, or
8807   # (2) before a word containing "conftest.", or (3) at the end.
8808   # Note that $ac_compile itself does not contain backslashes and begins
8809   # with a dollar sign (not a hyphen), so the echo should work correctly.
8810   # The option is referenced via a variable to avoid confusing sed.
8811   lt_compile=`echo "$ac_compile" | $SED \
8812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814   -e 's:$: $lt_compiler_flag:'`
8815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816   (eval "$lt_compile" 2>conftest.err)
8817   ac_status=$?
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   if (exit $ac_status) && test -s "$ac_outfile"; then
8821     # The compiler can only warn and ignore the option if not recognized
8822     # So say no if there are warnings other than the usual output.
8823     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8824     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8825     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8826       lt_cv_prog_compiler_pic_works=yes
8827     fi
8828   fi
8829   $RM conftest*
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8834
8835if test yes = "$lt_cv_prog_compiler_pic_works"; then
8836    case $lt_prog_compiler_pic in
8837     "" | " "*) ;;
8838     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8839     esac
8840else
8841    lt_prog_compiler_pic=
8842     lt_prog_compiler_can_build_shared=no
8843fi
8844
8845fi
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857#
8858# Check to make sure the static flag actually works.
8859#
8860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8863if ${lt_cv_prog_compiler_static_works+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  lt_cv_prog_compiler_static_works=no
8867   save_LDFLAGS=$LDFLAGS
8868   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8869   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8870   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8871     # The linker can only warn and ignore the option if not recognized
8872     # So say no if there are warnings
8873     if test -s conftest.err; then
8874       # Append any errors to the config.log.
8875       cat conftest.err 1>&5
8876       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8877       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878       if diff conftest.exp conftest.er2 >/dev/null; then
8879         lt_cv_prog_compiler_static_works=yes
8880       fi
8881     else
8882       lt_cv_prog_compiler_static_works=yes
8883     fi
8884   fi
8885   $RM -r conftest*
8886   LDFLAGS=$save_LDFLAGS
8887
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8890$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8891
8892if test yes = "$lt_cv_prog_compiler_static_works"; then
8893    :
8894else
8895    lt_prog_compiler_static=
8896fi
8897
8898
8899
8900
8901
8902
8903
8904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8906if ${lt_cv_prog_compiler_c_o+:} false; then :
8907  $as_echo_n "(cached) " >&6
8908else
8909  lt_cv_prog_compiler_c_o=no
8910   $RM -r conftest 2>/dev/null
8911   mkdir conftest
8912   cd conftest
8913   mkdir out
8914   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915
8916   lt_compiler_flag="-o out/conftest2.$ac_objext"
8917   # Insert the option either (1) after the last *FLAGS variable, or
8918   # (2) before a word containing "conftest.", or (3) at the end.
8919   # Note that $ac_compile itself does not contain backslashes and begins
8920   # with a dollar sign (not a hyphen), so the echo should work correctly.
8921   lt_compile=`echo "$ac_compile" | $SED \
8922   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924   -e 's:$: $lt_compiler_flag:'`
8925   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926   (eval "$lt_compile" 2>out/conftest.err)
8927   ac_status=$?
8928   cat out/conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8931   then
8932     # The compiler can only warn and ignore the option if not recognized
8933     # So say no if there are warnings
8934     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8935     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8936     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8937       lt_cv_prog_compiler_c_o=yes
8938     fi
8939   fi
8940   chmod u+w . 2>&5
8941   $RM conftest*
8942   # SGI C++ compiler will create directory out/ii_files/ for
8943   # template instantiation
8944   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8945   $RM out/* && rmdir out
8946   cd ..
8947   $RM -r conftest
8948   $RM conftest*
8949
8950fi
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8952$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8953
8954
8955
8956
8957
8958
8959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8961if ${lt_cv_prog_compiler_c_o+:} false; then :
8962  $as_echo_n "(cached) " >&6
8963else
8964  lt_cv_prog_compiler_c_o=no
8965   $RM -r conftest 2>/dev/null
8966   mkdir conftest
8967   cd conftest
8968   mkdir out
8969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970
8971   lt_compiler_flag="-o out/conftest2.$ac_objext"
8972   # Insert the option either (1) after the last *FLAGS variable, or
8973   # (2) before a word containing "conftest.", or (3) at the end.
8974   # Note that $ac_compile itself does not contain backslashes and begins
8975   # with a dollar sign (not a hyphen), so the echo should work correctly.
8976   lt_compile=`echo "$ac_compile" | $SED \
8977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979   -e 's:$: $lt_compiler_flag:'`
8980   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981   (eval "$lt_compile" 2>out/conftest.err)
8982   ac_status=$?
8983   cat out/conftest.err >&5
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986   then
8987     # The compiler can only warn and ignore the option if not recognized
8988     # So say no if there are warnings
8989     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8992       lt_cv_prog_compiler_c_o=yes
8993     fi
8994   fi
8995   chmod u+w . 2>&5
8996   $RM conftest*
8997   # SGI C++ compiler will create directory out/ii_files/ for
8998   # template instantiation
8999   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9000   $RM out/* && rmdir out
9001   cd ..
9002   $RM -r conftest
9003   $RM conftest*
9004
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9008
9009
9010
9011
9012hard_links=nottested
9013if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9014  # do not overwrite the value of need_locks provided by the user
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9016$as_echo_n "checking if we can lock with hard links... " >&6; }
9017  hard_links=yes
9018  $RM conftest*
9019  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9020  touch conftest.a
9021  ln conftest.a conftest.b 2>&5 || hard_links=no
9022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9024$as_echo "$hard_links" >&6; }
9025  if test no = "$hard_links"; then
9026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9027$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9028    need_locks=warn
9029  fi
9030else
9031  need_locks=no
9032fi
9033
9034
9035
9036
9037
9038
9039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9041
9042  runpath_var=
9043  allow_undefined_flag=
9044  always_export_symbols=no
9045  archive_cmds=
9046  archive_expsym_cmds=
9047  compiler_needs_object=no
9048  enable_shared_with_static_runtimes=no
9049  export_dynamic_flag_spec=
9050  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9051  hardcode_automatic=no
9052  hardcode_direct=no
9053  hardcode_direct_absolute=no
9054  hardcode_libdir_flag_spec=
9055  hardcode_libdir_separator=
9056  hardcode_minus_L=no
9057  hardcode_shlibpath_var=unsupported
9058  inherit_rpath=no
9059  link_all_deplibs=unknown
9060  module_cmds=
9061  module_expsym_cmds=
9062  old_archive_from_new_cmds=
9063  old_archive_from_expsyms_cmds=
9064  thread_safe_flag_spec=
9065  whole_archive_flag_spec=
9066  # include_expsyms should be a list of space-separated symbols to be *always*
9067  # included in the symbol list
9068  include_expsyms=
9069  # exclude_expsyms can be an extended regexp of symbols to exclude
9070  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9071  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9072  # as well as any symbol that contains 'd'.
9073  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9074  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9075  # platforms (ab)use it in PIC code, but their linkers get confused if
9076  # the symbol is explicitly referenced.  Since portable code cannot
9077  # rely on this symbol name, it's probably fine to never include it in
9078  # preloaded symbol tables.
9079  # Exclude shared library initialization/finalization symbols.
9080  extract_expsyms_cmds=
9081
9082  case $host_os in
9083  cygwin* | mingw* | pw32* | cegcc*)
9084    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9085    # When not using gcc, we currently assume that we are using
9086    # Microsoft Visual C++.
9087    if test yes != "$GCC"; then
9088      with_gnu_ld=no
9089    fi
9090    ;;
9091  interix*)
9092    # we just hope/assume this is gcc and not c89 (= MSVC++)
9093    with_gnu_ld=yes
9094    ;;
9095  openbsd* | bitrig*)
9096    with_gnu_ld=no
9097    ;;
9098  esac
9099
9100  ld_shlibs=yes
9101
9102  # On some targets, GNU ld is compatible enough with the native linker
9103  # that we're better off using the native interface for both.
9104  lt_use_gnu_ld_interface=no
9105  if test yes = "$with_gnu_ld"; then
9106    case $host_os in
9107      aix*)
9108	# The AIX port of GNU ld has always aspired to compatibility
9109	# with the native linker.  However, as the warning in the GNU ld
9110	# block says, versions before 2.19.5* couldn't really create working
9111	# shared libraries, regardless of the interface used.
9112	case `$LD -v 2>&1` in
9113	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9114	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9115	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9116	  *)
9117	    lt_use_gnu_ld_interface=yes
9118	    ;;
9119	esac
9120	;;
9121      *)
9122	lt_use_gnu_ld_interface=yes
9123	;;
9124    esac
9125  fi
9126
9127  if test yes = "$lt_use_gnu_ld_interface"; then
9128    # If archive_cmds runs LD, not CC, wlarc should be empty
9129    wlarc='$wl'
9130
9131    # Set some defaults for GNU ld with shared library support. These
9132    # are reset later if shared libraries are not supported. Putting them
9133    # here allows them to be overridden if necessary.
9134    runpath_var=LD_RUN_PATH
9135    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9136    export_dynamic_flag_spec='$wl--export-dynamic'
9137    # ancient GNU ld didn't support --whole-archive et. al.
9138    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9139      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9140    else
9141      whole_archive_flag_spec=
9142    fi
9143    supports_anon_versioning=no
9144    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9145      *GNU\ gold*) supports_anon_versioning=yes ;;
9146      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9147      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9148      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9149      *\ 2.11.*) ;; # other 2.11 versions
9150      *) supports_anon_versioning=yes ;;
9151    esac
9152
9153    # See if GNU ld supports shared libraries.
9154    case $host_os in
9155    aix[3-9]*)
9156      # On AIX/PPC, the GNU linker is very broken
9157      if test ia64 != "$host_cpu"; then
9158	ld_shlibs=no
9159	cat <<_LT_EOF 1>&2
9160
9161*** Warning: the GNU linker, at least up to release 2.19, is reported
9162*** to be unable to reliably create shared libraries on AIX.
9163*** Therefore, libtool is disabling shared libraries support.  If you
9164*** really care for shared libraries, you may want to install binutils
9165*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9166*** You will then need to restart the configuration process.
9167
9168_LT_EOF
9169      fi
9170      ;;
9171
9172    amigaos*)
9173      case $host_cpu in
9174      powerpc)
9175            # see comment about AmigaOS4 .so support
9176            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9177            archive_expsym_cmds=''
9178        ;;
9179      m68k)
9180            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)'
9181            hardcode_libdir_flag_spec='-L$libdir'
9182            hardcode_minus_L=yes
9183        ;;
9184      esac
9185      ;;
9186
9187    beos*)
9188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9189	allow_undefined_flag=unsupported
9190	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9191	# support --undefined.  This deserves some investigation.  FIXME
9192	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9193      else
9194	ld_shlibs=no
9195      fi
9196      ;;
9197
9198    cygwin* | mingw* | pw32* | cegcc*)
9199      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9200      # as there is no search path for DLLs.
9201      hardcode_libdir_flag_spec='-L$libdir'
9202      export_dynamic_flag_spec='$wl--export-all-symbols'
9203      allow_undefined_flag=unsupported
9204      always_export_symbols=no
9205      enable_shared_with_static_runtimes=yes
9206      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'
9207      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9208
9209      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9210        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9211	# If the export-symbols file already is a .def file, use it as
9212	# is; otherwise, prepend EXPORTS...
9213	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9214          cp $export_symbols $output_objdir/$soname.def;
9215        else
9216          echo EXPORTS > $output_objdir/$soname.def;
9217          cat $export_symbols >> $output_objdir/$soname.def;
9218        fi~
9219        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220      else
9221	ld_shlibs=no
9222      fi
9223      ;;
9224
9225    haiku*)
9226      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9227      link_all_deplibs=yes
9228      ;;
9229
9230    os2*)
9231      hardcode_libdir_flag_spec='-L$libdir'
9232      hardcode_minus_L=yes
9233      allow_undefined_flag=unsupported
9234      shrext_cmds=.dll
9235      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9236	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9237	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9238	$ECHO EXPORTS >> $output_objdir/$libname.def~
9239	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9240	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9241	emximp -o $lib $output_objdir/$libname.def'
9242      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9243	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9244	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9245	$ECHO EXPORTS >> $output_objdir/$libname.def~
9246	prefix_cmds="$SED"~
9247	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9248	  prefix_cmds="$prefix_cmds -e 1d";
9249	fi~
9250	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9251	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9252	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9253	emximp -o $lib $output_objdir/$libname.def'
9254      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9255      enable_shared_with_static_runtimes=yes
9256      ;;
9257
9258    interix[3-9]*)
9259      hardcode_direct=no
9260      hardcode_shlibpath_var=no
9261      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9262      export_dynamic_flag_spec='$wl-E'
9263      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9264      # Instead, shared libraries are loaded at an image base (0x10000000 by
9265      # default) and relocated if they conflict, which is a slow very memory
9266      # consuming and fragmenting process.  To avoid this, we pick a random,
9267      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9268      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9269      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9270      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'
9271      ;;
9272
9273    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9274      tmp_diet=no
9275      if test linux-dietlibc = "$host_os"; then
9276	case $cc_basename in
9277	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9278	esac
9279      fi
9280      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9281	 && test no = "$tmp_diet"
9282      then
9283	tmp_addflag=' $pic_flag'
9284	tmp_sharedflag='-shared'
9285	case $cc_basename,$host_cpu in
9286        pgcc*)				# Portland Group C compiler
9287	  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'
9288	  tmp_addflag=' $pic_flag'
9289	  ;;
9290	pgf77* | pgf90* | pgf95* | pgfortran*)
9291					# Portland Group f77 and f90 compilers
9292	  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'
9293	  tmp_addflag=' $pic_flag -Mnomain' ;;
9294	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9295	  tmp_addflag=' -i_dynamic' ;;
9296	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9297	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9298	ifc* | ifort*)			# Intel Fortran compiler
9299	  tmp_addflag=' -nofor_main' ;;
9300	lf95*)				# Lahey Fortran 8.1
9301	  whole_archive_flag_spec=
9302	  tmp_sharedflag='--shared' ;;
9303        nagfor*)                        # NAGFOR 5.3
9304          tmp_sharedflag='-Wl,-shared' ;;
9305	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9306	  tmp_sharedflag='-qmkshrobj'
9307	  tmp_addflag= ;;
9308	nvcc*)	# Cuda Compiler Driver 2.2
9309	  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'
9310	  compiler_needs_object=yes
9311	  ;;
9312	esac
9313	case `$CC -V 2>&1 | sed 5q` in
9314	*Sun\ C*)			# Sun C 5.9
9315	  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'
9316	  compiler_needs_object=yes
9317	  tmp_sharedflag='-G' ;;
9318	*Sun\ F*)			# Sun Fortran 8.3
9319	  tmp_sharedflag='-G' ;;
9320	esac
9321	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9322
9323        if test yes = "$supports_anon_versioning"; then
9324          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9325            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326            echo "local: *; };" >> $output_objdir/$libname.ver~
9327            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9328        fi
9329
9330	case $cc_basename in
9331	tcc*)
9332	  export_dynamic_flag_spec='-rdynamic'
9333	  ;;
9334	xlf* | bgf* | bgxlf* | mpixlf*)
9335	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9336	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9337	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9338	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9339	  if test yes = "$supports_anon_versioning"; then
9340	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9341              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342              echo "local: *; };" >> $output_objdir/$libname.ver~
9343              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344	  fi
9345	  ;;
9346	esac
9347      else
9348        ld_shlibs=no
9349      fi
9350      ;;
9351
9352    netbsd*)
9353      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355	wlarc=
9356      else
9357	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9358	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9359      fi
9360      ;;
9361
9362    solaris*)
9363      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9364	ld_shlibs=no
9365	cat <<_LT_EOF 1>&2
9366
9367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9368*** create shared libraries on Solaris systems.  Therefore, libtool
9369*** is disabling shared libraries support.  We urge you to upgrade GNU
9370*** binutils to release 2.9.1 or newer.  Another option is to modify
9371*** your PATH or compiler configuration so that the native linker is
9372*** used, and then restart.
9373
9374_LT_EOF
9375      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9377	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9378      else
9379	ld_shlibs=no
9380      fi
9381      ;;
9382
9383    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9384      case `$LD -v 2>&1` in
9385        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386	ld_shlibs=no
9387	cat <<_LT_EOF 1>&2
9388
9389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9390*** reliably create shared libraries on SCO systems.  Therefore, libtool
9391*** is disabling shared libraries support.  We urge you to upgrade GNU
9392*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9393*** your PATH or compiler configuration so that the native linker is
9394*** used, and then restart.
9395
9396_LT_EOF
9397	;;
9398	*)
9399	  # For security reasons, it is highly recommended that you always
9400	  # use absolute paths for naming shared libraries, and exclude the
9401	  # DT_RUNPATH tag from executables and libraries.  But doing so
9402	  # requires that you compile everything twice, which is a pain.
9403	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9405	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9406	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9407	  else
9408	    ld_shlibs=no
9409	  fi
9410	;;
9411      esac
9412      ;;
9413
9414    sunos4*)
9415      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416      wlarc=
9417      hardcode_direct=yes
9418      hardcode_shlibpath_var=no
9419      ;;
9420
9421    *)
9422      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9424	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9425      else
9426	ld_shlibs=no
9427      fi
9428      ;;
9429    esac
9430
9431    if test no = "$ld_shlibs"; then
9432      runpath_var=
9433      hardcode_libdir_flag_spec=
9434      export_dynamic_flag_spec=
9435      whole_archive_flag_spec=
9436    fi
9437  else
9438    # PORTME fill in a description of your system's linker (not GNU ld)
9439    case $host_os in
9440    aix3*)
9441      allow_undefined_flag=unsupported
9442      always_export_symbols=yes
9443      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'
9444      # Note: this linker hardcodes the directories in LIBPATH if there
9445      # are no directories specified by -L.
9446      hardcode_minus_L=yes
9447      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9448	# Neither direct hardcoding nor static linking is supported with a
9449	# broken collect2.
9450	hardcode_direct=unsupported
9451      fi
9452      ;;
9453
9454    aix[4-9]*)
9455      if test ia64 = "$host_cpu"; then
9456	# On IA64, the linker does run time linking by default, so we don't
9457	# have to do anything special.
9458	aix_use_runtimelinking=no
9459	exp_sym_flag='-Bexport'
9460	no_entry_flag=
9461      else
9462	# If we're using GNU nm, then we don't want the "-C" option.
9463	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9464	# Without the "-l" option, or with the "-B" option, AIX nm treats
9465	# weak defined symbols like other global defined symbols, whereas
9466	# GNU nm marks them as "W".
9467	# While the 'weak' keyword is ignored in the Export File, we need
9468	# it in the Import File for the 'aix-soname' feature, so we have
9469	# to replace the "-B" option with "-P" for AIX nm.
9470	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471	  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'
9472	else
9473	  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'
9474	fi
9475	aix_use_runtimelinking=no
9476
9477	# Test if we are trying to use run time linking or normal
9478	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479	# have runtime linking enabled, and use it for executables.
9480	# For shared libraries, we enable/disable runtime linking
9481	# depending on the kind of the shared library created -
9482	# when "with_aix_soname,aix_use_runtimelinking" is:
9483	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9484	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9485	#            lib.a           static archive
9486	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9487	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9488	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9489	#            lib.a(lib.so.V) shared, rtl:no
9490	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9491	#            lib.a           static archive
9492	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9493	  for ld_flag in $LDFLAGS; do
9494	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9495	    aix_use_runtimelinking=yes
9496	    break
9497	  fi
9498	  done
9499	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9500	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9501	    # so we don't have lib.a shared libs to link our executables.
9502	    # We have to force runtime linking in this case.
9503	    aix_use_runtimelinking=yes
9504	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9505	  fi
9506	  ;;
9507	esac
9508
9509	exp_sym_flag='-bexport'
9510	no_entry_flag='-bnoentry'
9511      fi
9512
9513      # When large executables or shared objects are built, AIX ld can
9514      # have problems creating the table of contents.  If linking a library
9515      # or program results in "error TOC overflow" add -mminimal-toc to
9516      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9517      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9518
9519      archive_cmds=''
9520      hardcode_direct=yes
9521      hardcode_direct_absolute=yes
9522      hardcode_libdir_separator=':'
9523      link_all_deplibs=yes
9524      file_list_spec='$wl-f,'
9525      case $with_aix_soname,$aix_use_runtimelinking in
9526      aix,*) ;; # traditional, no import file
9527      svr4,* | *,yes) # use import file
9528	# The Import File defines what to hardcode.
9529	hardcode_direct=no
9530	hardcode_direct_absolute=no
9531	;;
9532      esac
9533
9534      if test yes = "$GCC"; then
9535	case $host_os in aix4.[012]|aix4.[012].*)
9536	# We only want to do this on AIX 4.2 and lower, the check
9537	# below for broken collect2 doesn't work under 4.3+
9538	  collect2name=`$CC -print-prog-name=collect2`
9539	  if test -f "$collect2name" &&
9540	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9541	  then
9542	  # We have reworked collect2
9543	  :
9544	  else
9545	  # We have old collect2
9546	  hardcode_direct=unsupported
9547	  # It fails to find uninstalled libraries when the uninstalled
9548	  # path is not listed in the libpath.  Setting hardcode_minus_L
9549	  # to unsupported forces relinking
9550	  hardcode_minus_L=yes
9551	  hardcode_libdir_flag_spec='-L$libdir'
9552	  hardcode_libdir_separator=
9553	  fi
9554	  ;;
9555	esac
9556	shared_flag='-shared'
9557	if test yes = "$aix_use_runtimelinking"; then
9558	  shared_flag="$shared_flag "'$wl-G'
9559	fi
9560	# Need to ensure runtime linking is disabled for the traditional
9561	# shared library, or the linker may eventually find shared libraries
9562	# /with/ Import File - we do not want to mix them.
9563	shared_flag_aix='-shared'
9564	shared_flag_svr4='-shared $wl-G'
9565      else
9566	# not using gcc
9567	if test ia64 = "$host_cpu"; then
9568	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9569	# chokes on -Wl,-G. The following line is correct:
9570	  shared_flag='-G'
9571	else
9572	  if test yes = "$aix_use_runtimelinking"; then
9573	    shared_flag='$wl-G'
9574	  else
9575	    shared_flag='$wl-bM:SRE'
9576	  fi
9577	  shared_flag_aix='$wl-bM:SRE'
9578	  shared_flag_svr4='$wl-G'
9579	fi
9580      fi
9581
9582      export_dynamic_flag_spec='$wl-bexpall'
9583      # It seems that -bexpall does not export symbols beginning with
9584      # underscore (_), so it is better to generate a list of symbols to export.
9585      always_export_symbols=yes
9586      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9587	# Warning - without using the other runtime loading flags (-brtl),
9588	# -berok will link without error, but may produce a broken library.
9589	allow_undefined_flag='-berok'
9590        # Determine the default libpath from the value encoded in an
9591        # empty executable.
9592        if test set = "${lt_cv_aix_libpath+set}"; then
9593  aix_libpath=$lt_cv_aix_libpath
9594else
9595  if ${lt_cv_aix_libpath_+:} false; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600
9601int
9602main ()
9603{
9604
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610
9611  lt_aix_libpath_sed='
9612      /Import File Strings/,/^$/ {
9613	  /^0/ {
9614	      s/^0  *\([^ ]*\) *$/\1/
9615	      p
9616	  }
9617      }'
9618  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619  # Check for a 64-bit object if we didn't find anything.
9620  if test -z "$lt_cv_aix_libpath_"; then
9621    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622  fi
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625    conftest$ac_exeext conftest.$ac_ext
9626  if test -z "$lt_cv_aix_libpath_"; then
9627    lt_cv_aix_libpath_=/usr/lib:/lib
9628  fi
9629
9630fi
9631
9632  aix_libpath=$lt_cv_aix_libpath_
9633fi
9634
9635        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9636        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
9637      else
9638	if test ia64 = "$host_cpu"; then
9639	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9640	  allow_undefined_flag="-z nodefs"
9641	  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"
9642	else
9643	 # Determine the default libpath from the value encoded in an
9644	 # empty executable.
9645	 if test set = "${lt_cv_aix_libpath+set}"; then
9646  aix_libpath=$lt_cv_aix_libpath
9647else
9648  if ${lt_cv_aix_libpath_+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653
9654int
9655main ()
9656{
9657
9658  ;
9659  return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"; then :
9663
9664  lt_aix_libpath_sed='
9665      /Import File Strings/,/^$/ {
9666	  /^0/ {
9667	      s/^0  *\([^ ]*\) *$/\1/
9668	      p
9669	  }
9670      }'
9671  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672  # Check for a 64-bit object if we didn't find anything.
9673  if test -z "$lt_cv_aix_libpath_"; then
9674    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675  fi
9676fi
9677rm -f core conftest.err conftest.$ac_objext \
9678    conftest$ac_exeext conftest.$ac_ext
9679  if test -z "$lt_cv_aix_libpath_"; then
9680    lt_cv_aix_libpath_=/usr/lib:/lib
9681  fi
9682
9683fi
9684
9685  aix_libpath=$lt_cv_aix_libpath_
9686fi
9687
9688	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9689	  # Warning - without using the other run time loading flags,
9690	  # -berok will link without error, but may produce a broken library.
9691	  no_undefined_flag=' $wl-bernotok'
9692	  allow_undefined_flag=' $wl-berok'
9693	  if test yes = "$with_gnu_ld"; then
9694	    # We only use this code for GNU lds that support --whole-archive.
9695	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9696	  else
9697	    # Exported symbols can be pulled into shared objects from archives
9698	    whole_archive_flag_spec='$convenience'
9699	  fi
9700	  archive_cmds_need_lc=yes
9701	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9702	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9703	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9704	  if test svr4 != "$with_aix_soname"; then
9705	    # This is similar to how AIX traditionally builds its shared libraries.
9706	    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'
9707	  fi
9708	  if test aix != "$with_aix_soname"; then
9709	    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'
9710	  else
9711	    # used by -dlpreopen to get the symbols
9712	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9713	  fi
9714	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9715	fi
9716      fi
9717      ;;
9718
9719    amigaos*)
9720      case $host_cpu in
9721      powerpc)
9722            # see comment about AmigaOS4 .so support
9723            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9724            archive_expsym_cmds=''
9725        ;;
9726      m68k)
9727            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)'
9728            hardcode_libdir_flag_spec='-L$libdir'
9729            hardcode_minus_L=yes
9730        ;;
9731      esac
9732      ;;
9733
9734    bsdi[45]*)
9735      export_dynamic_flag_spec=-rdynamic
9736      ;;
9737
9738    cygwin* | mingw* | pw32* | cegcc*)
9739      # When not using gcc, we currently assume that we are using
9740      # Microsoft Visual C++.
9741      # hardcode_libdir_flag_spec is actually meaningless, as there is
9742      # no search path for DLLs.
9743      case $cc_basename in
9744      cl*)
9745	# Native MSVC
9746	hardcode_libdir_flag_spec=' '
9747	allow_undefined_flag=unsupported
9748	always_export_symbols=yes
9749	file_list_spec='@'
9750	# Tell ltmain to make .lib files, not .a files.
9751	libext=lib
9752	# Tell ltmain to make .dll files, not .so files.
9753	shrext_cmds=.dll
9754	# FIXME: Setting linknames here is a bad hack.
9755	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9756	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9757            cp "$export_symbols" "$output_objdir/$soname.def";
9758            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9759          else
9760            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9761          fi~
9762          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9763          linknames='
9764	# The linker will not automatically build a static lib if we build a DLL.
9765	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9766	enable_shared_with_static_runtimes=yes
9767	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9768	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9769	# Don't use ranlib
9770	old_postinstall_cmds='chmod 644 $oldlib'
9771	postlink_cmds='lt_outputfile="@OUTPUT@"~
9772          lt_tool_outputfile="@TOOL_OUTPUT@"~
9773          case $lt_outputfile in
9774            *.exe|*.EXE) ;;
9775            *)
9776              lt_outputfile=$lt_outputfile.exe
9777              lt_tool_outputfile=$lt_tool_outputfile.exe
9778              ;;
9779          esac~
9780          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9781            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9782            $RM "$lt_outputfile.manifest";
9783          fi'
9784	;;
9785      *)
9786	# Assume MSVC wrapper
9787	hardcode_libdir_flag_spec=' '
9788	allow_undefined_flag=unsupported
9789	# Tell ltmain to make .lib files, not .a files.
9790	libext=lib
9791	# Tell ltmain to make .dll files, not .so files.
9792	shrext_cmds=.dll
9793	# FIXME: Setting linknames here is a bad hack.
9794	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9795	# The linker will automatically build a .lib file if we build a DLL.
9796	old_archive_from_new_cmds='true'
9797	# FIXME: Should let the user specify the lib program.
9798	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9799	enable_shared_with_static_runtimes=yes
9800	;;
9801      esac
9802      ;;
9803
9804    darwin* | rhapsody*)
9805
9806
9807  archive_cmds_need_lc=no
9808  hardcode_direct=no
9809  hardcode_automatic=yes
9810  hardcode_shlibpath_var=unsupported
9811  if test yes = "$lt_cv_ld_force_load"; then
9812    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\"`'
9813
9814  else
9815    whole_archive_flag_spec=''
9816  fi
9817  link_all_deplibs=yes
9818  allow_undefined_flag=$_lt_dar_allow_undefined
9819  case $cc_basename in
9820     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9821     *) _lt_dar_can_shared=$GCC ;;
9822  esac
9823  if test yes = "$_lt_dar_can_shared"; then
9824    output_verbose_link_cmd=func_echo_all
9825    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9826    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9827    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"
9828    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"
9829
9830  else
9831  ld_shlibs=no
9832  fi
9833
9834      ;;
9835
9836    dgux*)
9837      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838      hardcode_libdir_flag_spec='-L$libdir'
9839      hardcode_shlibpath_var=no
9840      ;;
9841
9842    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9843    # support.  Future versions do this automatically, but an explicit c++rt0.o
9844    # does not break anything, and helps significantly (at the cost of a little
9845    # extra space).
9846    freebsd2.2*)
9847      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9848      hardcode_libdir_flag_spec='-R$libdir'
9849      hardcode_direct=yes
9850      hardcode_shlibpath_var=no
9851      ;;
9852
9853    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9854    freebsd2.*)
9855      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9856      hardcode_direct=yes
9857      hardcode_minus_L=yes
9858      hardcode_shlibpath_var=no
9859      ;;
9860
9861    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9862    freebsd* | dragonfly*)
9863      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864      hardcode_libdir_flag_spec='-R$libdir'
9865      hardcode_direct=yes
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    hpux9*)
9870      if test yes = "$GCC"; then
9871	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'
9872      else
9873	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'
9874      fi
9875      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9876      hardcode_libdir_separator=:
9877      hardcode_direct=yes
9878
9879      # hardcode_minus_L: Not really in the search PATH,
9880      # but as the default location of the library.
9881      hardcode_minus_L=yes
9882      export_dynamic_flag_spec='$wl-E'
9883      ;;
9884
9885    hpux10*)
9886      if test yes,no = "$GCC,$with_gnu_ld"; then
9887	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888      else
9889	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9890      fi
9891      if test no = "$with_gnu_ld"; then
9892	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9893	hardcode_libdir_separator=:
9894	hardcode_direct=yes
9895	hardcode_direct_absolute=yes
9896	export_dynamic_flag_spec='$wl-E'
9897	# hardcode_minus_L: Not really in the search PATH,
9898	# but as the default location of the library.
9899	hardcode_minus_L=yes
9900      fi
9901      ;;
9902
9903    hpux11*)
9904      if test yes,no = "$GCC,$with_gnu_ld"; then
9905	case $host_cpu in
9906	hppa*64*)
9907	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9908	  ;;
9909	ia64*)
9910	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9911	  ;;
9912	*)
9913	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914	  ;;
9915	esac
9916      else
9917	case $host_cpu in
9918	hppa*64*)
9919	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9920	  ;;
9921	ia64*)
9922	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9923	  ;;
9924	*)
9925
9926	  # Older versions of the 11.00 compiler do not understand -b yet
9927	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9928	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9929$as_echo_n "checking if $CC understands -b... " >&6; }
9930if ${lt_cv_prog_compiler__b+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  lt_cv_prog_compiler__b=no
9934   save_LDFLAGS=$LDFLAGS
9935   LDFLAGS="$LDFLAGS -b"
9936   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9937   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9938     # The linker can only warn and ignore the option if not recognized
9939     # So say no if there are warnings
9940     if test -s conftest.err; then
9941       # Append any errors to the config.log.
9942       cat conftest.err 1>&5
9943       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9944       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945       if diff conftest.exp conftest.er2 >/dev/null; then
9946         lt_cv_prog_compiler__b=yes
9947       fi
9948     else
9949       lt_cv_prog_compiler__b=yes
9950     fi
9951   fi
9952   $RM -r conftest*
9953   LDFLAGS=$save_LDFLAGS
9954
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9957$as_echo "$lt_cv_prog_compiler__b" >&6; }
9958
9959if test yes = "$lt_cv_prog_compiler__b"; then
9960    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961else
9962    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963fi
9964
9965	  ;;
9966	esac
9967      fi
9968      if test no = "$with_gnu_ld"; then
9969	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9970	hardcode_libdir_separator=:
9971
9972	case $host_cpu in
9973	hppa*64*|ia64*)
9974	  hardcode_direct=no
9975	  hardcode_shlibpath_var=no
9976	  ;;
9977	*)
9978	  hardcode_direct=yes
9979	  hardcode_direct_absolute=yes
9980	  export_dynamic_flag_spec='$wl-E'
9981
9982	  # hardcode_minus_L: Not really in the search PATH,
9983	  # but as the default location of the library.
9984	  hardcode_minus_L=yes
9985	  ;;
9986	esac
9987      fi
9988      ;;
9989
9990    irix5* | irix6* | nonstopux*)
9991      if test yes = "$GCC"; then
9992	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'
9993	# Try to use the -exported_symbol ld option, if it does not
9994	# work, assume that -exports_file does not work either and
9995	# implicitly export all symbols.
9996	# This should be the same for all languages, so no per-tag cache variable.
9997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9998$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9999if ${lt_cv_irix_exported_symbol+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  save_LDFLAGS=$LDFLAGS
10003	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10004	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int foo (void) { return 0; }
10007_ACEOF
10008if ac_fn_c_try_link "$LINENO"; then :
10009  lt_cv_irix_exported_symbol=yes
10010else
10011  lt_cv_irix_exported_symbol=no
10012fi
10013rm -f core conftest.err conftest.$ac_objext \
10014    conftest$ac_exeext conftest.$ac_ext
10015           LDFLAGS=$save_LDFLAGS
10016fi
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10018$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10019	if test yes = "$lt_cv_irix_exported_symbol"; then
10020          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'
10021	fi
10022      else
10023	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'
10024	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'
10025      fi
10026      archive_cmds_need_lc='no'
10027      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028      hardcode_libdir_separator=:
10029      inherit_rpath=yes
10030      link_all_deplibs=yes
10031      ;;
10032
10033    linux*)
10034      case $cc_basename in
10035      tcc*)
10036	# Fabrice Bellard et al's Tiny C Compiler
10037	ld_shlibs=yes
10038	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039	;;
10040      esac
10041      ;;
10042
10043    netbsd*)
10044      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10045	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10046      else
10047	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10048      fi
10049      hardcode_libdir_flag_spec='-R$libdir'
10050      hardcode_direct=yes
10051      hardcode_shlibpath_var=no
10052      ;;
10053
10054    newsos6)
10055      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056      hardcode_direct=yes
10057      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10058      hardcode_libdir_separator=:
10059      hardcode_shlibpath_var=no
10060      ;;
10061
10062    *nto* | *qnx*)
10063      ;;
10064
10065    openbsd* | bitrig*)
10066      if test -f /usr/libexec/ld.so; then
10067	hardcode_direct=yes
10068	hardcode_shlibpath_var=no
10069	hardcode_direct_absolute=yes
10070	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10071	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10072	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10073	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10074	  export_dynamic_flag_spec='$wl-E'
10075	else
10076	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10077	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10078	fi
10079      else
10080	ld_shlibs=no
10081      fi
10082      ;;
10083
10084    os2*)
10085      hardcode_libdir_flag_spec='-L$libdir'
10086      hardcode_minus_L=yes
10087      allow_undefined_flag=unsupported
10088      shrext_cmds=.dll
10089      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10090	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10091	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10092	$ECHO EXPORTS >> $output_objdir/$libname.def~
10093	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10094	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10095	emximp -o $lib $output_objdir/$libname.def'
10096      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10097	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10098	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10099	$ECHO EXPORTS >> $output_objdir/$libname.def~
10100	prefix_cmds="$SED"~
10101	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10102	  prefix_cmds="$prefix_cmds -e 1d";
10103	fi~
10104	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10105	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10106	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10107	emximp -o $lib $output_objdir/$libname.def'
10108      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10109      enable_shared_with_static_runtimes=yes
10110      ;;
10111
10112    osf3*)
10113      if test yes = "$GCC"; then
10114	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10115	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'
10116      else
10117	allow_undefined_flag=' -expect_unresolved \*'
10118	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'
10119      fi
10120      archive_cmds_need_lc='no'
10121      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10122      hardcode_libdir_separator=:
10123      ;;
10124
10125    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10126      if test yes = "$GCC"; then
10127	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10128	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'
10129	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10130      else
10131	allow_undefined_flag=' -expect_unresolved \*'
10132	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'
10133	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~
10134          $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'
10135
10136	# Both c and cxx compiler support -rpath directly
10137	hardcode_libdir_flag_spec='-rpath $libdir'
10138      fi
10139      archive_cmds_need_lc='no'
10140      hardcode_libdir_separator=:
10141      ;;
10142
10143    solaris*)
10144      no_undefined_flag=' -z defs'
10145      if test yes = "$GCC"; then
10146	wlarc='$wl'
10147	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10148	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149          $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'
10150      else
10151	case `$CC -V 2>&1` in
10152	*"Compilers 5.0"*)
10153	  wlarc=''
10154	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10157	  ;;
10158	*)
10159	  wlarc='$wl'
10160	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10161	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10163	  ;;
10164	esac
10165      fi
10166      hardcode_libdir_flag_spec='-R$libdir'
10167      hardcode_shlibpath_var=no
10168      case $host_os in
10169      solaris2.[0-5] | solaris2.[0-5].*) ;;
10170      *)
10171	# The compiler driver will combine and reorder linker options,
10172	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10173	# but is careful enough not to reorder.
10174	# Supported since Solaris 2.6 (maybe 2.5.1?)
10175	if test yes = "$GCC"; then
10176	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10177	else
10178	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10179	fi
10180	;;
10181      esac
10182      link_all_deplibs=yes
10183      ;;
10184
10185    sunos4*)
10186      if test sequent = "$host_vendor"; then
10187	# Use $CC to link under sequent, because it throws in some extra .o
10188	# files that make .init and .fini sections work.
10189	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190      else
10191	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10192      fi
10193      hardcode_libdir_flag_spec='-L$libdir'
10194      hardcode_direct=yes
10195      hardcode_minus_L=yes
10196      hardcode_shlibpath_var=no
10197      ;;
10198
10199    sysv4)
10200      case $host_vendor in
10201	sni)
10202	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203	  hardcode_direct=yes # is this really true???
10204	;;
10205	siemens)
10206	  ## LD is ld it makes a PLAMLIB
10207	  ## CC just makes a GrossModule.
10208	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10209	  reload_cmds='$CC -r -o $output$reload_objs'
10210	  hardcode_direct=no
10211        ;;
10212	motorola)
10213	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10215	;;
10216      esac
10217      runpath_var='LD_RUN_PATH'
10218      hardcode_shlibpath_var=no
10219      ;;
10220
10221    sysv4.3*)
10222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223      hardcode_shlibpath_var=no
10224      export_dynamic_flag_spec='-Bexport'
10225      ;;
10226
10227    sysv4*MP*)
10228      if test -d /usr/nec; then
10229	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230	hardcode_shlibpath_var=no
10231	runpath_var=LD_RUN_PATH
10232	hardcode_runpath_var=yes
10233	ld_shlibs=yes
10234      fi
10235      ;;
10236
10237    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10238      no_undefined_flag='$wl-z,text'
10239      archive_cmds_need_lc=no
10240      hardcode_shlibpath_var=no
10241      runpath_var='LD_RUN_PATH'
10242
10243      if test yes = "$GCC"; then
10244	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246      else
10247	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249      fi
10250      ;;
10251
10252    sysv5* | sco3.2v5* | sco5v6*)
10253      # Note: We CANNOT use -z defs as we might desire, because we do not
10254      # link with -lc, and that would cause any symbols used from libc to
10255      # always be unresolved, which means just about no library would
10256      # ever link correctly.  If we're not using GNU ld we use -z text
10257      # though, which does catch some bad symbols but isn't as heavy-handed
10258      # as -z defs.
10259      no_undefined_flag='$wl-z,text'
10260      allow_undefined_flag='$wl-z,nodefs'
10261      archive_cmds_need_lc=no
10262      hardcode_shlibpath_var=no
10263      hardcode_libdir_flag_spec='$wl-R,$libdir'
10264      hardcode_libdir_separator=':'
10265      link_all_deplibs=yes
10266      export_dynamic_flag_spec='$wl-Bexport'
10267      runpath_var='LD_RUN_PATH'
10268
10269      if test yes = "$GCC"; then
10270	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272      else
10273	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275      fi
10276      ;;
10277
10278    uts4*)
10279      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280      hardcode_libdir_flag_spec='-L$libdir'
10281      hardcode_shlibpath_var=no
10282      ;;
10283
10284    *)
10285      ld_shlibs=no
10286      ;;
10287    esac
10288
10289    if test sni = "$host_vendor"; then
10290      case $host in
10291      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10292	export_dynamic_flag_spec='$wl-Blargedynsym'
10293	;;
10294      esac
10295    fi
10296  fi
10297
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10299$as_echo "$ld_shlibs" >&6; }
10300test no = "$ld_shlibs" && can_build_shared=no
10301
10302with_gnu_ld=$with_gnu_ld
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318#
10319# Do we need to explicitly link libc?
10320#
10321case "x$archive_cmds_need_lc" in
10322x|xyes)
10323  # Assume -lc should be added
10324  archive_cmds_need_lc=yes
10325
10326  if test yes,yes = "$GCC,$enable_shared"; then
10327    case $archive_cmds in
10328    *'~'*)
10329      # FIXME: we may have to deal with multi-command sequences.
10330      ;;
10331    '$CC '*)
10332      # Test whether the compiler implicitly links with -lc since on some
10333      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10334      # to ld, don't add -lc before -lgcc.
10335      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10336$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10337if ${lt_cv_archive_cmds_need_lc+:} false; then :
10338  $as_echo_n "(cached) " >&6
10339else
10340  $RM conftest*
10341	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10342
10343	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10344  (eval $ac_compile) 2>&5
10345  ac_status=$?
10346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10347  test $ac_status = 0; } 2>conftest.err; then
10348	  soname=conftest
10349	  lib=conftest
10350	  libobjs=conftest.$ac_objext
10351	  deplibs=
10352	  wl=$lt_prog_compiler_wl
10353	  pic_flag=$lt_prog_compiler_pic
10354	  compiler_flags=-v
10355	  linker_flags=-v
10356	  verstring=
10357	  output_objdir=.
10358	  libname=conftest
10359	  lt_save_allow_undefined_flag=$allow_undefined_flag
10360	  allow_undefined_flag=
10361	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10362  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10363  ac_status=$?
10364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365  test $ac_status = 0; }
10366	  then
10367	    lt_cv_archive_cmds_need_lc=no
10368	  else
10369	    lt_cv_archive_cmds_need_lc=yes
10370	  fi
10371	  allow_undefined_flag=$lt_save_allow_undefined_flag
10372	else
10373	  cat conftest.err 1>&5
10374	fi
10375	$RM conftest*
10376
10377fi
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10379$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10380      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10381      ;;
10382    esac
10383  fi
10384  ;;
10385esac
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10539$as_echo_n "checking dynamic linker characteristics... " >&6; }
10540
10541if test yes = "$GCC"; then
10542  case $host_os in
10543    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10544    *) lt_awk_arg='/^libraries:/' ;;
10545  esac
10546  case $host_os in
10547    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10548    *) lt_sed_strip_eq='s|=/|/|g' ;;
10549  esac
10550  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10551  case $lt_search_path_spec in
10552  *\;*)
10553    # if the path contains ";" then we assume it to be the separator
10554    # otherwise default to the standard path separator (i.e. ":") - it is
10555    # assumed that no part of a normal pathname contains ";" but that should
10556    # okay in the real world where ";" in dirpaths is itself problematic.
10557    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10558    ;;
10559  *)
10560    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10561    ;;
10562  esac
10563  # Ok, now we have the path, separated by spaces, we can step through it
10564  # and add multilib dir if necessary...
10565  lt_tmp_lt_search_path_spec=
10566  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10567  # ...but if some path component already ends with the multilib dir we assume
10568  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10569  case "$lt_multi_os_dir; $lt_search_path_spec " in
10570  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10571    lt_multi_os_dir=
10572    ;;
10573  esac
10574  for lt_sys_path in $lt_search_path_spec; do
10575    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10576      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10577    elif test -n "$lt_multi_os_dir"; then
10578      test -d "$lt_sys_path" && \
10579	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10580    fi
10581  done
10582  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10583BEGIN {RS = " "; FS = "/|\n";} {
10584  lt_foo = "";
10585  lt_count = 0;
10586  for (lt_i = NF; lt_i > 0; lt_i--) {
10587    if ($lt_i != "" && $lt_i != ".") {
10588      if ($lt_i == "..") {
10589        lt_count++;
10590      } else {
10591        if (lt_count == 0) {
10592          lt_foo = "/" $lt_i lt_foo;
10593        } else {
10594          lt_count--;
10595        }
10596      }
10597    }
10598  }
10599  if (lt_foo != "") { lt_freq[lt_foo]++; }
10600  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10601}'`
10602  # AWK program above erroneously prepends '/' to C:/dos/paths
10603  # for these hosts.
10604  case $host_os in
10605    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10606      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10607  esac
10608  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10609else
10610  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10611fi
10612library_names_spec=
10613libname_spec='lib$name'
10614soname_spec=
10615shrext_cmds=.so
10616postinstall_cmds=
10617postuninstall_cmds=
10618finish_cmds=
10619finish_eval=
10620shlibpath_var=
10621shlibpath_overrides_runpath=unknown
10622version_type=none
10623dynamic_linker="$host_os ld.so"
10624sys_lib_dlsearch_path_spec="/lib /usr/lib"
10625need_lib_prefix=unknown
10626hardcode_into_libs=no
10627
10628# when you set need_version to no, make sure it does not cause -set_version
10629# flags to be left without arguments
10630need_version=unknown
10631
10632
10633
10634case $host_os in
10635aix3*)
10636  version_type=linux # correct to gnu/linux during the next big refactor
10637  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10638  shlibpath_var=LIBPATH
10639
10640  # AIX 3 has no versioning support, so we append a major version to the name.
10641  soname_spec='$libname$release$shared_ext$major'
10642  ;;
10643
10644aix[4-9]*)
10645  version_type=linux # correct to gnu/linux during the next big refactor
10646  need_lib_prefix=no
10647  need_version=no
10648  hardcode_into_libs=yes
10649  if test ia64 = "$host_cpu"; then
10650    # AIX 5 supports IA64
10651    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10652    shlibpath_var=LD_LIBRARY_PATH
10653  else
10654    # With GCC up to 2.95.x, collect2 would create an import file
10655    # for dependence libraries.  The import file would start with
10656    # the line '#! .'.  This would cause the generated library to
10657    # depend on '.', always an invalid library.  This was fixed in
10658    # development snapshots of GCC prior to 3.0.
10659    case $host_os in
10660      aix4 | aix4.[01] | aix4.[01].*)
10661      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10662	   echo ' yes '
10663	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10664	:
10665      else
10666	can_build_shared=no
10667      fi
10668      ;;
10669    esac
10670    # Using Import Files as archive members, it is possible to support
10671    # filename-based versioning of shared library archives on AIX. While
10672    # this would work for both with and without runtime linking, it will
10673    # prevent static linking of such archives. So we do filename-based
10674    # shared library versioning with .so extension only, which is used
10675    # when both runtime linking and shared linking is enabled.
10676    # Unfortunately, runtime linking may impact performance, so we do
10677    # not want this to be the default eventually. Also, we use the
10678    # versioned .so libs for executables only if there is the -brtl
10679    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10680    # To allow for filename-based versioning support, we need to create
10681    # libNAME.so.V as an archive file, containing:
10682    # *) an Import File, referring to the versioned filename of the
10683    #    archive as well as the shared archive member, telling the
10684    #    bitwidth (32 or 64) of that shared object, and providing the
10685    #    list of exported symbols of that shared object, eventually
10686    #    decorated with the 'weak' keyword
10687    # *) the shared object with the F_LOADONLY flag set, to really avoid
10688    #    it being seen by the linker.
10689    # At run time we better use the real file rather than another symlink,
10690    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10691
10692    case $with_aix_soname,$aix_use_runtimelinking in
10693    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10694    # soname into executable. Probably we can add versioning support to
10695    # collect2, so additional links can be useful in future.
10696    aix,yes) # traditional libtool
10697      dynamic_linker='AIX unversionable lib.so'
10698      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10699      # instead of lib<name>.a to let people know that these are not
10700      # typical AIX shared libraries.
10701      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10702      ;;
10703    aix,no) # traditional AIX only
10704      dynamic_linker='AIX lib.a(lib.so.V)'
10705      # We preserve .a as extension for shared libraries through AIX4.2
10706      # and later when we are not doing run time linking.
10707      library_names_spec='$libname$release.a $libname.a'
10708      soname_spec='$libname$release$shared_ext$major'
10709      ;;
10710    svr4,*) # full svr4 only
10711      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10712      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10713      # We do not specify a path in Import Files, so LIBPATH fires.
10714      shlibpath_overrides_runpath=yes
10715      ;;
10716    *,yes) # both, prefer svr4
10717      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10718      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10719      # unpreferred sharedlib libNAME.a needs extra handling
10720      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"'
10721      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"'
10722      # We do not specify a path in Import Files, so LIBPATH fires.
10723      shlibpath_overrides_runpath=yes
10724      ;;
10725    *,no) # both, prefer aix
10726      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10727      library_names_spec='$libname$release.a $libname.a'
10728      soname_spec='$libname$release$shared_ext$major'
10729      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10730      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)'
10731      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"'
10732      ;;
10733    esac
10734    shlibpath_var=LIBPATH
10735  fi
10736  ;;
10737
10738amigaos*)
10739  case $host_cpu in
10740  powerpc)
10741    # Since July 2007 AmigaOS4 officially supports .so libraries.
10742    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10743    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744    ;;
10745  m68k)
10746    library_names_spec='$libname.ixlibrary $libname.a'
10747    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10748    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'
10749    ;;
10750  esac
10751  ;;
10752
10753beos*)
10754  library_names_spec='$libname$shared_ext'
10755  dynamic_linker="$host_os ld.so"
10756  shlibpath_var=LIBRARY_PATH
10757  ;;
10758
10759bsdi[45]*)
10760  version_type=linux # correct to gnu/linux during the next big refactor
10761  need_version=no
10762  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763  soname_spec='$libname$release$shared_ext$major'
10764  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10765  shlibpath_var=LD_LIBRARY_PATH
10766  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10767  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10768  # the default ld.so.conf also contains /usr/contrib/lib and
10769  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10770  # libtool to hard-code these into programs
10771  ;;
10772
10773cygwin* | mingw* | pw32* | cegcc*)
10774  version_type=windows
10775  shrext_cmds=.dll
10776  need_version=no
10777  need_lib_prefix=no
10778
10779  case $GCC,$cc_basename in
10780  yes,*)
10781    # gcc
10782    library_names_spec='$libname.dll.a'
10783    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10784    postinstall_cmds='base_file=`basename \$file`~
10785      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10786      dldir=$destdir/`dirname \$dlpath`~
10787      test -d \$dldir || mkdir -p \$dldir~
10788      $install_prog $dir/$dlname \$dldir/$dlname~
10789      chmod a+x \$dldir/$dlname~
10790      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10791        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10792      fi'
10793    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10794      dlpath=$dir/\$dldll~
10795       $RM \$dlpath'
10796    shlibpath_overrides_runpath=yes
10797
10798    case $host_os in
10799    cygwin*)
10800      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10801      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10802
10803      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10804      ;;
10805    mingw* | cegcc*)
10806      # MinGW DLLs use traditional 'lib' prefix
10807      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10808      ;;
10809    pw32*)
10810      # pw32 DLLs use 'pw' prefix rather than 'lib'
10811      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10812      ;;
10813    esac
10814    dynamic_linker='Win32 ld.exe'
10815    ;;
10816
10817  *,cl*)
10818    # Native MSVC
10819    libname_spec='$name'
10820    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10821    library_names_spec='$libname.dll.lib'
10822
10823    case $build_os in
10824    mingw*)
10825      sys_lib_search_path_spec=
10826      lt_save_ifs=$IFS
10827      IFS=';'
10828      for lt_path in $LIB
10829      do
10830        IFS=$lt_save_ifs
10831        # Let DOS variable expansion print the short 8.3 style file name.
10832        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10833        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10834      done
10835      IFS=$lt_save_ifs
10836      # Convert to MSYS style.
10837      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10838      ;;
10839    cygwin*)
10840      # Convert to unix form, then to dos form, then back to unix form
10841      # but this time dos style (no spaces!) so that the unix form looks
10842      # like /cygdrive/c/PROGRA~1:/cygdr...
10843      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10844      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10845      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846      ;;
10847    *)
10848      sys_lib_search_path_spec=$LIB
10849      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10850        # It is most probably a Windows format PATH.
10851        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10852      else
10853        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10854      fi
10855      # FIXME: find the short name or the path components, as spaces are
10856      # common. (e.g. "Program Files" -> "PROGRA~1")
10857      ;;
10858    esac
10859
10860    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10861    postinstall_cmds='base_file=`basename \$file`~
10862      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10863      dldir=$destdir/`dirname \$dlpath`~
10864      test -d \$dldir || mkdir -p \$dldir~
10865      $install_prog $dir/$dlname \$dldir/$dlname'
10866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10867      dlpath=$dir/\$dldll~
10868       $RM \$dlpath'
10869    shlibpath_overrides_runpath=yes
10870    dynamic_linker='Win32 link.exe'
10871    ;;
10872
10873  *)
10874    # Assume MSVC wrapper
10875    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10876    dynamic_linker='Win32 ld.exe'
10877    ;;
10878  esac
10879  # FIXME: first we should search . and the directory the executable is in
10880  shlibpath_var=PATH
10881  ;;
10882
10883darwin* | rhapsody*)
10884  dynamic_linker="$host_os dyld"
10885  version_type=darwin
10886  need_lib_prefix=no
10887  need_version=no
10888  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10889  soname_spec='$libname$release$major$shared_ext'
10890  shlibpath_overrides_runpath=yes
10891  shlibpath_var=DYLD_LIBRARY_PATH
10892  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10893
10894  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10895  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10896  ;;
10897
10898dgux*)
10899  version_type=linux # correct to gnu/linux during the next big refactor
10900  need_lib_prefix=no
10901  need_version=no
10902  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10903  soname_spec='$libname$release$shared_ext$major'
10904  shlibpath_var=LD_LIBRARY_PATH
10905  ;;
10906
10907freebsd* | dragonfly*)
10908  # DragonFly does not have aout.  When/if they implement a new
10909  # versioning mechanism, adjust this.
10910  if test -x /usr/bin/objformat; then
10911    objformat=`/usr/bin/objformat`
10912  else
10913    case $host_os in
10914    freebsd[23].*) objformat=aout ;;
10915    *) objformat=elf ;;
10916    esac
10917  fi
10918  version_type=freebsd-$objformat
10919  case $version_type in
10920    freebsd-elf*)
10921      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922      soname_spec='$libname$release$shared_ext$major'
10923      need_version=no
10924      need_lib_prefix=no
10925      ;;
10926    freebsd-*)
10927      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10928      need_version=yes
10929      ;;
10930  esac
10931  shlibpath_var=LD_LIBRARY_PATH
10932  case $host_os in
10933  freebsd2.*)
10934    shlibpath_overrides_runpath=yes
10935    ;;
10936  freebsd3.[01]* | freebsdelf3.[01]*)
10937    shlibpath_overrides_runpath=yes
10938    hardcode_into_libs=yes
10939    ;;
10940  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10941  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10942    shlibpath_overrides_runpath=no
10943    hardcode_into_libs=yes
10944    ;;
10945  *) # from 4.6 on, and DragonFly
10946    shlibpath_overrides_runpath=yes
10947    hardcode_into_libs=yes
10948    ;;
10949  esac
10950  ;;
10951
10952haiku*)
10953  version_type=linux # correct to gnu/linux during the next big refactor
10954  need_lib_prefix=no
10955  need_version=no
10956  dynamic_linker="$host_os runtime_loader"
10957  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958  soname_spec='$libname$release$shared_ext$major'
10959  shlibpath_var=LIBRARY_PATH
10960  shlibpath_overrides_runpath=no
10961  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10962  hardcode_into_libs=yes
10963  ;;
10964
10965hpux9* | hpux10* | hpux11*)
10966  # Give a soname corresponding to the major version so that dld.sl refuses to
10967  # link against other versions.
10968  version_type=sunos
10969  need_lib_prefix=no
10970  need_version=no
10971  case $host_cpu in
10972  ia64*)
10973    shrext_cmds='.so'
10974    hardcode_into_libs=yes
10975    dynamic_linker="$host_os dld.so"
10976    shlibpath_var=LD_LIBRARY_PATH
10977    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10979    soname_spec='$libname$release$shared_ext$major'
10980    if test 32 = "$HPUX_IA64_MODE"; then
10981      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10982      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10983    else
10984      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10985      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10986    fi
10987    ;;
10988  hppa*64*)
10989    shrext_cmds='.sl'
10990    hardcode_into_libs=yes
10991    dynamic_linker="$host_os dld.sl"
10992    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10993    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10994    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10995    soname_spec='$libname$release$shared_ext$major'
10996    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10997    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998    ;;
10999  *)
11000    shrext_cmds='.sl'
11001    dynamic_linker="$host_os dld.sl"
11002    shlibpath_var=SHLIB_PATH
11003    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11004    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005    soname_spec='$libname$release$shared_ext$major'
11006    ;;
11007  esac
11008  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11009  postinstall_cmds='chmod 555 $lib'
11010  # or fails outright, so override atomically:
11011  install_override_mode=555
11012  ;;
11013
11014interix[3-9]*)
11015  version_type=linux # correct to gnu/linux during the next big refactor
11016  need_lib_prefix=no
11017  need_version=no
11018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11019  soname_spec='$libname$release$shared_ext$major'
11020  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11021  shlibpath_var=LD_LIBRARY_PATH
11022  shlibpath_overrides_runpath=no
11023  hardcode_into_libs=yes
11024  ;;
11025
11026irix5* | irix6* | nonstopux*)
11027  case $host_os in
11028    nonstopux*) version_type=nonstopux ;;
11029    *)
11030	if test yes = "$lt_cv_prog_gnu_ld"; then
11031		version_type=linux # correct to gnu/linux during the next big refactor
11032	else
11033		version_type=irix
11034	fi ;;
11035  esac
11036  need_lib_prefix=no
11037  need_version=no
11038  soname_spec='$libname$release$shared_ext$major'
11039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11040  case $host_os in
11041  irix5* | nonstopux*)
11042    libsuff= shlibsuff=
11043    ;;
11044  *)
11045    case $LD in # libtool.m4 will add one of these switches to LD
11046    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11047      libsuff= shlibsuff= libmagic=32-bit;;
11048    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11049      libsuff=32 shlibsuff=N32 libmagic=N32;;
11050    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11051      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11052    *) libsuff= shlibsuff= libmagic=never-match;;
11053    esac
11054    ;;
11055  esac
11056  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11057  shlibpath_overrides_runpath=no
11058  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11059  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11060  hardcode_into_libs=yes
11061  ;;
11062
11063# No shared lib support for Linux oldld, aout, or coff.
11064linux*oldld* | linux*aout* | linux*coff*)
11065  dynamic_linker=no
11066  ;;
11067
11068linux*android*)
11069  version_type=none # Android doesn't support versioned libraries.
11070  need_lib_prefix=no
11071  need_version=no
11072  library_names_spec='$libname$release$shared_ext'
11073  soname_spec='$libname$release$shared_ext'
11074  finish_cmds=
11075  shlibpath_var=LD_LIBRARY_PATH
11076  shlibpath_overrides_runpath=yes
11077
11078  # This implies no fast_install, which is unacceptable.
11079  # Some rework will be needed to allow for fast_install
11080  # before this can be enabled.
11081  hardcode_into_libs=yes
11082
11083  dynamic_linker='Android linker'
11084  # Don't embed -rpath directories since the linker doesn't support them.
11085  hardcode_libdir_flag_spec='-L$libdir'
11086  ;;
11087
11088# This must be glibc/ELF.
11089linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11090  version_type=linux # correct to gnu/linux during the next big refactor
11091  need_lib_prefix=no
11092  need_version=no
11093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11094  soname_spec='$libname$release$shared_ext$major'
11095  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11096  shlibpath_var=LD_LIBRARY_PATH
11097  shlibpath_overrides_runpath=no
11098
11099  # Some binutils ld are patched to set DT_RUNPATH
11100  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11101  $as_echo_n "(cached) " >&6
11102else
11103  lt_cv_shlibpath_overrides_runpath=no
11104    save_LDFLAGS=$LDFLAGS
11105    save_libdir=$libdir
11106    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11107	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110
11111int
11112main ()
11113{
11114
11115  ;
11116  return 0;
11117}
11118_ACEOF
11119if ac_fn_c_try_link "$LINENO"; then :
11120  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11121  lt_cv_shlibpath_overrides_runpath=yes
11122fi
11123fi
11124rm -f core conftest.err conftest.$ac_objext \
11125    conftest$ac_exeext conftest.$ac_ext
11126    LDFLAGS=$save_LDFLAGS
11127    libdir=$save_libdir
11128
11129fi
11130
11131  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11132
11133  # This implies no fast_install, which is unacceptable.
11134  # Some rework will be needed to allow for fast_install
11135  # before this can be enabled.
11136  hardcode_into_libs=yes
11137
11138  # Ideally, we could use ldconfig to report *all* directores which are
11139  # searched for libraries, however this is still not possible.  Aside from not
11140  # being certain /sbin/ldconfig is available, command
11141  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11142  # even though it is searched at run-time.  Try to do the best guess by
11143  # appending ld.so.conf contents (and includes) to the search path.
11144  if test -f /etc/ld.so.conf; then
11145    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' ' '`
11146    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11147  fi
11148
11149  # We used to test for /lib/ld.so.1 and disable shared libraries on
11150  # powerpc, because MkLinux only supported shared libraries with the
11151  # GNU dynamic linker.  Since this was broken with cross compilers,
11152  # most powerpc-linux boxes support dynamic linking these days and
11153  # people can always --disable-shared, the test was removed, and we
11154  # assume the GNU/Linux dynamic linker is in use.
11155  dynamic_linker='GNU/Linux ld.so'
11156  ;;
11157
11158netbsd*)
11159  version_type=sunos
11160  need_lib_prefix=no
11161  need_version=no
11162  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11164    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11165    dynamic_linker='NetBSD (a.out) ld.so'
11166  else
11167    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168    soname_spec='$libname$release$shared_ext$major'
11169    dynamic_linker='NetBSD ld.elf_so'
11170  fi
11171  shlibpath_var=LD_LIBRARY_PATH
11172  shlibpath_overrides_runpath=yes
11173  hardcode_into_libs=yes
11174  ;;
11175
11176newsos6)
11177  version_type=linux # correct to gnu/linux during the next big refactor
11178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179  shlibpath_var=LD_LIBRARY_PATH
11180  shlibpath_overrides_runpath=yes
11181  ;;
11182
11183*nto* | *qnx*)
11184  version_type=qnx
11185  need_lib_prefix=no
11186  need_version=no
11187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188  soname_spec='$libname$release$shared_ext$major'
11189  shlibpath_var=LD_LIBRARY_PATH
11190  shlibpath_overrides_runpath=no
11191  hardcode_into_libs=yes
11192  dynamic_linker='ldqnx.so'
11193  ;;
11194
11195openbsd* | bitrig*)
11196  version_type=sunos
11197  sys_lib_dlsearch_path_spec=/usr/lib
11198  need_lib_prefix=no
11199  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11200    need_version=no
11201  else
11202    need_version=yes
11203  fi
11204  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11206  shlibpath_var=LD_LIBRARY_PATH
11207  shlibpath_overrides_runpath=yes
11208  ;;
11209
11210os2*)
11211  libname_spec='$name'
11212  version_type=windows
11213  shrext_cmds=.dll
11214  need_version=no
11215  need_lib_prefix=no
11216  # OS/2 can only load a DLL with a base name of 8 characters or less.
11217  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11218    v=$($ECHO $release$versuffix | tr -d .-);
11219    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11220    $ECHO $n$v`$shared_ext'
11221  library_names_spec='${libname}_dll.$libext'
11222  dynamic_linker='OS/2 ld.exe'
11223  shlibpath_var=BEGINLIBPATH
11224  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11225  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11226  postinstall_cmds='base_file=`basename \$file`~
11227    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11228    dldir=$destdir/`dirname \$dlpath`~
11229    test -d \$dldir || mkdir -p \$dldir~
11230    $install_prog $dir/$dlname \$dldir/$dlname~
11231    chmod a+x \$dldir/$dlname~
11232    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11233      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11234    fi'
11235  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11236    dlpath=$dir/\$dldll~
11237    $RM \$dlpath'
11238  ;;
11239
11240osf3* | osf4* | osf5*)
11241  version_type=osf
11242  need_lib_prefix=no
11243  need_version=no
11244  soname_spec='$libname$release$shared_ext$major'
11245  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246  shlibpath_var=LD_LIBRARY_PATH
11247  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11248  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11249  ;;
11250
11251rdos*)
11252  dynamic_linker=no
11253  ;;
11254
11255solaris*)
11256  version_type=linux # correct to gnu/linux during the next big refactor
11257  need_lib_prefix=no
11258  need_version=no
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  shlibpath_overrides_runpath=yes
11263  hardcode_into_libs=yes
11264  # ldd complains unless libraries are executable
11265  postinstall_cmds='chmod +x $lib'
11266  ;;
11267
11268sunos4*)
11269  version_type=sunos
11270  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11271  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  shlibpath_overrides_runpath=yes
11274  if test yes = "$with_gnu_ld"; then
11275    need_lib_prefix=no
11276  fi
11277  need_version=yes
11278  ;;
11279
11280sysv4 | sysv4.3*)
11281  version_type=linux # correct to gnu/linux during the next big refactor
11282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283  soname_spec='$libname$release$shared_ext$major'
11284  shlibpath_var=LD_LIBRARY_PATH
11285  case $host_vendor in
11286    sni)
11287      shlibpath_overrides_runpath=no
11288      need_lib_prefix=no
11289      runpath_var=LD_RUN_PATH
11290      ;;
11291    siemens)
11292      need_lib_prefix=no
11293      ;;
11294    motorola)
11295      need_lib_prefix=no
11296      need_version=no
11297      shlibpath_overrides_runpath=no
11298      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11299      ;;
11300  esac
11301  ;;
11302
11303sysv4*MP*)
11304  if test -d /usr/nec; then
11305    version_type=linux # correct to gnu/linux during the next big refactor
11306    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11307    soname_spec='$libname$shared_ext.$major'
11308    shlibpath_var=LD_LIBRARY_PATH
11309  fi
11310  ;;
11311
11312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11313  version_type=sco
11314  need_lib_prefix=no
11315  need_version=no
11316  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11317  soname_spec='$libname$release$shared_ext$major'
11318  shlibpath_var=LD_LIBRARY_PATH
11319  shlibpath_overrides_runpath=yes
11320  hardcode_into_libs=yes
11321  if test yes = "$with_gnu_ld"; then
11322    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11323  else
11324    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11325    case $host_os in
11326      sco3.2v5*)
11327        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11328	;;
11329    esac
11330  fi
11331  sys_lib_dlsearch_path_spec='/usr/lib'
11332  ;;
11333
11334tpf*)
11335  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11336  version_type=linux # correct to gnu/linux during the next big refactor
11337  need_lib_prefix=no
11338  need_version=no
11339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340  shlibpath_var=LD_LIBRARY_PATH
11341  shlibpath_overrides_runpath=no
11342  hardcode_into_libs=yes
11343  ;;
11344
11345uts4*)
11346  version_type=linux # correct to gnu/linux during the next big refactor
11347  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348  soname_spec='$libname$release$shared_ext$major'
11349  shlibpath_var=LD_LIBRARY_PATH
11350  ;;
11351
11352*)
11353  dynamic_linker=no
11354  ;;
11355esac
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11357$as_echo "$dynamic_linker" >&6; }
11358test no = "$dynamic_linker" && can_build_shared=no
11359
11360variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11361if test yes = "$GCC"; then
11362  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11363fi
11364
11365if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11366  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11367fi
11368
11369if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11370  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11371fi
11372
11373# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11374configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11375
11376# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11377func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11378
11379# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11380configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11479$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11480hardcode_action=
11481if test -n "$hardcode_libdir_flag_spec" ||
11482   test -n "$runpath_var" ||
11483   test yes = "$hardcode_automatic"; then
11484
11485  # We can hardcode non-existent directories.
11486  if test no != "$hardcode_direct" &&
11487     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11488     # have to relink, otherwise we might link with an installed library
11489     # when we should be linking with a yet-to-be-installed one
11490     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11491     test no != "$hardcode_minus_L"; then
11492    # Linking always hardcodes the temporary library directory.
11493    hardcode_action=relink
11494  else
11495    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11496    hardcode_action=immediate
11497  fi
11498else
11499  # We cannot hardcode anything, or else we can only hardcode existing
11500  # directories.
11501  hardcode_action=unsupported
11502fi
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11504$as_echo "$hardcode_action" >&6; }
11505
11506if test relink = "$hardcode_action" ||
11507   test yes = "$inherit_rpath"; then
11508  # Fast installation is not supported
11509  enable_fast_install=no
11510elif test yes = "$shlibpath_overrides_runpath" ||
11511     test no = "$enable_shared"; then
11512  # Fast installation is not necessary
11513  enable_fast_install=needless
11514fi
11515
11516
11517
11518
11519
11520
11521  if test yes != "$enable_dlopen"; then
11522  enable_dlopen=unknown
11523  enable_dlopen_self=unknown
11524  enable_dlopen_self_static=unknown
11525else
11526  lt_cv_dlopen=no
11527  lt_cv_dlopen_libs=
11528
11529  case $host_os in
11530  beos*)
11531    lt_cv_dlopen=load_add_on
11532    lt_cv_dlopen_libs=
11533    lt_cv_dlopen_self=yes
11534    ;;
11535
11536  mingw* | pw32* | cegcc*)
11537    lt_cv_dlopen=LoadLibrary
11538    lt_cv_dlopen_libs=
11539    ;;
11540
11541  cygwin*)
11542    lt_cv_dlopen=dlopen
11543    lt_cv_dlopen_libs=
11544    ;;
11545
11546  darwin*)
11547    # if libdl is installed we need to link against it
11548    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11549$as_echo_n "checking for dlopen in -ldl... " >&6; }
11550if ${ac_cv_lib_dl_dlopen+:} false; then :
11551  $as_echo_n "(cached) " >&6
11552else
11553  ac_check_lib_save_LIBS=$LIBS
11554LIBS="-ldl  $LIBS"
11555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556/* end confdefs.h.  */
11557
11558/* Override any GCC internal prototype to avoid an error.
11559   Use char because int might match the return type of a GCC
11560   builtin and then its argument prototype would still apply.  */
11561#ifdef __cplusplus
11562extern "C"
11563#endif
11564char dlopen ();
11565int
11566main ()
11567{
11568return dlopen ();
11569  ;
11570  return 0;
11571}
11572_ACEOF
11573if ac_fn_c_try_link "$LINENO"; then :
11574  ac_cv_lib_dl_dlopen=yes
11575else
11576  ac_cv_lib_dl_dlopen=no
11577fi
11578rm -f core conftest.err conftest.$ac_objext \
11579    conftest$ac_exeext conftest.$ac_ext
11580LIBS=$ac_check_lib_save_LIBS
11581fi
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11583$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11584if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11585  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11586else
11587
11588    lt_cv_dlopen=dyld
11589    lt_cv_dlopen_libs=
11590    lt_cv_dlopen_self=yes
11591
11592fi
11593
11594    ;;
11595
11596  tpf*)
11597    # Don't try to run any link tests for TPF.  We know it's impossible
11598    # because TPF is a cross-compiler, and we know how we open DSOs.
11599    lt_cv_dlopen=dlopen
11600    lt_cv_dlopen_libs=
11601    lt_cv_dlopen_self=no
11602    ;;
11603
11604  *)
11605    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11606if test "x$ac_cv_func_shl_load" = xyes; then :
11607  lt_cv_dlopen=shl_load
11608else
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11610$as_echo_n "checking for shl_load in -ldld... " >&6; }
11611if ${ac_cv_lib_dld_shl_load+:} false; then :
11612  $as_echo_n "(cached) " >&6
11613else
11614  ac_check_lib_save_LIBS=$LIBS
11615LIBS="-ldld  $LIBS"
11616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617/* end confdefs.h.  */
11618
11619/* Override any GCC internal prototype to avoid an error.
11620   Use char because int might match the return type of a GCC
11621   builtin and then its argument prototype would still apply.  */
11622#ifdef __cplusplus
11623extern "C"
11624#endif
11625char shl_load ();
11626int
11627main ()
11628{
11629return shl_load ();
11630  ;
11631  return 0;
11632}
11633_ACEOF
11634if ac_fn_c_try_link "$LINENO"; then :
11635  ac_cv_lib_dld_shl_load=yes
11636else
11637  ac_cv_lib_dld_shl_load=no
11638fi
11639rm -f core conftest.err conftest.$ac_objext \
11640    conftest$ac_exeext conftest.$ac_ext
11641LIBS=$ac_check_lib_save_LIBS
11642fi
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11644$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11645if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11646  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11647else
11648  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11649if test "x$ac_cv_func_dlopen" = xyes; then :
11650  lt_cv_dlopen=dlopen
11651else
11652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11653$as_echo_n "checking for dlopen in -ldl... " >&6; }
11654if ${ac_cv_lib_dl_dlopen+:} false; then :
11655  $as_echo_n "(cached) " >&6
11656else
11657  ac_check_lib_save_LIBS=$LIBS
11658LIBS="-ldl  $LIBS"
11659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660/* end confdefs.h.  */
11661
11662/* Override any GCC internal prototype to avoid an error.
11663   Use char because int might match the return type of a GCC
11664   builtin and then its argument prototype would still apply.  */
11665#ifdef __cplusplus
11666extern "C"
11667#endif
11668char dlopen ();
11669int
11670main ()
11671{
11672return dlopen ();
11673  ;
11674  return 0;
11675}
11676_ACEOF
11677if ac_fn_c_try_link "$LINENO"; then :
11678  ac_cv_lib_dl_dlopen=yes
11679else
11680  ac_cv_lib_dl_dlopen=no
11681fi
11682rm -f core conftest.err conftest.$ac_objext \
11683    conftest$ac_exeext conftest.$ac_ext
11684LIBS=$ac_check_lib_save_LIBS
11685fi
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11687$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11688if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11689  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11690else
11691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11692$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11693if ${ac_cv_lib_svld_dlopen+:} false; then :
11694  $as_echo_n "(cached) " >&6
11695else
11696  ac_check_lib_save_LIBS=$LIBS
11697LIBS="-lsvld  $LIBS"
11698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699/* end confdefs.h.  */
11700
11701/* Override any GCC internal prototype to avoid an error.
11702   Use char because int might match the return type of a GCC
11703   builtin and then its argument prototype would still apply.  */
11704#ifdef __cplusplus
11705extern "C"
11706#endif
11707char dlopen ();
11708int
11709main ()
11710{
11711return dlopen ();
11712  ;
11713  return 0;
11714}
11715_ACEOF
11716if ac_fn_c_try_link "$LINENO"; then :
11717  ac_cv_lib_svld_dlopen=yes
11718else
11719  ac_cv_lib_svld_dlopen=no
11720fi
11721rm -f core conftest.err conftest.$ac_objext \
11722    conftest$ac_exeext conftest.$ac_ext
11723LIBS=$ac_check_lib_save_LIBS
11724fi
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11726$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11727if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11728  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11729else
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11731$as_echo_n "checking for dld_link in -ldld... " >&6; }
11732if ${ac_cv_lib_dld_dld_link+:} false; then :
11733  $as_echo_n "(cached) " >&6
11734else
11735  ac_check_lib_save_LIBS=$LIBS
11736LIBS="-ldld  $LIBS"
11737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738/* end confdefs.h.  */
11739
11740/* Override any GCC internal prototype to avoid an error.
11741   Use char because int might match the return type of a GCC
11742   builtin and then its argument prototype would still apply.  */
11743#ifdef __cplusplus
11744extern "C"
11745#endif
11746char dld_link ();
11747int
11748main ()
11749{
11750return dld_link ();
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755if ac_fn_c_try_link "$LINENO"; then :
11756  ac_cv_lib_dld_dld_link=yes
11757else
11758  ac_cv_lib_dld_dld_link=no
11759fi
11760rm -f core conftest.err conftest.$ac_objext \
11761    conftest$ac_exeext conftest.$ac_ext
11762LIBS=$ac_check_lib_save_LIBS
11763fi
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11765$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11766if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11767  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11768fi
11769
11770
11771fi
11772
11773
11774fi
11775
11776
11777fi
11778
11779
11780fi
11781
11782
11783fi
11784
11785    ;;
11786  esac
11787
11788  if test no = "$lt_cv_dlopen"; then
11789    enable_dlopen=no
11790  else
11791    enable_dlopen=yes
11792  fi
11793
11794  case $lt_cv_dlopen in
11795  dlopen)
11796    save_CPPFLAGS=$CPPFLAGS
11797    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11798
11799    save_LDFLAGS=$LDFLAGS
11800    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11801
11802    save_LIBS=$LIBS
11803    LIBS="$lt_cv_dlopen_libs $LIBS"
11804
11805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11806$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11807if ${lt_cv_dlopen_self+:} false; then :
11808  $as_echo_n "(cached) " >&6
11809else
11810  	  if test yes = "$cross_compiling"; then :
11811  lt_cv_dlopen_self=cross
11812else
11813  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11814  lt_status=$lt_dlunknown
11815  cat > conftest.$ac_ext <<_LT_EOF
11816#line $LINENO "configure"
11817#include "confdefs.h"
11818
11819#if HAVE_DLFCN_H
11820#include <dlfcn.h>
11821#endif
11822
11823#include <stdio.h>
11824
11825#ifdef RTLD_GLOBAL
11826#  define LT_DLGLOBAL		RTLD_GLOBAL
11827#else
11828#  ifdef DL_GLOBAL
11829#    define LT_DLGLOBAL		DL_GLOBAL
11830#  else
11831#    define LT_DLGLOBAL		0
11832#  endif
11833#endif
11834
11835/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11836   find out it does not work in some platform. */
11837#ifndef LT_DLLAZY_OR_NOW
11838#  ifdef RTLD_LAZY
11839#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11840#  else
11841#    ifdef DL_LAZY
11842#      define LT_DLLAZY_OR_NOW		DL_LAZY
11843#    else
11844#      ifdef RTLD_NOW
11845#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11846#      else
11847#        ifdef DL_NOW
11848#          define LT_DLLAZY_OR_NOW	DL_NOW
11849#        else
11850#          define LT_DLLAZY_OR_NOW	0
11851#        endif
11852#      endif
11853#    endif
11854#  endif
11855#endif
11856
11857/* When -fvisibility=hidden is used, assume the code has been annotated
11858   correspondingly for the symbols needed.  */
11859#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11860int fnord () __attribute__((visibility("default")));
11861#endif
11862
11863int fnord () { return 42; }
11864int main ()
11865{
11866  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11867  int status = $lt_dlunknown;
11868
11869  if (self)
11870    {
11871      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11872      else
11873        {
11874	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11875          else puts (dlerror ());
11876	}
11877      /* dlclose (self); */
11878    }
11879  else
11880    puts (dlerror ());
11881
11882  return status;
11883}
11884_LT_EOF
11885  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11886  (eval $ac_link) 2>&5
11887  ac_status=$?
11888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11889  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11890    (./conftest; exit; ) >&5 2>/dev/null
11891    lt_status=$?
11892    case x$lt_status in
11893      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11894      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11895      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11896    esac
11897  else :
11898    # compilation failed
11899    lt_cv_dlopen_self=no
11900  fi
11901fi
11902rm -fr conftest*
11903
11904
11905fi
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11907$as_echo "$lt_cv_dlopen_self" >&6; }
11908
11909    if test yes = "$lt_cv_dlopen_self"; then
11910      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11912$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11913if ${lt_cv_dlopen_self_static+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  	  if test yes = "$cross_compiling"; then :
11917  lt_cv_dlopen_self_static=cross
11918else
11919  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11920  lt_status=$lt_dlunknown
11921  cat > conftest.$ac_ext <<_LT_EOF
11922#line $LINENO "configure"
11923#include "confdefs.h"
11924
11925#if HAVE_DLFCN_H
11926#include <dlfcn.h>
11927#endif
11928
11929#include <stdio.h>
11930
11931#ifdef RTLD_GLOBAL
11932#  define LT_DLGLOBAL		RTLD_GLOBAL
11933#else
11934#  ifdef DL_GLOBAL
11935#    define LT_DLGLOBAL		DL_GLOBAL
11936#  else
11937#    define LT_DLGLOBAL		0
11938#  endif
11939#endif
11940
11941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11942   find out it does not work in some platform. */
11943#ifndef LT_DLLAZY_OR_NOW
11944#  ifdef RTLD_LAZY
11945#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11946#  else
11947#    ifdef DL_LAZY
11948#      define LT_DLLAZY_OR_NOW		DL_LAZY
11949#    else
11950#      ifdef RTLD_NOW
11951#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11952#      else
11953#        ifdef DL_NOW
11954#          define LT_DLLAZY_OR_NOW	DL_NOW
11955#        else
11956#          define LT_DLLAZY_OR_NOW	0
11957#        endif
11958#      endif
11959#    endif
11960#  endif
11961#endif
11962
11963/* When -fvisibility=hidden is used, assume the code has been annotated
11964   correspondingly for the symbols needed.  */
11965#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11966int fnord () __attribute__((visibility("default")));
11967#endif
11968
11969int fnord () { return 42; }
11970int main ()
11971{
11972  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11973  int status = $lt_dlunknown;
11974
11975  if (self)
11976    {
11977      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11978      else
11979        {
11980	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11981          else puts (dlerror ());
11982	}
11983      /* dlclose (self); */
11984    }
11985  else
11986    puts (dlerror ());
11987
11988  return status;
11989}
11990_LT_EOF
11991  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11992  (eval $ac_link) 2>&5
11993  ac_status=$?
11994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11995  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11996    (./conftest; exit; ) >&5 2>/dev/null
11997    lt_status=$?
11998    case x$lt_status in
11999      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12000      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12001      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12002    esac
12003  else :
12004    # compilation failed
12005    lt_cv_dlopen_self_static=no
12006  fi
12007fi
12008rm -fr conftest*
12009
12010
12011fi
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12013$as_echo "$lt_cv_dlopen_self_static" >&6; }
12014    fi
12015
12016    CPPFLAGS=$save_CPPFLAGS
12017    LDFLAGS=$save_LDFLAGS
12018    LIBS=$save_LIBS
12019    ;;
12020  esac
12021
12022  case $lt_cv_dlopen_self in
12023  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12024  *) enable_dlopen_self=unknown ;;
12025  esac
12026
12027  case $lt_cv_dlopen_self_static in
12028  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12029  *) enable_dlopen_self_static=unknown ;;
12030  esac
12031fi
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049striplib=
12050old_striplib=
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12052$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12054  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12055  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12057$as_echo "yes" >&6; }
12058else
12059# FIXME - insert some real tests, host_os isn't really good enough
12060  case $host_os in
12061  darwin*)
12062    if test -n "$STRIP"; then
12063      striplib="$STRIP -x"
12064      old_striplib="$STRIP -S"
12065      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12066$as_echo "yes" >&6; }
12067    else
12068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
12070    fi
12071    ;;
12072  *)
12073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075    ;;
12076  esac
12077fi
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090  # Report what library types will actually be built
12091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12092$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12094$as_echo "$can_build_shared" >&6; }
12095
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12097$as_echo_n "checking whether to build shared libraries... " >&6; }
12098  test no = "$can_build_shared" && enable_shared=no
12099
12100  # On AIX, shared libraries and static libraries use the same namespace, and
12101  # are all built from PIC.
12102  case $host_os in
12103  aix3*)
12104    test yes = "$enable_shared" && enable_static=no
12105    if test -n "$RANLIB"; then
12106      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12107      postinstall_cmds='$RANLIB $lib'
12108    fi
12109    ;;
12110
12111  aix[4-9]*)
12112    if test ia64 != "$host_cpu"; then
12113      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12114      yes,aix,yes) ;;			# shared object as lib.so file only
12115      yes,svr4,*) ;;			# shared object as lib.so archive member only
12116      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12117      esac
12118    fi
12119    ;;
12120  esac
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12122$as_echo "$enable_shared" >&6; }
12123
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12125$as_echo_n "checking whether to build static libraries... " >&6; }
12126  # Make sure either enable_shared or enable_static is yes.
12127  test yes = "$enable_shared" || enable_static=yes
12128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12129$as_echo "$enable_static" >&6; }
12130
12131
12132
12133
12134fi
12135ac_ext=c
12136ac_cpp='$CPP $CPPFLAGS'
12137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12139ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140
12141CC=$lt_save_CC
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157        ac_config_commands="$ac_config_commands libtool"
12158
12159
12160
12161
12162# Only expand once:
12163
12164
12165
12166# Require X.Org macros 1.8 or later
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12179$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12180if ${ac_cv_prog_cc_c99+:} false; then :
12181  $as_echo_n "(cached) " >&6
12182else
12183  ac_cv_prog_cc_c99=no
12184ac_save_CC=$CC
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187#include <stdarg.h>
12188#include <stdbool.h>
12189#include <stdlib.h>
12190#include <wchar.h>
12191#include <stdio.h>
12192
12193// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12194#define debug(...) fprintf (stderr, __VA_ARGS__)
12195#define showlist(...) puts (#__VA_ARGS__)
12196#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12197static void
12198test_varargs_macros (void)
12199{
12200  int x = 1234;
12201  int y = 5678;
12202  debug ("Flag");
12203  debug ("X = %d\n", x);
12204  showlist (The first, second, and third items.);
12205  report (x>y, "x is %d but y is %d", x, y);
12206}
12207
12208// Check long long types.
12209#define BIG64 18446744073709551615ull
12210#define BIG32 4294967295ul
12211#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12212#if !BIG_OK
12213  your preprocessor is broken;
12214#endif
12215#if BIG_OK
12216#else
12217  your preprocessor is broken;
12218#endif
12219static long long int bignum = -9223372036854775807LL;
12220static unsigned long long int ubignum = BIG64;
12221
12222struct incomplete_array
12223{
12224  int datasize;
12225  double data[];
12226};
12227
12228struct named_init {
12229  int number;
12230  const wchar_t *name;
12231  double average;
12232};
12233
12234typedef const char *ccp;
12235
12236static inline int
12237test_restrict (ccp restrict text)
12238{
12239  // See if C++-style comments work.
12240  // Iterate through items via the restricted pointer.
12241  // Also check for declarations in for loops.
12242  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12243    continue;
12244  return 0;
12245}
12246
12247// Check varargs and va_copy.
12248static void
12249test_varargs (const char *format, ...)
12250{
12251  va_list args;
12252  va_start (args, format);
12253  va_list args_copy;
12254  va_copy (args_copy, args);
12255
12256  const char *str;
12257  int number;
12258  float fnumber;
12259
12260  while (*format)
12261    {
12262      switch (*format++)
12263	{
12264	case 's': // string
12265	  str = va_arg (args_copy, const char *);
12266	  break;
12267	case 'd': // int
12268	  number = va_arg (args_copy, int);
12269	  break;
12270	case 'f': // float
12271	  fnumber = va_arg (args_copy, double);
12272	  break;
12273	default:
12274	  break;
12275	}
12276    }
12277  va_end (args_copy);
12278  va_end (args);
12279}
12280
12281int
12282main ()
12283{
12284
12285  // Check bool.
12286  _Bool success = false;
12287
12288  // Check restrict.
12289  if (test_restrict ("String literal") == 0)
12290    success = true;
12291  char *restrict newvar = "Another string";
12292
12293  // Check varargs.
12294  test_varargs ("s, d' f .", "string", 65, 34.234);
12295  test_varargs_macros ();
12296
12297  // Check flexible array members.
12298  struct incomplete_array *ia =
12299    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12300  ia->datasize = 10;
12301  for (int i = 0; i < ia->datasize; ++i)
12302    ia->data[i] = i * 1.234;
12303
12304  // Check named initializers.
12305  struct named_init ni = {
12306    .number = 34,
12307    .name = L"Test wide string",
12308    .average = 543.34343,
12309  };
12310
12311  ni.number = 58;
12312
12313  int dynamic_array[ni.number];
12314  dynamic_array[ni.number - 1] = 543;
12315
12316  // work around unused variable warnings
12317  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12318	  || dynamic_array[ni.number - 1] != 543);
12319
12320  ;
12321  return 0;
12322}
12323_ACEOF
12324for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12325do
12326  CC="$ac_save_CC $ac_arg"
12327  if ac_fn_c_try_compile "$LINENO"; then :
12328  ac_cv_prog_cc_c99=$ac_arg
12329fi
12330rm -f core conftest.err conftest.$ac_objext
12331  test "x$ac_cv_prog_cc_c99" != "xno" && break
12332done
12333rm -f conftest.$ac_ext
12334CC=$ac_save_CC
12335
12336fi
12337# AC_CACHE_VAL
12338case "x$ac_cv_prog_cc_c99" in
12339  x)
12340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12341$as_echo "none needed" >&6; } ;;
12342  xno)
12343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12344$as_echo "unsupported" >&6; } ;;
12345  *)
12346    CC="$CC $ac_cv_prog_cc_c99"
12347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12348$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12349esac
12350if test "x$ac_cv_prog_cc_c99" != xno; then :
12351
12352fi
12353
12354
12355
12356
12357
12358
12359ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12360if test "x$ac_cv_have_decl___clang__" = xyes; then :
12361  CLANGCC="yes"
12362else
12363  CLANGCC="no"
12364fi
12365
12366ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12367if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12368  INTELCC="yes"
12369else
12370  INTELCC="no"
12371fi
12372
12373ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12374if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12375  SUNCC="yes"
12376else
12377  SUNCC="no"
12378fi
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12389	if test -n "$ac_tool_prefix"; then
12390  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
12394if ${ac_cv_path_PKG_CONFIG+:} false; then :
12395  $as_echo_n "(cached) " >&6
12396else
12397  case $PKG_CONFIG in
12398  [\\/]* | ?:[\\/]*)
12399  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12400  ;;
12401  *)
12402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403for as_dir in $PATH
12404do
12405  IFS=$as_save_IFS
12406  test -z "$as_dir" && as_dir=.
12407    for ac_exec_ext in '' $ac_executable_extensions; do
12408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411    break 2
12412  fi
12413done
12414  done
12415IFS=$as_save_IFS
12416
12417  ;;
12418esac
12419fi
12420PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12421if test -n "$PKG_CONFIG"; then
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12423$as_echo "$PKG_CONFIG" >&6; }
12424else
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426$as_echo "no" >&6; }
12427fi
12428
12429
12430fi
12431if test -z "$ac_cv_path_PKG_CONFIG"; then
12432  ac_pt_PKG_CONFIG=$PKG_CONFIG
12433  # Extract the first word of "pkg-config", so it can be a program name with args.
12434set dummy pkg-config; ac_word=$2
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436$as_echo_n "checking for $ac_word... " >&6; }
12437if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12438  $as_echo_n "(cached) " >&6
12439else
12440  case $ac_pt_PKG_CONFIG in
12441  [\\/]* | ?:[\\/]*)
12442  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12443  ;;
12444  *)
12445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448  IFS=$as_save_IFS
12449  test -z "$as_dir" && as_dir=.
12450    for ac_exec_ext in '' $ac_executable_extensions; do
12451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454    break 2
12455  fi
12456done
12457  done
12458IFS=$as_save_IFS
12459
12460  ;;
12461esac
12462fi
12463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12464if test -n "$ac_pt_PKG_CONFIG"; then
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12466$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12467else
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469$as_echo "no" >&6; }
12470fi
12471
12472  if test "x$ac_pt_PKG_CONFIG" = x; then
12473    PKG_CONFIG=""
12474  else
12475    case $cross_compiling:$ac_tool_warned in
12476yes:)
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12479ac_tool_warned=yes ;;
12480esac
12481    PKG_CONFIG=$ac_pt_PKG_CONFIG
12482  fi
12483else
12484  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12485fi
12486
12487fi
12488if test -n "$PKG_CONFIG"; then
12489	_pkg_min_version=0.9.0
12490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12491$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12492	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494$as_echo "yes" >&6; }
12495	else
12496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497$as_echo "no" >&6; }
12498		PKG_CONFIG=""
12499	fi
12500fi
12501
12502
12503
12504
12505
12506# Check whether --enable-selective-werror was given.
12507if test "${enable_selective_werror+set}" = set; then :
12508  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12509else
12510  SELECTIVE_WERROR=yes
12511fi
12512
12513
12514
12515
12516
12517# -v is too short to test reliably with XORG_TESTSET_CFLAG
12518if test "x$SUNCC" = "xyes"; then
12519    BASE_CFLAGS="-v"
12520else
12521    BASE_CFLAGS=""
12522fi
12523
12524# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538xorg_testset_save_CFLAGS="$CFLAGS"
12539
12540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12545  $as_echo_n "(cached) " >&6
12546else
12547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548/* end confdefs.h.  */
12549int i;
12550_ACEOF
12551if ac_fn_c_try_compile "$LINENO"; then :
12552  xorg_cv_cc_flag_unknown_warning_option=yes
12553else
12554  xorg_cv_cc_flag_unknown_warning_option=no
12555fi
12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557fi
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12561	CFLAGS="$xorg_testset_save_CFLAGS"
12562fi
12563
12564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567	fi
12568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h.  */
12576int i;
12577_ACEOF
12578if ac_fn_c_try_compile "$LINENO"; then :
12579  xorg_cv_cc_flag_unused_command_line_argument=yes
12580else
12581  xorg_cv_cc_flag_unused_command_line_argument=no
12582fi
12583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12588	CFLAGS="$xorg_testset_save_CFLAGS"
12589fi
12590
12591found="no"
12592
12593	if test $found = "no" ; then
12594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596		fi
12597
12598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600		fi
12601
12602		CFLAGS="$CFLAGS -Wall"
12603
12604		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12605$as_echo_n "checking if $CC supports -Wall... " >&6; }
12606		cacheid=xorg_cv_cc_flag__Wall
12607		if eval \${$cacheid+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612int i;
12613int
12614main ()
12615{
12616
12617  ;
12618  return 0;
12619}
12620_ACEOF
12621if ac_fn_c_try_link "$LINENO"; then :
12622  eval $cacheid=yes
12623else
12624  eval $cacheid=no
12625fi
12626rm -f core conftest.err conftest.$ac_objext \
12627    conftest$ac_exeext conftest.$ac_ext
12628fi
12629
12630
12631		CFLAGS="$xorg_testset_save_CFLAGS"
12632
12633		eval supported=\$$cacheid
12634		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12635$as_echo "$supported" >&6; }
12636		if test "$supported" = "yes" ; then
12637			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12638			found="yes"
12639		fi
12640	fi
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656xorg_testset_save_CFLAGS="$CFLAGS"
12657
12658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12659	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12663  $as_echo_n "(cached) " >&6
12664else
12665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h.  */
12667int i;
12668_ACEOF
12669if ac_fn_c_try_compile "$LINENO"; then :
12670  xorg_cv_cc_flag_unknown_warning_option=yes
12671else
12672  xorg_cv_cc_flag_unknown_warning_option=no
12673fi
12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675fi
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12679	CFLAGS="$xorg_testset_save_CFLAGS"
12680fi
12681
12682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685	fi
12686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694int i;
12695_ACEOF
12696if ac_fn_c_try_compile "$LINENO"; then :
12697  xorg_cv_cc_flag_unused_command_line_argument=yes
12698else
12699  xorg_cv_cc_flag_unused_command_line_argument=no
12700fi
12701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702fi
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12706	CFLAGS="$xorg_testset_save_CFLAGS"
12707fi
12708
12709found="no"
12710
12711	if test $found = "no" ; then
12712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12714		fi
12715
12716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718		fi
12719
12720		CFLAGS="$CFLAGS -Wpointer-arith"
12721
12722		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12723$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12724		cacheid=xorg_cv_cc_flag__Wpointer_arith
12725		if eval \${$cacheid+:} false; then :
12726  $as_echo_n "(cached) " >&6
12727else
12728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729/* end confdefs.h.  */
12730int i;
12731int
12732main ()
12733{
12734
12735  ;
12736  return 0;
12737}
12738_ACEOF
12739if ac_fn_c_try_link "$LINENO"; then :
12740  eval $cacheid=yes
12741else
12742  eval $cacheid=no
12743fi
12744rm -f core conftest.err conftest.$ac_objext \
12745    conftest$ac_exeext conftest.$ac_ext
12746fi
12747
12748
12749		CFLAGS="$xorg_testset_save_CFLAGS"
12750
12751		eval supported=\$$cacheid
12752		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12753$as_echo "$supported" >&6; }
12754		if test "$supported" = "yes" ; then
12755			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12756			found="yes"
12757		fi
12758	fi
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774xorg_testset_save_CFLAGS="$CFLAGS"
12775
12776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785int i;
12786_ACEOF
12787if ac_fn_c_try_compile "$LINENO"; then :
12788  xorg_cv_cc_flag_unknown_warning_option=yes
12789else
12790  xorg_cv_cc_flag_unknown_warning_option=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793fi
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12796	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12797	CFLAGS="$xorg_testset_save_CFLAGS"
12798fi
12799
12800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12801	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12803	fi
12804	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812int i;
12813_ACEOF
12814if ac_fn_c_try_compile "$LINENO"; then :
12815  xorg_cv_cc_flag_unused_command_line_argument=yes
12816else
12817  xorg_cv_cc_flag_unused_command_line_argument=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12824	CFLAGS="$xorg_testset_save_CFLAGS"
12825fi
12826
12827found="no"
12828
12829	if test $found = "no" ; then
12830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12832		fi
12833
12834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12836		fi
12837
12838		CFLAGS="$CFLAGS -Wmissing-declarations"
12839
12840		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12841$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12842		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12843		if eval \${$cacheid+:} false; then :
12844  $as_echo_n "(cached) " >&6
12845else
12846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848int i;
12849int
12850main ()
12851{
12852
12853  ;
12854  return 0;
12855}
12856_ACEOF
12857if ac_fn_c_try_link "$LINENO"; then :
12858  eval $cacheid=yes
12859else
12860  eval $cacheid=no
12861fi
12862rm -f core conftest.err conftest.$ac_objext \
12863    conftest$ac_exeext conftest.$ac_ext
12864fi
12865
12866
12867		CFLAGS="$xorg_testset_save_CFLAGS"
12868
12869		eval supported=\$$cacheid
12870		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12871$as_echo "$supported" >&6; }
12872		if test "$supported" = "yes" ; then
12873			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12874			found="yes"
12875		fi
12876	fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892xorg_testset_save_CFLAGS="$CFLAGS"
12893
12894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12899  $as_echo_n "(cached) " >&6
12900else
12901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902/* end confdefs.h.  */
12903int i;
12904_ACEOF
12905if ac_fn_c_try_compile "$LINENO"; then :
12906  xorg_cv_cc_flag_unknown_warning_option=yes
12907else
12908  xorg_cv_cc_flag_unknown_warning_option=no
12909fi
12910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911fi
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12915	CFLAGS="$xorg_testset_save_CFLAGS"
12916fi
12917
12918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12921	fi
12922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12926  $as_echo_n "(cached) " >&6
12927else
12928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930int i;
12931_ACEOF
12932if ac_fn_c_try_compile "$LINENO"; then :
12933  xorg_cv_cc_flag_unused_command_line_argument=yes
12934else
12935  xorg_cv_cc_flag_unused_command_line_argument=no
12936fi
12937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12942	CFLAGS="$xorg_testset_save_CFLAGS"
12943fi
12944
12945found="no"
12946
12947	if test $found = "no" ; then
12948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12950		fi
12951
12952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12954		fi
12955
12956		CFLAGS="$CFLAGS -Wformat=2"
12957
12958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12959$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12960		cacheid=xorg_cv_cc_flag__Wformat_2
12961		if eval \${$cacheid+:} false; then :
12962  $as_echo_n "(cached) " >&6
12963else
12964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966int i;
12967int
12968main ()
12969{
12970
12971  ;
12972  return 0;
12973}
12974_ACEOF
12975if ac_fn_c_try_link "$LINENO"; then :
12976  eval $cacheid=yes
12977else
12978  eval $cacheid=no
12979fi
12980rm -f core conftest.err conftest.$ac_objext \
12981    conftest$ac_exeext conftest.$ac_ext
12982fi
12983
12984
12985		CFLAGS="$xorg_testset_save_CFLAGS"
12986
12987		eval supported=\$$cacheid
12988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12989$as_echo "$supported" >&6; }
12990		if test "$supported" = "yes" ; then
12991			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12992			found="yes"
12993		fi
12994	fi
12995
12996	if test $found = "no" ; then
12997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12999		fi
13000
13001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13003		fi
13004
13005		CFLAGS="$CFLAGS -Wformat"
13006
13007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13008$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13009		cacheid=xorg_cv_cc_flag__Wformat
13010		if eval \${$cacheid+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016int
13017main ()
13018{
13019
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024if ac_fn_c_try_link "$LINENO"; then :
13025  eval $cacheid=yes
13026else
13027  eval $cacheid=no
13028fi
13029rm -f core conftest.err conftest.$ac_objext \
13030    conftest$ac_exeext conftest.$ac_ext
13031fi
13032
13033
13034		CFLAGS="$xorg_testset_save_CFLAGS"
13035
13036		eval supported=\$$cacheid
13037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13038$as_echo "$supported" >&6; }
13039		if test "$supported" = "yes" ; then
13040			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13041			found="yes"
13042		fi
13043	fi
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061xorg_testset_save_CFLAGS="$CFLAGS"
13062
13063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13068  $as_echo_n "(cached) " >&6
13069else
13070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h.  */
13072int i;
13073_ACEOF
13074if ac_fn_c_try_compile "$LINENO"; then :
13075  xorg_cv_cc_flag_unknown_warning_option=yes
13076else
13077  xorg_cv_cc_flag_unknown_warning_option=no
13078fi
13079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080fi
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13084	CFLAGS="$xorg_testset_save_CFLAGS"
13085fi
13086
13087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090	fi
13091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13095  $as_echo_n "(cached) " >&6
13096else
13097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h.  */
13099int i;
13100_ACEOF
13101if ac_fn_c_try_compile "$LINENO"; then :
13102  xorg_cv_cc_flag_unused_command_line_argument=yes
13103else
13104  xorg_cv_cc_flag_unused_command_line_argument=no
13105fi
13106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107fi
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13110	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13111	CFLAGS="$xorg_testset_save_CFLAGS"
13112fi
13113
13114found="no"
13115
13116	if test $found = "no" ; then
13117		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13118			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13119		fi
13120
13121		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13122			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13123		fi
13124
13125		CFLAGS="$CFLAGS -Wstrict-prototypes"
13126
13127		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13128$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13129		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13130		if eval \${$cacheid+:} false; then :
13131  $as_echo_n "(cached) " >&6
13132else
13133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h.  */
13135int i;
13136int
13137main ()
13138{
13139
13140  ;
13141  return 0;
13142}
13143_ACEOF
13144if ac_fn_c_try_link "$LINENO"; then :
13145  eval $cacheid=yes
13146else
13147  eval $cacheid=no
13148fi
13149rm -f core conftest.err conftest.$ac_objext \
13150    conftest$ac_exeext conftest.$ac_ext
13151fi
13152
13153
13154		CFLAGS="$xorg_testset_save_CFLAGS"
13155
13156		eval supported=\$$cacheid
13157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13158$as_echo "$supported" >&6; }
13159		if test "$supported" = "yes" ; then
13160			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13161			found="yes"
13162		fi
13163	fi
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179xorg_testset_save_CFLAGS="$CFLAGS"
13180
13181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13186  $as_echo_n "(cached) " >&6
13187else
13188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189/* end confdefs.h.  */
13190int i;
13191_ACEOF
13192if ac_fn_c_try_compile "$LINENO"; then :
13193  xorg_cv_cc_flag_unknown_warning_option=yes
13194else
13195  xorg_cv_cc_flag_unknown_warning_option=no
13196fi
13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198fi
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13202	CFLAGS="$xorg_testset_save_CFLAGS"
13203fi
13204
13205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208	fi
13209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13213  $as_echo_n "(cached) " >&6
13214else
13215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216/* end confdefs.h.  */
13217int i;
13218_ACEOF
13219if ac_fn_c_try_compile "$LINENO"; then :
13220  xorg_cv_cc_flag_unused_command_line_argument=yes
13221else
13222  xorg_cv_cc_flag_unused_command_line_argument=no
13223fi
13224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13228	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13229	CFLAGS="$xorg_testset_save_CFLAGS"
13230fi
13231
13232found="no"
13233
13234	if test $found = "no" ; then
13235		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13237		fi
13238
13239		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13241		fi
13242
13243		CFLAGS="$CFLAGS -Wmissing-prototypes"
13244
13245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13246$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13247		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13248		if eval \${$cacheid+:} false; then :
13249  $as_echo_n "(cached) " >&6
13250else
13251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252/* end confdefs.h.  */
13253int i;
13254int
13255main ()
13256{
13257
13258  ;
13259  return 0;
13260}
13261_ACEOF
13262if ac_fn_c_try_link "$LINENO"; then :
13263  eval $cacheid=yes
13264else
13265  eval $cacheid=no
13266fi
13267rm -f core conftest.err conftest.$ac_objext \
13268    conftest$ac_exeext conftest.$ac_ext
13269fi
13270
13271
13272		CFLAGS="$xorg_testset_save_CFLAGS"
13273
13274		eval supported=\$$cacheid
13275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13276$as_echo "$supported" >&6; }
13277		if test "$supported" = "yes" ; then
13278			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13279			found="yes"
13280		fi
13281	fi
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297xorg_testset_save_CFLAGS="$CFLAGS"
13298
13299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13304  $as_echo_n "(cached) " >&6
13305else
13306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307/* end confdefs.h.  */
13308int i;
13309_ACEOF
13310if ac_fn_c_try_compile "$LINENO"; then :
13311  xorg_cv_cc_flag_unknown_warning_option=yes
13312else
13313  xorg_cv_cc_flag_unknown_warning_option=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13320	CFLAGS="$xorg_testset_save_CFLAGS"
13321fi
13322
13323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13326	fi
13327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13331  $as_echo_n "(cached) " >&6
13332else
13333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335int i;
13336_ACEOF
13337if ac_fn_c_try_compile "$LINENO"; then :
13338  xorg_cv_cc_flag_unused_command_line_argument=yes
13339else
13340  xorg_cv_cc_flag_unused_command_line_argument=no
13341fi
13342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343fi
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13347	CFLAGS="$xorg_testset_save_CFLAGS"
13348fi
13349
13350found="no"
13351
13352	if test $found = "no" ; then
13353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13355		fi
13356
13357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13359		fi
13360
13361		CFLAGS="$CFLAGS -Wnested-externs"
13362
13363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13364$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13365		cacheid=xorg_cv_cc_flag__Wnested_externs
13366		if eval \${$cacheid+:} false; then :
13367  $as_echo_n "(cached) " >&6
13368else
13369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370/* end confdefs.h.  */
13371int i;
13372int
13373main ()
13374{
13375
13376  ;
13377  return 0;
13378}
13379_ACEOF
13380if ac_fn_c_try_link "$LINENO"; then :
13381  eval $cacheid=yes
13382else
13383  eval $cacheid=no
13384fi
13385rm -f core conftest.err conftest.$ac_objext \
13386    conftest$ac_exeext conftest.$ac_ext
13387fi
13388
13389
13390		CFLAGS="$xorg_testset_save_CFLAGS"
13391
13392		eval supported=\$$cacheid
13393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13394$as_echo "$supported" >&6; }
13395		if test "$supported" = "yes" ; then
13396			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13397			found="yes"
13398		fi
13399	fi
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415xorg_testset_save_CFLAGS="$CFLAGS"
13416
13417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13422  $as_echo_n "(cached) " >&6
13423else
13424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426int i;
13427_ACEOF
13428if ac_fn_c_try_compile "$LINENO"; then :
13429  xorg_cv_cc_flag_unknown_warning_option=yes
13430else
13431  xorg_cv_cc_flag_unknown_warning_option=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434fi
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13438	CFLAGS="$xorg_testset_save_CFLAGS"
13439fi
13440
13441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444	fi
13445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13449  $as_echo_n "(cached) " >&6
13450else
13451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452/* end confdefs.h.  */
13453int i;
13454_ACEOF
13455if ac_fn_c_try_compile "$LINENO"; then :
13456  xorg_cv_cc_flag_unused_command_line_argument=yes
13457else
13458  xorg_cv_cc_flag_unused_command_line_argument=no
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13465	CFLAGS="$xorg_testset_save_CFLAGS"
13466fi
13467
13468found="no"
13469
13470	if test $found = "no" ; then
13471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13473		fi
13474
13475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13477		fi
13478
13479		CFLAGS="$CFLAGS -Wbad-function-cast"
13480
13481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13482$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13483		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13484		if eval \${$cacheid+:} false; then :
13485  $as_echo_n "(cached) " >&6
13486else
13487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h.  */
13489int i;
13490int
13491main ()
13492{
13493
13494  ;
13495  return 0;
13496}
13497_ACEOF
13498if ac_fn_c_try_link "$LINENO"; then :
13499  eval $cacheid=yes
13500else
13501  eval $cacheid=no
13502fi
13503rm -f core conftest.err conftest.$ac_objext \
13504    conftest$ac_exeext conftest.$ac_ext
13505fi
13506
13507
13508		CFLAGS="$xorg_testset_save_CFLAGS"
13509
13510		eval supported=\$$cacheid
13511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13512$as_echo "$supported" >&6; }
13513		if test "$supported" = "yes" ; then
13514			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13515			found="yes"
13516		fi
13517	fi
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533xorg_testset_save_CFLAGS="$CFLAGS"
13534
13535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h.  */
13544int i;
13545_ACEOF
13546if ac_fn_c_try_compile "$LINENO"; then :
13547  xorg_cv_cc_flag_unknown_warning_option=yes
13548else
13549  xorg_cv_cc_flag_unknown_warning_option=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13556	CFLAGS="$xorg_testset_save_CFLAGS"
13557fi
13558
13559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562	fi
13563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571int i;
13572_ACEOF
13573if ac_fn_c_try_compile "$LINENO"; then :
13574  xorg_cv_cc_flag_unused_command_line_argument=yes
13575else
13576  xorg_cv_cc_flag_unused_command_line_argument=no
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579fi
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13583	CFLAGS="$xorg_testset_save_CFLAGS"
13584fi
13585
13586found="no"
13587
13588	if test $found = "no" ; then
13589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13591		fi
13592
13593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13595		fi
13596
13597		CFLAGS="$CFLAGS -Wold-style-definition"
13598
13599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13600$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13601		cacheid=xorg_cv_cc_flag__Wold_style_definition
13602		if eval \${$cacheid+:} false; then :
13603  $as_echo_n "(cached) " >&6
13604else
13605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606/* end confdefs.h.  */
13607int i;
13608int
13609main ()
13610{
13611
13612  ;
13613  return 0;
13614}
13615_ACEOF
13616if ac_fn_c_try_link "$LINENO"; then :
13617  eval $cacheid=yes
13618else
13619  eval $cacheid=no
13620fi
13621rm -f core conftest.err conftest.$ac_objext \
13622    conftest$ac_exeext conftest.$ac_ext
13623fi
13624
13625
13626		CFLAGS="$xorg_testset_save_CFLAGS"
13627
13628		eval supported=\$$cacheid
13629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13630$as_echo "$supported" >&6; }
13631		if test "$supported" = "yes" ; then
13632			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13633			found="yes"
13634		fi
13635	fi
13636
13637	if test $found = "no" ; then
13638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13640		fi
13641
13642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13644		fi
13645
13646		CFLAGS="$CFLAGS -fd"
13647
13648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13649$as_echo_n "checking if $CC supports -fd... " >&6; }
13650		cacheid=xorg_cv_cc_flag__fd
13651		if eval \${$cacheid+:} false; then :
13652  $as_echo_n "(cached) " >&6
13653else
13654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655/* end confdefs.h.  */
13656int i;
13657int
13658main ()
13659{
13660
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_link "$LINENO"; then :
13666  eval $cacheid=yes
13667else
13668  eval $cacheid=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext \
13671    conftest$ac_exeext conftest.$ac_ext
13672fi
13673
13674
13675		CFLAGS="$xorg_testset_save_CFLAGS"
13676
13677		eval supported=\$$cacheid
13678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13679$as_echo "$supported" >&6; }
13680		if test "$supported" = "yes" ; then
13681			BASE_CFLAGS="$BASE_CFLAGS -fd"
13682			found="yes"
13683		fi
13684	fi
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700xorg_testset_save_CFLAGS="$CFLAGS"
13701
13702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13707  $as_echo_n "(cached) " >&6
13708else
13709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710/* end confdefs.h.  */
13711int i;
13712_ACEOF
13713if ac_fn_c_try_compile "$LINENO"; then :
13714  xorg_cv_cc_flag_unknown_warning_option=yes
13715else
13716  xorg_cv_cc_flag_unknown_warning_option=no
13717fi
13718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719fi
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13723	CFLAGS="$xorg_testset_save_CFLAGS"
13724fi
13725
13726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13729	fi
13730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738int i;
13739_ACEOF
13740if ac_fn_c_try_compile "$LINENO"; then :
13741  xorg_cv_cc_flag_unused_command_line_argument=yes
13742else
13743  xorg_cv_cc_flag_unused_command_line_argument=no
13744fi
13745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13750	CFLAGS="$xorg_testset_save_CFLAGS"
13751fi
13752
13753found="no"
13754
13755	if test $found = "no" ; then
13756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758		fi
13759
13760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13762		fi
13763
13764		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13765
13766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13767$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13768		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13769		if eval \${$cacheid+:} false; then :
13770  $as_echo_n "(cached) " >&6
13771else
13772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774int i;
13775int
13776main ()
13777{
13778
13779  ;
13780  return 0;
13781}
13782_ACEOF
13783if ac_fn_c_try_link "$LINENO"; then :
13784  eval $cacheid=yes
13785else
13786  eval $cacheid=no
13787fi
13788rm -f core conftest.err conftest.$ac_objext \
13789    conftest$ac_exeext conftest.$ac_ext
13790fi
13791
13792
13793		CFLAGS="$xorg_testset_save_CFLAGS"
13794
13795		eval supported=\$$cacheid
13796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13797$as_echo "$supported" >&6; }
13798		if test "$supported" = "yes" ; then
13799			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13800			found="yes"
13801		fi
13802	fi
13803
13804
13805
13806
13807
13808# This chunk adds additional warnings that could catch undesired effects.
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822xorg_testset_save_CFLAGS="$CFLAGS"
13823
13824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13829  $as_echo_n "(cached) " >&6
13830else
13831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833int i;
13834_ACEOF
13835if ac_fn_c_try_compile "$LINENO"; then :
13836  xorg_cv_cc_flag_unknown_warning_option=yes
13837else
13838  xorg_cv_cc_flag_unknown_warning_option=no
13839fi
13840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841fi
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13845	CFLAGS="$xorg_testset_save_CFLAGS"
13846fi
13847
13848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851	fi
13852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13856  $as_echo_n "(cached) " >&6
13857else
13858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859/* end confdefs.h.  */
13860int i;
13861_ACEOF
13862if ac_fn_c_try_compile "$LINENO"; then :
13863  xorg_cv_cc_flag_unused_command_line_argument=yes
13864else
13865  xorg_cv_cc_flag_unused_command_line_argument=no
13866fi
13867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13868fi
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13872	CFLAGS="$xorg_testset_save_CFLAGS"
13873fi
13874
13875found="no"
13876
13877	if test $found = "no" ; then
13878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13880		fi
13881
13882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13884		fi
13885
13886		CFLAGS="$CFLAGS -Wunused"
13887
13888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13889$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13890		cacheid=xorg_cv_cc_flag__Wunused
13891		if eval \${$cacheid+:} false; then :
13892  $as_echo_n "(cached) " >&6
13893else
13894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895/* end confdefs.h.  */
13896int i;
13897int
13898main ()
13899{
13900
13901  ;
13902  return 0;
13903}
13904_ACEOF
13905if ac_fn_c_try_link "$LINENO"; then :
13906  eval $cacheid=yes
13907else
13908  eval $cacheid=no
13909fi
13910rm -f core conftest.err conftest.$ac_objext \
13911    conftest$ac_exeext conftest.$ac_ext
13912fi
13913
13914
13915		CFLAGS="$xorg_testset_save_CFLAGS"
13916
13917		eval supported=\$$cacheid
13918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13919$as_echo "$supported" >&6; }
13920		if test "$supported" = "yes" ; then
13921			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13922			found="yes"
13923		fi
13924	fi
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940xorg_testset_save_CFLAGS="$CFLAGS"
13941
13942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13947  $as_echo_n "(cached) " >&6
13948else
13949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951int i;
13952_ACEOF
13953if ac_fn_c_try_compile "$LINENO"; then :
13954  xorg_cv_cc_flag_unknown_warning_option=yes
13955else
13956  xorg_cv_cc_flag_unknown_warning_option=no
13957fi
13958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959fi
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13963	CFLAGS="$xorg_testset_save_CFLAGS"
13964fi
13965
13966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969	fi
13970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978int i;
13979_ACEOF
13980if ac_fn_c_try_compile "$LINENO"; then :
13981  xorg_cv_cc_flag_unused_command_line_argument=yes
13982else
13983  xorg_cv_cc_flag_unused_command_line_argument=no
13984fi
13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986fi
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13990	CFLAGS="$xorg_testset_save_CFLAGS"
13991fi
13992
13993found="no"
13994
13995	if test $found = "no" ; then
13996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13998		fi
13999
14000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14002		fi
14003
14004		CFLAGS="$CFLAGS -Wuninitialized"
14005
14006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14007$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14008		cacheid=xorg_cv_cc_flag__Wuninitialized
14009		if eval \${$cacheid+:} false; then :
14010  $as_echo_n "(cached) " >&6
14011else
14012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013/* end confdefs.h.  */
14014int i;
14015int
14016main ()
14017{
14018
14019  ;
14020  return 0;
14021}
14022_ACEOF
14023if ac_fn_c_try_link "$LINENO"; then :
14024  eval $cacheid=yes
14025else
14026  eval $cacheid=no
14027fi
14028rm -f core conftest.err conftest.$ac_objext \
14029    conftest$ac_exeext conftest.$ac_ext
14030fi
14031
14032
14033		CFLAGS="$xorg_testset_save_CFLAGS"
14034
14035		eval supported=\$$cacheid
14036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14037$as_echo "$supported" >&6; }
14038		if test "$supported" = "yes" ; then
14039			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14040			found="yes"
14041		fi
14042	fi
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058xorg_testset_save_CFLAGS="$CFLAGS"
14059
14060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14065  $as_echo_n "(cached) " >&6
14066else
14067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068/* end confdefs.h.  */
14069int i;
14070_ACEOF
14071if ac_fn_c_try_compile "$LINENO"; then :
14072  xorg_cv_cc_flag_unknown_warning_option=yes
14073else
14074  xorg_cv_cc_flag_unknown_warning_option=no
14075fi
14076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14081	CFLAGS="$xorg_testset_save_CFLAGS"
14082fi
14083
14084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087	fi
14088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h.  */
14096int i;
14097_ACEOF
14098if ac_fn_c_try_compile "$LINENO"; then :
14099  xorg_cv_cc_flag_unused_command_line_argument=yes
14100else
14101  xorg_cv_cc_flag_unused_command_line_argument=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14108	CFLAGS="$xorg_testset_save_CFLAGS"
14109fi
14110
14111found="no"
14112
14113	if test $found = "no" ; then
14114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116		fi
14117
14118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120		fi
14121
14122		CFLAGS="$CFLAGS -Wshadow"
14123
14124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14125$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14126		cacheid=xorg_cv_cc_flag__Wshadow
14127		if eval \${$cacheid+:} false; then :
14128  $as_echo_n "(cached) " >&6
14129else
14130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131/* end confdefs.h.  */
14132int i;
14133int
14134main ()
14135{
14136
14137  ;
14138  return 0;
14139}
14140_ACEOF
14141if ac_fn_c_try_link "$LINENO"; then :
14142  eval $cacheid=yes
14143else
14144  eval $cacheid=no
14145fi
14146rm -f core conftest.err conftest.$ac_objext \
14147    conftest$ac_exeext conftest.$ac_ext
14148fi
14149
14150
14151		CFLAGS="$xorg_testset_save_CFLAGS"
14152
14153		eval supported=\$$cacheid
14154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14155$as_echo "$supported" >&6; }
14156		if test "$supported" = "yes" ; then
14157			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14158			found="yes"
14159		fi
14160	fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176xorg_testset_save_CFLAGS="$CFLAGS"
14177
14178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14183  $as_echo_n "(cached) " >&6
14184else
14185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187int i;
14188_ACEOF
14189if ac_fn_c_try_compile "$LINENO"; then :
14190  xorg_cv_cc_flag_unknown_warning_option=yes
14191else
14192  xorg_cv_cc_flag_unknown_warning_option=no
14193fi
14194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195fi
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14199	CFLAGS="$xorg_testset_save_CFLAGS"
14200fi
14201
14202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205	fi
14206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"; then :
14217  xorg_cv_cc_flag_unused_command_line_argument=yes
14218else
14219  xorg_cv_cc_flag_unused_command_line_argument=no
14220fi
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14226	CFLAGS="$xorg_testset_save_CFLAGS"
14227fi
14228
14229found="no"
14230
14231	if test $found = "no" ; then
14232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14234		fi
14235
14236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14238		fi
14239
14240		CFLAGS="$CFLAGS -Wmissing-noreturn"
14241
14242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14243$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14244		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14245		if eval \${$cacheid+:} false; then :
14246  $as_echo_n "(cached) " >&6
14247else
14248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h.  */
14250int i;
14251int
14252main ()
14253{
14254
14255  ;
14256  return 0;
14257}
14258_ACEOF
14259if ac_fn_c_try_link "$LINENO"; then :
14260  eval $cacheid=yes
14261else
14262  eval $cacheid=no
14263fi
14264rm -f core conftest.err conftest.$ac_objext \
14265    conftest$ac_exeext conftest.$ac_ext
14266fi
14267
14268
14269		CFLAGS="$xorg_testset_save_CFLAGS"
14270
14271		eval supported=\$$cacheid
14272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14273$as_echo "$supported" >&6; }
14274		if test "$supported" = "yes" ; then
14275			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14276			found="yes"
14277		fi
14278	fi
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294xorg_testset_save_CFLAGS="$CFLAGS"
14295
14296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14301  $as_echo_n "(cached) " >&6
14302else
14303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304/* end confdefs.h.  */
14305int i;
14306_ACEOF
14307if ac_fn_c_try_compile "$LINENO"; then :
14308  xorg_cv_cc_flag_unknown_warning_option=yes
14309else
14310  xorg_cv_cc_flag_unknown_warning_option=no
14311fi
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14317	CFLAGS="$xorg_testset_save_CFLAGS"
14318fi
14319
14320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323	fi
14324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h.  */
14332int i;
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"; then :
14335  xorg_cv_cc_flag_unused_command_line_argument=yes
14336else
14337  xorg_cv_cc_flag_unused_command_line_argument=no
14338fi
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340fi
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14344	CFLAGS="$xorg_testset_save_CFLAGS"
14345fi
14346
14347found="no"
14348
14349	if test $found = "no" ; then
14350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14352		fi
14353
14354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14356		fi
14357
14358		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14359
14360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14361$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14362		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14363		if eval \${$cacheid+:} false; then :
14364  $as_echo_n "(cached) " >&6
14365else
14366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367/* end confdefs.h.  */
14368int i;
14369int
14370main ()
14371{
14372
14373  ;
14374  return 0;
14375}
14376_ACEOF
14377if ac_fn_c_try_link "$LINENO"; then :
14378  eval $cacheid=yes
14379else
14380  eval $cacheid=no
14381fi
14382rm -f core conftest.err conftest.$ac_objext \
14383    conftest$ac_exeext conftest.$ac_ext
14384fi
14385
14386
14387		CFLAGS="$xorg_testset_save_CFLAGS"
14388
14389		eval supported=\$$cacheid
14390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14391$as_echo "$supported" >&6; }
14392		if test "$supported" = "yes" ; then
14393			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14394			found="yes"
14395		fi
14396	fi
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412xorg_testset_save_CFLAGS="$CFLAGS"
14413
14414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h.  */
14423int i;
14424_ACEOF
14425if ac_fn_c_try_compile "$LINENO"; then :
14426  xorg_cv_cc_flag_unknown_warning_option=yes
14427else
14428  xorg_cv_cc_flag_unknown_warning_option=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431fi
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14435	CFLAGS="$xorg_testset_save_CFLAGS"
14436fi
14437
14438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14441	fi
14442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14446  $as_echo_n "(cached) " >&6
14447else
14448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450int i;
14451_ACEOF
14452if ac_fn_c_try_compile "$LINENO"; then :
14453  xorg_cv_cc_flag_unused_command_line_argument=yes
14454else
14455  xorg_cv_cc_flag_unused_command_line_argument=no
14456fi
14457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458fi
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14462	CFLAGS="$xorg_testset_save_CFLAGS"
14463fi
14464
14465found="no"
14466
14467	if test $found = "no" ; then
14468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14470		fi
14471
14472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14474		fi
14475
14476		CFLAGS="$CFLAGS -Wredundant-decls"
14477
14478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14479$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14480		cacheid=xorg_cv_cc_flag__Wredundant_decls
14481		if eval \${$cacheid+:} false; then :
14482  $as_echo_n "(cached) " >&6
14483else
14484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485/* end confdefs.h.  */
14486int i;
14487int
14488main ()
14489{
14490
14491  ;
14492  return 0;
14493}
14494_ACEOF
14495if ac_fn_c_try_link "$LINENO"; then :
14496  eval $cacheid=yes
14497else
14498  eval $cacheid=no
14499fi
14500rm -f core conftest.err conftest.$ac_objext \
14501    conftest$ac_exeext conftest.$ac_ext
14502fi
14503
14504
14505		CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507		eval supported=\$$cacheid
14508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509$as_echo "$supported" >&6; }
14510		if test "$supported" = "yes" ; then
14511			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14512			found="yes"
14513		fi
14514	fi
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530xorg_testset_save_CFLAGS="$CFLAGS"
14531
14532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14537  $as_echo_n "(cached) " >&6
14538else
14539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540/* end confdefs.h.  */
14541int i;
14542_ACEOF
14543if ac_fn_c_try_compile "$LINENO"; then :
14544  xorg_cv_cc_flag_unknown_warning_option=yes
14545else
14546  xorg_cv_cc_flag_unknown_warning_option=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14553	CFLAGS="$xorg_testset_save_CFLAGS"
14554fi
14555
14556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559	fi
14560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h.  */
14568int i;
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571  xorg_cv_cc_flag_unused_command_line_argument=yes
14572else
14573  xorg_cv_cc_flag_unused_command_line_argument=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14580	CFLAGS="$xorg_testset_save_CFLAGS"
14581fi
14582
14583found="no"
14584
14585	if test $found = "no" ; then
14586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14588		fi
14589
14590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14592		fi
14593
14594		CFLAGS="$CFLAGS -Wlogical-op"
14595
14596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14597$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14598		cacheid=xorg_cv_cc_flag__Wlogical_op
14599		if eval \${$cacheid+:} false; then :
14600  $as_echo_n "(cached) " >&6
14601else
14602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h.  */
14604int i;
14605int
14606main ()
14607{
14608
14609  ;
14610  return 0;
14611}
14612_ACEOF
14613if ac_fn_c_try_link "$LINENO"; then :
14614  eval $cacheid=yes
14615else
14616  eval $cacheid=no
14617fi
14618rm -f core conftest.err conftest.$ac_objext \
14619    conftest$ac_exeext conftest.$ac_ext
14620fi
14621
14622
14623		CFLAGS="$xorg_testset_save_CFLAGS"
14624
14625		eval supported=\$$cacheid
14626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14627$as_echo "$supported" >&6; }
14628		if test "$supported" = "yes" ; then
14629			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14630			found="yes"
14631		fi
14632	fi
14633
14634
14635
14636# These are currently disabled because they are noisy.  They will be enabled
14637# in the future once the codebase is sufficiently modernized to silence
14638# them.  For now, I don't want them to drown out the other warnings.
14639# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14640# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14641# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14642
14643# Turn some warnings into errors, so we don't accidently get successful builds
14644# when there are problems that should be fixed.
14645
14646if test "x$SELECTIVE_WERROR" = "xyes" ; then
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14667  $as_echo_n "(cached) " >&6
14668else
14669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671int i;
14672_ACEOF
14673if ac_fn_c_try_compile "$LINENO"; then :
14674  xorg_cv_cc_flag_unknown_warning_option=yes
14675else
14676  xorg_cv_cc_flag_unknown_warning_option=no
14677fi
14678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679fi
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14683	CFLAGS="$xorg_testset_save_CFLAGS"
14684fi
14685
14686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14689	fi
14690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h.  */
14698int i;
14699_ACEOF
14700if ac_fn_c_try_compile "$LINENO"; then :
14701  xorg_cv_cc_flag_unused_command_line_argument=yes
14702else
14703  xorg_cv_cc_flag_unused_command_line_argument=no
14704fi
14705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14710	CFLAGS="$xorg_testset_save_CFLAGS"
14711fi
14712
14713found="no"
14714
14715	if test $found = "no" ; then
14716		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718		fi
14719
14720		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722		fi
14723
14724		CFLAGS="$CFLAGS -Werror=implicit"
14725
14726		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14727$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14728		cacheid=xorg_cv_cc_flag__Werror_implicit
14729		if eval \${$cacheid+:} false; then :
14730  $as_echo_n "(cached) " >&6
14731else
14732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733/* end confdefs.h.  */
14734int i;
14735int
14736main ()
14737{
14738
14739  ;
14740  return 0;
14741}
14742_ACEOF
14743if ac_fn_c_try_link "$LINENO"; then :
14744  eval $cacheid=yes
14745else
14746  eval $cacheid=no
14747fi
14748rm -f core conftest.err conftest.$ac_objext \
14749    conftest$ac_exeext conftest.$ac_ext
14750fi
14751
14752
14753		CFLAGS="$xorg_testset_save_CFLAGS"
14754
14755		eval supported=\$$cacheid
14756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14757$as_echo "$supported" >&6; }
14758		if test "$supported" = "yes" ; then
14759			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14760			found="yes"
14761		fi
14762	fi
14763
14764	if test $found = "no" ; then
14765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14767		fi
14768
14769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14771		fi
14772
14773		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14774
14775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14776$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14777		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14778		if eval \${$cacheid+:} false; then :
14779  $as_echo_n "(cached) " >&6
14780else
14781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782/* end confdefs.h.  */
14783int i;
14784int
14785main ()
14786{
14787
14788  ;
14789  return 0;
14790}
14791_ACEOF
14792if ac_fn_c_try_link "$LINENO"; then :
14793  eval $cacheid=yes
14794else
14795  eval $cacheid=no
14796fi
14797rm -f core conftest.err conftest.$ac_objext \
14798    conftest$ac_exeext conftest.$ac_ext
14799fi
14800
14801
14802		CFLAGS="$xorg_testset_save_CFLAGS"
14803
14804		eval supported=\$$cacheid
14805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14806$as_echo "$supported" >&6; }
14807		if test "$supported" = "yes" ; then
14808			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14809			found="yes"
14810		fi
14811	fi
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827xorg_testset_save_CFLAGS="$CFLAGS"
14828
14829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14834  $as_echo_n "(cached) " >&6
14835else
14836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h.  */
14838int i;
14839_ACEOF
14840if ac_fn_c_try_compile "$LINENO"; then :
14841  xorg_cv_cc_flag_unknown_warning_option=yes
14842else
14843  xorg_cv_cc_flag_unknown_warning_option=no
14844fi
14845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846fi
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14850	CFLAGS="$xorg_testset_save_CFLAGS"
14851fi
14852
14853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856	fi
14857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14861  $as_echo_n "(cached) " >&6
14862else
14863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864/* end confdefs.h.  */
14865int i;
14866_ACEOF
14867if ac_fn_c_try_compile "$LINENO"; then :
14868  xorg_cv_cc_flag_unused_command_line_argument=yes
14869else
14870  xorg_cv_cc_flag_unused_command_line_argument=no
14871fi
14872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873fi
14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14877	CFLAGS="$xorg_testset_save_CFLAGS"
14878fi
14879
14880found="no"
14881
14882	if test $found = "no" ; then
14883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14885		fi
14886
14887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14889		fi
14890
14891		CFLAGS="$CFLAGS -Werror=nonnull"
14892
14893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14894$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14895		cacheid=xorg_cv_cc_flag__Werror_nonnull
14896		if eval \${$cacheid+:} false; then :
14897  $as_echo_n "(cached) " >&6
14898else
14899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901int i;
14902int
14903main ()
14904{
14905
14906  ;
14907  return 0;
14908}
14909_ACEOF
14910if ac_fn_c_try_link "$LINENO"; then :
14911  eval $cacheid=yes
14912else
14913  eval $cacheid=no
14914fi
14915rm -f core conftest.err conftest.$ac_objext \
14916    conftest$ac_exeext conftest.$ac_ext
14917fi
14918
14919
14920		CFLAGS="$xorg_testset_save_CFLAGS"
14921
14922		eval supported=\$$cacheid
14923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14924$as_echo "$supported" >&6; }
14925		if test "$supported" = "yes" ; then
14926			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14927			found="yes"
14928		fi
14929	fi
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945xorg_testset_save_CFLAGS="$CFLAGS"
14946
14947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14952  $as_echo_n "(cached) " >&6
14953else
14954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956int i;
14957_ACEOF
14958if ac_fn_c_try_compile "$LINENO"; then :
14959  xorg_cv_cc_flag_unknown_warning_option=yes
14960else
14961  xorg_cv_cc_flag_unknown_warning_option=no
14962fi
14963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14964fi
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14968	CFLAGS="$xorg_testset_save_CFLAGS"
14969fi
14970
14971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14974	fi
14975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14979  $as_echo_n "(cached) " >&6
14980else
14981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982/* end confdefs.h.  */
14983int i;
14984_ACEOF
14985if ac_fn_c_try_compile "$LINENO"; then :
14986  xorg_cv_cc_flag_unused_command_line_argument=yes
14987else
14988  xorg_cv_cc_flag_unused_command_line_argument=no
14989fi
14990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991fi
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14995	CFLAGS="$xorg_testset_save_CFLAGS"
14996fi
14997
14998found="no"
14999
15000	if test $found = "no" ; then
15001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15003		fi
15004
15005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15007		fi
15008
15009		CFLAGS="$CFLAGS -Werror=init-self"
15010
15011		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15012$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15013		cacheid=xorg_cv_cc_flag__Werror_init_self
15014		if eval \${$cacheid+:} false; then :
15015  $as_echo_n "(cached) " >&6
15016else
15017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018/* end confdefs.h.  */
15019int i;
15020int
15021main ()
15022{
15023
15024  ;
15025  return 0;
15026}
15027_ACEOF
15028if ac_fn_c_try_link "$LINENO"; then :
15029  eval $cacheid=yes
15030else
15031  eval $cacheid=no
15032fi
15033rm -f core conftest.err conftest.$ac_objext \
15034    conftest$ac_exeext conftest.$ac_ext
15035fi
15036
15037
15038		CFLAGS="$xorg_testset_save_CFLAGS"
15039
15040		eval supported=\$$cacheid
15041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15042$as_echo "$supported" >&6; }
15043		if test "$supported" = "yes" ; then
15044			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15045			found="yes"
15046		fi
15047	fi
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063xorg_testset_save_CFLAGS="$CFLAGS"
15064
15065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074int i;
15075_ACEOF
15076if ac_fn_c_try_compile "$LINENO"; then :
15077  xorg_cv_cc_flag_unknown_warning_option=yes
15078else
15079  xorg_cv_cc_flag_unknown_warning_option=no
15080fi
15081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082fi
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15086	CFLAGS="$xorg_testset_save_CFLAGS"
15087fi
15088
15089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15092	fi
15093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15097  $as_echo_n "(cached) " >&6
15098else
15099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h.  */
15101int i;
15102_ACEOF
15103if ac_fn_c_try_compile "$LINENO"; then :
15104  xorg_cv_cc_flag_unused_command_line_argument=yes
15105else
15106  xorg_cv_cc_flag_unused_command_line_argument=no
15107fi
15108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15113	CFLAGS="$xorg_testset_save_CFLAGS"
15114fi
15115
15116found="no"
15117
15118	if test $found = "no" ; then
15119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121		fi
15122
15123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15125		fi
15126
15127		CFLAGS="$CFLAGS -Werror=main"
15128
15129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15130$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15131		cacheid=xorg_cv_cc_flag__Werror_main
15132		if eval \${$cacheid+:} false; then :
15133  $as_echo_n "(cached) " >&6
15134else
15135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136/* end confdefs.h.  */
15137int i;
15138int
15139main ()
15140{
15141
15142  ;
15143  return 0;
15144}
15145_ACEOF
15146if ac_fn_c_try_link "$LINENO"; then :
15147  eval $cacheid=yes
15148else
15149  eval $cacheid=no
15150fi
15151rm -f core conftest.err conftest.$ac_objext \
15152    conftest$ac_exeext conftest.$ac_ext
15153fi
15154
15155
15156		CFLAGS="$xorg_testset_save_CFLAGS"
15157
15158		eval supported=\$$cacheid
15159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15160$as_echo "$supported" >&6; }
15161		if test "$supported" = "yes" ; then
15162			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15163			found="yes"
15164		fi
15165	fi
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181xorg_testset_save_CFLAGS="$CFLAGS"
15182
15183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15188  $as_echo_n "(cached) " >&6
15189else
15190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191/* end confdefs.h.  */
15192int i;
15193_ACEOF
15194if ac_fn_c_try_compile "$LINENO"; then :
15195  xorg_cv_cc_flag_unknown_warning_option=yes
15196else
15197  xorg_cv_cc_flag_unknown_warning_option=no
15198fi
15199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200fi
15201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15204	CFLAGS="$xorg_testset_save_CFLAGS"
15205fi
15206
15207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210	fi
15211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15215  $as_echo_n "(cached) " >&6
15216else
15217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219int i;
15220_ACEOF
15221if ac_fn_c_try_compile "$LINENO"; then :
15222  xorg_cv_cc_flag_unused_command_line_argument=yes
15223else
15224  xorg_cv_cc_flag_unused_command_line_argument=no
15225fi
15226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15231	CFLAGS="$xorg_testset_save_CFLAGS"
15232fi
15233
15234found="no"
15235
15236	if test $found = "no" ; then
15237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15239		fi
15240
15241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15243		fi
15244
15245		CFLAGS="$CFLAGS -Werror=missing-braces"
15246
15247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15248$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15249		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15250		if eval \${$cacheid+:} false; then :
15251  $as_echo_n "(cached) " >&6
15252else
15253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254/* end confdefs.h.  */
15255int i;
15256int
15257main ()
15258{
15259
15260  ;
15261  return 0;
15262}
15263_ACEOF
15264if ac_fn_c_try_link "$LINENO"; then :
15265  eval $cacheid=yes
15266else
15267  eval $cacheid=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext \
15270    conftest$ac_exeext conftest.$ac_ext
15271fi
15272
15273
15274		CFLAGS="$xorg_testset_save_CFLAGS"
15275
15276		eval supported=\$$cacheid
15277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15278$as_echo "$supported" >&6; }
15279		if test "$supported" = "yes" ; then
15280			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15281			found="yes"
15282		fi
15283	fi
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299xorg_testset_save_CFLAGS="$CFLAGS"
15300
15301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15306  $as_echo_n "(cached) " >&6
15307else
15308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309/* end confdefs.h.  */
15310int i;
15311_ACEOF
15312if ac_fn_c_try_compile "$LINENO"; then :
15313  xorg_cv_cc_flag_unknown_warning_option=yes
15314else
15315  xorg_cv_cc_flag_unknown_warning_option=no
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318fi
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15322	CFLAGS="$xorg_testset_save_CFLAGS"
15323fi
15324
15325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328	fi
15329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15333  $as_echo_n "(cached) " >&6
15334else
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337int i;
15338_ACEOF
15339if ac_fn_c_try_compile "$LINENO"; then :
15340  xorg_cv_cc_flag_unused_command_line_argument=yes
15341else
15342  xorg_cv_cc_flag_unused_command_line_argument=no
15343fi
15344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345fi
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15349	CFLAGS="$xorg_testset_save_CFLAGS"
15350fi
15351
15352found="no"
15353
15354	if test $found = "no" ; then
15355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15357		fi
15358
15359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15361		fi
15362
15363		CFLAGS="$CFLAGS -Werror=sequence-point"
15364
15365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15366$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15367		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15368		if eval \${$cacheid+:} false; then :
15369  $as_echo_n "(cached) " >&6
15370else
15371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372/* end confdefs.h.  */
15373int i;
15374int
15375main ()
15376{
15377
15378  ;
15379  return 0;
15380}
15381_ACEOF
15382if ac_fn_c_try_link "$LINENO"; then :
15383  eval $cacheid=yes
15384else
15385  eval $cacheid=no
15386fi
15387rm -f core conftest.err conftest.$ac_objext \
15388    conftest$ac_exeext conftest.$ac_ext
15389fi
15390
15391
15392		CFLAGS="$xorg_testset_save_CFLAGS"
15393
15394		eval supported=\$$cacheid
15395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15396$as_echo "$supported" >&6; }
15397		if test "$supported" = "yes" ; then
15398			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15399			found="yes"
15400		fi
15401	fi
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417xorg_testset_save_CFLAGS="$CFLAGS"
15418
15419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15424  $as_echo_n "(cached) " >&6
15425else
15426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427/* end confdefs.h.  */
15428int i;
15429_ACEOF
15430if ac_fn_c_try_compile "$LINENO"; then :
15431  xorg_cv_cc_flag_unknown_warning_option=yes
15432else
15433  xorg_cv_cc_flag_unknown_warning_option=no
15434fi
15435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436fi
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15440	CFLAGS="$xorg_testset_save_CFLAGS"
15441fi
15442
15443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15446	fi
15447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15451  $as_echo_n "(cached) " >&6
15452else
15453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454/* end confdefs.h.  */
15455int i;
15456_ACEOF
15457if ac_fn_c_try_compile "$LINENO"; then :
15458  xorg_cv_cc_flag_unused_command_line_argument=yes
15459else
15460  xorg_cv_cc_flag_unused_command_line_argument=no
15461fi
15462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15467	CFLAGS="$xorg_testset_save_CFLAGS"
15468fi
15469
15470found="no"
15471
15472	if test $found = "no" ; then
15473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15475		fi
15476
15477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15479		fi
15480
15481		CFLAGS="$CFLAGS -Werror=return-type"
15482
15483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15484$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15485		cacheid=xorg_cv_cc_flag__Werror_return_type
15486		if eval \${$cacheid+:} false; then :
15487  $as_echo_n "(cached) " >&6
15488else
15489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490/* end confdefs.h.  */
15491int i;
15492int
15493main ()
15494{
15495
15496  ;
15497  return 0;
15498}
15499_ACEOF
15500if ac_fn_c_try_link "$LINENO"; then :
15501  eval $cacheid=yes
15502else
15503  eval $cacheid=no
15504fi
15505rm -f core conftest.err conftest.$ac_objext \
15506    conftest$ac_exeext conftest.$ac_ext
15507fi
15508
15509
15510		CFLAGS="$xorg_testset_save_CFLAGS"
15511
15512		eval supported=\$$cacheid
15513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15514$as_echo "$supported" >&6; }
15515		if test "$supported" = "yes" ; then
15516			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15517			found="yes"
15518		fi
15519	fi
15520
15521	if test $found = "no" ; then
15522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15524		fi
15525
15526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15528		fi
15529
15530		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15531
15532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15533$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15534		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15535		if eval \${$cacheid+:} false; then :
15536  $as_echo_n "(cached) " >&6
15537else
15538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539/* end confdefs.h.  */
15540int i;
15541int
15542main ()
15543{
15544
15545  ;
15546  return 0;
15547}
15548_ACEOF
15549if ac_fn_c_try_link "$LINENO"; then :
15550  eval $cacheid=yes
15551else
15552  eval $cacheid=no
15553fi
15554rm -f core conftest.err conftest.$ac_objext \
15555    conftest$ac_exeext conftest.$ac_ext
15556fi
15557
15558
15559		CFLAGS="$xorg_testset_save_CFLAGS"
15560
15561		eval supported=\$$cacheid
15562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15563$as_echo "$supported" >&6; }
15564		if test "$supported" = "yes" ; then
15565			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15566			found="yes"
15567		fi
15568	fi
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584xorg_testset_save_CFLAGS="$CFLAGS"
15585
15586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15591  $as_echo_n "(cached) " >&6
15592else
15593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594/* end confdefs.h.  */
15595int i;
15596_ACEOF
15597if ac_fn_c_try_compile "$LINENO"; then :
15598  xorg_cv_cc_flag_unknown_warning_option=yes
15599else
15600  xorg_cv_cc_flag_unknown_warning_option=no
15601fi
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603fi
15604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15607	CFLAGS="$xorg_testset_save_CFLAGS"
15608fi
15609
15610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15613	fi
15614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h.  */
15622int i;
15623_ACEOF
15624if ac_fn_c_try_compile "$LINENO"; then :
15625  xorg_cv_cc_flag_unused_command_line_argument=yes
15626else
15627  xorg_cv_cc_flag_unused_command_line_argument=no
15628fi
15629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630fi
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15634	CFLAGS="$xorg_testset_save_CFLAGS"
15635fi
15636
15637found="no"
15638
15639	if test $found = "no" ; then
15640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642		fi
15643
15644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646		fi
15647
15648		CFLAGS="$CFLAGS -Werror=trigraphs"
15649
15650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15651$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15652		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15653		if eval \${$cacheid+:} false; then :
15654  $as_echo_n "(cached) " >&6
15655else
15656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657/* end confdefs.h.  */
15658int i;
15659int
15660main ()
15661{
15662
15663  ;
15664  return 0;
15665}
15666_ACEOF
15667if ac_fn_c_try_link "$LINENO"; then :
15668  eval $cacheid=yes
15669else
15670  eval $cacheid=no
15671fi
15672rm -f core conftest.err conftest.$ac_objext \
15673    conftest$ac_exeext conftest.$ac_ext
15674fi
15675
15676
15677		CFLAGS="$xorg_testset_save_CFLAGS"
15678
15679		eval supported=\$$cacheid
15680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15681$as_echo "$supported" >&6; }
15682		if test "$supported" = "yes" ; then
15683			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15684			found="yes"
15685		fi
15686	fi
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702xorg_testset_save_CFLAGS="$CFLAGS"
15703
15704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15709  $as_echo_n "(cached) " >&6
15710else
15711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712/* end confdefs.h.  */
15713int i;
15714_ACEOF
15715if ac_fn_c_try_compile "$LINENO"; then :
15716  xorg_cv_cc_flag_unknown_warning_option=yes
15717else
15718  xorg_cv_cc_flag_unknown_warning_option=no
15719fi
15720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721fi
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15725	CFLAGS="$xorg_testset_save_CFLAGS"
15726fi
15727
15728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731	fi
15732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739/* end confdefs.h.  */
15740int i;
15741_ACEOF
15742if ac_fn_c_try_compile "$LINENO"; then :
15743  xorg_cv_cc_flag_unused_command_line_argument=yes
15744else
15745  xorg_cv_cc_flag_unused_command_line_argument=no
15746fi
15747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748fi
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15752	CFLAGS="$xorg_testset_save_CFLAGS"
15753fi
15754
15755found="no"
15756
15757	if test $found = "no" ; then
15758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760		fi
15761
15762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15764		fi
15765
15766		CFLAGS="$CFLAGS -Werror=array-bounds"
15767
15768		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15769$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15770		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15771		if eval \${$cacheid+:} false; then :
15772  $as_echo_n "(cached) " >&6
15773else
15774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776int i;
15777int
15778main ()
15779{
15780
15781  ;
15782  return 0;
15783}
15784_ACEOF
15785if ac_fn_c_try_link "$LINENO"; then :
15786  eval $cacheid=yes
15787else
15788  eval $cacheid=no
15789fi
15790rm -f core conftest.err conftest.$ac_objext \
15791    conftest$ac_exeext conftest.$ac_ext
15792fi
15793
15794
15795		CFLAGS="$xorg_testset_save_CFLAGS"
15796
15797		eval supported=\$$cacheid
15798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15799$as_echo "$supported" >&6; }
15800		if test "$supported" = "yes" ; then
15801			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15802			found="yes"
15803		fi
15804	fi
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820xorg_testset_save_CFLAGS="$CFLAGS"
15821
15822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15827  $as_echo_n "(cached) " >&6
15828else
15829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h.  */
15831int i;
15832_ACEOF
15833if ac_fn_c_try_compile "$LINENO"; then :
15834  xorg_cv_cc_flag_unknown_warning_option=yes
15835else
15836  xorg_cv_cc_flag_unknown_warning_option=no
15837fi
15838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839fi
15840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15843	CFLAGS="$xorg_testset_save_CFLAGS"
15844fi
15845
15846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15849	fi
15850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15854  $as_echo_n "(cached) " >&6
15855else
15856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858int i;
15859_ACEOF
15860if ac_fn_c_try_compile "$LINENO"; then :
15861  xorg_cv_cc_flag_unused_command_line_argument=yes
15862else
15863  xorg_cv_cc_flag_unused_command_line_argument=no
15864fi
15865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866fi
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15870	CFLAGS="$xorg_testset_save_CFLAGS"
15871fi
15872
15873found="no"
15874
15875	if test $found = "no" ; then
15876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878		fi
15879
15880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15882		fi
15883
15884		CFLAGS="$CFLAGS -Werror=write-strings"
15885
15886		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15887$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15888		cacheid=xorg_cv_cc_flag__Werror_write_strings
15889		if eval \${$cacheid+:} false; then :
15890  $as_echo_n "(cached) " >&6
15891else
15892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893/* end confdefs.h.  */
15894int i;
15895int
15896main ()
15897{
15898
15899  ;
15900  return 0;
15901}
15902_ACEOF
15903if ac_fn_c_try_link "$LINENO"; then :
15904  eval $cacheid=yes
15905else
15906  eval $cacheid=no
15907fi
15908rm -f core conftest.err conftest.$ac_objext \
15909    conftest$ac_exeext conftest.$ac_ext
15910fi
15911
15912
15913		CFLAGS="$xorg_testset_save_CFLAGS"
15914
15915		eval supported=\$$cacheid
15916		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15917$as_echo "$supported" >&6; }
15918		if test "$supported" = "yes" ; then
15919			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15920			found="yes"
15921		fi
15922	fi
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938xorg_testset_save_CFLAGS="$CFLAGS"
15939
15940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15945  $as_echo_n "(cached) " >&6
15946else
15947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948/* end confdefs.h.  */
15949int i;
15950_ACEOF
15951if ac_fn_c_try_compile "$LINENO"; then :
15952  xorg_cv_cc_flag_unknown_warning_option=yes
15953else
15954  xorg_cv_cc_flag_unknown_warning_option=no
15955fi
15956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957fi
15958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15961	CFLAGS="$xorg_testset_save_CFLAGS"
15962fi
15963
15964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967	fi
15968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976int i;
15977_ACEOF
15978if ac_fn_c_try_compile "$LINENO"; then :
15979  xorg_cv_cc_flag_unused_command_line_argument=yes
15980else
15981  xorg_cv_cc_flag_unused_command_line_argument=no
15982fi
15983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984fi
15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15988	CFLAGS="$xorg_testset_save_CFLAGS"
15989fi
15990
15991found="no"
15992
15993	if test $found = "no" ; then
15994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996		fi
15997
15998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16000		fi
16001
16002		CFLAGS="$CFLAGS -Werror=address"
16003
16004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16005$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16006		cacheid=xorg_cv_cc_flag__Werror_address
16007		if eval \${$cacheid+:} false; then :
16008  $as_echo_n "(cached) " >&6
16009else
16010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011/* end confdefs.h.  */
16012int i;
16013int
16014main ()
16015{
16016
16017  ;
16018  return 0;
16019}
16020_ACEOF
16021if ac_fn_c_try_link "$LINENO"; then :
16022  eval $cacheid=yes
16023else
16024  eval $cacheid=no
16025fi
16026rm -f core conftest.err conftest.$ac_objext \
16027    conftest$ac_exeext conftest.$ac_ext
16028fi
16029
16030
16031		CFLAGS="$xorg_testset_save_CFLAGS"
16032
16033		eval supported=\$$cacheid
16034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16035$as_echo "$supported" >&6; }
16036		if test "$supported" = "yes" ; then
16037			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16038			found="yes"
16039		fi
16040	fi
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056xorg_testset_save_CFLAGS="$CFLAGS"
16057
16058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16063  $as_echo_n "(cached) " >&6
16064else
16065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066/* end confdefs.h.  */
16067int i;
16068_ACEOF
16069if ac_fn_c_try_compile "$LINENO"; then :
16070  xorg_cv_cc_flag_unknown_warning_option=yes
16071else
16072  xorg_cv_cc_flag_unknown_warning_option=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16079	CFLAGS="$xorg_testset_save_CFLAGS"
16080fi
16081
16082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16085	fi
16086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16090  $as_echo_n "(cached) " >&6
16091else
16092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094int i;
16095_ACEOF
16096if ac_fn_c_try_compile "$LINENO"; then :
16097  xorg_cv_cc_flag_unused_command_line_argument=yes
16098else
16099  xorg_cv_cc_flag_unused_command_line_argument=no
16100fi
16101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16102fi
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16106	CFLAGS="$xorg_testset_save_CFLAGS"
16107fi
16108
16109found="no"
16110
16111	if test $found = "no" ; then
16112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16114		fi
16115
16116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16118		fi
16119
16120		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16121
16122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16123$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16124		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16125		if eval \${$cacheid+:} false; then :
16126  $as_echo_n "(cached) " >&6
16127else
16128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h.  */
16130int i;
16131int
16132main ()
16133{
16134
16135  ;
16136  return 0;
16137}
16138_ACEOF
16139if ac_fn_c_try_link "$LINENO"; then :
16140  eval $cacheid=yes
16141else
16142  eval $cacheid=no
16143fi
16144rm -f core conftest.err conftest.$ac_objext \
16145    conftest$ac_exeext conftest.$ac_ext
16146fi
16147
16148
16149		CFLAGS="$xorg_testset_save_CFLAGS"
16150
16151		eval supported=\$$cacheid
16152		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16153$as_echo "$supported" >&6; }
16154		if test "$supported" = "yes" ; then
16155			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16156			found="yes"
16157		fi
16158	fi
16159
16160	if test $found = "no" ; then
16161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163		fi
16164
16165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16167		fi
16168
16169		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16170
16171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16172$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16173		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16174		if eval \${$cacheid+:} false; then :
16175  $as_echo_n "(cached) " >&6
16176else
16177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179int i;
16180int
16181main ()
16182{
16183
16184  ;
16185  return 0;
16186}
16187_ACEOF
16188if ac_fn_c_try_link "$LINENO"; then :
16189  eval $cacheid=yes
16190else
16191  eval $cacheid=no
16192fi
16193rm -f core conftest.err conftest.$ac_objext \
16194    conftest$ac_exeext conftest.$ac_ext
16195fi
16196
16197
16198		CFLAGS="$xorg_testset_save_CFLAGS"
16199
16200		eval supported=\$$cacheid
16201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16202$as_echo "$supported" >&6; }
16203		if test "$supported" = "yes" ; then
16204			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16205			found="yes"
16206		fi
16207	fi
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223xorg_testset_save_CFLAGS="$CFLAGS"
16224
16225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233/* end confdefs.h.  */
16234int i;
16235_ACEOF
16236if ac_fn_c_try_compile "$LINENO"; then :
16237  xorg_cv_cc_flag_unknown_warning_option=yes
16238else
16239  xorg_cv_cc_flag_unknown_warning_option=no
16240fi
16241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242fi
16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16246	CFLAGS="$xorg_testset_save_CFLAGS"
16247fi
16248
16249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252	fi
16253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16257  $as_echo_n "(cached) " >&6
16258else
16259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h.  */
16261int i;
16262_ACEOF
16263if ac_fn_c_try_compile "$LINENO"; then :
16264  xorg_cv_cc_flag_unused_command_line_argument=yes
16265else
16266  xorg_cv_cc_flag_unused_command_line_argument=no
16267fi
16268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269fi
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16273	CFLAGS="$xorg_testset_save_CFLAGS"
16274fi
16275
16276found="no"
16277
16278	if test $found = "no" ; then
16279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16281		fi
16282
16283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285		fi
16286
16287		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16288
16289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16290$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16291		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16292		if eval \${$cacheid+:} false; then :
16293  $as_echo_n "(cached) " >&6
16294else
16295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h.  */
16297int i;
16298int
16299main ()
16300{
16301
16302  ;
16303  return 0;
16304}
16305_ACEOF
16306if ac_fn_c_try_link "$LINENO"; then :
16307  eval $cacheid=yes
16308else
16309  eval $cacheid=no
16310fi
16311rm -f core conftest.err conftest.$ac_objext \
16312    conftest$ac_exeext conftest.$ac_ext
16313fi
16314
16315
16316		CFLAGS="$xorg_testset_save_CFLAGS"
16317
16318		eval supported=\$$cacheid
16319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16320$as_echo "$supported" >&6; }
16321		if test "$supported" = "yes" ; then
16322			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16323			found="yes"
16324		fi
16325	fi
16326
16327 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16328else
16329{ $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
16330$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;}
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344xorg_testset_save_CFLAGS="$CFLAGS"
16345
16346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16347	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16349$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16350if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16351  $as_echo_n "(cached) " >&6
16352else
16353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h.  */
16355int i;
16356_ACEOF
16357if ac_fn_c_try_compile "$LINENO"; then :
16358  xorg_cv_cc_flag_unknown_warning_option=yes
16359else
16360  xorg_cv_cc_flag_unknown_warning_option=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16365$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16367	CFLAGS="$xorg_testset_save_CFLAGS"
16368fi
16369
16370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373	fi
16374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16376$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16377if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16378  $as_echo_n "(cached) " >&6
16379else
16380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382int i;
16383_ACEOF
16384if ac_fn_c_try_compile "$LINENO"; then :
16385  xorg_cv_cc_flag_unused_command_line_argument=yes
16386else
16387  xorg_cv_cc_flag_unused_command_line_argument=no
16388fi
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390fi
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16392$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16393	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16394	CFLAGS="$xorg_testset_save_CFLAGS"
16395fi
16396
16397found="no"
16398
16399	if test $found = "no" ; then
16400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16402		fi
16403
16404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16406		fi
16407
16408		CFLAGS="$CFLAGS -Wimplicit"
16409
16410		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16411$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16412		cacheid=xorg_cv_cc_flag__Wimplicit
16413		if eval \${$cacheid+:} false; then :
16414  $as_echo_n "(cached) " >&6
16415else
16416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417/* end confdefs.h.  */
16418int i;
16419int
16420main ()
16421{
16422
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428  eval $cacheid=yes
16429else
16430  eval $cacheid=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext \
16433    conftest$ac_exeext conftest.$ac_ext
16434fi
16435
16436
16437		CFLAGS="$xorg_testset_save_CFLAGS"
16438
16439		eval supported=\$$cacheid
16440		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16441$as_echo "$supported" >&6; }
16442		if test "$supported" = "yes" ; then
16443			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16444			found="yes"
16445		fi
16446	fi
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462xorg_testset_save_CFLAGS="$CFLAGS"
16463
16464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16469  $as_echo_n "(cached) " >&6
16470else
16471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472/* end confdefs.h.  */
16473int i;
16474_ACEOF
16475if ac_fn_c_try_compile "$LINENO"; then :
16476  xorg_cv_cc_flag_unknown_warning_option=yes
16477else
16478  xorg_cv_cc_flag_unknown_warning_option=no
16479fi
16480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481fi
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16484	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16485	CFLAGS="$xorg_testset_save_CFLAGS"
16486fi
16487
16488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16489	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16490		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491	fi
16492	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16496  $as_echo_n "(cached) " >&6
16497else
16498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499/* end confdefs.h.  */
16500int i;
16501_ACEOF
16502if ac_fn_c_try_compile "$LINENO"; then :
16503  xorg_cv_cc_flag_unused_command_line_argument=yes
16504else
16505  xorg_cv_cc_flag_unused_command_line_argument=no
16506fi
16507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508fi
16509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16512	CFLAGS="$xorg_testset_save_CFLAGS"
16513fi
16514
16515found="no"
16516
16517	if test $found = "no" ; then
16518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16520		fi
16521
16522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16524		fi
16525
16526		CFLAGS="$CFLAGS -Wnonnull"
16527
16528		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16529$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16530		cacheid=xorg_cv_cc_flag__Wnonnull
16531		if eval \${$cacheid+:} false; then :
16532  $as_echo_n "(cached) " >&6
16533else
16534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535/* end confdefs.h.  */
16536int i;
16537int
16538main ()
16539{
16540
16541  ;
16542  return 0;
16543}
16544_ACEOF
16545if ac_fn_c_try_link "$LINENO"; then :
16546  eval $cacheid=yes
16547else
16548  eval $cacheid=no
16549fi
16550rm -f core conftest.err conftest.$ac_objext \
16551    conftest$ac_exeext conftest.$ac_ext
16552fi
16553
16554
16555		CFLAGS="$xorg_testset_save_CFLAGS"
16556
16557		eval supported=\$$cacheid
16558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16559$as_echo "$supported" >&6; }
16560		if test "$supported" = "yes" ; then
16561			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16562			found="yes"
16563		fi
16564	fi
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580xorg_testset_save_CFLAGS="$CFLAGS"
16581
16582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16587  $as_echo_n "(cached) " >&6
16588else
16589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590/* end confdefs.h.  */
16591int i;
16592_ACEOF
16593if ac_fn_c_try_compile "$LINENO"; then :
16594  xorg_cv_cc_flag_unknown_warning_option=yes
16595else
16596  xorg_cv_cc_flag_unknown_warning_option=no
16597fi
16598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599fi
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16603	CFLAGS="$xorg_testset_save_CFLAGS"
16604fi
16605
16606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609	fi
16610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16614  $as_echo_n "(cached) " >&6
16615else
16616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617/* end confdefs.h.  */
16618int i;
16619_ACEOF
16620if ac_fn_c_try_compile "$LINENO"; then :
16621  xorg_cv_cc_flag_unused_command_line_argument=yes
16622else
16623  xorg_cv_cc_flag_unused_command_line_argument=no
16624fi
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626fi
16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16629	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16630	CFLAGS="$xorg_testset_save_CFLAGS"
16631fi
16632
16633found="no"
16634
16635	if test $found = "no" ; then
16636		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16637			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16638		fi
16639
16640		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16641			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16642		fi
16643
16644		CFLAGS="$CFLAGS -Winit-self"
16645
16646		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16647$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16648		cacheid=xorg_cv_cc_flag__Winit_self
16649		if eval \${$cacheid+:} false; then :
16650  $as_echo_n "(cached) " >&6
16651else
16652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653/* end confdefs.h.  */
16654int i;
16655int
16656main ()
16657{
16658
16659  ;
16660  return 0;
16661}
16662_ACEOF
16663if ac_fn_c_try_link "$LINENO"; then :
16664  eval $cacheid=yes
16665else
16666  eval $cacheid=no
16667fi
16668rm -f core conftest.err conftest.$ac_objext \
16669    conftest$ac_exeext conftest.$ac_ext
16670fi
16671
16672
16673		CFLAGS="$xorg_testset_save_CFLAGS"
16674
16675		eval supported=\$$cacheid
16676		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16677$as_echo "$supported" >&6; }
16678		if test "$supported" = "yes" ; then
16679			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16680			found="yes"
16681		fi
16682	fi
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698xorg_testset_save_CFLAGS="$CFLAGS"
16699
16700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16701	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16705  $as_echo_n "(cached) " >&6
16706else
16707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h.  */
16709int i;
16710_ACEOF
16711if ac_fn_c_try_compile "$LINENO"; then :
16712  xorg_cv_cc_flag_unknown_warning_option=yes
16713else
16714  xorg_cv_cc_flag_unknown_warning_option=no
16715fi
16716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16721	CFLAGS="$xorg_testset_save_CFLAGS"
16722fi
16723
16724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727	fi
16728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16732  $as_echo_n "(cached) " >&6
16733else
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736int i;
16737_ACEOF
16738if ac_fn_c_try_compile "$LINENO"; then :
16739  xorg_cv_cc_flag_unused_command_line_argument=yes
16740else
16741  xorg_cv_cc_flag_unused_command_line_argument=no
16742fi
16743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744fi
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16748	CFLAGS="$xorg_testset_save_CFLAGS"
16749fi
16750
16751found="no"
16752
16753	if test $found = "no" ; then
16754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16756		fi
16757
16758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16760		fi
16761
16762		CFLAGS="$CFLAGS -Wmain"
16763
16764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16765$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16766		cacheid=xorg_cv_cc_flag__Wmain
16767		if eval \${$cacheid+:} false; then :
16768  $as_echo_n "(cached) " >&6
16769else
16770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771/* end confdefs.h.  */
16772int i;
16773int
16774main ()
16775{
16776
16777  ;
16778  return 0;
16779}
16780_ACEOF
16781if ac_fn_c_try_link "$LINENO"; then :
16782  eval $cacheid=yes
16783else
16784  eval $cacheid=no
16785fi
16786rm -f core conftest.err conftest.$ac_objext \
16787    conftest$ac_exeext conftest.$ac_ext
16788fi
16789
16790
16791		CFLAGS="$xorg_testset_save_CFLAGS"
16792
16793		eval supported=\$$cacheid
16794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16795$as_echo "$supported" >&6; }
16796		if test "$supported" = "yes" ; then
16797			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16798			found="yes"
16799		fi
16800	fi
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816xorg_testset_save_CFLAGS="$CFLAGS"
16817
16818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16823  $as_echo_n "(cached) " >&6
16824else
16825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826/* end confdefs.h.  */
16827int i;
16828_ACEOF
16829if ac_fn_c_try_compile "$LINENO"; then :
16830  xorg_cv_cc_flag_unknown_warning_option=yes
16831else
16832  xorg_cv_cc_flag_unknown_warning_option=no
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16839	CFLAGS="$xorg_testset_save_CFLAGS"
16840fi
16841
16842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845	fi
16846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16850  $as_echo_n "(cached) " >&6
16851else
16852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h.  */
16854int i;
16855_ACEOF
16856if ac_fn_c_try_compile "$LINENO"; then :
16857  xorg_cv_cc_flag_unused_command_line_argument=yes
16858else
16859  xorg_cv_cc_flag_unused_command_line_argument=no
16860fi
16861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862fi
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16866	CFLAGS="$xorg_testset_save_CFLAGS"
16867fi
16868
16869found="no"
16870
16871	if test $found = "no" ; then
16872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16874		fi
16875
16876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16878		fi
16879
16880		CFLAGS="$CFLAGS -Wmissing-braces"
16881
16882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16883$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16884		cacheid=xorg_cv_cc_flag__Wmissing_braces
16885		if eval \${$cacheid+:} false; then :
16886  $as_echo_n "(cached) " >&6
16887else
16888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889/* end confdefs.h.  */
16890int i;
16891int
16892main ()
16893{
16894
16895  ;
16896  return 0;
16897}
16898_ACEOF
16899if ac_fn_c_try_link "$LINENO"; then :
16900  eval $cacheid=yes
16901else
16902  eval $cacheid=no
16903fi
16904rm -f core conftest.err conftest.$ac_objext \
16905    conftest$ac_exeext conftest.$ac_ext
16906fi
16907
16908
16909		CFLAGS="$xorg_testset_save_CFLAGS"
16910
16911		eval supported=\$$cacheid
16912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16913$as_echo "$supported" >&6; }
16914		if test "$supported" = "yes" ; then
16915			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16916			found="yes"
16917		fi
16918	fi
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934xorg_testset_save_CFLAGS="$CFLAGS"
16935
16936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16941  $as_echo_n "(cached) " >&6
16942else
16943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944/* end confdefs.h.  */
16945int i;
16946_ACEOF
16947if ac_fn_c_try_compile "$LINENO"; then :
16948  xorg_cv_cc_flag_unknown_warning_option=yes
16949else
16950  xorg_cv_cc_flag_unknown_warning_option=no
16951fi
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953fi
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16957	CFLAGS="$xorg_testset_save_CFLAGS"
16958fi
16959
16960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963	fi
16964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16968  $as_echo_n "(cached) " >&6
16969else
16970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h.  */
16972int i;
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"; then :
16975  xorg_cv_cc_flag_unused_command_line_argument=yes
16976else
16977  xorg_cv_cc_flag_unused_command_line_argument=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980fi
16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16984	CFLAGS="$xorg_testset_save_CFLAGS"
16985fi
16986
16987found="no"
16988
16989	if test $found = "no" ; then
16990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992		fi
16993
16994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996		fi
16997
16998		CFLAGS="$CFLAGS -Wsequence-point"
16999
17000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17001$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17002		cacheid=xorg_cv_cc_flag__Wsequence_point
17003		if eval \${$cacheid+:} false; then :
17004  $as_echo_n "(cached) " >&6
17005else
17006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007/* end confdefs.h.  */
17008int i;
17009int
17010main ()
17011{
17012
17013  ;
17014  return 0;
17015}
17016_ACEOF
17017if ac_fn_c_try_link "$LINENO"; then :
17018  eval $cacheid=yes
17019else
17020  eval $cacheid=no
17021fi
17022rm -f core conftest.err conftest.$ac_objext \
17023    conftest$ac_exeext conftest.$ac_ext
17024fi
17025
17026
17027		CFLAGS="$xorg_testset_save_CFLAGS"
17028
17029		eval supported=\$$cacheid
17030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17031$as_echo "$supported" >&6; }
17032		if test "$supported" = "yes" ; then
17033			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17034			found="yes"
17035		fi
17036	fi
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052xorg_testset_save_CFLAGS="$CFLAGS"
17053
17054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17059  $as_echo_n "(cached) " >&6
17060else
17061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h.  */
17063int i;
17064_ACEOF
17065if ac_fn_c_try_compile "$LINENO"; then :
17066  xorg_cv_cc_flag_unknown_warning_option=yes
17067else
17068  xorg_cv_cc_flag_unknown_warning_option=no
17069fi
17070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071fi
17072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17075	CFLAGS="$xorg_testset_save_CFLAGS"
17076fi
17077
17078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081	fi
17082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17086  $as_echo_n "(cached) " >&6
17087else
17088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089/* end confdefs.h.  */
17090int i;
17091_ACEOF
17092if ac_fn_c_try_compile "$LINENO"; then :
17093  xorg_cv_cc_flag_unused_command_line_argument=yes
17094else
17095  xorg_cv_cc_flag_unused_command_line_argument=no
17096fi
17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098fi
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17102	CFLAGS="$xorg_testset_save_CFLAGS"
17103fi
17104
17105found="no"
17106
17107	if test $found = "no" ; then
17108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17110		fi
17111
17112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17114		fi
17115
17116		CFLAGS="$CFLAGS -Wreturn-type"
17117
17118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17119$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17120		cacheid=xorg_cv_cc_flag__Wreturn_type
17121		if eval \${$cacheid+:} false; then :
17122  $as_echo_n "(cached) " >&6
17123else
17124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125/* end confdefs.h.  */
17126int i;
17127int
17128main ()
17129{
17130
17131  ;
17132  return 0;
17133}
17134_ACEOF
17135if ac_fn_c_try_link "$LINENO"; then :
17136  eval $cacheid=yes
17137else
17138  eval $cacheid=no
17139fi
17140rm -f core conftest.err conftest.$ac_objext \
17141    conftest$ac_exeext conftest.$ac_ext
17142fi
17143
17144
17145		CFLAGS="$xorg_testset_save_CFLAGS"
17146
17147		eval supported=\$$cacheid
17148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17149$as_echo "$supported" >&6; }
17150		if test "$supported" = "yes" ; then
17151			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17152			found="yes"
17153		fi
17154	fi
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170xorg_testset_save_CFLAGS="$CFLAGS"
17171
17172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17177  $as_echo_n "(cached) " >&6
17178else
17179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180/* end confdefs.h.  */
17181int i;
17182_ACEOF
17183if ac_fn_c_try_compile "$LINENO"; then :
17184  xorg_cv_cc_flag_unknown_warning_option=yes
17185else
17186  xorg_cv_cc_flag_unknown_warning_option=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17189fi
17190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17193	CFLAGS="$xorg_testset_save_CFLAGS"
17194fi
17195
17196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17199	fi
17200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17204  $as_echo_n "(cached) " >&6
17205else
17206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208int i;
17209_ACEOF
17210if ac_fn_c_try_compile "$LINENO"; then :
17211  xorg_cv_cc_flag_unused_command_line_argument=yes
17212else
17213  xorg_cv_cc_flag_unused_command_line_argument=no
17214fi
17215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216fi
17217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17220	CFLAGS="$xorg_testset_save_CFLAGS"
17221fi
17222
17223found="no"
17224
17225	if test $found = "no" ; then
17226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17228		fi
17229
17230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17232		fi
17233
17234		CFLAGS="$CFLAGS -Wtrigraphs"
17235
17236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17237$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17238		cacheid=xorg_cv_cc_flag__Wtrigraphs
17239		if eval \${$cacheid+:} false; then :
17240  $as_echo_n "(cached) " >&6
17241else
17242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h.  */
17244int i;
17245int
17246main ()
17247{
17248
17249  ;
17250  return 0;
17251}
17252_ACEOF
17253if ac_fn_c_try_link "$LINENO"; then :
17254  eval $cacheid=yes
17255else
17256  eval $cacheid=no
17257fi
17258rm -f core conftest.err conftest.$ac_objext \
17259    conftest$ac_exeext conftest.$ac_ext
17260fi
17261
17262
17263		CFLAGS="$xorg_testset_save_CFLAGS"
17264
17265		eval supported=\$$cacheid
17266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17267$as_echo "$supported" >&6; }
17268		if test "$supported" = "yes" ; then
17269			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17270			found="yes"
17271		fi
17272	fi
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288xorg_testset_save_CFLAGS="$CFLAGS"
17289
17290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17295  $as_echo_n "(cached) " >&6
17296else
17297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298/* end confdefs.h.  */
17299int i;
17300_ACEOF
17301if ac_fn_c_try_compile "$LINENO"; then :
17302  xorg_cv_cc_flag_unknown_warning_option=yes
17303else
17304  xorg_cv_cc_flag_unknown_warning_option=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307fi
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17311	CFLAGS="$xorg_testset_save_CFLAGS"
17312fi
17313
17314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317	fi
17318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17322  $as_echo_n "(cached) " >&6
17323else
17324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325/* end confdefs.h.  */
17326int i;
17327_ACEOF
17328if ac_fn_c_try_compile "$LINENO"; then :
17329  xorg_cv_cc_flag_unused_command_line_argument=yes
17330else
17331  xorg_cv_cc_flag_unused_command_line_argument=no
17332fi
17333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334fi
17335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17338	CFLAGS="$xorg_testset_save_CFLAGS"
17339fi
17340
17341found="no"
17342
17343	if test $found = "no" ; then
17344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17346		fi
17347
17348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17350		fi
17351
17352		CFLAGS="$CFLAGS -Warray-bounds"
17353
17354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17355$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17356		cacheid=xorg_cv_cc_flag__Warray_bounds
17357		if eval \${$cacheid+:} false; then :
17358  $as_echo_n "(cached) " >&6
17359else
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363int
17364main ()
17365{
17366
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371if ac_fn_c_try_link "$LINENO"; then :
17372  eval $cacheid=yes
17373else
17374  eval $cacheid=no
17375fi
17376rm -f core conftest.err conftest.$ac_objext \
17377    conftest$ac_exeext conftest.$ac_ext
17378fi
17379
17380
17381		CFLAGS="$xorg_testset_save_CFLAGS"
17382
17383		eval supported=\$$cacheid
17384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17385$as_echo "$supported" >&6; }
17386		if test "$supported" = "yes" ; then
17387			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17388			found="yes"
17389		fi
17390	fi
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406xorg_testset_save_CFLAGS="$CFLAGS"
17407
17408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17413  $as_echo_n "(cached) " >&6
17414else
17415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416/* end confdefs.h.  */
17417int i;
17418_ACEOF
17419if ac_fn_c_try_compile "$LINENO"; then :
17420  xorg_cv_cc_flag_unknown_warning_option=yes
17421else
17422  xorg_cv_cc_flag_unknown_warning_option=no
17423fi
17424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425fi
17426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17429	CFLAGS="$xorg_testset_save_CFLAGS"
17430fi
17431
17432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435	fi
17436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17440  $as_echo_n "(cached) " >&6
17441else
17442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444int i;
17445_ACEOF
17446if ac_fn_c_try_compile "$LINENO"; then :
17447  xorg_cv_cc_flag_unused_command_line_argument=yes
17448else
17449  xorg_cv_cc_flag_unused_command_line_argument=no
17450fi
17451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452fi
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17456	CFLAGS="$xorg_testset_save_CFLAGS"
17457fi
17458
17459found="no"
17460
17461	if test $found = "no" ; then
17462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17464		fi
17465
17466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468		fi
17469
17470		CFLAGS="$CFLAGS -Wwrite-strings"
17471
17472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17473$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17474		cacheid=xorg_cv_cc_flag__Wwrite_strings
17475		if eval \${$cacheid+:} false; then :
17476  $as_echo_n "(cached) " >&6
17477else
17478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479/* end confdefs.h.  */
17480int i;
17481int
17482main ()
17483{
17484
17485  ;
17486  return 0;
17487}
17488_ACEOF
17489if ac_fn_c_try_link "$LINENO"; then :
17490  eval $cacheid=yes
17491else
17492  eval $cacheid=no
17493fi
17494rm -f core conftest.err conftest.$ac_objext \
17495    conftest$ac_exeext conftest.$ac_ext
17496fi
17497
17498
17499		CFLAGS="$xorg_testset_save_CFLAGS"
17500
17501		eval supported=\$$cacheid
17502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17503$as_echo "$supported" >&6; }
17504		if test "$supported" = "yes" ; then
17505			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17506			found="yes"
17507		fi
17508	fi
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524xorg_testset_save_CFLAGS="$CFLAGS"
17525
17526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17531  $as_echo_n "(cached) " >&6
17532else
17533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h.  */
17535int i;
17536_ACEOF
17537if ac_fn_c_try_compile "$LINENO"; then :
17538  xorg_cv_cc_flag_unknown_warning_option=yes
17539else
17540  xorg_cv_cc_flag_unknown_warning_option=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543fi
17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17547	CFLAGS="$xorg_testset_save_CFLAGS"
17548fi
17549
17550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553	fi
17554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17558  $as_echo_n "(cached) " >&6
17559else
17560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561/* end confdefs.h.  */
17562int i;
17563_ACEOF
17564if ac_fn_c_try_compile "$LINENO"; then :
17565  xorg_cv_cc_flag_unused_command_line_argument=yes
17566else
17567  xorg_cv_cc_flag_unused_command_line_argument=no
17568fi
17569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570fi
17571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17574	CFLAGS="$xorg_testset_save_CFLAGS"
17575fi
17576
17577found="no"
17578
17579	if test $found = "no" ; then
17580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17582		fi
17583
17584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17586		fi
17587
17588		CFLAGS="$CFLAGS -Waddress"
17589
17590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17591$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17592		cacheid=xorg_cv_cc_flag__Waddress
17593		if eval \${$cacheid+:} false; then :
17594  $as_echo_n "(cached) " >&6
17595else
17596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597/* end confdefs.h.  */
17598int i;
17599int
17600main ()
17601{
17602
17603  ;
17604  return 0;
17605}
17606_ACEOF
17607if ac_fn_c_try_link "$LINENO"; then :
17608  eval $cacheid=yes
17609else
17610  eval $cacheid=no
17611fi
17612rm -f core conftest.err conftest.$ac_objext \
17613    conftest$ac_exeext conftest.$ac_ext
17614fi
17615
17616
17617		CFLAGS="$xorg_testset_save_CFLAGS"
17618
17619		eval supported=\$$cacheid
17620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17621$as_echo "$supported" >&6; }
17622		if test "$supported" = "yes" ; then
17623			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17624			found="yes"
17625		fi
17626	fi
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642xorg_testset_save_CFLAGS="$CFLAGS"
17643
17644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17649  $as_echo_n "(cached) " >&6
17650else
17651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652/* end confdefs.h.  */
17653int i;
17654_ACEOF
17655if ac_fn_c_try_compile "$LINENO"; then :
17656  xorg_cv_cc_flag_unknown_warning_option=yes
17657else
17658  xorg_cv_cc_flag_unknown_warning_option=no
17659fi
17660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661fi
17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17665	CFLAGS="$xorg_testset_save_CFLAGS"
17666fi
17667
17668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17671	fi
17672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17676  $as_echo_n "(cached) " >&6
17677else
17678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679/* end confdefs.h.  */
17680int i;
17681_ACEOF
17682if ac_fn_c_try_compile "$LINENO"; then :
17683  xorg_cv_cc_flag_unused_command_line_argument=yes
17684else
17685  xorg_cv_cc_flag_unused_command_line_argument=no
17686fi
17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688fi
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17692	CFLAGS="$xorg_testset_save_CFLAGS"
17693fi
17694
17695found="no"
17696
17697	if test $found = "no" ; then
17698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700		fi
17701
17702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17704		fi
17705
17706		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17707
17708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17709$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17710		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17711		if eval \${$cacheid+:} false; then :
17712  $as_echo_n "(cached) " >&6
17713else
17714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715/* end confdefs.h.  */
17716int i;
17717int
17718main ()
17719{
17720
17721  ;
17722  return 0;
17723}
17724_ACEOF
17725if ac_fn_c_try_link "$LINENO"; then :
17726  eval $cacheid=yes
17727else
17728  eval $cacheid=no
17729fi
17730rm -f core conftest.err conftest.$ac_objext \
17731    conftest$ac_exeext conftest.$ac_ext
17732fi
17733
17734
17735		CFLAGS="$xorg_testset_save_CFLAGS"
17736
17737		eval supported=\$$cacheid
17738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17739$as_echo "$supported" >&6; }
17740		if test "$supported" = "yes" ; then
17741			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17742			found="yes"
17743		fi
17744	fi
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760xorg_testset_save_CFLAGS="$CFLAGS"
17761
17762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17767  $as_echo_n "(cached) " >&6
17768else
17769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770/* end confdefs.h.  */
17771int i;
17772_ACEOF
17773if ac_fn_c_try_compile "$LINENO"; then :
17774  xorg_cv_cc_flag_unknown_warning_option=yes
17775else
17776  xorg_cv_cc_flag_unknown_warning_option=no
17777fi
17778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779fi
17780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17783	CFLAGS="$xorg_testset_save_CFLAGS"
17784fi
17785
17786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17789	fi
17790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17794  $as_echo_n "(cached) " >&6
17795else
17796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h.  */
17798int i;
17799_ACEOF
17800if ac_fn_c_try_compile "$LINENO"; then :
17801  xorg_cv_cc_flag_unused_command_line_argument=yes
17802else
17803  xorg_cv_cc_flag_unused_command_line_argument=no
17804fi
17805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806fi
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17810	CFLAGS="$xorg_testset_save_CFLAGS"
17811fi
17812
17813found="no"
17814
17815	if test $found = "no" ; then
17816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17818		fi
17819
17820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17822		fi
17823
17824		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17825
17826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17827$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17828		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17829		if eval \${$cacheid+:} false; then :
17830  $as_echo_n "(cached) " >&6
17831else
17832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834int i;
17835int
17836main ()
17837{
17838
17839  ;
17840  return 0;
17841}
17842_ACEOF
17843if ac_fn_c_try_link "$LINENO"; then :
17844  eval $cacheid=yes
17845else
17846  eval $cacheid=no
17847fi
17848rm -f core conftest.err conftest.$ac_objext \
17849    conftest$ac_exeext conftest.$ac_ext
17850fi
17851
17852
17853		CFLAGS="$xorg_testset_save_CFLAGS"
17854
17855		eval supported=\$$cacheid
17856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17857$as_echo "$supported" >&6; }
17858		if test "$supported" = "yes" ; then
17859			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17860			found="yes"
17861		fi
17862	fi
17863
17864
17865fi
17866
17867
17868
17869
17870
17871
17872
17873		CWARNFLAGS="$BASE_CFLAGS"
17874		if  test "x$GCC" = xyes ; then
17875		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17876		fi
17877
17878
17879
17880
17881
17882
17883
17884
17885# Check whether --enable-strict-compilation was given.
17886if test "${enable_strict_compilation+set}" = set; then :
17887  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17888else
17889  STRICT_COMPILE=no
17890fi
17891
17892
17893
17894
17895
17896
17897STRICT_CFLAGS=""
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911xorg_testset_save_CFLAGS="$CFLAGS"
17912
17913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17918  $as_echo_n "(cached) " >&6
17919else
17920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921/* end confdefs.h.  */
17922int i;
17923_ACEOF
17924if ac_fn_c_try_compile "$LINENO"; then :
17925  xorg_cv_cc_flag_unknown_warning_option=yes
17926else
17927  xorg_cv_cc_flag_unknown_warning_option=no
17928fi
17929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930fi
17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17934	CFLAGS="$xorg_testset_save_CFLAGS"
17935fi
17936
17937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17940	fi
17941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17945  $as_echo_n "(cached) " >&6
17946else
17947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948/* end confdefs.h.  */
17949int i;
17950_ACEOF
17951if ac_fn_c_try_compile "$LINENO"; then :
17952  xorg_cv_cc_flag_unused_command_line_argument=yes
17953else
17954  xorg_cv_cc_flag_unused_command_line_argument=no
17955fi
17956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957fi
17958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17961	CFLAGS="$xorg_testset_save_CFLAGS"
17962fi
17963
17964found="no"
17965
17966	if test $found = "no" ; then
17967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17969		fi
17970
17971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17973		fi
17974
17975		CFLAGS="$CFLAGS -pedantic"
17976
17977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17978$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17979		cacheid=xorg_cv_cc_flag__pedantic
17980		if eval \${$cacheid+:} false; then :
17981  $as_echo_n "(cached) " >&6
17982else
17983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985int i;
17986int
17987main ()
17988{
17989
17990  ;
17991  return 0;
17992}
17993_ACEOF
17994if ac_fn_c_try_link "$LINENO"; then :
17995  eval $cacheid=yes
17996else
17997  eval $cacheid=no
17998fi
17999rm -f core conftest.err conftest.$ac_objext \
18000    conftest$ac_exeext conftest.$ac_ext
18001fi
18002
18003
18004		CFLAGS="$xorg_testset_save_CFLAGS"
18005
18006		eval supported=\$$cacheid
18007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18008$as_echo "$supported" >&6; }
18009		if test "$supported" = "yes" ; then
18010			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18011			found="yes"
18012		fi
18013	fi
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029xorg_testset_save_CFLAGS="$CFLAGS"
18030
18031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18036  $as_echo_n "(cached) " >&6
18037else
18038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039/* end confdefs.h.  */
18040int i;
18041_ACEOF
18042if ac_fn_c_try_compile "$LINENO"; then :
18043  xorg_cv_cc_flag_unknown_warning_option=yes
18044else
18045  xorg_cv_cc_flag_unknown_warning_option=no
18046fi
18047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048fi
18049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18052	CFLAGS="$xorg_testset_save_CFLAGS"
18053fi
18054
18055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18058	fi
18059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18063  $as_echo_n "(cached) " >&6
18064else
18065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h.  */
18067int i;
18068_ACEOF
18069if ac_fn_c_try_compile "$LINENO"; then :
18070  xorg_cv_cc_flag_unused_command_line_argument=yes
18071else
18072  xorg_cv_cc_flag_unused_command_line_argument=no
18073fi
18074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075fi
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18079	CFLAGS="$xorg_testset_save_CFLAGS"
18080fi
18081
18082found="no"
18083
18084	if test $found = "no" ; then
18085		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18087		fi
18088
18089		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18091		fi
18092
18093		CFLAGS="$CFLAGS -Werror"
18094
18095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18096$as_echo_n "checking if $CC supports -Werror... " >&6; }
18097		cacheid=xorg_cv_cc_flag__Werror
18098		if eval \${$cacheid+:} false; then :
18099  $as_echo_n "(cached) " >&6
18100else
18101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102/* end confdefs.h.  */
18103int i;
18104int
18105main ()
18106{
18107
18108  ;
18109  return 0;
18110}
18111_ACEOF
18112if ac_fn_c_try_link "$LINENO"; then :
18113  eval $cacheid=yes
18114else
18115  eval $cacheid=no
18116fi
18117rm -f core conftest.err conftest.$ac_objext \
18118    conftest$ac_exeext conftest.$ac_ext
18119fi
18120
18121
18122		CFLAGS="$xorg_testset_save_CFLAGS"
18123
18124		eval supported=\$$cacheid
18125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18126$as_echo "$supported" >&6; }
18127		if test "$supported" = "yes" ; then
18128			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18129			found="yes"
18130		fi
18131	fi
18132
18133	if test $found = "no" ; then
18134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18136		fi
18137
18138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18140		fi
18141
18142		CFLAGS="$CFLAGS -errwarn"
18143
18144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18145$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18146		cacheid=xorg_cv_cc_flag__errwarn
18147		if eval \${$cacheid+:} false; then :
18148  $as_echo_n "(cached) " >&6
18149else
18150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151/* end confdefs.h.  */
18152int i;
18153int
18154main ()
18155{
18156
18157  ;
18158  return 0;
18159}
18160_ACEOF
18161if ac_fn_c_try_link "$LINENO"; then :
18162  eval $cacheid=yes
18163else
18164  eval $cacheid=no
18165fi
18166rm -f core conftest.err conftest.$ac_objext \
18167    conftest$ac_exeext conftest.$ac_ext
18168fi
18169
18170
18171		CFLAGS="$xorg_testset_save_CFLAGS"
18172
18173		eval supported=\$$cacheid
18174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18175$as_echo "$supported" >&6; }
18176		if test "$supported" = "yes" ; then
18177			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18178			found="yes"
18179		fi
18180	fi
18181
18182
18183
18184# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18185# activate it with -Werror, so we add it here explicitly.
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199xorg_testset_save_CFLAGS="$CFLAGS"
18200
18201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18206  $as_echo_n "(cached) " >&6
18207else
18208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209/* end confdefs.h.  */
18210int i;
18211_ACEOF
18212if ac_fn_c_try_compile "$LINENO"; then :
18213  xorg_cv_cc_flag_unknown_warning_option=yes
18214else
18215  xorg_cv_cc_flag_unknown_warning_option=no
18216fi
18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218fi
18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18222	CFLAGS="$xorg_testset_save_CFLAGS"
18223fi
18224
18225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18228	fi
18229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18233  $as_echo_n "(cached) " >&6
18234else
18235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237int i;
18238_ACEOF
18239if ac_fn_c_try_compile "$LINENO"; then :
18240  xorg_cv_cc_flag_unused_command_line_argument=yes
18241else
18242  xorg_cv_cc_flag_unused_command_line_argument=no
18243fi
18244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245fi
18246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18249	CFLAGS="$xorg_testset_save_CFLAGS"
18250fi
18251
18252found="no"
18253
18254	if test $found = "no" ; then
18255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18257		fi
18258
18259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18261		fi
18262
18263		CFLAGS="$CFLAGS -Werror=attributes"
18264
18265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18266$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18267		cacheid=xorg_cv_cc_flag__Werror_attributes
18268		if eval \${$cacheid+:} false; then :
18269  $as_echo_n "(cached) " >&6
18270else
18271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272/* end confdefs.h.  */
18273int i;
18274int
18275main ()
18276{
18277
18278  ;
18279  return 0;
18280}
18281_ACEOF
18282if ac_fn_c_try_link "$LINENO"; then :
18283  eval $cacheid=yes
18284else
18285  eval $cacheid=no
18286fi
18287rm -f core conftest.err conftest.$ac_objext \
18288    conftest$ac_exeext conftest.$ac_ext
18289fi
18290
18291
18292		CFLAGS="$xorg_testset_save_CFLAGS"
18293
18294		eval supported=\$$cacheid
18295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18296$as_echo "$supported" >&6; }
18297		if test "$supported" = "yes" ; then
18298			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18299			found="yes"
18300		fi
18301	fi
18302
18303
18304
18305if test "x$STRICT_COMPILE" = "xyes"; then
18306    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18307    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18308fi
18309
18310
18311
18312
18313
18314
18315cat >>confdefs.h <<_ACEOF
18316#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18317_ACEOF
18318
18319	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18320	if test "x$PVM" = "x"; then
18321		PVM="0"
18322	fi
18323
18324cat >>confdefs.h <<_ACEOF
18325#define PACKAGE_VERSION_MINOR $PVM
18326_ACEOF
18327
18328	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18329	if test "x$PVP" = "x"; then
18330		PVP="0"
18331	fi
18332
18333cat >>confdefs.h <<_ACEOF
18334#define PACKAGE_VERSION_PATCHLEVEL $PVP
18335_ACEOF
18336
18337
18338
18339CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18340mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18341|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18342echo 'git directory not found: installing possibly empty changelog.' >&2)"
18343
18344
18345
18346
18347macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18348INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18349mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18350|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18351echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18352
18353
18354
18355
18356
18357
18358if test x$APP_MAN_SUFFIX = x    ; then
18359    APP_MAN_SUFFIX=1
18360fi
18361if test x$APP_MAN_DIR = x    ; then
18362    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18363fi
18364
18365if test x$LIB_MAN_SUFFIX = x    ; then
18366    LIB_MAN_SUFFIX=3
18367fi
18368if test x$LIB_MAN_DIR = x    ; then
18369    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18370fi
18371
18372if test x$FILE_MAN_SUFFIX = x    ; then
18373    case $host_os in
18374	# Solaris 2.0 - 11 use SysV man page sections
18375	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18376	*)				FILE_MAN_SUFFIX=5  ;;
18377    esac
18378fi
18379if test x$FILE_MAN_DIR = x    ; then
18380    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18381fi
18382
18383if test x$MISC_MAN_SUFFIX = x    ; then
18384    case $host_os in
18385	# Solaris 2.0 - 11 use SysV man page sections
18386	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18387	*)				MISC_MAN_SUFFIX=7  ;;
18388    esac
18389fi
18390if test x$MISC_MAN_DIR = x    ; then
18391    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18392fi
18393
18394if test x$DRIVER_MAN_SUFFIX = x    ; then
18395    case $host_os in
18396	# Solaris 2.0 - 11 use SysV man page sections
18397	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18398	*)				DRIVER_MAN_SUFFIX=4  ;;
18399    esac
18400fi
18401if test x$DRIVER_MAN_DIR = x    ; then
18402    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18403fi
18404
18405if test x$ADMIN_MAN_SUFFIX = x    ; then
18406    case $host_os in
18407	# Solaris 2.0 - 11 use SysV man page sections
18408	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18409	*)				ADMIN_MAN_SUFFIX=8  ;;
18410    esac
18411fi
18412if test x$ADMIN_MAN_DIR = x    ; then
18413    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18414fi
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430XORG_MAN_PAGE="X Version 11"
18431
18432MAN_SUBSTS="\
18433	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18434	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18435	-e 's|__xservername__|Xorg|g' \
18436	-e 's|__xconfigfile__|xorg.conf|g' \
18437	-e 's|__projectroot__|\$(prefix)|g' \
18438	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18439	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18440	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18441	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18442	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18443	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18444	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18445
18446
18447
18448# Check whether --enable-silent-rules was given.
18449if test "${enable_silent_rules+set}" = set; then :
18450  enableval=$enable_silent_rules;
18451fi
18452
18453case $enable_silent_rules in # (((
18454  yes) AM_DEFAULT_VERBOSITY=0;;
18455   no) AM_DEFAULT_VERBOSITY=1;;
18456    *) AM_DEFAULT_VERBOSITY=0;;
18457esac
18458am_make=${MAKE-make}
18459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18460$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18461if ${am_cv_make_support_nested_variables+:} false; then :
18462  $as_echo_n "(cached) " >&6
18463else
18464  if $as_echo 'TRUE=$(BAR$(V))
18465BAR0=false
18466BAR1=true
18467V=1
18468am__doit:
18469	@$(TRUE)
18470.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18471  am_cv_make_support_nested_variables=yes
18472else
18473  am_cv_make_support_nested_variables=no
18474fi
18475fi
18476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18477$as_echo "$am_cv_make_support_nested_variables" >&6; }
18478if test $am_cv_make_support_nested_variables = yes; then
18479    AM_V='$(V)'
18480  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18481else
18482  AM_V=$AM_DEFAULT_VERBOSITY
18483  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18484fi
18485AM_BACKSLASH='\'
18486
18487
18488
18489pciids_path=/usr/share/hwdata
18490
18491# Check whether --with-pciids-path was given.
18492if test "${with_pciids_path+set}" = set; then :
18493  withval=$with_pciids_path; pciids_path="$withval"
18494fi
18495
18496
18497  prefix_NONE=
18498  exec_prefix_NONE=
18499  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18500  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18501  eval ax_define_dir="\"$pciids_path\""
18502  eval ax_define_dir="\"$ax_define_dir\""
18503  PCIIDS_PATH="$ax_define_dir"
18504
18505
18506cat >>confdefs.h <<_ACEOF
18507#define PCIIDS_PATH "$ax_define_dir"
18508_ACEOF
18509
18510  test "$prefix_NONE" && prefix=NONE
18511  test "$exec_prefix_NONE" && exec_prefix=NONE
18512
18513
18514# Check whether --enable-linux-rom-fallback was given.
18515if test "${enable_linux_rom_fallback+set}" = set; then :
18516  enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval
18517else
18518  LINUX_ROM=no
18519fi
18520
18521
18522if test "x$LINUX_ROM" = xyes; then
18523
18524$as_echo "#define LINUX_ROM 1" >>confdefs.h
18525
18526fi
18527
18528use_zlib=no
18529
18530# Check whether --with-zlib was given.
18531if test "${with_zlib+set}" = set; then :
18532  withval=$with_zlib; use_zlib="$withval"
18533fi
18534
18535if test "x$use_zlib" = xyes; then
18536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18537$as_echo_n "checking for gzopen in -lz... " >&6; }
18538if ${ac_cv_lib_z_gzopen+:} false; then :
18539  $as_echo_n "(cached) " >&6
18540else
18541  ac_check_lib_save_LIBS=$LIBS
18542LIBS="-lz  $LIBS"
18543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544/* end confdefs.h.  */
18545
18546/* Override any GCC internal prototype to avoid an error.
18547   Use char because int might match the return type of a GCC
18548   builtin and then its argument prototype would still apply.  */
18549#ifdef __cplusplus
18550extern "C"
18551#endif
18552char gzopen ();
18553int
18554main ()
18555{
18556return gzopen ();
18557  ;
18558  return 0;
18559}
18560_ACEOF
18561if ac_fn_c_try_link "$LINENO"; then :
18562  ac_cv_lib_z_gzopen=yes
18563else
18564  ac_cv_lib_z_gzopen=no
18565fi
18566rm -f core conftest.err conftest.$ac_objext \
18567    conftest$ac_exeext conftest.$ac_ext
18568LIBS=$ac_check_lib_save_LIBS
18569fi
18570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18571$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18572if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18573  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
18574else
18575  as_fn_error $? "Check for zlib library failed" "$LINENO" 5
18576fi
18577
18578	ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18579if test "x$ac_cv_header_zlib_h" = xyes; then :
18580
18581$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18582
18583else
18584  as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5
18585fi
18586
18587
18588fi
18589
18590case $host_os in
18591	*freebsd* | *dragonfly*)
18592		freebsd=yes
18593		;;
18594	*linux*)
18595		linux=yes
18596		;;
18597	*netbsd*)
18598		case $host in
18599		*i[3-9]86*)
18600			PCIACCESS_LIBS="$PCIACCESS_LIBS -li386"
18601			;;
18602		*x86_64*|*amd64*)
18603			PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64"
18604			;;
18605		*alpha*)
18606			PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha"
18607			;;
18608		esac
18609		PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci"
18610		netbsd=yes
18611		;;
18612	*openbsd*)
18613		openbsd=yes
18614		;;
18615	*solaris*)
18616		solaris=yes
18617		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
18618		;;
18619	gnu*)
18620		gnu=yes
18621		;;
18622	*cygwin*)
18623		cygwin=yes
18624		PCIACCESS_LIBS="$PCIACCESS_LIBS"
18625		;;
18626esac
18627
18628 if test "x$linux" = xyes; then
18629  LINUX_TRUE=
18630  LINUX_FALSE='#'
18631else
18632  LINUX_TRUE='#'
18633  LINUX_FALSE=
18634fi
18635
18636 if test "x$freebsd" = xyes; then
18637  FREEBSD_TRUE=
18638  FREEBSD_FALSE='#'
18639else
18640  FREEBSD_TRUE='#'
18641  FREEBSD_FALSE=
18642fi
18643
18644 if test "x$netbsd" = xyes; then
18645  NETBSD_TRUE=
18646  NETBSD_FALSE='#'
18647else
18648  NETBSD_TRUE='#'
18649  NETBSD_FALSE=
18650fi
18651
18652 if test "x$openbsd" = xyes; then
18653  OPENBSD_TRUE=
18654  OPENBSD_FALSE='#'
18655else
18656  OPENBSD_TRUE='#'
18657  OPENBSD_FALSE=
18658fi
18659
18660 if test "x$solaris" = xyes; then
18661  SOLARIS_TRUE=
18662  SOLARIS_FALSE='#'
18663else
18664  SOLARIS_TRUE='#'
18665  SOLARIS_FALSE=
18666fi
18667
18668 if test "x$gnu" = xyes; then
18669  GNU_TRUE=
18670  GNU_FALSE='#'
18671else
18672  GNU_TRUE='#'
18673  GNU_FALSE=
18674fi
18675
18676 if test "x$cygwin" = xyes; then
18677  CYGWIN_TRUE=
18678  CYGWIN_FALSE='#'
18679else
18680  CYGWIN_TRUE='#'
18681  CYGWIN_FALSE=
18682fi
18683
18684
18685# Check whether --enable-largefile was given.
18686if test "${enable_largefile+set}" = set; then :
18687  enableval=$enable_largefile;
18688fi
18689
18690if test "$enable_largefile" != no; then
18691
18692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18693$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18694if ${ac_cv_sys_largefile_CC+:} false; then :
18695  $as_echo_n "(cached) " >&6
18696else
18697  ac_cv_sys_largefile_CC=no
18698     if test "$GCC" != yes; then
18699       ac_save_CC=$CC
18700       while :; do
18701	 # IRIX 6.2 and later do not support large files by default,
18702	 # so use the C compiler's -n32 option if that helps.
18703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704/* end confdefs.h.  */
18705#include <sys/types.h>
18706 /* Check that off_t can represent 2**63 - 1 correctly.
18707    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18708    since some C++ compilers masquerading as C compilers
18709    incorrectly reject 9223372036854775807.  */
18710#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18711  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18712		       && LARGE_OFF_T % 2147483647 == 1)
18713		      ? 1 : -1];
18714int
18715main ()
18716{
18717
18718  ;
18719  return 0;
18720}
18721_ACEOF
18722	 if ac_fn_c_try_compile "$LINENO"; then :
18723  break
18724fi
18725rm -f core conftest.err conftest.$ac_objext
18726	 CC="$CC -n32"
18727	 if ac_fn_c_try_compile "$LINENO"; then :
18728  ac_cv_sys_largefile_CC=' -n32'; break
18729fi
18730rm -f core conftest.err conftest.$ac_objext
18731	 break
18732       done
18733       CC=$ac_save_CC
18734       rm -f conftest.$ac_ext
18735    fi
18736fi
18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18738$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18739  if test "$ac_cv_sys_largefile_CC" != no; then
18740    CC=$CC$ac_cv_sys_largefile_CC
18741  fi
18742
18743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18744$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18745if ${ac_cv_sys_file_offset_bits+:} false; then :
18746  $as_echo_n "(cached) " >&6
18747else
18748  while :; do
18749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750/* end confdefs.h.  */
18751#include <sys/types.h>
18752 /* Check that off_t can represent 2**63 - 1 correctly.
18753    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18754    since some C++ compilers masquerading as C compilers
18755    incorrectly reject 9223372036854775807.  */
18756#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18757  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18758		       && LARGE_OFF_T % 2147483647 == 1)
18759		      ? 1 : -1];
18760int
18761main ()
18762{
18763
18764  ;
18765  return 0;
18766}
18767_ACEOF
18768if ac_fn_c_try_compile "$LINENO"; then :
18769  ac_cv_sys_file_offset_bits=no; break
18770fi
18771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h.  */
18774#define _FILE_OFFSET_BITS 64
18775#include <sys/types.h>
18776 /* Check that off_t can represent 2**63 - 1 correctly.
18777    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18778    since some C++ compilers masquerading as C compilers
18779    incorrectly reject 9223372036854775807.  */
18780#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18781  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18782		       && LARGE_OFF_T % 2147483647 == 1)
18783		      ? 1 : -1];
18784int
18785main ()
18786{
18787
18788  ;
18789  return 0;
18790}
18791_ACEOF
18792if ac_fn_c_try_compile "$LINENO"; then :
18793  ac_cv_sys_file_offset_bits=64; break
18794fi
18795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796  ac_cv_sys_file_offset_bits=unknown
18797  break
18798done
18799fi
18800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18801$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18802case $ac_cv_sys_file_offset_bits in #(
18803  no | unknown) ;;
18804  *)
18805cat >>confdefs.h <<_ACEOF
18806#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18807_ACEOF
18808;;
18809esac
18810rm -rf conftest*
18811  if test $ac_cv_sys_file_offset_bits = unknown; then
18812    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18813$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18814if ${ac_cv_sys_large_files+:} false; then :
18815  $as_echo_n "(cached) " >&6
18816else
18817  while :; do
18818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819/* end confdefs.h.  */
18820#include <sys/types.h>
18821 /* Check that off_t can represent 2**63 - 1 correctly.
18822    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18823    since some C++ compilers masquerading as C compilers
18824    incorrectly reject 9223372036854775807.  */
18825#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18826  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18827		       && LARGE_OFF_T % 2147483647 == 1)
18828		      ? 1 : -1];
18829int
18830main ()
18831{
18832
18833  ;
18834  return 0;
18835}
18836_ACEOF
18837if ac_fn_c_try_compile "$LINENO"; then :
18838  ac_cv_sys_large_files=no; break
18839fi
18840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h.  */
18843#define _LARGE_FILES 1
18844#include <sys/types.h>
18845 /* Check that off_t can represent 2**63 - 1 correctly.
18846    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18847    since some C++ compilers masquerading as C compilers
18848    incorrectly reject 9223372036854775807.  */
18849#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18850  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18851		       && LARGE_OFF_T % 2147483647 == 1)
18852		      ? 1 : -1];
18853int
18854main ()
18855{
18856
18857  ;
18858  return 0;
18859}
18860_ACEOF
18861if ac_fn_c_try_compile "$LINENO"; then :
18862  ac_cv_sys_large_files=1; break
18863fi
18864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865  ac_cv_sys_large_files=unknown
18866  break
18867done
18868fi
18869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18870$as_echo "$ac_cv_sys_large_files" >&6; }
18871case $ac_cv_sys_large_files in #(
18872  no | unknown) ;;
18873  *)
18874cat >>confdefs.h <<_ACEOF
18875#define _LARGE_FILES $ac_cv_sys_large_files
18876_ACEOF
18877;;
18878esac
18879rm -rf conftest*
18880  fi
18881
18882
18883fi
18884
18885
18886for ac_header in err.h
18887do :
18888  ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
18889if test "x$ac_cv_header_err_h" = xyes; then :
18890  cat >>confdefs.h <<_ACEOF
18891#define HAVE_ERR_H 1
18892_ACEOF
18893
18894fi
18895
18896done
18897
18898
18899if test "x$netbsd" = xyes; then
18900for ac_header in machine/sysarch.h
18901do :
18902  ac_fn_c_check_header_mongrel "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default"
18903if test "x$ac_cv_header_machine_sysarch_h" = xyes; then :
18904  cat >>confdefs.h <<_ACEOF
18905#define HAVE_MACHINE_SYSARCH_H 1
18906_ACEOF
18907
18908fi
18909
18910done
18911
18912for ac_header in machine/mtrr.h
18913do :
18914  ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H
18915#include <sys/types.h>
18916#include <machine/sysarch.h>
18917#endif
18918
18919"
18920if test "x$ac_cv_header_machine_mtrr_h" = xyes; then :
18921  cat >>confdefs.h <<_ACEOF
18922#define HAVE_MACHINE_MTRR_H 1
18923_ACEOF
18924 have_mtrr_h="yes"
18925else
18926  have_mtrr_h="no"
18927fi
18928
18929done
18930
18931else
18932ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
18933if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
18934  have_mtrr_h="yes"
18935else
18936  have_mtrr_h="no"
18937fi
18938
18939
18940fi
18941
18942if test "x$have_mtrr_h" = xyes; then
18943
18944$as_echo "#define HAVE_MTRR 1" >>confdefs.h
18945
18946fi
18947
18948# check for the pci_io.pi_sel.pc_domain
18949ac_fn_c_check_member "$LINENO" "struct pci_io" "pi_sel.pc_domain" "ac_cv_member_struct_pci_io_pi_sel_pc_domain" " #include <sys/types.h>
18950                 #include <sys/pciio.h>
18951
18952"
18953if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = xyes; then :
18954
18955$as_echo "#define HAVE_PCI_IO_PC_DOMAIN 1" >>confdefs.h
18956
18957fi
18958
18959
18960
18961
18962
18963ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc"
18964
18965cat >confcache <<\_ACEOF
18966# This file is a shell script that caches the results of configure
18967# tests run on this system so they can be shared between configure
18968# scripts and configure runs, see configure's option --config-cache.
18969# It is not useful on other systems.  If it contains results you don't
18970# want to keep, you may remove or edit it.
18971#
18972# config.status only pays attention to the cache file if you give it
18973# the --recheck option to rerun configure.
18974#
18975# `ac_cv_env_foo' variables (set or unset) will be overridden when
18976# loading this file, other *unset* `ac_cv_foo' will be assigned the
18977# following values.
18978
18979_ACEOF
18980
18981# The following way of writing the cache mishandles newlines in values,
18982# but we know of no workaround that is simple, portable, and efficient.
18983# So, we kill variables containing newlines.
18984# Ultrix sh set writes to stderr and can't be redirected directly,
18985# and sets the high bit in the cache file unless we assign to the vars.
18986(
18987  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18988    eval ac_val=\$$ac_var
18989    case $ac_val in #(
18990    *${as_nl}*)
18991      case $ac_var in #(
18992      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18993$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18994      esac
18995      case $ac_var in #(
18996      _ | IFS | as_nl) ;; #(
18997      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18998      *) { eval $ac_var=; unset $ac_var;} ;;
18999      esac ;;
19000    esac
19001  done
19002
19003  (set) 2>&1 |
19004    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19005    *${as_nl}ac_space=\ *)
19006      # `set' does not quote correctly, so add quotes: double-quote
19007      # substitution turns \\\\ into \\, and sed turns \\ into \.
19008      sed -n \
19009	"s/'/'\\\\''/g;
19010	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19011      ;; #(
19012    *)
19013      # `set' quotes correctly as required by POSIX, so do not add quotes.
19014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19015      ;;
19016    esac |
19017    sort
19018) |
19019  sed '
19020     /^ac_cv_env_/b end
19021     t clear
19022     :clear
19023     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19024     t end
19025     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19026     :end' >>confcache
19027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19028  if test -w "$cache_file"; then
19029    if test "x$cache_file" != "x/dev/null"; then
19030      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19031$as_echo "$as_me: updating cache $cache_file" >&6;}
19032      if test ! -f "$cache_file" || test -h "$cache_file"; then
19033	cat confcache >"$cache_file"
19034      else
19035        case $cache_file in #(
19036        */* | ?:*)
19037	  mv -f confcache "$cache_file"$$ &&
19038	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19039        *)
19040	  mv -f confcache "$cache_file" ;;
19041	esac
19042      fi
19043    fi
19044  else
19045    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19046$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19047  fi
19048fi
19049rm -f confcache
19050
19051test "x$prefix" = xNONE && prefix=$ac_default_prefix
19052# Let make expand exec_prefix.
19053test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19054
19055DEFS=-DHAVE_CONFIG_H
19056
19057ac_libobjs=
19058ac_ltlibobjs=
19059U=
19060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19061  # 1. Remove the extension, and $U if already installed.
19062  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19063  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19064  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19065  #    will be set to the directory where LIBOBJS objects are built.
19066  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19067  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19068done
19069LIBOBJS=$ac_libobjs
19070
19071LTLIBOBJS=$ac_ltlibobjs
19072
19073
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19075$as_echo_n "checking that generated files are newer than configure... " >&6; }
19076   if test -n "$am_sleep_pid"; then
19077     # Hide warnings about reused PIDs.
19078     wait $am_sleep_pid 2>/dev/null
19079   fi
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19081$as_echo "done" >&6; }
19082 if test -n "$EXEEXT"; then
19083  am__EXEEXT_TRUE=
19084  am__EXEEXT_FALSE='#'
19085else
19086  am__EXEEXT_TRUE='#'
19087  am__EXEEXT_FALSE=
19088fi
19089
19090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19091  as_fn_error $? "conditional \"AMDEP\" was never defined.
19092Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093fi
19094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19095  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19096Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097fi
19098if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
19099  as_fn_error $? "conditional \"LINUX\" was never defined.
19100Usually this means the macro was only invoked conditionally." "$LINENO" 5
19101fi
19102if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
19103  as_fn_error $? "conditional \"FREEBSD\" was never defined.
19104Usually this means the macro was only invoked conditionally." "$LINENO" 5
19105fi
19106if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
19107  as_fn_error $? "conditional \"NETBSD\" was never defined.
19108Usually this means the macro was only invoked conditionally." "$LINENO" 5
19109fi
19110if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
19111  as_fn_error $? "conditional \"OPENBSD\" was never defined.
19112Usually this means the macro was only invoked conditionally." "$LINENO" 5
19113fi
19114if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
19115  as_fn_error $? "conditional \"SOLARIS\" was never defined.
19116Usually this means the macro was only invoked conditionally." "$LINENO" 5
19117fi
19118if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then
19119  as_fn_error $? "conditional \"GNU\" was never defined.
19120Usually this means the macro was only invoked conditionally." "$LINENO" 5
19121fi
19122if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
19123  as_fn_error $? "conditional \"CYGWIN\" was never defined.
19124Usually this means the macro was only invoked conditionally." "$LINENO" 5
19125fi
19126
19127: "${CONFIG_STATUS=./config.status}"
19128ac_write_fail=0
19129ac_clean_files_save=$ac_clean_files
19130ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19133as_write_fail=0
19134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19135#! $SHELL
19136# Generated by $as_me.
19137# Run this file to recreate the current configuration.
19138# Compiler output produced by configure, useful for debugging
19139# configure, is in config.log if it exists.
19140
19141debug=false
19142ac_cs_recheck=false
19143ac_cs_silent=false
19144
19145SHELL=\${CONFIG_SHELL-$SHELL}
19146export SHELL
19147_ASEOF
19148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19149## -------------------- ##
19150## M4sh Initialization. ##
19151## -------------------- ##
19152
19153# Be more Bourne compatible
19154DUALCASE=1; export DUALCASE # for MKS sh
19155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19156  emulate sh
19157  NULLCMD=:
19158  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19159  # is contrary to our usage.  Disable this feature.
19160  alias -g '${1+"$@"}'='"$@"'
19161  setopt NO_GLOB_SUBST
19162else
19163  case `(set -o) 2>/dev/null` in #(
19164  *posix*) :
19165    set -o posix ;; #(
19166  *) :
19167     ;;
19168esac
19169fi
19170
19171
19172as_nl='
19173'
19174export as_nl
19175# Printing a long string crashes Solaris 7 /usr/bin/printf.
19176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19179# Prefer a ksh shell builtin over an external printf program on Solaris,
19180# but without wasting forks for bash or zsh.
19181if test -z "$BASH_VERSION$ZSH_VERSION" \
19182    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19183  as_echo='print -r --'
19184  as_echo_n='print -rn --'
19185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19186  as_echo='printf %s\n'
19187  as_echo_n='printf %s'
19188else
19189  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19190    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19191    as_echo_n='/usr/ucb/echo -n'
19192  else
19193    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19194    as_echo_n_body='eval
19195      arg=$1;
19196      case $arg in #(
19197      *"$as_nl"*)
19198	expr "X$arg" : "X\\(.*\\)$as_nl";
19199	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19200      esac;
19201      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19202    '
19203    export as_echo_n_body
19204    as_echo_n='sh -c $as_echo_n_body as_echo'
19205  fi
19206  export as_echo_body
19207  as_echo='sh -c $as_echo_body as_echo'
19208fi
19209
19210# The user is always right.
19211if test "${PATH_SEPARATOR+set}" != set; then
19212  PATH_SEPARATOR=:
19213  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19214    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19215      PATH_SEPARATOR=';'
19216  }
19217fi
19218
19219
19220# IFS
19221# We need space, tab and new line, in precisely that order.  Quoting is
19222# there to prevent editors from complaining about space-tab.
19223# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19224# splitting by setting IFS to empty value.)
19225IFS=" ""	$as_nl"
19226
19227# Find who we are.  Look in the path if we contain no directory separator.
19228as_myself=
19229case $0 in #((
19230  *[\\/]* ) as_myself=$0 ;;
19231  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19232for as_dir in $PATH
19233do
19234  IFS=$as_save_IFS
19235  test -z "$as_dir" && as_dir=.
19236    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19237  done
19238IFS=$as_save_IFS
19239
19240     ;;
19241esac
19242# We did not find ourselves, most probably we were run as `sh COMMAND'
19243# in which case we are not to be found in the path.
19244if test "x$as_myself" = x; then
19245  as_myself=$0
19246fi
19247if test ! -f "$as_myself"; then
19248  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19249  exit 1
19250fi
19251
19252# Unset variables that we do not need and which cause bugs (e.g. in
19253# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19254# suppresses any "Segmentation fault" message there.  '((' could
19255# trigger a bug in pdksh 5.2.14.
19256for as_var in BASH_ENV ENV MAIL MAILPATH
19257do eval test x\${$as_var+set} = xset \
19258  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19259done
19260PS1='$ '
19261PS2='> '
19262PS4='+ '
19263
19264# NLS nuisances.
19265LC_ALL=C
19266export LC_ALL
19267LANGUAGE=C
19268export LANGUAGE
19269
19270# CDPATH.
19271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19272
19273
19274# as_fn_error STATUS ERROR [LINENO LOG_FD]
19275# ----------------------------------------
19276# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19277# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19278# script with STATUS, using 1 if that was 0.
19279as_fn_error ()
19280{
19281  as_status=$1; test $as_status -eq 0 && as_status=1
19282  if test "$4"; then
19283    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19284    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19285  fi
19286  $as_echo "$as_me: error: $2" >&2
19287  as_fn_exit $as_status
19288} # as_fn_error
19289
19290
19291# as_fn_set_status STATUS
19292# -----------------------
19293# Set $? to STATUS, without forking.
19294as_fn_set_status ()
19295{
19296  return $1
19297} # as_fn_set_status
19298
19299# as_fn_exit STATUS
19300# -----------------
19301# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19302as_fn_exit ()
19303{
19304  set +e
19305  as_fn_set_status $1
19306  exit $1
19307} # as_fn_exit
19308
19309# as_fn_unset VAR
19310# ---------------
19311# Portably unset VAR.
19312as_fn_unset ()
19313{
19314  { eval $1=; unset $1;}
19315}
19316as_unset=as_fn_unset
19317# as_fn_append VAR VALUE
19318# ----------------------
19319# Append the text in VALUE to the end of the definition contained in VAR. Take
19320# advantage of any shell optimizations that allow amortized linear growth over
19321# repeated appends, instead of the typical quadratic growth present in naive
19322# implementations.
19323if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19324  eval 'as_fn_append ()
19325  {
19326    eval $1+=\$2
19327  }'
19328else
19329  as_fn_append ()
19330  {
19331    eval $1=\$$1\$2
19332  }
19333fi # as_fn_append
19334
19335# as_fn_arith ARG...
19336# ------------------
19337# Perform arithmetic evaluation on the ARGs, and store the result in the
19338# global $as_val. Take advantage of shells that can avoid forks. The arguments
19339# must be portable across $(()) and expr.
19340if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19341  eval 'as_fn_arith ()
19342  {
19343    as_val=$(( $* ))
19344  }'
19345else
19346  as_fn_arith ()
19347  {
19348    as_val=`expr "$@" || test $? -eq 1`
19349  }
19350fi # as_fn_arith
19351
19352
19353if expr a : '\(a\)' >/dev/null 2>&1 &&
19354   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19355  as_expr=expr
19356else
19357  as_expr=false
19358fi
19359
19360if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19361  as_basename=basename
19362else
19363  as_basename=false
19364fi
19365
19366if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19367  as_dirname=dirname
19368else
19369  as_dirname=false
19370fi
19371
19372as_me=`$as_basename -- "$0" ||
19373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19374	 X"$0" : 'X\(//\)$' \| \
19375	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19376$as_echo X/"$0" |
19377    sed '/^.*\/\([^/][^/]*\)\/*$/{
19378	    s//\1/
19379	    q
19380	  }
19381	  /^X\/\(\/\/\)$/{
19382	    s//\1/
19383	    q
19384	  }
19385	  /^X\/\(\/\).*/{
19386	    s//\1/
19387	    q
19388	  }
19389	  s/.*/./; q'`
19390
19391# Avoid depending upon Character Ranges.
19392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19395as_cr_digits='0123456789'
19396as_cr_alnum=$as_cr_Letters$as_cr_digits
19397
19398ECHO_C= ECHO_N= ECHO_T=
19399case `echo -n x` in #(((((
19400-n*)
19401  case `echo 'xy\c'` in
19402  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19403  xy)  ECHO_C='\c';;
19404  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19405       ECHO_T='	';;
19406  esac;;
19407*)
19408  ECHO_N='-n';;
19409esac
19410
19411rm -f conf$$ conf$$.exe conf$$.file
19412if test -d conf$$.dir; then
19413  rm -f conf$$.dir/conf$$.file
19414else
19415  rm -f conf$$.dir
19416  mkdir conf$$.dir 2>/dev/null
19417fi
19418if (echo >conf$$.file) 2>/dev/null; then
19419  if ln -s conf$$.file conf$$ 2>/dev/null; then
19420    as_ln_s='ln -s'
19421    # ... but there are two gotchas:
19422    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19423    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19424    # In both cases, we have to default to `cp -pR'.
19425    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19426      as_ln_s='cp -pR'
19427  elif ln conf$$.file conf$$ 2>/dev/null; then
19428    as_ln_s=ln
19429  else
19430    as_ln_s='cp -pR'
19431  fi
19432else
19433  as_ln_s='cp -pR'
19434fi
19435rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19436rmdir conf$$.dir 2>/dev/null
19437
19438
19439# as_fn_mkdir_p
19440# -------------
19441# Create "$as_dir" as a directory, including parents if necessary.
19442as_fn_mkdir_p ()
19443{
19444
19445  case $as_dir in #(
19446  -*) as_dir=./$as_dir;;
19447  esac
19448  test -d "$as_dir" || eval $as_mkdir_p || {
19449    as_dirs=
19450    while :; do
19451      case $as_dir in #(
19452      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19453      *) as_qdir=$as_dir;;
19454      esac
19455      as_dirs="'$as_qdir' $as_dirs"
19456      as_dir=`$as_dirname -- "$as_dir" ||
19457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19458	 X"$as_dir" : 'X\(//\)[^/]' \| \
19459	 X"$as_dir" : 'X\(//\)$' \| \
19460	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19461$as_echo X"$as_dir" |
19462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19463	    s//\1/
19464	    q
19465	  }
19466	  /^X\(\/\/\)[^/].*/{
19467	    s//\1/
19468	    q
19469	  }
19470	  /^X\(\/\/\)$/{
19471	    s//\1/
19472	    q
19473	  }
19474	  /^X\(\/\).*/{
19475	    s//\1/
19476	    q
19477	  }
19478	  s/.*/./; q'`
19479      test -d "$as_dir" && break
19480    done
19481    test -z "$as_dirs" || eval "mkdir $as_dirs"
19482  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19483
19484
19485} # as_fn_mkdir_p
19486if mkdir -p . 2>/dev/null; then
19487  as_mkdir_p='mkdir -p "$as_dir"'
19488else
19489  test -d ./-p && rmdir ./-p
19490  as_mkdir_p=false
19491fi
19492
19493
19494# as_fn_executable_p FILE
19495# -----------------------
19496# Test if FILE is an executable regular file.
19497as_fn_executable_p ()
19498{
19499  test -f "$1" && test -x "$1"
19500} # as_fn_executable_p
19501as_test_x='test -x'
19502as_executable_p=as_fn_executable_p
19503
19504# Sed expression to map a string onto a valid CPP name.
19505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19506
19507# Sed expression to map a string onto a valid variable name.
19508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19509
19510
19511exec 6>&1
19512## ----------------------------------- ##
19513## Main body of $CONFIG_STATUS script. ##
19514## ----------------------------------- ##
19515_ASEOF
19516test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19517
19518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19519# Save the log message, to keep $0 and so on meaningful, and to
19520# report actual input values of CONFIG_FILES etc. instead of their
19521# values after options handling.
19522ac_log="
19523This file was extended by libpciaccess $as_me 0.13.5, which was
19524generated by GNU Autoconf 2.69.  Invocation command line was
19525
19526  CONFIG_FILES    = $CONFIG_FILES
19527  CONFIG_HEADERS  = $CONFIG_HEADERS
19528  CONFIG_LINKS    = $CONFIG_LINKS
19529  CONFIG_COMMANDS = $CONFIG_COMMANDS
19530  $ $0 $@
19531
19532on `(hostname || uname -n) 2>/dev/null | sed 1q`
19533"
19534
19535_ACEOF
19536
19537case $ac_config_files in *"
19538"*) set x $ac_config_files; shift; ac_config_files=$*;;
19539esac
19540
19541case $ac_config_headers in *"
19542"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19543esac
19544
19545
19546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19547# Files that config.status was made for.
19548config_files="$ac_config_files"
19549config_headers="$ac_config_headers"
19550config_commands="$ac_config_commands"
19551
19552_ACEOF
19553
19554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555ac_cs_usage="\
19556\`$as_me' instantiates files and other configuration actions
19557from templates according to the current configuration.  Unless the files
19558and actions are specified as TAGs, all are instantiated by default.
19559
19560Usage: $0 [OPTION]... [TAG]...
19561
19562  -h, --help       print this help, then exit
19563  -V, --version    print version number and configuration settings, then exit
19564      --config     print configuration, then exit
19565  -q, --quiet, --silent
19566                   do not print progress messages
19567  -d, --debug      don't remove temporary files
19568      --recheck    update $as_me by reconfiguring in the same conditions
19569      --file=FILE[:TEMPLATE]
19570                   instantiate the configuration file FILE
19571      --header=FILE[:TEMPLATE]
19572                   instantiate the configuration header FILE
19573
19574Configuration files:
19575$config_files
19576
19577Configuration headers:
19578$config_headers
19579
19580Configuration commands:
19581$config_commands
19582
19583Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>."
19584
19585_ACEOF
19586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19587ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19588ac_cs_version="\\
19589libpciaccess config.status 0.13.5
19590configured by $0, generated by GNU Autoconf 2.69,
19591  with options \\"\$ac_cs_config\\"
19592
19593Copyright (C) 2012 Free Software Foundation, Inc.
19594This config.status script is free software; the Free Software Foundation
19595gives unlimited permission to copy, distribute and modify it."
19596
19597ac_pwd='$ac_pwd'
19598srcdir='$srcdir'
19599INSTALL='$INSTALL'
19600MKDIR_P='$MKDIR_P'
19601AWK='$AWK'
19602test -n "\$AWK" || AWK=awk
19603_ACEOF
19604
19605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19606# The default lists apply if the user does not specify any file.
19607ac_need_defaults=:
19608while test $# != 0
19609do
19610  case $1 in
19611  --*=?*)
19612    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19613    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19614    ac_shift=:
19615    ;;
19616  --*=)
19617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19618    ac_optarg=
19619    ac_shift=:
19620    ;;
19621  *)
19622    ac_option=$1
19623    ac_optarg=$2
19624    ac_shift=shift
19625    ;;
19626  esac
19627
19628  case $ac_option in
19629  # Handling of the options.
19630  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19631    ac_cs_recheck=: ;;
19632  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19633    $as_echo "$ac_cs_version"; exit ;;
19634  --config | --confi | --conf | --con | --co | --c )
19635    $as_echo "$ac_cs_config"; exit ;;
19636  --debug | --debu | --deb | --de | --d | -d )
19637    debug=: ;;
19638  --file | --fil | --fi | --f )
19639    $ac_shift
19640    case $ac_optarg in
19641    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19642    '') as_fn_error $? "missing file argument" ;;
19643    esac
19644    as_fn_append CONFIG_FILES " '$ac_optarg'"
19645    ac_need_defaults=false;;
19646  --header | --heade | --head | --hea )
19647    $ac_shift
19648    case $ac_optarg in
19649    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19650    esac
19651    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19652    ac_need_defaults=false;;
19653  --he | --h)
19654    # Conflict between --help and --header
19655    as_fn_error $? "ambiguous option: \`$1'
19656Try \`$0 --help' for more information.";;
19657  --help | --hel | -h )
19658    $as_echo "$ac_cs_usage"; exit ;;
19659  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19660  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19661    ac_cs_silent=: ;;
19662
19663  # This is an error.
19664  -*) as_fn_error $? "unrecognized option: \`$1'
19665Try \`$0 --help' for more information." ;;
19666
19667  *) as_fn_append ac_config_targets " $1"
19668     ac_need_defaults=false ;;
19669
19670  esac
19671  shift
19672done
19673
19674ac_configure_extra_args=
19675
19676if $ac_cs_silent; then
19677  exec 6>/dev/null
19678  ac_configure_extra_args="$ac_configure_extra_args --silent"
19679fi
19680
19681_ACEOF
19682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19683if \$ac_cs_recheck; then
19684  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19685  shift
19686  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19687  CONFIG_SHELL='$SHELL'
19688  export CONFIG_SHELL
19689  exec "\$@"
19690fi
19691
19692_ACEOF
19693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19694exec 5>>config.log
19695{
19696  echo
19697  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19698## Running $as_me. ##
19699_ASBOX
19700  $as_echo "$ac_log"
19701} >&5
19702
19703_ACEOF
19704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19705#
19706# INIT-COMMANDS
19707#
19708AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19709
19710
19711# The HP-UX ksh and POSIX shell print the target directory to stdout
19712# if CDPATH is set.
19713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19714
19715sed_quote_subst='$sed_quote_subst'
19716double_quote_subst='$double_quote_subst'
19717delay_variable_subst='$delay_variable_subst'
19718macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19719macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19720enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19721enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19722pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19723enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19724shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19725SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19726ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19727PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19728host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19729host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19730host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19731build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19732build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19733build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19734SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19735Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19736GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19737EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19738FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19739LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19740NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19741LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19742max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19743ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19744exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19745lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19746lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19747lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19748lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19749lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19750reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19751reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19752OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19753deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19754file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19755file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19756want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19757DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19758sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19759AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19760AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19761archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19762STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19763RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19764old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19765old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19766old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19767lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19768CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19769CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19770compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19771GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19772lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19773lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19774lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19775lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19776lt_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"`'
19777lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19778nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19779lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19780lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19781objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19782MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19783lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19784lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19785lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19786lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19787lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19788need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19789MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19790DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19791NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19792LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19793OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19794OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19795libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19796shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19797extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19798archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19799enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19800export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19801whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19802compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19803old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19804old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19805archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19806archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19807module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19808module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19809with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19810allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19811no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19812hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19813hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19814hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19815hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19816hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19817hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19818hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19819inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19820link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19821always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19822export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19823exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19824include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19825prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19826postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19827file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19828variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19829need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19830need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19831version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19832runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19833shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19834shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19835libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19836library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19837soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19838install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19839postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19840postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19841finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19842finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19843hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19844sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19845configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19846configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19847hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19848enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19849enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19850enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19851old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19852striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19853
19854LTCC='$LTCC'
19855LTCFLAGS='$LTCFLAGS'
19856compiler='$compiler_DEFAULT'
19857
19858# A function that is used when there is no print builtin or printf.
19859func_fallback_echo ()
19860{
19861  eval 'cat <<_LTECHO_EOF
19862\$1
19863_LTECHO_EOF'
19864}
19865
19866# Quote evaled strings.
19867for var in SHELL \
19868ECHO \
19869PATH_SEPARATOR \
19870SED \
19871GREP \
19872EGREP \
19873FGREP \
19874LD \
19875NM \
19876LN_S \
19877lt_SP2NL \
19878lt_NL2SP \
19879reload_flag \
19880OBJDUMP \
19881deplibs_check_method \
19882file_magic_cmd \
19883file_magic_glob \
19884want_nocaseglob \
19885DLLTOOL \
19886sharedlib_from_linklib_cmd \
19887AR \
19888AR_FLAGS \
19889archiver_list_spec \
19890STRIP \
19891RANLIB \
19892CC \
19893CFLAGS \
19894compiler \
19895lt_cv_sys_global_symbol_pipe \
19896lt_cv_sys_global_symbol_to_cdecl \
19897lt_cv_sys_global_symbol_to_import \
19898lt_cv_sys_global_symbol_to_c_name_address \
19899lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19900lt_cv_nm_interface \
19901nm_file_list_spec \
19902lt_cv_truncate_bin \
19903lt_prog_compiler_no_builtin_flag \
19904lt_prog_compiler_pic \
19905lt_prog_compiler_wl \
19906lt_prog_compiler_static \
19907lt_cv_prog_compiler_c_o \
19908need_locks \
19909MANIFEST_TOOL \
19910DSYMUTIL \
19911NMEDIT \
19912LIPO \
19913OTOOL \
19914OTOOL64 \
19915shrext_cmds \
19916export_dynamic_flag_spec \
19917whole_archive_flag_spec \
19918compiler_needs_object \
19919with_gnu_ld \
19920allow_undefined_flag \
19921no_undefined_flag \
19922hardcode_libdir_flag_spec \
19923hardcode_libdir_separator \
19924exclude_expsyms \
19925include_expsyms \
19926file_list_spec \
19927variables_saved_for_relink \
19928libname_spec \
19929library_names_spec \
19930soname_spec \
19931install_override_mode \
19932finish_eval \
19933old_striplib \
19934striplib; do
19935    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19936    *[\\\\\\\`\\"\\\$]*)
19937      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19938      ;;
19939    *)
19940      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19941      ;;
19942    esac
19943done
19944
19945# Double-quote double-evaled strings.
19946for var in reload_cmds \
19947old_postinstall_cmds \
19948old_postuninstall_cmds \
19949old_archive_cmds \
19950extract_expsyms_cmds \
19951old_archive_from_new_cmds \
19952old_archive_from_expsyms_cmds \
19953archive_cmds \
19954archive_expsym_cmds \
19955module_cmds \
19956module_expsym_cmds \
19957export_symbols_cmds \
19958prelink_cmds \
19959postlink_cmds \
19960postinstall_cmds \
19961postuninstall_cmds \
19962finish_cmds \
19963sys_lib_search_path_spec \
19964configure_time_dlsearch_path \
19965configure_time_lt_sys_library_path; do
19966    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19967    *[\\\\\\\`\\"\\\$]*)
19968      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19969      ;;
19970    *)
19971      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19972      ;;
19973    esac
19974done
19975
19976ac_aux_dir='$ac_aux_dir'
19977
19978# See if we are running on zsh, and set the options that allow our
19979# commands through without removal of \ escapes INIT.
19980if test -n "\${ZSH_VERSION+set}"; then
19981   setopt NO_GLOB_SUBST
19982fi
19983
19984
19985    PACKAGE='$PACKAGE'
19986    VERSION='$VERSION'
19987    RM='$RM'
19988    ofile='$ofile'
19989
19990
19991
19992
19993_ACEOF
19994
19995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19996
19997# Handling of arguments.
19998for ac_config_target in $ac_config_targets
19999do
20000  case $ac_config_target in
20001    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20002    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20003    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20004    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20005    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20006    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20007    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20008    "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;;
20009    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
20010
20011  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20012  esac
20013done
20014
20015
20016# If the user did not use the arguments to specify the items to instantiate,
20017# then the envvar interface is used.  Set only those that are not.
20018# We use the long form for the default assignment because of an extremely
20019# bizarre bug on SunOS 4.1.3.
20020if $ac_need_defaults; then
20021  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20022  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20023  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20024fi
20025
20026# Have a temporary directory for convenience.  Make it in the build tree
20027# simply because there is no reason against having it here, and in addition,
20028# creating and moving files from /tmp can sometimes cause problems.
20029# Hook for its removal unless debugging.
20030# Note that there is a small window in which the directory will not be cleaned:
20031# after its creation but before its name has been assigned to `$tmp'.
20032$debug ||
20033{
20034  tmp= ac_tmp=
20035  trap 'exit_status=$?
20036  : "${ac_tmp:=$tmp}"
20037  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20038' 0
20039  trap 'as_fn_exit 1' 1 2 13 15
20040}
20041# Create a (secure) tmp directory for tmp files.
20042
20043{
20044  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20045  test -d "$tmp"
20046}  ||
20047{
20048  tmp=./conf$$-$RANDOM
20049  (umask 077 && mkdir "$tmp")
20050} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20051ac_tmp=$tmp
20052
20053# Set up the scripts for CONFIG_FILES section.
20054# No need to generate them if there are no CONFIG_FILES.
20055# This happens for instance with `./config.status config.h'.
20056if test -n "$CONFIG_FILES"; then
20057
20058
20059ac_cr=`echo X | tr X '\015'`
20060# On cygwin, bash can eat \r inside `` if the user requested igncr.
20061# But we know of no other shell where ac_cr would be empty at this
20062# point, so we can use a bashism as a fallback.
20063if test "x$ac_cr" = x; then
20064  eval ac_cr=\$\'\\r\'
20065fi
20066ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20067if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20068  ac_cs_awk_cr='\\r'
20069else
20070  ac_cs_awk_cr=$ac_cr
20071fi
20072
20073echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20074_ACEOF
20075
20076
20077{
20078  echo "cat >conf$$subs.awk <<_ACEOF" &&
20079  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20080  echo "_ACEOF"
20081} >conf$$subs.sh ||
20082  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20083ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20084ac_delim='%!_!# '
20085for ac_last_try in false false false false false :; do
20086  . ./conf$$subs.sh ||
20087    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20088
20089  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20090  if test $ac_delim_n = $ac_delim_num; then
20091    break
20092  elif $ac_last_try; then
20093    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20094  else
20095    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20096  fi
20097done
20098rm -f conf$$subs.sh
20099
20100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20101cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20102_ACEOF
20103sed -n '
20104h
20105s/^/S["/; s/!.*/"]=/
20106p
20107g
20108s/^[^!]*!//
20109:repl
20110t repl
20111s/'"$ac_delim"'$//
20112t delim
20113:nl
20114h
20115s/\(.\{148\}\)..*/\1/
20116t more1
20117s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20118p
20119n
20120b repl
20121:more1
20122s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20123p
20124g
20125s/.\{148\}//
20126t nl
20127:delim
20128h
20129s/\(.\{148\}\)..*/\1/
20130t more2
20131s/["\\]/\\&/g; s/^/"/; s/$/"/
20132p
20133b
20134:more2
20135s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20136p
20137g
20138s/.\{148\}//
20139t delim
20140' <conf$$subs.awk | sed '
20141/^[^""]/{
20142  N
20143  s/\n//
20144}
20145' >>$CONFIG_STATUS || ac_write_fail=1
20146rm -f conf$$subs.awk
20147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20148_ACAWK
20149cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20150  for (key in S) S_is_set[key] = 1
20151  FS = ""
20152
20153}
20154{
20155  line = $ 0
20156  nfields = split(line, field, "@")
20157  substed = 0
20158  len = length(field[1])
20159  for (i = 2; i < nfields; i++) {
20160    key = field[i]
20161    keylen = length(key)
20162    if (S_is_set[key]) {
20163      value = S[key]
20164      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20165      len += length(value) + length(field[++i])
20166      substed = 1
20167    } else
20168      len += 1 + keylen
20169  }
20170
20171  print line
20172}
20173
20174_ACAWK
20175_ACEOF
20176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20177if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20178  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20179else
20180  cat
20181fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20182  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20183_ACEOF
20184
20185# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20186# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20187# trailing colons and then remove the whole line if VPATH becomes empty
20188# (actually we leave an empty line to preserve line numbers).
20189if test "x$srcdir" = x.; then
20190  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20191h
20192s///
20193s/^/:/
20194s/[	 ]*$/:/
20195s/:\$(srcdir):/:/g
20196s/:\${srcdir}:/:/g
20197s/:@srcdir@:/:/g
20198s/^:*//
20199s/:*$//
20200x
20201s/\(=[	 ]*\).*/\1/
20202G
20203s/\n//
20204s/^[^=]*=[	 ]*$//
20205}'
20206fi
20207
20208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20209fi # test -n "$CONFIG_FILES"
20210
20211# Set up the scripts for CONFIG_HEADERS section.
20212# No need to generate them if there are no CONFIG_HEADERS.
20213# This happens for instance with `./config.status Makefile'.
20214if test -n "$CONFIG_HEADERS"; then
20215cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20216BEGIN {
20217_ACEOF
20218
20219# Transform confdefs.h into an awk script `defines.awk', embedded as
20220# here-document in config.status, that substitutes the proper values into
20221# config.h.in to produce config.h.
20222
20223# Create a delimiter string that does not exist in confdefs.h, to ease
20224# handling of long lines.
20225ac_delim='%!_!# '
20226for ac_last_try in false false :; do
20227  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20228  if test -z "$ac_tt"; then
20229    break
20230  elif $ac_last_try; then
20231    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20232  else
20233    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20234  fi
20235done
20236
20237# For the awk script, D is an array of macro values keyed by name,
20238# likewise P contains macro parameters if any.  Preserve backslash
20239# newline sequences.
20240
20241ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20242sed -n '
20243s/.\{148\}/&'"$ac_delim"'/g
20244t rset
20245:rset
20246s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20247t def
20248d
20249:def
20250s/\\$//
20251t bsnl
20252s/["\\]/\\&/g
20253s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20254D["\1"]=" \3"/p
20255s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20256d
20257:bsnl
20258s/["\\]/\\&/g
20259s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20260D["\1"]=" \3\\\\\\n"\\/p
20261t cont
20262s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20263t cont
20264d
20265:cont
20266n
20267s/.\{148\}/&'"$ac_delim"'/g
20268t clear
20269:clear
20270s/\\$//
20271t bsnlc
20272s/["\\]/\\&/g; s/^/"/; s/$/"/p
20273d
20274:bsnlc
20275s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20276b cont
20277' <confdefs.h | sed '
20278s/'"$ac_delim"'/"\\\
20279"/g' >>$CONFIG_STATUS || ac_write_fail=1
20280
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282  for (key in D) D_is_set[key] = 1
20283  FS = ""
20284}
20285/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20286  line = \$ 0
20287  split(line, arg, " ")
20288  if (arg[1] == "#") {
20289    defundef = arg[2]
20290    mac1 = arg[3]
20291  } else {
20292    defundef = substr(arg[1], 2)
20293    mac1 = arg[2]
20294  }
20295  split(mac1, mac2, "(") #)
20296  macro = mac2[1]
20297  prefix = substr(line, 1, index(line, defundef) - 1)
20298  if (D_is_set[macro]) {
20299    # Preserve the white space surrounding the "#".
20300    print prefix "define", macro P[macro] D[macro]
20301    next
20302  } else {
20303    # Replace #undef with comments.  This is necessary, for example,
20304    # in the case of _POSIX_SOURCE, which is predefined and required
20305    # on some systems where configure will not decide to define it.
20306    if (defundef == "undef") {
20307      print "/*", prefix defundef, macro, "*/"
20308      next
20309    }
20310  }
20311}
20312{ print }
20313_ACAWK
20314_ACEOF
20315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20316  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20317fi # test -n "$CONFIG_HEADERS"
20318
20319
20320eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20321shift
20322for ac_tag
20323do
20324  case $ac_tag in
20325  :[FHLC]) ac_mode=$ac_tag; continue;;
20326  esac
20327  case $ac_mode$ac_tag in
20328  :[FHL]*:*);;
20329  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20330  :[FH]-) ac_tag=-:-;;
20331  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20332  esac
20333  ac_save_IFS=$IFS
20334  IFS=:
20335  set x $ac_tag
20336  IFS=$ac_save_IFS
20337  shift
20338  ac_file=$1
20339  shift
20340
20341  case $ac_mode in
20342  :L) ac_source=$1;;
20343  :[FH])
20344    ac_file_inputs=
20345    for ac_f
20346    do
20347      case $ac_f in
20348      -) ac_f="$ac_tmp/stdin";;
20349      *) # Look for the file first in the build tree, then in the source tree
20350	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20351	 # because $ac_f cannot contain `:'.
20352	 test -f "$ac_f" ||
20353	   case $ac_f in
20354	   [\\/$]*) false;;
20355	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20356	   esac ||
20357	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20358      esac
20359      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20360      as_fn_append ac_file_inputs " '$ac_f'"
20361    done
20362
20363    # Let's still pretend it is `configure' which instantiates (i.e., don't
20364    # use $as_me), people would be surprised to read:
20365    #    /* config.h.  Generated by config.status.  */
20366    configure_input='Generated from '`
20367	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20368	`' by configure.'
20369    if test x"$ac_file" != x-; then
20370      configure_input="$ac_file.  $configure_input"
20371      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20372$as_echo "$as_me: creating $ac_file" >&6;}
20373    fi
20374    # Neutralize special characters interpreted by sed in replacement strings.
20375    case $configure_input in #(
20376    *\&* | *\|* | *\\* )
20377       ac_sed_conf_input=`$as_echo "$configure_input" |
20378       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20379    *) ac_sed_conf_input=$configure_input;;
20380    esac
20381
20382    case $ac_tag in
20383    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20384      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20385    esac
20386    ;;
20387  esac
20388
20389  ac_dir=`$as_dirname -- "$ac_file" ||
20390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391	 X"$ac_file" : 'X\(//\)[^/]' \| \
20392	 X"$ac_file" : 'X\(//\)$' \| \
20393	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20394$as_echo X"$ac_file" |
20395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20396	    s//\1/
20397	    q
20398	  }
20399	  /^X\(\/\/\)[^/].*/{
20400	    s//\1/
20401	    q
20402	  }
20403	  /^X\(\/\/\)$/{
20404	    s//\1/
20405	    q
20406	  }
20407	  /^X\(\/\).*/{
20408	    s//\1/
20409	    q
20410	  }
20411	  s/.*/./; q'`
20412  as_dir="$ac_dir"; as_fn_mkdir_p
20413  ac_builddir=.
20414
20415case "$ac_dir" in
20416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20417*)
20418  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20419  # A ".." for each directory in $ac_dir_suffix.
20420  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20421  case $ac_top_builddir_sub in
20422  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20423  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20424  esac ;;
20425esac
20426ac_abs_top_builddir=$ac_pwd
20427ac_abs_builddir=$ac_pwd$ac_dir_suffix
20428# for backward compatibility:
20429ac_top_builddir=$ac_top_build_prefix
20430
20431case $srcdir in
20432  .)  # We are building in place.
20433    ac_srcdir=.
20434    ac_top_srcdir=$ac_top_builddir_sub
20435    ac_abs_top_srcdir=$ac_pwd ;;
20436  [\\/]* | ?:[\\/]* )  # Absolute name.
20437    ac_srcdir=$srcdir$ac_dir_suffix;
20438    ac_top_srcdir=$srcdir
20439    ac_abs_top_srcdir=$srcdir ;;
20440  *) # Relative name.
20441    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20442    ac_top_srcdir=$ac_top_build_prefix$srcdir
20443    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20444esac
20445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20446
20447
20448  case $ac_mode in
20449  :F)
20450  #
20451  # CONFIG_FILE
20452  #
20453
20454  case $INSTALL in
20455  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20456  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20457  esac
20458  ac_MKDIR_P=$MKDIR_P
20459  case $MKDIR_P in
20460  [\\/$]* | ?:[\\/]* ) ;;
20461  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20462  esac
20463_ACEOF
20464
20465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20466# If the template does not know about datarootdir, expand it.
20467# FIXME: This hack should be removed a few years after 2.60.
20468ac_datarootdir_hack=; ac_datarootdir_seen=
20469ac_sed_dataroot='
20470/datarootdir/ {
20471  p
20472  q
20473}
20474/@datadir@/p
20475/@docdir@/p
20476/@infodir@/p
20477/@localedir@/p
20478/@mandir@/p'
20479case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20480*datarootdir*) ac_datarootdir_seen=yes;;
20481*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20482  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20483$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20484_ACEOF
20485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20486  ac_datarootdir_hack='
20487  s&@datadir@&$datadir&g
20488  s&@docdir@&$docdir&g
20489  s&@infodir@&$infodir&g
20490  s&@localedir@&$localedir&g
20491  s&@mandir@&$mandir&g
20492  s&\\\${datarootdir}&$datarootdir&g' ;;
20493esac
20494_ACEOF
20495
20496# Neutralize VPATH when `$srcdir' = `.'.
20497# Shell code in configure.ac might set extrasub.
20498# FIXME: do we really want to maintain this feature?
20499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20500ac_sed_extra="$ac_vpsub
20501$extrasub
20502_ACEOF
20503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20504:t
20505/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20506s|@configure_input@|$ac_sed_conf_input|;t t
20507s&@top_builddir@&$ac_top_builddir_sub&;t t
20508s&@top_build_prefix@&$ac_top_build_prefix&;t t
20509s&@srcdir@&$ac_srcdir&;t t
20510s&@abs_srcdir@&$ac_abs_srcdir&;t t
20511s&@top_srcdir@&$ac_top_srcdir&;t t
20512s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20513s&@builddir@&$ac_builddir&;t t
20514s&@abs_builddir@&$ac_abs_builddir&;t t
20515s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20516s&@INSTALL@&$ac_INSTALL&;t t
20517s&@MKDIR_P@&$ac_MKDIR_P&;t t
20518$ac_datarootdir_hack
20519"
20520eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20521  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20522
20523test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20524  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20525  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20526      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20527  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20528which seems to be undefined.  Please make sure it is defined" >&5
20529$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20530which seems to be undefined.  Please make sure it is defined" >&2;}
20531
20532  rm -f "$ac_tmp/stdin"
20533  case $ac_file in
20534  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20535  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20536  esac \
20537  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20538 ;;
20539  :H)
20540  #
20541  # CONFIG_HEADER
20542  #
20543  if test x"$ac_file" != x-; then
20544    {
20545      $as_echo "/* $configure_input  */" \
20546      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20547    } >"$ac_tmp/config.h" \
20548      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20549    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20550      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20551$as_echo "$as_me: $ac_file is unchanged" >&6;}
20552    else
20553      rm -f "$ac_file"
20554      mv "$ac_tmp/config.h" "$ac_file" \
20555	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20556    fi
20557  else
20558    $as_echo "/* $configure_input  */" \
20559      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20560      || as_fn_error $? "could not create -" "$LINENO" 5
20561  fi
20562# Compute "$ac_file"'s index in $config_headers.
20563_am_arg="$ac_file"
20564_am_stamp_count=1
20565for _am_header in $config_headers :; do
20566  case $_am_header in
20567    $_am_arg | $_am_arg:* )
20568      break ;;
20569    * )
20570      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20571  esac
20572done
20573echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20574$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20575	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20576	 X"$_am_arg" : 'X\(//\)$' \| \
20577	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20578$as_echo X"$_am_arg" |
20579    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20580	    s//\1/
20581	    q
20582	  }
20583	  /^X\(\/\/\)[^/].*/{
20584	    s//\1/
20585	    q
20586	  }
20587	  /^X\(\/\/\)$/{
20588	    s//\1/
20589	    q
20590	  }
20591	  /^X\(\/\).*/{
20592	    s//\1/
20593	    q
20594	  }
20595	  s/.*/./; q'`/stamp-h$_am_stamp_count
20596 ;;
20597
20598  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20599$as_echo "$as_me: executing $ac_file commands" >&6;}
20600 ;;
20601  esac
20602
20603
20604  case $ac_file$ac_mode in
20605    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20606  # Older Autoconf quotes --file arguments for eval, but not when files
20607  # are listed without --file.  Let's play safe and only enable the eval
20608  # if we detect the quoting.
20609  case $CONFIG_FILES in
20610  *\'*) eval set x "$CONFIG_FILES" ;;
20611  *)   set x $CONFIG_FILES ;;
20612  esac
20613  shift
20614  for mf
20615  do
20616    # Strip MF so we end up with the name of the file.
20617    mf=`echo "$mf" | sed -e 's/:.*$//'`
20618    # Check whether this is an Automake generated Makefile or not.
20619    # We used to match only the files named 'Makefile.in', but
20620    # some people rename them; so instead we look at the file content.
20621    # Grep'ing the first line is not enough: some people post-process
20622    # each Makefile.in and add a new line on top of each file to say so.
20623    # Grep'ing the whole file is not good either: AIX grep has a line
20624    # limit of 2048, but all sed's we know have understand at least 4000.
20625    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20626      dirpart=`$as_dirname -- "$mf" ||
20627$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20628	 X"$mf" : 'X\(//\)[^/]' \| \
20629	 X"$mf" : 'X\(//\)$' \| \
20630	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20631$as_echo X"$mf" |
20632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20633	    s//\1/
20634	    q
20635	  }
20636	  /^X\(\/\/\)[^/].*/{
20637	    s//\1/
20638	    q
20639	  }
20640	  /^X\(\/\/\)$/{
20641	    s//\1/
20642	    q
20643	  }
20644	  /^X\(\/\).*/{
20645	    s//\1/
20646	    q
20647	  }
20648	  s/.*/./; q'`
20649    else
20650      continue
20651    fi
20652    # Extract the definition of DEPDIR, am__include, and am__quote
20653    # from the Makefile without running 'make'.
20654    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20655    test -z "$DEPDIR" && continue
20656    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20657    test -z "$am__include" && continue
20658    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20659    # Find all dependency output files, they are included files with
20660    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20661    # simplest approach to changing $(DEPDIR) to its actual value in the
20662    # expansion.
20663    for file in `sed -n "
20664      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20665	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20666      # Make sure the directory exists.
20667      test -f "$dirpart/$file" && continue
20668      fdir=`$as_dirname -- "$file" ||
20669$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20670	 X"$file" : 'X\(//\)[^/]' \| \
20671	 X"$file" : 'X\(//\)$' \| \
20672	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20673$as_echo X"$file" |
20674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20675	    s//\1/
20676	    q
20677	  }
20678	  /^X\(\/\/\)[^/].*/{
20679	    s//\1/
20680	    q
20681	  }
20682	  /^X\(\/\/\)$/{
20683	    s//\1/
20684	    q
20685	  }
20686	  /^X\(\/\).*/{
20687	    s//\1/
20688	    q
20689	  }
20690	  s/.*/./; q'`
20691      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20692      # echo "creating $dirpart/$file"
20693      echo '# dummy' > "$dirpart/$file"
20694    done
20695  done
20696}
20697 ;;
20698    "libtool":C)
20699
20700    # See if we are running on zsh, and set the options that allow our
20701    # commands through without removal of \ escapes.
20702    if test -n "${ZSH_VERSION+set}"; then
20703      setopt NO_GLOB_SUBST
20704    fi
20705
20706    cfgfile=${ofile}T
20707    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20708    $RM "$cfgfile"
20709
20710    cat <<_LT_EOF >> "$cfgfile"
20711#! $SHELL
20712# Generated automatically by $as_me ($PACKAGE) $VERSION
20713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20714# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20715
20716# Provide generalized library-building support services.
20717# Written by Gordon Matzigkeit, 1996
20718
20719# Copyright (C) 2014 Free Software Foundation, Inc.
20720# This is free software; see the source for copying conditions.  There is NO
20721# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20722
20723# GNU Libtool is free software; you can redistribute it and/or modify
20724# it under the terms of the GNU General Public License as published by
20725# the Free Software Foundation; either version 2 of of the License, or
20726# (at your option) any later version.
20727#
20728# As a special exception to the GNU General Public License, if you
20729# distribute this file as part of a program or library that is built
20730# using GNU Libtool, you may include this file under the  same
20731# distribution terms that you use for the rest of that program.
20732#
20733# GNU Libtool is distributed in the hope that it will be useful, but
20734# WITHOUT ANY WARRANTY; without even the implied warranty of
20735# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20736# GNU General Public License for more details.
20737#
20738# You should have received a copy of the GNU General Public License
20739# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20740
20741
20742# The names of the tagged configurations supported by this script.
20743available_tags=''
20744
20745# Configured defaults for sys_lib_dlsearch_path munging.
20746: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20747
20748# ### BEGIN LIBTOOL CONFIG
20749
20750# Which release of libtool.m4 was used?
20751macro_version=$macro_version
20752macro_revision=$macro_revision
20753
20754# Whether or not to build shared libraries.
20755build_libtool_libs=$enable_shared
20756
20757# Whether or not to build static libraries.
20758build_old_libs=$enable_static
20759
20760# What type of objects to build.
20761pic_mode=$pic_mode
20762
20763# Whether or not to optimize for fast installation.
20764fast_install=$enable_fast_install
20765
20766# Shared archive member basename,for filename based shared library versioning on AIX.
20767shared_archive_member_spec=$shared_archive_member_spec
20768
20769# Shell to use when invoking shell scripts.
20770SHELL=$lt_SHELL
20771
20772# An echo program that protects backslashes.
20773ECHO=$lt_ECHO
20774
20775# The PATH separator for the build system.
20776PATH_SEPARATOR=$lt_PATH_SEPARATOR
20777
20778# The host system.
20779host_alias=$host_alias
20780host=$host
20781host_os=$host_os
20782
20783# The build system.
20784build_alias=$build_alias
20785build=$build
20786build_os=$build_os
20787
20788# A sed program that does not truncate output.
20789SED=$lt_SED
20790
20791# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20792Xsed="\$SED -e 1s/^X//"
20793
20794# A grep program that handles long lines.
20795GREP=$lt_GREP
20796
20797# An ERE matcher.
20798EGREP=$lt_EGREP
20799
20800# A literal string matcher.
20801FGREP=$lt_FGREP
20802
20803# A BSD- or MS-compatible name lister.
20804NM=$lt_NM
20805
20806# Whether we need soft or hard links.
20807LN_S=$lt_LN_S
20808
20809# What is the maximum length of a command?
20810max_cmd_len=$max_cmd_len
20811
20812# Object file suffix (normally "o").
20813objext=$ac_objext
20814
20815# Executable file suffix (normally "").
20816exeext=$exeext
20817
20818# whether the shell understands "unset".
20819lt_unset=$lt_unset
20820
20821# turn spaces into newlines.
20822SP2NL=$lt_lt_SP2NL
20823
20824# turn newlines into spaces.
20825NL2SP=$lt_lt_NL2SP
20826
20827# convert \$build file names to \$host format.
20828to_host_file_cmd=$lt_cv_to_host_file_cmd
20829
20830# convert \$build files to toolchain format.
20831to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20832
20833# An object symbol dumper.
20834OBJDUMP=$lt_OBJDUMP
20835
20836# Method to check whether dependent libraries are shared objects.
20837deplibs_check_method=$lt_deplibs_check_method
20838
20839# Command to use when deplibs_check_method = "file_magic".
20840file_magic_cmd=$lt_file_magic_cmd
20841
20842# How to find potential files when deplibs_check_method = "file_magic".
20843file_magic_glob=$lt_file_magic_glob
20844
20845# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20846want_nocaseglob=$lt_want_nocaseglob
20847
20848# DLL creation program.
20849DLLTOOL=$lt_DLLTOOL
20850
20851# Command to associate shared and link libraries.
20852sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20853
20854# The archiver.
20855AR=$lt_AR
20856
20857# Flags to create an archive.
20858AR_FLAGS=$lt_AR_FLAGS
20859
20860# How to feed a file listing to the archiver.
20861archiver_list_spec=$lt_archiver_list_spec
20862
20863# A symbol stripping program.
20864STRIP=$lt_STRIP
20865
20866# Commands used to install an old-style archive.
20867RANLIB=$lt_RANLIB
20868old_postinstall_cmds=$lt_old_postinstall_cmds
20869old_postuninstall_cmds=$lt_old_postuninstall_cmds
20870
20871# Whether to use a lock for old archive extraction.
20872lock_old_archive_extraction=$lock_old_archive_extraction
20873
20874# A C compiler.
20875LTCC=$lt_CC
20876
20877# LTCC compiler flags.
20878LTCFLAGS=$lt_CFLAGS
20879
20880# Take the output of nm and produce a listing of raw symbols and C names.
20881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20882
20883# Transform the output of nm in a proper C declaration.
20884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20885
20886# Transform the output of nm into a list of symbols to manually relocate.
20887global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20888
20889# Transform the output of nm in a C name address pair.
20890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20891
20892# Transform the output of nm in a C name address pair when lib prefix is needed.
20893global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20894
20895# The name lister interface.
20896nm_interface=$lt_lt_cv_nm_interface
20897
20898# Specify filename containing input files for \$NM.
20899nm_file_list_spec=$lt_nm_file_list_spec
20900
20901# The root where to search for dependent libraries,and where our libraries should be installed.
20902lt_sysroot=$lt_sysroot
20903
20904# Command to truncate a binary pipe.
20905lt_truncate_bin=$lt_lt_cv_truncate_bin
20906
20907# The name of the directory that contains temporary libtool files.
20908objdir=$objdir
20909
20910# Used to examine libraries when file_magic_cmd begins with "file".
20911MAGIC_CMD=$MAGIC_CMD
20912
20913# Must we lock files when doing compilation?
20914need_locks=$lt_need_locks
20915
20916# Manifest tool.
20917MANIFEST_TOOL=$lt_MANIFEST_TOOL
20918
20919# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20920DSYMUTIL=$lt_DSYMUTIL
20921
20922# Tool to change global to local symbols on Mac OS X.
20923NMEDIT=$lt_NMEDIT
20924
20925# Tool to manipulate fat objects and archives on Mac OS X.
20926LIPO=$lt_LIPO
20927
20928# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20929OTOOL=$lt_OTOOL
20930
20931# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20932OTOOL64=$lt_OTOOL64
20933
20934# Old archive suffix (normally "a").
20935libext=$libext
20936
20937# Shared library suffix (normally ".so").
20938shrext_cmds=$lt_shrext_cmds
20939
20940# The commands to extract the exported symbol list from a shared archive.
20941extract_expsyms_cmds=$lt_extract_expsyms_cmds
20942
20943# Variables whose values should be saved in libtool wrapper scripts and
20944# restored at link time.
20945variables_saved_for_relink=$lt_variables_saved_for_relink
20946
20947# Do we need the "lib" prefix for modules?
20948need_lib_prefix=$need_lib_prefix
20949
20950# Do we need a version for libraries?
20951need_version=$need_version
20952
20953# Library versioning type.
20954version_type=$version_type
20955
20956# Shared library runtime path variable.
20957runpath_var=$runpath_var
20958
20959# Shared library path variable.
20960shlibpath_var=$shlibpath_var
20961
20962# Is shlibpath searched before the hard-coded library search path?
20963shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20964
20965# Format of library name prefix.
20966libname_spec=$lt_libname_spec
20967
20968# List of archive names.  First name is the real one, the rest are links.
20969# The last name is the one that the linker finds with -lNAME
20970library_names_spec=$lt_library_names_spec
20971
20972# The coded name of the library, if different from the real name.
20973soname_spec=$lt_soname_spec
20974
20975# Permission mode override for installation of shared libraries.
20976install_override_mode=$lt_install_override_mode
20977
20978# Command to use after installation of a shared archive.
20979postinstall_cmds=$lt_postinstall_cmds
20980
20981# Command to use after uninstallation of a shared archive.
20982postuninstall_cmds=$lt_postuninstall_cmds
20983
20984# Commands used to finish a libtool library installation in a directory.
20985finish_cmds=$lt_finish_cmds
20986
20987# As "finish_cmds", except a single script fragment to be evaled but
20988# not shown.
20989finish_eval=$lt_finish_eval
20990
20991# Whether we should hardcode library paths into libraries.
20992hardcode_into_libs=$hardcode_into_libs
20993
20994# Compile-time system search path for libraries.
20995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20996
20997# Detected run-time system search path for libraries.
20998sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20999
21000# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21001configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21002
21003# Whether dlopen is supported.
21004dlopen_support=$enable_dlopen
21005
21006# Whether dlopen of programs is supported.
21007dlopen_self=$enable_dlopen_self
21008
21009# Whether dlopen of statically linked programs is supported.
21010dlopen_self_static=$enable_dlopen_self_static
21011
21012# Commands to strip libraries.
21013old_striplib=$lt_old_striplib
21014striplib=$lt_striplib
21015
21016
21017# The linker used to build libraries.
21018LD=$lt_LD
21019
21020# How to create reloadable object files.
21021reload_flag=$lt_reload_flag
21022reload_cmds=$lt_reload_cmds
21023
21024# Commands used to build an old-style archive.
21025old_archive_cmds=$lt_old_archive_cmds
21026
21027# A language specific compiler.
21028CC=$lt_compiler
21029
21030# Is the compiler the GNU compiler?
21031with_gcc=$GCC
21032
21033# Compiler flag to turn off builtin functions.
21034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21035
21036# Additional compiler flags for building library objects.
21037pic_flag=$lt_lt_prog_compiler_pic
21038
21039# How to pass a linker flag through the compiler.
21040wl=$lt_lt_prog_compiler_wl
21041
21042# Compiler flag to prevent dynamic linking.
21043link_static_flag=$lt_lt_prog_compiler_static
21044
21045# Does compiler simultaneously support -c and -o options?
21046compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21047
21048# Whether or not to add -lc for building shared libraries.
21049build_libtool_need_lc=$archive_cmds_need_lc
21050
21051# Whether or not to disallow shared libs when runtime libs are static.
21052allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21053
21054# Compiler flag to allow reflexive dlopens.
21055export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21056
21057# Compiler flag to generate shared objects directly from archives.
21058whole_archive_flag_spec=$lt_whole_archive_flag_spec
21059
21060# Whether the compiler copes with passing no objects directly.
21061compiler_needs_object=$lt_compiler_needs_object
21062
21063# Create an old-style archive from a shared archive.
21064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21065
21066# Create a temporary old-style archive to link instead of a shared archive.
21067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21068
21069# Commands used to build a shared archive.
21070archive_cmds=$lt_archive_cmds
21071archive_expsym_cmds=$lt_archive_expsym_cmds
21072
21073# Commands used to build a loadable module if different from building
21074# a shared archive.
21075module_cmds=$lt_module_cmds
21076module_expsym_cmds=$lt_module_expsym_cmds
21077
21078# Whether we are building with GNU ld or not.
21079with_gnu_ld=$lt_with_gnu_ld
21080
21081# Flag that allows shared libraries with undefined symbols to be built.
21082allow_undefined_flag=$lt_allow_undefined_flag
21083
21084# Flag that enforces no undefined symbols.
21085no_undefined_flag=$lt_no_undefined_flag
21086
21087# Flag to hardcode \$libdir into a binary during linking.
21088# This must work even if \$libdir does not exist
21089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21090
21091# Whether we need a single "-rpath" flag with a separated argument.
21092hardcode_libdir_separator=$lt_hardcode_libdir_separator
21093
21094# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21095# DIR into the resulting binary.
21096hardcode_direct=$hardcode_direct
21097
21098# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21099# DIR into the resulting binary and the resulting library dependency is
21100# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21101# library is relocated.
21102hardcode_direct_absolute=$hardcode_direct_absolute
21103
21104# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21105# into the resulting binary.
21106hardcode_minus_L=$hardcode_minus_L
21107
21108# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21109# into the resulting binary.
21110hardcode_shlibpath_var=$hardcode_shlibpath_var
21111
21112# Set to "yes" if building a shared library automatically hardcodes DIR
21113# into the library and all subsequent libraries and executables linked
21114# against it.
21115hardcode_automatic=$hardcode_automatic
21116
21117# Set to yes if linker adds runtime paths of dependent libraries
21118# to runtime path list.
21119inherit_rpath=$inherit_rpath
21120
21121# Whether libtool must link a program against all its dependency libraries.
21122link_all_deplibs=$link_all_deplibs
21123
21124# Set to "yes" if exported symbols are required.
21125always_export_symbols=$always_export_symbols
21126
21127# The commands to list exported symbols.
21128export_symbols_cmds=$lt_export_symbols_cmds
21129
21130# Symbols that should not be listed in the preloaded symbols.
21131exclude_expsyms=$lt_exclude_expsyms
21132
21133# Symbols that must always be exported.
21134include_expsyms=$lt_include_expsyms
21135
21136# Commands necessary for linking programs (against libraries) with templates.
21137prelink_cmds=$lt_prelink_cmds
21138
21139# Commands necessary for finishing linking programs.
21140postlink_cmds=$lt_postlink_cmds
21141
21142# Specify filename containing input files.
21143file_list_spec=$lt_file_list_spec
21144
21145# How to hardcode a shared library path into an executable.
21146hardcode_action=$hardcode_action
21147
21148# ### END LIBTOOL CONFIG
21149
21150_LT_EOF
21151
21152    cat <<'_LT_EOF' >> "$cfgfile"
21153
21154# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21155
21156# func_munge_path_list VARIABLE PATH
21157# -----------------------------------
21158# VARIABLE is name of variable containing _space_ separated list of
21159# directories to be munged by the contents of PATH, which is string
21160# having a format:
21161# "DIR[:DIR]:"
21162#       string "DIR[ DIR]" will be prepended to VARIABLE
21163# ":DIR[:DIR]"
21164#       string "DIR[ DIR]" will be appended to VARIABLE
21165# "DIRP[:DIRP]::[DIRA:]DIRA"
21166#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21167#       "DIRA[ DIRA]" will be appended to VARIABLE
21168# "DIR[:DIR]"
21169#       VARIABLE will be replaced by "DIR[ DIR]"
21170func_munge_path_list ()
21171{
21172    case x$2 in
21173    x)
21174        ;;
21175    *:)
21176        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21177        ;;
21178    x:*)
21179        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21180        ;;
21181    *::*)
21182        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21183        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21184        ;;
21185    *)
21186        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21187        ;;
21188    esac
21189}
21190
21191
21192# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21193func_cc_basename ()
21194{
21195    for cc_temp in $*""; do
21196      case $cc_temp in
21197        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21198        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21199        \-*) ;;
21200        *) break;;
21201      esac
21202    done
21203    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21204}
21205
21206
21207# ### END FUNCTIONS SHARED WITH CONFIGURE
21208
21209_LT_EOF
21210
21211  case $host_os in
21212  aix3*)
21213    cat <<\_LT_EOF >> "$cfgfile"
21214# AIX sometimes has problems with the GCC collect2 program.  For some
21215# reason, if we set the COLLECT_NAMES environment variable, the problems
21216# vanish in a puff of smoke.
21217if test set != "${COLLECT_NAMES+set}"; then
21218  COLLECT_NAMES=
21219  export COLLECT_NAMES
21220fi
21221_LT_EOF
21222    ;;
21223  esac
21224
21225
21226ltmain=$ac_aux_dir/ltmain.sh
21227
21228
21229  # We use sed instead of cat because bash on DJGPP gets confused if
21230  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21231  # text mode, it properly converts lines to CR/LF.  This bash problem
21232  # is reportedly fixed, but why not run on old versions too?
21233  sed '$q' "$ltmain" >> "$cfgfile" \
21234     || (rm -f "$cfgfile"; exit 1)
21235
21236   mv -f "$cfgfile" "$ofile" ||
21237    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21238  chmod +x "$ofile"
21239
21240 ;;
21241
21242  esac
21243done # for ac_tag
21244
21245
21246as_fn_exit 0
21247_ACEOF
21248ac_clean_files=$ac_clean_files_save
21249
21250test $ac_write_fail = 0 ||
21251  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21252
21253
21254# configure is writing to config.log, and then calls config.status.
21255# config.status does its own redirection, appending to config.log.
21256# Unfortunately, on DOS this fails, as config.log is still kept open
21257# by configure, so config.status won't be able to write to it; its
21258# output is simply discarded.  So we exec the FD to /dev/null,
21259# effectively closing config.log, so it can be properly (re)opened and
21260# appended to by config.status.  When coming back to configure, we
21261# need to make the FD available again.
21262if test "$no_create" != yes; then
21263  ac_cs_success=:
21264  ac_config_status_args=
21265  test "$silent" = yes &&
21266    ac_config_status_args="$ac_config_status_args --quiet"
21267  exec 5>/dev/null
21268  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21269  exec 5>>config.log
21270  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21271  # would make configure fail if this is the last instruction.
21272  $ac_cs_success || as_fn_exit 1
21273fi
21274if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21275  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21276$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21277fi
21278
21279