configure revision 2029f493
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libpciaccess 0.15.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libpciaccess'
593PACKAGE_TARNAME='libpciaccess'
594PACKAGE_VERSION='0.15'
595PACKAGE_STRING='libpciaccess 0.15'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues'
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__include
717DEPDIR
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
725AM_BACKSLASH
726AM_DEFAULT_VERBOSITY
727AM_DEFAULT_V
728AM_V
729am__untar
730am__tar
731AMTAR
732am__leading_dot
733SET_MAKE
734AWK
735mkdir_p
736MKDIR_P
737INSTALL_STRIP_PROGRAM
738STRIP
739install_sh
740MAKEINFO
741AUTOHEADER
742AUTOMAKE
743AUTOCONF
744ACLOCAL
745VERSION
746PACKAGE
747CYGPATH_W
748am__isrc
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL
790am__quote'
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.15 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.15:";;
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://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues>.
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.15
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://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues ##
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
1973cat >config.log <<_ACEOF
1974This file contains any messages produced by compilers while
1975running configure, to aid debugging if configure makes a mistake.
1976
1977It was created by libpciaccess $as_me 0.15, which was
1978generated by GNU Autoconf 2.69.  Invocation command line was
1979
1980  $ $0 $@
1981
1982_ACEOF
1983exec 5>>config.log
1984{
1985cat <<_ASUNAME
1986## --------- ##
1987## Platform. ##
1988## --------- ##
1989
1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1998
1999/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2000/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2003/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2004/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2005/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2006
2007_ASUNAME
2008
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012  IFS=$as_save_IFS
2013  test -z "$as_dir" && as_dir=.
2014    $as_echo "PATH: $as_dir"
2015  done
2016IFS=$as_save_IFS
2017
2018} >&5
2019
2020cat >&5 <<_ACEOF
2021
2022
2023## ----------- ##
2024## Core tests. ##
2025## ----------- ##
2026
2027_ACEOF
2028
2029
2030# Keep a trace of the command line.
2031# Strip out --no-create and --no-recursion so they do not pile up.
2032# Strip out --silent because we don't want to record it for future runs.
2033# Also quote any args containing shell meta-characters.
2034# Make two passes to allow for proper duplicate-argument suppression.
2035ac_configure_args=
2036ac_configure_args0=
2037ac_configure_args1=
2038ac_must_keep_next=false
2039for ac_pass in 1 2
2040do
2041  for ac_arg
2042  do
2043    case $ac_arg in
2044    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2045    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2046    | -silent | --silent | --silen | --sile | --sil)
2047      continue ;;
2048    *\'*)
2049      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050    esac
2051    case $ac_pass in
2052    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053    2)
2054      as_fn_append ac_configure_args1 " '$ac_arg'"
2055      if test $ac_must_keep_next = true; then
2056	ac_must_keep_next=false # Got value, back to normal.
2057      else
2058	case $ac_arg in
2059	  *=* | --config-cache | -C | -disable-* | --disable-* \
2060	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2061	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2062	  | -with-* | --with-* | -without-* | --without-* | --x)
2063	    case "$ac_configure_args0 " in
2064	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065	    esac
2066	    ;;
2067	  -* ) ac_must_keep_next=true ;;
2068	esac
2069      fi
2070      as_fn_append ac_configure_args " '$ac_arg'"
2071      ;;
2072    esac
2073  done
2074done
2075{ ac_configure_args0=; unset ac_configure_args0;}
2076{ ac_configure_args1=; unset ac_configure_args1;}
2077
2078# When interrupted or exit'd, cleanup temporary files, and complete
2079# config.log.  We remove comments because anyway the quotes in there
2080# would cause problems or look ugly.
2081# WARNING: Use '\'' to represent an apostrophe within the trap.
2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2083trap 'exit_status=$?
2084  # Save into config.log some information that might help in debugging.
2085  {
2086    echo
2087
2088    $as_echo "## ---------------- ##
2089## Cache variables. ##
2090## ---------------- ##"
2091    echo
2092    # The following way of writing the cache mishandles newlines in values,
2093(
2094  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095    eval ac_val=\$$ac_var
2096    case $ac_val in #(
2097    *${as_nl}*)
2098      case $ac_var in #(
2099      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101      esac
2102      case $ac_var in #(
2103      _ | IFS | as_nl) ;; #(
2104      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105      *) { eval $ac_var=; unset $ac_var;} ;;
2106      esac ;;
2107    esac
2108  done
2109  (set) 2>&1 |
2110    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111    *${as_nl}ac_space=\ *)
2112      sed -n \
2113	"s/'\''/'\''\\\\'\'''\''/g;
2114	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115      ;; #(
2116    *)
2117      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118      ;;
2119    esac |
2120    sort
2121)
2122    echo
2123
2124    $as_echo "## ----------------- ##
2125## Output variables. ##
2126## ----------------- ##"
2127    echo
2128    for ac_var in $ac_subst_vars
2129    do
2130      eval ac_val=\$$ac_var
2131      case $ac_val in
2132      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133      esac
2134      $as_echo "$ac_var='\''$ac_val'\''"
2135    done | sort
2136    echo
2137
2138    if test -n "$ac_subst_files"; then
2139      $as_echo "## ------------------- ##
2140## File substitutions. ##
2141## ------------------- ##"
2142      echo
2143      for ac_var in $ac_subst_files
2144      do
2145	eval ac_val=\$$ac_var
2146	case $ac_val in
2147	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148	esac
2149	$as_echo "$ac_var='\''$ac_val'\''"
2150      done | sort
2151      echo
2152    fi
2153
2154    if test -s confdefs.h; then
2155      $as_echo "## ----------- ##
2156## confdefs.h. ##
2157## ----------- ##"
2158      echo
2159      cat confdefs.h
2160      echo
2161    fi
2162    test "$ac_signal" != 0 &&
2163      $as_echo "$as_me: caught signal $ac_signal"
2164    $as_echo "$as_me: exit $exit_status"
2165  } >&5
2166  rm -f core *.core core.conftest.* &&
2167    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168    exit $exit_status
2169' 0
2170for ac_signal in 1 2 13 15; do
2171  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172done
2173ac_signal=0
2174
2175# confdefs.h avoids OS command line length limits that DEFS can exceed.
2176rm -f -r conftest* confdefs.h
2177
2178$as_echo "/* confdefs.h */" > confdefs.h
2179
2180# Predefined preprocessor variables.
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_NAME "$PACKAGE_NAME"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_VERSION "$PACKAGE_VERSION"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_STRING "$PACKAGE_STRING"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_URL "$PACKAGE_URL"
2204_ACEOF
2205
2206
2207# Let the site file select an alternate cache file if it wants to.
2208# Prefer an explicitly selected file to automatically selected ones.
2209ac_site_file1=NONE
2210ac_site_file2=NONE
2211if test -n "$CONFIG_SITE"; then
2212  # We do not want a PATH search for config.site.
2213  case $CONFIG_SITE in #((
2214    -*)  ac_site_file1=./$CONFIG_SITE;;
2215    */*) ac_site_file1=$CONFIG_SITE;;
2216    *)   ac_site_file1=./$CONFIG_SITE;;
2217  esac
2218elif test "x$prefix" != xNONE; then
2219  ac_site_file1=$prefix/share/config.site
2220  ac_site_file2=$prefix/etc/config.site
2221else
2222  ac_site_file1=$ac_default_prefix/share/config.site
2223  ac_site_file2=$ac_default_prefix/etc/config.site
2224fi
2225for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2226do
2227  test "x$ac_site_file" = xNONE && continue
2228  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2229    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2230$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2231    sed 's/^/| /' "$ac_site_file" >&5
2232    . "$ac_site_file" \
2233      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235as_fn_error $? "failed to load site script $ac_site_file
2236See \`config.log' for more details" "$LINENO" 5; }
2237  fi
2238done
2239
2240if test -r "$cache_file"; then
2241  # Some versions of bash will fail to source /dev/null (special files
2242  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2243  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2244    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245$as_echo "$as_me: loading cache $cache_file" >&6;}
2246    case $cache_file in
2247      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248      *)                      . "./$cache_file";;
2249    esac
2250  fi
2251else
2252  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253$as_echo "$as_me: creating cache $cache_file" >&6;}
2254  >$cache_file
2255fi
2256
2257# Check that the precious variables saved in the cache have kept the same
2258# value.
2259ac_cache_corrupted=false
2260for ac_var in $ac_precious_vars; do
2261  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262  eval ac_new_set=\$ac_env_${ac_var}_set
2263  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264  eval ac_new_val=\$ac_env_${ac_var}_value
2265  case $ac_old_set,$ac_new_set in
2266    set,)
2267      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269      ac_cache_corrupted=: ;;
2270    ,set)
2271      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273      ac_cache_corrupted=: ;;
2274    ,);;
2275    *)
2276      if test "x$ac_old_val" != "x$ac_new_val"; then
2277	# differences in whitespace do not lead to failure.
2278	ac_old_val_w=`echo x $ac_old_val`
2279	ac_new_val_w=`echo x $ac_new_val`
2280	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283	  ac_cache_corrupted=:
2284	else
2285	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287	  eval $ac_var=\$ac_old_val
2288	fi
2289	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2290$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2291	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2292$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2293      fi;;
2294  esac
2295  # Pass precious variables to config.status.
2296  if test "$ac_new_set" = set; then
2297    case $ac_new_val in
2298    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299    *) ac_arg=$ac_var=$ac_new_val ;;
2300    esac
2301    case " $ac_configure_args " in
2302      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2303      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304    esac
2305  fi
2306done
2307if $ac_cache_corrupted; then
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313fi
2314## -------------------- ##
2315## Main body of script. ##
2316## -------------------- ##
2317
2318ac_ext=c
2319ac_cpp='$CPP $CPPFLAGS'
2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325ac_config_headers="$ac_config_headers config.h"
2326
2327ac_aux_dir=
2328for ac_dir in . "$srcdir"/.; do
2329  if test -f "$ac_dir/install-sh"; then
2330    ac_aux_dir=$ac_dir
2331    ac_install_sh="$ac_aux_dir/install-sh -c"
2332    break
2333  elif test -f "$ac_dir/install.sh"; then
2334    ac_aux_dir=$ac_dir
2335    ac_install_sh="$ac_aux_dir/install.sh -c"
2336    break
2337  elif test -f "$ac_dir/shtool"; then
2338    ac_aux_dir=$ac_dir
2339    ac_install_sh="$ac_aux_dir/shtool install -c"
2340    break
2341  fi
2342done
2343if test -z "$ac_aux_dir"; then
2344  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2345fi
2346
2347# These three variables are undocumented and unsupported,
2348# and are intended to be withdrawn in a future Autoconf release.
2349# They can cause serious problems if a builder's source tree is in a directory
2350# whose full name contains unusual characters.
2351ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2352ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2353ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2354
2355
2356
2357# Initialize Automake
2358am__api_version='1.16'
2359
2360# Find a good install program.  We prefer a C program (faster),
2361# so one script is as good as another.  But avoid the broken or
2362# incompatible versions:
2363# SysV /etc/install, /usr/sbin/install
2364# SunOS /usr/etc/install
2365# IRIX /sbin/install
2366# AIX /bin/install
2367# AmigaOS /C/install, which installs bootblocks on floppy discs
2368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371# OS/2's system install, which has a completely different semantic
2372# ./install, which can be erroneously created by make from ./install.sh.
2373# Reject install programs that cannot install multiple files.
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375$as_echo_n "checking for a BSD-compatible install... " >&6; }
2376if test -z "$INSTALL"; then
2377if ${ac_cv_path_install+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    # Account for people who put trailing slashes in PATH elements.
2386case $as_dir/ in #((
2387  ./ | .// | /[cC]/* | \
2388  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390  /usr/ucb/* ) ;;
2391  *)
2392    # OSF1 and SCO ODT 3.0 have their own names for install.
2393    # Don't use installbsd from OSF since it installs stuff as root
2394    # by default.
2395    for ac_prog in ginstall scoinst install; do
2396      for ac_exec_ext in '' $ac_executable_extensions; do
2397	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2398	  if test $ac_prog = install &&
2399	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400	    # AIX install.  It has an incompatible calling convention.
2401	    :
2402	  elif test $ac_prog = install &&
2403	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404	    # program-specific install script used by HP pwplus--don't use.
2405	    :
2406	  else
2407	    rm -rf conftest.one conftest.two conftest.dir
2408	    echo one > conftest.one
2409	    echo two > conftest.two
2410	    mkdir conftest.dir
2411	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412	      test -s conftest.one && test -s conftest.two &&
2413	      test -s conftest.dir/conftest.one &&
2414	      test -s conftest.dir/conftest.two
2415	    then
2416	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417	      break 3
2418	    fi
2419	  fi
2420	fi
2421      done
2422    done
2423    ;;
2424esac
2425
2426  done
2427IFS=$as_save_IFS
2428
2429rm -rf conftest.one conftest.two conftest.dir
2430
2431fi
2432  if test "${ac_cv_path_install+set}" = set; then
2433    INSTALL=$ac_cv_path_install
2434  else
2435    # As a last resort, use the slow shell script.  Don't cache a
2436    # value for INSTALL within a source directory, because that will
2437    # break other packages using the cache if that directory is
2438    # removed, or if the value is a relative name.
2439    INSTALL=$ac_install_sh
2440  fi
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443$as_echo "$INSTALL" >&6; }
2444
2445# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446# It thinks the first close brace ends the variable substitution.
2447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454$as_echo_n "checking whether build environment is sane... " >&6; }
2455# Reject unsafe characters in $srcdir or the absolute working directory
2456# name.  Accept space and tab only in the latter.
2457am_lf='
2458'
2459case `pwd` in
2460  *[\\\"\#\$\&\'\`$am_lf]*)
2461    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2462esac
2463case $srcdir in
2464  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2465    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2466esac
2467
2468# Do 'set' in a subshell so we don't clobber the current shell's
2469# arguments.  Must try -L first in case configure is actually a
2470# symlink; some systems play weird games with the mod time of symlinks
2471# (eg FreeBSD returns the mod time of the symlink's containing
2472# directory).
2473if (
2474   am_has_slept=no
2475   for am_try in 1 2; do
2476     echo "timestamp, slept: $am_has_slept" > conftest.file
2477     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478     if test "$*" = "X"; then
2479	# -L didn't work.
2480	set X `ls -t "$srcdir/configure" conftest.file`
2481     fi
2482     if test "$*" != "X $srcdir/configure conftest.file" \
2483	&& test "$*" != "X conftest.file $srcdir/configure"; then
2484
2485	# If neither matched, then we have a broken ls.  This can happen
2486	# if, for instance, CONFIG_SHELL is bash and it inherits a
2487	# broken ls alias from the environment.  This has actually
2488	# happened.  Such a system could not be considered "sane".
2489	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2490  alias in your environment" "$LINENO" 5
2491     fi
2492     if test "$2" = conftest.file || test $am_try -eq 2; then
2493       break
2494     fi
2495     # Just in case.
2496     sleep 1
2497     am_has_slept=yes
2498   done
2499   test "$2" = conftest.file
2500   )
2501then
2502   # Ok.
2503   :
2504else
2505   as_fn_error $? "newly created file is older than distributed files!
2506Check your system clock" "$LINENO" 5
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509$as_echo "yes" >&6; }
2510# If we didn't sleep, we still need to ensure time stamps of config.status and
2511# generated files are strictly newer.
2512am_sleep_pid=
2513if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2514  ( sleep 1 ) &
2515  am_sleep_pid=$!
2516fi
2517
2518rm -f conftest.file
2519
2520test "$program_prefix" != NONE &&
2521  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
2524  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525# Double any \ or $.
2526# By default was `s,x,x', remove it if useless.
2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530# Expand $ac_aux_dir to an absolute path.
2531am_aux_dir=`cd "$ac_aux_dir" && pwd`
2532
2533if test x"${MISSING+set}" != xset; then
2534  case $am_aux_dir in
2535  *\ * | *\	*)
2536    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537  *)
2538    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539  esac
2540fi
2541# Use eval to expand $SHELL
2542if eval "$MISSING --is-lightweight"; then
2543  am_missing_run="$MISSING "
2544else
2545  am_missing_run=
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2547$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2548fi
2549
2550if test x"${install_sh+set}" != xset; then
2551  case $am_aux_dir in
2552  *\ * | *\	*)
2553    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554  *)
2555    install_sh="\${SHELL} $am_aux_dir/install-sh"
2556  esac
2557fi
2558
2559# Installed binaries are usually stripped using 'strip' when the user
2560# run "make install-strip".  However 'strip' might not be the right
2561# tool to use in cross-compilation environments, therefore Automake
2562# will honor the 'STRIP' environment variable to overrule this program.
2563if test "$cross_compiling" != no; then
2564  if test -n "$ac_tool_prefix"; then
2565  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if ${ac_cv_prog_STRIP+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  if test -n "$STRIP"; then
2573  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    for ac_exec_ext in '' $ac_executable_extensions; do
2581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584    break 2
2585  fi
2586done
2587  done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595$as_echo "$STRIP" >&6; }
2596else
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604  ac_ct_STRIP=$STRIP
2605  # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test -n "$ac_ct_STRIP"; then
2613  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    for ac_exec_ext in '' $ac_executable_extensions; do
2621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622    ac_cv_prog_ac_ct_STRIP="strip"
2623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627  done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635$as_echo "$ac_ct_STRIP" >&6; }
2636else
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641  if test "x$ac_ct_STRIP" = x; then
2642    STRIP=":"
2643  else
2644    case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650    STRIP=$ac_ct_STRIP
2651  fi
2652else
2653  STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661if test -z "$MKDIR_P"; then
2662  if ${ac_cv_path_mkdir+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670    for ac_prog in mkdir gmkdir; do
2671	 for ac_exec_ext in '' $ac_executable_extensions; do
2672	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2673	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674	     'mkdir (GNU coreutils) '* | \
2675	     'mkdir (coreutils) '* | \
2676	     'mkdir (fileutils) '4.1*)
2677	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678	       break 3;;
2679	   esac
2680	 done
2681       done
2682  done
2683IFS=$as_save_IFS
2684
2685fi
2686
2687  test -d ./--version && rmdir ./--version
2688  if test "${ac_cv_path_mkdir+set}" = set; then
2689    MKDIR_P="$ac_cv_path_mkdir -p"
2690  else
2691    # As a last resort, use the slow shell script.  Don't cache a
2692    # value for MKDIR_P within a source directory, because that will
2693    # break other packages using the cache if that directory is
2694    # removed, or if the value is a relative name.
2695    MKDIR_P="$ac_install_sh -d"
2696  fi
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699$as_echo "$MKDIR_P" >&6; }
2700
2701for ac_prog in gawk mawk nawk awk
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if ${ac_cv_prog_AWK+:} false; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$AWK"; then
2711  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720    ac_cv_prog_AWK="$ac_prog"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733$as_echo "$AWK" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740  test -n "$AWK" && break
2741done
2742
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2744$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2745set x ${MAKE-make}
2746ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2747if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  cat >conftest.make <<\_ACEOF
2751SHELL = /bin/sh
2752all:
2753	@echo '@@@%%%=$(MAKE)=@@@%%%'
2754_ACEOF
2755# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2756case `${MAKE-make} -f conftest.make 2>/dev/null` in
2757  *@@@%%%=?*=@@@%%%*)
2758    eval ac_cv_prog_make_${ac_make}_set=yes;;
2759  *)
2760    eval ac_cv_prog_make_${ac_make}_set=no;;
2761esac
2762rm -f conftest.make
2763fi
2764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766$as_echo "yes" >&6; }
2767  SET_MAKE=
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771  SET_MAKE="MAKE=${MAKE-make}"
2772fi
2773
2774rm -rf .tst 2>/dev/null
2775mkdir .tst 2>/dev/null
2776if test -d .tst; then
2777  am__leading_dot=.
2778else
2779  am__leading_dot=_
2780fi
2781rmdir .tst 2>/dev/null
2782
2783# Check whether --enable-silent-rules was given.
2784if test "${enable_silent_rules+set}" = set; then :
2785  enableval=$enable_silent_rules;
2786fi
2787
2788case $enable_silent_rules in # (((
2789  yes) AM_DEFAULT_VERBOSITY=0;;
2790   no) AM_DEFAULT_VERBOSITY=1;;
2791    *) AM_DEFAULT_VERBOSITY=1;;
2792esac
2793am_make=${MAKE-make}
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2795$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2796if ${am_cv_make_support_nested_variables+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if $as_echo 'TRUE=$(BAR$(V))
2800BAR0=false
2801BAR1=true
2802V=1
2803am__doit:
2804	@$(TRUE)
2805.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2806  am_cv_make_support_nested_variables=yes
2807else
2808  am_cv_make_support_nested_variables=no
2809fi
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2812$as_echo "$am_cv_make_support_nested_variables" >&6; }
2813if test $am_cv_make_support_nested_variables = yes; then
2814    AM_V='$(V)'
2815  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2816else
2817  AM_V=$AM_DEFAULT_VERBOSITY
2818  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2819fi
2820AM_BACKSLASH='\'
2821
2822if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824  # is not polluted with repeated "-I."
2825  am__isrc=' -I$(srcdir)'
2826  # test to see if srcdir already configured
2827  if test -f $srcdir/config.status; then
2828    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2829  fi
2830fi
2831
2832# test whether we have cygpath
2833if test -z "$CYGPATH_W"; then
2834  if (cygpath --version) >/dev/null 2>/dev/null; then
2835    CYGPATH_W='cygpath -w'
2836  else
2837    CYGPATH_W=echo
2838  fi
2839fi
2840
2841
2842# Define the identity of the package.
2843 PACKAGE='libpciaccess'
2844 VERSION='0.15'
2845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE "$PACKAGE"
2849_ACEOF
2850
2851
2852cat >>confdefs.h <<_ACEOF
2853#define VERSION "$VERSION"
2854_ACEOF
2855
2856# Some tools Automake needs.
2857
2858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2859
2860
2861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2862
2863
2864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2865
2866
2867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2868
2869
2870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871
2872# For better backward compatibility.  To be removed once Automake 1.9.x
2873# dies out for good.  For more background, see:
2874# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2875# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2876mkdir_p='$(MKDIR_P)'
2877
2878# We need awk for the "check" target (and possibly the TAP driver).  The
2879# system "awk" is bad on some platforms.
2880# Always define AMTAR for backward compatibility.  Yes, it's still used
2881# in the wild :-(  We should find a proper way to deprecate it ...
2882AMTAR='$${TAR-tar}'
2883
2884
2885# We'll loop over all known methods to create a tar archive until one works.
2886_am_tools='gnutar  pax cpio none'
2887
2888am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2889
2890
2891
2892
2893
2894
2895# POSIX will say in a future version that running "rm -f" with no argument
2896# is OK; and we want to be able to make that assumption in our Makefile
2897# recipes.  So use an aggressive probe to check that the usage we want is
2898# actually supported "in the wild" to an acceptable degree.
2899# See automake bug#10828.
2900# To make any issue more visible, cause the running configure to be aborted
2901# by default if the 'rm' program in use doesn't match our expectations; the
2902# user can still override this though.
2903if rm -f && rm -fr && rm -rf; then : OK; else
2904  cat >&2 <<'END'
2905Oops!
2906
2907Your 'rm' program seems unable to run without file operands specified
2908on the command line, even when the '-f' option is present.  This is contrary
2909to the behaviour of most rm programs out there, and not conforming with
2910the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2911
2912Please tell bug-automake@gnu.org about your system, including the value
2913of your $PATH and any error possibly output before this message.  This
2914can help us improve future automake versions.
2915
2916END
2917  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2918    echo 'Configuration will proceed anyway, since you have set the' >&2
2919    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2920    echo >&2
2921  else
2922    cat >&2 <<'END'
2923Aborting the configuration process, to ensure you take notice of the issue.
2924
2925You can download and install GNU coreutils to get an 'rm' implementation
2926that behaves properly: <https://www.gnu.org/software/coreutils/>.
2927
2928If you want to complete the configuration process using your problematic
2929'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2930to "yes", and re-run configure.
2931
2932END
2933    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2934  fi
2935fi
2936
2937DEPDIR="${am__leading_dot}deps"
2938
2939ac_config_commands="$ac_config_commands depfiles"
2940
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2942$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2943cat > confinc.mk << 'END'
2944am__doit:
2945	@echo this is the am__doit target >confinc.out
2946.PHONY: am__doit
2947END
2948am__include="#"
2949am__quote=
2950# BSD make does it like this.
2951echo '.include "confinc.mk" # ignored' > confmf.BSD
2952# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2953echo 'include confinc.mk # ignored' > confmf.GNU
2954_am_result=no
2955for s in GNU BSD; do
2956  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2957   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }
2961  case $?:`cat confinc.out 2>/dev/null` in #(
2962  '0:this is the am__doit target') :
2963    case $s in #(
2964  BSD) :
2965    am__include='.include' am__quote='"' ;; #(
2966  *) :
2967    am__include='include' am__quote='' ;;
2968esac ;; #(
2969  *) :
2970     ;;
2971esac
2972  if test "$am__include" != "#"; then
2973    _am_result="yes ($s style)"
2974    break
2975  fi
2976done
2977rm -f confinc.* confmf.*
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2979$as_echo "${_am_result}" >&6; }
2980
2981# Check whether --enable-dependency-tracking was given.
2982if test "${enable_dependency_tracking+set}" = set; then :
2983  enableval=$enable_dependency_tracking;
2984fi
2985
2986if test "x$enable_dependency_tracking" != xno; then
2987  am_depcomp="$ac_aux_dir/depcomp"
2988  AMDEPBACKSLASH='\'
2989  am__nodep='_no'
2990fi
2991 if test "x$enable_dependency_tracking" != xno; then
2992  AMDEP_TRUE=
2993  AMDEP_FALSE='#'
2994else
2995  AMDEP_TRUE='#'
2996  AMDEP_FALSE=
2997fi
2998
2999
3000ac_ext=c
3001ac_cpp='$CPP $CPPFLAGS'
3002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005if test -n "$ac_tool_prefix"; then
3006  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3007set dummy ${ac_tool_prefix}gcc; ac_word=$2
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009$as_echo_n "checking for $ac_word... " >&6; }
3010if ${ac_cv_prog_CC+:} false; then :
3011  $as_echo_n "(cached) " >&6
3012else
3013  if test -n "$CC"; then
3014  ac_cv_prog_CC="$CC" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019  IFS=$as_save_IFS
3020  test -z "$as_dir" && as_dir=.
3021    for ac_exec_ext in '' $ac_executable_extensions; do
3022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025    break 2
3026  fi
3027done
3028  done
3029IFS=$as_save_IFS
3030
3031fi
3032fi
3033CC=$ac_cv_prog_CC
3034if test -n "$CC"; then
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036$as_echo "$CC" >&6; }
3037else
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040fi
3041
3042
3043fi
3044if test -z "$ac_cv_prog_CC"; then
3045  ac_ct_CC=$CC
3046  # Extract the first word of "gcc", so it can be a program name with args.
3047set dummy gcc; ac_word=$2
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049$as_echo_n "checking for $ac_word... " >&6; }
3050if ${ac_cv_prog_ac_ct_CC+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  if test -n "$ac_ct_CC"; then
3054  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    for ac_exec_ext in '' $ac_executable_extensions; do
3062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063    ac_cv_prog_ac_ct_CC="gcc"
3064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068  done
3069IFS=$as_save_IFS
3070
3071fi
3072fi
3073ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074if test -n "$ac_ct_CC"; then
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076$as_echo "$ac_ct_CC" >&6; }
3077else
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080fi
3081
3082  if test "x$ac_ct_CC" = x; then
3083    CC=""
3084  else
3085    case $cross_compiling:$ac_tool_warned in
3086yes:)
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089ac_tool_warned=yes ;;
3090esac
3091    CC=$ac_ct_CC
3092  fi
3093else
3094  CC="$ac_cv_prog_CC"
3095fi
3096
3097if test -z "$CC"; then
3098          if test -n "$ac_tool_prefix"; then
3099    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3100set dummy ${ac_tool_prefix}cc; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_CC+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$CC"; then
3107  ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_CC="${ac_tool_prefix}cc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129$as_echo "$CC" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135
3136  fi
3137fi
3138if test -z "$CC"; then
3139  # Extract the first word of "cc", so it can be a program name with args.
3140set dummy cc; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_CC+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$CC"; then
3147  ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149  ac_prog_rejected=no
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158       ac_prog_rejected=yes
3159       continue
3160     fi
3161    ac_cv_prog_CC="cc"
3162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163    break 2
3164  fi
3165done
3166  done
3167IFS=$as_save_IFS
3168
3169if test $ac_prog_rejected = yes; then
3170  # We found a bogon in the path, so make sure we never use it.
3171  set dummy $ac_cv_prog_CC
3172  shift
3173  if test $# != 0; then
3174    # We chose a different compiler from the bogus one.
3175    # However, it has the same basename, so the bogon will be chosen
3176    # first if we set CC to just the basename; use the full file name.
3177    shift
3178    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179  fi
3180fi
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
3193fi
3194if test -z "$CC"; then
3195  if test -n "$ac_tool_prefix"; then
3196  for ac_prog in cl.exe
3197  do
3198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201$as_echo_n "checking for $ac_word... " >&6; }
3202if ${ac_cv_prog_CC+:} false; then :
3203  $as_echo_n "(cached) " >&6
3204else
3205  if test -n "$CC"; then
3206  ac_cv_prog_CC="$CC" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213    for ac_exec_ext in '' $ac_executable_extensions; do
3214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    break 2
3218  fi
3219done
3220  done
3221IFS=$as_save_IFS
3222
3223fi
3224fi
3225CC=$ac_cv_prog_CC
3226if test -n "$CC"; then
3227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228$as_echo "$CC" >&6; }
3229else
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232fi
3233
3234
3235    test -n "$CC" && break
3236  done
3237fi
3238if test -z "$CC"; then
3239  ac_ct_CC=$CC
3240  for ac_prog in cl.exe
3241do
3242  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243set dummy $ac_prog; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_ac_ct_CC+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$ac_ct_CC"; then
3250  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_ac_ct_CC="$ac_prog"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270if test -n "$ac_ct_CC"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3272$as_echo "$ac_ct_CC" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279  test -n "$ac_ct_CC" && break
3280done
3281
3282  if test "x$ac_ct_CC" = x; then
3283    CC=""
3284  else
3285    case $cross_compiling:$ac_tool_warned in
3286yes:)
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289ac_tool_warned=yes ;;
3290esac
3291    CC=$ac_ct_CC
3292  fi
3293fi
3294
3295fi
3296
3297
3298test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error $? "no acceptable C compiler found in \$PATH
3301See \`config.log' for more details" "$LINENO" 5; }
3302
3303# Provide some information about the compiler.
3304$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3305set X $ac_compile
3306ac_compiler=$2
3307for ac_option in --version -v -V -qversion; do
3308  { { ac_try="$ac_compiler $ac_option >&5"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3316  ac_status=$?
3317  if test -s conftest.err; then
3318    sed '10a\
3319... rest of stderr output deleted ...
3320         10q' conftest.err >conftest.er1
3321    cat conftest.er1 >&5
3322  fi
3323  rm -f conftest.er1 conftest.err
3324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }
3326done
3327
3328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h.  */
3330
3331int
3332main ()
3333{
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339ac_clean_files_save=$ac_clean_files
3340ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3341# Try to create an executable without -o first, disregard a.out.
3342# It will help us diagnose broken compilers, and finding out an intuition
3343# of exeext.
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3345$as_echo_n "checking whether the C compiler works... " >&6; }
3346ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3347
3348# The possible output files:
3349ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3350
3351ac_rmfiles=
3352for ac_file in $ac_files
3353do
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3356    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3357  esac
3358done
3359rm -f $ac_rmfiles
3360
3361if { { ac_try="$ac_link_default"
3362case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_link_default") 2>&5
3369  ac_status=$?
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }; then :
3372  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3373# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3374# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3375# so that the user can short-circuit this test for compilers unknown to
3376# Autoconf.
3377for ac_file in $ac_files ''
3378do
3379  test -f "$ac_file" || continue
3380  case $ac_file in
3381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3382	;;
3383    [ab].out )
3384	# We found the default executable, but exeext='' is most
3385	# certainly right.
3386	break;;
3387    *.* )
3388	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3389	then :; else
3390	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391	fi
3392	# We set ac_cv_exeext here because the later test for it is not
3393	# safe: cross compilers may not add the suffix if given an `-o'
3394	# argument, so we may need to know it at that point already.
3395	# Even if this section looks crufty: it has the advantage of
3396	# actually working.
3397	break;;
3398    * )
3399	break;;
3400  esac
3401done
3402test "$ac_cv_exeext" = no && ac_cv_exeext=
3403
3404else
3405  ac_file=''
3406fi
3407if test -z "$ac_file"; then :
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410$as_echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415as_fn_error 77 "C compiler cannot create executables
3416See \`config.log' for more details" "$LINENO" 5; }
3417else
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3419$as_echo "yes" >&6; }
3420fi
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3422$as_echo_n "checking for C compiler default output file name... " >&6; }
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3424$as_echo "$ac_file" >&6; }
3425ac_exeext=$ac_cv_exeext
3426
3427rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3428ac_clean_files=$ac_clean_files_save
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3430$as_echo_n "checking for suffix of executables... " >&6; }
3431if { { ac_try="$ac_link"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_link") 2>&5
3439  ac_status=$?
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }; then :
3442  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3444# work properly (i.e., refer to `conftest.exe'), while it won't with
3445# `rm'.
3446for ac_file in conftest.exe conftest conftest.*; do
3447  test -f "$ac_file" || continue
3448  case $ac_file in
3449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451	  break;;
3452    * ) break;;
3453  esac
3454done
3455else
3456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3459See \`config.log' for more details" "$LINENO" 5; }
3460fi
3461rm -f conftest conftest$ac_cv_exeext
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3463$as_echo "$ac_cv_exeext" >&6; }
3464
3465rm -f conftest.$ac_ext
3466EXEEXT=$ac_cv_exeext
3467ac_exeext=$EXEEXT
3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#include <stdio.h>
3471int
3472main ()
3473{
3474FILE *f = fopen ("conftest.out", "w");
3475 return ferror (f) || fclose (f) != 0;
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481ac_clean_files="$ac_clean_files conftest.out"
3482# Check that the compiler produces executables we can run.  If not, either
3483# the compiler is broken, or we cross compile.
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3485$as_echo_n "checking whether we are cross compiling... " >&6; }
3486if test "$cross_compiling" != yes; then
3487  { { ac_try="$ac_link"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494  (eval "$ac_link") 2>&5
3495  ac_status=$?
3496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497  test $ac_status = 0; }
3498  if { ac_try='./conftest$ac_cv_exeext'
3499  { { case "(($ac_try" in
3500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501  *) ac_try_echo=$ac_try;;
3502esac
3503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504$as_echo "$ac_try_echo"; } >&5
3505  (eval "$ac_try") 2>&5
3506  ac_status=$?
3507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508  test $ac_status = 0; }; }; then
3509    cross_compiling=no
3510  else
3511    if test "$cross_compiling" = maybe; then
3512	cross_compiling=yes
3513    else
3514	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error $? "cannot run C compiled programs.
3517If you meant to cross compile, use \`--host'.
3518See \`config.log' for more details" "$LINENO" 5; }
3519    fi
3520  fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3523$as_echo "$cross_compiling" >&6; }
3524
3525rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3526ac_clean_files=$ac_clean_files_save
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3528$as_echo_n "checking for suffix of object files... " >&6; }
3529if ${ac_cv_objext+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.o conftest.obj
3544if { { ac_try="$ac_compile"
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_compile") 2>&5
3552  ac_status=$?
3553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554  test $ac_status = 0; }; then :
3555  for ac_file in conftest.o conftest.obj conftest.*; do
3556  test -f "$ac_file" || continue;
3557  case $ac_file in
3558    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3559    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3560       break;;
3561  esac
3562done
3563else
3564  $as_echo "$as_me: failed program was:" >&5
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
3567{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error $? "cannot compute suffix of object files: cannot compile
3570See \`config.log' for more details" "$LINENO" 5; }
3571fi
3572rm -f conftest.$ac_cv_objext conftest.$ac_ext
3573fi
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3575$as_echo "$ac_cv_objext" >&6; }
3576OBJEXT=$ac_cv_objext
3577ac_objext=$OBJEXT
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3579$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3580if ${ac_cv_c_compiler_gnu+:} false; then :
3581  $as_echo_n "(cached) " >&6
3582else
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main ()
3588{
3589#ifndef __GNUC__
3590       choke me
3591#endif
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_compiler_gnu=yes
3599else
3600  ac_compiler_gnu=no
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603ac_cv_c_compiler_gnu=$ac_compiler_gnu
3604
3605fi
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3607$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3608if test $ac_compiler_gnu = yes; then
3609  GCC=yes
3610else
3611  GCC=
3612fi
3613ac_test_CFLAGS=${CFLAGS+set}
3614ac_save_CFLAGS=$CFLAGS
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3616$as_echo_n "checking whether $CC accepts -g... " >&6; }
3617if ${ac_cv_prog_cc_g+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  ac_save_c_werror_flag=$ac_c_werror_flag
3621   ac_c_werror_flag=yes
3622   ac_cv_prog_cc_g=no
3623   CFLAGS="-g"
3624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626
3627int
3628main ()
3629{
3630
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636  ac_cv_prog_cc_g=yes
3637else
3638  CFLAGS=""
3639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651
3652else
3653  ac_c_werror_flag=$ac_save_c_werror_flag
3654	 CFLAGS="-g"
3655	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666if ac_fn_c_try_compile "$LINENO"; then :
3667  ac_cv_prog_cc_g=yes
3668fi
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670fi
3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672fi
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674   ac_c_werror_flag=$ac_save_c_werror_flag
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3677$as_echo "$ac_cv_prog_cc_g" >&6; }
3678if test "$ac_test_CFLAGS" = set; then
3679  CFLAGS=$ac_save_CFLAGS
3680elif test $ac_cv_prog_cc_g = yes; then
3681  if test "$GCC" = yes; then
3682    CFLAGS="-g -O2"
3683  else
3684    CFLAGS="-g"
3685  fi
3686else
3687  if test "$GCC" = yes; then
3688    CFLAGS="-O2"
3689  else
3690    CFLAGS=
3691  fi
3692fi
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3694$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3695if ${ac_cv_prog_cc_c89+:} false; then :
3696  $as_echo_n "(cached) " >&6
3697else
3698  ac_cv_prog_cc_c89=no
3699ac_save_CC=$CC
3700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702#include <stdarg.h>
3703#include <stdio.h>
3704struct stat;
3705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3706struct buf { int x; };
3707FILE * (*rcsopen) (struct buf *, struct stat *, int);
3708static char *e (p, i)
3709     char **p;
3710     int i;
3711{
3712  return p[i];
3713}
3714static char *f (char * (*g) (char **, int), char **p, ...)
3715{
3716  char *s;
3717  va_list v;
3718  va_start (v,p);
3719  s = g (p, va_arg (v,int));
3720  va_end (v);
3721  return s;
3722}
3723
3724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3725   function prototypes and stuff, but not '\xHH' hex character constants.
3726   These don't provoke an error unfortunately, instead are silently treated
3727   as 'x'.  The following induces an error, until -std is added to get
3728   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3729   array size at least.  It's necessary to write '\x00'==0 to get something
3730   that's true only with -std.  */
3731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3732
3733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3734   inside strings and character constants.  */
3735#define FOO(x) 'x'
3736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3737
3738int test (int i, double x);
3739struct s1 {int (*f) (int a);};
3740struct s2 {int (*f) (double a);};
3741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742int argc;
3743char **argv;
3744int
3745main ()
3746{
3747return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3753	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754do
3755  CC="$ac_save_CC $ac_arg"
3756  if ac_fn_c_try_compile "$LINENO"; then :
3757  ac_cv_prog_cc_c89=$ac_arg
3758fi
3759rm -f core conftest.err conftest.$ac_objext
3760  test "x$ac_cv_prog_cc_c89" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c89" in
3768  x)
3769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771  xno)
3772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774  *)
3775    CC="$CC $ac_cv_prog_cc_c89"
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778esac
3779if test "x$ac_cv_prog_cc_c89" != xno; then :
3780
3781fi
3782
3783ac_ext=c
3784ac_cpp='$CPP $CPPFLAGS'
3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789ac_ext=c
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3795$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3796if ${am_cv_prog_cc_c_o+:} false; then :
3797  $as_echo_n "(cached) " >&6
3798else
3799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801
3802int
3803main ()
3804{
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810  # Make sure it works both with $CC and with simple cc.
3811  # Following AC_PROG_CC_C_O, we do the test twice because some
3812  # compilers refuse to overwrite an existing .o file with -o,
3813  # though they will create one.
3814  am_cv_prog_cc_c_o=yes
3815  for am_i in 1 2; do
3816    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3817   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } \
3821         && test -f conftest2.$ac_objext; then
3822      : OK
3823    else
3824      am_cv_prog_cc_c_o=no
3825      break
3826    fi
3827  done
3828  rm -f core conftest*
3829  unset am_i
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3832$as_echo "$am_cv_prog_cc_c_o" >&6; }
3833if test "$am_cv_prog_cc_c_o" != yes; then
3834   # Losing compiler, so override with the script.
3835   # FIXME: It is wrong to rewrite CC.
3836   # But if we don't then we get into trouble of one sort or another.
3837   # A longer-term fix would be to have automake use am__CC in this case,
3838   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3839   CC="$am_aux_dir/compile $CC"
3840fi
3841ac_ext=c
3842ac_cpp='$CPP $CPPFLAGS'
3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847
3848depcc="$CC"   am_compiler_list=
3849
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3851$as_echo_n "checking dependency style of $depcc... " >&6; }
3852if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3853  $as_echo_n "(cached) " >&6
3854else
3855  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3856  # We make a subdir and do the tests there.  Otherwise we can end up
3857  # making bogus files that we don't know about and never remove.  For
3858  # instance it was reported that on HP-UX the gcc test will end up
3859  # making a dummy file named 'D' -- because '-MD' means "put the output
3860  # in D".
3861  rm -rf conftest.dir
3862  mkdir conftest.dir
3863  # Copy depcomp to subdir because otherwise we won't find it if we're
3864  # using a relative directory.
3865  cp "$am_depcomp" conftest.dir
3866  cd conftest.dir
3867  # We will build objects and dependencies in a subdirectory because
3868  # it helps to detect inapplicable dependency modes.  For instance
3869  # both Tru64's cc and ICC support -MD to output dependencies as a
3870  # side effect of compilation, but ICC will put the dependencies in
3871  # the current directory while Tru64 will put them in the object
3872  # directory.
3873  mkdir sub
3874
3875  am_cv_CC_dependencies_compiler_type=none
3876  if test "$am_compiler_list" = ""; then
3877     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878  fi
3879  am__universal=false
3880  case " $depcc " in #(
3881     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3882     esac
3883
3884  for depmode in $am_compiler_list; do
3885    # Setup a source with many dependencies, because some compilers
3886    # like to wrap large dependency lists on column 80 (with \), and
3887    # we should not choose a depcomp mode which is confused by this.
3888    #
3889    # We need to recreate these files for each test, as the compiler may
3890    # overwrite some of them when testing with obscure command lines.
3891    # This happens at least with the AIX C compiler.
3892    : > sub/conftest.c
3893    for i in 1 2 3 4 5 6; do
3894      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3895      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3896      # Solaris 10 /bin/sh.
3897      echo '/* dummy */' > sub/conftst$i.h
3898    done
3899    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3900
3901    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3902    # mode.  It turns out that the SunPro C++ compiler does not properly
3903    # handle '-M -o', and we need to detect this.  Also, some Intel
3904    # versions had trouble with output in subdirs.
3905    am__obj=sub/conftest.${OBJEXT-o}
3906    am__minus_obj="-o $am__obj"
3907    case $depmode in
3908    gcc)
3909      # This depmode causes a compiler race in universal mode.
3910      test "$am__universal" = false || continue
3911      ;;
3912    nosideeffect)
3913      # After this tag, mechanisms are not by side-effect, so they'll
3914      # only be used when explicitly requested.
3915      if test "x$enable_dependency_tracking" = xyes; then
3916	continue
3917      else
3918	break
3919      fi
3920      ;;
3921    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3922      # This compiler won't grok '-c -o', but also, the minuso test has
3923      # not run yet.  These depmodes are late enough in the game, and
3924      # so weak that their functioning should not be impacted.
3925      am__obj=conftest.${OBJEXT-o}
3926      am__minus_obj=
3927      ;;
3928    none) break ;;
3929    esac
3930    if depmode=$depmode \
3931       source=sub/conftest.c object=$am__obj \
3932       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3933       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3934         >/dev/null 2>conftest.err &&
3935       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3936       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3937       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3938       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3939      # icc doesn't choke on unknown options, it will just issue warnings
3940      # or remarks (even with -Werror).  So we grep stderr for any message
3941      # that says an option was ignored or not supported.
3942      # When given -MP, icc 7.0 and 7.1 complain thusly:
3943      #   icc: Command line warning: ignoring option '-M'; no argument required
3944      # The diagnosis changed in icc 8.0:
3945      #   icc: Command line remark: option '-MP' not supported
3946      if (grep 'ignoring option' conftest.err ||
3947          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3948        am_cv_CC_dependencies_compiler_type=$depmode
3949        break
3950      fi
3951    fi
3952  done
3953
3954  cd ..
3955  rm -rf conftest.dir
3956else
3957  am_cv_CC_dependencies_compiler_type=none
3958fi
3959
3960fi
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3964
3965 if
3966  test "x$enable_dependency_tracking" != xno \
3967  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3968  am__fastdepCC_TRUE=
3969  am__fastdepCC_FALSE='#'
3970else
3971  am__fastdepCC_TRUE='#'
3972  am__fastdepCC_FALSE=
3973fi
3974
3975
3976
3977ac_ext=c
3978ac_cpp='$CPP $CPPFLAGS'
3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3983$as_echo_n "checking how to run the C preprocessor... " >&6; }
3984# On Suns, sometimes $CPP names a directory.
3985if test -n "$CPP" && test -d "$CPP"; then
3986  CPP=
3987fi
3988if test -z "$CPP"; then
3989  if ${ac_cv_prog_CPP+:} false; then :
3990  $as_echo_n "(cached) " >&6
3991else
3992      # Double quotes because CPP needs to be expanded
3993    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3994    do
3995      ac_preproc_ok=false
3996for ac_c_preproc_warn_flag in '' yes
3997do
3998  # Use a header file that comes with gcc, so configuring glibc
3999  # with a fresh cross-compiler works.
4000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001  # <limits.h> exists even on freestanding compilers.
4002  # On the NeXT, cc -E runs the code through the compiler's parser,
4003  # not just through cpp. "Syntax error" is here to catch this case.
4004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006#ifdef __STDC__
4007# include <limits.h>
4008#else
4009# include <assert.h>
4010#endif
4011		     Syntax error
4012_ACEOF
4013if ac_fn_c_try_cpp "$LINENO"; then :
4014
4015else
4016  # Broken: fails on valid input.
4017continue
4018fi
4019rm -f conftest.err conftest.i conftest.$ac_ext
4020
4021  # OK, works on sane cases.  Now check whether nonexistent headers
4022  # can be detected and how.
4023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h.  */
4025#include <ac_nonexistent.h>
4026_ACEOF
4027if ac_fn_c_try_cpp "$LINENO"; then :
4028  # Broken: success on invalid input.
4029continue
4030else
4031  # Passes both tests.
4032ac_preproc_ok=:
4033break
4034fi
4035rm -f conftest.err conftest.i conftest.$ac_ext
4036
4037done
4038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039rm -f conftest.i conftest.err conftest.$ac_ext
4040if $ac_preproc_ok; then :
4041  break
4042fi
4043
4044    done
4045    ac_cv_prog_CPP=$CPP
4046
4047fi
4048  CPP=$ac_cv_prog_CPP
4049else
4050  ac_cv_prog_CPP=$CPP
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4053$as_echo "$CPP" >&6; }
4054ac_preproc_ok=false
4055for ac_c_preproc_warn_flag in '' yes
4056do
4057  # Use a header file that comes with gcc, so configuring glibc
4058  # with a fresh cross-compiler works.
4059  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060  # <limits.h> exists even on freestanding compilers.
4061  # On the NeXT, cc -E runs the code through the compiler's parser,
4062  # not just through cpp. "Syntax error" is here to catch this case.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#ifdef __STDC__
4066# include <limits.h>
4067#else
4068# include <assert.h>
4069#endif
4070		     Syntax error
4071_ACEOF
4072if ac_fn_c_try_cpp "$LINENO"; then :
4073
4074else
4075  # Broken: fails on valid input.
4076continue
4077fi
4078rm -f conftest.err conftest.i conftest.$ac_ext
4079
4080  # OK, works on sane cases.  Now check whether nonexistent headers
4081  # can be detected and how.
4082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h.  */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if ac_fn_c_try_cpp "$LINENO"; then :
4087  # Broken: success on invalid input.
4088continue
4089else
4090  # Passes both tests.
4091ac_preproc_ok=:
4092break
4093fi
4094rm -f conftest.err conftest.i conftest.$ac_ext
4095
4096done
4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098rm -f conftest.i conftest.err conftest.$ac_ext
4099if $ac_preproc_ok; then :
4100
4101else
4102  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4105See \`config.log' for more details" "$LINENO" 5; }
4106fi
4107
4108ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4116$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4117if ${ac_cv_path_GREP+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  if test -z "$GREP"; then
4121  ac_path_GREP_found=false
4122  # Loop through the user's path and test for each of PROGNAME-LIST
4123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128    for ac_prog in grep ggrep; do
4129    for ac_exec_ext in '' $ac_executable_extensions; do
4130      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4131      as_fn_executable_p "$ac_path_GREP" || continue
4132# Check for GNU ac_path_GREP and select it if it is found.
4133  # Check for GNU $ac_path_GREP
4134case `"$ac_path_GREP" --version 2>&1` in
4135*GNU*)
4136  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4137*)
4138  ac_count=0
4139  $as_echo_n 0123456789 >"conftest.in"
4140  while :
4141  do
4142    cat "conftest.in" "conftest.in" >"conftest.tmp"
4143    mv "conftest.tmp" "conftest.in"
4144    cp "conftest.in" "conftest.nl"
4145    $as_echo 'GREP' >> "conftest.nl"
4146    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148    as_fn_arith $ac_count + 1 && ac_count=$as_val
4149    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4150      # Best one so far, save it but keep looking for a better one
4151      ac_cv_path_GREP="$ac_path_GREP"
4152      ac_path_GREP_max=$ac_count
4153    fi
4154    # 10*(2^10) chars as input seems more than enough
4155    test $ac_count -gt 10 && break
4156  done
4157  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158esac
4159
4160      $ac_path_GREP_found && break 3
4161    done
4162  done
4163  done
4164IFS=$as_save_IFS
4165  if test -z "$ac_cv_path_GREP"; then
4166    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167  fi
4168else
4169  ac_cv_path_GREP=$GREP
4170fi
4171
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4174$as_echo "$ac_cv_path_GREP" >&6; }
4175 GREP="$ac_cv_path_GREP"
4176
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4179$as_echo_n "checking for egrep... " >&6; }
4180if ${ac_cv_path_EGREP+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4184   then ac_cv_path_EGREP="$GREP -E"
4185   else
4186     if test -z "$EGREP"; then
4187  ac_path_EGREP_found=false
4188  # Loop through the user's path and test for each of PROGNAME-LIST
4189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194    for ac_prog in egrep; do
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4197      as_fn_executable_p "$ac_path_EGREP" || continue
4198# Check for GNU ac_path_EGREP and select it if it is found.
4199  # Check for GNU $ac_path_EGREP
4200case `"$ac_path_EGREP" --version 2>&1` in
4201*GNU*)
4202  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4203*)
4204  ac_count=0
4205  $as_echo_n 0123456789 >"conftest.in"
4206  while :
4207  do
4208    cat "conftest.in" "conftest.in" >"conftest.tmp"
4209    mv "conftest.tmp" "conftest.in"
4210    cp "conftest.in" "conftest.nl"
4211    $as_echo 'EGREP' >> "conftest.nl"
4212    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214    as_fn_arith $ac_count + 1 && ac_count=$as_val
4215    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4216      # Best one so far, save it but keep looking for a better one
4217      ac_cv_path_EGREP="$ac_path_EGREP"
4218      ac_path_EGREP_max=$ac_count
4219    fi
4220    # 10*(2^10) chars as input seems more than enough
4221    test $ac_count -gt 10 && break
4222  done
4223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224esac
4225
4226      $ac_path_EGREP_found && break 3
4227    done
4228  done
4229  done
4230IFS=$as_save_IFS
4231  if test -z "$ac_cv_path_EGREP"; then
4232    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4233  fi
4234else
4235  ac_cv_path_EGREP=$EGREP
4236fi
4237
4238   fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4241$as_echo "$ac_cv_path_EGREP" >&6; }
4242 EGREP="$ac_cv_path_EGREP"
4243
4244
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4246$as_echo_n "checking for ANSI C header files... " >&6; }
4247if ${ac_cv_header_stdc+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252#include <stdlib.h>
4253#include <stdarg.h>
4254#include <string.h>
4255#include <float.h>
4256
4257int
4258main ()
4259{
4260
4261  ;
4262  return 0;
4263}
4264_ACEOF
4265if ac_fn_c_try_compile "$LINENO"; then :
4266  ac_cv_header_stdc=yes
4267else
4268  ac_cv_header_stdc=no
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271
4272if test $ac_cv_header_stdc = yes; then
4273  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#include <string.h>
4277
4278_ACEOF
4279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280  $EGREP "memchr" >/dev/null 2>&1; then :
4281
4282else
4283  ac_cv_header_stdc=no
4284fi
4285rm -f conftest*
4286
4287fi
4288
4289if test $ac_cv_header_stdc = yes; then
4290  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h.  */
4293#include <stdlib.h>
4294
4295_ACEOF
4296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4297  $EGREP "free" >/dev/null 2>&1; then :
4298
4299else
4300  ac_cv_header_stdc=no
4301fi
4302rm -f conftest*
4303
4304fi
4305
4306if test $ac_cv_header_stdc = yes; then
4307  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4308  if test "$cross_compiling" = yes; then :
4309  :
4310else
4311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312/* end confdefs.h.  */
4313#include <ctype.h>
4314#include <stdlib.h>
4315#if ((' ' & 0x0FF) == 0x020)
4316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4318#else
4319# define ISLOWER(c) \
4320		   (('a' <= (c) && (c) <= 'i') \
4321		     || ('j' <= (c) && (c) <= 'r') \
4322		     || ('s' <= (c) && (c) <= 'z'))
4323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4324#endif
4325
4326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327int
4328main ()
4329{
4330  int i;
4331  for (i = 0; i < 256; i++)
4332    if (XOR (islower (i), ISLOWER (i))
4333	|| toupper (i) != TOUPPER (i))
4334      return 2;
4335  return 0;
4336}
4337_ACEOF
4338if ac_fn_c_try_run "$LINENO"; then :
4339
4340else
4341  ac_cv_header_stdc=no
4342fi
4343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4344  conftest.$ac_objext conftest.beam conftest.$ac_ext
4345fi
4346
4347fi
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4350$as_echo "$ac_cv_header_stdc" >&6; }
4351if test $ac_cv_header_stdc = yes; then
4352
4353$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4354
4355fi
4356
4357# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359		  inttypes.h stdint.h unistd.h
4360do :
4361  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4363"
4364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4365  cat >>confdefs.h <<_ACEOF
4366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367_ACEOF
4368
4369fi
4370
4371done
4372
4373
4374
4375  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4376if test "x$ac_cv_header_minix_config_h" = xyes; then :
4377  MINIX=yes
4378else
4379  MINIX=
4380fi
4381
4382
4383  if test "$MINIX" = yes; then
4384
4385$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4386
4387
4388$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4389
4390
4391$as_echo "#define _MINIX 1" >>confdefs.h
4392
4393  fi
4394
4395
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4397$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4398if ${ac_cv_safe_to_define___extensions__+:} false; then :
4399  $as_echo_n "(cached) " >&6
4400else
4401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402/* end confdefs.h.  */
4403
4404#         define __EXTENSIONS__ 1
4405          $ac_includes_default
4406int
4407main ()
4408{
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  ac_cv_safe_to_define___extensions__=yes
4416else
4417  ac_cv_safe_to_define___extensions__=no
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4422$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4423  test $ac_cv_safe_to_define___extensions__ = yes &&
4424    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4425
4426  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4427
4428  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4429
4430  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4431
4432  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4433
4434
4435
4436# Initialize libtool
4437case `pwd` in
4438  *\ * | *\	*)
4439    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4441esac
4442
4443
4444
4445macro_version='2.4.6'
4446macro_revision='2.4.6'
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460ltmain=$ac_aux_dir/ltmain.sh
4461
4462# Make sure we can run config.sub.
4463$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467$as_echo_n "checking build system type... " >&6; }
4468if ${ac_cv_build+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  ac_build_alias=$build_alias
4472test "x$ac_build_alias" = x &&
4473  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474test "x$ac_build_alias" = x &&
4475  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4478
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481$as_echo "$ac_cv_build" >&6; }
4482case $ac_cv_build in
4483*-*-*) ;;
4484*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4485esac
4486build=$ac_cv_build
4487ac_save_IFS=$IFS; IFS='-'
4488set x $ac_cv_build
4489shift
4490build_cpu=$1
4491build_vendor=$2
4492shift; shift
4493# Remember, the first character of IFS is used to create $*,
4494# except with old shells:
4495build_os=$*
4496IFS=$ac_save_IFS
4497case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4498
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501$as_echo_n "checking host system type... " >&6; }
4502if ${ac_cv_host+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  if test "x$host_alias" = x; then
4506  ac_cv_host=$ac_cv_build
4507else
4508  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4510fi
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514$as_echo "$ac_cv_host" >&6; }
4515case $ac_cv_host in
4516*-*-*) ;;
4517*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4518esac
4519host=$ac_cv_host
4520ac_save_IFS=$IFS; IFS='-'
4521set x $ac_cv_host
4522shift
4523host_cpu=$1
4524host_vendor=$2
4525shift; shift
4526# Remember, the first character of IFS is used to create $*,
4527# except with old shells:
4528host_os=$*
4529IFS=$ac_save_IFS
4530case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4531
4532
4533# Backslashify metacharacters that are still active within
4534# double-quoted strings.
4535sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4536
4537# Same as above, but do not quote variable references.
4538double_quote_subst='s/\(["`\\]\)/\\\1/g'
4539
4540# Sed substitution to delay expansion of an escaped shell variable in a
4541# double_quote_subst'ed string.
4542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4543
4544# Sed substitution to delay expansion of an escaped single quote.
4545delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4546
4547# Sed substitution to avoid accidental globbing in evaled expressions
4548no_glob_subst='s/\*/\\\*/g'
4549
4550ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4551ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4555$as_echo_n "checking how to print strings... " >&6; }
4556# Test print first, because it will be a builtin if present.
4557if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4558   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4559  ECHO='print -r --'
4560elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4561  ECHO='printf %s\n'
4562else
4563  # Use this function as a fallback that always works.
4564  func_fallback_echo ()
4565  {
4566    eval 'cat <<_LTECHO_EOF
4567$1
4568_LTECHO_EOF'
4569  }
4570  ECHO='func_fallback_echo'
4571fi
4572
4573# func_echo_all arg...
4574# Invoke $ECHO with all args, space-separated.
4575func_echo_all ()
4576{
4577    $ECHO ""
4578}
4579
4580case $ECHO in
4581  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4582$as_echo "printf" >&6; } ;;
4583  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4584$as_echo "print -r" >&6; } ;;
4585  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4586$as_echo "cat" >&6; } ;;
4587esac
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4603$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4604if ${ac_cv_path_SED+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4608     for ac_i in 1 2 3 4 5 6 7; do
4609       ac_script="$ac_script$as_nl$ac_script"
4610     done
4611     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4612     { ac_script=; unset ac_script;}
4613     if test -z "$SED"; then
4614  ac_path_SED_found=false
4615  # Loop through the user's path and test for each of PROGNAME-LIST
4616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_prog in sed gsed; do
4622    for ac_exec_ext in '' $ac_executable_extensions; do
4623      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4624      as_fn_executable_p "$ac_path_SED" || continue
4625# Check for GNU ac_path_SED and select it if it is found.
4626  # Check for GNU $ac_path_SED
4627case `"$ac_path_SED" --version 2>&1` in
4628*GNU*)
4629  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4630*)
4631  ac_count=0
4632  $as_echo_n 0123456789 >"conftest.in"
4633  while :
4634  do
4635    cat "conftest.in" "conftest.in" >"conftest.tmp"
4636    mv "conftest.tmp" "conftest.in"
4637    cp "conftest.in" "conftest.nl"
4638    $as_echo '' >> "conftest.nl"
4639    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641    as_fn_arith $ac_count + 1 && ac_count=$as_val
4642    if test $ac_count -gt ${ac_path_SED_max-0}; then
4643      # Best one so far, save it but keep looking for a better one
4644      ac_cv_path_SED="$ac_path_SED"
4645      ac_path_SED_max=$ac_count
4646    fi
4647    # 10*(2^10) chars as input seems more than enough
4648    test $ac_count -gt 10 && break
4649  done
4650  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
4652
4653      $ac_path_SED_found && break 3
4654    done
4655  done
4656  done
4657IFS=$as_save_IFS
4658  if test -z "$ac_cv_path_SED"; then
4659    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4660  fi
4661else
4662  ac_cv_path_SED=$SED
4663fi
4664
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4667$as_echo "$ac_cv_path_SED" >&6; }
4668 SED="$ac_cv_path_SED"
4669  rm -f conftest.sed
4670
4671test -z "$SED" && SED=sed
4672Xsed="$SED -e 1s/^X//"
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4685$as_echo_n "checking for fgrep... " >&6; }
4686if ${ac_cv_path_FGREP+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4690   then ac_cv_path_FGREP="$GREP -F"
4691   else
4692     if test -z "$FGREP"; then
4693  ac_path_FGREP_found=false
4694  # Loop through the user's path and test for each of PROGNAME-LIST
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700    for ac_prog in fgrep; do
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4703      as_fn_executable_p "$ac_path_FGREP" || continue
4704# Check for GNU ac_path_FGREP and select it if it is found.
4705  # Check for GNU $ac_path_FGREP
4706case `"$ac_path_FGREP" --version 2>&1` in
4707*GNU*)
4708  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4709*)
4710  ac_count=0
4711  $as_echo_n 0123456789 >"conftest.in"
4712  while :
4713  do
4714    cat "conftest.in" "conftest.in" >"conftest.tmp"
4715    mv "conftest.tmp" "conftest.in"
4716    cp "conftest.in" "conftest.nl"
4717    $as_echo 'FGREP' >> "conftest.nl"
4718    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720    as_fn_arith $ac_count + 1 && ac_count=$as_val
4721    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4722      # Best one so far, save it but keep looking for a better one
4723      ac_cv_path_FGREP="$ac_path_FGREP"
4724      ac_path_FGREP_max=$ac_count
4725    fi
4726    # 10*(2^10) chars as input seems more than enough
4727    test $ac_count -gt 10 && break
4728  done
4729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732      $ac_path_FGREP_found && break 3
4733    done
4734  done
4735  done
4736IFS=$as_save_IFS
4737  if test -z "$ac_cv_path_FGREP"; then
4738    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739  fi
4740else
4741  ac_cv_path_FGREP=$FGREP
4742fi
4743
4744   fi
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4747$as_echo "$ac_cv_path_FGREP" >&6; }
4748 FGREP="$ac_cv_path_FGREP"
4749
4750
4751test -z "$GREP" && GREP=grep
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4774else
4775  with_gnu_ld=no
4776fi
4777
4778ac_prog=ld
4779if test yes = "$GCC"; then
4780  # Check if gcc -print-prog-name=ld gives a path.
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
4783  case $host in
4784  *-*-mingw*)
4785    # gcc leaves a trailing carriage return, which upsets mingw
4786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787  *)
4788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789  esac
4790  case $ac_prog in
4791    # Accept absolute paths.
4792    [\\/]* | ?:[\\/]*)
4793      re_direlt='/[^/][^/]*/\.\./'
4794      # Canonicalize the pathname of ld
4795      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4798      done
4799      test -z "$LD" && LD=$ac_prog
4800      ;;
4801  "")
4802    # If it fails, then pretend we aren't using GCC.
4803    ac_prog=ld
4804    ;;
4805  *)
4806    # If it is relative, then search for the first ld in PATH.
4807    with_gnu_ld=unknown
4808    ;;
4809  esac
4810elif test yes = "$with_gnu_ld"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
4816fi
4817if ${lt_cv_path_LD+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$LD"; then
4821  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4822  for ac_dir in $PATH; do
4823    IFS=$lt_save_ifs
4824    test -z "$ac_dir" && ac_dir=.
4825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4826      lt_cv_path_LD=$ac_dir/$ac_prog
4827      # Check to see if the program is GNU ld.  I'd rather use --version,
4828      # but apparently some variants of GNU ld only accept -v.
4829      # Break only if it was the GNU/non-GNU ld that we prefer.
4830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831      *GNU* | *'with BFD'*)
4832	test no != "$with_gnu_ld" && break
4833	;;
4834      *)
4835	test yes != "$with_gnu_ld" && break
4836	;;
4837      esac
4838    fi
4839  done
4840  IFS=$lt_save_ifs
4841else
4842  lt_cv_path_LD=$LD # Let the user override the test with a path.
4843fi
4844fi
4845
4846LD=$lt_cv_path_LD
4847if test -n "$LD"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if ${lt_cv_prog_gnu_ld+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
4863  lt_cv_prog_gnu_ld=yes
4864  ;;
4865*)
4866  lt_cv_prog_gnu_ld=no
4867  ;;
4868esac
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4872with_gnu_ld=$lt_cv_prog_gnu_ld
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4884if ${lt_cv_path_NM+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -n "$NM"; then
4888  # Let the user override the test.
4889  lt_cv_path_NM=$NM
4890else
4891  lt_nm_to_check=${ac_tool_prefix}nm
4892  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4893    lt_nm_to_check="$lt_nm_to_check nm"
4894  fi
4895  for lt_tmp_nm in $lt_nm_to_check; do
4896    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4897    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4898      IFS=$lt_save_ifs
4899      test -z "$ac_dir" && ac_dir=.
4900      tmp_nm=$ac_dir/$lt_tmp_nm
4901      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4902	# Check to see if the nm accepts a BSD-compat flag.
4903	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4904	#   nm: unknown option "B" ignored
4905	# Tru64's nm complains that /dev/null is an invalid object file
4906	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4907	case $build_os in
4908	mingw*) lt_bad_file=conftest.nm/nofile ;;
4909	*) lt_bad_file=/dev/null ;;
4910	esac
4911	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4912	*$lt_bad_file* | *'Invalid file or object type'*)
4913	  lt_cv_path_NM="$tmp_nm -B"
4914	  break 2
4915	  ;;
4916	*)
4917	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4918	  */dev/null*)
4919	    lt_cv_path_NM="$tmp_nm -p"
4920	    break 2
4921	    ;;
4922	  *)
4923	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4924	    continue # so that we can try to find one that supports BSD flags
4925	    ;;
4926	  esac
4927	  ;;
4928	esac
4929      fi
4930    done
4931    IFS=$lt_save_ifs
4932  done
4933  : ${lt_cv_path_NM=no}
4934fi
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4937$as_echo "$lt_cv_path_NM" >&6; }
4938if test no != "$lt_cv_path_NM"; then
4939  NM=$lt_cv_path_NM
4940else
4941  # Didn't find any BSD compatible name lister, look for dumpbin.
4942  if test -n "$DUMPBIN"; then :
4943    # Let the user override the test.
4944  else
4945    if test -n "$ac_tool_prefix"; then
4946  for ac_prog in dumpbin "link -dump"
4947  do
4948    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951$as_echo_n "checking for $ac_word... " >&6; }
4952if ${ac_cv_prog_DUMPBIN+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test -n "$DUMPBIN"; then
4956  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4957else
4958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961  IFS=$as_save_IFS
4962  test -z "$as_dir" && as_dir=.
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967    break 2
4968  fi
4969done
4970  done
4971IFS=$as_save_IFS
4972
4973fi
4974fi
4975DUMPBIN=$ac_cv_prog_DUMPBIN
4976if test -n "$DUMPBIN"; then
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4978$as_echo "$DUMPBIN" >&6; }
4979else
4980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981$as_echo "no" >&6; }
4982fi
4983
4984
4985    test -n "$DUMPBIN" && break
4986  done
4987fi
4988if test -z "$DUMPBIN"; then
4989  ac_ct_DUMPBIN=$DUMPBIN
4990  for ac_prog in dumpbin "link -dump"
4991do
4992  # Extract the first word of "$ac_prog", so it can be a program name with args.
4993set dummy $ac_prog; ac_word=$2
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995$as_echo_n "checking for $ac_word... " >&6; }
4996if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if test -n "$ac_ct_DUMPBIN"; then
5000  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007    for ac_exec_ext in '' $ac_executable_extensions; do
5008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011    break 2
5012  fi
5013done
5014  done
5015IFS=$as_save_IFS
5016
5017fi
5018fi
5019ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5020if test -n "$ac_ct_DUMPBIN"; then
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5022$as_echo "$ac_ct_DUMPBIN" >&6; }
5023else
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025$as_echo "no" >&6; }
5026fi
5027
5028
5029  test -n "$ac_ct_DUMPBIN" && break
5030done
5031
5032  if test "x$ac_ct_DUMPBIN" = x; then
5033    DUMPBIN=":"
5034  else
5035    case $cross_compiling:$ac_tool_warned in
5036yes:)
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039ac_tool_warned=yes ;;
5040esac
5041    DUMPBIN=$ac_ct_DUMPBIN
5042  fi
5043fi
5044
5045    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5046    *COFF*)
5047      DUMPBIN="$DUMPBIN -symbols -headers"
5048      ;;
5049    *)
5050      DUMPBIN=:
5051      ;;
5052    esac
5053  fi
5054
5055  if test : != "$DUMPBIN"; then
5056    NM=$DUMPBIN
5057  fi
5058fi
5059test -z "$NM" && NM=nm
5060
5061
5062
5063
5064
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5067$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5068if ${lt_cv_nm_interface+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  lt_cv_nm_interface="BSD nm"
5072  echo "int some_variable = 0;" > conftest.$ac_ext
5073  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5074  (eval "$ac_compile" 2>conftest.err)
5075  cat conftest.err >&5
5076  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5077  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5078  cat conftest.err >&5
5079  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5080  cat conftest.out >&5
5081  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5082    lt_cv_nm_interface="MS dumpbin"
5083  fi
5084  rm -f conftest*
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5087$as_echo "$lt_cv_nm_interface" >&6; }
5088
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5090$as_echo_n "checking whether ln -s works... " >&6; }
5091LN_S=$as_ln_s
5092if test "$LN_S" = "ln -s"; then
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094$as_echo "yes" >&6; }
5095else
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5097$as_echo "no, using $LN_S" >&6; }
5098fi
5099
5100# find the maximum length of command line arguments
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5102$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5103if ${lt_cv_sys_max_cmd_len+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106    i=0
5107  teststring=ABCD
5108
5109  case $build_os in
5110  msdosdjgpp*)
5111    # On DJGPP, this test can blow up pretty badly due to problems in libc
5112    # (any single argument exceeding 2000 bytes causes a buffer overrun
5113    # during glob expansion).  Even if it were fixed, the result of this
5114    # check would be larger than it should be.
5115    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5116    ;;
5117
5118  gnu*)
5119    # Under GNU Hurd, this test is not required because there is
5120    # no limit to the length of command line arguments.
5121    # Libtool will interpret -1 as no limit whatsoever
5122    lt_cv_sys_max_cmd_len=-1;
5123    ;;
5124
5125  cygwin* | mingw* | cegcc*)
5126    # On Win9x/ME, this test blows up -- it succeeds, but takes
5127    # about 5 minutes as the teststring grows exponentially.
5128    # Worse, since 9x/ME are not pre-emptively multitasking,
5129    # you end up with a "frozen" computer, even though with patience
5130    # the test eventually succeeds (with a max line length of 256k).
5131    # Instead, let's just punt: use the minimum linelength reported by
5132    # all of the supported platforms: 8192 (on NT/2K/XP).
5133    lt_cv_sys_max_cmd_len=8192;
5134    ;;
5135
5136  mint*)
5137    # On MiNT this can take a long time and run out of memory.
5138    lt_cv_sys_max_cmd_len=8192;
5139    ;;
5140
5141  amigaos*)
5142    # On AmigaOS with pdksh, this test takes hours, literally.
5143    # So we just punt and use a minimum line length of 8192.
5144    lt_cv_sys_max_cmd_len=8192;
5145    ;;
5146
5147  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5148    # This has been around since 386BSD, at least.  Likely further.
5149    if test -x /sbin/sysctl; then
5150      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5151    elif test -x /usr/sbin/sysctl; then
5152      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5153    else
5154      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5155    fi
5156    # And add a safety zone
5157    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5158    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5159    ;;
5160
5161  interix*)
5162    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5163    lt_cv_sys_max_cmd_len=196608
5164    ;;
5165
5166  os2*)
5167    # The test takes a long time on OS/2.
5168    lt_cv_sys_max_cmd_len=8192
5169    ;;
5170
5171  osf*)
5172    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5173    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5174    # nice to cause kernel panics so lets avoid the loop below.
5175    # First set a reasonable default.
5176    lt_cv_sys_max_cmd_len=16384
5177    #
5178    if test -x /sbin/sysconfig; then
5179      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5180        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5181      esac
5182    fi
5183    ;;
5184  sco3.2v5*)
5185    lt_cv_sys_max_cmd_len=102400
5186    ;;
5187  sysv5* | sco5v6* | sysv4.2uw2*)
5188    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5189    if test -n "$kargmax"; then
5190      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5191    else
5192      lt_cv_sys_max_cmd_len=32768
5193    fi
5194    ;;
5195  *)
5196    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5197    if test -n "$lt_cv_sys_max_cmd_len" && \
5198       test undefined != "$lt_cv_sys_max_cmd_len"; then
5199      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5201    else
5202      # Make teststring a little bigger before we do anything with it.
5203      # a 1K string should be a reasonable start.
5204      for i in 1 2 3 4 5 6 7 8; do
5205        teststring=$teststring$teststring
5206      done
5207      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5208      # If test is not a shell built-in, we'll probably end up computing a
5209      # maximum length that is only half of the actual maximum length, but
5210      # we can't tell.
5211      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5212	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5213	      test 17 != "$i" # 1/2 MB should be enough
5214      do
5215        i=`expr $i + 1`
5216        teststring=$teststring$teststring
5217      done
5218      # Only check the string length outside the loop.
5219      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5220      teststring=
5221      # Add a significant safety factor because C++ compilers can tack on
5222      # massive amounts of additional arguments before passing them to the
5223      # linker.  It appears as though 1/2 is a usable value.
5224      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5225    fi
5226    ;;
5227  esac
5228
5229fi
5230
5231if test -n "$lt_cv_sys_max_cmd_len"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5233$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5236$as_echo "none" >&6; }
5237fi
5238max_cmd_len=$lt_cv_sys_max_cmd_len
5239
5240
5241
5242
5243
5244
5245: ${CP="cp -f"}
5246: ${MV="mv -f"}
5247: ${RM="rm -f"}
5248
5249if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5250  lt_unset=unset
5251else
5252  lt_unset=false
5253fi
5254
5255
5256
5257
5258
5259# test EBCDIC or ASCII
5260case `echo X|tr X '\101'` in
5261 A) # ASCII based system
5262    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5263  lt_SP2NL='tr \040 \012'
5264  lt_NL2SP='tr \015\012 \040\040'
5265  ;;
5266 *) # EBCDIC based system
5267  lt_SP2NL='tr \100 \n'
5268  lt_NL2SP='tr \r\n \100\100'
5269  ;;
5270esac
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5281$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5282if ${lt_cv_to_host_file_cmd+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  case $host in
5286  *-*-mingw* )
5287    case $build in
5288      *-*-mingw* ) # actually msys
5289        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5290        ;;
5291      *-*-cygwin* )
5292        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5293        ;;
5294      * ) # otherwise, assume *nix
5295        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5296        ;;
5297    esac
5298    ;;
5299  *-*-cygwin* )
5300    case $build in
5301      *-*-mingw* ) # actually msys
5302        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5303        ;;
5304      *-*-cygwin* )
5305        lt_cv_to_host_file_cmd=func_convert_file_noop
5306        ;;
5307      * ) # otherwise, assume *nix
5308        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5309        ;;
5310    esac
5311    ;;
5312  * ) # unhandled hosts (and "normal" native builds)
5313    lt_cv_to_host_file_cmd=func_convert_file_noop
5314    ;;
5315esac
5316
5317fi
5318
5319to_host_file_cmd=$lt_cv_to_host_file_cmd
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5321$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5322
5323
5324
5325
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5328$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5329if ${lt_cv_to_tool_file_cmd+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  #assume ordinary cross tools, or native build.
5333lt_cv_to_tool_file_cmd=func_convert_file_noop
5334case $host in
5335  *-*-mingw* )
5336    case $build in
5337      *-*-mingw* ) # actually msys
5338        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5339        ;;
5340    esac
5341    ;;
5342esac
5343
5344fi
5345
5346to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5348$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5349
5350
5351
5352
5353
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5355$as_echo_n "checking for $LD option to reload object files... " >&6; }
5356if ${lt_cv_ld_reload_flag+:} false; then :
5357  $as_echo_n "(cached) " >&6
5358else
5359  lt_cv_ld_reload_flag='-r'
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5362$as_echo "$lt_cv_ld_reload_flag" >&6; }
5363reload_flag=$lt_cv_ld_reload_flag
5364case $reload_flag in
5365"" | " "*) ;;
5366*) reload_flag=" $reload_flag" ;;
5367esac
5368reload_cmds='$LD$reload_flag -o $output$reload_objs'
5369case $host_os in
5370  cygwin* | mingw* | pw32* | cegcc*)
5371    if test yes != "$GCC"; then
5372      reload_cmds=false
5373    fi
5374    ;;
5375  darwin*)
5376    if test yes = "$GCC"; then
5377      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5378    else
5379      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5380    fi
5381    ;;
5382esac
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392if test -n "$ac_tool_prefix"; then
5393  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5394set dummy ${ac_tool_prefix}objdump; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
5397if ${ac_cv_prog_OBJDUMP+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  if test -n "$OBJDUMP"; then
5401  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406  IFS=$as_save_IFS
5407  test -z "$as_dir" && as_dir=.
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412    break 2
5413  fi
5414done
5415  done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420OBJDUMP=$ac_cv_prog_OBJDUMP
5421if test -n "$OBJDUMP"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5423$as_echo "$OBJDUMP" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430fi
5431if test -z "$ac_cv_prog_OBJDUMP"; then
5432  ac_ct_OBJDUMP=$OBJDUMP
5433  # Extract the first word of "objdump", so it can be a program name with args.
5434set dummy objdump; ac_word=$2
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436$as_echo_n "checking for $ac_word... " >&6; }
5437if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  if test -n "$ac_ct_OBJDUMP"; then
5441  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446  IFS=$as_save_IFS
5447  test -z "$as_dir" && as_dir=.
5448    for ac_exec_ext in '' $ac_executable_extensions; do
5449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452    break 2
5453  fi
5454done
5455  done
5456IFS=$as_save_IFS
5457
5458fi
5459fi
5460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5461if test -n "$ac_ct_OBJDUMP"; then
5462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5463$as_echo "$ac_ct_OBJDUMP" >&6; }
5464else
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469  if test "x$ac_ct_OBJDUMP" = x; then
5470    OBJDUMP="false"
5471  else
5472    case $cross_compiling:$ac_tool_warned in
5473yes:)
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476ac_tool_warned=yes ;;
5477esac
5478    OBJDUMP=$ac_ct_OBJDUMP
5479  fi
5480else
5481  OBJDUMP="$ac_cv_prog_OBJDUMP"
5482fi
5483
5484test -z "$OBJDUMP" && OBJDUMP=objdump
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5495$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5496if ${lt_cv_deplibs_check_method+:} false; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  lt_cv_file_magic_cmd='$MAGIC_CMD'
5500lt_cv_file_magic_test_file=
5501lt_cv_deplibs_check_method='unknown'
5502# Need to set the preceding variable on all platforms that support
5503# interlibrary dependencies.
5504# 'none' -- dependencies not supported.
5505# 'unknown' -- same as none, but documents that we really don't know.
5506# 'pass_all' -- all dependencies passed with no checks.
5507# 'test_compile' -- check by making test program.
5508# 'file_magic [[regex]]' -- check by looking for files in library path
5509# that responds to the $file_magic_cmd with a given extended regex.
5510# If you have 'file' or equivalent on your system and you're not sure
5511# whether 'pass_all' will *always* work, you probably want this one.
5512
5513case $host_os in
5514aix[4-9]*)
5515  lt_cv_deplibs_check_method=pass_all
5516  ;;
5517
5518beos*)
5519  lt_cv_deplibs_check_method=pass_all
5520  ;;
5521
5522bsdi[45]*)
5523  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5524  lt_cv_file_magic_cmd='/usr/bin/file -L'
5525  lt_cv_file_magic_test_file=/shlib/libc.so
5526  ;;
5527
5528cygwin*)
5529  # func_win32_libid is a shell function defined in ltmain.sh
5530  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5531  lt_cv_file_magic_cmd='func_win32_libid'
5532  ;;
5533
5534mingw* | pw32*)
5535  # Base MSYS/MinGW do not provide the 'file' command needed by
5536  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5537  # unless we find 'file', for example because we are cross-compiling.
5538  if ( file / ) >/dev/null 2>&1; then
5539    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5540    lt_cv_file_magic_cmd='func_win32_libid'
5541  else
5542    # Keep this pattern in sync with the one in func_win32_libid.
5543    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5544    lt_cv_file_magic_cmd='$OBJDUMP -f'
5545  fi
5546  ;;
5547
5548cegcc*)
5549  # use the weaker test based on 'objdump'. See mingw*.
5550  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5551  lt_cv_file_magic_cmd='$OBJDUMP -f'
5552  ;;
5553
5554darwin* | rhapsody*)
5555  lt_cv_deplibs_check_method=pass_all
5556  ;;
5557
5558freebsd* | dragonfly*)
5559  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5560    case $host_cpu in
5561    i*86 )
5562      # Not sure whether the presence of OpenBSD here was a mistake.
5563      # Let's accept both of them until this is cleared up.
5564      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5565      lt_cv_file_magic_cmd=/usr/bin/file
5566      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5567      ;;
5568    esac
5569  else
5570    lt_cv_deplibs_check_method=pass_all
5571  fi
5572  ;;
5573
5574haiku*)
5575  lt_cv_deplibs_check_method=pass_all
5576  ;;
5577
5578hpux10.20* | hpux11*)
5579  lt_cv_file_magic_cmd=/usr/bin/file
5580  case $host_cpu in
5581  ia64*)
5582    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5583    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5584    ;;
5585  hppa*64*)
5586    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]'
5587    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5588    ;;
5589  *)
5590    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5591    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5592    ;;
5593  esac
5594  ;;
5595
5596interix[3-9]*)
5597  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5598  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5599  ;;
5600
5601irix5* | irix6* | nonstopux*)
5602  case $LD in
5603  *-32|*"-32 ") libmagic=32-bit;;
5604  *-n32|*"-n32 ") libmagic=N32;;
5605  *-64|*"-64 ") libmagic=64-bit;;
5606  *) libmagic=never-match;;
5607  esac
5608  lt_cv_deplibs_check_method=pass_all
5609  ;;
5610
5611# This must be glibc/ELF.
5612linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616netbsd*)
5617  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619  else
5620    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5621  fi
5622  ;;
5623
5624newos6*)
5625  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5626  lt_cv_file_magic_cmd=/usr/bin/file
5627  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5628  ;;
5629
5630*nto* | *qnx*)
5631  lt_cv_deplibs_check_method=pass_all
5632  ;;
5633
5634openbsd* | bitrig*)
5635  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5636    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5637  else
5638    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639  fi
5640  ;;
5641
5642osf3* | osf4* | osf5*)
5643  lt_cv_deplibs_check_method=pass_all
5644  ;;
5645
5646rdos*)
5647  lt_cv_deplibs_check_method=pass_all
5648  ;;
5649
5650solaris*)
5651  lt_cv_deplibs_check_method=pass_all
5652  ;;
5653
5654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5655  lt_cv_deplibs_check_method=pass_all
5656  ;;
5657
5658sysv4 | sysv4.3*)
5659  case $host_vendor in
5660  motorola)
5661    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]'
5662    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5663    ;;
5664  ncr)
5665    lt_cv_deplibs_check_method=pass_all
5666    ;;
5667  sequent)
5668    lt_cv_file_magic_cmd='/bin/file'
5669    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5670    ;;
5671  sni)
5672    lt_cv_file_magic_cmd='/bin/file'
5673    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5674    lt_cv_file_magic_test_file=/lib/libc.so
5675    ;;
5676  siemens)
5677    lt_cv_deplibs_check_method=pass_all
5678    ;;
5679  pc)
5680    lt_cv_deplibs_check_method=pass_all
5681    ;;
5682  esac
5683  ;;
5684
5685tpf*)
5686  lt_cv_deplibs_check_method=pass_all
5687  ;;
5688os2*)
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691esac
5692
5693fi
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5695$as_echo "$lt_cv_deplibs_check_method" >&6; }
5696
5697file_magic_glob=
5698want_nocaseglob=no
5699if test "$build" = "$host"; then
5700  case $host_os in
5701  mingw* | pw32*)
5702    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5703      want_nocaseglob=yes
5704    else
5705      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5706    fi
5707    ;;
5708  esac
5709fi
5710
5711file_magic_cmd=$lt_cv_file_magic_cmd
5712deplibs_check_method=$lt_cv_deplibs_check_method
5713test -z "$deplibs_check_method" && deplibs_check_method=unknown
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736if test -n "$ac_tool_prefix"; then
5737  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5738set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740$as_echo_n "checking for $ac_word... " >&6; }
5741if ${ac_cv_prog_DLLTOOL+:} false; then :
5742  $as_echo_n "(cached) " >&6
5743else
5744  if test -n "$DLLTOOL"; then
5745  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5746else
5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750  IFS=$as_save_IFS
5751  test -z "$as_dir" && as_dir=.
5752    for ac_exec_ext in '' $ac_executable_extensions; do
5753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756    break 2
5757  fi
5758done
5759  done
5760IFS=$as_save_IFS
5761
5762fi
5763fi
5764DLLTOOL=$ac_cv_prog_DLLTOOL
5765if test -n "$DLLTOOL"; then
5766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5767$as_echo "$DLLTOOL" >&6; }
5768else
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770$as_echo "no" >&6; }
5771fi
5772
5773
5774fi
5775if test -z "$ac_cv_prog_DLLTOOL"; then
5776  ac_ct_DLLTOOL=$DLLTOOL
5777  # Extract the first word of "dlltool", so it can be a program name with args.
5778set dummy dlltool; ac_word=$2
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780$as_echo_n "checking for $ac_word... " >&6; }
5781if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  if test -n "$ac_ct_DLLTOOL"; then
5785  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790  IFS=$as_save_IFS
5791  test -z "$as_dir" && as_dir=.
5792    for ac_exec_ext in '' $ac_executable_extensions; do
5793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796    break 2
5797  fi
5798done
5799  done
5800IFS=$as_save_IFS
5801
5802fi
5803fi
5804ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5805if test -n "$ac_ct_DLLTOOL"; then
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5807$as_echo "$ac_ct_DLLTOOL" >&6; }
5808else
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811fi
5812
5813  if test "x$ac_ct_DLLTOOL" = x; then
5814    DLLTOOL="false"
5815  else
5816    case $cross_compiling:$ac_tool_warned in
5817yes:)
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5820ac_tool_warned=yes ;;
5821esac
5822    DLLTOOL=$ac_ct_DLLTOOL
5823  fi
5824else
5825  DLLTOOL="$ac_cv_prog_DLLTOOL"
5826fi
5827
5828test -z "$DLLTOOL" && DLLTOOL=dlltool
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5840$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5841if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  lt_cv_sharedlib_from_linklib_cmd='unknown'
5845
5846case $host_os in
5847cygwin* | mingw* | pw32* | cegcc*)
5848  # two different shell functions defined in ltmain.sh;
5849  # decide which one to use based on capabilities of $DLLTOOL
5850  case `$DLLTOOL --help 2>&1` in
5851  *--identify-strict*)
5852    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5853    ;;
5854  *)
5855    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5856    ;;
5857  esac
5858  ;;
5859*)
5860  # fallback: assume linklib IS sharedlib
5861  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5862  ;;
5863esac
5864
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5867$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5868sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5869test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5870
5871
5872
5873
5874
5875
5876
5877if test -n "$ac_tool_prefix"; then
5878  for ac_prog in ar
5879  do
5880    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if ${ac_cv_prog_AR+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test -n "$AR"; then
5888  ac_cv_prog_AR="$AR" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895    for ac_exec_ext in '' $ac_executable_extensions; do
5896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902  done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907AR=$ac_cv_prog_AR
5908if test -n "$AR"; then
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5910$as_echo "$AR" >&6; }
5911else
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916
5917    test -n "$AR" && break
5918  done
5919fi
5920if test -z "$AR"; then
5921  ac_ct_AR=$AR
5922  for ac_prog in ar
5923do
5924  # Extract the first word of "$ac_prog", so it can be a program name with args.
5925set dummy $ac_prog; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_AR+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_AR"; then
5932  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_AR="$ac_prog"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_AR=$ac_cv_prog_ac_ct_AR
5952if test -n "$ac_ct_AR"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5954$as_echo "$ac_ct_AR" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961  test -n "$ac_ct_AR" && break
5962done
5963
5964  if test "x$ac_ct_AR" = x; then
5965    AR="false"
5966  else
5967    case $cross_compiling:$ac_tool_warned in
5968yes:)
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971ac_tool_warned=yes ;;
5972esac
5973    AR=$ac_ct_AR
5974  fi
5975fi
5976
5977: ${AR=ar}
5978: ${AR_FLAGS=cru}
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5991$as_echo_n "checking for archiver @FILE support... " >&6; }
5992if ${lt_cv_ar_at_file+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  lt_cv_ar_at_file=no
5996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997/* end confdefs.h.  */
5998
5999int
6000main ()
6001{
6002
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_compile "$LINENO"; then :
6008  echo conftest.$ac_objext > conftest.lst
6009      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6010      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6011  (eval $lt_ar_try) 2>&5
6012  ac_status=$?
6013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014  test $ac_status = 0; }
6015      if test 0 -eq "$ac_status"; then
6016	# Ensure the archiver fails upon bogus file names.
6017	rm -f conftest.$ac_objext libconftest.a
6018	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6019  (eval $lt_ar_try) 2>&5
6020  ac_status=$?
6021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6022  test $ac_status = 0; }
6023	if test 0 -ne "$ac_status"; then
6024          lt_cv_ar_at_file=@
6025        fi
6026      fi
6027      rm -f conftest.* libconftest.a
6028
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6034$as_echo "$lt_cv_ar_at_file" >&6; }
6035
6036if test no = "$lt_cv_ar_at_file"; then
6037  archiver_list_spec=
6038else
6039  archiver_list_spec=$lt_cv_ar_at_file
6040fi
6041
6042
6043
6044
6045
6046
6047
6048if test -n "$ac_tool_prefix"; then
6049  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}strip; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if ${ac_cv_prog_STRIP+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$STRIP"; then
6057  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076STRIP=$ac_cv_prog_STRIP
6077if test -n "$STRIP"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6079$as_echo "$STRIP" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085
6086fi
6087if test -z "$ac_cv_prog_STRIP"; then
6088  ac_ct_STRIP=$STRIP
6089  # Extract the first word of "strip", so it can be a program name with args.
6090set dummy strip; ac_word=$2
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092$as_echo_n "checking for $ac_word... " >&6; }
6093if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096  if test -n "$ac_ct_STRIP"; then
6097  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104    for ac_exec_ext in '' $ac_executable_extensions; do
6105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_ac_ct_STRIP="strip"
6107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111  done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117if test -n "$ac_ct_STRIP"; then
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6119$as_echo "$ac_ct_STRIP" >&6; }
6120else
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125  if test "x$ac_ct_STRIP" = x; then
6126    STRIP=":"
6127  else
6128    case $cross_compiling:$ac_tool_warned in
6129yes:)
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132ac_tool_warned=yes ;;
6133esac
6134    STRIP=$ac_ct_STRIP
6135  fi
6136else
6137  STRIP="$ac_cv_prog_STRIP"
6138fi
6139
6140test -z "$STRIP" && STRIP=:
6141
6142
6143
6144
6145
6146
6147if test -n "$ac_tool_prefix"; then
6148  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6149set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if ${ac_cv_prog_RANLIB+:} false; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155  if test -n "$RANLIB"; then
6156  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167    break 2
6168  fi
6169done
6170  done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175RANLIB=$ac_cv_prog_RANLIB
6176if test -n "$RANLIB"; then
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6178$as_echo "$RANLIB" >&6; }
6179else
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185fi
6186if test -z "$ac_cv_prog_RANLIB"; then
6187  ac_ct_RANLIB=$RANLIB
6188  # Extract the first word of "ranlib", so it can be a program name with args.
6189set dummy ranlib; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$ac_ct_RANLIB"; then
6196  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205    ac_cv_prog_ac_ct_RANLIB="ranlib"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6216if test -n "$ac_ct_RANLIB"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6218$as_echo "$ac_ct_RANLIB" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224  if test "x$ac_ct_RANLIB" = x; then
6225    RANLIB=":"
6226  else
6227    case $cross_compiling:$ac_tool_warned in
6228yes:)
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6231ac_tool_warned=yes ;;
6232esac
6233    RANLIB=$ac_ct_RANLIB
6234  fi
6235else
6236  RANLIB="$ac_cv_prog_RANLIB"
6237fi
6238
6239test -z "$RANLIB" && RANLIB=:
6240
6241
6242
6243
6244
6245
6246# Determine commands to create old-style static archives.
6247old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6248old_postinstall_cmds='chmod 644 $oldlib'
6249old_postuninstall_cmds=
6250
6251if test -n "$RANLIB"; then
6252  case $host_os in
6253  bitrig* | openbsd*)
6254    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6255    ;;
6256  *)
6257    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6258    ;;
6259  esac
6260  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6261fi
6262
6263case $host_os in
6264  darwin*)
6265    lock_old_archive_extraction=yes ;;
6266  *)
6267    lock_old_archive_extraction=no ;;
6268esac
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308# If no C compiler was specified, use CC.
6309LTCC=${LTCC-"$CC"}
6310
6311# If no C compiler flags were specified, use CFLAGS.
6312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6313
6314# Allow CC to be a program name with arguments.
6315compiler=$CC
6316
6317
6318# Check for command to grab the raw symbol name followed by C symbol from nm.
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6320$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6321if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324
6325# These are sane defaults that work on at least a few old systems.
6326# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6327
6328# Character class describing NM global symbol codes.
6329symcode='[BCDEGRST]'
6330
6331# Regexp to match symbols that can be accessed directly from C.
6332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333
6334# Define system-specific variables.
6335case $host_os in
6336aix*)
6337  symcode='[BCDT]'
6338  ;;
6339cygwin* | mingw* | pw32* | cegcc*)
6340  symcode='[ABCDGISTW]'
6341  ;;
6342hpux*)
6343  if test ia64 = "$host_cpu"; then
6344    symcode='[ABCDEGRST]'
6345  fi
6346  ;;
6347irix* | nonstopux*)
6348  symcode='[BCDEGRST]'
6349  ;;
6350osf*)
6351  symcode='[BCDEGQRST]'
6352  ;;
6353solaris*)
6354  symcode='[BDRT]'
6355  ;;
6356sco3.2v5*)
6357  symcode='[DT]'
6358  ;;
6359sysv4.2uw2*)
6360  symcode='[DT]'
6361  ;;
6362sysv5* | sco5v6* | unixware* | OpenUNIX*)
6363  symcode='[ABDT]'
6364  ;;
6365sysv4)
6366  symcode='[DFNSTU]'
6367  ;;
6368esac
6369
6370# If we're using GNU nm, then use its standard symbol codes.
6371case `$NM -V 2>&1` in
6372*GNU* | *'with BFD'*)
6373  symcode='[ABCDGIRSTW]' ;;
6374esac
6375
6376if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6377  # Gets list of data symbols to import.
6378  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6379  # Adjust the below global symbol transforms to fixup imported variables.
6380  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6381  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6382  lt_c_name_lib_hook="\
6383  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6384  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6385else
6386  # Disable hooks by default.
6387  lt_cv_sys_global_symbol_to_import=
6388  lt_cdecl_hook=
6389  lt_c_name_hook=
6390  lt_c_name_lib_hook=
6391fi
6392
6393# Transform an extracted symbol line into a proper C declaration.
6394# Some systems (esp. on ia64) link data and code symbols differently,
6395# so use this general approach.
6396lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6397$lt_cdecl_hook\
6398" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6399" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6400
6401# Transform an extracted symbol line into symbol name and symbol address
6402lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6403$lt_c_name_hook\
6404" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6405" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6406
6407# Transform an extracted symbol line into symbol name with lib prefix and
6408# symbol address.
6409lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6410$lt_c_name_lib_hook\
6411" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6412" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6413" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6414
6415# Handle CRLF in mingw tool chain
6416opt_cr=
6417case $build_os in
6418mingw*)
6419  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420  ;;
6421esac
6422
6423# Try without a prefix underscore, then with it.
6424for ac_symprfx in "" "_"; do
6425
6426  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6427  symxfrm="\\1 $ac_symprfx\\2 \\2"
6428
6429  # Write the raw and C identifiers.
6430  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6431    # Fake it for dumpbin and say T for any non-static function,
6432    # D for any global variable and I for any imported variable.
6433    # Also find C++ and __fastcall symbols from MSVC++,
6434    # which start with @ or ?.
6435    lt_cv_sys_global_symbol_pipe="$AWK '"\
6436"     {last_section=section; section=\$ 3};"\
6437"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6438"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6439"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6440"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6441"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6442"     \$ 0!~/External *\|/{next};"\
6443"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6444"     {if(hide[section]) next};"\
6445"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6446"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6447"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6448"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6449"     ' prfx=^$ac_symprfx"
6450  else
6451    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6452  fi
6453  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6454
6455  # Check to see that the pipe works correctly.
6456  pipe_works=no
6457
6458  rm -f conftest*
6459  cat > conftest.$ac_ext <<_LT_EOF
6460#ifdef __cplusplus
6461extern "C" {
6462#endif
6463char nm_test_var;
6464void nm_test_func(void);
6465void nm_test_func(void){}
6466#ifdef __cplusplus
6467}
6468#endif
6469int main(){nm_test_var='a';nm_test_func();return(0);}
6470_LT_EOF
6471
6472  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6473  (eval $ac_compile) 2>&5
6474  ac_status=$?
6475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476  test $ac_status = 0; }; then
6477    # Now try to grab the symbols.
6478    nlist=conftest.nm
6479    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6480  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6481  ac_status=$?
6482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6483  test $ac_status = 0; } && test -s "$nlist"; then
6484      # Try sorting and uniquifying the output.
6485      if sort "$nlist" | uniq > "$nlist"T; then
6486	mv -f "$nlist"T "$nlist"
6487      else
6488	rm -f "$nlist"T
6489      fi
6490
6491      # Make sure that we snagged all the symbols we need.
6492      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6493	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6494	  cat <<_LT_EOF > conftest.$ac_ext
6495/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6496#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6497/* DATA imports from DLLs on WIN32 can't be const, because runtime
6498   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6499# define LT_DLSYM_CONST
6500#elif defined __osf__
6501/* This system does not cope well with relocations in const data.  */
6502# define LT_DLSYM_CONST
6503#else
6504# define LT_DLSYM_CONST const
6505#endif
6506
6507#ifdef __cplusplus
6508extern "C" {
6509#endif
6510
6511_LT_EOF
6512	  # Now generate the symbol file.
6513	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6514
6515	  cat <<_LT_EOF >> conftest.$ac_ext
6516
6517/* The mapping between symbol names and symbols.  */
6518LT_DLSYM_CONST struct {
6519  const char *name;
6520  void       *address;
6521}
6522lt__PROGRAM__LTX_preloaded_symbols[] =
6523{
6524  { "@PROGRAM@", (void *) 0 },
6525_LT_EOF
6526	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6527	  cat <<\_LT_EOF >> conftest.$ac_ext
6528  {0, (void *) 0}
6529};
6530
6531/* This works around a problem in FreeBSD linker */
6532#ifdef FREEBSD_WORKAROUND
6533static const void *lt_preloaded_setup() {
6534  return lt__PROGRAM__LTX_preloaded_symbols;
6535}
6536#endif
6537
6538#ifdef __cplusplus
6539}
6540#endif
6541_LT_EOF
6542	  # Now try linking the two files.
6543	  mv conftest.$ac_objext conftstm.$ac_objext
6544	  lt_globsym_save_LIBS=$LIBS
6545	  lt_globsym_save_CFLAGS=$CFLAGS
6546	  LIBS=conftstm.$ac_objext
6547	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6548	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6549  (eval $ac_link) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6553	    pipe_works=yes
6554	  fi
6555	  LIBS=$lt_globsym_save_LIBS
6556	  CFLAGS=$lt_globsym_save_CFLAGS
6557	else
6558	  echo "cannot find nm_test_func in $nlist" >&5
6559	fi
6560      else
6561	echo "cannot find nm_test_var in $nlist" >&5
6562      fi
6563    else
6564      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6565    fi
6566  else
6567    echo "$progname: failed program was:" >&5
6568    cat conftest.$ac_ext >&5
6569  fi
6570  rm -rf conftest* conftst*
6571
6572  # Do not use the global_symbol_pipe unless it works.
6573  if test yes = "$pipe_works"; then
6574    break
6575  else
6576    lt_cv_sys_global_symbol_pipe=
6577  fi
6578done
6579
6580fi
6581
6582if test -z "$lt_cv_sys_global_symbol_pipe"; then
6583  lt_cv_sys_global_symbol_to_cdecl=
6584fi
6585if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6587$as_echo "failed" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6590$as_echo "ok" >&6; }
6591fi
6592
6593# Response file support.
6594if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6595  nm_file_list_spec='@'
6596elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6597  nm_file_list_spec='@'
6598fi
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6637$as_echo_n "checking for sysroot... " >&6; }
6638
6639# Check whether --with-sysroot was given.
6640if test "${with_sysroot+set}" = set; then :
6641  withval=$with_sysroot;
6642else
6643  with_sysroot=no
6644fi
6645
6646
6647lt_sysroot=
6648case $with_sysroot in #(
6649 yes)
6650   if test yes = "$GCC"; then
6651     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6652   fi
6653   ;; #(
6654 /*)
6655   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6656   ;; #(
6657 no|'')
6658   ;; #(
6659 *)
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6661$as_echo "$with_sysroot" >&6; }
6662   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6663   ;;
6664esac
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6667$as_echo "${lt_sysroot:-no}" >&6; }
6668
6669
6670
6671
6672
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6674$as_echo_n "checking for a working dd... " >&6; }
6675if ${ac_cv_path_lt_DD+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  printf 0123456789abcdef0123456789abcdef >conftest.i
6679cat conftest.i conftest.i >conftest2.i
6680: ${lt_DD:=$DD}
6681if test -z "$lt_DD"; then
6682  ac_path_lt_DD_found=false
6683  # Loop through the user's path and test for each of PROGNAME-LIST
6684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687  IFS=$as_save_IFS
6688  test -z "$as_dir" && as_dir=.
6689    for ac_prog in dd; do
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6692      as_fn_executable_p "$ac_path_lt_DD" || continue
6693if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6694  cmp -s conftest.i conftest.out \
6695  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6696fi
6697      $ac_path_lt_DD_found && break 3
6698    done
6699  done
6700  done
6701IFS=$as_save_IFS
6702  if test -z "$ac_cv_path_lt_DD"; then
6703    :
6704  fi
6705else
6706  ac_cv_path_lt_DD=$lt_DD
6707fi
6708
6709rm -f conftest.i conftest2.i conftest.out
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6712$as_echo "$ac_cv_path_lt_DD" >&6; }
6713
6714
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6716$as_echo_n "checking how to truncate binary pipes... " >&6; }
6717if ${lt_cv_truncate_bin+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  printf 0123456789abcdef0123456789abcdef >conftest.i
6721cat conftest.i conftest.i >conftest2.i
6722lt_cv_truncate_bin=
6723if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6724  cmp -s conftest.i conftest.out \
6725  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6726fi
6727rm -f conftest.i conftest2.i conftest.out
6728test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6731$as_echo "$lt_cv_truncate_bin" >&6; }
6732
6733
6734
6735
6736
6737
6738
6739# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6740func_cc_basename ()
6741{
6742    for cc_temp in $*""; do
6743      case $cc_temp in
6744        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6745        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6746        \-*) ;;
6747        *) break;;
6748      esac
6749    done
6750    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6751}
6752
6753# Check whether --enable-libtool-lock was given.
6754if test "${enable_libtool_lock+set}" = set; then :
6755  enableval=$enable_libtool_lock;
6756fi
6757
6758test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6759
6760# Some flags need to be propagated to the compiler or linker for good
6761# libtool support.
6762case $host in
6763ia64-*-hpux*)
6764  # Find out what ABI is being produced by ac_compile, and set mode
6765  # options accordingly.
6766  echo 'int i;' > conftest.$ac_ext
6767  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768  (eval $ac_compile) 2>&5
6769  ac_status=$?
6770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771  test $ac_status = 0; }; then
6772    case `/usr/bin/file conftest.$ac_objext` in
6773      *ELF-32*)
6774	HPUX_IA64_MODE=32
6775	;;
6776      *ELF-64*)
6777	HPUX_IA64_MODE=64
6778	;;
6779    esac
6780  fi
6781  rm -rf conftest*
6782  ;;
6783*-*-irix6*)
6784  # Find out what ABI is being produced by ac_compile, and set linker
6785  # options accordingly.
6786  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788  (eval $ac_compile) 2>&5
6789  ac_status=$?
6790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791  test $ac_status = 0; }; then
6792    if test yes = "$lt_cv_prog_gnu_ld"; then
6793      case `/usr/bin/file conftest.$ac_objext` in
6794	*32-bit*)
6795	  LD="${LD-ld} -melf32bsmip"
6796	  ;;
6797	*N32*)
6798	  LD="${LD-ld} -melf32bmipn32"
6799	  ;;
6800	*64-bit*)
6801	  LD="${LD-ld} -melf64bmip"
6802	;;
6803      esac
6804    else
6805      case `/usr/bin/file conftest.$ac_objext` in
6806	*32-bit*)
6807	  LD="${LD-ld} -32"
6808	  ;;
6809	*N32*)
6810	  LD="${LD-ld} -n32"
6811	  ;;
6812	*64-bit*)
6813	  LD="${LD-ld} -64"
6814	  ;;
6815      esac
6816    fi
6817  fi
6818  rm -rf conftest*
6819  ;;
6820
6821mips64*-*linux*)
6822  # Find out what ABI is being produced by ac_compile, and set linker
6823  # options accordingly.
6824  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826  (eval $ac_compile) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; }; then
6830    emul=elf
6831    case `/usr/bin/file conftest.$ac_objext` in
6832      *32-bit*)
6833	emul="${emul}32"
6834	;;
6835      *64-bit*)
6836	emul="${emul}64"
6837	;;
6838    esac
6839    case `/usr/bin/file conftest.$ac_objext` in
6840      *MSB*)
6841	emul="${emul}btsmip"
6842	;;
6843      *LSB*)
6844	emul="${emul}ltsmip"
6845	;;
6846    esac
6847    case `/usr/bin/file conftest.$ac_objext` in
6848      *N32*)
6849	emul="${emul}n32"
6850	;;
6851    esac
6852    LD="${LD-ld} -m $emul"
6853  fi
6854  rm -rf conftest*
6855  ;;
6856
6857x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6858s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6859  # Find out what ABI is being produced by ac_compile, and set linker
6860  # options accordingly.  Note that the listed cases only cover the
6861  # situations where additional linker options are needed (such as when
6862  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6863  # vice versa); the common cases where no linker options are needed do
6864  # not appear in the list.
6865  echo 'int i;' > conftest.$ac_ext
6866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867  (eval $ac_compile) 2>&5
6868  ac_status=$?
6869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870  test $ac_status = 0; }; then
6871    case `/usr/bin/file conftest.o` in
6872      *32-bit*)
6873	case $host in
6874	  x86_64-*kfreebsd*-gnu)
6875	    LD="${LD-ld} -m elf_i386_fbsd"
6876	    ;;
6877	  x86_64-*linux*)
6878	    case `/usr/bin/file conftest.o` in
6879	      *x86-64*)
6880		LD="${LD-ld} -m elf32_x86_64"
6881		;;
6882	      *)
6883		LD="${LD-ld} -m elf_i386"
6884		;;
6885	    esac
6886	    ;;
6887	  powerpc64le-*linux*)
6888	    LD="${LD-ld} -m elf32lppclinux"
6889	    ;;
6890	  powerpc64-*linux*)
6891	    LD="${LD-ld} -m elf32ppclinux"
6892	    ;;
6893	  s390x-*linux*)
6894	    LD="${LD-ld} -m elf_s390"
6895	    ;;
6896	  sparc64-*linux*)
6897	    LD="${LD-ld} -m elf32_sparc"
6898	    ;;
6899	esac
6900	;;
6901      *64-bit*)
6902	case $host in
6903	  x86_64-*kfreebsd*-gnu)
6904	    LD="${LD-ld} -m elf_x86_64_fbsd"
6905	    ;;
6906	  x86_64-*linux*)
6907	    LD="${LD-ld} -m elf_x86_64"
6908	    ;;
6909	  powerpcle-*linux*)
6910	    LD="${LD-ld} -m elf64lppc"
6911	    ;;
6912	  powerpc-*linux*)
6913	    LD="${LD-ld} -m elf64ppc"
6914	    ;;
6915	  s390*-*linux*|s390*-*tpf*)
6916	    LD="${LD-ld} -m elf64_s390"
6917	    ;;
6918	  sparc*-*linux*)
6919	    LD="${LD-ld} -m elf64_sparc"
6920	    ;;
6921	esac
6922	;;
6923    esac
6924  fi
6925  rm -rf conftest*
6926  ;;
6927
6928*-*-sco3.2v5*)
6929  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6930  SAVE_CFLAGS=$CFLAGS
6931  CFLAGS="$CFLAGS -belf"
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6933$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6934if ${lt_cv_cc_needs_belf+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  ac_ext=c
6938ac_cpp='$CPP $CPPFLAGS'
6939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942
6943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h.  */
6945
6946int
6947main ()
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954if ac_fn_c_try_link "$LINENO"; then :
6955  lt_cv_cc_needs_belf=yes
6956else
6957  lt_cv_cc_needs_belf=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext \
6960    conftest$ac_exeext conftest.$ac_ext
6961     ac_ext=c
6962ac_cpp='$CPP $CPPFLAGS'
6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967fi
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6969$as_echo "$lt_cv_cc_needs_belf" >&6; }
6970  if test yes != "$lt_cv_cc_needs_belf"; then
6971    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6972    CFLAGS=$SAVE_CFLAGS
6973  fi
6974  ;;
6975*-*solaris*)
6976  # Find out what ABI is being produced by ac_compile, and set linker
6977  # options accordingly.
6978  echo 'int i;' > conftest.$ac_ext
6979  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980  (eval $ac_compile) 2>&5
6981  ac_status=$?
6982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983  test $ac_status = 0; }; then
6984    case `/usr/bin/file conftest.o` in
6985    *64-bit*)
6986      case $lt_cv_prog_gnu_ld in
6987      yes*)
6988        case $host in
6989        i?86-*-solaris*|x86_64-*-solaris*)
6990          LD="${LD-ld} -m elf_x86_64"
6991          ;;
6992        sparc*-*-solaris*)
6993          LD="${LD-ld} -m elf64_sparc"
6994          ;;
6995        esac
6996        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6997        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6998          LD=${LD-ld}_sol2
6999        fi
7000        ;;
7001      *)
7002	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7003	  LD="${LD-ld} -64"
7004	fi
7005	;;
7006      esac
7007      ;;
7008    esac
7009  fi
7010  rm -rf conftest*
7011  ;;
7012esac
7013
7014need_locks=$enable_libtool_lock
7015
7016if test -n "$ac_tool_prefix"; then
7017  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}mt; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  if test -n "$MANIFEST_TOOL"; then
7025  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032    for ac_exec_ext in '' $ac_executable_extensions; do
7033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039  done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7045if test -n "$MANIFEST_TOOL"; then
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7047$as_echo "$MANIFEST_TOOL" >&6; }
7048else
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053
7054fi
7055if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7056  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7057  # Extract the first word of "mt", so it can be a program name with args.
7058set dummy mt; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  if test -n "$ac_ct_MANIFEST_TOOL"; then
7065  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072    for ac_exec_ext in '' $ac_executable_extensions; do
7073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079  done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7085if test -n "$ac_ct_MANIFEST_TOOL"; then
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7087$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7088else
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7094    MANIFEST_TOOL=":"
7095  else
7096    case $cross_compiling:$ac_tool_warned in
7097yes:)
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100ac_tool_warned=yes ;;
7101esac
7102    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7103  fi
7104else
7105  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7106fi
7107
7108test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7110$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7111if ${lt_cv_path_mainfest_tool+:} false; then :
7112  $as_echo_n "(cached) " >&6
7113else
7114  lt_cv_path_mainfest_tool=no
7115  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7116  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7117  cat conftest.err >&5
7118  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7119    lt_cv_path_mainfest_tool=yes
7120  fi
7121  rm -f conftest*
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7124$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7125if test yes != "$lt_cv_path_mainfest_tool"; then
7126  MANIFEST_TOOL=:
7127fi
7128
7129
7130
7131
7132
7133
7134  case $host_os in
7135    rhapsody* | darwin*)
7136    if test -n "$ac_tool_prefix"; then
7137  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7138set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if ${ac_cv_prog_DSYMUTIL+:} false; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  if test -n "$DSYMUTIL"; then
7145  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  test -z "$as_dir" && as_dir=.
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164DSYMUTIL=$ac_cv_prog_DSYMUTIL
7165if test -n "$DSYMUTIL"; then
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7167$as_echo "$DSYMUTIL" >&6; }
7168else
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173
7174fi
7175if test -z "$ac_cv_prog_DSYMUTIL"; then
7176  ac_ct_DSYMUTIL=$DSYMUTIL
7177  # Extract the first word of "dsymutil", so it can be a program name with args.
7178set dummy dsymutil; ac_word=$2
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180$as_echo_n "checking for $ac_word... " >&6; }
7181if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  if test -n "$ac_ct_DSYMUTIL"; then
7185  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7186else
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190  IFS=$as_save_IFS
7191  test -z "$as_dir" && as_dir=.
7192    for ac_exec_ext in '' $ac_executable_extensions; do
7193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196    break 2
7197  fi
7198done
7199  done
7200IFS=$as_save_IFS
7201
7202fi
7203fi
7204ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7205if test -n "$ac_ct_DSYMUTIL"; then
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7207$as_echo "$ac_ct_DSYMUTIL" >&6; }
7208else
7209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210$as_echo "no" >&6; }
7211fi
7212
7213  if test "x$ac_ct_DSYMUTIL" = x; then
7214    DSYMUTIL=":"
7215  else
7216    case $cross_compiling:$ac_tool_warned in
7217yes:)
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220ac_tool_warned=yes ;;
7221esac
7222    DSYMUTIL=$ac_ct_DSYMUTIL
7223  fi
7224else
7225  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7226fi
7227
7228    if test -n "$ac_tool_prefix"; then
7229  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7230set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if ${ac_cv_prog_NMEDIT+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$NMEDIT"; then
7237  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244    for ac_exec_ext in '' $ac_executable_extensions; do
7245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251  done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256NMEDIT=$ac_cv_prog_NMEDIT
7257if test -n "$NMEDIT"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7259$as_echo "$NMEDIT" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265
7266fi
7267if test -z "$ac_cv_prog_NMEDIT"; then
7268  ac_ct_NMEDIT=$NMEDIT
7269  # Extract the first word of "nmedit", so it can be a program name with args.
7270set dummy nmedit; ac_word=$2
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  if test -n "$ac_ct_NMEDIT"; then
7277  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284    for ac_exec_ext in '' $ac_executable_extensions; do
7285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291  done
7292IFS=$as_save_IFS
7293
7294fi
7295fi
7296ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7297if test -n "$ac_ct_NMEDIT"; then
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7299$as_echo "$ac_ct_NMEDIT" >&6; }
7300else
7301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
7303fi
7304
7305  if test "x$ac_ct_NMEDIT" = x; then
7306    NMEDIT=":"
7307  else
7308    case $cross_compiling:$ac_tool_warned in
7309yes:)
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312ac_tool_warned=yes ;;
7313esac
7314    NMEDIT=$ac_ct_NMEDIT
7315  fi
7316else
7317  NMEDIT="$ac_cv_prog_NMEDIT"
7318fi
7319
7320    if test -n "$ac_tool_prefix"; then
7321  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7322set dummy ${ac_tool_prefix}lipo; ac_word=$2
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if ${ac_cv_prog_LIPO+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  if test -n "$LIPO"; then
7329  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336    for ac_exec_ext in '' $ac_executable_extensions; do
7337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343  done
7344IFS=$as_save_IFS
7345
7346fi
7347fi
7348LIPO=$ac_cv_prog_LIPO
7349if test -n "$LIPO"; then
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7351$as_echo "$LIPO" >&6; }
7352else
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354$as_echo "no" >&6; }
7355fi
7356
7357
7358fi
7359if test -z "$ac_cv_prog_LIPO"; then
7360  ac_ct_LIPO=$LIPO
7361  # Extract the first word of "lipo", so it can be a program name with args.
7362set dummy lipo; ac_word=$2
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364$as_echo_n "checking for $ac_word... " >&6; }
7365if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  if test -n "$ac_ct_LIPO"; then
7369  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7370else
7371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374  IFS=$as_save_IFS
7375  test -z "$as_dir" && as_dir=.
7376    for ac_exec_ext in '' $ac_executable_extensions; do
7377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378    ac_cv_prog_ac_ct_LIPO="lipo"
7379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380    break 2
7381  fi
7382done
7383  done
7384IFS=$as_save_IFS
7385
7386fi
7387fi
7388ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7389if test -n "$ac_ct_LIPO"; then
7390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7391$as_echo "$ac_ct_LIPO" >&6; }
7392else
7393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394$as_echo "no" >&6; }
7395fi
7396
7397  if test "x$ac_ct_LIPO" = x; then
7398    LIPO=":"
7399  else
7400    case $cross_compiling:$ac_tool_warned in
7401yes:)
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404ac_tool_warned=yes ;;
7405esac
7406    LIPO=$ac_ct_LIPO
7407  fi
7408else
7409  LIPO="$ac_cv_prog_LIPO"
7410fi
7411
7412    if test -n "$ac_tool_prefix"; then
7413  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7414set dummy ${ac_tool_prefix}otool; ac_word=$2
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416$as_echo_n "checking for $ac_word... " >&6; }
7417if ${ac_cv_prog_OTOOL+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  if test -n "$OTOOL"; then
7421  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426  IFS=$as_save_IFS
7427  test -z "$as_dir" && as_dir=.
7428    for ac_exec_ext in '' $ac_executable_extensions; do
7429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432    break 2
7433  fi
7434done
7435  done
7436IFS=$as_save_IFS
7437
7438fi
7439fi
7440OTOOL=$ac_cv_prog_OTOOL
7441if test -n "$OTOOL"; then
7442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7443$as_echo "$OTOOL" >&6; }
7444else
7445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
7447fi
7448
7449
7450fi
7451if test -z "$ac_cv_prog_OTOOL"; then
7452  ac_ct_OTOOL=$OTOOL
7453  # Extract the first word of "otool", so it can be a program name with args.
7454set dummy otool; ac_word=$2
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456$as_echo_n "checking for $ac_word... " >&6; }
7457if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  if test -n "$ac_ct_OTOOL"; then
7461  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7462else
7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466  IFS=$as_save_IFS
7467  test -z "$as_dir" && as_dir=.
7468    for ac_exec_ext in '' $ac_executable_extensions; do
7469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470    ac_cv_prog_ac_ct_OTOOL="otool"
7471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472    break 2
7473  fi
7474done
7475  done
7476IFS=$as_save_IFS
7477
7478fi
7479fi
7480ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7481if test -n "$ac_ct_OTOOL"; then
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7483$as_echo "$ac_ct_OTOOL" >&6; }
7484else
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489  if test "x$ac_ct_OTOOL" = x; then
7490    OTOOL=":"
7491  else
7492    case $cross_compiling:$ac_tool_warned in
7493yes:)
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496ac_tool_warned=yes ;;
7497esac
7498    OTOOL=$ac_ct_OTOOL
7499  fi
7500else
7501  OTOOL="$ac_cv_prog_OTOOL"
7502fi
7503
7504    if test -n "$ac_tool_prefix"; then
7505  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7506set dummy ${ac_tool_prefix}otool64; ac_word=$2
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508$as_echo_n "checking for $ac_word... " >&6; }
7509if ${ac_cv_prog_OTOOL64+:} false; then :
7510  $as_echo_n "(cached) " >&6
7511else
7512  if test -n "$OTOOL64"; then
7513  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518  IFS=$as_save_IFS
7519  test -z "$as_dir" && as_dir=.
7520    for ac_exec_ext in '' $ac_executable_extensions; do
7521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524    break 2
7525  fi
7526done
7527  done
7528IFS=$as_save_IFS
7529
7530fi
7531fi
7532OTOOL64=$ac_cv_prog_OTOOL64
7533if test -n "$OTOOL64"; then
7534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7535$as_echo "$OTOOL64" >&6; }
7536else
7537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
7539fi
7540
7541
7542fi
7543if test -z "$ac_cv_prog_OTOOL64"; then
7544  ac_ct_OTOOL64=$OTOOL64
7545  # Extract the first word of "otool64", so it can be a program name with args.
7546set dummy otool64; ac_word=$2
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  if test -n "$ac_ct_OTOOL64"; then
7553  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558  IFS=$as_save_IFS
7559  test -z "$as_dir" && as_dir=.
7560    for ac_exec_ext in '' $ac_executable_extensions; do
7561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562    ac_cv_prog_ac_ct_OTOOL64="otool64"
7563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564    break 2
7565  fi
7566done
7567  done
7568IFS=$as_save_IFS
7569
7570fi
7571fi
7572ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7573if test -n "$ac_ct_OTOOL64"; then
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7575$as_echo "$ac_ct_OTOOL64" >&6; }
7576else
7577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
7581  if test "x$ac_ct_OTOOL64" = x; then
7582    OTOOL64=":"
7583  else
7584    case $cross_compiling:$ac_tool_warned in
7585yes:)
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7588ac_tool_warned=yes ;;
7589esac
7590    OTOOL64=$ac_ct_OTOOL64
7591  fi
7592else
7593  OTOOL64="$ac_cv_prog_OTOOL64"
7594fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7623$as_echo_n "checking for -single_module linker flag... " >&6; }
7624if ${lt_cv_apple_cc_single_mod+:} false; then :
7625  $as_echo_n "(cached) " >&6
7626else
7627  lt_cv_apple_cc_single_mod=no
7628      if test -z "$LT_MULTI_MODULE"; then
7629	# By default we will add the -single_module flag. You can override
7630	# by either setting the environment variable LT_MULTI_MODULE
7631	# non-empty at configure time, or by adding -multi_module to the
7632	# link flags.
7633	rm -rf libconftest.dylib*
7634	echo "int foo(void){return 1;}" > conftest.c
7635	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7636-dynamiclib -Wl,-single_module conftest.c" >&5
7637	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7638	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7639        _lt_result=$?
7640	# If there is a non-empty error log, and "single_module"
7641	# appears in it, assume the flag caused a linker warning
7642        if test -s conftest.err && $GREP single_module conftest.err; then
7643	  cat conftest.err >&5
7644	# Otherwise, if the output was created with a 0 exit code from
7645	# the compiler, it worked.
7646	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7647	  lt_cv_apple_cc_single_mod=yes
7648	else
7649	  cat conftest.err >&5
7650	fi
7651	rm -rf libconftest.dylib*
7652	rm -f conftest.*
7653      fi
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7656$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7657
7658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7659$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7660if ${lt_cv_ld_exported_symbols_list+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  lt_cv_ld_exported_symbols_list=no
7664      save_LDFLAGS=$LDFLAGS
7665      echo "_main" > conftest.sym
7666      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669
7670int
7671main ()
7672{
7673
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678if ac_fn_c_try_link "$LINENO"; then :
7679  lt_cv_ld_exported_symbols_list=yes
7680else
7681  lt_cv_ld_exported_symbols_list=no
7682fi
7683rm -f core conftest.err conftest.$ac_objext \
7684    conftest$ac_exeext conftest.$ac_ext
7685	LDFLAGS=$save_LDFLAGS
7686
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7689$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7690
7691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7692$as_echo_n "checking for -force_load linker flag... " >&6; }
7693if ${lt_cv_ld_force_load+:} false; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  lt_cv_ld_force_load=no
7697      cat > conftest.c << _LT_EOF
7698int forced_loaded() { return 2;}
7699_LT_EOF
7700      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7701      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7702      echo "$AR cru libconftest.a conftest.o" >&5
7703      $AR cru libconftest.a conftest.o 2>&5
7704      echo "$RANLIB libconftest.a" >&5
7705      $RANLIB libconftest.a 2>&5
7706      cat > conftest.c << _LT_EOF
7707int main() { return 0;}
7708_LT_EOF
7709      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7710      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7711      _lt_result=$?
7712      if test -s conftest.err && $GREP force_load conftest.err; then
7713	cat conftest.err >&5
7714      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7715	lt_cv_ld_force_load=yes
7716      else
7717	cat conftest.err >&5
7718      fi
7719        rm -f conftest.err libconftest.a conftest conftest.c
7720        rm -rf conftest.dSYM
7721
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7724$as_echo "$lt_cv_ld_force_load" >&6; }
7725    case $host_os in
7726    rhapsody* | darwin1.[012])
7727      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7728    darwin1.*)
7729      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7730    darwin*) # darwin 5.x on
7731      # if running on 10.5 or later, the deployment target defaults
7732      # to the OS version, if on x86, and 10.4, the deployment
7733      # target defaults to 10.4. Don't you love it?
7734      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7735	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7736	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7737	10.[012][,.]*)
7738	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7739	10.*)
7740	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7741      esac
7742    ;;
7743  esac
7744    if test yes = "$lt_cv_apple_cc_single_mod"; then
7745      _lt_dar_single_mod='$single_module'
7746    fi
7747    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7748      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7749    else
7750      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7751    fi
7752    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7753      _lt_dsymutil='~$DSYMUTIL $lib || :'
7754    else
7755      _lt_dsymutil=
7756    fi
7757    ;;
7758  esac
7759
7760# func_munge_path_list VARIABLE PATH
7761# -----------------------------------
7762# VARIABLE is name of variable containing _space_ separated list of
7763# directories to be munged by the contents of PATH, which is string
7764# having a format:
7765# "DIR[:DIR]:"
7766#       string "DIR[ DIR]" will be prepended to VARIABLE
7767# ":DIR[:DIR]"
7768#       string "DIR[ DIR]" will be appended to VARIABLE
7769# "DIRP[:DIRP]::[DIRA:]DIRA"
7770#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7771#       "DIRA[ DIRA]" will be appended to VARIABLE
7772# "DIR[:DIR]"
7773#       VARIABLE will be replaced by "DIR[ DIR]"
7774func_munge_path_list ()
7775{
7776    case x$2 in
7777    x)
7778        ;;
7779    *:)
7780        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7781        ;;
7782    x:*)
7783        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7784        ;;
7785    *::*)
7786        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7787        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7788        ;;
7789    *)
7790        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7791        ;;
7792    esac
7793}
7794
7795for ac_header in dlfcn.h
7796do :
7797  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7798"
7799if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7800  cat >>confdefs.h <<_ACEOF
7801#define HAVE_DLFCN_H 1
7802_ACEOF
7803
7804fi
7805
7806done
7807
7808
7809
7810
7811
7812# Set options
7813
7814
7815
7816        enable_dlopen=no
7817
7818
7819  enable_win32_dll=no
7820
7821
7822            # Check whether --enable-shared was given.
7823if test "${enable_shared+set}" = set; then :
7824  enableval=$enable_shared; p=${PACKAGE-default}
7825    case $enableval in
7826    yes) enable_shared=yes ;;
7827    no) enable_shared=no ;;
7828    *)
7829      enable_shared=no
7830      # Look at the argument we got.  We use all the common list separators.
7831      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7832      for pkg in $enableval; do
7833	IFS=$lt_save_ifs
7834	if test "X$pkg" = "X$p"; then
7835	  enable_shared=yes
7836	fi
7837      done
7838      IFS=$lt_save_ifs
7839      ;;
7840    esac
7841else
7842  enable_shared=yes
7843fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853  # Check whether --enable-static was given.
7854if test "${enable_static+set}" = set; then :
7855  enableval=$enable_static; p=${PACKAGE-default}
7856    case $enableval in
7857    yes) enable_static=yes ;;
7858    no) enable_static=no ;;
7859    *)
7860     enable_static=no
7861      # Look at the argument we got.  We use all the common list separators.
7862      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7863      for pkg in $enableval; do
7864	IFS=$lt_save_ifs
7865	if test "X$pkg" = "X$p"; then
7866	  enable_static=yes
7867	fi
7868      done
7869      IFS=$lt_save_ifs
7870      ;;
7871    esac
7872else
7873  enable_static=yes
7874fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885# Check whether --with-pic was given.
7886if test "${with_pic+set}" = set; then :
7887  withval=$with_pic; lt_p=${PACKAGE-default}
7888    case $withval in
7889    yes|no) pic_mode=$withval ;;
7890    *)
7891      pic_mode=default
7892      # Look at the argument we got.  We use all the common list separators.
7893      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7894      for lt_pkg in $withval; do
7895	IFS=$lt_save_ifs
7896	if test "X$lt_pkg" = "X$lt_p"; then
7897	  pic_mode=yes
7898	fi
7899      done
7900      IFS=$lt_save_ifs
7901      ;;
7902    esac
7903else
7904  pic_mode=default
7905fi
7906
7907
7908
7909
7910
7911
7912
7913
7914  # Check whether --enable-fast-install was given.
7915if test "${enable_fast_install+set}" = set; then :
7916  enableval=$enable_fast_install; p=${PACKAGE-default}
7917    case $enableval in
7918    yes) enable_fast_install=yes ;;
7919    no) enable_fast_install=no ;;
7920    *)
7921      enable_fast_install=no
7922      # Look at the argument we got.  We use all the common list separators.
7923      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7924      for pkg in $enableval; do
7925	IFS=$lt_save_ifs
7926	if test "X$pkg" = "X$p"; then
7927	  enable_fast_install=yes
7928	fi
7929      done
7930      IFS=$lt_save_ifs
7931      ;;
7932    esac
7933else
7934  enable_fast_install=yes
7935fi
7936
7937
7938
7939
7940
7941
7942
7943
7944  shared_archive_member_spec=
7945case $host,$enable_shared in
7946power*-*-aix[5-9]*,yes)
7947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7948$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7949
7950# Check whether --with-aix-soname was given.
7951if test "${with_aix_soname+set}" = set; then :
7952  withval=$with_aix_soname; case $withval in
7953    aix|svr4|both)
7954      ;;
7955    *)
7956      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7957      ;;
7958    esac
7959    lt_cv_with_aix_soname=$with_aix_soname
7960else
7961  if ${lt_cv_with_aix_soname+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_with_aix_soname=aix
7965fi
7966
7967    with_aix_soname=$lt_cv_with_aix_soname
7968fi
7969
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7971$as_echo "$with_aix_soname" >&6; }
7972  if test aix != "$with_aix_soname"; then
7973    # For the AIX way of multilib, we name the shared archive member
7974    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7975    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7976    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7977    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7978    if test 64 = "${OBJECT_MODE-32}"; then
7979      shared_archive_member_spec=shr_64
7980    else
7981      shared_archive_member_spec=shr
7982    fi
7983  fi
7984  ;;
7985*)
7986  with_aix_soname=aix
7987  ;;
7988esac
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999# This can be used to rebuild libtool when needed
8000LIBTOOL_DEPS=$ltmain
8001
8002# Always use our own libtool.
8003LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034test -z "$LN_S" && LN_S="ln -s"
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049if test -n "${ZSH_VERSION+set}"; then
8050   setopt NO_GLOB_SUBST
8051fi
8052
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8054$as_echo_n "checking for objdir... " >&6; }
8055if ${lt_cv_objdir+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  rm -f .libs 2>/dev/null
8059mkdir .libs 2>/dev/null
8060if test -d .libs; then
8061  lt_cv_objdir=.libs
8062else
8063  # MS-DOS does not allow filenames that begin with a dot.
8064  lt_cv_objdir=_libs
8065fi
8066rmdir .libs 2>/dev/null
8067fi
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8069$as_echo "$lt_cv_objdir" >&6; }
8070objdir=$lt_cv_objdir
8071
8072
8073
8074
8075
8076cat >>confdefs.h <<_ACEOF
8077#define LT_OBJDIR "$lt_cv_objdir/"
8078_ACEOF
8079
8080
8081
8082
8083case $host_os in
8084aix3*)
8085  # AIX sometimes has problems with the GCC collect2 program.  For some
8086  # reason, if we set the COLLECT_NAMES environment variable, the problems
8087  # vanish in a puff of smoke.
8088  if test set != "${COLLECT_NAMES+set}"; then
8089    COLLECT_NAMES=
8090    export COLLECT_NAMES
8091  fi
8092  ;;
8093esac
8094
8095# Global variables:
8096ofile=libtool
8097can_build_shared=yes
8098
8099# All known linkers require a '.a' archive for static linking (except MSVC,
8100# which needs '.lib').
8101libext=a
8102
8103with_gnu_ld=$lt_cv_prog_gnu_ld
8104
8105old_CC=$CC
8106old_CFLAGS=$CFLAGS
8107
8108# Set sane defaults for various variables
8109test -z "$CC" && CC=cc
8110test -z "$LTCC" && LTCC=$CC
8111test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8112test -z "$LD" && LD=ld
8113test -z "$ac_objext" && ac_objext=o
8114
8115func_cc_basename $compiler
8116cc_basename=$func_cc_basename_result
8117
8118
8119# Only perform the check for file, if the check method requires it
8120test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121case $deplibs_check_method in
8122file_magic*)
8123  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8125$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8126if ${lt_cv_path_MAGIC_CMD+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  case $MAGIC_CMD in
8130[\\/*] |  ?:[\\/]*)
8131  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8132  ;;
8133*)
8134  lt_save_MAGIC_CMD=$MAGIC_CMD
8135  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8136  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137  for ac_dir in $ac_dummy; do
8138    IFS=$lt_save_ifs
8139    test -z "$ac_dir" && ac_dir=.
8140    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8141      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8142      if test -n "$file_magic_test_file"; then
8143	case $deplibs_check_method in
8144	"file_magic "*)
8145	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8147	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148	    $EGREP "$file_magic_regex" > /dev/null; then
8149	    :
8150	  else
8151	    cat <<_LT_EOF 1>&2
8152
8153*** Warning: the command libtool uses to detect shared libraries,
8154*** $file_magic_cmd, produces output that libtool cannot recognize.
8155*** The result is that libtool may fail to recognize shared libraries
8156*** as such.  This will affect the creation of libtool libraries that
8157*** depend on shared libraries, but programs linked with such libtool
8158*** libraries will work regardless of this problem.  Nevertheless, you
8159*** may want to report the problem to your system manager and/or to
8160*** bug-libtool@gnu.org
8161
8162_LT_EOF
8163	  fi ;;
8164	esac
8165      fi
8166      break
8167    fi
8168  done
8169  IFS=$lt_save_ifs
8170  MAGIC_CMD=$lt_save_MAGIC_CMD
8171  ;;
8172esac
8173fi
8174
8175MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8176if test -n "$MAGIC_CMD"; then
8177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8178$as_echo "$MAGIC_CMD" >&6; }
8179else
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183
8184
8185
8186
8187
8188if test -z "$lt_cv_path_MAGIC_CMD"; then
8189  if test -n "$ac_tool_prefix"; then
8190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8191$as_echo_n "checking for file... " >&6; }
8192if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  case $MAGIC_CMD in
8196[\\/*] |  ?:[\\/]*)
8197  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8198  ;;
8199*)
8200  lt_save_MAGIC_CMD=$MAGIC_CMD
8201  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8202  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203  for ac_dir in $ac_dummy; do
8204    IFS=$lt_save_ifs
8205    test -z "$ac_dir" && ac_dir=.
8206    if test -f "$ac_dir/file"; then
8207      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8208      if test -n "$file_magic_test_file"; then
8209	case $deplibs_check_method in
8210	"file_magic "*)
8211	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8213	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214	    $EGREP "$file_magic_regex" > /dev/null; then
8215	    :
8216	  else
8217	    cat <<_LT_EOF 1>&2
8218
8219*** Warning: the command libtool uses to detect shared libraries,
8220*** $file_magic_cmd, produces output that libtool cannot recognize.
8221*** The result is that libtool may fail to recognize shared libraries
8222*** as such.  This will affect the creation of libtool libraries that
8223*** depend on shared libraries, but programs linked with such libtool
8224*** libraries will work regardless of this problem.  Nevertheless, you
8225*** may want to report the problem to your system manager and/or to
8226*** bug-libtool@gnu.org
8227
8228_LT_EOF
8229	  fi ;;
8230	esac
8231      fi
8232      break
8233    fi
8234  done
8235  IFS=$lt_save_ifs
8236  MAGIC_CMD=$lt_save_MAGIC_CMD
8237  ;;
8238esac
8239fi
8240
8241MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8242if test -n "$MAGIC_CMD"; then
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244$as_echo "$MAGIC_CMD" >&6; }
8245else
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247$as_echo "no" >&6; }
8248fi
8249
8250
8251  else
8252    MAGIC_CMD=:
8253  fi
8254fi
8255
8256  fi
8257  ;;
8258esac
8259
8260# Use C for the default configuration in the libtool script
8261
8262lt_save_CC=$CC
8263ac_ext=c
8264ac_cpp='$CPP $CPPFLAGS'
8265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270# Source file extension for C test sources.
8271ac_ext=c
8272
8273# Object file extension for compiled C test sources.
8274objext=o
8275objext=$objext
8276
8277# Code to be used in simple compile tests
8278lt_simple_compile_test_code="int some_variable = 0;"
8279
8280# Code to be used in simple link tests
8281lt_simple_link_test_code='int main(){return(0);}'
8282
8283
8284
8285
8286
8287
8288
8289# If no C compiler was specified, use CC.
8290LTCC=${LTCC-"$CC"}
8291
8292# If no C compiler flags were specified, use CFLAGS.
8293LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295# Allow CC to be a program name with arguments.
8296compiler=$CC
8297
8298# Save the default compiler, since it gets overwritten when the other
8299# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300compiler_DEFAULT=$CC
8301
8302# save warnings/boilerplate of simple test code
8303ac_outfile=conftest.$ac_objext
8304echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306_lt_compiler_boilerplate=`cat conftest.err`
8307$RM conftest*
8308
8309ac_outfile=conftest.$ac_objext
8310echo "$lt_simple_link_test_code" >conftest.$ac_ext
8311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312_lt_linker_boilerplate=`cat conftest.err`
8313$RM -r conftest*
8314
8315
8316## CAVEAT EMPTOR:
8317## There is no encapsulation within the following macros, do not change
8318## the running order or otherwise move them around unless you know exactly
8319## what you are doing...
8320if test -n "$compiler"; then
8321
8322lt_prog_compiler_no_builtin_flag=
8323
8324if test yes = "$GCC"; then
8325  case $cc_basename in
8326  nvcc*)
8327    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8328  *)
8329    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8330  esac
8331
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8333$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8334if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8335  $as_echo_n "(cached) " >&6
8336else
8337  lt_cv_prog_compiler_rtti_exceptions=no
8338   ac_outfile=conftest.$ac_objext
8339   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8341   # Insert the option either (1) after the last *FLAGS variable, or
8342   # (2) before a word containing "conftest.", or (3) at the end.
8343   # Note that $ac_compile itself does not contain backslashes and begins
8344   # with a dollar sign (not a hyphen), so the echo should work correctly.
8345   # The option is referenced via a variable to avoid confusing sed.
8346   lt_compile=`echo "$ac_compile" | $SED \
8347   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349   -e 's:$: $lt_compiler_flag:'`
8350   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8351   (eval "$lt_compile" 2>conftest.err)
8352   ac_status=$?
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   if (exit $ac_status) && test -s "$ac_outfile"; then
8356     # The compiler can only warn and ignore the option if not recognized
8357     # So say no if there are warnings other than the usual output.
8358     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8359     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8360     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8361       lt_cv_prog_compiler_rtti_exceptions=yes
8362     fi
8363   fi
8364   $RM conftest*
8365
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8368$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8369
8370if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8371    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8372else
8373    :
8374fi
8375
8376fi
8377
8378
8379
8380
8381
8382
8383  lt_prog_compiler_wl=
8384lt_prog_compiler_pic=
8385lt_prog_compiler_static=
8386
8387
8388  if test yes = "$GCC"; then
8389    lt_prog_compiler_wl='-Wl,'
8390    lt_prog_compiler_static='-static'
8391
8392    case $host_os in
8393      aix*)
8394      # All AIX code is PIC.
8395      if test ia64 = "$host_cpu"; then
8396	# AIX 5 now supports IA64 processor
8397	lt_prog_compiler_static='-Bstatic'
8398      fi
8399      lt_prog_compiler_pic='-fPIC'
8400      ;;
8401
8402    amigaos*)
8403      case $host_cpu in
8404      powerpc)
8405            # see comment about AmigaOS4 .so support
8406            lt_prog_compiler_pic='-fPIC'
8407        ;;
8408      m68k)
8409            # FIXME: we need at least 68020 code to build shared libraries, but
8410            # adding the '-m68020' flag to GCC prevents building anything better,
8411            # like '-m68040'.
8412            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8413        ;;
8414      esac
8415      ;;
8416
8417    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8418      # PIC is the default for these OSes.
8419      ;;
8420
8421    mingw* | cygwin* | pw32* | os2* | cegcc*)
8422      # This hack is so that the source file can tell whether it is being
8423      # built for inclusion in a dll (and should export symbols for example).
8424      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8425      # (--disable-auto-import) libraries
8426      lt_prog_compiler_pic='-DDLL_EXPORT'
8427      case $host_os in
8428      os2*)
8429	lt_prog_compiler_static='$wl-static'
8430	;;
8431      esac
8432      ;;
8433
8434    darwin* | rhapsody*)
8435      # PIC is the default on this platform
8436      # Common symbols not allowed in MH_DYLIB files
8437      lt_prog_compiler_pic='-fno-common'
8438      ;;
8439
8440    haiku*)
8441      # PIC is the default for Haiku.
8442      # The "-static" flag exists, but is broken.
8443      lt_prog_compiler_static=
8444      ;;
8445
8446    hpux*)
8447      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8449      # sets the default TLS model and affects inlining.
8450      case $host_cpu in
8451      hppa*64*)
8452	# +Z the default
8453	;;
8454      *)
8455	lt_prog_compiler_pic='-fPIC'
8456	;;
8457      esac
8458      ;;
8459
8460    interix[3-9]*)
8461      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462      # Instead, we relocate shared libraries at runtime.
8463      ;;
8464
8465    msdosdjgpp*)
8466      # Just because we use GCC doesn't mean we suddenly get shared libraries
8467      # on systems that don't support them.
8468      lt_prog_compiler_can_build_shared=no
8469      enable_shared=no
8470      ;;
8471
8472    *nto* | *qnx*)
8473      # QNX uses GNU C++, but need to define -shared option too, otherwise
8474      # it will coredump.
8475      lt_prog_compiler_pic='-fPIC -shared'
8476      ;;
8477
8478    sysv4*MP*)
8479      if test -d /usr/nec; then
8480	lt_prog_compiler_pic=-Kconform_pic
8481      fi
8482      ;;
8483
8484    *)
8485      lt_prog_compiler_pic='-fPIC'
8486      ;;
8487    esac
8488
8489    case $cc_basename in
8490    nvcc*) # Cuda Compiler Driver 2.2
8491      lt_prog_compiler_wl='-Xlinker '
8492      if test -n "$lt_prog_compiler_pic"; then
8493        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8494      fi
8495      ;;
8496    esac
8497  else
8498    # PORTME Check for flag to pass linker flags through the system compiler.
8499    case $host_os in
8500    aix*)
8501      lt_prog_compiler_wl='-Wl,'
8502      if test ia64 = "$host_cpu"; then
8503	# AIX 5 now supports IA64 processor
8504	lt_prog_compiler_static='-Bstatic'
8505      else
8506	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8507      fi
8508      ;;
8509
8510    darwin* | rhapsody*)
8511      # PIC is the default on this platform
8512      # Common symbols not allowed in MH_DYLIB files
8513      lt_prog_compiler_pic='-fno-common'
8514      case $cc_basename in
8515      nagfor*)
8516        # NAG Fortran compiler
8517        lt_prog_compiler_wl='-Wl,-Wl,,'
8518        lt_prog_compiler_pic='-PIC'
8519        lt_prog_compiler_static='-Bstatic'
8520        ;;
8521      esac
8522      ;;
8523
8524    mingw* | cygwin* | pw32* | os2* | cegcc*)
8525      # This hack is so that the source file can tell whether it is being
8526      # built for inclusion in a dll (and should export symbols for example).
8527      lt_prog_compiler_pic='-DDLL_EXPORT'
8528      case $host_os in
8529      os2*)
8530	lt_prog_compiler_static='$wl-static'
8531	;;
8532      esac
8533      ;;
8534
8535    hpux9* | hpux10* | hpux11*)
8536      lt_prog_compiler_wl='-Wl,'
8537      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8538      # not for PA HP-UX.
8539      case $host_cpu in
8540      hppa*64*|ia64*)
8541	# +Z the default
8542	;;
8543      *)
8544	lt_prog_compiler_pic='+Z'
8545	;;
8546      esac
8547      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8548      lt_prog_compiler_static='$wl-a ${wl}archive'
8549      ;;
8550
8551    irix5* | irix6* | nonstopux*)
8552      lt_prog_compiler_wl='-Wl,'
8553      # PIC (with -KPIC) is the default.
8554      lt_prog_compiler_static='-non_shared'
8555      ;;
8556
8557    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8558      case $cc_basename in
8559      # old Intel for x86_64, which still supported -KPIC.
8560      ecc*)
8561	lt_prog_compiler_wl='-Wl,'
8562	lt_prog_compiler_pic='-KPIC'
8563	lt_prog_compiler_static='-static'
8564        ;;
8565      # icc used to be incompatible with GCC.
8566      # ICC 10 doesn't accept -KPIC any more.
8567      icc* | ifort*)
8568	lt_prog_compiler_wl='-Wl,'
8569	lt_prog_compiler_pic='-fPIC'
8570	lt_prog_compiler_static='-static'
8571        ;;
8572      # Lahey Fortran 8.1.
8573      lf95*)
8574	lt_prog_compiler_wl='-Wl,'
8575	lt_prog_compiler_pic='--shared'
8576	lt_prog_compiler_static='--static'
8577	;;
8578      nagfor*)
8579	# NAG Fortran compiler
8580	lt_prog_compiler_wl='-Wl,-Wl,,'
8581	lt_prog_compiler_pic='-PIC'
8582	lt_prog_compiler_static='-Bstatic'
8583	;;
8584      tcc*)
8585	# Fabrice Bellard et al's Tiny C Compiler
8586	lt_prog_compiler_wl='-Wl,'
8587	lt_prog_compiler_pic='-fPIC'
8588	lt_prog_compiler_static='-static'
8589	;;
8590      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8591        # Portland Group compilers (*not* the Pentium gcc compiler,
8592	# which looks to be a dead project)
8593	lt_prog_compiler_wl='-Wl,'
8594	lt_prog_compiler_pic='-fpic'
8595	lt_prog_compiler_static='-Bstatic'
8596        ;;
8597      ccc*)
8598        lt_prog_compiler_wl='-Wl,'
8599        # All Alpha code is PIC.
8600        lt_prog_compiler_static='-non_shared'
8601        ;;
8602      xl* | bgxl* | bgf* | mpixl*)
8603	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-qpic'
8606	lt_prog_compiler_static='-qstaticlink'
8607	;;
8608      *)
8609	case `$CC -V 2>&1 | sed 5q` in
8610	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8611	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8612	  lt_prog_compiler_pic='-KPIC'
8613	  lt_prog_compiler_static='-Bstatic'
8614	  lt_prog_compiler_wl=''
8615	  ;;
8616	*Sun\ F* | *Sun*Fortran*)
8617	  lt_prog_compiler_pic='-KPIC'
8618	  lt_prog_compiler_static='-Bstatic'
8619	  lt_prog_compiler_wl='-Qoption ld '
8620	  ;;
8621	*Sun\ C*)
8622	  # Sun C 5.9
8623	  lt_prog_compiler_pic='-KPIC'
8624	  lt_prog_compiler_static='-Bstatic'
8625	  lt_prog_compiler_wl='-Wl,'
8626	  ;;
8627        *Intel*\ [CF]*Compiler*)
8628	  lt_prog_compiler_wl='-Wl,'
8629	  lt_prog_compiler_pic='-fPIC'
8630	  lt_prog_compiler_static='-static'
8631	  ;;
8632	*Portland\ Group*)
8633	  lt_prog_compiler_wl='-Wl,'
8634	  lt_prog_compiler_pic='-fpic'
8635	  lt_prog_compiler_static='-Bstatic'
8636	  ;;
8637	esac
8638	;;
8639      esac
8640      ;;
8641
8642    newsos6)
8643      lt_prog_compiler_pic='-KPIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    *nto* | *qnx*)
8648      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649      # it will coredump.
8650      lt_prog_compiler_pic='-fPIC -shared'
8651      ;;
8652
8653    osf3* | osf4* | osf5*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # All OSF/1 code is PIC.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    rdos*)
8660      lt_prog_compiler_static='-non_shared'
8661      ;;
8662
8663    solaris*)
8664      lt_prog_compiler_pic='-KPIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      case $cc_basename in
8667      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8668	lt_prog_compiler_wl='-Qoption ld ';;
8669      *)
8670	lt_prog_compiler_wl='-Wl,';;
8671      esac
8672      ;;
8673
8674    sunos4*)
8675      lt_prog_compiler_wl='-Qoption ld '
8676      lt_prog_compiler_pic='-PIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      ;;
8679
8680    sysv4 | sysv4.2uw2* | sysv4.3*)
8681      lt_prog_compiler_wl='-Wl,'
8682      lt_prog_compiler_pic='-KPIC'
8683      lt_prog_compiler_static='-Bstatic'
8684      ;;
8685
8686    sysv4*MP*)
8687      if test -d /usr/nec; then
8688	lt_prog_compiler_pic='-Kconform_pic'
8689	lt_prog_compiler_static='-Bstatic'
8690      fi
8691      ;;
8692
8693    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8694      lt_prog_compiler_wl='-Wl,'
8695      lt_prog_compiler_pic='-KPIC'
8696      lt_prog_compiler_static='-Bstatic'
8697      ;;
8698
8699    unicos*)
8700      lt_prog_compiler_wl='-Wl,'
8701      lt_prog_compiler_can_build_shared=no
8702      ;;
8703
8704    uts4*)
8705      lt_prog_compiler_pic='-pic'
8706      lt_prog_compiler_static='-Bstatic'
8707      ;;
8708
8709    *)
8710      lt_prog_compiler_can_build_shared=no
8711      ;;
8712    esac
8713  fi
8714
8715case $host_os in
8716  # For platforms that do not support PIC, -DPIC is meaningless:
8717  *djgpp*)
8718    lt_prog_compiler_pic=
8719    ;;
8720  *)
8721    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722    ;;
8723esac
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8726$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8727if ${lt_cv_prog_compiler_pic+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8733$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8734lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8735
8736#
8737# Check to make sure the PIC flag actually works.
8738#
8739if test -n "$lt_prog_compiler_pic"; then
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742if ${lt_cv_prog_compiler_pic_works+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  lt_cv_prog_compiler_pic_works=no
8746   ac_outfile=conftest.$ac_objext
8747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8749   # Insert the option either (1) after the last *FLAGS variable, or
8750   # (2) before a word containing "conftest.", or (3) at the end.
8751   # Note that $ac_compile itself does not contain backslashes and begins
8752   # with a dollar sign (not a hyphen), so the echo should work correctly.
8753   # The option is referenced via a variable to avoid confusing sed.
8754   lt_compile=`echo "$ac_compile" | $SED \
8755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757   -e 's:$: $lt_compiler_flag:'`
8758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759   (eval "$lt_compile" 2>conftest.err)
8760   ac_status=$?
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   if (exit $ac_status) && test -s "$ac_outfile"; then
8764     # The compiler can only warn and ignore the option if not recognized
8765     # So say no if there are warnings other than the usual output.
8766     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8767     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8769       lt_cv_prog_compiler_pic_works=yes
8770     fi
8771   fi
8772   $RM conftest*
8773
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777
8778if test yes = "$lt_cv_prog_compiler_pic_works"; then
8779    case $lt_prog_compiler_pic in
8780     "" | " "*) ;;
8781     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8782     esac
8783else
8784    lt_prog_compiler_pic=
8785     lt_prog_compiler_can_build_shared=no
8786fi
8787
8788fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800#
8801# Check to make sure the static flag actually works.
8802#
8803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8805$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8806if ${lt_cv_prog_compiler_static_works+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_prog_compiler_static_works=no
8810   save_LDFLAGS=$LDFLAGS
8811   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8812   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8813   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8814     # The linker can only warn and ignore the option if not recognized
8815     # So say no if there are warnings
8816     if test -s conftest.err; then
8817       # Append any errors to the config.log.
8818       cat conftest.err 1>&5
8819       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8820       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821       if diff conftest.exp conftest.er2 >/dev/null; then
8822         lt_cv_prog_compiler_static_works=yes
8823       fi
8824     else
8825       lt_cv_prog_compiler_static_works=yes
8826     fi
8827   fi
8828   $RM -r conftest*
8829   LDFLAGS=$save_LDFLAGS
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8833$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8834
8835if test yes = "$lt_cv_prog_compiler_static_works"; then
8836    :
8837else
8838    lt_prog_compiler_static=
8839fi
8840
8841
8842
8843
8844
8845
8846
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8849if ${lt_cv_prog_compiler_c_o+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  lt_cv_prog_compiler_c_o=no
8853   $RM -r conftest 2>/dev/null
8854   mkdir conftest
8855   cd conftest
8856   mkdir out
8857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858
8859   lt_compiler_flag="-o out/conftest2.$ac_objext"
8860   # Insert the option either (1) after the last *FLAGS variable, or
8861   # (2) before a word containing "conftest.", or (3) at the end.
8862   # Note that $ac_compile itself does not contain backslashes and begins
8863   # with a dollar sign (not a hyphen), so the echo should work correctly.
8864   lt_compile=`echo "$ac_compile" | $SED \
8865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867   -e 's:$: $lt_compiler_flag:'`
8868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869   (eval "$lt_compile" 2>out/conftest.err)
8870   ac_status=$?
8871   cat out/conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874   then
8875     # The compiler can only warn and ignore the option if not recognized
8876     # So say no if there are warnings
8877     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8880       lt_cv_prog_compiler_c_o=yes
8881     fi
8882   fi
8883   chmod u+w . 2>&5
8884   $RM conftest*
8885   # SGI C++ compiler will create directory out/ii_files/ for
8886   # template instantiation
8887   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8888   $RM out/* && rmdir out
8889   cd ..
8890   $RM -r conftest
8891   $RM conftest*
8892
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8896
8897
8898
8899
8900
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8904if ${lt_cv_prog_compiler_c_o+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  lt_cv_prog_compiler_c_o=no
8908   $RM -r conftest 2>/dev/null
8909   mkdir conftest
8910   cd conftest
8911   mkdir out
8912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913
8914   lt_compiler_flag="-o out/conftest2.$ac_objext"
8915   # Insert the option either (1) after the last *FLAGS variable, or
8916   # (2) before a word containing "conftest.", or (3) at the end.
8917   # Note that $ac_compile itself does not contain backslashes and begins
8918   # with a dollar sign (not a hyphen), so the echo should work correctly.
8919   lt_compile=`echo "$ac_compile" | $SED \
8920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922   -e 's:$: $lt_compiler_flag:'`
8923   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924   (eval "$lt_compile" 2>out/conftest.err)
8925   ac_status=$?
8926   cat out/conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8929   then
8930     # The compiler can only warn and ignore the option if not recognized
8931     # So say no if there are warnings
8932     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935       lt_cv_prog_compiler_c_o=yes
8936     fi
8937   fi
8938   chmod u+w . 2>&5
8939   $RM conftest*
8940   # SGI C++ compiler will create directory out/ii_files/ for
8941   # template instantiation
8942   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943   $RM out/* && rmdir out
8944   cd ..
8945   $RM -r conftest
8946   $RM conftest*
8947
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951
8952
8953
8954
8955hard_links=nottested
8956if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8957  # do not overwrite the value of need_locks provided by the user
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8959$as_echo_n "checking if we can lock with hard links... " >&6; }
8960  hard_links=yes
8961  $RM conftest*
8962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8963  touch conftest.a
8964  ln conftest.a conftest.b 2>&5 || hard_links=no
8965  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8967$as_echo "$hard_links" >&6; }
8968  if test no = "$hard_links"; then
8969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8970$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8971    need_locks=warn
8972  fi
8973else
8974  need_locks=no
8975fi
8976
8977
8978
8979
8980
8981
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8984
8985  runpath_var=
8986  allow_undefined_flag=
8987  always_export_symbols=no
8988  archive_cmds=
8989  archive_expsym_cmds=
8990  compiler_needs_object=no
8991  enable_shared_with_static_runtimes=no
8992  export_dynamic_flag_spec=
8993  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8994  hardcode_automatic=no
8995  hardcode_direct=no
8996  hardcode_direct_absolute=no
8997  hardcode_libdir_flag_spec=
8998  hardcode_libdir_separator=
8999  hardcode_minus_L=no
9000  hardcode_shlibpath_var=unsupported
9001  inherit_rpath=no
9002  link_all_deplibs=unknown
9003  module_cmds=
9004  module_expsym_cmds=
9005  old_archive_from_new_cmds=
9006  old_archive_from_expsyms_cmds=
9007  thread_safe_flag_spec=
9008  whole_archive_flag_spec=
9009  # include_expsyms should be a list of space-separated symbols to be *always*
9010  # included in the symbol list
9011  include_expsyms=
9012  # exclude_expsyms can be an extended regexp of symbols to exclude
9013  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9014  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9015  # as well as any symbol that contains 'd'.
9016  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018  # platforms (ab)use it in PIC code, but their linkers get confused if
9019  # the symbol is explicitly referenced.  Since portable code cannot
9020  # rely on this symbol name, it's probably fine to never include it in
9021  # preloaded symbol tables.
9022  # Exclude shared library initialization/finalization symbols.
9023  extract_expsyms_cmds=
9024
9025  case $host_os in
9026  cygwin* | mingw* | pw32* | cegcc*)
9027    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028    # When not using gcc, we currently assume that we are using
9029    # Microsoft Visual C++.
9030    if test yes != "$GCC"; then
9031      with_gnu_ld=no
9032    fi
9033    ;;
9034  interix*)
9035    # we just hope/assume this is gcc and not c89 (= MSVC++)
9036    with_gnu_ld=yes
9037    ;;
9038  openbsd* | bitrig*)
9039    with_gnu_ld=no
9040    ;;
9041  esac
9042
9043  ld_shlibs=yes
9044
9045  # On some targets, GNU ld is compatible enough with the native linker
9046  # that we're better off using the native interface for both.
9047  lt_use_gnu_ld_interface=no
9048  if test yes = "$with_gnu_ld"; then
9049    case $host_os in
9050      aix*)
9051	# The AIX port of GNU ld has always aspired to compatibility
9052	# with the native linker.  However, as the warning in the GNU ld
9053	# block says, versions before 2.19.5* couldn't really create working
9054	# shared libraries, regardless of the interface used.
9055	case `$LD -v 2>&1` in
9056	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9057	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9058	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9059	  *)
9060	    lt_use_gnu_ld_interface=yes
9061	    ;;
9062	esac
9063	;;
9064      *)
9065	lt_use_gnu_ld_interface=yes
9066	;;
9067    esac
9068  fi
9069
9070  if test yes = "$lt_use_gnu_ld_interface"; then
9071    # If archive_cmds runs LD, not CC, wlarc should be empty
9072    wlarc='$wl'
9073
9074    # Set some defaults for GNU ld with shared library support. These
9075    # are reset later if shared libraries are not supported. Putting them
9076    # here allows them to be overridden if necessary.
9077    runpath_var=LD_RUN_PATH
9078    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9079    export_dynamic_flag_spec='$wl--export-dynamic'
9080    # ancient GNU ld didn't support --whole-archive et. al.
9081    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9082      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9083    else
9084      whole_archive_flag_spec=
9085    fi
9086    supports_anon_versioning=no
9087    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9088      *GNU\ gold*) supports_anon_versioning=yes ;;
9089      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9090      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9091      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9092      *\ 2.11.*) ;; # other 2.11 versions
9093      *) supports_anon_versioning=yes ;;
9094    esac
9095
9096    # See if GNU ld supports shared libraries.
9097    case $host_os in
9098    aix[3-9]*)
9099      # On AIX/PPC, the GNU linker is very broken
9100      if test ia64 != "$host_cpu"; then
9101	ld_shlibs=no
9102	cat <<_LT_EOF 1>&2
9103
9104*** Warning: the GNU linker, at least up to release 2.19, is reported
9105*** to be unable to reliably create shared libraries on AIX.
9106*** Therefore, libtool is disabling shared libraries support.  If you
9107*** really care for shared libraries, you may want to install binutils
9108*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9109*** You will then need to restart the configuration process.
9110
9111_LT_EOF
9112      fi
9113      ;;
9114
9115    amigaos*)
9116      case $host_cpu in
9117      powerpc)
9118            # see comment about AmigaOS4 .so support
9119            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9120            archive_expsym_cmds=''
9121        ;;
9122      m68k)
9123            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)'
9124            hardcode_libdir_flag_spec='-L$libdir'
9125            hardcode_minus_L=yes
9126        ;;
9127      esac
9128      ;;
9129
9130    beos*)
9131      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132	allow_undefined_flag=unsupported
9133	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9134	# support --undefined.  This deserves some investigation.  FIXME
9135	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9136      else
9137	ld_shlibs=no
9138      fi
9139      ;;
9140
9141    cygwin* | mingw* | pw32* | cegcc*)
9142      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9143      # as there is no search path for DLLs.
9144      hardcode_libdir_flag_spec='-L$libdir'
9145      export_dynamic_flag_spec='$wl--export-all-symbols'
9146      allow_undefined_flag=unsupported
9147      always_export_symbols=no
9148      enable_shared_with_static_runtimes=yes
9149      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'
9150      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9151
9152      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9153        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154	# If the export-symbols file already is a .def file, use it as
9155	# is; otherwise, prepend EXPORTS...
9156	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9157          cp $export_symbols $output_objdir/$soname.def;
9158        else
9159          echo EXPORTS > $output_objdir/$soname.def;
9160          cat $export_symbols >> $output_objdir/$soname.def;
9161        fi~
9162        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9163      else
9164	ld_shlibs=no
9165      fi
9166      ;;
9167
9168    haiku*)
9169      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9170      link_all_deplibs=yes
9171      ;;
9172
9173    os2*)
9174      hardcode_libdir_flag_spec='-L$libdir'
9175      hardcode_minus_L=yes
9176      allow_undefined_flag=unsupported
9177      shrext_cmds=.dll
9178      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9179	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9180	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9181	$ECHO EXPORTS >> $output_objdir/$libname.def~
9182	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9183	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9184	emximp -o $lib $output_objdir/$libname.def'
9185      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9186	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9187	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9188	$ECHO EXPORTS >> $output_objdir/$libname.def~
9189	prefix_cmds="$SED"~
9190	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9191	  prefix_cmds="$prefix_cmds -e 1d";
9192	fi~
9193	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9194	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9195	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9196	emximp -o $lib $output_objdir/$libname.def'
9197      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9198      enable_shared_with_static_runtimes=yes
9199      ;;
9200
9201    interix[3-9]*)
9202      hardcode_direct=no
9203      hardcode_shlibpath_var=no
9204      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9205      export_dynamic_flag_spec='$wl-E'
9206      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9207      # Instead, shared libraries are loaded at an image base (0x10000000 by
9208      # default) and relocated if they conflict, which is a slow very memory
9209      # consuming and fragmenting process.  To avoid this, we pick a random,
9210      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9211      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9212      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9213      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'
9214      ;;
9215
9216    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9217      tmp_diet=no
9218      if test linux-dietlibc = "$host_os"; then
9219	case $cc_basename in
9220	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9221	esac
9222      fi
9223      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9224	 && test no = "$tmp_diet"
9225      then
9226	tmp_addflag=' $pic_flag'
9227	tmp_sharedflag='-shared'
9228	case $cc_basename,$host_cpu in
9229        pgcc*)				# Portland Group C compiler
9230	  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'
9231	  tmp_addflag=' $pic_flag'
9232	  ;;
9233	pgf77* | pgf90* | pgf95* | pgfortran*)
9234					# Portland Group f77 and f90 compilers
9235	  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'
9236	  tmp_addflag=' $pic_flag -Mnomain' ;;
9237	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9238	  tmp_addflag=' -i_dynamic' ;;
9239	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9240	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9241	ifc* | ifort*)			# Intel Fortran compiler
9242	  tmp_addflag=' -nofor_main' ;;
9243	lf95*)				# Lahey Fortran 8.1
9244	  whole_archive_flag_spec=
9245	  tmp_sharedflag='--shared' ;;
9246        nagfor*)                        # NAGFOR 5.3
9247          tmp_sharedflag='-Wl,-shared' ;;
9248	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9249	  tmp_sharedflag='-qmkshrobj'
9250	  tmp_addflag= ;;
9251	nvcc*)	# Cuda Compiler Driver 2.2
9252	  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'
9253	  compiler_needs_object=yes
9254	  ;;
9255	esac
9256	case `$CC -V 2>&1 | sed 5q` in
9257	*Sun\ C*)			# Sun C 5.9
9258	  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'
9259	  compiler_needs_object=yes
9260	  tmp_sharedflag='-G' ;;
9261	*Sun\ F*)			# Sun Fortran 8.3
9262	  tmp_sharedflag='-G' ;;
9263	esac
9264	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9265
9266        if test yes = "$supports_anon_versioning"; then
9267          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9268            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9269            echo "local: *; };" >> $output_objdir/$libname.ver~
9270            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9271        fi
9272
9273	case $cc_basename in
9274	tcc*)
9275	  export_dynamic_flag_spec='-rdynamic'
9276	  ;;
9277	xlf* | bgf* | bgxlf* | mpixlf*)
9278	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9279	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9280	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9281	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9282	  if test yes = "$supports_anon_versioning"; then
9283	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9284              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9285              echo "local: *; };" >> $output_objdir/$libname.ver~
9286              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9287	  fi
9288	  ;;
9289	esac
9290      else
9291        ld_shlibs=no
9292      fi
9293      ;;
9294
9295    netbsd*)
9296      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9298	wlarc=
9299      else
9300	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9301	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9302      fi
9303      ;;
9304
9305    solaris*)
9306      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9307	ld_shlibs=no
9308	cat <<_LT_EOF 1>&2
9309
9310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9311*** create shared libraries on Solaris systems.  Therefore, libtool
9312*** is disabling shared libraries support.  We urge you to upgrade GNU
9313*** binutils to release 2.9.1 or newer.  Another option is to modify
9314*** your PATH or compiler configuration so that the native linker is
9315*** used, and then restart.
9316
9317_LT_EOF
9318      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9321      else
9322	ld_shlibs=no
9323      fi
9324      ;;
9325
9326    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9327      case `$LD -v 2>&1` in
9328        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9329	ld_shlibs=no
9330	cat <<_LT_EOF 1>&2
9331
9332*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9333*** reliably create shared libraries on SCO systems.  Therefore, libtool
9334*** is disabling shared libraries support.  We urge you to upgrade GNU
9335*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9336*** your PATH or compiler configuration so that the native linker is
9337*** used, and then restart.
9338
9339_LT_EOF
9340	;;
9341	*)
9342	  # For security reasons, it is highly recommended that you always
9343	  # use absolute paths for naming shared libraries, and exclude the
9344	  # DT_RUNPATH tag from executables and libraries.  But doing so
9345	  # requires that you compile everything twice, which is a pain.
9346	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9347	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9348	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9350	  else
9351	    ld_shlibs=no
9352	  fi
9353	;;
9354      esac
9355      ;;
9356
9357    sunos4*)
9358      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9359      wlarc=
9360      hardcode_direct=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    *)
9365      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9367	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9368      else
9369	ld_shlibs=no
9370      fi
9371      ;;
9372    esac
9373
9374    if test no = "$ld_shlibs"; then
9375      runpath_var=
9376      hardcode_libdir_flag_spec=
9377      export_dynamic_flag_spec=
9378      whole_archive_flag_spec=
9379    fi
9380  else
9381    # PORTME fill in a description of your system's linker (not GNU ld)
9382    case $host_os in
9383    aix3*)
9384      allow_undefined_flag=unsupported
9385      always_export_symbols=yes
9386      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'
9387      # Note: this linker hardcodes the directories in LIBPATH if there
9388      # are no directories specified by -L.
9389      hardcode_minus_L=yes
9390      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9391	# Neither direct hardcoding nor static linking is supported with a
9392	# broken collect2.
9393	hardcode_direct=unsupported
9394      fi
9395      ;;
9396
9397    aix[4-9]*)
9398      if test ia64 = "$host_cpu"; then
9399	# On IA64, the linker does run time linking by default, so we don't
9400	# have to do anything special.
9401	aix_use_runtimelinking=no
9402	exp_sym_flag='-Bexport'
9403	no_entry_flag=
9404      else
9405	# If we're using GNU nm, then we don't want the "-C" option.
9406	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9407	# Without the "-l" option, or with the "-B" option, AIX nm treats
9408	# weak defined symbols like other global defined symbols, whereas
9409	# GNU nm marks them as "W".
9410	# While the 'weak' keyword is ignored in the Export File, we need
9411	# it in the Import File for the 'aix-soname' feature, so we have
9412	# to replace the "-B" option with "-P" for AIX nm.
9413	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9414	  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'
9415	else
9416	  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'
9417	fi
9418	aix_use_runtimelinking=no
9419
9420	# Test if we are trying to use run time linking or normal
9421	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9422	# have runtime linking enabled, and use it for executables.
9423	# For shared libraries, we enable/disable runtime linking
9424	# depending on the kind of the shared library created -
9425	# when "with_aix_soname,aix_use_runtimelinking" is:
9426	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9427	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9428	#            lib.a           static archive
9429	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9430	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9431	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9432	#            lib.a(lib.so.V) shared, rtl:no
9433	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9434	#            lib.a           static archive
9435	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9436	  for ld_flag in $LDFLAGS; do
9437	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9438	    aix_use_runtimelinking=yes
9439	    break
9440	  fi
9441	  done
9442	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9443	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9444	    # so we don't have lib.a shared libs to link our executables.
9445	    # We have to force runtime linking in this case.
9446	    aix_use_runtimelinking=yes
9447	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9448	  fi
9449	  ;;
9450	esac
9451
9452	exp_sym_flag='-bexport'
9453	no_entry_flag='-bnoentry'
9454      fi
9455
9456      # When large executables or shared objects are built, AIX ld can
9457      # have problems creating the table of contents.  If linking a library
9458      # or program results in "error TOC overflow" add -mminimal-toc to
9459      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9460      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9461
9462      archive_cmds=''
9463      hardcode_direct=yes
9464      hardcode_direct_absolute=yes
9465      hardcode_libdir_separator=':'
9466      link_all_deplibs=yes
9467      file_list_spec='$wl-f,'
9468      case $with_aix_soname,$aix_use_runtimelinking in
9469      aix,*) ;; # traditional, no import file
9470      svr4,* | *,yes) # use import file
9471	# The Import File defines what to hardcode.
9472	hardcode_direct=no
9473	hardcode_direct_absolute=no
9474	;;
9475      esac
9476
9477      if test yes = "$GCC"; then
9478	case $host_os in aix4.[012]|aix4.[012].*)
9479	# We only want to do this on AIX 4.2 and lower, the check
9480	# below for broken collect2 doesn't work under 4.3+
9481	  collect2name=`$CC -print-prog-name=collect2`
9482	  if test -f "$collect2name" &&
9483	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9484	  then
9485	  # We have reworked collect2
9486	  :
9487	  else
9488	  # We have old collect2
9489	  hardcode_direct=unsupported
9490	  # It fails to find uninstalled libraries when the uninstalled
9491	  # path is not listed in the libpath.  Setting hardcode_minus_L
9492	  # to unsupported forces relinking
9493	  hardcode_minus_L=yes
9494	  hardcode_libdir_flag_spec='-L$libdir'
9495	  hardcode_libdir_separator=
9496	  fi
9497	  ;;
9498	esac
9499	shared_flag='-shared'
9500	if test yes = "$aix_use_runtimelinking"; then
9501	  shared_flag="$shared_flag "'$wl-G'
9502	fi
9503	# Need to ensure runtime linking is disabled for the traditional
9504	# shared library, or the linker may eventually find shared libraries
9505	# /with/ Import File - we do not want to mix them.
9506	shared_flag_aix='-shared'
9507	shared_flag_svr4='-shared $wl-G'
9508      else
9509	# not using gcc
9510	if test ia64 = "$host_cpu"; then
9511	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9512	# chokes on -Wl,-G. The following line is correct:
9513	  shared_flag='-G'
9514	else
9515	  if test yes = "$aix_use_runtimelinking"; then
9516	    shared_flag='$wl-G'
9517	  else
9518	    shared_flag='$wl-bM:SRE'
9519	  fi
9520	  shared_flag_aix='$wl-bM:SRE'
9521	  shared_flag_svr4='$wl-G'
9522	fi
9523      fi
9524
9525      export_dynamic_flag_spec='$wl-bexpall'
9526      # It seems that -bexpall does not export symbols beginning with
9527      # underscore (_), so it is better to generate a list of symbols to export.
9528      always_export_symbols=yes
9529      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9530	# Warning - without using the other runtime loading flags (-brtl),
9531	# -berok will link without error, but may produce a broken library.
9532	allow_undefined_flag='-berok'
9533        # Determine the default libpath from the value encoded in an
9534        # empty executable.
9535        if test set = "${lt_cv_aix_libpath+set}"; then
9536  aix_libpath=$lt_cv_aix_libpath
9537else
9538  if ${lt_cv_aix_libpath_+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553
9554  lt_aix_libpath_sed='
9555      /Import File Strings/,/^$/ {
9556	  /^0/ {
9557	      s/^0  *\([^ ]*\) *$/\1/
9558	      p
9559	  }
9560      }'
9561  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562  # Check for a 64-bit object if we didn't find anything.
9563  if test -z "$lt_cv_aix_libpath_"; then
9564    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565  fi
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext conftest.$ac_ext
9569  if test -z "$lt_cv_aix_libpath_"; then
9570    lt_cv_aix_libpath_=/usr/lib:/lib
9571  fi
9572
9573fi
9574
9575  aix_libpath=$lt_cv_aix_libpath_
9576fi
9577
9578        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9579        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
9580      else
9581	if test ia64 = "$host_cpu"; then
9582	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9583	  allow_undefined_flag="-z nodefs"
9584	  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"
9585	else
9586	 # Determine the default libpath from the value encoded in an
9587	 # empty executable.
9588	 if test set = "${lt_cv_aix_libpath+set}"; then
9589  aix_libpath=$lt_cv_aix_libpath
9590else
9591  if ${lt_cv_aix_libpath_+:} false; then :
9592  $as_echo_n "(cached) " >&6
9593else
9594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h.  */
9596
9597int
9598main ()
9599{
9600
9601  ;
9602  return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606
9607  lt_aix_libpath_sed='
9608      /Import File Strings/,/^$/ {
9609	  /^0/ {
9610	      s/^0  *\([^ ]*\) *$/\1/
9611	      p
9612	  }
9613      }'
9614  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615  # Check for a 64-bit object if we didn't find anything.
9616  if test -z "$lt_cv_aix_libpath_"; then
9617    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618  fi
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621    conftest$ac_exeext conftest.$ac_ext
9622  if test -z "$lt_cv_aix_libpath_"; then
9623    lt_cv_aix_libpath_=/usr/lib:/lib
9624  fi
9625
9626fi
9627
9628  aix_libpath=$lt_cv_aix_libpath_
9629fi
9630
9631	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9632	  # Warning - without using the other run time loading flags,
9633	  # -berok will link without error, but may produce a broken library.
9634	  no_undefined_flag=' $wl-bernotok'
9635	  allow_undefined_flag=' $wl-berok'
9636	  if test yes = "$with_gnu_ld"; then
9637	    # We only use this code for GNU lds that support --whole-archive.
9638	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9639	  else
9640	    # Exported symbols can be pulled into shared objects from archives
9641	    whole_archive_flag_spec='$convenience'
9642	  fi
9643	  archive_cmds_need_lc=yes
9644	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9645	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9646	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9647	  if test svr4 != "$with_aix_soname"; then
9648	    # This is similar to how AIX traditionally builds its shared libraries.
9649	    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'
9650	  fi
9651	  if test aix != "$with_aix_soname"; then
9652	    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'
9653	  else
9654	    # used by -dlpreopen to get the symbols
9655	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9656	  fi
9657	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9658	fi
9659      fi
9660      ;;
9661
9662    amigaos*)
9663      case $host_cpu in
9664      powerpc)
9665            # see comment about AmigaOS4 .so support
9666            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667            archive_expsym_cmds=''
9668        ;;
9669      m68k)
9670            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)'
9671            hardcode_libdir_flag_spec='-L$libdir'
9672            hardcode_minus_L=yes
9673        ;;
9674      esac
9675      ;;
9676
9677    bsdi[45]*)
9678      export_dynamic_flag_spec=-rdynamic
9679      ;;
9680
9681    cygwin* | mingw* | pw32* | cegcc*)
9682      # When not using gcc, we currently assume that we are using
9683      # Microsoft Visual C++.
9684      # hardcode_libdir_flag_spec is actually meaningless, as there is
9685      # no search path for DLLs.
9686      case $cc_basename in
9687      cl*)
9688	# Native MSVC
9689	hardcode_libdir_flag_spec=' '
9690	allow_undefined_flag=unsupported
9691	always_export_symbols=yes
9692	file_list_spec='@'
9693	# Tell ltmain to make .lib files, not .a files.
9694	libext=lib
9695	# Tell ltmain to make .dll files, not .so files.
9696	shrext_cmds=.dll
9697	# FIXME: Setting linknames here is a bad hack.
9698	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9699	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9700            cp "$export_symbols" "$output_objdir/$soname.def";
9701            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9702          else
9703            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9704          fi~
9705          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9706          linknames='
9707	# The linker will not automatically build a static lib if we build a DLL.
9708	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9709	enable_shared_with_static_runtimes=yes
9710	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9711	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9712	# Don't use ranlib
9713	old_postinstall_cmds='chmod 644 $oldlib'
9714	postlink_cmds='lt_outputfile="@OUTPUT@"~
9715          lt_tool_outputfile="@TOOL_OUTPUT@"~
9716          case $lt_outputfile in
9717            *.exe|*.EXE) ;;
9718            *)
9719              lt_outputfile=$lt_outputfile.exe
9720              lt_tool_outputfile=$lt_tool_outputfile.exe
9721              ;;
9722          esac~
9723          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9724            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9725            $RM "$lt_outputfile.manifest";
9726          fi'
9727	;;
9728      *)
9729	# Assume MSVC wrapper
9730	hardcode_libdir_flag_spec=' '
9731	allow_undefined_flag=unsupported
9732	# Tell ltmain to make .lib files, not .a files.
9733	libext=lib
9734	# Tell ltmain to make .dll files, not .so files.
9735	shrext_cmds=.dll
9736	# FIXME: Setting linknames here is a bad hack.
9737	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9738	# The linker will automatically build a .lib file if we build a DLL.
9739	old_archive_from_new_cmds='true'
9740	# FIXME: Should let the user specify the lib program.
9741	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9742	enable_shared_with_static_runtimes=yes
9743	;;
9744      esac
9745      ;;
9746
9747    darwin* | rhapsody*)
9748
9749
9750  archive_cmds_need_lc=no
9751  hardcode_direct=no
9752  hardcode_automatic=yes
9753  hardcode_shlibpath_var=unsupported
9754  if test yes = "$lt_cv_ld_force_load"; then
9755    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\"`'
9756
9757  else
9758    whole_archive_flag_spec=''
9759  fi
9760  link_all_deplibs=yes
9761  allow_undefined_flag=$_lt_dar_allow_undefined
9762  case $cc_basename in
9763     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9764     *) _lt_dar_can_shared=$GCC ;;
9765  esac
9766  if test yes = "$_lt_dar_can_shared"; then
9767    output_verbose_link_cmd=func_echo_all
9768    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9769    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9770    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"
9771    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"
9772
9773  else
9774  ld_shlibs=no
9775  fi
9776
9777      ;;
9778
9779    dgux*)
9780      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781      hardcode_libdir_flag_spec='-L$libdir'
9782      hardcode_shlibpath_var=no
9783      ;;
9784
9785    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9786    # support.  Future versions do this automatically, but an explicit c++rt0.o
9787    # does not break anything, and helps significantly (at the cost of a little
9788    # extra space).
9789    freebsd2.2*)
9790      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9791      hardcode_libdir_flag_spec='-R$libdir'
9792      hardcode_direct=yes
9793      hardcode_shlibpath_var=no
9794      ;;
9795
9796    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9797    freebsd2.*)
9798      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799      hardcode_direct=yes
9800      hardcode_minus_L=yes
9801      hardcode_shlibpath_var=no
9802      ;;
9803
9804    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9805    freebsd* | dragonfly*)
9806      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9807      hardcode_libdir_flag_spec='-R$libdir'
9808      hardcode_direct=yes
9809      hardcode_shlibpath_var=no
9810      ;;
9811
9812    hpux9*)
9813      if test yes = "$GCC"; then
9814	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'
9815      else
9816	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'
9817      fi
9818      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9819      hardcode_libdir_separator=:
9820      hardcode_direct=yes
9821
9822      # hardcode_minus_L: Not really in the search PATH,
9823      # but as the default location of the library.
9824      hardcode_minus_L=yes
9825      export_dynamic_flag_spec='$wl-E'
9826      ;;
9827
9828    hpux10*)
9829      if test yes,no = "$GCC,$with_gnu_ld"; then
9830	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831      else
9832	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833      fi
9834      if test no = "$with_gnu_ld"; then
9835	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9836	hardcode_libdir_separator=:
9837	hardcode_direct=yes
9838	hardcode_direct_absolute=yes
9839	export_dynamic_flag_spec='$wl-E'
9840	# hardcode_minus_L: Not really in the search PATH,
9841	# but as the default location of the library.
9842	hardcode_minus_L=yes
9843      fi
9844      ;;
9845
9846    hpux11*)
9847      if test yes,no = "$GCC,$with_gnu_ld"; then
9848	case $host_cpu in
9849	hppa*64*)
9850	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9851	  ;;
9852	ia64*)
9853	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854	  ;;
9855	*)
9856	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857	  ;;
9858	esac
9859      else
9860	case $host_cpu in
9861	hppa*64*)
9862	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9863	  ;;
9864	ia64*)
9865	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9866	  ;;
9867	*)
9868
9869	  # Older versions of the 11.00 compiler do not understand -b yet
9870	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872$as_echo_n "checking if $CC understands -b... " >&6; }
9873if ${lt_cv_prog_compiler__b+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  lt_cv_prog_compiler__b=no
9877   save_LDFLAGS=$LDFLAGS
9878   LDFLAGS="$LDFLAGS -b"
9879   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9880   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9881     # The linker can only warn and ignore the option if not recognized
9882     # So say no if there are warnings
9883     if test -s conftest.err; then
9884       # Append any errors to the config.log.
9885       cat conftest.err 1>&5
9886       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9887       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888       if diff conftest.exp conftest.er2 >/dev/null; then
9889         lt_cv_prog_compiler__b=yes
9890       fi
9891     else
9892       lt_cv_prog_compiler__b=yes
9893     fi
9894   fi
9895   $RM -r conftest*
9896   LDFLAGS=$save_LDFLAGS
9897
9898fi
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900$as_echo "$lt_cv_prog_compiler__b" >&6; }
9901
9902if test yes = "$lt_cv_prog_compiler__b"; then
9903    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904else
9905    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9906fi
9907
9908	  ;;
9909	esac
9910      fi
9911      if test no = "$with_gnu_ld"; then
9912	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9913	hardcode_libdir_separator=:
9914
9915	case $host_cpu in
9916	hppa*64*|ia64*)
9917	  hardcode_direct=no
9918	  hardcode_shlibpath_var=no
9919	  ;;
9920	*)
9921	  hardcode_direct=yes
9922	  hardcode_direct_absolute=yes
9923	  export_dynamic_flag_spec='$wl-E'
9924
9925	  # hardcode_minus_L: Not really in the search PATH,
9926	  # but as the default location of the library.
9927	  hardcode_minus_L=yes
9928	  ;;
9929	esac
9930      fi
9931      ;;
9932
9933    irix5* | irix6* | nonstopux*)
9934      if test yes = "$GCC"; then
9935	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'
9936	# Try to use the -exported_symbol ld option, if it does not
9937	# work, assume that -exports_file does not work either and
9938	# implicitly export all symbols.
9939	# This should be the same for all languages, so no per-tag cache variable.
9940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9941$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9942if ${lt_cv_irix_exported_symbol+:} false; then :
9943  $as_echo_n "(cached) " >&6
9944else
9945  save_LDFLAGS=$LDFLAGS
9946	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9947	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int foo (void) { return 0; }
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952  lt_cv_irix_exported_symbol=yes
9953else
9954  lt_cv_irix_exported_symbol=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext \
9957    conftest$ac_exeext conftest.$ac_ext
9958           LDFLAGS=$save_LDFLAGS
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9961$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9962	if test yes = "$lt_cv_irix_exported_symbol"; then
9963          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'
9964	fi
9965      else
9966	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'
9967	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'
9968      fi
9969      archive_cmds_need_lc='no'
9970      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971      hardcode_libdir_separator=:
9972      inherit_rpath=yes
9973      link_all_deplibs=yes
9974      ;;
9975
9976    linux*)
9977      case $cc_basename in
9978      tcc*)
9979	# Fabrice Bellard et al's Tiny C Compiler
9980	ld_shlibs=yes
9981	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9982	;;
9983      esac
9984      ;;
9985
9986    netbsd*)
9987      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9988	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9989      else
9990	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9991      fi
9992      hardcode_libdir_flag_spec='-R$libdir'
9993      hardcode_direct=yes
9994      hardcode_shlibpath_var=no
9995      ;;
9996
9997    newsos6)
9998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999      hardcode_direct=yes
10000      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10001      hardcode_libdir_separator=:
10002      hardcode_shlibpath_var=no
10003      ;;
10004
10005    *nto* | *qnx*)
10006      ;;
10007
10008    openbsd* | bitrig*)
10009      if test -f /usr/libexec/ld.so; then
10010	hardcode_direct=yes
10011	hardcode_shlibpath_var=no
10012	hardcode_direct_absolute=yes
10013	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10014	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10016	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10017	  export_dynamic_flag_spec='$wl-E'
10018	else
10019	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10020	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021	fi
10022      else
10023	ld_shlibs=no
10024      fi
10025      ;;
10026
10027    os2*)
10028      hardcode_libdir_flag_spec='-L$libdir'
10029      hardcode_minus_L=yes
10030      allow_undefined_flag=unsupported
10031      shrext_cmds=.dll
10032      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10033	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10034	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10035	$ECHO EXPORTS >> $output_objdir/$libname.def~
10036	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10037	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10038	emximp -o $lib $output_objdir/$libname.def'
10039      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10040	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10041	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10042	$ECHO EXPORTS >> $output_objdir/$libname.def~
10043	prefix_cmds="$SED"~
10044	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10045	  prefix_cmds="$prefix_cmds -e 1d";
10046	fi~
10047	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10048	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10049	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10050	emximp -o $lib $output_objdir/$libname.def'
10051      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10052      enable_shared_with_static_runtimes=yes
10053      ;;
10054
10055    osf3*)
10056      if test yes = "$GCC"; then
10057	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10058	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'
10059      else
10060	allow_undefined_flag=' -expect_unresolved \*'
10061	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'
10062      fi
10063      archive_cmds_need_lc='no'
10064      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10065      hardcode_libdir_separator=:
10066      ;;
10067
10068    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10069      if test yes = "$GCC"; then
10070	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10071	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'
10072	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073      else
10074	allow_undefined_flag=' -expect_unresolved \*'
10075	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'
10076	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~
10077          $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'
10078
10079	# Both c and cxx compiler support -rpath directly
10080	hardcode_libdir_flag_spec='-rpath $libdir'
10081      fi
10082      archive_cmds_need_lc='no'
10083      hardcode_libdir_separator=:
10084      ;;
10085
10086    solaris*)
10087      no_undefined_flag=' -z defs'
10088      if test yes = "$GCC"; then
10089	wlarc='$wl'
10090	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10091	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092          $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'
10093      else
10094	case `$CC -V 2>&1` in
10095	*"Compilers 5.0"*)
10096	  wlarc=''
10097	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10100	  ;;
10101	*)
10102	  wlarc='$wl'
10103	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10106	  ;;
10107	esac
10108      fi
10109      hardcode_libdir_flag_spec='-R$libdir'
10110      hardcode_shlibpath_var=no
10111      case $host_os in
10112      solaris2.[0-5] | solaris2.[0-5].*) ;;
10113      *)
10114	# The compiler driver will combine and reorder linker options,
10115	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10116	# but is careful enough not to reorder.
10117	# Supported since Solaris 2.6 (maybe 2.5.1?)
10118	if test yes = "$GCC"; then
10119	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10120	else
10121	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10122	fi
10123	;;
10124      esac
10125      link_all_deplibs=yes
10126      ;;
10127
10128    sunos4*)
10129      if test sequent = "$host_vendor"; then
10130	# Use $CC to link under sequent, because it throws in some extra .o
10131	# files that make .init and .fini sections work.
10132	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133      else
10134	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10135      fi
10136      hardcode_libdir_flag_spec='-L$libdir'
10137      hardcode_direct=yes
10138      hardcode_minus_L=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    sysv4)
10143      case $host_vendor in
10144	sni)
10145	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146	  hardcode_direct=yes # is this really true???
10147	;;
10148	siemens)
10149	  ## LD is ld it makes a PLAMLIB
10150	  ## CC just makes a GrossModule.
10151	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10152	  reload_cmds='$CC -r -o $output$reload_objs'
10153	  hardcode_direct=no
10154        ;;
10155	motorola)
10156	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10158	;;
10159      esac
10160      runpath_var='LD_RUN_PATH'
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    sysv4.3*)
10165      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166      hardcode_shlibpath_var=no
10167      export_dynamic_flag_spec='-Bexport'
10168      ;;
10169
10170    sysv4*MP*)
10171      if test -d /usr/nec; then
10172	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173	hardcode_shlibpath_var=no
10174	runpath_var=LD_RUN_PATH
10175	hardcode_runpath_var=yes
10176	ld_shlibs=yes
10177      fi
10178      ;;
10179
10180    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10181      no_undefined_flag='$wl-z,text'
10182      archive_cmds_need_lc=no
10183      hardcode_shlibpath_var=no
10184      runpath_var='LD_RUN_PATH'
10185
10186      if test yes = "$GCC"; then
10187	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189      else
10190	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192      fi
10193      ;;
10194
10195    sysv5* | sco3.2v5* | sco5v6*)
10196      # Note: We CANNOT use -z defs as we might desire, because we do not
10197      # link with -lc, and that would cause any symbols used from libc to
10198      # always be unresolved, which means just about no library would
10199      # ever link correctly.  If we're not using GNU ld we use -z text
10200      # though, which does catch some bad symbols but isn't as heavy-handed
10201      # as -z defs.
10202      no_undefined_flag='$wl-z,text'
10203      allow_undefined_flag='$wl-z,nodefs'
10204      archive_cmds_need_lc=no
10205      hardcode_shlibpath_var=no
10206      hardcode_libdir_flag_spec='$wl-R,$libdir'
10207      hardcode_libdir_separator=':'
10208      link_all_deplibs=yes
10209      export_dynamic_flag_spec='$wl-Bexport'
10210      runpath_var='LD_RUN_PATH'
10211
10212      if test yes = "$GCC"; then
10213	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215      else
10216	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218      fi
10219      ;;
10220
10221    uts4*)
10222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223      hardcode_libdir_flag_spec='-L$libdir'
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    *)
10228      ld_shlibs=no
10229      ;;
10230    esac
10231
10232    if test sni = "$host_vendor"; then
10233      case $host in
10234      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10235	export_dynamic_flag_spec='$wl-Blargedynsym'
10236	;;
10237      esac
10238    fi
10239  fi
10240
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10242$as_echo "$ld_shlibs" >&6; }
10243test no = "$ld_shlibs" && can_build_shared=no
10244
10245with_gnu_ld=$with_gnu_ld
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261#
10262# Do we need to explicitly link libc?
10263#
10264case "x$archive_cmds_need_lc" in
10265x|xyes)
10266  # Assume -lc should be added
10267  archive_cmds_need_lc=yes
10268
10269  if test yes,yes = "$GCC,$enable_shared"; then
10270    case $archive_cmds in
10271    *'~'*)
10272      # FIXME: we may have to deal with multi-command sequences.
10273      ;;
10274    '$CC '*)
10275      # Test whether the compiler implicitly links with -lc since on some
10276      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10277      # to ld, don't add -lc before -lgcc.
10278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10279$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10280if ${lt_cv_archive_cmds_need_lc+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  $RM conftest*
10284	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10285
10286	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10287  (eval $ac_compile) 2>&5
10288  ac_status=$?
10289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290  test $ac_status = 0; } 2>conftest.err; then
10291	  soname=conftest
10292	  lib=conftest
10293	  libobjs=conftest.$ac_objext
10294	  deplibs=
10295	  wl=$lt_prog_compiler_wl
10296	  pic_flag=$lt_prog_compiler_pic
10297	  compiler_flags=-v
10298	  linker_flags=-v
10299	  verstring=
10300	  output_objdir=.
10301	  libname=conftest
10302	  lt_save_allow_undefined_flag=$allow_undefined_flag
10303	  allow_undefined_flag=
10304	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10305  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10306  ac_status=$?
10307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308  test $ac_status = 0; }
10309	  then
10310	    lt_cv_archive_cmds_need_lc=no
10311	  else
10312	    lt_cv_archive_cmds_need_lc=yes
10313	  fi
10314	  allow_undefined_flag=$lt_save_allow_undefined_flag
10315	else
10316	  cat conftest.err 1>&5
10317	fi
10318	$RM conftest*
10319
10320fi
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10322$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10323      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10324      ;;
10325    esac
10326  fi
10327  ;;
10328esac
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10482$as_echo_n "checking dynamic linker characteristics... " >&6; }
10483
10484if test yes = "$GCC"; then
10485  case $host_os in
10486    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10487    *) lt_awk_arg='/^libraries:/' ;;
10488  esac
10489  case $host_os in
10490    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10491    *) lt_sed_strip_eq='s|=/|/|g' ;;
10492  esac
10493  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10494  case $lt_search_path_spec in
10495  *\;*)
10496    # if the path contains ";" then we assume it to be the separator
10497    # otherwise default to the standard path separator (i.e. ":") - it is
10498    # assumed that no part of a normal pathname contains ";" but that should
10499    # okay in the real world where ";" in dirpaths is itself problematic.
10500    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10501    ;;
10502  *)
10503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10504    ;;
10505  esac
10506  # Ok, now we have the path, separated by spaces, we can step through it
10507  # and add multilib dir if necessary...
10508  lt_tmp_lt_search_path_spec=
10509  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10510  # ...but if some path component already ends with the multilib dir we assume
10511  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10512  case "$lt_multi_os_dir; $lt_search_path_spec " in
10513  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10514    lt_multi_os_dir=
10515    ;;
10516  esac
10517  for lt_sys_path in $lt_search_path_spec; do
10518    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10519      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10520    elif test -n "$lt_multi_os_dir"; then
10521      test -d "$lt_sys_path" && \
10522	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10523    fi
10524  done
10525  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10526BEGIN {RS = " "; FS = "/|\n";} {
10527  lt_foo = "";
10528  lt_count = 0;
10529  for (lt_i = NF; lt_i > 0; lt_i--) {
10530    if ($lt_i != "" && $lt_i != ".") {
10531      if ($lt_i == "..") {
10532        lt_count++;
10533      } else {
10534        if (lt_count == 0) {
10535          lt_foo = "/" $lt_i lt_foo;
10536        } else {
10537          lt_count--;
10538        }
10539      }
10540    }
10541  }
10542  if (lt_foo != "") { lt_freq[lt_foo]++; }
10543  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10544}'`
10545  # AWK program above erroneously prepends '/' to C:/dos/paths
10546  # for these hosts.
10547  case $host_os in
10548    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10549      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10550  esac
10551  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10552else
10553  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554fi
10555library_names_spec=
10556libname_spec='lib$name'
10557soname_spec=
10558shrext_cmds=.so
10559postinstall_cmds=
10560postuninstall_cmds=
10561finish_cmds=
10562finish_eval=
10563shlibpath_var=
10564shlibpath_overrides_runpath=unknown
10565version_type=none
10566dynamic_linker="$host_os ld.so"
10567sys_lib_dlsearch_path_spec="/lib /usr/lib"
10568need_lib_prefix=unknown
10569hardcode_into_libs=no
10570
10571# when you set need_version to no, make sure it does not cause -set_version
10572# flags to be left without arguments
10573need_version=unknown
10574
10575
10576
10577case $host_os in
10578aix3*)
10579  version_type=linux # correct to gnu/linux during the next big refactor
10580  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10581  shlibpath_var=LIBPATH
10582
10583  # AIX 3 has no versioning support, so we append a major version to the name.
10584  soname_spec='$libname$release$shared_ext$major'
10585  ;;
10586
10587aix[4-9]*)
10588  version_type=linux # correct to gnu/linux during the next big refactor
10589  need_lib_prefix=no
10590  need_version=no
10591  hardcode_into_libs=yes
10592  if test ia64 = "$host_cpu"; then
10593    # AIX 5 supports IA64
10594    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10595    shlibpath_var=LD_LIBRARY_PATH
10596  else
10597    # With GCC up to 2.95.x, collect2 would create an import file
10598    # for dependence libraries.  The import file would start with
10599    # the line '#! .'.  This would cause the generated library to
10600    # depend on '.', always an invalid library.  This was fixed in
10601    # development snapshots of GCC prior to 3.0.
10602    case $host_os in
10603      aix4 | aix4.[01] | aix4.[01].*)
10604      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10605	   echo ' yes '
10606	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10607	:
10608      else
10609	can_build_shared=no
10610      fi
10611      ;;
10612    esac
10613    # Using Import Files as archive members, it is possible to support
10614    # filename-based versioning of shared library archives on AIX. While
10615    # this would work for both with and without runtime linking, it will
10616    # prevent static linking of such archives. So we do filename-based
10617    # shared library versioning with .so extension only, which is used
10618    # when both runtime linking and shared linking is enabled.
10619    # Unfortunately, runtime linking may impact performance, so we do
10620    # not want this to be the default eventually. Also, we use the
10621    # versioned .so libs for executables only if there is the -brtl
10622    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10623    # To allow for filename-based versioning support, we need to create
10624    # libNAME.so.V as an archive file, containing:
10625    # *) an Import File, referring to the versioned filename of the
10626    #    archive as well as the shared archive member, telling the
10627    #    bitwidth (32 or 64) of that shared object, and providing the
10628    #    list of exported symbols of that shared object, eventually
10629    #    decorated with the 'weak' keyword
10630    # *) the shared object with the F_LOADONLY flag set, to really avoid
10631    #    it being seen by the linker.
10632    # At run time we better use the real file rather than another symlink,
10633    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10634
10635    case $with_aix_soname,$aix_use_runtimelinking in
10636    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10637    # soname into executable. Probably we can add versioning support to
10638    # collect2, so additional links can be useful in future.
10639    aix,yes) # traditional libtool
10640      dynamic_linker='AIX unversionable lib.so'
10641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642      # instead of lib<name>.a to let people know that these are not
10643      # typical AIX shared libraries.
10644      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10645      ;;
10646    aix,no) # traditional AIX only
10647      dynamic_linker='AIX lib.a(lib.so.V)'
10648      # We preserve .a as extension for shared libraries through AIX4.2
10649      # and later when we are not doing run time linking.
10650      library_names_spec='$libname$release.a $libname.a'
10651      soname_spec='$libname$release$shared_ext$major'
10652      ;;
10653    svr4,*) # full svr4 only
10654      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10655      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10656      # We do not specify a path in Import Files, so LIBPATH fires.
10657      shlibpath_overrides_runpath=yes
10658      ;;
10659    *,yes) # both, prefer svr4
10660      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10661      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10662      # unpreferred sharedlib libNAME.a needs extra handling
10663      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"'
10664      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"'
10665      # We do not specify a path in Import Files, so LIBPATH fires.
10666      shlibpath_overrides_runpath=yes
10667      ;;
10668    *,no) # both, prefer aix
10669      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10670      library_names_spec='$libname$release.a $libname.a'
10671      soname_spec='$libname$release$shared_ext$major'
10672      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10673      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)'
10674      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"'
10675      ;;
10676    esac
10677    shlibpath_var=LIBPATH
10678  fi
10679  ;;
10680
10681amigaos*)
10682  case $host_cpu in
10683  powerpc)
10684    # Since July 2007 AmigaOS4 officially supports .so libraries.
10685    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10687    ;;
10688  m68k)
10689    library_names_spec='$libname.ixlibrary $libname.a'
10690    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10691    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'
10692    ;;
10693  esac
10694  ;;
10695
10696beos*)
10697  library_names_spec='$libname$shared_ext'
10698  dynamic_linker="$host_os ld.so"
10699  shlibpath_var=LIBRARY_PATH
10700  ;;
10701
10702bsdi[45]*)
10703  version_type=linux # correct to gnu/linux during the next big refactor
10704  need_version=no
10705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10706  soname_spec='$libname$release$shared_ext$major'
10707  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10708  shlibpath_var=LD_LIBRARY_PATH
10709  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10710  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10711  # the default ld.so.conf also contains /usr/contrib/lib and
10712  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10713  # libtool to hard-code these into programs
10714  ;;
10715
10716cygwin* | mingw* | pw32* | cegcc*)
10717  version_type=windows
10718  shrext_cmds=.dll
10719  need_version=no
10720  need_lib_prefix=no
10721
10722  case $GCC,$cc_basename in
10723  yes,*)
10724    # gcc
10725    library_names_spec='$libname.dll.a'
10726    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727    postinstall_cmds='base_file=`basename \$file`~
10728      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10729      dldir=$destdir/`dirname \$dlpath`~
10730      test -d \$dldir || mkdir -p \$dldir~
10731      $install_prog $dir/$dlname \$dldir/$dlname~
10732      chmod a+x \$dldir/$dlname~
10733      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10734        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10735      fi'
10736    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10737      dlpath=$dir/\$dldll~
10738       $RM \$dlpath'
10739    shlibpath_overrides_runpath=yes
10740
10741    case $host_os in
10742    cygwin*)
10743      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10744      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10745
10746      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10747      ;;
10748    mingw* | cegcc*)
10749      # MinGW DLLs use traditional 'lib' prefix
10750      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10751      ;;
10752    pw32*)
10753      # pw32 DLLs use 'pw' prefix rather than 'lib'
10754      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10755      ;;
10756    esac
10757    dynamic_linker='Win32 ld.exe'
10758    ;;
10759
10760  *,cl*)
10761    # Native MSVC
10762    libname_spec='$name'
10763    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10764    library_names_spec='$libname.dll.lib'
10765
10766    case $build_os in
10767    mingw*)
10768      sys_lib_search_path_spec=
10769      lt_save_ifs=$IFS
10770      IFS=';'
10771      for lt_path in $LIB
10772      do
10773        IFS=$lt_save_ifs
10774        # Let DOS variable expansion print the short 8.3 style file name.
10775        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10776        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10777      done
10778      IFS=$lt_save_ifs
10779      # Convert to MSYS style.
10780      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10781      ;;
10782    cygwin*)
10783      # Convert to unix form, then to dos form, then back to unix form
10784      # but this time dos style (no spaces!) so that the unix form looks
10785      # like /cygdrive/c/PROGRA~1:/cygdr...
10786      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10787      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10788      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789      ;;
10790    *)
10791      sys_lib_search_path_spec=$LIB
10792      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10793        # It is most probably a Windows format PATH.
10794        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10795      else
10796        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797      fi
10798      # FIXME: find the short name or the path components, as spaces are
10799      # common. (e.g. "Program Files" -> "PROGRA~1")
10800      ;;
10801    esac
10802
10803    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10804    postinstall_cmds='base_file=`basename \$file`~
10805      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10806      dldir=$destdir/`dirname \$dlpath`~
10807      test -d \$dldir || mkdir -p \$dldir~
10808      $install_prog $dir/$dlname \$dldir/$dlname'
10809    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810      dlpath=$dir/\$dldll~
10811       $RM \$dlpath'
10812    shlibpath_overrides_runpath=yes
10813    dynamic_linker='Win32 link.exe'
10814    ;;
10815
10816  *)
10817    # Assume MSVC wrapper
10818    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10819    dynamic_linker='Win32 ld.exe'
10820    ;;
10821  esac
10822  # FIXME: first we should search . and the directory the executable is in
10823  shlibpath_var=PATH
10824  ;;
10825
10826darwin* | rhapsody*)
10827  dynamic_linker="$host_os dyld"
10828  version_type=darwin
10829  need_lib_prefix=no
10830  need_version=no
10831  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10832  soname_spec='$libname$release$major$shared_ext'
10833  shlibpath_overrides_runpath=yes
10834  shlibpath_var=DYLD_LIBRARY_PATH
10835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10836
10837  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10839  ;;
10840
10841dgux*)
10842  version_type=linux # correct to gnu/linux during the next big refactor
10843  need_lib_prefix=no
10844  need_version=no
10845  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846  soname_spec='$libname$release$shared_ext$major'
10847  shlibpath_var=LD_LIBRARY_PATH
10848  ;;
10849
10850freebsd* | dragonfly*)
10851  # DragonFly does not have aout.  When/if they implement a new
10852  # versioning mechanism, adjust this.
10853  if test -x /usr/bin/objformat; then
10854    objformat=`/usr/bin/objformat`
10855  else
10856    case $host_os in
10857    freebsd[23].*) objformat=aout ;;
10858    *) objformat=elf ;;
10859    esac
10860  fi
10861  version_type=freebsd-$objformat
10862  case $version_type in
10863    freebsd-elf*)
10864      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10865      soname_spec='$libname$release$shared_ext$major'
10866      need_version=no
10867      need_lib_prefix=no
10868      ;;
10869    freebsd-*)
10870      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10871      need_version=yes
10872      ;;
10873  esac
10874  shlibpath_var=LD_LIBRARY_PATH
10875  case $host_os in
10876  freebsd2.*)
10877    shlibpath_overrides_runpath=yes
10878    ;;
10879  freebsd3.[01]* | freebsdelf3.[01]*)
10880    shlibpath_overrides_runpath=yes
10881    hardcode_into_libs=yes
10882    ;;
10883  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10884  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10885    shlibpath_overrides_runpath=no
10886    hardcode_into_libs=yes
10887    ;;
10888  *) # from 4.6 on, and DragonFly
10889    shlibpath_overrides_runpath=yes
10890    hardcode_into_libs=yes
10891    ;;
10892  esac
10893  ;;
10894
10895haiku*)
10896  version_type=linux # correct to gnu/linux during the next big refactor
10897  need_lib_prefix=no
10898  need_version=no
10899  dynamic_linker="$host_os runtime_loader"
10900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901  soname_spec='$libname$release$shared_ext$major'
10902  shlibpath_var=LIBRARY_PATH
10903  shlibpath_overrides_runpath=no
10904  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905  hardcode_into_libs=yes
10906  ;;
10907
10908hpux9* | hpux10* | hpux11*)
10909  # Give a soname corresponding to the major version so that dld.sl refuses to
10910  # link against other versions.
10911  version_type=sunos
10912  need_lib_prefix=no
10913  need_version=no
10914  case $host_cpu in
10915  ia64*)
10916    shrext_cmds='.so'
10917    hardcode_into_libs=yes
10918    dynamic_linker="$host_os dld.so"
10919    shlibpath_var=LD_LIBRARY_PATH
10920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
10924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10926    else
10927      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10928      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10929    fi
10930    ;;
10931  hppa*64*)
10932    shrext_cmds='.sl'
10933    hardcode_into_libs=yes
10934    dynamic_linker="$host_os dld.sl"
10935    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10936    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938    soname_spec='$libname$release$shared_ext$major'
10939    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10940    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10941    ;;
10942  *)
10943    shrext_cmds='.sl'
10944    dynamic_linker="$host_os dld.sl"
10945    shlibpath_var=SHLIB_PATH
10946    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10947    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948    soname_spec='$libname$release$shared_ext$major'
10949    ;;
10950  esac
10951  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10952  postinstall_cmds='chmod 555 $lib'
10953  # or fails outright, so override atomically:
10954  install_override_mode=555
10955  ;;
10956
10957interix[3-9]*)
10958  version_type=linux # correct to gnu/linux during the next big refactor
10959  need_lib_prefix=no
10960  need_version=no
10961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962  soname_spec='$libname$release$shared_ext$major'
10963  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10964  shlibpath_var=LD_LIBRARY_PATH
10965  shlibpath_overrides_runpath=no
10966  hardcode_into_libs=yes
10967  ;;
10968
10969irix5* | irix6* | nonstopux*)
10970  case $host_os in
10971    nonstopux*) version_type=nonstopux ;;
10972    *)
10973	if test yes = "$lt_cv_prog_gnu_ld"; then
10974		version_type=linux # correct to gnu/linux during the next big refactor
10975	else
10976		version_type=irix
10977	fi ;;
10978  esac
10979  need_lib_prefix=no
10980  need_version=no
10981  soname_spec='$libname$release$shared_ext$major'
10982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10983  case $host_os in
10984  irix5* | nonstopux*)
10985    libsuff= shlibsuff=
10986    ;;
10987  *)
10988    case $LD in # libtool.m4 will add one of these switches to LD
10989    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10990      libsuff= shlibsuff= libmagic=32-bit;;
10991    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10992      libsuff=32 shlibsuff=N32 libmagic=N32;;
10993    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10994      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10995    *) libsuff= shlibsuff= libmagic=never-match;;
10996    esac
10997    ;;
10998  esac
10999  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11000  shlibpath_overrides_runpath=no
11001  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11002  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11003  hardcode_into_libs=yes
11004  ;;
11005
11006# No shared lib support for Linux oldld, aout, or coff.
11007linux*oldld* | linux*aout* | linux*coff*)
11008  dynamic_linker=no
11009  ;;
11010
11011linux*android*)
11012  version_type=none # Android doesn't support versioned libraries.
11013  need_lib_prefix=no
11014  need_version=no
11015  library_names_spec='$libname$release$shared_ext'
11016  soname_spec='$libname$release$shared_ext'
11017  finish_cmds=
11018  shlibpath_var=LD_LIBRARY_PATH
11019  shlibpath_overrides_runpath=yes
11020
11021  # This implies no fast_install, which is unacceptable.
11022  # Some rework will be needed to allow for fast_install
11023  # before this can be enabled.
11024  hardcode_into_libs=yes
11025
11026  dynamic_linker='Android linker'
11027  # Don't embed -rpath directories since the linker doesn't support them.
11028  hardcode_libdir_flag_spec='-L$libdir'
11029  ;;
11030
11031# This must be glibc/ELF.
11032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11033  version_type=linux # correct to gnu/linux during the next big refactor
11034  need_lib_prefix=no
11035  need_version=no
11036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037  soname_spec='$libname$release$shared_ext$major'
11038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039  shlibpath_var=LD_LIBRARY_PATH
11040  shlibpath_overrides_runpath=no
11041
11042  # Some binutils ld are patched to set DT_RUNPATH
11043  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044  $as_echo_n "(cached) " >&6
11045else
11046  lt_cv_shlibpath_overrides_runpath=no
11047    save_LDFLAGS=$LDFLAGS
11048    save_libdir=$libdir
11049    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h.  */
11053
11054int
11055main ()
11056{
11057
11058  ;
11059  return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_link "$LINENO"; then :
11063  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064  lt_cv_shlibpath_overrides_runpath=yes
11065fi
11066fi
11067rm -f core conftest.err conftest.$ac_objext \
11068    conftest$ac_exeext conftest.$ac_ext
11069    LDFLAGS=$save_LDFLAGS
11070    libdir=$save_libdir
11071
11072fi
11073
11074  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075
11076  # This implies no fast_install, which is unacceptable.
11077  # Some rework will be needed to allow for fast_install
11078  # before this can be enabled.
11079  hardcode_into_libs=yes
11080
11081  # Add ABI-specific directories to the system library path.
11082  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11083
11084  # Ideally, we could use ldconfig to report *all* directores which are
11085  # searched for libraries, however this is still not possible.  Aside from not
11086  # being certain /sbin/ldconfig is available, command
11087  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11088  # even though it is searched at run-time.  Try to do the best guess by
11089  # appending ld.so.conf contents (and includes) to the search path.
11090  if test -f /etc/ld.so.conf; then
11091    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' ' '`
11092    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11093  fi
11094
11095  # We used to test for /lib/ld.so.1 and disable shared libraries on
11096  # powerpc, because MkLinux only supported shared libraries with the
11097  # GNU dynamic linker.  Since this was broken with cross compilers,
11098  # most powerpc-linux boxes support dynamic linking these days and
11099  # people can always --disable-shared, the test was removed, and we
11100  # assume the GNU/Linux dynamic linker is in use.
11101  dynamic_linker='GNU/Linux ld.so'
11102  ;;
11103
11104netbsd*)
11105  version_type=sunos
11106  need_lib_prefix=no
11107  need_version=no
11108  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11109    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11110    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11111    dynamic_linker='NetBSD (a.out) ld.so'
11112  else
11113    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11114    soname_spec='$libname$release$shared_ext$major'
11115    dynamic_linker='NetBSD ld.elf_so'
11116  fi
11117  shlibpath_var=LD_LIBRARY_PATH
11118  shlibpath_overrides_runpath=yes
11119  hardcode_into_libs=yes
11120  ;;
11121
11122newsos6)
11123  version_type=linux # correct to gnu/linux during the next big refactor
11124  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125  shlibpath_var=LD_LIBRARY_PATH
11126  shlibpath_overrides_runpath=yes
11127  ;;
11128
11129*nto* | *qnx*)
11130  version_type=qnx
11131  need_lib_prefix=no
11132  need_version=no
11133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134  soname_spec='$libname$release$shared_ext$major'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  shlibpath_overrides_runpath=no
11137  hardcode_into_libs=yes
11138  dynamic_linker='ldqnx.so'
11139  ;;
11140
11141openbsd* | bitrig*)
11142  version_type=sunos
11143  sys_lib_dlsearch_path_spec=/usr/lib
11144  need_lib_prefix=no
11145  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11146    need_version=no
11147  else
11148    need_version=yes
11149  fi
11150  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11152  shlibpath_var=LD_LIBRARY_PATH
11153  shlibpath_overrides_runpath=yes
11154  ;;
11155
11156os2*)
11157  libname_spec='$name'
11158  version_type=windows
11159  shrext_cmds=.dll
11160  need_version=no
11161  need_lib_prefix=no
11162  # OS/2 can only load a DLL with a base name of 8 characters or less.
11163  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11164    v=$($ECHO $release$versuffix | tr -d .-);
11165    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11166    $ECHO $n$v`$shared_ext'
11167  library_names_spec='${libname}_dll.$libext'
11168  dynamic_linker='OS/2 ld.exe'
11169  shlibpath_var=BEGINLIBPATH
11170  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11171  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11172  postinstall_cmds='base_file=`basename \$file`~
11173    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11174    dldir=$destdir/`dirname \$dlpath`~
11175    test -d \$dldir || mkdir -p \$dldir~
11176    $install_prog $dir/$dlname \$dldir/$dlname~
11177    chmod a+x \$dldir/$dlname~
11178    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11179      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11180    fi'
11181  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11182    dlpath=$dir/\$dldll~
11183    $RM \$dlpath'
11184  ;;
11185
11186osf3* | osf4* | osf5*)
11187  version_type=osf
11188  need_lib_prefix=no
11189  need_version=no
11190  soname_spec='$libname$release$shared_ext$major'
11191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11194  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195  ;;
11196
11197rdos*)
11198  dynamic_linker=no
11199  ;;
11200
11201solaris*)
11202  version_type=linux # correct to gnu/linux during the next big refactor
11203  need_lib_prefix=no
11204  need_version=no
11205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206  soname_spec='$libname$release$shared_ext$major'
11207  shlibpath_var=LD_LIBRARY_PATH
11208  shlibpath_overrides_runpath=yes
11209  hardcode_into_libs=yes
11210  # ldd complains unless libraries are executable
11211  postinstall_cmds='chmod +x $lib'
11212  ;;
11213
11214sunos4*)
11215  version_type=sunos
11216  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11217  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11218  shlibpath_var=LD_LIBRARY_PATH
11219  shlibpath_overrides_runpath=yes
11220  if test yes = "$with_gnu_ld"; then
11221    need_lib_prefix=no
11222  fi
11223  need_version=yes
11224  ;;
11225
11226sysv4 | sysv4.3*)
11227  version_type=linux # correct to gnu/linux during the next big refactor
11228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229  soname_spec='$libname$release$shared_ext$major'
11230  shlibpath_var=LD_LIBRARY_PATH
11231  case $host_vendor in
11232    sni)
11233      shlibpath_overrides_runpath=no
11234      need_lib_prefix=no
11235      runpath_var=LD_RUN_PATH
11236      ;;
11237    siemens)
11238      need_lib_prefix=no
11239      ;;
11240    motorola)
11241      need_lib_prefix=no
11242      need_version=no
11243      shlibpath_overrides_runpath=no
11244      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11245      ;;
11246  esac
11247  ;;
11248
11249sysv4*MP*)
11250  if test -d /usr/nec; then
11251    version_type=linux # correct to gnu/linux during the next big refactor
11252    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11253    soname_spec='$libname$shared_ext.$major'
11254    shlibpath_var=LD_LIBRARY_PATH
11255  fi
11256  ;;
11257
11258sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11259  version_type=sco
11260  need_lib_prefix=no
11261  need_version=no
11262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11263  soname_spec='$libname$release$shared_ext$major'
11264  shlibpath_var=LD_LIBRARY_PATH
11265  shlibpath_overrides_runpath=yes
11266  hardcode_into_libs=yes
11267  if test yes = "$with_gnu_ld"; then
11268    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11269  else
11270    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11271    case $host_os in
11272      sco3.2v5*)
11273        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11274	;;
11275    esac
11276  fi
11277  sys_lib_dlsearch_path_spec='/usr/lib'
11278  ;;
11279
11280tpf*)
11281  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11282  version_type=linux # correct to gnu/linux during the next big refactor
11283  need_lib_prefix=no
11284  need_version=no
11285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11286  shlibpath_var=LD_LIBRARY_PATH
11287  shlibpath_overrides_runpath=no
11288  hardcode_into_libs=yes
11289  ;;
11290
11291uts4*)
11292  version_type=linux # correct to gnu/linux during the next big refactor
11293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294  soname_spec='$libname$release$shared_ext$major'
11295  shlibpath_var=LD_LIBRARY_PATH
11296  ;;
11297
11298*)
11299  dynamic_linker=no
11300  ;;
11301esac
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11303$as_echo "$dynamic_linker" >&6; }
11304test no = "$dynamic_linker" && can_build_shared=no
11305
11306variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11307if test yes = "$GCC"; then
11308  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11309fi
11310
11311if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11312  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11313fi
11314
11315if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11316  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11317fi
11318
11319# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11320configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11321
11322# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11323func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11324
11325# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11326configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11425$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11426hardcode_action=
11427if test -n "$hardcode_libdir_flag_spec" ||
11428   test -n "$runpath_var" ||
11429   test yes = "$hardcode_automatic"; then
11430
11431  # We can hardcode non-existent directories.
11432  if test no != "$hardcode_direct" &&
11433     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11434     # have to relink, otherwise we might link with an installed library
11435     # when we should be linking with a yet-to-be-installed one
11436     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11437     test no != "$hardcode_minus_L"; then
11438    # Linking always hardcodes the temporary library directory.
11439    hardcode_action=relink
11440  else
11441    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11442    hardcode_action=immediate
11443  fi
11444else
11445  # We cannot hardcode anything, or else we can only hardcode existing
11446  # directories.
11447  hardcode_action=unsupported
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11450$as_echo "$hardcode_action" >&6; }
11451
11452if test relink = "$hardcode_action" ||
11453   test yes = "$inherit_rpath"; then
11454  # Fast installation is not supported
11455  enable_fast_install=no
11456elif test yes = "$shlibpath_overrides_runpath" ||
11457     test no = "$enable_shared"; then
11458  # Fast installation is not necessary
11459  enable_fast_install=needless
11460fi
11461
11462
11463
11464
11465
11466
11467  if test yes != "$enable_dlopen"; then
11468  enable_dlopen=unknown
11469  enable_dlopen_self=unknown
11470  enable_dlopen_self_static=unknown
11471else
11472  lt_cv_dlopen=no
11473  lt_cv_dlopen_libs=
11474
11475  case $host_os in
11476  beos*)
11477    lt_cv_dlopen=load_add_on
11478    lt_cv_dlopen_libs=
11479    lt_cv_dlopen_self=yes
11480    ;;
11481
11482  mingw* | pw32* | cegcc*)
11483    lt_cv_dlopen=LoadLibrary
11484    lt_cv_dlopen_libs=
11485    ;;
11486
11487  cygwin*)
11488    lt_cv_dlopen=dlopen
11489    lt_cv_dlopen_libs=
11490    ;;
11491
11492  darwin*)
11493    # if libdl is installed we need to link against it
11494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11495$as_echo_n "checking for dlopen in -ldl... " >&6; }
11496if ${ac_cv_lib_dl_dlopen+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  ac_check_lib_save_LIBS=$LIBS
11500LIBS="-ldl  $LIBS"
11501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h.  */
11503
11504/* Override any GCC internal prototype to avoid an error.
11505   Use char because int might match the return type of a GCC
11506   builtin and then its argument prototype would still apply.  */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char dlopen ();
11511int
11512main ()
11513{
11514return dlopen ();
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519if ac_fn_c_try_link "$LINENO"; then :
11520  ac_cv_lib_dl_dlopen=yes
11521else
11522  ac_cv_lib_dl_dlopen=no
11523fi
11524rm -f core conftest.err conftest.$ac_objext \
11525    conftest$ac_exeext conftest.$ac_ext
11526LIBS=$ac_check_lib_save_LIBS
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11529$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11530if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11531  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11532else
11533
11534    lt_cv_dlopen=dyld
11535    lt_cv_dlopen_libs=
11536    lt_cv_dlopen_self=yes
11537
11538fi
11539
11540    ;;
11541
11542  tpf*)
11543    # Don't try to run any link tests for TPF.  We know it's impossible
11544    # because TPF is a cross-compiler, and we know how we open DSOs.
11545    lt_cv_dlopen=dlopen
11546    lt_cv_dlopen_libs=
11547    lt_cv_dlopen_self=no
11548    ;;
11549
11550  *)
11551    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11552if test "x$ac_cv_func_shl_load" = xyes; then :
11553  lt_cv_dlopen=shl_load
11554else
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11556$as_echo_n "checking for shl_load in -ldld... " >&6; }
11557if ${ac_cv_lib_dld_shl_load+:} false; then :
11558  $as_echo_n "(cached) " >&6
11559else
11560  ac_check_lib_save_LIBS=$LIBS
11561LIBS="-ldld  $LIBS"
11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563/* end confdefs.h.  */
11564
11565/* Override any GCC internal prototype to avoid an error.
11566   Use char because int might match the return type of a GCC
11567   builtin and then its argument prototype would still apply.  */
11568#ifdef __cplusplus
11569extern "C"
11570#endif
11571char shl_load ();
11572int
11573main ()
11574{
11575return shl_load ();
11576  ;
11577  return 0;
11578}
11579_ACEOF
11580if ac_fn_c_try_link "$LINENO"; then :
11581  ac_cv_lib_dld_shl_load=yes
11582else
11583  ac_cv_lib_dld_shl_load=no
11584fi
11585rm -f core conftest.err conftest.$ac_objext \
11586    conftest$ac_exeext conftest.$ac_ext
11587LIBS=$ac_check_lib_save_LIBS
11588fi
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11590$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11591if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11592  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11593else
11594  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11595if test "x$ac_cv_func_dlopen" = xyes; then :
11596  lt_cv_dlopen=dlopen
11597else
11598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11599$as_echo_n "checking for dlopen in -ldl... " >&6; }
11600if ${ac_cv_lib_dl_dlopen+:} false; then :
11601  $as_echo_n "(cached) " >&6
11602else
11603  ac_check_lib_save_LIBS=$LIBS
11604LIBS="-ldl  $LIBS"
11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606/* end confdefs.h.  */
11607
11608/* Override any GCC internal prototype to avoid an error.
11609   Use char because int might match the return type of a GCC
11610   builtin and then its argument prototype would still apply.  */
11611#ifdef __cplusplus
11612extern "C"
11613#endif
11614char dlopen ();
11615int
11616main ()
11617{
11618return dlopen ();
11619  ;
11620  return 0;
11621}
11622_ACEOF
11623if ac_fn_c_try_link "$LINENO"; then :
11624  ac_cv_lib_dl_dlopen=yes
11625else
11626  ac_cv_lib_dl_dlopen=no
11627fi
11628rm -f core conftest.err conftest.$ac_objext \
11629    conftest$ac_exeext conftest.$ac_ext
11630LIBS=$ac_check_lib_save_LIBS
11631fi
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11633$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11634if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11635  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11636else
11637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11638$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11639if ${ac_cv_lib_svld_dlopen+:} false; then :
11640  $as_echo_n "(cached) " >&6
11641else
11642  ac_check_lib_save_LIBS=$LIBS
11643LIBS="-lsvld  $LIBS"
11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h.  */
11646
11647/* Override any GCC internal prototype to avoid an error.
11648   Use char because int might match the return type of a GCC
11649   builtin and then its argument prototype would still apply.  */
11650#ifdef __cplusplus
11651extern "C"
11652#endif
11653char dlopen ();
11654int
11655main ()
11656{
11657return dlopen ();
11658  ;
11659  return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_link "$LINENO"; then :
11663  ac_cv_lib_svld_dlopen=yes
11664else
11665  ac_cv_lib_svld_dlopen=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext \
11668    conftest$ac_exeext conftest.$ac_ext
11669LIBS=$ac_check_lib_save_LIBS
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11672$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11673if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11674  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11675else
11676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11677$as_echo_n "checking for dld_link in -ldld... " >&6; }
11678if ${ac_cv_lib_dld_dld_link+:} false; then :
11679  $as_echo_n "(cached) " >&6
11680else
11681  ac_check_lib_save_LIBS=$LIBS
11682LIBS="-ldld  $LIBS"
11683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h.  */
11685
11686/* Override any GCC internal prototype to avoid an error.
11687   Use char because int might match the return type of a GCC
11688   builtin and then its argument prototype would still apply.  */
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692char dld_link ();
11693int
11694main ()
11695{
11696return dld_link ();
11697  ;
11698  return 0;
11699}
11700_ACEOF
11701if ac_fn_c_try_link "$LINENO"; then :
11702  ac_cv_lib_dld_dld_link=yes
11703else
11704  ac_cv_lib_dld_dld_link=no
11705fi
11706rm -f core conftest.err conftest.$ac_objext \
11707    conftest$ac_exeext conftest.$ac_ext
11708LIBS=$ac_check_lib_save_LIBS
11709fi
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11711$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11712if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11713  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11714fi
11715
11716
11717fi
11718
11719
11720fi
11721
11722
11723fi
11724
11725
11726fi
11727
11728
11729fi
11730
11731    ;;
11732  esac
11733
11734  if test no = "$lt_cv_dlopen"; then
11735    enable_dlopen=no
11736  else
11737    enable_dlopen=yes
11738  fi
11739
11740  case $lt_cv_dlopen in
11741  dlopen)
11742    save_CPPFLAGS=$CPPFLAGS
11743    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11744
11745    save_LDFLAGS=$LDFLAGS
11746    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11747
11748    save_LIBS=$LIBS
11749    LIBS="$lt_cv_dlopen_libs $LIBS"
11750
11751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11752$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11753if ${lt_cv_dlopen_self+:} false; then :
11754  $as_echo_n "(cached) " >&6
11755else
11756  	  if test yes = "$cross_compiling"; then :
11757  lt_cv_dlopen_self=cross
11758else
11759  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760  lt_status=$lt_dlunknown
11761  cat > conftest.$ac_ext <<_LT_EOF
11762#line $LINENO "configure"
11763#include "confdefs.h"
11764
11765#if HAVE_DLFCN_H
11766#include <dlfcn.h>
11767#endif
11768
11769#include <stdio.h>
11770
11771#ifdef RTLD_GLOBAL
11772#  define LT_DLGLOBAL		RTLD_GLOBAL
11773#else
11774#  ifdef DL_GLOBAL
11775#    define LT_DLGLOBAL		DL_GLOBAL
11776#  else
11777#    define LT_DLGLOBAL		0
11778#  endif
11779#endif
11780
11781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782   find out it does not work in some platform. */
11783#ifndef LT_DLLAZY_OR_NOW
11784#  ifdef RTLD_LAZY
11785#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11786#  else
11787#    ifdef DL_LAZY
11788#      define LT_DLLAZY_OR_NOW		DL_LAZY
11789#    else
11790#      ifdef RTLD_NOW
11791#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11792#      else
11793#        ifdef DL_NOW
11794#          define LT_DLLAZY_OR_NOW	DL_NOW
11795#        else
11796#          define LT_DLLAZY_OR_NOW	0
11797#        endif
11798#      endif
11799#    endif
11800#  endif
11801#endif
11802
11803/* When -fvisibility=hidden is used, assume the code has been annotated
11804   correspondingly for the symbols needed.  */
11805#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11806int fnord () __attribute__((visibility("default")));
11807#endif
11808
11809int fnord () { return 42; }
11810int main ()
11811{
11812  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11813  int status = $lt_dlunknown;
11814
11815  if (self)
11816    {
11817      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11818      else
11819        {
11820	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11821          else puts (dlerror ());
11822	}
11823      /* dlclose (self); */
11824    }
11825  else
11826    puts (dlerror ());
11827
11828  return status;
11829}
11830_LT_EOF
11831  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11832  (eval $ac_link) 2>&5
11833  ac_status=$?
11834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11836    (./conftest; exit; ) >&5 2>/dev/null
11837    lt_status=$?
11838    case x$lt_status in
11839      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11840      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11841      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11842    esac
11843  else :
11844    # compilation failed
11845    lt_cv_dlopen_self=no
11846  fi
11847fi
11848rm -fr conftest*
11849
11850
11851fi
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11853$as_echo "$lt_cv_dlopen_self" >&6; }
11854
11855    if test yes = "$lt_cv_dlopen_self"; then
11856      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11857      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11858$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11859if ${lt_cv_dlopen_self_static+:} false; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  	  if test yes = "$cross_compiling"; then :
11863  lt_cv_dlopen_self_static=cross
11864else
11865  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11866  lt_status=$lt_dlunknown
11867  cat > conftest.$ac_ext <<_LT_EOF
11868#line $LINENO "configure"
11869#include "confdefs.h"
11870
11871#if HAVE_DLFCN_H
11872#include <dlfcn.h>
11873#endif
11874
11875#include <stdio.h>
11876
11877#ifdef RTLD_GLOBAL
11878#  define LT_DLGLOBAL		RTLD_GLOBAL
11879#else
11880#  ifdef DL_GLOBAL
11881#    define LT_DLGLOBAL		DL_GLOBAL
11882#  else
11883#    define LT_DLGLOBAL		0
11884#  endif
11885#endif
11886
11887/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11888   find out it does not work in some platform. */
11889#ifndef LT_DLLAZY_OR_NOW
11890#  ifdef RTLD_LAZY
11891#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11892#  else
11893#    ifdef DL_LAZY
11894#      define LT_DLLAZY_OR_NOW		DL_LAZY
11895#    else
11896#      ifdef RTLD_NOW
11897#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11898#      else
11899#        ifdef DL_NOW
11900#          define LT_DLLAZY_OR_NOW	DL_NOW
11901#        else
11902#          define LT_DLLAZY_OR_NOW	0
11903#        endif
11904#      endif
11905#    endif
11906#  endif
11907#endif
11908
11909/* When -fvisibility=hidden is used, assume the code has been annotated
11910   correspondingly for the symbols needed.  */
11911#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11912int fnord () __attribute__((visibility("default")));
11913#endif
11914
11915int fnord () { return 42; }
11916int main ()
11917{
11918  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11919  int status = $lt_dlunknown;
11920
11921  if (self)
11922    {
11923      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11924      else
11925        {
11926	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11927          else puts (dlerror ());
11928	}
11929      /* dlclose (self); */
11930    }
11931  else
11932    puts (dlerror ());
11933
11934  return status;
11935}
11936_LT_EOF
11937  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11938  (eval $ac_link) 2>&5
11939  ac_status=$?
11940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11942    (./conftest; exit; ) >&5 2>/dev/null
11943    lt_status=$?
11944    case x$lt_status in
11945      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11946      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11947      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11948    esac
11949  else :
11950    # compilation failed
11951    lt_cv_dlopen_self_static=no
11952  fi
11953fi
11954rm -fr conftest*
11955
11956
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11959$as_echo "$lt_cv_dlopen_self_static" >&6; }
11960    fi
11961
11962    CPPFLAGS=$save_CPPFLAGS
11963    LDFLAGS=$save_LDFLAGS
11964    LIBS=$save_LIBS
11965    ;;
11966  esac
11967
11968  case $lt_cv_dlopen_self in
11969  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11970  *) enable_dlopen_self=unknown ;;
11971  esac
11972
11973  case $lt_cv_dlopen_self_static in
11974  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11975  *) enable_dlopen_self_static=unknown ;;
11976  esac
11977fi
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995striplib=
11996old_striplib=
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11998$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11999if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12000  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12001  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12003$as_echo "yes" >&6; }
12004else
12005# FIXME - insert some real tests, host_os isn't really good enough
12006  case $host_os in
12007  darwin*)
12008    if test -n "$STRIP"; then
12009      striplib="$STRIP -x"
12010      old_striplib="$STRIP -S"
12011      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12012$as_echo "yes" >&6; }
12013    else
12014      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016    fi
12017    ;;
12018  *)
12019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021    ;;
12022  esac
12023fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036  # Report what library types will actually be built
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12038$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12040$as_echo "$can_build_shared" >&6; }
12041
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12043$as_echo_n "checking whether to build shared libraries... " >&6; }
12044  test no = "$can_build_shared" && enable_shared=no
12045
12046  # On AIX, shared libraries and static libraries use the same namespace, and
12047  # are all built from PIC.
12048  case $host_os in
12049  aix3*)
12050    test yes = "$enable_shared" && enable_static=no
12051    if test -n "$RANLIB"; then
12052      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12053      postinstall_cmds='$RANLIB $lib'
12054    fi
12055    ;;
12056
12057  aix[4-9]*)
12058    if test ia64 != "$host_cpu"; then
12059      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12060      yes,aix,yes) ;;			# shared object as lib.so file only
12061      yes,svr4,*) ;;			# shared object as lib.so archive member only
12062      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12063      esac
12064    fi
12065    ;;
12066  esac
12067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12068$as_echo "$enable_shared" >&6; }
12069
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12071$as_echo_n "checking whether to build static libraries... " >&6; }
12072  # Make sure either enable_shared or enable_static is yes.
12073  test yes = "$enable_shared" || enable_static=yes
12074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12075$as_echo "$enable_static" >&6; }
12076
12077
12078
12079
12080fi
12081ac_ext=c
12082ac_cpp='$CPP $CPPFLAGS'
12083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085ac_compiler_gnu=$ac_cv_c_compiler_gnu
12086
12087CC=$lt_save_CC
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103        ac_config_commands="$ac_config_commands libtool"
12104
12105
12106
12107
12108# Only expand once:
12109
12110
12111
12112# Require X.Org macros 1.8 or later
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12125$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12126if ${ac_cv_prog_cc_c99+:} false; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129  ac_cv_prog_cc_c99=no
12130ac_save_CC=$CC
12131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132/* end confdefs.h.  */
12133#include <stdarg.h>
12134#include <stdbool.h>
12135#include <stdlib.h>
12136#include <wchar.h>
12137#include <stdio.h>
12138
12139// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12140#define debug(...) fprintf (stderr, __VA_ARGS__)
12141#define showlist(...) puts (#__VA_ARGS__)
12142#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12143static void
12144test_varargs_macros (void)
12145{
12146  int x = 1234;
12147  int y = 5678;
12148  debug ("Flag");
12149  debug ("X = %d\n", x);
12150  showlist (The first, second, and third items.);
12151  report (x>y, "x is %d but y is %d", x, y);
12152}
12153
12154// Check long long types.
12155#define BIG64 18446744073709551615ull
12156#define BIG32 4294967295ul
12157#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12158#if !BIG_OK
12159  your preprocessor is broken;
12160#endif
12161#if BIG_OK
12162#else
12163  your preprocessor is broken;
12164#endif
12165static long long int bignum = -9223372036854775807LL;
12166static unsigned long long int ubignum = BIG64;
12167
12168struct incomplete_array
12169{
12170  int datasize;
12171  double data[];
12172};
12173
12174struct named_init {
12175  int number;
12176  const wchar_t *name;
12177  double average;
12178};
12179
12180typedef const char *ccp;
12181
12182static inline int
12183test_restrict (ccp restrict text)
12184{
12185  // See if C++-style comments work.
12186  // Iterate through items via the restricted pointer.
12187  // Also check for declarations in for loops.
12188  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12189    continue;
12190  return 0;
12191}
12192
12193// Check varargs and va_copy.
12194static void
12195test_varargs (const char *format, ...)
12196{
12197  va_list args;
12198  va_start (args, format);
12199  va_list args_copy;
12200  va_copy (args_copy, args);
12201
12202  const char *str;
12203  int number;
12204  float fnumber;
12205
12206  while (*format)
12207    {
12208      switch (*format++)
12209	{
12210	case 's': // string
12211	  str = va_arg (args_copy, const char *);
12212	  break;
12213	case 'd': // int
12214	  number = va_arg (args_copy, int);
12215	  break;
12216	case 'f': // float
12217	  fnumber = va_arg (args_copy, double);
12218	  break;
12219	default:
12220	  break;
12221	}
12222    }
12223  va_end (args_copy);
12224  va_end (args);
12225}
12226
12227int
12228main ()
12229{
12230
12231  // Check bool.
12232  _Bool success = false;
12233
12234  // Check restrict.
12235  if (test_restrict ("String literal") == 0)
12236    success = true;
12237  char *restrict newvar = "Another string";
12238
12239  // Check varargs.
12240  test_varargs ("s, d' f .", "string", 65, 34.234);
12241  test_varargs_macros ();
12242
12243  // Check flexible array members.
12244  struct incomplete_array *ia =
12245    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12246  ia->datasize = 10;
12247  for (int i = 0; i < ia->datasize; ++i)
12248    ia->data[i] = i * 1.234;
12249
12250  // Check named initializers.
12251  struct named_init ni = {
12252    .number = 34,
12253    .name = L"Test wide string",
12254    .average = 543.34343,
12255  };
12256
12257  ni.number = 58;
12258
12259  int dynamic_array[ni.number];
12260  dynamic_array[ni.number - 1] = 543;
12261
12262  // work around unused variable warnings
12263  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12264	  || dynamic_array[ni.number - 1] != 543);
12265
12266  ;
12267  return 0;
12268}
12269_ACEOF
12270for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12271do
12272  CC="$ac_save_CC $ac_arg"
12273  if ac_fn_c_try_compile "$LINENO"; then :
12274  ac_cv_prog_cc_c99=$ac_arg
12275fi
12276rm -f core conftest.err conftest.$ac_objext
12277  test "x$ac_cv_prog_cc_c99" != "xno" && break
12278done
12279rm -f conftest.$ac_ext
12280CC=$ac_save_CC
12281
12282fi
12283# AC_CACHE_VAL
12284case "x$ac_cv_prog_cc_c99" in
12285  x)
12286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12287$as_echo "none needed" >&6; } ;;
12288  xno)
12289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12290$as_echo "unsupported" >&6; } ;;
12291  *)
12292    CC="$CC $ac_cv_prog_cc_c99"
12293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12294$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12295esac
12296if test "x$ac_cv_prog_cc_c99" != xno; then :
12297
12298fi
12299
12300
12301
12302
12303
12304
12305ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12306if test "x$ac_cv_have_decl___clang__" = xyes; then :
12307  CLANGCC="yes"
12308else
12309  CLANGCC="no"
12310fi
12311
12312ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12313if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12314  INTELCC="yes"
12315else
12316  INTELCC="no"
12317fi
12318
12319ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12320if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12321  SUNCC="yes"
12322else
12323  SUNCC="no"
12324fi
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12335	if test -n "$ac_tool_prefix"; then
12336  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12337set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339$as_echo_n "checking for $ac_word... " >&6; }
12340if ${ac_cv_path_PKG_CONFIG+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343  case $PKG_CONFIG in
12344  [\\/]* | ?:[\\/]*)
12345  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12346  ;;
12347  *)
12348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351  IFS=$as_save_IFS
12352  test -z "$as_dir" && as_dir=.
12353    for ac_exec_ext in '' $ac_executable_extensions; do
12354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12355    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357    break 2
12358  fi
12359done
12360  done
12361IFS=$as_save_IFS
12362
12363  ;;
12364esac
12365fi
12366PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12367if test -n "$PKG_CONFIG"; then
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12369$as_echo "$PKG_CONFIG" >&6; }
12370else
12371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373fi
12374
12375
12376fi
12377if test -z "$ac_cv_path_PKG_CONFIG"; then
12378  ac_pt_PKG_CONFIG=$PKG_CONFIG
12379  # Extract the first word of "pkg-config", so it can be a program name with args.
12380set dummy pkg-config; ac_word=$2
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382$as_echo_n "checking for $ac_word... " >&6; }
12383if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12384  $as_echo_n "(cached) " >&6
12385else
12386  case $ac_pt_PKG_CONFIG in
12387  [\\/]* | ?:[\\/]*)
12388  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12389  ;;
12390  *)
12391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392for as_dir in $PATH
12393do
12394  IFS=$as_save_IFS
12395  test -z "$as_dir" && as_dir=.
12396    for ac_exec_ext in '' $ac_executable_extensions; do
12397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12398    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400    break 2
12401  fi
12402done
12403  done
12404IFS=$as_save_IFS
12405
12406  ;;
12407esac
12408fi
12409ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12410if test -n "$ac_pt_PKG_CONFIG"; then
12411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12412$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12413else
12414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
12416fi
12417
12418  if test "x$ac_pt_PKG_CONFIG" = x; then
12419    PKG_CONFIG=""
12420  else
12421    case $cross_compiling:$ac_tool_warned in
12422yes:)
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12425ac_tool_warned=yes ;;
12426esac
12427    PKG_CONFIG=$ac_pt_PKG_CONFIG
12428  fi
12429else
12430  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12431fi
12432
12433fi
12434if test -n "$PKG_CONFIG"; then
12435	_pkg_min_version=0.9.0
12436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12437$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12438	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440$as_echo "yes" >&6; }
12441	else
12442		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444		PKG_CONFIG=""
12445	fi
12446fi
12447
12448
12449
12450
12451
12452# Check whether --enable-selective-werror was given.
12453if test "${enable_selective_werror+set}" = set; then :
12454  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12455else
12456  SELECTIVE_WERROR=yes
12457fi
12458
12459
12460
12461
12462
12463# -v is too short to test reliably with XORG_TESTSET_CFLAG
12464if test "x$SUNCC" = "xyes"; then
12465    BASE_CFLAGS="-v"
12466else
12467    BASE_CFLAGS=""
12468fi
12469
12470# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484xorg_testset_save_CFLAGS="$CFLAGS"
12485
12486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12491  $as_echo_n "(cached) " >&6
12492else
12493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494/* end confdefs.h.  */
12495int i;
12496_ACEOF
12497if ac_fn_c_try_compile "$LINENO"; then :
12498  xorg_cv_cc_flag_unknown_warning_option=yes
12499else
12500  xorg_cv_cc_flag_unknown_warning_option=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12507	CFLAGS="$xorg_testset_save_CFLAGS"
12508fi
12509
12510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513	fi
12514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h.  */
12522int i;
12523_ACEOF
12524if ac_fn_c_try_compile "$LINENO"; then :
12525  xorg_cv_cc_flag_unused_command_line_argument=yes
12526else
12527  xorg_cv_cc_flag_unused_command_line_argument=no
12528fi
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530fi
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12534	CFLAGS="$xorg_testset_save_CFLAGS"
12535fi
12536
12537found="no"
12538
12539	if test $found = "no" ; then
12540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12542		fi
12543
12544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12546		fi
12547
12548		CFLAGS="$CFLAGS -Wall"
12549
12550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12551$as_echo_n "checking if $CC supports -Wall... " >&6; }
12552		cacheid=xorg_cv_cc_flag__Wall
12553		if eval \${$cacheid+:} false; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557/* end confdefs.h.  */
12558int i;
12559int
12560main ()
12561{
12562
12563  ;
12564  return 0;
12565}
12566_ACEOF
12567if ac_fn_c_try_link "$LINENO"; then :
12568  eval $cacheid=yes
12569else
12570  eval $cacheid=no
12571fi
12572rm -f core conftest.err conftest.$ac_objext \
12573    conftest$ac_exeext conftest.$ac_ext
12574fi
12575
12576
12577		CFLAGS="$xorg_testset_save_CFLAGS"
12578
12579		eval supported=\$$cacheid
12580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12581$as_echo "$supported" >&6; }
12582		if test "$supported" = "yes" ; then
12583			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12584			found="yes"
12585		fi
12586	fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602xorg_testset_save_CFLAGS="$CFLAGS"
12603
12604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613int i;
12614_ACEOF
12615if ac_fn_c_try_compile "$LINENO"; then :
12616  xorg_cv_cc_flag_unknown_warning_option=yes
12617else
12618  xorg_cv_cc_flag_unknown_warning_option=no
12619fi
12620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12625	CFLAGS="$xorg_testset_save_CFLAGS"
12626fi
12627
12628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631	fi
12632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12636  $as_echo_n "(cached) " >&6
12637else
12638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h.  */
12640int i;
12641_ACEOF
12642if ac_fn_c_try_compile "$LINENO"; then :
12643  xorg_cv_cc_flag_unused_command_line_argument=yes
12644else
12645  xorg_cv_cc_flag_unused_command_line_argument=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648fi
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12652	CFLAGS="$xorg_testset_save_CFLAGS"
12653fi
12654
12655found="no"
12656
12657	if test $found = "no" ; then
12658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12660		fi
12661
12662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12664		fi
12665
12666		CFLAGS="$CFLAGS -Wpointer-arith"
12667
12668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12669$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12670		cacheid=xorg_cv_cc_flag__Wpointer_arith
12671		if eval \${$cacheid+:} false; then :
12672  $as_echo_n "(cached) " >&6
12673else
12674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675/* end confdefs.h.  */
12676int i;
12677int
12678main ()
12679{
12680
12681  ;
12682  return 0;
12683}
12684_ACEOF
12685if ac_fn_c_try_link "$LINENO"; then :
12686  eval $cacheid=yes
12687else
12688  eval $cacheid=no
12689fi
12690rm -f core conftest.err conftest.$ac_objext \
12691    conftest$ac_exeext conftest.$ac_ext
12692fi
12693
12694
12695		CFLAGS="$xorg_testset_save_CFLAGS"
12696
12697		eval supported=\$$cacheid
12698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12699$as_echo "$supported" >&6; }
12700		if test "$supported" = "yes" ; then
12701			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12702			found="yes"
12703		fi
12704	fi
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720xorg_testset_save_CFLAGS="$CFLAGS"
12721
12722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h.  */
12731int i;
12732_ACEOF
12733if ac_fn_c_try_compile "$LINENO"; then :
12734  xorg_cv_cc_flag_unknown_warning_option=yes
12735else
12736  xorg_cv_cc_flag_unknown_warning_option=no
12737fi
12738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12743	CFLAGS="$xorg_testset_save_CFLAGS"
12744fi
12745
12746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749	fi
12750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12754  $as_echo_n "(cached) " >&6
12755else
12756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h.  */
12758int i;
12759_ACEOF
12760if ac_fn_c_try_compile "$LINENO"; then :
12761  xorg_cv_cc_flag_unused_command_line_argument=yes
12762else
12763  xorg_cv_cc_flag_unused_command_line_argument=no
12764fi
12765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766fi
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12770	CFLAGS="$xorg_testset_save_CFLAGS"
12771fi
12772
12773found="no"
12774
12775	if test $found = "no" ; then
12776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778		fi
12779
12780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12782		fi
12783
12784		CFLAGS="$CFLAGS -Wmissing-declarations"
12785
12786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12787$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12788		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12789		if eval \${$cacheid+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793/* end confdefs.h.  */
12794int i;
12795int
12796main ()
12797{
12798
12799  ;
12800  return 0;
12801}
12802_ACEOF
12803if ac_fn_c_try_link "$LINENO"; then :
12804  eval $cacheid=yes
12805else
12806  eval $cacheid=no
12807fi
12808rm -f core conftest.err conftest.$ac_objext \
12809    conftest$ac_exeext conftest.$ac_ext
12810fi
12811
12812
12813		CFLAGS="$xorg_testset_save_CFLAGS"
12814
12815		eval supported=\$$cacheid
12816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12817$as_echo "$supported" >&6; }
12818		if test "$supported" = "yes" ; then
12819			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12820			found="yes"
12821		fi
12822	fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838xorg_testset_save_CFLAGS="$CFLAGS"
12839
12840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12845  $as_echo_n "(cached) " >&6
12846else
12847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848/* end confdefs.h.  */
12849int i;
12850_ACEOF
12851if ac_fn_c_try_compile "$LINENO"; then :
12852  xorg_cv_cc_flag_unknown_warning_option=yes
12853else
12854  xorg_cv_cc_flag_unknown_warning_option=no
12855fi
12856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857fi
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12861	CFLAGS="$xorg_testset_save_CFLAGS"
12862fi
12863
12864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12867	fi
12868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12872  $as_echo_n "(cached) " >&6
12873else
12874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876int i;
12877_ACEOF
12878if ac_fn_c_try_compile "$LINENO"; then :
12879  xorg_cv_cc_flag_unused_command_line_argument=yes
12880else
12881  xorg_cv_cc_flag_unused_command_line_argument=no
12882fi
12883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884fi
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12888	CFLAGS="$xorg_testset_save_CFLAGS"
12889fi
12890
12891found="no"
12892
12893	if test $found = "no" ; then
12894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896		fi
12897
12898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12900		fi
12901
12902		CFLAGS="$CFLAGS -Wformat=2"
12903
12904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12905$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12906		cacheid=xorg_cv_cc_flag__Wformat_2
12907		if eval \${$cacheid+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912int i;
12913int
12914main ()
12915{
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"; then :
12922  eval $cacheid=yes
12923else
12924  eval $cacheid=no
12925fi
12926rm -f core conftest.err conftest.$ac_objext \
12927    conftest$ac_exeext conftest.$ac_ext
12928fi
12929
12930
12931		CFLAGS="$xorg_testset_save_CFLAGS"
12932
12933		eval supported=\$$cacheid
12934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12935$as_echo "$supported" >&6; }
12936		if test "$supported" = "yes" ; then
12937			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12938			found="yes"
12939		fi
12940	fi
12941
12942	if test $found = "no" ; then
12943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12945		fi
12946
12947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12949		fi
12950
12951		CFLAGS="$CFLAGS -Wformat"
12952
12953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12954$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12955		cacheid=xorg_cv_cc_flag__Wformat
12956		if eval \${$cacheid+:} false; then :
12957  $as_echo_n "(cached) " >&6
12958else
12959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960/* end confdefs.h.  */
12961int i;
12962int
12963main ()
12964{
12965
12966  ;
12967  return 0;
12968}
12969_ACEOF
12970if ac_fn_c_try_link "$LINENO"; then :
12971  eval $cacheid=yes
12972else
12973  eval $cacheid=no
12974fi
12975rm -f core conftest.err conftest.$ac_objext \
12976    conftest$ac_exeext conftest.$ac_ext
12977fi
12978
12979
12980		CFLAGS="$xorg_testset_save_CFLAGS"
12981
12982		eval supported=\$$cacheid
12983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12984$as_echo "$supported" >&6; }
12985		if test "$supported" = "yes" ; then
12986			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12987			found="yes"
12988		fi
12989	fi
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007xorg_testset_save_CFLAGS="$CFLAGS"
13008
13009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13014  $as_echo_n "(cached) " >&6
13015else
13016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h.  */
13018int i;
13019_ACEOF
13020if ac_fn_c_try_compile "$LINENO"; then :
13021  xorg_cv_cc_flag_unknown_warning_option=yes
13022else
13023  xorg_cv_cc_flag_unknown_warning_option=no
13024fi
13025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13030	CFLAGS="$xorg_testset_save_CFLAGS"
13031fi
13032
13033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036	fi
13037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h.  */
13045int i;
13046_ACEOF
13047if ac_fn_c_try_compile "$LINENO"; then :
13048  xorg_cv_cc_flag_unused_command_line_argument=yes
13049else
13050  xorg_cv_cc_flag_unused_command_line_argument=no
13051fi
13052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053fi
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13057	CFLAGS="$xorg_testset_save_CFLAGS"
13058fi
13059
13060found="no"
13061
13062	if test $found = "no" ; then
13063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13065		fi
13066
13067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13069		fi
13070
13071		CFLAGS="$CFLAGS -Wstrict-prototypes"
13072
13073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13074$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13075		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13076		if eval \${$cacheid+:} false; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080/* end confdefs.h.  */
13081int i;
13082int
13083main ()
13084{
13085
13086  ;
13087  return 0;
13088}
13089_ACEOF
13090if ac_fn_c_try_link "$LINENO"; then :
13091  eval $cacheid=yes
13092else
13093  eval $cacheid=no
13094fi
13095rm -f core conftest.err conftest.$ac_objext \
13096    conftest$ac_exeext conftest.$ac_ext
13097fi
13098
13099
13100		CFLAGS="$xorg_testset_save_CFLAGS"
13101
13102		eval supported=\$$cacheid
13103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13104$as_echo "$supported" >&6; }
13105		if test "$supported" = "yes" ; then
13106			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13107			found="yes"
13108		fi
13109	fi
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125xorg_testset_save_CFLAGS="$CFLAGS"
13126
13127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h.  */
13136int i;
13137_ACEOF
13138if ac_fn_c_try_compile "$LINENO"; then :
13139  xorg_cv_cc_flag_unknown_warning_option=yes
13140else
13141  xorg_cv_cc_flag_unknown_warning_option=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13148	CFLAGS="$xorg_testset_save_CFLAGS"
13149fi
13150
13151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154	fi
13155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13159  $as_echo_n "(cached) " >&6
13160else
13161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h.  */
13163int i;
13164_ACEOF
13165if ac_fn_c_try_compile "$LINENO"; then :
13166  xorg_cv_cc_flag_unused_command_line_argument=yes
13167else
13168  xorg_cv_cc_flag_unused_command_line_argument=no
13169fi
13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171fi
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13175	CFLAGS="$xorg_testset_save_CFLAGS"
13176fi
13177
13178found="no"
13179
13180	if test $found = "no" ; then
13181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183		fi
13184
13185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187		fi
13188
13189		CFLAGS="$CFLAGS -Wmissing-prototypes"
13190
13191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13192$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13193		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13194		if eval \${$cacheid+:} false; then :
13195  $as_echo_n "(cached) " >&6
13196else
13197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198/* end confdefs.h.  */
13199int i;
13200int
13201main ()
13202{
13203
13204  ;
13205  return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209  eval $cacheid=yes
13210else
13211  eval $cacheid=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214    conftest$ac_exeext conftest.$ac_ext
13215fi
13216
13217
13218		CFLAGS="$xorg_testset_save_CFLAGS"
13219
13220		eval supported=\$$cacheid
13221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13222$as_echo "$supported" >&6; }
13223		if test "$supported" = "yes" ; then
13224			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13225			found="yes"
13226		fi
13227	fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243xorg_testset_save_CFLAGS="$CFLAGS"
13244
13245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h.  */
13254int i;
13255_ACEOF
13256if ac_fn_c_try_compile "$LINENO"; then :
13257  xorg_cv_cc_flag_unknown_warning_option=yes
13258else
13259  xorg_cv_cc_flag_unknown_warning_option=no
13260fi
13261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13266	CFLAGS="$xorg_testset_save_CFLAGS"
13267fi
13268
13269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272	fi
13273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"; then :
13284  xorg_cv_cc_flag_unused_command_line_argument=yes
13285else
13286  xorg_cv_cc_flag_unused_command_line_argument=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13293	CFLAGS="$xorg_testset_save_CFLAGS"
13294fi
13295
13296found="no"
13297
13298	if test $found = "no" ; then
13299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301		fi
13302
13303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305		fi
13306
13307		CFLAGS="$CFLAGS -Wnested-externs"
13308
13309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13310$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13311		cacheid=xorg_cv_cc_flag__Wnested_externs
13312		if eval \${$cacheid+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317int i;
13318int
13319main ()
13320{
13321
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_link "$LINENO"; then :
13327  eval $cacheid=yes
13328else
13329  eval $cacheid=no
13330fi
13331rm -f core conftest.err conftest.$ac_objext \
13332    conftest$ac_exeext conftest.$ac_ext
13333fi
13334
13335
13336		CFLAGS="$xorg_testset_save_CFLAGS"
13337
13338		eval supported=\$$cacheid
13339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13340$as_echo "$supported" >&6; }
13341		if test "$supported" = "yes" ; then
13342			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13343			found="yes"
13344		fi
13345	fi
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361xorg_testset_save_CFLAGS="$CFLAGS"
13362
13363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13368  $as_echo_n "(cached) " >&6
13369else
13370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372int i;
13373_ACEOF
13374if ac_fn_c_try_compile "$LINENO"; then :
13375  xorg_cv_cc_flag_unknown_warning_option=yes
13376else
13377  xorg_cv_cc_flag_unknown_warning_option=no
13378fi
13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380fi
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13384	CFLAGS="$xorg_testset_save_CFLAGS"
13385fi
13386
13387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390	fi
13391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13395  $as_echo_n "(cached) " >&6
13396else
13397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399int i;
13400_ACEOF
13401if ac_fn_c_try_compile "$LINENO"; then :
13402  xorg_cv_cc_flag_unused_command_line_argument=yes
13403else
13404  xorg_cv_cc_flag_unused_command_line_argument=no
13405fi
13406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407fi
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13411	CFLAGS="$xorg_testset_save_CFLAGS"
13412fi
13413
13414found="no"
13415
13416	if test $found = "no" ; then
13417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13419		fi
13420
13421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13423		fi
13424
13425		CFLAGS="$CFLAGS -Wbad-function-cast"
13426
13427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13428$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13429		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13430		if eval \${$cacheid+:} false; then :
13431  $as_echo_n "(cached) " >&6
13432else
13433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434/* end confdefs.h.  */
13435int i;
13436int
13437main ()
13438{
13439
13440  ;
13441  return 0;
13442}
13443_ACEOF
13444if ac_fn_c_try_link "$LINENO"; then :
13445  eval $cacheid=yes
13446else
13447  eval $cacheid=no
13448fi
13449rm -f core conftest.err conftest.$ac_objext \
13450    conftest$ac_exeext conftest.$ac_ext
13451fi
13452
13453
13454		CFLAGS="$xorg_testset_save_CFLAGS"
13455
13456		eval supported=\$$cacheid
13457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13458$as_echo "$supported" >&6; }
13459		if test "$supported" = "yes" ; then
13460			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13461			found="yes"
13462		fi
13463	fi
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479xorg_testset_save_CFLAGS="$CFLAGS"
13480
13481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489/* end confdefs.h.  */
13490int i;
13491_ACEOF
13492if ac_fn_c_try_compile "$LINENO"; then :
13493  xorg_cv_cc_flag_unknown_warning_option=yes
13494else
13495  xorg_cv_cc_flag_unknown_warning_option=no
13496fi
13497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498fi
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13502	CFLAGS="$xorg_testset_save_CFLAGS"
13503fi
13504
13505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508	fi
13509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* end confdefs.h.  */
13517int i;
13518_ACEOF
13519if ac_fn_c_try_compile "$LINENO"; then :
13520  xorg_cv_cc_flag_unused_command_line_argument=yes
13521else
13522  xorg_cv_cc_flag_unused_command_line_argument=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525fi
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13529	CFLAGS="$xorg_testset_save_CFLAGS"
13530fi
13531
13532found="no"
13533
13534	if test $found = "no" ; then
13535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13537		fi
13538
13539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13541		fi
13542
13543		CFLAGS="$CFLAGS -Wold-style-definition"
13544
13545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13546$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13547		cacheid=xorg_cv_cc_flag__Wold_style_definition
13548		if eval \${$cacheid+:} false; then :
13549  $as_echo_n "(cached) " >&6
13550else
13551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h.  */
13553int i;
13554int
13555main ()
13556{
13557
13558  ;
13559  return 0;
13560}
13561_ACEOF
13562if ac_fn_c_try_link "$LINENO"; then :
13563  eval $cacheid=yes
13564else
13565  eval $cacheid=no
13566fi
13567rm -f core conftest.err conftest.$ac_objext \
13568    conftest$ac_exeext conftest.$ac_ext
13569fi
13570
13571
13572		CFLAGS="$xorg_testset_save_CFLAGS"
13573
13574		eval supported=\$$cacheid
13575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13576$as_echo "$supported" >&6; }
13577		if test "$supported" = "yes" ; then
13578			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13579			found="yes"
13580		fi
13581	fi
13582
13583	if test $found = "no" ; then
13584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13586		fi
13587
13588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13590		fi
13591
13592		CFLAGS="$CFLAGS -fd"
13593
13594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13595$as_echo_n "checking if $CC supports -fd... " >&6; }
13596		cacheid=xorg_cv_cc_flag__fd
13597		if eval \${$cacheid+:} false; then :
13598  $as_echo_n "(cached) " >&6
13599else
13600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601/* end confdefs.h.  */
13602int i;
13603int
13604main ()
13605{
13606
13607  ;
13608  return 0;
13609}
13610_ACEOF
13611if ac_fn_c_try_link "$LINENO"; then :
13612  eval $cacheid=yes
13613else
13614  eval $cacheid=no
13615fi
13616rm -f core conftest.err conftest.$ac_objext \
13617    conftest$ac_exeext conftest.$ac_ext
13618fi
13619
13620
13621		CFLAGS="$xorg_testset_save_CFLAGS"
13622
13623		eval supported=\$$cacheid
13624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13625$as_echo "$supported" >&6; }
13626		if test "$supported" = "yes" ; then
13627			BASE_CFLAGS="$BASE_CFLAGS -fd"
13628			found="yes"
13629		fi
13630	fi
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646xorg_testset_save_CFLAGS="$CFLAGS"
13647
13648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13653  $as_echo_n "(cached) " >&6
13654else
13655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656/* end confdefs.h.  */
13657int i;
13658_ACEOF
13659if ac_fn_c_try_compile "$LINENO"; then :
13660  xorg_cv_cc_flag_unknown_warning_option=yes
13661else
13662  xorg_cv_cc_flag_unknown_warning_option=no
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665fi
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13669	CFLAGS="$xorg_testset_save_CFLAGS"
13670fi
13671
13672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675	fi
13676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683/* end confdefs.h.  */
13684int i;
13685_ACEOF
13686if ac_fn_c_try_compile "$LINENO"; then :
13687  xorg_cv_cc_flag_unused_command_line_argument=yes
13688else
13689  xorg_cv_cc_flag_unused_command_line_argument=no
13690fi
13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13696	CFLAGS="$xorg_testset_save_CFLAGS"
13697fi
13698
13699found="no"
13700
13701	if test $found = "no" ; then
13702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704		fi
13705
13706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13708		fi
13709
13710		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13711
13712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13713$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13714		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13715		if eval \${$cacheid+:} false; then :
13716  $as_echo_n "(cached) " >&6
13717else
13718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719/* end confdefs.h.  */
13720int i;
13721int
13722main ()
13723{
13724
13725  ;
13726  return 0;
13727}
13728_ACEOF
13729if ac_fn_c_try_link "$LINENO"; then :
13730  eval $cacheid=yes
13731else
13732  eval $cacheid=no
13733fi
13734rm -f core conftest.err conftest.$ac_objext \
13735    conftest$ac_exeext conftest.$ac_ext
13736fi
13737
13738
13739		CFLAGS="$xorg_testset_save_CFLAGS"
13740
13741		eval supported=\$$cacheid
13742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13743$as_echo "$supported" >&6; }
13744		if test "$supported" = "yes" ; then
13745			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13746			found="yes"
13747		fi
13748	fi
13749
13750
13751
13752
13753
13754# This chunk adds additional warnings that could catch undesired effects.
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768xorg_testset_save_CFLAGS="$CFLAGS"
13769
13770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13775  $as_echo_n "(cached) " >&6
13776else
13777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779int i;
13780_ACEOF
13781if ac_fn_c_try_compile "$LINENO"; then :
13782  xorg_cv_cc_flag_unknown_warning_option=yes
13783else
13784  xorg_cv_cc_flag_unknown_warning_option=no
13785fi
13786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13791	CFLAGS="$xorg_testset_save_CFLAGS"
13792fi
13793
13794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797	fi
13798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13802  $as_echo_n "(cached) " >&6
13803else
13804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805/* end confdefs.h.  */
13806int i;
13807_ACEOF
13808if ac_fn_c_try_compile "$LINENO"; then :
13809  xorg_cv_cc_flag_unused_command_line_argument=yes
13810else
13811  xorg_cv_cc_flag_unused_command_line_argument=no
13812fi
13813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814fi
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13818	CFLAGS="$xorg_testset_save_CFLAGS"
13819fi
13820
13821found="no"
13822
13823	if test $found = "no" ; then
13824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826		fi
13827
13828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13830		fi
13831
13832		CFLAGS="$CFLAGS -Wunused"
13833
13834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13835$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13836		cacheid=xorg_cv_cc_flag__Wunused
13837		if eval \${$cacheid+:} false; then :
13838  $as_echo_n "(cached) " >&6
13839else
13840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842int i;
13843int
13844main ()
13845{
13846
13847  ;
13848  return 0;
13849}
13850_ACEOF
13851if ac_fn_c_try_link "$LINENO"; then :
13852  eval $cacheid=yes
13853else
13854  eval $cacheid=no
13855fi
13856rm -f core conftest.err conftest.$ac_objext \
13857    conftest$ac_exeext conftest.$ac_ext
13858fi
13859
13860
13861		CFLAGS="$xorg_testset_save_CFLAGS"
13862
13863		eval supported=\$$cacheid
13864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13865$as_echo "$supported" >&6; }
13866		if test "$supported" = "yes" ; then
13867			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13868			found="yes"
13869		fi
13870	fi
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886xorg_testset_save_CFLAGS="$CFLAGS"
13887
13888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13893  $as_echo_n "(cached) " >&6
13894else
13895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896/* end confdefs.h.  */
13897int i;
13898_ACEOF
13899if ac_fn_c_try_compile "$LINENO"; then :
13900  xorg_cv_cc_flag_unknown_warning_option=yes
13901else
13902  xorg_cv_cc_flag_unknown_warning_option=no
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905fi
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13909	CFLAGS="$xorg_testset_save_CFLAGS"
13910fi
13911
13912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915	fi
13916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13920  $as_echo_n "(cached) " >&6
13921else
13922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923/* end confdefs.h.  */
13924int i;
13925_ACEOF
13926if ac_fn_c_try_compile "$LINENO"; then :
13927  xorg_cv_cc_flag_unused_command_line_argument=yes
13928else
13929  xorg_cv_cc_flag_unused_command_line_argument=no
13930fi
13931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932fi
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13936	CFLAGS="$xorg_testset_save_CFLAGS"
13937fi
13938
13939found="no"
13940
13941	if test $found = "no" ; then
13942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13944		fi
13945
13946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13948		fi
13949
13950		CFLAGS="$CFLAGS -Wuninitialized"
13951
13952		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13953$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13954		cacheid=xorg_cv_cc_flag__Wuninitialized
13955		if eval \${$cacheid+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960int i;
13961int
13962main ()
13963{
13964
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_link "$LINENO"; then :
13970  eval $cacheid=yes
13971else
13972  eval $cacheid=no
13973fi
13974rm -f core conftest.err conftest.$ac_objext \
13975    conftest$ac_exeext conftest.$ac_ext
13976fi
13977
13978
13979		CFLAGS="$xorg_testset_save_CFLAGS"
13980
13981		eval supported=\$$cacheid
13982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13983$as_echo "$supported" >&6; }
13984		if test "$supported" = "yes" ; then
13985			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13986			found="yes"
13987		fi
13988	fi
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004xorg_testset_save_CFLAGS="$CFLAGS"
14005
14006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14011  $as_echo_n "(cached) " >&6
14012else
14013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014/* end confdefs.h.  */
14015int i;
14016_ACEOF
14017if ac_fn_c_try_compile "$LINENO"; then :
14018  xorg_cv_cc_flag_unknown_warning_option=yes
14019else
14020  xorg_cv_cc_flag_unknown_warning_option=no
14021fi
14022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023fi
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14027	CFLAGS="$xorg_testset_save_CFLAGS"
14028fi
14029
14030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033	fi
14034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14038  $as_echo_n "(cached) " >&6
14039else
14040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042int i;
14043_ACEOF
14044if ac_fn_c_try_compile "$LINENO"; then :
14045  xorg_cv_cc_flag_unused_command_line_argument=yes
14046else
14047  xorg_cv_cc_flag_unused_command_line_argument=no
14048fi
14049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050fi
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14054	CFLAGS="$xorg_testset_save_CFLAGS"
14055fi
14056
14057found="no"
14058
14059	if test $found = "no" ; then
14060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14062		fi
14063
14064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14066		fi
14067
14068		CFLAGS="$CFLAGS -Wshadow"
14069
14070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14071$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14072		cacheid=xorg_cv_cc_flag__Wshadow
14073		if eval \${$cacheid+:} false; then :
14074  $as_echo_n "(cached) " >&6
14075else
14076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078int i;
14079int
14080main ()
14081{
14082
14083  ;
14084  return 0;
14085}
14086_ACEOF
14087if ac_fn_c_try_link "$LINENO"; then :
14088  eval $cacheid=yes
14089else
14090  eval $cacheid=no
14091fi
14092rm -f core conftest.err conftest.$ac_objext \
14093    conftest$ac_exeext conftest.$ac_ext
14094fi
14095
14096
14097		CFLAGS="$xorg_testset_save_CFLAGS"
14098
14099		eval supported=\$$cacheid
14100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14101$as_echo "$supported" >&6; }
14102		if test "$supported" = "yes" ; then
14103			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14104			found="yes"
14105		fi
14106	fi
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122xorg_testset_save_CFLAGS="$CFLAGS"
14123
14124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14129  $as_echo_n "(cached) " >&6
14130else
14131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133int i;
14134_ACEOF
14135if ac_fn_c_try_compile "$LINENO"; then :
14136  xorg_cv_cc_flag_unknown_warning_option=yes
14137else
14138  xorg_cv_cc_flag_unknown_warning_option=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14141fi
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14145	CFLAGS="$xorg_testset_save_CFLAGS"
14146fi
14147
14148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151	fi
14152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14156  $as_echo_n "(cached) " >&6
14157else
14158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h.  */
14160int i;
14161_ACEOF
14162if ac_fn_c_try_compile "$LINENO"; then :
14163  xorg_cv_cc_flag_unused_command_line_argument=yes
14164else
14165  xorg_cv_cc_flag_unused_command_line_argument=no
14166fi
14167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168fi
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14172	CFLAGS="$xorg_testset_save_CFLAGS"
14173fi
14174
14175found="no"
14176
14177	if test $found = "no" ; then
14178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14180		fi
14181
14182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14184		fi
14185
14186		CFLAGS="$CFLAGS -Wmissing-noreturn"
14187
14188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14189$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14190		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14191		if eval \${$cacheid+:} false; then :
14192  $as_echo_n "(cached) " >&6
14193else
14194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195/* end confdefs.h.  */
14196int i;
14197int
14198main ()
14199{
14200
14201  ;
14202  return 0;
14203}
14204_ACEOF
14205if ac_fn_c_try_link "$LINENO"; then :
14206  eval $cacheid=yes
14207else
14208  eval $cacheid=no
14209fi
14210rm -f core conftest.err conftest.$ac_objext \
14211    conftest$ac_exeext conftest.$ac_ext
14212fi
14213
14214
14215		CFLAGS="$xorg_testset_save_CFLAGS"
14216
14217		eval supported=\$$cacheid
14218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14219$as_echo "$supported" >&6; }
14220		if test "$supported" = "yes" ; then
14221			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14222			found="yes"
14223		fi
14224	fi
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240xorg_testset_save_CFLAGS="$CFLAGS"
14241
14242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14247  $as_echo_n "(cached) " >&6
14248else
14249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250/* end confdefs.h.  */
14251int i;
14252_ACEOF
14253if ac_fn_c_try_compile "$LINENO"; then :
14254  xorg_cv_cc_flag_unknown_warning_option=yes
14255else
14256  xorg_cv_cc_flag_unknown_warning_option=no
14257fi
14258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259fi
14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14263	CFLAGS="$xorg_testset_save_CFLAGS"
14264fi
14265
14266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269	fi
14270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14274  $as_echo_n "(cached) " >&6
14275else
14276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h.  */
14278int i;
14279_ACEOF
14280if ac_fn_c_try_compile "$LINENO"; then :
14281  xorg_cv_cc_flag_unused_command_line_argument=yes
14282else
14283  xorg_cv_cc_flag_unused_command_line_argument=no
14284fi
14285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14290	CFLAGS="$xorg_testset_save_CFLAGS"
14291fi
14292
14293found="no"
14294
14295	if test $found = "no" ; then
14296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14298		fi
14299
14300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14302		fi
14303
14304		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14305
14306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14307$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14308		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14309		if eval \${$cacheid+:} false; then :
14310  $as_echo_n "(cached) " >&6
14311else
14312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313/* end confdefs.h.  */
14314int i;
14315int
14316main ()
14317{
14318
14319  ;
14320  return 0;
14321}
14322_ACEOF
14323if ac_fn_c_try_link "$LINENO"; then :
14324  eval $cacheid=yes
14325else
14326  eval $cacheid=no
14327fi
14328rm -f core conftest.err conftest.$ac_objext \
14329    conftest$ac_exeext conftest.$ac_ext
14330fi
14331
14332
14333		CFLAGS="$xorg_testset_save_CFLAGS"
14334
14335		eval supported=\$$cacheid
14336		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14337$as_echo "$supported" >&6; }
14338		if test "$supported" = "yes" ; then
14339			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14340			found="yes"
14341		fi
14342	fi
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358xorg_testset_save_CFLAGS="$CFLAGS"
14359
14360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14365  $as_echo_n "(cached) " >&6
14366else
14367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368/* end confdefs.h.  */
14369int i;
14370_ACEOF
14371if ac_fn_c_try_compile "$LINENO"; then :
14372  xorg_cv_cc_flag_unknown_warning_option=yes
14373else
14374  xorg_cv_cc_flag_unknown_warning_option=no
14375fi
14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377fi
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14381	CFLAGS="$xorg_testset_save_CFLAGS"
14382fi
14383
14384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387	fi
14388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14392  $as_echo_n "(cached) " >&6
14393else
14394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395/* end confdefs.h.  */
14396int i;
14397_ACEOF
14398if ac_fn_c_try_compile "$LINENO"; then :
14399  xorg_cv_cc_flag_unused_command_line_argument=yes
14400else
14401  xorg_cv_cc_flag_unused_command_line_argument=no
14402fi
14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404fi
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14408	CFLAGS="$xorg_testset_save_CFLAGS"
14409fi
14410
14411found="no"
14412
14413	if test $found = "no" ; then
14414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14416		fi
14417
14418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14420		fi
14421
14422		CFLAGS="$CFLAGS -Wredundant-decls"
14423
14424		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14425$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14426		cacheid=xorg_cv_cc_flag__Wredundant_decls
14427		if eval \${$cacheid+:} false; then :
14428  $as_echo_n "(cached) " >&6
14429else
14430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431/* end confdefs.h.  */
14432int i;
14433int
14434main ()
14435{
14436
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441if ac_fn_c_try_link "$LINENO"; then :
14442  eval $cacheid=yes
14443else
14444  eval $cacheid=no
14445fi
14446rm -f core conftest.err conftest.$ac_objext \
14447    conftest$ac_exeext conftest.$ac_ext
14448fi
14449
14450
14451		CFLAGS="$xorg_testset_save_CFLAGS"
14452
14453		eval supported=\$$cacheid
14454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14455$as_echo "$supported" >&6; }
14456		if test "$supported" = "yes" ; then
14457			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14458			found="yes"
14459		fi
14460	fi
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476xorg_testset_save_CFLAGS="$CFLAGS"
14477
14478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14483  $as_echo_n "(cached) " >&6
14484else
14485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h.  */
14487int i;
14488_ACEOF
14489if ac_fn_c_try_compile "$LINENO"; then :
14490  xorg_cv_cc_flag_unknown_warning_option=yes
14491else
14492  xorg_cv_cc_flag_unknown_warning_option=no
14493fi
14494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495fi
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14499	CFLAGS="$xorg_testset_save_CFLAGS"
14500fi
14501
14502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14505	fi
14506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14510  $as_echo_n "(cached) " >&6
14511else
14512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h.  */
14514int i;
14515_ACEOF
14516if ac_fn_c_try_compile "$LINENO"; then :
14517  xorg_cv_cc_flag_unused_command_line_argument=yes
14518else
14519  xorg_cv_cc_flag_unused_command_line_argument=no
14520fi
14521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522fi
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14526	CFLAGS="$xorg_testset_save_CFLAGS"
14527fi
14528
14529found="no"
14530
14531	if test $found = "no" ; then
14532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534		fi
14535
14536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14538		fi
14539
14540		CFLAGS="$CFLAGS -Wlogical-op"
14541
14542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14543$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14544		cacheid=xorg_cv_cc_flag__Wlogical_op
14545		if eval \${$cacheid+:} false; then :
14546  $as_echo_n "(cached) " >&6
14547else
14548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549/* end confdefs.h.  */
14550int i;
14551int
14552main ()
14553{
14554
14555  ;
14556  return 0;
14557}
14558_ACEOF
14559if ac_fn_c_try_link "$LINENO"; then :
14560  eval $cacheid=yes
14561else
14562  eval $cacheid=no
14563fi
14564rm -f core conftest.err conftest.$ac_objext \
14565    conftest$ac_exeext conftest.$ac_ext
14566fi
14567
14568
14569		CFLAGS="$xorg_testset_save_CFLAGS"
14570
14571		eval supported=\$$cacheid
14572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14573$as_echo "$supported" >&6; }
14574		if test "$supported" = "yes" ; then
14575			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14576			found="yes"
14577		fi
14578	fi
14579
14580
14581
14582# These are currently disabled because they are noisy.  They will be enabled
14583# in the future once the codebase is sufficiently modernized to silence
14584# them.  For now, I don't want them to drown out the other warnings.
14585# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14586# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14587# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14588
14589# Turn some warnings into errors, so we don't accidently get successful builds
14590# when there are problems that should be fixed.
14591
14592if test "x$SELECTIVE_WERROR" = "xyes" ; then
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606xorg_testset_save_CFLAGS="$CFLAGS"
14607
14608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617int i;
14618_ACEOF
14619if ac_fn_c_try_compile "$LINENO"; then :
14620  xorg_cv_cc_flag_unknown_warning_option=yes
14621else
14622  xorg_cv_cc_flag_unknown_warning_option=no
14623fi
14624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14629	CFLAGS="$xorg_testset_save_CFLAGS"
14630fi
14631
14632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14635	fi
14636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14640  $as_echo_n "(cached) " >&6
14641else
14642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h.  */
14644int i;
14645_ACEOF
14646if ac_fn_c_try_compile "$LINENO"; then :
14647  xorg_cv_cc_flag_unused_command_line_argument=yes
14648else
14649  xorg_cv_cc_flag_unused_command_line_argument=no
14650fi
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652fi
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14656	CFLAGS="$xorg_testset_save_CFLAGS"
14657fi
14658
14659found="no"
14660
14661	if test $found = "no" ; then
14662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664		fi
14665
14666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14668		fi
14669
14670		CFLAGS="$CFLAGS -Werror=implicit"
14671
14672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14673$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14674		cacheid=xorg_cv_cc_flag__Werror_implicit
14675		if eval \${$cacheid+:} false; then :
14676  $as_echo_n "(cached) " >&6
14677else
14678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679/* end confdefs.h.  */
14680int i;
14681int
14682main ()
14683{
14684
14685  ;
14686  return 0;
14687}
14688_ACEOF
14689if ac_fn_c_try_link "$LINENO"; then :
14690  eval $cacheid=yes
14691else
14692  eval $cacheid=no
14693fi
14694rm -f core conftest.err conftest.$ac_objext \
14695    conftest$ac_exeext conftest.$ac_ext
14696fi
14697
14698
14699		CFLAGS="$xorg_testset_save_CFLAGS"
14700
14701		eval supported=\$$cacheid
14702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14703$as_echo "$supported" >&6; }
14704		if test "$supported" = "yes" ; then
14705			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14706			found="yes"
14707		fi
14708	fi
14709
14710	if test $found = "no" ; then
14711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14713		fi
14714
14715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14717		fi
14718
14719		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14720
14721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14722$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14723		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14724		if eval \${$cacheid+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h.  */
14729int i;
14730int
14731main ()
14732{
14733
14734  ;
14735  return 0;
14736}
14737_ACEOF
14738if ac_fn_c_try_link "$LINENO"; then :
14739  eval $cacheid=yes
14740else
14741  eval $cacheid=no
14742fi
14743rm -f core conftest.err conftest.$ac_objext \
14744    conftest$ac_exeext conftest.$ac_ext
14745fi
14746
14747
14748		CFLAGS="$xorg_testset_save_CFLAGS"
14749
14750		eval supported=\$$cacheid
14751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14752$as_echo "$supported" >&6; }
14753		if test "$supported" = "yes" ; then
14754			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14755			found="yes"
14756		fi
14757	fi
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773xorg_testset_save_CFLAGS="$CFLAGS"
14774
14775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14780  $as_echo_n "(cached) " >&6
14781else
14782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h.  */
14784int i;
14785_ACEOF
14786if ac_fn_c_try_compile "$LINENO"; then :
14787  xorg_cv_cc_flag_unknown_warning_option=yes
14788else
14789  xorg_cv_cc_flag_unknown_warning_option=no
14790fi
14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792fi
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14796	CFLAGS="$xorg_testset_save_CFLAGS"
14797fi
14798
14799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802	fi
14803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14807  $as_echo_n "(cached) " >&6
14808else
14809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h.  */
14811int i;
14812_ACEOF
14813if ac_fn_c_try_compile "$LINENO"; then :
14814  xorg_cv_cc_flag_unused_command_line_argument=yes
14815else
14816  xorg_cv_cc_flag_unused_command_line_argument=no
14817fi
14818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819fi
14820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14823	CFLAGS="$xorg_testset_save_CFLAGS"
14824fi
14825
14826found="no"
14827
14828	if test $found = "no" ; then
14829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14831		fi
14832
14833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14835		fi
14836
14837		CFLAGS="$CFLAGS -Werror=nonnull"
14838
14839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14840$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14841		cacheid=xorg_cv_cc_flag__Werror_nonnull
14842		if eval \${$cacheid+:} false; then :
14843  $as_echo_n "(cached) " >&6
14844else
14845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h.  */
14847int i;
14848int
14849main ()
14850{
14851
14852  ;
14853  return 0;
14854}
14855_ACEOF
14856if ac_fn_c_try_link "$LINENO"; then :
14857  eval $cacheid=yes
14858else
14859  eval $cacheid=no
14860fi
14861rm -f core conftest.err conftest.$ac_objext \
14862    conftest$ac_exeext conftest.$ac_ext
14863fi
14864
14865
14866		CFLAGS="$xorg_testset_save_CFLAGS"
14867
14868		eval supported=\$$cacheid
14869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14870$as_echo "$supported" >&6; }
14871		if test "$supported" = "yes" ; then
14872			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14873			found="yes"
14874		fi
14875	fi
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891xorg_testset_save_CFLAGS="$CFLAGS"
14892
14893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14898  $as_echo_n "(cached) " >&6
14899else
14900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901/* end confdefs.h.  */
14902int i;
14903_ACEOF
14904if ac_fn_c_try_compile "$LINENO"; then :
14905  xorg_cv_cc_flag_unknown_warning_option=yes
14906else
14907  xorg_cv_cc_flag_unknown_warning_option=no
14908fi
14909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910fi
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14914	CFLAGS="$xorg_testset_save_CFLAGS"
14915fi
14916
14917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920	fi
14921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14925  $as_echo_n "(cached) " >&6
14926else
14927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928/* end confdefs.h.  */
14929int i;
14930_ACEOF
14931if ac_fn_c_try_compile "$LINENO"; then :
14932  xorg_cv_cc_flag_unused_command_line_argument=yes
14933else
14934  xorg_cv_cc_flag_unused_command_line_argument=no
14935fi
14936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937fi
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14941	CFLAGS="$xorg_testset_save_CFLAGS"
14942fi
14943
14944found="no"
14945
14946	if test $found = "no" ; then
14947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14949		fi
14950
14951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953		fi
14954
14955		CFLAGS="$CFLAGS -Werror=init-self"
14956
14957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14958$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14959		cacheid=xorg_cv_cc_flag__Werror_init_self
14960		if eval \${$cacheid+:} false; then :
14961  $as_echo_n "(cached) " >&6
14962else
14963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965int i;
14966int
14967main ()
14968{
14969
14970  ;
14971  return 0;
14972}
14973_ACEOF
14974if ac_fn_c_try_link "$LINENO"; then :
14975  eval $cacheid=yes
14976else
14977  eval $cacheid=no
14978fi
14979rm -f core conftest.err conftest.$ac_objext \
14980    conftest$ac_exeext conftest.$ac_ext
14981fi
14982
14983
14984		CFLAGS="$xorg_testset_save_CFLAGS"
14985
14986		eval supported=\$$cacheid
14987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14988$as_echo "$supported" >&6; }
14989		if test "$supported" = "yes" ; then
14990			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14991			found="yes"
14992		fi
14993	fi
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009xorg_testset_save_CFLAGS="$CFLAGS"
15010
15011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15016  $as_echo_n "(cached) " >&6
15017else
15018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019/* end confdefs.h.  */
15020int i;
15021_ACEOF
15022if ac_fn_c_try_compile "$LINENO"; then :
15023  xorg_cv_cc_flag_unknown_warning_option=yes
15024else
15025  xorg_cv_cc_flag_unknown_warning_option=no
15026fi
15027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028fi
15029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15032	CFLAGS="$xorg_testset_save_CFLAGS"
15033fi
15034
15035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038	fi
15039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15043  $as_echo_n "(cached) " >&6
15044else
15045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046/* end confdefs.h.  */
15047int i;
15048_ACEOF
15049if ac_fn_c_try_compile "$LINENO"; then :
15050  xorg_cv_cc_flag_unused_command_line_argument=yes
15051else
15052  xorg_cv_cc_flag_unused_command_line_argument=no
15053fi
15054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15059	CFLAGS="$xorg_testset_save_CFLAGS"
15060fi
15061
15062found="no"
15063
15064	if test $found = "no" ; then
15065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15067		fi
15068
15069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15071		fi
15072
15073		CFLAGS="$CFLAGS -Werror=main"
15074
15075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15076$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15077		cacheid=xorg_cv_cc_flag__Werror_main
15078		if eval \${$cacheid+:} false; then :
15079  $as_echo_n "(cached) " >&6
15080else
15081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082/* end confdefs.h.  */
15083int i;
15084int
15085main ()
15086{
15087
15088  ;
15089  return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093  eval $cacheid=yes
15094else
15095  eval $cacheid=no
15096fi
15097rm -f core conftest.err conftest.$ac_objext \
15098    conftest$ac_exeext conftest.$ac_ext
15099fi
15100
15101
15102		CFLAGS="$xorg_testset_save_CFLAGS"
15103
15104		eval supported=\$$cacheid
15105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15106$as_echo "$supported" >&6; }
15107		if test "$supported" = "yes" ; then
15108			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15109			found="yes"
15110		fi
15111	fi
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127xorg_testset_save_CFLAGS="$CFLAGS"
15128
15129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15134  $as_echo_n "(cached) " >&6
15135else
15136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h.  */
15138int i;
15139_ACEOF
15140if ac_fn_c_try_compile "$LINENO"; then :
15141  xorg_cv_cc_flag_unknown_warning_option=yes
15142else
15143  xorg_cv_cc_flag_unknown_warning_option=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146fi
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15150	CFLAGS="$xorg_testset_save_CFLAGS"
15151fi
15152
15153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156	fi
15157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15161  $as_echo_n "(cached) " >&6
15162else
15163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h.  */
15165int i;
15166_ACEOF
15167if ac_fn_c_try_compile "$LINENO"; then :
15168  xorg_cv_cc_flag_unused_command_line_argument=yes
15169else
15170  xorg_cv_cc_flag_unused_command_line_argument=no
15171fi
15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15177	CFLAGS="$xorg_testset_save_CFLAGS"
15178fi
15179
15180found="no"
15181
15182	if test $found = "no" ; then
15183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15185		fi
15186
15187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15189		fi
15190
15191		CFLAGS="$CFLAGS -Werror=missing-braces"
15192
15193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15194$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15195		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15196		if eval \${$cacheid+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200/* end confdefs.h.  */
15201int i;
15202int
15203main ()
15204{
15205
15206  ;
15207  return 0;
15208}
15209_ACEOF
15210if ac_fn_c_try_link "$LINENO"; then :
15211  eval $cacheid=yes
15212else
15213  eval $cacheid=no
15214fi
15215rm -f core conftest.err conftest.$ac_objext \
15216    conftest$ac_exeext conftest.$ac_ext
15217fi
15218
15219
15220		CFLAGS="$xorg_testset_save_CFLAGS"
15221
15222		eval supported=\$$cacheid
15223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15224$as_echo "$supported" >&6; }
15225		if test "$supported" = "yes" ; then
15226			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15227			found="yes"
15228		fi
15229	fi
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245xorg_testset_save_CFLAGS="$CFLAGS"
15246
15247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15252  $as_echo_n "(cached) " >&6
15253else
15254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h.  */
15256int i;
15257_ACEOF
15258if ac_fn_c_try_compile "$LINENO"; then :
15259  xorg_cv_cc_flag_unknown_warning_option=yes
15260else
15261  xorg_cv_cc_flag_unknown_warning_option=no
15262fi
15263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264fi
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15268	CFLAGS="$xorg_testset_save_CFLAGS"
15269fi
15270
15271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274	fi
15275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282/* end confdefs.h.  */
15283int i;
15284_ACEOF
15285if ac_fn_c_try_compile "$LINENO"; then :
15286  xorg_cv_cc_flag_unused_command_line_argument=yes
15287else
15288  xorg_cv_cc_flag_unused_command_line_argument=no
15289fi
15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291fi
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15295	CFLAGS="$xorg_testset_save_CFLAGS"
15296fi
15297
15298found="no"
15299
15300	if test $found = "no" ; then
15301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303		fi
15304
15305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307		fi
15308
15309		CFLAGS="$CFLAGS -Werror=sequence-point"
15310
15311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15312$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15313		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15314		if eval \${$cacheid+:} false; then :
15315  $as_echo_n "(cached) " >&6
15316else
15317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318/* end confdefs.h.  */
15319int i;
15320int
15321main ()
15322{
15323
15324  ;
15325  return 0;
15326}
15327_ACEOF
15328if ac_fn_c_try_link "$LINENO"; then :
15329  eval $cacheid=yes
15330else
15331  eval $cacheid=no
15332fi
15333rm -f core conftest.err conftest.$ac_objext \
15334    conftest$ac_exeext conftest.$ac_ext
15335fi
15336
15337
15338		CFLAGS="$xorg_testset_save_CFLAGS"
15339
15340		eval supported=\$$cacheid
15341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15342$as_echo "$supported" >&6; }
15343		if test "$supported" = "yes" ; then
15344			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15345			found="yes"
15346		fi
15347	fi
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363xorg_testset_save_CFLAGS="$CFLAGS"
15364
15365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374int i;
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"; then :
15377  xorg_cv_cc_flag_unknown_warning_option=yes
15378else
15379  xorg_cv_cc_flag_unknown_warning_option=no
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15386	CFLAGS="$xorg_testset_save_CFLAGS"
15387fi
15388
15389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392	fi
15393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h.  */
15401int i;
15402_ACEOF
15403if ac_fn_c_try_compile "$LINENO"; then :
15404  xorg_cv_cc_flag_unused_command_line_argument=yes
15405else
15406  xorg_cv_cc_flag_unused_command_line_argument=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15413	CFLAGS="$xorg_testset_save_CFLAGS"
15414fi
15415
15416found="no"
15417
15418	if test $found = "no" ; then
15419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421		fi
15422
15423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425		fi
15426
15427		CFLAGS="$CFLAGS -Werror=return-type"
15428
15429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15430$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15431		cacheid=xorg_cv_cc_flag__Werror_return_type
15432		if eval \${$cacheid+:} false; then :
15433  $as_echo_n "(cached) " >&6
15434else
15435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437int i;
15438int
15439main ()
15440{
15441
15442  ;
15443  return 0;
15444}
15445_ACEOF
15446if ac_fn_c_try_link "$LINENO"; then :
15447  eval $cacheid=yes
15448else
15449  eval $cacheid=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext \
15452    conftest$ac_exeext conftest.$ac_ext
15453fi
15454
15455
15456		CFLAGS="$xorg_testset_save_CFLAGS"
15457
15458		eval supported=\$$cacheid
15459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15460$as_echo "$supported" >&6; }
15461		if test "$supported" = "yes" ; then
15462			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15463			found="yes"
15464		fi
15465	fi
15466
15467	if test $found = "no" ; then
15468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15470		fi
15471
15472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15474		fi
15475
15476		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15477
15478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15479$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15480		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15481		if eval \${$cacheid+:} false; then :
15482  $as_echo_n "(cached) " >&6
15483else
15484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485/* end confdefs.h.  */
15486int i;
15487int
15488main ()
15489{
15490
15491  ;
15492  return 0;
15493}
15494_ACEOF
15495if ac_fn_c_try_link "$LINENO"; then :
15496  eval $cacheid=yes
15497else
15498  eval $cacheid=no
15499fi
15500rm -f core conftest.err conftest.$ac_objext \
15501    conftest$ac_exeext conftest.$ac_ext
15502fi
15503
15504
15505		CFLAGS="$xorg_testset_save_CFLAGS"
15506
15507		eval supported=\$$cacheid
15508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15509$as_echo "$supported" >&6; }
15510		if test "$supported" = "yes" ; then
15511			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15512			found="yes"
15513		fi
15514	fi
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530xorg_testset_save_CFLAGS="$CFLAGS"
15531
15532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15537  $as_echo_n "(cached) " >&6
15538else
15539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h.  */
15541int i;
15542_ACEOF
15543if ac_fn_c_try_compile "$LINENO"; then :
15544  xorg_cv_cc_flag_unknown_warning_option=yes
15545else
15546  xorg_cv_cc_flag_unknown_warning_option=no
15547fi
15548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549fi
15550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15553	CFLAGS="$xorg_testset_save_CFLAGS"
15554fi
15555
15556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559	fi
15560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15564  $as_echo_n "(cached) " >&6
15565else
15566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567/* end confdefs.h.  */
15568int i;
15569_ACEOF
15570if ac_fn_c_try_compile "$LINENO"; then :
15571  xorg_cv_cc_flag_unused_command_line_argument=yes
15572else
15573  xorg_cv_cc_flag_unused_command_line_argument=no
15574fi
15575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576fi
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15580	CFLAGS="$xorg_testset_save_CFLAGS"
15581fi
15582
15583found="no"
15584
15585	if test $found = "no" ; then
15586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15588		fi
15589
15590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15592		fi
15593
15594		CFLAGS="$CFLAGS -Werror=trigraphs"
15595
15596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15597$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15598		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15599		if eval \${$cacheid+:} false; then :
15600  $as_echo_n "(cached) " >&6
15601else
15602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603/* end confdefs.h.  */
15604int i;
15605int
15606main ()
15607{
15608
15609  ;
15610  return 0;
15611}
15612_ACEOF
15613if ac_fn_c_try_link "$LINENO"; then :
15614  eval $cacheid=yes
15615else
15616  eval $cacheid=no
15617fi
15618rm -f core conftest.err conftest.$ac_objext \
15619    conftest$ac_exeext conftest.$ac_ext
15620fi
15621
15622
15623		CFLAGS="$xorg_testset_save_CFLAGS"
15624
15625		eval supported=\$$cacheid
15626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15627$as_echo "$supported" >&6; }
15628		if test "$supported" = "yes" ; then
15629			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15630			found="yes"
15631		fi
15632	fi
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648xorg_testset_save_CFLAGS="$CFLAGS"
15649
15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659int i;
15660_ACEOF
15661if ac_fn_c_try_compile "$LINENO"; then :
15662  xorg_cv_cc_flag_unknown_warning_option=yes
15663else
15664  xorg_cv_cc_flag_unknown_warning_option=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15671	CFLAGS="$xorg_testset_save_CFLAGS"
15672fi
15673
15674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677	fi
15678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15682  $as_echo_n "(cached) " >&6
15683else
15684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685/* end confdefs.h.  */
15686int i;
15687_ACEOF
15688if ac_fn_c_try_compile "$LINENO"; then :
15689  xorg_cv_cc_flag_unused_command_line_argument=yes
15690else
15691  xorg_cv_cc_flag_unused_command_line_argument=no
15692fi
15693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694fi
15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15698	CFLAGS="$xorg_testset_save_CFLAGS"
15699fi
15700
15701found="no"
15702
15703	if test $found = "no" ; then
15704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15706		fi
15707
15708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15710		fi
15711
15712		CFLAGS="$CFLAGS -Werror=array-bounds"
15713
15714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15715$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15716		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15717		if eval \${$cacheid+:} false; then :
15718  $as_echo_n "(cached) " >&6
15719else
15720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int i;
15723int
15724main ()
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"; then :
15732  eval $cacheid=yes
15733else
15734  eval $cacheid=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext \
15737    conftest$ac_exeext conftest.$ac_ext
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745$as_echo "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15748			found="yes"
15749		fi
15750	fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776/* end confdefs.h.  */
15777int i;
15778_ACEOF
15779if ac_fn_c_try_compile "$LINENO"; then :
15780  xorg_cv_cc_flag_unknown_warning_option=yes
15781else
15782  xorg_cv_cc_flag_unknown_warning_option=no
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785fi
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789	CFLAGS="$xorg_testset_save_CFLAGS"
15790fi
15791
15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	fi
15796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804int i;
15805_ACEOF
15806if ac_fn_c_try_compile "$LINENO"; then :
15807  xorg_cv_cc_flag_unused_command_line_argument=yes
15808else
15809  xorg_cv_cc_flag_unused_command_line_argument=no
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812fi
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15816	CFLAGS="$xorg_testset_save_CFLAGS"
15817fi
15818
15819found="no"
15820
15821	if test $found = "no" ; then
15822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824		fi
15825
15826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15828		fi
15829
15830		CFLAGS="$CFLAGS -Werror=write-strings"
15831
15832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15833$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15834		cacheid=xorg_cv_cc_flag__Werror_write_strings
15835		if eval \${$cacheid+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h.  */
15840int i;
15841int
15842main ()
15843{
15844
15845  ;
15846  return 0;
15847}
15848_ACEOF
15849if ac_fn_c_try_link "$LINENO"; then :
15850  eval $cacheid=yes
15851else
15852  eval $cacheid=no
15853fi
15854rm -f core conftest.err conftest.$ac_objext \
15855    conftest$ac_exeext conftest.$ac_ext
15856fi
15857
15858
15859		CFLAGS="$xorg_testset_save_CFLAGS"
15860
15861		eval supported=\$$cacheid
15862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863$as_echo "$supported" >&6; }
15864		if test "$supported" = "yes" ; then
15865			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15866			found="yes"
15867		fi
15868	fi
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884xorg_testset_save_CFLAGS="$CFLAGS"
15885
15886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894/* end confdefs.h.  */
15895int i;
15896_ACEOF
15897if ac_fn_c_try_compile "$LINENO"; then :
15898  xorg_cv_cc_flag_unknown_warning_option=yes
15899else
15900  xorg_cv_cc_flag_unknown_warning_option=no
15901fi
15902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903fi
15904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15907	CFLAGS="$xorg_testset_save_CFLAGS"
15908fi
15909
15910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913	fi
15914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15918  $as_echo_n "(cached) " >&6
15919else
15920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h.  */
15922int i;
15923_ACEOF
15924if ac_fn_c_try_compile "$LINENO"; then :
15925  xorg_cv_cc_flag_unused_command_line_argument=yes
15926else
15927  xorg_cv_cc_flag_unused_command_line_argument=no
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15934	CFLAGS="$xorg_testset_save_CFLAGS"
15935fi
15936
15937found="no"
15938
15939	if test $found = "no" ; then
15940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942		fi
15943
15944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15946		fi
15947
15948		CFLAGS="$CFLAGS -Werror=address"
15949
15950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15951$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15952		cacheid=xorg_cv_cc_flag__Werror_address
15953		if eval \${$cacheid+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h.  */
15958int i;
15959int
15960main ()
15961{
15962
15963  ;
15964  return 0;
15965}
15966_ACEOF
15967if ac_fn_c_try_link "$LINENO"; then :
15968  eval $cacheid=yes
15969else
15970  eval $cacheid=no
15971fi
15972rm -f core conftest.err conftest.$ac_objext \
15973    conftest$ac_exeext conftest.$ac_ext
15974fi
15975
15976
15977		CFLAGS="$xorg_testset_save_CFLAGS"
15978
15979		eval supported=\$$cacheid
15980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15981$as_echo "$supported" >&6; }
15982		if test "$supported" = "yes" ; then
15983			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15984			found="yes"
15985		fi
15986	fi
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002xorg_testset_save_CFLAGS="$CFLAGS"
16003
16004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16009  $as_echo_n "(cached) " >&6
16010else
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013int i;
16014_ACEOF
16015if ac_fn_c_try_compile "$LINENO"; then :
16016  xorg_cv_cc_flag_unknown_warning_option=yes
16017else
16018  xorg_cv_cc_flag_unknown_warning_option=no
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025	CFLAGS="$xorg_testset_save_CFLAGS"
16026fi
16027
16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031	fi
16032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int i;
16041_ACEOF
16042if ac_fn_c_try_compile "$LINENO"; then :
16043  xorg_cv_cc_flag_unused_command_line_argument=yes
16044else
16045  xorg_cv_cc_flag_unused_command_line_argument=no
16046fi
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16052	CFLAGS="$xorg_testset_save_CFLAGS"
16053fi
16054
16055found="no"
16056
16057	if test $found = "no" ; then
16058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060		fi
16061
16062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16064		fi
16065
16066		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16067
16068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16069$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16070		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16071		if eval \${$cacheid+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076int i;
16077int
16078main ()
16079{
16080
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086  eval $cacheid=yes
16087else
16088  eval $cacheid=no
16089fi
16090rm -f core conftest.err conftest.$ac_objext \
16091    conftest$ac_exeext conftest.$ac_ext
16092fi
16093
16094
16095		CFLAGS="$xorg_testset_save_CFLAGS"
16096
16097		eval supported=\$$cacheid
16098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099$as_echo "$supported" >&6; }
16100		if test "$supported" = "yes" ; then
16101			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16102			found="yes"
16103		fi
16104	fi
16105
16106	if test $found = "no" ; then
16107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16109		fi
16110
16111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16113		fi
16114
16115		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16116
16117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16118$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16119		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16120		if eval \${$cacheid+:} false; then :
16121  $as_echo_n "(cached) " >&6
16122else
16123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124/* end confdefs.h.  */
16125int i;
16126int
16127main ()
16128{
16129
16130  ;
16131  return 0;
16132}
16133_ACEOF
16134if ac_fn_c_try_link "$LINENO"; then :
16135  eval $cacheid=yes
16136else
16137  eval $cacheid=no
16138fi
16139rm -f core conftest.err conftest.$ac_objext \
16140    conftest$ac_exeext conftest.$ac_ext
16141fi
16142
16143
16144		CFLAGS="$xorg_testset_save_CFLAGS"
16145
16146		eval supported=\$$cacheid
16147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16148$as_echo "$supported" >&6; }
16149		if test "$supported" = "yes" ; then
16150			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16151			found="yes"
16152		fi
16153	fi
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169xorg_testset_save_CFLAGS="$CFLAGS"
16170
16171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16176  $as_echo_n "(cached) " >&6
16177else
16178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179/* end confdefs.h.  */
16180int i;
16181_ACEOF
16182if ac_fn_c_try_compile "$LINENO"; then :
16183  xorg_cv_cc_flag_unknown_warning_option=yes
16184else
16185  xorg_cv_cc_flag_unknown_warning_option=no
16186fi
16187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188fi
16189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16192	CFLAGS="$xorg_testset_save_CFLAGS"
16193fi
16194
16195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16198	fi
16199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16203  $as_echo_n "(cached) " >&6
16204else
16205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207int i;
16208_ACEOF
16209if ac_fn_c_try_compile "$LINENO"; then :
16210  xorg_cv_cc_flag_unused_command_line_argument=yes
16211else
16212  xorg_cv_cc_flag_unused_command_line_argument=no
16213fi
16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215fi
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16219	CFLAGS="$xorg_testset_save_CFLAGS"
16220fi
16221
16222found="no"
16223
16224	if test $found = "no" ; then
16225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227		fi
16228
16229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231		fi
16232
16233		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16234
16235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16236$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16237		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16238		if eval \${$cacheid+:} false; then :
16239  $as_echo_n "(cached) " >&6
16240else
16241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h.  */
16243int i;
16244int
16245main ()
16246{
16247
16248  ;
16249  return 0;
16250}
16251_ACEOF
16252if ac_fn_c_try_link "$LINENO"; then :
16253  eval $cacheid=yes
16254else
16255  eval $cacheid=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext \
16258    conftest$ac_exeext conftest.$ac_ext
16259fi
16260
16261
16262		CFLAGS="$xorg_testset_save_CFLAGS"
16263
16264		eval supported=\$$cacheid
16265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16266$as_echo "$supported" >&6; }
16267		if test "$supported" = "yes" ; then
16268			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16269			found="yes"
16270		fi
16271	fi
16272
16273 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16274else
16275{ $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
16276$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;}
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290xorg_testset_save_CFLAGS="$CFLAGS"
16291
16292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16297  $as_echo_n "(cached) " >&6
16298else
16299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300/* end confdefs.h.  */
16301int i;
16302_ACEOF
16303if ac_fn_c_try_compile "$LINENO"; then :
16304  xorg_cv_cc_flag_unknown_warning_option=yes
16305else
16306  xorg_cv_cc_flag_unknown_warning_option=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16313	CFLAGS="$xorg_testset_save_CFLAGS"
16314fi
16315
16316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319	fi
16320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16324  $as_echo_n "(cached) " >&6
16325else
16326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327/* end confdefs.h.  */
16328int i;
16329_ACEOF
16330if ac_fn_c_try_compile "$LINENO"; then :
16331  xorg_cv_cc_flag_unused_command_line_argument=yes
16332else
16333  xorg_cv_cc_flag_unused_command_line_argument=no
16334fi
16335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336fi
16337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16340	CFLAGS="$xorg_testset_save_CFLAGS"
16341fi
16342
16343found="no"
16344
16345	if test $found = "no" ; then
16346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16348		fi
16349
16350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16352		fi
16353
16354		CFLAGS="$CFLAGS -Wimplicit"
16355
16356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16357$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16358		cacheid=xorg_cv_cc_flag__Wimplicit
16359		if eval \${$cacheid+:} false; then :
16360  $as_echo_n "(cached) " >&6
16361else
16362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h.  */
16364int i;
16365int
16366main ()
16367{
16368
16369  ;
16370  return 0;
16371}
16372_ACEOF
16373if ac_fn_c_try_link "$LINENO"; then :
16374  eval $cacheid=yes
16375else
16376  eval $cacheid=no
16377fi
16378rm -f core conftest.err conftest.$ac_objext \
16379    conftest$ac_exeext conftest.$ac_ext
16380fi
16381
16382
16383		CFLAGS="$xorg_testset_save_CFLAGS"
16384
16385		eval supported=\$$cacheid
16386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16387$as_echo "$supported" >&6; }
16388		if test "$supported" = "yes" ; then
16389			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16390			found="yes"
16391		fi
16392	fi
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408xorg_testset_save_CFLAGS="$CFLAGS"
16409
16410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16415  $as_echo_n "(cached) " >&6
16416else
16417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h.  */
16419int i;
16420_ACEOF
16421if ac_fn_c_try_compile "$LINENO"; then :
16422  xorg_cv_cc_flag_unknown_warning_option=yes
16423else
16424  xorg_cv_cc_flag_unknown_warning_option=no
16425fi
16426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427fi
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16431	CFLAGS="$xorg_testset_save_CFLAGS"
16432fi
16433
16434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437	fi
16438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16442  $as_echo_n "(cached) " >&6
16443else
16444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445/* end confdefs.h.  */
16446int i;
16447_ACEOF
16448if ac_fn_c_try_compile "$LINENO"; then :
16449  xorg_cv_cc_flag_unused_command_line_argument=yes
16450else
16451  xorg_cv_cc_flag_unused_command_line_argument=no
16452fi
16453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454fi
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16458	CFLAGS="$xorg_testset_save_CFLAGS"
16459fi
16460
16461found="no"
16462
16463	if test $found = "no" ; then
16464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466		fi
16467
16468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470		fi
16471
16472		CFLAGS="$CFLAGS -Wnonnull"
16473
16474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16475$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16476		cacheid=xorg_cv_cc_flag__Wnonnull
16477		if eval \${$cacheid+:} false; then :
16478  $as_echo_n "(cached) " >&6
16479else
16480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481/* end confdefs.h.  */
16482int i;
16483int
16484main ()
16485{
16486
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491if ac_fn_c_try_link "$LINENO"; then :
16492  eval $cacheid=yes
16493else
16494  eval $cacheid=no
16495fi
16496rm -f core conftest.err conftest.$ac_objext \
16497    conftest$ac_exeext conftest.$ac_ext
16498fi
16499
16500
16501		CFLAGS="$xorg_testset_save_CFLAGS"
16502
16503		eval supported=\$$cacheid
16504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16505$as_echo "$supported" >&6; }
16506		if test "$supported" = "yes" ; then
16507			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16508			found="yes"
16509		fi
16510	fi
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526xorg_testset_save_CFLAGS="$CFLAGS"
16527
16528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16533  $as_echo_n "(cached) " >&6
16534else
16535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536/* end confdefs.h.  */
16537int i;
16538_ACEOF
16539if ac_fn_c_try_compile "$LINENO"; then :
16540  xorg_cv_cc_flag_unknown_warning_option=yes
16541else
16542  xorg_cv_cc_flag_unknown_warning_option=no
16543fi
16544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545fi
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16549	CFLAGS="$xorg_testset_save_CFLAGS"
16550fi
16551
16552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555	fi
16556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16560  $as_echo_n "(cached) " >&6
16561else
16562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h.  */
16564int i;
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"; then :
16567  xorg_cv_cc_flag_unused_command_line_argument=yes
16568else
16569  xorg_cv_cc_flag_unused_command_line_argument=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572fi
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16576	CFLAGS="$xorg_testset_save_CFLAGS"
16577fi
16578
16579found="no"
16580
16581	if test $found = "no" ; then
16582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16584		fi
16585
16586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16588		fi
16589
16590		CFLAGS="$CFLAGS -Winit-self"
16591
16592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16593$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16594		cacheid=xorg_cv_cc_flag__Winit_self
16595		if eval \${$cacheid+:} false; then :
16596  $as_echo_n "(cached) " >&6
16597else
16598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h.  */
16600int i;
16601int
16602main ()
16603{
16604
16605  ;
16606  return 0;
16607}
16608_ACEOF
16609if ac_fn_c_try_link "$LINENO"; then :
16610  eval $cacheid=yes
16611else
16612  eval $cacheid=no
16613fi
16614rm -f core conftest.err conftest.$ac_objext \
16615    conftest$ac_exeext conftest.$ac_ext
16616fi
16617
16618
16619		CFLAGS="$xorg_testset_save_CFLAGS"
16620
16621		eval supported=\$$cacheid
16622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16623$as_echo "$supported" >&6; }
16624		if test "$supported" = "yes" ; then
16625			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16626			found="yes"
16627		fi
16628	fi
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644xorg_testset_save_CFLAGS="$CFLAGS"
16645
16646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16651  $as_echo_n "(cached) " >&6
16652else
16653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h.  */
16655int i;
16656_ACEOF
16657if ac_fn_c_try_compile "$LINENO"; then :
16658  xorg_cv_cc_flag_unknown_warning_option=yes
16659else
16660  xorg_cv_cc_flag_unknown_warning_option=no
16661fi
16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16667	CFLAGS="$xorg_testset_save_CFLAGS"
16668fi
16669
16670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673	fi
16674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16678  $as_echo_n "(cached) " >&6
16679else
16680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682int i;
16683_ACEOF
16684if ac_fn_c_try_compile "$LINENO"; then :
16685  xorg_cv_cc_flag_unused_command_line_argument=yes
16686else
16687  xorg_cv_cc_flag_unused_command_line_argument=no
16688fi
16689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690fi
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16694	CFLAGS="$xorg_testset_save_CFLAGS"
16695fi
16696
16697found="no"
16698
16699	if test $found = "no" ; then
16700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702		fi
16703
16704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16706		fi
16707
16708		CFLAGS="$CFLAGS -Wmain"
16709
16710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16711$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16712		cacheid=xorg_cv_cc_flag__Wmain
16713		if eval \${$cacheid+:} false; then :
16714  $as_echo_n "(cached) " >&6
16715else
16716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h.  */
16718int i;
16719int
16720main ()
16721{
16722
16723  ;
16724  return 0;
16725}
16726_ACEOF
16727if ac_fn_c_try_link "$LINENO"; then :
16728  eval $cacheid=yes
16729else
16730  eval $cacheid=no
16731fi
16732rm -f core conftest.err conftest.$ac_objext \
16733    conftest$ac_exeext conftest.$ac_ext
16734fi
16735
16736
16737		CFLAGS="$xorg_testset_save_CFLAGS"
16738
16739		eval supported=\$$cacheid
16740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16741$as_echo "$supported" >&6; }
16742		if test "$supported" = "yes" ; then
16743			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16744			found="yes"
16745		fi
16746	fi
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762xorg_testset_save_CFLAGS="$CFLAGS"
16763
16764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16769  $as_echo_n "(cached) " >&6
16770else
16771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772/* end confdefs.h.  */
16773int i;
16774_ACEOF
16775if ac_fn_c_try_compile "$LINENO"; then :
16776  xorg_cv_cc_flag_unknown_warning_option=yes
16777else
16778  xorg_cv_cc_flag_unknown_warning_option=no
16779fi
16780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16785	CFLAGS="$xorg_testset_save_CFLAGS"
16786fi
16787
16788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791	fi
16792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16796  $as_echo_n "(cached) " >&6
16797else
16798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799/* end confdefs.h.  */
16800int i;
16801_ACEOF
16802if ac_fn_c_try_compile "$LINENO"; then :
16803  xorg_cv_cc_flag_unused_command_line_argument=yes
16804else
16805  xorg_cv_cc_flag_unused_command_line_argument=no
16806fi
16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808fi
16809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16812	CFLAGS="$xorg_testset_save_CFLAGS"
16813fi
16814
16815found="no"
16816
16817	if test $found = "no" ; then
16818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820		fi
16821
16822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16824		fi
16825
16826		CFLAGS="$CFLAGS -Wmissing-braces"
16827
16828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16829$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16830		cacheid=xorg_cv_cc_flag__Wmissing_braces
16831		if eval \${$cacheid+:} false; then :
16832  $as_echo_n "(cached) " >&6
16833else
16834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h.  */
16836int i;
16837int
16838main ()
16839{
16840
16841  ;
16842  return 0;
16843}
16844_ACEOF
16845if ac_fn_c_try_link "$LINENO"; then :
16846  eval $cacheid=yes
16847else
16848  eval $cacheid=no
16849fi
16850rm -f core conftest.err conftest.$ac_objext \
16851    conftest$ac_exeext conftest.$ac_ext
16852fi
16853
16854
16855		CFLAGS="$xorg_testset_save_CFLAGS"
16856
16857		eval supported=\$$cacheid
16858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16859$as_echo "$supported" >&6; }
16860		if test "$supported" = "yes" ; then
16861			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16862			found="yes"
16863		fi
16864	fi
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880xorg_testset_save_CFLAGS="$CFLAGS"
16881
16882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16887  $as_echo_n "(cached) " >&6
16888else
16889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890/* end confdefs.h.  */
16891int i;
16892_ACEOF
16893if ac_fn_c_try_compile "$LINENO"; then :
16894  xorg_cv_cc_flag_unknown_warning_option=yes
16895else
16896  xorg_cv_cc_flag_unknown_warning_option=no
16897fi
16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16899fi
16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16903	CFLAGS="$xorg_testset_save_CFLAGS"
16904fi
16905
16906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909	fi
16910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16914  $as_echo_n "(cached) " >&6
16915else
16916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h.  */
16918int i;
16919_ACEOF
16920if ac_fn_c_try_compile "$LINENO"; then :
16921  xorg_cv_cc_flag_unused_command_line_argument=yes
16922else
16923  xorg_cv_cc_flag_unused_command_line_argument=no
16924fi
16925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926fi
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16930	CFLAGS="$xorg_testset_save_CFLAGS"
16931fi
16932
16933found="no"
16934
16935	if test $found = "no" ; then
16936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16938		fi
16939
16940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16942		fi
16943
16944		CFLAGS="$CFLAGS -Wsequence-point"
16945
16946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16947$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16948		cacheid=xorg_cv_cc_flag__Wsequence_point
16949		if eval \${$cacheid+:} false; then :
16950  $as_echo_n "(cached) " >&6
16951else
16952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h.  */
16954int i;
16955int
16956main ()
16957{
16958
16959  ;
16960  return 0;
16961}
16962_ACEOF
16963if ac_fn_c_try_link "$LINENO"; then :
16964  eval $cacheid=yes
16965else
16966  eval $cacheid=no
16967fi
16968rm -f core conftest.err conftest.$ac_objext \
16969    conftest$ac_exeext conftest.$ac_ext
16970fi
16971
16972
16973		CFLAGS="$xorg_testset_save_CFLAGS"
16974
16975		eval supported=\$$cacheid
16976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16977$as_echo "$supported" >&6; }
16978		if test "$supported" = "yes" ; then
16979			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16980			found="yes"
16981		fi
16982	fi
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998xorg_testset_save_CFLAGS="$CFLAGS"
16999
17000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17005  $as_echo_n "(cached) " >&6
17006else
17007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008/* end confdefs.h.  */
17009int i;
17010_ACEOF
17011if ac_fn_c_try_compile "$LINENO"; then :
17012  xorg_cv_cc_flag_unknown_warning_option=yes
17013else
17014  xorg_cv_cc_flag_unknown_warning_option=no
17015fi
17016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017fi
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17021	CFLAGS="$xorg_testset_save_CFLAGS"
17022fi
17023
17024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027	fi
17028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17032  $as_echo_n "(cached) " >&6
17033else
17034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035/* end confdefs.h.  */
17036int i;
17037_ACEOF
17038if ac_fn_c_try_compile "$LINENO"; then :
17039  xorg_cv_cc_flag_unused_command_line_argument=yes
17040else
17041  xorg_cv_cc_flag_unused_command_line_argument=no
17042fi
17043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044fi
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17048	CFLAGS="$xorg_testset_save_CFLAGS"
17049fi
17050
17051found="no"
17052
17053	if test $found = "no" ; then
17054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056		fi
17057
17058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060		fi
17061
17062		CFLAGS="$CFLAGS -Wreturn-type"
17063
17064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17065$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17066		cacheid=xorg_cv_cc_flag__Wreturn_type
17067		if eval \${$cacheid+:} false; then :
17068  $as_echo_n "(cached) " >&6
17069else
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072int i;
17073int
17074main ()
17075{
17076
17077  ;
17078  return 0;
17079}
17080_ACEOF
17081if ac_fn_c_try_link "$LINENO"; then :
17082  eval $cacheid=yes
17083else
17084  eval $cacheid=no
17085fi
17086rm -f core conftest.err conftest.$ac_objext \
17087    conftest$ac_exeext conftest.$ac_ext
17088fi
17089
17090
17091		CFLAGS="$xorg_testset_save_CFLAGS"
17092
17093		eval supported=\$$cacheid
17094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17095$as_echo "$supported" >&6; }
17096		if test "$supported" = "yes" ; then
17097			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17098			found="yes"
17099		fi
17100	fi
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116xorg_testset_save_CFLAGS="$CFLAGS"
17117
17118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17123  $as_echo_n "(cached) " >&6
17124else
17125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126/* end confdefs.h.  */
17127int i;
17128_ACEOF
17129if ac_fn_c_try_compile "$LINENO"; then :
17130  xorg_cv_cc_flag_unknown_warning_option=yes
17131else
17132  xorg_cv_cc_flag_unknown_warning_option=no
17133fi
17134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17139	CFLAGS="$xorg_testset_save_CFLAGS"
17140fi
17141
17142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145	fi
17146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17150  $as_echo_n "(cached) " >&6
17151else
17152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154int i;
17155_ACEOF
17156if ac_fn_c_try_compile "$LINENO"; then :
17157  xorg_cv_cc_flag_unused_command_line_argument=yes
17158else
17159  xorg_cv_cc_flag_unused_command_line_argument=no
17160fi
17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162fi
17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17166	CFLAGS="$xorg_testset_save_CFLAGS"
17167fi
17168
17169found="no"
17170
17171	if test $found = "no" ; then
17172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17174		fi
17175
17176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17178		fi
17179
17180		CFLAGS="$CFLAGS -Wtrigraphs"
17181
17182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17183$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17184		cacheid=xorg_cv_cc_flag__Wtrigraphs
17185		if eval \${$cacheid+:} false; then :
17186  $as_echo_n "(cached) " >&6
17187else
17188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189/* end confdefs.h.  */
17190int i;
17191int
17192main ()
17193{
17194
17195  ;
17196  return 0;
17197}
17198_ACEOF
17199if ac_fn_c_try_link "$LINENO"; then :
17200  eval $cacheid=yes
17201else
17202  eval $cacheid=no
17203fi
17204rm -f core conftest.err conftest.$ac_objext \
17205    conftest$ac_exeext conftest.$ac_ext
17206fi
17207
17208
17209		CFLAGS="$xorg_testset_save_CFLAGS"
17210
17211		eval supported=\$$cacheid
17212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17213$as_echo "$supported" >&6; }
17214		if test "$supported" = "yes" ; then
17215			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17216			found="yes"
17217		fi
17218	fi
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234xorg_testset_save_CFLAGS="$CFLAGS"
17235
17236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17241  $as_echo_n "(cached) " >&6
17242else
17243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245int i;
17246_ACEOF
17247if ac_fn_c_try_compile "$LINENO"; then :
17248  xorg_cv_cc_flag_unknown_warning_option=yes
17249else
17250  xorg_cv_cc_flag_unknown_warning_option=no
17251fi
17252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253fi
17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17257	CFLAGS="$xorg_testset_save_CFLAGS"
17258fi
17259
17260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263	fi
17264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h.  */
17272int i;
17273_ACEOF
17274if ac_fn_c_try_compile "$LINENO"; then :
17275  xorg_cv_cc_flag_unused_command_line_argument=yes
17276else
17277  xorg_cv_cc_flag_unused_command_line_argument=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17284	CFLAGS="$xorg_testset_save_CFLAGS"
17285fi
17286
17287found="no"
17288
17289	if test $found = "no" ; then
17290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17292		fi
17293
17294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17296		fi
17297
17298		CFLAGS="$CFLAGS -Warray-bounds"
17299
17300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17301$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17302		cacheid=xorg_cv_cc_flag__Warray_bounds
17303		if eval \${$cacheid+:} false; then :
17304  $as_echo_n "(cached) " >&6
17305else
17306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307/* end confdefs.h.  */
17308int i;
17309int
17310main ()
17311{
17312
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317if ac_fn_c_try_link "$LINENO"; then :
17318  eval $cacheid=yes
17319else
17320  eval $cacheid=no
17321fi
17322rm -f core conftest.err conftest.$ac_objext \
17323    conftest$ac_exeext conftest.$ac_ext
17324fi
17325
17326
17327		CFLAGS="$xorg_testset_save_CFLAGS"
17328
17329		eval supported=\$$cacheid
17330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17331$as_echo "$supported" >&6; }
17332		if test "$supported" = "yes" ; then
17333			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17334			found="yes"
17335		fi
17336	fi
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352xorg_testset_save_CFLAGS="$CFLAGS"
17353
17354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17359  $as_echo_n "(cached) " >&6
17360else
17361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362/* end confdefs.h.  */
17363int i;
17364_ACEOF
17365if ac_fn_c_try_compile "$LINENO"; then :
17366  xorg_cv_cc_flag_unknown_warning_option=yes
17367else
17368  xorg_cv_cc_flag_unknown_warning_option=no
17369fi
17370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371fi
17372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17375	CFLAGS="$xorg_testset_save_CFLAGS"
17376fi
17377
17378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381	fi
17382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17386  $as_echo_n "(cached) " >&6
17387else
17388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390int i;
17391_ACEOF
17392if ac_fn_c_try_compile "$LINENO"; then :
17393  xorg_cv_cc_flag_unused_command_line_argument=yes
17394else
17395  xorg_cv_cc_flag_unused_command_line_argument=no
17396fi
17397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398fi
17399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17402	CFLAGS="$xorg_testset_save_CFLAGS"
17403fi
17404
17405found="no"
17406
17407	if test $found = "no" ; then
17408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17410		fi
17411
17412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17414		fi
17415
17416		CFLAGS="$CFLAGS -Wwrite-strings"
17417
17418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17419$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17420		cacheid=xorg_cv_cc_flag__Wwrite_strings
17421		if eval \${$cacheid+:} false; then :
17422  $as_echo_n "(cached) " >&6
17423else
17424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h.  */
17426int i;
17427int
17428main ()
17429{
17430
17431  ;
17432  return 0;
17433}
17434_ACEOF
17435if ac_fn_c_try_link "$LINENO"; then :
17436  eval $cacheid=yes
17437else
17438  eval $cacheid=no
17439fi
17440rm -f core conftest.err conftest.$ac_objext \
17441    conftest$ac_exeext conftest.$ac_ext
17442fi
17443
17444
17445		CFLAGS="$xorg_testset_save_CFLAGS"
17446
17447		eval supported=\$$cacheid
17448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17449$as_echo "$supported" >&6; }
17450		if test "$supported" = "yes" ; then
17451			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17452			found="yes"
17453		fi
17454	fi
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470xorg_testset_save_CFLAGS="$CFLAGS"
17471
17472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17477  $as_echo_n "(cached) " >&6
17478else
17479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h.  */
17481int i;
17482_ACEOF
17483if ac_fn_c_try_compile "$LINENO"; then :
17484  xorg_cv_cc_flag_unknown_warning_option=yes
17485else
17486  xorg_cv_cc_flag_unknown_warning_option=no
17487fi
17488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489fi
17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17493	CFLAGS="$xorg_testset_save_CFLAGS"
17494fi
17495
17496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499	fi
17500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17504  $as_echo_n "(cached) " >&6
17505else
17506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507/* end confdefs.h.  */
17508int i;
17509_ACEOF
17510if ac_fn_c_try_compile "$LINENO"; then :
17511  xorg_cv_cc_flag_unused_command_line_argument=yes
17512else
17513  xorg_cv_cc_flag_unused_command_line_argument=no
17514fi
17515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17516fi
17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17520	CFLAGS="$xorg_testset_save_CFLAGS"
17521fi
17522
17523found="no"
17524
17525	if test $found = "no" ; then
17526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17528		fi
17529
17530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17532		fi
17533
17534		CFLAGS="$CFLAGS -Waddress"
17535
17536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17537$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17538		cacheid=xorg_cv_cc_flag__Waddress
17539		if eval \${$cacheid+:} false; then :
17540  $as_echo_n "(cached) " >&6
17541else
17542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543/* end confdefs.h.  */
17544int i;
17545int
17546main ()
17547{
17548
17549  ;
17550  return 0;
17551}
17552_ACEOF
17553if ac_fn_c_try_link "$LINENO"; then :
17554  eval $cacheid=yes
17555else
17556  eval $cacheid=no
17557fi
17558rm -f core conftest.err conftest.$ac_objext \
17559    conftest$ac_exeext conftest.$ac_ext
17560fi
17561
17562
17563		CFLAGS="$xorg_testset_save_CFLAGS"
17564
17565		eval supported=\$$cacheid
17566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17567$as_echo "$supported" >&6; }
17568		if test "$supported" = "yes" ; then
17569			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17570			found="yes"
17571		fi
17572	fi
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588xorg_testset_save_CFLAGS="$CFLAGS"
17589
17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17595  $as_echo_n "(cached) " >&6
17596else
17597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598/* end confdefs.h.  */
17599int i;
17600_ACEOF
17601if ac_fn_c_try_compile "$LINENO"; then :
17602  xorg_cv_cc_flag_unknown_warning_option=yes
17603else
17604  xorg_cv_cc_flag_unknown_warning_option=no
17605fi
17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607fi
17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17611	CFLAGS="$xorg_testset_save_CFLAGS"
17612fi
17613
17614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617	fi
17618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17622  $as_echo_n "(cached) " >&6
17623else
17624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625/* end confdefs.h.  */
17626int i;
17627_ACEOF
17628if ac_fn_c_try_compile "$LINENO"; then :
17629  xorg_cv_cc_flag_unused_command_line_argument=yes
17630else
17631  xorg_cv_cc_flag_unused_command_line_argument=no
17632fi
17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634fi
17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17638	CFLAGS="$xorg_testset_save_CFLAGS"
17639fi
17640
17641found="no"
17642
17643	if test $found = "no" ; then
17644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17646		fi
17647
17648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17650		fi
17651
17652		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17653
17654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17655$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17656		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17657		if eval \${$cacheid+:} false; then :
17658  $as_echo_n "(cached) " >&6
17659else
17660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661/* end confdefs.h.  */
17662int i;
17663int
17664main ()
17665{
17666
17667  ;
17668  return 0;
17669}
17670_ACEOF
17671if ac_fn_c_try_link "$LINENO"; then :
17672  eval $cacheid=yes
17673else
17674  eval $cacheid=no
17675fi
17676rm -f core conftest.err conftest.$ac_objext \
17677    conftest$ac_exeext conftest.$ac_ext
17678fi
17679
17680
17681		CFLAGS="$xorg_testset_save_CFLAGS"
17682
17683		eval supported=\$$cacheid
17684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17685$as_echo "$supported" >&6; }
17686		if test "$supported" = "yes" ; then
17687			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17688			found="yes"
17689		fi
17690	fi
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706xorg_testset_save_CFLAGS="$CFLAGS"
17707
17708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17713  $as_echo_n "(cached) " >&6
17714else
17715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h.  */
17717int i;
17718_ACEOF
17719if ac_fn_c_try_compile "$LINENO"; then :
17720  xorg_cv_cc_flag_unknown_warning_option=yes
17721else
17722  xorg_cv_cc_flag_unknown_warning_option=no
17723fi
17724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17729	CFLAGS="$xorg_testset_save_CFLAGS"
17730fi
17731
17732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17735	fi
17736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17740  $as_echo_n "(cached) " >&6
17741else
17742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h.  */
17744int i;
17745_ACEOF
17746if ac_fn_c_try_compile "$LINENO"; then :
17747  xorg_cv_cc_flag_unused_command_line_argument=yes
17748else
17749  xorg_cv_cc_flag_unused_command_line_argument=no
17750fi
17751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752fi
17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17756	CFLAGS="$xorg_testset_save_CFLAGS"
17757fi
17758
17759found="no"
17760
17761	if test $found = "no" ; then
17762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17764		fi
17765
17766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17768		fi
17769
17770		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17771
17772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17773$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17774		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17775		if eval \${$cacheid+:} false; then :
17776  $as_echo_n "(cached) " >&6
17777else
17778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h.  */
17780int i;
17781int
17782main ()
17783{
17784
17785  ;
17786  return 0;
17787}
17788_ACEOF
17789if ac_fn_c_try_link "$LINENO"; then :
17790  eval $cacheid=yes
17791else
17792  eval $cacheid=no
17793fi
17794rm -f core conftest.err conftest.$ac_objext \
17795    conftest$ac_exeext conftest.$ac_ext
17796fi
17797
17798
17799		CFLAGS="$xorg_testset_save_CFLAGS"
17800
17801		eval supported=\$$cacheid
17802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17803$as_echo "$supported" >&6; }
17804		if test "$supported" = "yes" ; then
17805			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17806			found="yes"
17807		fi
17808	fi
17809
17810
17811fi
17812
17813
17814
17815
17816
17817
17818
17819		CWARNFLAGS="$BASE_CFLAGS"
17820		if  test "x$GCC" = xyes ; then
17821		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17822		fi
17823
17824
17825
17826
17827
17828
17829
17830
17831# Check whether --enable-strict-compilation was given.
17832if test "${enable_strict_compilation+set}" = set; then :
17833  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17834else
17835  STRICT_COMPILE=no
17836fi
17837
17838
17839
17840
17841
17842
17843STRICT_CFLAGS=""
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857xorg_testset_save_CFLAGS="$CFLAGS"
17858
17859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17864  $as_echo_n "(cached) " >&6
17865else
17866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867/* end confdefs.h.  */
17868int i;
17869_ACEOF
17870if ac_fn_c_try_compile "$LINENO"; then :
17871  xorg_cv_cc_flag_unknown_warning_option=yes
17872else
17873  xorg_cv_cc_flag_unknown_warning_option=no
17874fi
17875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876fi
17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17879	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17880	CFLAGS="$xorg_testset_save_CFLAGS"
17881fi
17882
17883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17884	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17885		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886	fi
17887	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17891  $as_echo_n "(cached) " >&6
17892else
17893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894/* end confdefs.h.  */
17895int i;
17896_ACEOF
17897if ac_fn_c_try_compile "$LINENO"; then :
17898  xorg_cv_cc_flag_unused_command_line_argument=yes
17899else
17900  xorg_cv_cc_flag_unused_command_line_argument=no
17901fi
17902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17903fi
17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17907	CFLAGS="$xorg_testset_save_CFLAGS"
17908fi
17909
17910found="no"
17911
17912	if test $found = "no" ; then
17913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17915		fi
17916
17917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17919		fi
17920
17921		CFLAGS="$CFLAGS -pedantic"
17922
17923		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17924$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17925		cacheid=xorg_cv_cc_flag__pedantic
17926		if eval \${$cacheid+:} false; then :
17927  $as_echo_n "(cached) " >&6
17928else
17929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930/* end confdefs.h.  */
17931int i;
17932int
17933main ()
17934{
17935
17936  ;
17937  return 0;
17938}
17939_ACEOF
17940if ac_fn_c_try_link "$LINENO"; then :
17941  eval $cacheid=yes
17942else
17943  eval $cacheid=no
17944fi
17945rm -f core conftest.err conftest.$ac_objext \
17946    conftest$ac_exeext conftest.$ac_ext
17947fi
17948
17949
17950		CFLAGS="$xorg_testset_save_CFLAGS"
17951
17952		eval supported=\$$cacheid
17953		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17954$as_echo "$supported" >&6; }
17955		if test "$supported" = "yes" ; then
17956			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17957			found="yes"
17958		fi
17959	fi
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975xorg_testset_save_CFLAGS="$CFLAGS"
17976
17977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17980$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17981if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17982  $as_echo_n "(cached) " >&6
17983else
17984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985/* end confdefs.h.  */
17986int i;
17987_ACEOF
17988if ac_fn_c_try_compile "$LINENO"; then :
17989  xorg_cv_cc_flag_unknown_warning_option=yes
17990else
17991  xorg_cv_cc_flag_unknown_warning_option=no
17992fi
17993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994fi
17995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17996$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17997	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17998	CFLAGS="$xorg_testset_save_CFLAGS"
17999fi
18000
18001if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18002	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18003		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18004	fi
18005	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18007$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18008if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18009  $as_echo_n "(cached) " >&6
18010else
18011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012/* end confdefs.h.  */
18013int i;
18014_ACEOF
18015if ac_fn_c_try_compile "$LINENO"; then :
18016  xorg_cv_cc_flag_unused_command_line_argument=yes
18017else
18018  xorg_cv_cc_flag_unused_command_line_argument=no
18019fi
18020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021fi
18022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18023$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18025	CFLAGS="$xorg_testset_save_CFLAGS"
18026fi
18027
18028found="no"
18029
18030	if test $found = "no" ; then
18031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18033		fi
18034
18035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18037		fi
18038
18039		CFLAGS="$CFLAGS -Werror"
18040
18041		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18042$as_echo_n "checking if $CC supports -Werror... " >&6; }
18043		cacheid=xorg_cv_cc_flag__Werror
18044		if eval \${$cacheid+:} false; then :
18045  $as_echo_n "(cached) " >&6
18046else
18047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049int i;
18050int
18051main ()
18052{
18053
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"; then :
18059  eval $cacheid=yes
18060else
18061  eval $cacheid=no
18062fi
18063rm -f core conftest.err conftest.$ac_objext \
18064    conftest$ac_exeext conftest.$ac_ext
18065fi
18066
18067
18068		CFLAGS="$xorg_testset_save_CFLAGS"
18069
18070		eval supported=\$$cacheid
18071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18072$as_echo "$supported" >&6; }
18073		if test "$supported" = "yes" ; then
18074			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18075			found="yes"
18076		fi
18077	fi
18078
18079	if test $found = "no" ; then
18080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18082		fi
18083
18084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18086		fi
18087
18088		CFLAGS="$CFLAGS -errwarn"
18089
18090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18091$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18092		cacheid=xorg_cv_cc_flag__errwarn
18093		if eval \${$cacheid+:} false; then :
18094  $as_echo_n "(cached) " >&6
18095else
18096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097/* end confdefs.h.  */
18098int i;
18099int
18100main ()
18101{
18102
18103  ;
18104  return 0;
18105}
18106_ACEOF
18107if ac_fn_c_try_link "$LINENO"; then :
18108  eval $cacheid=yes
18109else
18110  eval $cacheid=no
18111fi
18112rm -f core conftest.err conftest.$ac_objext \
18113    conftest$ac_exeext conftest.$ac_ext
18114fi
18115
18116
18117		CFLAGS="$xorg_testset_save_CFLAGS"
18118
18119		eval supported=\$$cacheid
18120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18121$as_echo "$supported" >&6; }
18122		if test "$supported" = "yes" ; then
18123			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18124			found="yes"
18125		fi
18126	fi
18127
18128
18129
18130# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18131# activate it with -Werror, so we add it here explicitly.
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145xorg_testset_save_CFLAGS="$CFLAGS"
18146
18147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18152  $as_echo_n "(cached) " >&6
18153else
18154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155/* end confdefs.h.  */
18156int i;
18157_ACEOF
18158if ac_fn_c_try_compile "$LINENO"; then :
18159  xorg_cv_cc_flag_unknown_warning_option=yes
18160else
18161  xorg_cv_cc_flag_unknown_warning_option=no
18162fi
18163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164fi
18165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18168	CFLAGS="$xorg_testset_save_CFLAGS"
18169fi
18170
18171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	fi
18175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18179  $as_echo_n "(cached) " >&6
18180else
18181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182/* end confdefs.h.  */
18183int i;
18184_ACEOF
18185if ac_fn_c_try_compile "$LINENO"; then :
18186  xorg_cv_cc_flag_unused_command_line_argument=yes
18187else
18188  xorg_cv_cc_flag_unused_command_line_argument=no
18189fi
18190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191fi
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18195	CFLAGS="$xorg_testset_save_CFLAGS"
18196fi
18197
18198found="no"
18199
18200	if test $found = "no" ; then
18201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203		fi
18204
18205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18207		fi
18208
18209		CFLAGS="$CFLAGS -Werror=attributes"
18210
18211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18212$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18213		cacheid=xorg_cv_cc_flag__Werror_attributes
18214		if eval \${$cacheid+:} false; then :
18215  $as_echo_n "(cached) " >&6
18216else
18217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18218/* end confdefs.h.  */
18219int i;
18220int
18221main ()
18222{
18223
18224  ;
18225  return 0;
18226}
18227_ACEOF
18228if ac_fn_c_try_link "$LINENO"; then :
18229  eval $cacheid=yes
18230else
18231  eval $cacheid=no
18232fi
18233rm -f core conftest.err conftest.$ac_objext \
18234    conftest$ac_exeext conftest.$ac_ext
18235fi
18236
18237
18238		CFLAGS="$xorg_testset_save_CFLAGS"
18239
18240		eval supported=\$$cacheid
18241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18242$as_echo "$supported" >&6; }
18243		if test "$supported" = "yes" ; then
18244			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18245			found="yes"
18246		fi
18247	fi
18248
18249
18250
18251if test "x$STRICT_COMPILE" = "xyes"; then
18252    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18253    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18254fi
18255
18256
18257
18258
18259
18260
18261cat >>confdefs.h <<_ACEOF
18262#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18263_ACEOF
18264
18265	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18266	if test "x$PVM" = "x"; then
18267		PVM="0"
18268	fi
18269
18270cat >>confdefs.h <<_ACEOF
18271#define PACKAGE_VERSION_MINOR $PVM
18272_ACEOF
18273
18274	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18275	if test "x$PVP" = "x"; then
18276		PVP="0"
18277	fi
18278
18279cat >>confdefs.h <<_ACEOF
18280#define PACKAGE_VERSION_PATCHLEVEL $PVP
18281_ACEOF
18282
18283
18284
18285CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18286mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18287|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18288touch \$(top_srcdir)/ChangeLog; \
18289echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18290
18291
18292
18293
18294macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18295INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18296mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18297|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18298touch \$(top_srcdir)/INSTALL; \
18299echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18300
18301
18302
18303
18304
18305
18306case $host_os in
18307    solaris*)
18308        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18309        # check for a man page file found in later versions that use
18310        # traditional section numbers instead
18311        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18312$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18313if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18314  $as_echo_n "(cached) " >&6
18315else
18316  test "$cross_compiling" = yes &&
18317  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18318if test -r "/usr/share/man/man7/attributes.7"; then
18319  ac_cv_file__usr_share_man_man7_attributes_7=yes
18320else
18321  ac_cv_file__usr_share_man_man7_attributes_7=no
18322fi
18323fi
18324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18325$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18326if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18327  SYSV_MAN_SECTIONS=false
18328else
18329  SYSV_MAN_SECTIONS=true
18330fi
18331
18332        ;;
18333    *) SYSV_MAN_SECTIONS=false ;;
18334esac
18335
18336if test x$APP_MAN_SUFFIX = x    ; then
18337    APP_MAN_SUFFIX=1
18338fi
18339if test x$APP_MAN_DIR = x    ; then
18340    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18341fi
18342
18343if test x$LIB_MAN_SUFFIX = x    ; then
18344    LIB_MAN_SUFFIX=3
18345fi
18346if test x$LIB_MAN_DIR = x    ; then
18347    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18348fi
18349
18350if test x$FILE_MAN_SUFFIX = x    ; then
18351    case $SYSV_MAN_SECTIONS in
18352	true)				FILE_MAN_SUFFIX=4  ;;
18353	*)				FILE_MAN_SUFFIX=5  ;;
18354    esac
18355fi
18356if test x$FILE_MAN_DIR = x    ; then
18357    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18358fi
18359
18360if test x$MISC_MAN_SUFFIX = x    ; then
18361    case $SYSV_MAN_SECTIONS in
18362	true)				MISC_MAN_SUFFIX=5  ;;
18363	*)				MISC_MAN_SUFFIX=7  ;;
18364    esac
18365fi
18366if test x$MISC_MAN_DIR = x    ; then
18367    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18368fi
18369
18370if test x$DRIVER_MAN_SUFFIX = x    ; then
18371    case $SYSV_MAN_SECTIONS in
18372	true)				DRIVER_MAN_SUFFIX=7  ;;
18373	*)				DRIVER_MAN_SUFFIX=4  ;;
18374    esac
18375fi
18376if test x$DRIVER_MAN_DIR = x    ; then
18377    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18378fi
18379
18380if test x$ADMIN_MAN_SUFFIX = x    ; then
18381    case $SYSV_MAN_SECTIONS in
18382	true)				ADMIN_MAN_SUFFIX=1m ;;
18383	*)				ADMIN_MAN_SUFFIX=8  ;;
18384    esac
18385fi
18386if test x$ADMIN_MAN_DIR = x    ; then
18387    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18388fi
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404XORG_MAN_PAGE="X Version 11"
18405
18406MAN_SUBSTS="\
18407	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18408	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18409	-e 's|__xservername__|Xorg|g' \
18410	-e 's|__xconfigfile__|xorg.conf|g' \
18411	-e 's|__projectroot__|\$(prefix)|g' \
18412	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18413	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18414	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18415	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18416	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18417	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18418	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18419
18420
18421
18422# Check whether --enable-silent-rules was given.
18423if test "${enable_silent_rules+set}" = set; then :
18424  enableval=$enable_silent_rules;
18425fi
18426
18427case $enable_silent_rules in # (((
18428  yes) AM_DEFAULT_VERBOSITY=0;;
18429   no) AM_DEFAULT_VERBOSITY=1;;
18430    *) AM_DEFAULT_VERBOSITY=0;;
18431esac
18432am_make=${MAKE-make}
18433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18434$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18435if ${am_cv_make_support_nested_variables+:} false; then :
18436  $as_echo_n "(cached) " >&6
18437else
18438  if $as_echo 'TRUE=$(BAR$(V))
18439BAR0=false
18440BAR1=true
18441V=1
18442am__doit:
18443	@$(TRUE)
18444.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18445  am_cv_make_support_nested_variables=yes
18446else
18447  am_cv_make_support_nested_variables=no
18448fi
18449fi
18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18451$as_echo "$am_cv_make_support_nested_variables" >&6; }
18452if test $am_cv_make_support_nested_variables = yes; then
18453    AM_V='$(V)'
18454  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18455else
18456  AM_V=$AM_DEFAULT_VERBOSITY
18457  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18458fi
18459AM_BACKSLASH='\'
18460
18461
18462
18463pciids_path=/usr/share/hwdata
18464
18465# Check whether --with-pciids-path was given.
18466if test "${with_pciids_path+set}" = set; then :
18467  withval=$with_pciids_path; pciids_path="$withval"
18468fi
18469
18470
18471  prefix_NONE=
18472  exec_prefix_NONE=
18473  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18474  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18475  eval ax_define_dir="\"$pciids_path\""
18476  eval ax_define_dir="\"$ax_define_dir\""
18477  PCIIDS_PATH="$ax_define_dir"
18478
18479
18480cat >>confdefs.h <<_ACEOF
18481#define PCIIDS_PATH "$ax_define_dir"
18482_ACEOF
18483
18484  test "$prefix_NONE" && prefix=NONE
18485  test "$exec_prefix_NONE" && exec_prefix=NONE
18486
18487
18488# Check whether --enable-linux-rom-fallback was given.
18489if test "${enable_linux_rom_fallback+set}" = set; then :
18490  enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval
18491else
18492  LINUX_ROM=no
18493fi
18494
18495
18496if test "x$LINUX_ROM" = xyes; then
18497
18498$as_echo "#define LINUX_ROM 1" >>confdefs.h
18499
18500fi
18501
18502use_zlib=no
18503
18504# Check whether --with-zlib was given.
18505if test "${with_zlib+set}" = set; then :
18506  withval=$with_zlib; use_zlib="$withval"
18507fi
18508
18509if test "x$use_zlib" = xyes; then
18510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18511$as_echo_n "checking for gzopen in -lz... " >&6; }
18512if ${ac_cv_lib_z_gzopen+:} false; then :
18513  $as_echo_n "(cached) " >&6
18514else
18515  ac_check_lib_save_LIBS=$LIBS
18516LIBS="-lz  $LIBS"
18517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518/* end confdefs.h.  */
18519
18520/* Override any GCC internal prototype to avoid an error.
18521   Use char because int might match the return type of a GCC
18522   builtin and then its argument prototype would still apply.  */
18523#ifdef __cplusplus
18524extern "C"
18525#endif
18526char gzopen ();
18527int
18528main ()
18529{
18530return gzopen ();
18531  ;
18532  return 0;
18533}
18534_ACEOF
18535if ac_fn_c_try_link "$LINENO"; then :
18536  ac_cv_lib_z_gzopen=yes
18537else
18538  ac_cv_lib_z_gzopen=no
18539fi
18540rm -f core conftest.err conftest.$ac_objext \
18541    conftest$ac_exeext conftest.$ac_ext
18542LIBS=$ac_check_lib_save_LIBS
18543fi
18544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18545$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18546if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18547  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
18548else
18549  as_fn_error $? "Check for zlib library failed" "$LINENO" 5
18550fi
18551
18552	ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18553if test "x$ac_cv_header_zlib_h" = xyes; then :
18554
18555$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18556
18557else
18558  as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5
18559fi
18560
18561
18562fi
18563
18564case $host_os in
18565	*freebsd* | *dragonfly*)
18566		freebsd=yes
18567		;;
18568	*linux*)
18569		linux=yes
18570		;;
18571	*netbsd*)
18572		case $host in
18573		*i[3-9]86*)
18574			PCIACCESS_LIBS="$PCIACCESS_LIBS -li386"
18575			;;
18576		*x86_64*|*amd64*)
18577			PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64"
18578			;;
18579		*alpha*)
18580			PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha"
18581			;;
18582		esac
18583		PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci"
18584		netbsd=yes
18585		;;
18586	*openbsd*)
18587		openbsd=yes
18588		;;
18589	*solaris*)
18590		solaris=yes
18591		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
18592		;;
18593	gnu*)
18594		gnu=yes
18595		;;
18596	*cygwin*)
18597		cygwin=yes
18598		PCIACCESS_LIBS="$PCIACCESS_LIBS"
18599		;;
18600esac
18601
18602 if test "x$linux" = xyes; then
18603  LINUX_TRUE=
18604  LINUX_FALSE='#'
18605else
18606  LINUX_TRUE='#'
18607  LINUX_FALSE=
18608fi
18609
18610 if test "x$freebsd" = xyes; then
18611  FREEBSD_TRUE=
18612  FREEBSD_FALSE='#'
18613else
18614  FREEBSD_TRUE='#'
18615  FREEBSD_FALSE=
18616fi
18617
18618 if test "x$netbsd" = xyes; then
18619  NETBSD_TRUE=
18620  NETBSD_FALSE='#'
18621else
18622  NETBSD_TRUE='#'
18623  NETBSD_FALSE=
18624fi
18625
18626 if test "x$openbsd" = xyes; then
18627  OPENBSD_TRUE=
18628  OPENBSD_FALSE='#'
18629else
18630  OPENBSD_TRUE='#'
18631  OPENBSD_FALSE=
18632fi
18633
18634 if test "x$solaris" = xyes; then
18635  SOLARIS_TRUE=
18636  SOLARIS_FALSE='#'
18637else
18638  SOLARIS_TRUE='#'
18639  SOLARIS_FALSE=
18640fi
18641
18642 if test "x$gnu" = xyes; then
18643  GNU_TRUE=
18644  GNU_FALSE='#'
18645else
18646  GNU_TRUE='#'
18647  GNU_FALSE=
18648fi
18649
18650 if test "x$cygwin" = xyes; then
18651  CYGWIN_TRUE=
18652  CYGWIN_FALSE='#'
18653else
18654  CYGWIN_TRUE='#'
18655  CYGWIN_FALSE=
18656fi
18657
18658
18659# Check whether --enable-largefile was given.
18660if test "${enable_largefile+set}" = set; then :
18661  enableval=$enable_largefile;
18662fi
18663
18664if test "$enable_largefile" != no; then
18665
18666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18667$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18668if ${ac_cv_sys_largefile_CC+:} false; then :
18669  $as_echo_n "(cached) " >&6
18670else
18671  ac_cv_sys_largefile_CC=no
18672     if test "$GCC" != yes; then
18673       ac_save_CC=$CC
18674       while :; do
18675	 # IRIX 6.2 and later do not support large files by default,
18676	 # so use the C compiler's -n32 option if that helps.
18677	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678/* end confdefs.h.  */
18679#include <sys/types.h>
18680 /* Check that off_t can represent 2**63 - 1 correctly.
18681    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18682    since some C++ compilers masquerading as C compilers
18683    incorrectly reject 9223372036854775807.  */
18684#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18685  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18686		       && LARGE_OFF_T % 2147483647 == 1)
18687		      ? 1 : -1];
18688int
18689main ()
18690{
18691
18692  ;
18693  return 0;
18694}
18695_ACEOF
18696	 if ac_fn_c_try_compile "$LINENO"; then :
18697  break
18698fi
18699rm -f core conftest.err conftest.$ac_objext
18700	 CC="$CC -n32"
18701	 if ac_fn_c_try_compile "$LINENO"; then :
18702  ac_cv_sys_largefile_CC=' -n32'; break
18703fi
18704rm -f core conftest.err conftest.$ac_objext
18705	 break
18706       done
18707       CC=$ac_save_CC
18708       rm -f conftest.$ac_ext
18709    fi
18710fi
18711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18712$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18713  if test "$ac_cv_sys_largefile_CC" != no; then
18714    CC=$CC$ac_cv_sys_largefile_CC
18715  fi
18716
18717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18718$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18719if ${ac_cv_sys_file_offset_bits+:} false; then :
18720  $as_echo_n "(cached) " >&6
18721else
18722  while :; do
18723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18724/* end confdefs.h.  */
18725#include <sys/types.h>
18726 /* Check that off_t can represent 2**63 - 1 correctly.
18727    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18728    since some C++ compilers masquerading as C compilers
18729    incorrectly reject 9223372036854775807.  */
18730#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18731  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18732		       && LARGE_OFF_T % 2147483647 == 1)
18733		      ? 1 : -1];
18734int
18735main ()
18736{
18737
18738  ;
18739  return 0;
18740}
18741_ACEOF
18742if ac_fn_c_try_compile "$LINENO"; then :
18743  ac_cv_sys_file_offset_bits=no; break
18744fi
18745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747/* end confdefs.h.  */
18748#define _FILE_OFFSET_BITS 64
18749#include <sys/types.h>
18750 /* Check that off_t can represent 2**63 - 1 correctly.
18751    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18752    since some C++ compilers masquerading as C compilers
18753    incorrectly reject 9223372036854775807.  */
18754#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18755  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18756		       && LARGE_OFF_T % 2147483647 == 1)
18757		      ? 1 : -1];
18758int
18759main ()
18760{
18761
18762  ;
18763  return 0;
18764}
18765_ACEOF
18766if ac_fn_c_try_compile "$LINENO"; then :
18767  ac_cv_sys_file_offset_bits=64; break
18768fi
18769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770  ac_cv_sys_file_offset_bits=unknown
18771  break
18772done
18773fi
18774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18775$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18776case $ac_cv_sys_file_offset_bits in #(
18777  no | unknown) ;;
18778  *)
18779cat >>confdefs.h <<_ACEOF
18780#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18781_ACEOF
18782;;
18783esac
18784rm -rf conftest*
18785  if test $ac_cv_sys_file_offset_bits = unknown; then
18786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18787$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18788if ${ac_cv_sys_large_files+:} false; then :
18789  $as_echo_n "(cached) " >&6
18790else
18791  while :; do
18792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793/* end confdefs.h.  */
18794#include <sys/types.h>
18795 /* Check that off_t can represent 2**63 - 1 correctly.
18796    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18797    since some C++ compilers masquerading as C compilers
18798    incorrectly reject 9223372036854775807.  */
18799#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18800  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18801		       && LARGE_OFF_T % 2147483647 == 1)
18802		      ? 1 : -1];
18803int
18804main ()
18805{
18806
18807  ;
18808  return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_compile "$LINENO"; then :
18812  ac_cv_sys_large_files=no; break
18813fi
18814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816/* end confdefs.h.  */
18817#define _LARGE_FILES 1
18818#include <sys/types.h>
18819 /* Check that off_t can represent 2**63 - 1 correctly.
18820    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18821    since some C++ compilers masquerading as C compilers
18822    incorrectly reject 9223372036854775807.  */
18823#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18824  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18825		       && LARGE_OFF_T % 2147483647 == 1)
18826		      ? 1 : -1];
18827int
18828main ()
18829{
18830
18831  ;
18832  return 0;
18833}
18834_ACEOF
18835if ac_fn_c_try_compile "$LINENO"; then :
18836  ac_cv_sys_large_files=1; break
18837fi
18838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839  ac_cv_sys_large_files=unknown
18840  break
18841done
18842fi
18843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18844$as_echo "$ac_cv_sys_large_files" >&6; }
18845case $ac_cv_sys_large_files in #(
18846  no | unknown) ;;
18847  *)
18848cat >>confdefs.h <<_ACEOF
18849#define _LARGE_FILES $ac_cv_sys_large_files
18850_ACEOF
18851;;
18852esac
18853rm -rf conftest*
18854  fi
18855
18856
18857fi
18858
18859
18860for ac_header in err.h
18861do :
18862  ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
18863if test "x$ac_cv_header_err_h" = xyes; then :
18864  cat >>confdefs.h <<_ACEOF
18865#define HAVE_ERR_H 1
18866_ACEOF
18867
18868fi
18869
18870done
18871
18872
18873if test "x$netbsd" = xyes; then
18874for ac_header in machine/sysarch.h
18875do :
18876  ac_fn_c_check_header_mongrel "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default"
18877if test "x$ac_cv_header_machine_sysarch_h" = xyes; then :
18878  cat >>confdefs.h <<_ACEOF
18879#define HAVE_MACHINE_SYSARCH_H 1
18880_ACEOF
18881
18882fi
18883
18884done
18885
18886for ac_header in machine/mtrr.h
18887do :
18888  ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H
18889#include <sys/types.h>
18890#include <machine/sysarch.h>
18891#endif
18892
18893"
18894if test "x$ac_cv_header_machine_mtrr_h" = xyes; then :
18895  cat >>confdefs.h <<_ACEOF
18896#define HAVE_MACHINE_MTRR_H 1
18897_ACEOF
18898 have_mtrr_h="yes"
18899else
18900  have_mtrr_h="no"
18901fi
18902
18903done
18904
18905else
18906ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
18907if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
18908  have_mtrr_h="yes"
18909else
18910  have_mtrr_h="no"
18911fi
18912
18913
18914fi
18915
18916if test "x$have_mtrr_h" = xyes; then
18917
18918$as_echo "#define HAVE_MTRR 1" >>confdefs.h
18919
18920fi
18921
18922
18923
18924
18925ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc"
18926
18927cat >confcache <<\_ACEOF
18928# This file is a shell script that caches the results of configure
18929# tests run on this system so they can be shared between configure
18930# scripts and configure runs, see configure's option --config-cache.
18931# It is not useful on other systems.  If it contains results you don't
18932# want to keep, you may remove or edit it.
18933#
18934# config.status only pays attention to the cache file if you give it
18935# the --recheck option to rerun configure.
18936#
18937# `ac_cv_env_foo' variables (set or unset) will be overridden when
18938# loading this file, other *unset* `ac_cv_foo' will be assigned the
18939# following values.
18940
18941_ACEOF
18942
18943# The following way of writing the cache mishandles newlines in values,
18944# but we know of no workaround that is simple, portable, and efficient.
18945# So, we kill variables containing newlines.
18946# Ultrix sh set writes to stderr and can't be redirected directly,
18947# and sets the high bit in the cache file unless we assign to the vars.
18948(
18949  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18950    eval ac_val=\$$ac_var
18951    case $ac_val in #(
18952    *${as_nl}*)
18953      case $ac_var in #(
18954      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18956      esac
18957      case $ac_var in #(
18958      _ | IFS | as_nl) ;; #(
18959      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18960      *) { eval $ac_var=; unset $ac_var;} ;;
18961      esac ;;
18962    esac
18963  done
18964
18965  (set) 2>&1 |
18966    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18967    *${as_nl}ac_space=\ *)
18968      # `set' does not quote correctly, so add quotes: double-quote
18969      # substitution turns \\\\ into \\, and sed turns \\ into \.
18970      sed -n \
18971	"s/'/'\\\\''/g;
18972	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18973      ;; #(
18974    *)
18975      # `set' quotes correctly as required by POSIX, so do not add quotes.
18976      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18977      ;;
18978    esac |
18979    sort
18980) |
18981  sed '
18982     /^ac_cv_env_/b end
18983     t clear
18984     :clear
18985     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18986     t end
18987     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18988     :end' >>confcache
18989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18990  if test -w "$cache_file"; then
18991    if test "x$cache_file" != "x/dev/null"; then
18992      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18993$as_echo "$as_me: updating cache $cache_file" >&6;}
18994      if test ! -f "$cache_file" || test -h "$cache_file"; then
18995	cat confcache >"$cache_file"
18996      else
18997        case $cache_file in #(
18998        */* | ?:*)
18999	  mv -f confcache "$cache_file"$$ &&
19000	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19001        *)
19002	  mv -f confcache "$cache_file" ;;
19003	esac
19004      fi
19005    fi
19006  else
19007    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19008$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19009  fi
19010fi
19011rm -f confcache
19012
19013test "x$prefix" = xNONE && prefix=$ac_default_prefix
19014# Let make expand exec_prefix.
19015test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19016
19017DEFS=-DHAVE_CONFIG_H
19018
19019ac_libobjs=
19020ac_ltlibobjs=
19021U=
19022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19023  # 1. Remove the extension, and $U if already installed.
19024  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19025  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19026  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19027  #    will be set to the directory where LIBOBJS objects are built.
19028  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19029  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19030done
19031LIBOBJS=$ac_libobjs
19032
19033LTLIBOBJS=$ac_ltlibobjs
19034
19035
19036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19037$as_echo_n "checking that generated files are newer than configure... " >&6; }
19038   if test -n "$am_sleep_pid"; then
19039     # Hide warnings about reused PIDs.
19040     wait $am_sleep_pid 2>/dev/null
19041   fi
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19043$as_echo "done" >&6; }
19044 if test -n "$EXEEXT"; then
19045  am__EXEEXT_TRUE=
19046  am__EXEEXT_FALSE='#'
19047else
19048  am__EXEEXT_TRUE='#'
19049  am__EXEEXT_FALSE=
19050fi
19051
19052if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19053  as_fn_error $? "conditional \"AMDEP\" was never defined.
19054Usually this means the macro was only invoked conditionally." "$LINENO" 5
19055fi
19056if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19057  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19058Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059fi
19060if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
19061  as_fn_error $? "conditional \"LINUX\" was never defined.
19062Usually this means the macro was only invoked conditionally." "$LINENO" 5
19063fi
19064if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
19065  as_fn_error $? "conditional \"FREEBSD\" was never defined.
19066Usually this means the macro was only invoked conditionally." "$LINENO" 5
19067fi
19068if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
19069  as_fn_error $? "conditional \"NETBSD\" was never defined.
19070Usually this means the macro was only invoked conditionally." "$LINENO" 5
19071fi
19072if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
19073  as_fn_error $? "conditional \"OPENBSD\" was never defined.
19074Usually this means the macro was only invoked conditionally." "$LINENO" 5
19075fi
19076if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
19077  as_fn_error $? "conditional \"SOLARIS\" was never defined.
19078Usually this means the macro was only invoked conditionally." "$LINENO" 5
19079fi
19080if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then
19081  as_fn_error $? "conditional \"GNU\" was never defined.
19082Usually this means the macro was only invoked conditionally." "$LINENO" 5
19083fi
19084if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
19085  as_fn_error $? "conditional \"CYGWIN\" was never defined.
19086Usually this means the macro was only invoked conditionally." "$LINENO" 5
19087fi
19088
19089: "${CONFIG_STATUS=./config.status}"
19090ac_write_fail=0
19091ac_clean_files_save=$ac_clean_files
19092ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19093{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19094$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19095as_write_fail=0
19096cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19097#! $SHELL
19098# Generated by $as_me.
19099# Run this file to recreate the current configuration.
19100# Compiler output produced by configure, useful for debugging
19101# configure, is in config.log if it exists.
19102
19103debug=false
19104ac_cs_recheck=false
19105ac_cs_silent=false
19106
19107SHELL=\${CONFIG_SHELL-$SHELL}
19108export SHELL
19109_ASEOF
19110cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19111## -------------------- ##
19112## M4sh Initialization. ##
19113## -------------------- ##
19114
19115# Be more Bourne compatible
19116DUALCASE=1; export DUALCASE # for MKS sh
19117if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19118  emulate sh
19119  NULLCMD=:
19120  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19121  # is contrary to our usage.  Disable this feature.
19122  alias -g '${1+"$@"}'='"$@"'
19123  setopt NO_GLOB_SUBST
19124else
19125  case `(set -o) 2>/dev/null` in #(
19126  *posix*) :
19127    set -o posix ;; #(
19128  *) :
19129     ;;
19130esac
19131fi
19132
19133
19134as_nl='
19135'
19136export as_nl
19137# Printing a long string crashes Solaris 7 /usr/bin/printf.
19138as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19140as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19141# Prefer a ksh shell builtin over an external printf program on Solaris,
19142# but without wasting forks for bash or zsh.
19143if test -z "$BASH_VERSION$ZSH_VERSION" \
19144    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19145  as_echo='print -r --'
19146  as_echo_n='print -rn --'
19147elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19148  as_echo='printf %s\n'
19149  as_echo_n='printf %s'
19150else
19151  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19152    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19153    as_echo_n='/usr/ucb/echo -n'
19154  else
19155    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19156    as_echo_n_body='eval
19157      arg=$1;
19158      case $arg in #(
19159      *"$as_nl"*)
19160	expr "X$arg" : "X\\(.*\\)$as_nl";
19161	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19162      esac;
19163      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19164    '
19165    export as_echo_n_body
19166    as_echo_n='sh -c $as_echo_n_body as_echo'
19167  fi
19168  export as_echo_body
19169  as_echo='sh -c $as_echo_body as_echo'
19170fi
19171
19172# The user is always right.
19173if test "${PATH_SEPARATOR+set}" != set; then
19174  PATH_SEPARATOR=:
19175  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19176    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19177      PATH_SEPARATOR=';'
19178  }
19179fi
19180
19181
19182# IFS
19183# We need space, tab and new line, in precisely that order.  Quoting is
19184# there to prevent editors from complaining about space-tab.
19185# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19186# splitting by setting IFS to empty value.)
19187IFS=" ""	$as_nl"
19188
19189# Find who we are.  Look in the path if we contain no directory separator.
19190as_myself=
19191case $0 in #((
19192  *[\\/]* ) as_myself=$0 ;;
19193  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19194for as_dir in $PATH
19195do
19196  IFS=$as_save_IFS
19197  test -z "$as_dir" && as_dir=.
19198    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19199  done
19200IFS=$as_save_IFS
19201
19202     ;;
19203esac
19204# We did not find ourselves, most probably we were run as `sh COMMAND'
19205# in which case we are not to be found in the path.
19206if test "x$as_myself" = x; then
19207  as_myself=$0
19208fi
19209if test ! -f "$as_myself"; then
19210  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19211  exit 1
19212fi
19213
19214# Unset variables that we do not need and which cause bugs (e.g. in
19215# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19216# suppresses any "Segmentation fault" message there.  '((' could
19217# trigger a bug in pdksh 5.2.14.
19218for as_var in BASH_ENV ENV MAIL MAILPATH
19219do eval test x\${$as_var+set} = xset \
19220  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19221done
19222PS1='$ '
19223PS2='> '
19224PS4='+ '
19225
19226# NLS nuisances.
19227LC_ALL=C
19228export LC_ALL
19229LANGUAGE=C
19230export LANGUAGE
19231
19232# CDPATH.
19233(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19234
19235
19236# as_fn_error STATUS ERROR [LINENO LOG_FD]
19237# ----------------------------------------
19238# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19239# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19240# script with STATUS, using 1 if that was 0.
19241as_fn_error ()
19242{
19243  as_status=$1; test $as_status -eq 0 && as_status=1
19244  if test "$4"; then
19245    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19246    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19247  fi
19248  $as_echo "$as_me: error: $2" >&2
19249  as_fn_exit $as_status
19250} # as_fn_error
19251
19252
19253# as_fn_set_status STATUS
19254# -----------------------
19255# Set $? to STATUS, without forking.
19256as_fn_set_status ()
19257{
19258  return $1
19259} # as_fn_set_status
19260
19261# as_fn_exit STATUS
19262# -----------------
19263# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19264as_fn_exit ()
19265{
19266  set +e
19267  as_fn_set_status $1
19268  exit $1
19269} # as_fn_exit
19270
19271# as_fn_unset VAR
19272# ---------------
19273# Portably unset VAR.
19274as_fn_unset ()
19275{
19276  { eval $1=; unset $1;}
19277}
19278as_unset=as_fn_unset
19279# as_fn_append VAR VALUE
19280# ----------------------
19281# Append the text in VALUE to the end of the definition contained in VAR. Take
19282# advantage of any shell optimizations that allow amortized linear growth over
19283# repeated appends, instead of the typical quadratic growth present in naive
19284# implementations.
19285if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19286  eval 'as_fn_append ()
19287  {
19288    eval $1+=\$2
19289  }'
19290else
19291  as_fn_append ()
19292  {
19293    eval $1=\$$1\$2
19294  }
19295fi # as_fn_append
19296
19297# as_fn_arith ARG...
19298# ------------------
19299# Perform arithmetic evaluation on the ARGs, and store the result in the
19300# global $as_val. Take advantage of shells that can avoid forks. The arguments
19301# must be portable across $(()) and expr.
19302if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19303  eval 'as_fn_arith ()
19304  {
19305    as_val=$(( $* ))
19306  }'
19307else
19308  as_fn_arith ()
19309  {
19310    as_val=`expr "$@" || test $? -eq 1`
19311  }
19312fi # as_fn_arith
19313
19314
19315if expr a : '\(a\)' >/dev/null 2>&1 &&
19316   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19317  as_expr=expr
19318else
19319  as_expr=false
19320fi
19321
19322if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19323  as_basename=basename
19324else
19325  as_basename=false
19326fi
19327
19328if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19329  as_dirname=dirname
19330else
19331  as_dirname=false
19332fi
19333
19334as_me=`$as_basename -- "$0" ||
19335$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19336	 X"$0" : 'X\(//\)$' \| \
19337	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19338$as_echo X/"$0" |
19339    sed '/^.*\/\([^/][^/]*\)\/*$/{
19340	    s//\1/
19341	    q
19342	  }
19343	  /^X\/\(\/\/\)$/{
19344	    s//\1/
19345	    q
19346	  }
19347	  /^X\/\(\/\).*/{
19348	    s//\1/
19349	    q
19350	  }
19351	  s/.*/./; q'`
19352
19353# Avoid depending upon Character Ranges.
19354as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19355as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19356as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19357as_cr_digits='0123456789'
19358as_cr_alnum=$as_cr_Letters$as_cr_digits
19359
19360ECHO_C= ECHO_N= ECHO_T=
19361case `echo -n x` in #(((((
19362-n*)
19363  case `echo 'xy\c'` in
19364  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19365  xy)  ECHO_C='\c';;
19366  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19367       ECHO_T='	';;
19368  esac;;
19369*)
19370  ECHO_N='-n';;
19371esac
19372
19373rm -f conf$$ conf$$.exe conf$$.file
19374if test -d conf$$.dir; then
19375  rm -f conf$$.dir/conf$$.file
19376else
19377  rm -f conf$$.dir
19378  mkdir conf$$.dir 2>/dev/null
19379fi
19380if (echo >conf$$.file) 2>/dev/null; then
19381  if ln -s conf$$.file conf$$ 2>/dev/null; then
19382    as_ln_s='ln -s'
19383    # ... but there are two gotchas:
19384    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19385    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19386    # In both cases, we have to default to `cp -pR'.
19387    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19388      as_ln_s='cp -pR'
19389  elif ln conf$$.file conf$$ 2>/dev/null; then
19390    as_ln_s=ln
19391  else
19392    as_ln_s='cp -pR'
19393  fi
19394else
19395  as_ln_s='cp -pR'
19396fi
19397rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19398rmdir conf$$.dir 2>/dev/null
19399
19400
19401# as_fn_mkdir_p
19402# -------------
19403# Create "$as_dir" as a directory, including parents if necessary.
19404as_fn_mkdir_p ()
19405{
19406
19407  case $as_dir in #(
19408  -*) as_dir=./$as_dir;;
19409  esac
19410  test -d "$as_dir" || eval $as_mkdir_p || {
19411    as_dirs=
19412    while :; do
19413      case $as_dir in #(
19414      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19415      *) as_qdir=$as_dir;;
19416      esac
19417      as_dirs="'$as_qdir' $as_dirs"
19418      as_dir=`$as_dirname -- "$as_dir" ||
19419$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19420	 X"$as_dir" : 'X\(//\)[^/]' \| \
19421	 X"$as_dir" : 'X\(//\)$' \| \
19422	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19423$as_echo X"$as_dir" |
19424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19425	    s//\1/
19426	    q
19427	  }
19428	  /^X\(\/\/\)[^/].*/{
19429	    s//\1/
19430	    q
19431	  }
19432	  /^X\(\/\/\)$/{
19433	    s//\1/
19434	    q
19435	  }
19436	  /^X\(\/\).*/{
19437	    s//\1/
19438	    q
19439	  }
19440	  s/.*/./; q'`
19441      test -d "$as_dir" && break
19442    done
19443    test -z "$as_dirs" || eval "mkdir $as_dirs"
19444  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19445
19446
19447} # as_fn_mkdir_p
19448if mkdir -p . 2>/dev/null; then
19449  as_mkdir_p='mkdir -p "$as_dir"'
19450else
19451  test -d ./-p && rmdir ./-p
19452  as_mkdir_p=false
19453fi
19454
19455
19456# as_fn_executable_p FILE
19457# -----------------------
19458# Test if FILE is an executable regular file.
19459as_fn_executable_p ()
19460{
19461  test -f "$1" && test -x "$1"
19462} # as_fn_executable_p
19463as_test_x='test -x'
19464as_executable_p=as_fn_executable_p
19465
19466# Sed expression to map a string onto a valid CPP name.
19467as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19468
19469# Sed expression to map a string onto a valid variable name.
19470as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19471
19472
19473exec 6>&1
19474## ----------------------------------- ##
19475## Main body of $CONFIG_STATUS script. ##
19476## ----------------------------------- ##
19477_ASEOF
19478test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19479
19480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481# Save the log message, to keep $0 and so on meaningful, and to
19482# report actual input values of CONFIG_FILES etc. instead of their
19483# values after options handling.
19484ac_log="
19485This file was extended by libpciaccess $as_me 0.15, which was
19486generated by GNU Autoconf 2.69.  Invocation command line was
19487
19488  CONFIG_FILES    = $CONFIG_FILES
19489  CONFIG_HEADERS  = $CONFIG_HEADERS
19490  CONFIG_LINKS    = $CONFIG_LINKS
19491  CONFIG_COMMANDS = $CONFIG_COMMANDS
19492  $ $0 $@
19493
19494on `(hostname || uname -n) 2>/dev/null | sed 1q`
19495"
19496
19497_ACEOF
19498
19499case $ac_config_files in *"
19500"*) set x $ac_config_files; shift; ac_config_files=$*;;
19501esac
19502
19503case $ac_config_headers in *"
19504"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19505esac
19506
19507
19508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19509# Files that config.status was made for.
19510config_files="$ac_config_files"
19511config_headers="$ac_config_headers"
19512config_commands="$ac_config_commands"
19513
19514_ACEOF
19515
19516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517ac_cs_usage="\
19518\`$as_me' instantiates files and other configuration actions
19519from templates according to the current configuration.  Unless the files
19520and actions are specified as TAGs, all are instantiated by default.
19521
19522Usage: $0 [OPTION]... [TAG]...
19523
19524  -h, --help       print this help, then exit
19525  -V, --version    print version number and configuration settings, then exit
19526      --config     print configuration, then exit
19527  -q, --quiet, --silent
19528                   do not print progress messages
19529  -d, --debug      don't remove temporary files
19530      --recheck    update $as_me by reconfiguring in the same conditions
19531      --file=FILE[:TEMPLATE]
19532                   instantiate the configuration file FILE
19533      --header=FILE[:TEMPLATE]
19534                   instantiate the configuration header FILE
19535
19536Configuration files:
19537$config_files
19538
19539Configuration headers:
19540$config_headers
19541
19542Configuration commands:
19543$config_commands
19544
19545Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libpciaccess/issues>."
19546
19547_ACEOF
19548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19549ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19550ac_cs_version="\\
19551libpciaccess config.status 0.15
19552configured by $0, generated by GNU Autoconf 2.69,
19553  with options \\"\$ac_cs_config\\"
19554
19555Copyright (C) 2012 Free Software Foundation, Inc.
19556This config.status script is free software; the Free Software Foundation
19557gives unlimited permission to copy, distribute and modify it."
19558
19559ac_pwd='$ac_pwd'
19560srcdir='$srcdir'
19561INSTALL='$INSTALL'
19562MKDIR_P='$MKDIR_P'
19563AWK='$AWK'
19564test -n "\$AWK" || AWK=awk
19565_ACEOF
19566
19567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19568# The default lists apply if the user does not specify any file.
19569ac_need_defaults=:
19570while test $# != 0
19571do
19572  case $1 in
19573  --*=?*)
19574    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19575    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19576    ac_shift=:
19577    ;;
19578  --*=)
19579    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19580    ac_optarg=
19581    ac_shift=:
19582    ;;
19583  *)
19584    ac_option=$1
19585    ac_optarg=$2
19586    ac_shift=shift
19587    ;;
19588  esac
19589
19590  case $ac_option in
19591  # Handling of the options.
19592  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19593    ac_cs_recheck=: ;;
19594  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19595    $as_echo "$ac_cs_version"; exit ;;
19596  --config | --confi | --conf | --con | --co | --c )
19597    $as_echo "$ac_cs_config"; exit ;;
19598  --debug | --debu | --deb | --de | --d | -d )
19599    debug=: ;;
19600  --file | --fil | --fi | --f )
19601    $ac_shift
19602    case $ac_optarg in
19603    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19604    '') as_fn_error $? "missing file argument" ;;
19605    esac
19606    as_fn_append CONFIG_FILES " '$ac_optarg'"
19607    ac_need_defaults=false;;
19608  --header | --heade | --head | --hea )
19609    $ac_shift
19610    case $ac_optarg in
19611    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19612    esac
19613    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19614    ac_need_defaults=false;;
19615  --he | --h)
19616    # Conflict between --help and --header
19617    as_fn_error $? "ambiguous option: \`$1'
19618Try \`$0 --help' for more information.";;
19619  --help | --hel | -h )
19620    $as_echo "$ac_cs_usage"; exit ;;
19621  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19622  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19623    ac_cs_silent=: ;;
19624
19625  # This is an error.
19626  -*) as_fn_error $? "unrecognized option: \`$1'
19627Try \`$0 --help' for more information." ;;
19628
19629  *) as_fn_append ac_config_targets " $1"
19630     ac_need_defaults=false ;;
19631
19632  esac
19633  shift
19634done
19635
19636ac_configure_extra_args=
19637
19638if $ac_cs_silent; then
19639  exec 6>/dev/null
19640  ac_configure_extra_args="$ac_configure_extra_args --silent"
19641fi
19642
19643_ACEOF
19644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19645if \$ac_cs_recheck; then
19646  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19647  shift
19648  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19649  CONFIG_SHELL='$SHELL'
19650  export CONFIG_SHELL
19651  exec "\$@"
19652fi
19653
19654_ACEOF
19655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19656exec 5>>config.log
19657{
19658  echo
19659  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19660## Running $as_me. ##
19661_ASBOX
19662  $as_echo "$ac_log"
19663} >&5
19664
19665_ACEOF
19666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19667#
19668# INIT-COMMANDS
19669#
19670AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19671
19672
19673# The HP-UX ksh and POSIX shell print the target directory to stdout
19674# if CDPATH is set.
19675(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19676
19677sed_quote_subst='$sed_quote_subst'
19678double_quote_subst='$double_quote_subst'
19679delay_variable_subst='$delay_variable_subst'
19680macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19681macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19682enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19683enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19684pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19685enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19686shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19687SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19688ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19689PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19690host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19691host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19692host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19693build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19694build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19695build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19696SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19697Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19698GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19699EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19700FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19701LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19702NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19703LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19704max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19705ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19706exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19707lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19708lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19709lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19710lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19711lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19712reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19713reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19714OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19715deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19716file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19717file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19718want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19719DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19720sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19721AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19722AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19723archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19724STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19725RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19726old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19727old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19728old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19729lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19730CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19731CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19732compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19733GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19734lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19735lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19736lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19737lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19738lt_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"`'
19739lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19740nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19741lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19742lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19743objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19744MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19745lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19746lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19747lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19748lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19749lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19750need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19751MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19752DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19753NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19754LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19755OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19756OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19757libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19758shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19759extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19760archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19761enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19762export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19763whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19764compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19765old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19766old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19767archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19768archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19769module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19770module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19771with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19772allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19773no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19774hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19775hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19776hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19777hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19778hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19779hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19780hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19781inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19782link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19783always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19784export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19785exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19786include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19787prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19788postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19789file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19790variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19791need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19792need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19793version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19794runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19795shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19796shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19797libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19798library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19799soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19800install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19801postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19802postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19803finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19804finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19805hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19806sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19807configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19808configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19809hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19810enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19811enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19812enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19813old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19814striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19815
19816LTCC='$LTCC'
19817LTCFLAGS='$LTCFLAGS'
19818compiler='$compiler_DEFAULT'
19819
19820# A function that is used when there is no print builtin or printf.
19821func_fallback_echo ()
19822{
19823  eval 'cat <<_LTECHO_EOF
19824\$1
19825_LTECHO_EOF'
19826}
19827
19828# Quote evaled strings.
19829for var in SHELL \
19830ECHO \
19831PATH_SEPARATOR \
19832SED \
19833GREP \
19834EGREP \
19835FGREP \
19836LD \
19837NM \
19838LN_S \
19839lt_SP2NL \
19840lt_NL2SP \
19841reload_flag \
19842OBJDUMP \
19843deplibs_check_method \
19844file_magic_cmd \
19845file_magic_glob \
19846want_nocaseglob \
19847DLLTOOL \
19848sharedlib_from_linklib_cmd \
19849AR \
19850AR_FLAGS \
19851archiver_list_spec \
19852STRIP \
19853RANLIB \
19854CC \
19855CFLAGS \
19856compiler \
19857lt_cv_sys_global_symbol_pipe \
19858lt_cv_sys_global_symbol_to_cdecl \
19859lt_cv_sys_global_symbol_to_import \
19860lt_cv_sys_global_symbol_to_c_name_address \
19861lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19862lt_cv_nm_interface \
19863nm_file_list_spec \
19864lt_cv_truncate_bin \
19865lt_prog_compiler_no_builtin_flag \
19866lt_prog_compiler_pic \
19867lt_prog_compiler_wl \
19868lt_prog_compiler_static \
19869lt_cv_prog_compiler_c_o \
19870need_locks \
19871MANIFEST_TOOL \
19872DSYMUTIL \
19873NMEDIT \
19874LIPO \
19875OTOOL \
19876OTOOL64 \
19877shrext_cmds \
19878export_dynamic_flag_spec \
19879whole_archive_flag_spec \
19880compiler_needs_object \
19881with_gnu_ld \
19882allow_undefined_flag \
19883no_undefined_flag \
19884hardcode_libdir_flag_spec \
19885hardcode_libdir_separator \
19886exclude_expsyms \
19887include_expsyms \
19888file_list_spec \
19889variables_saved_for_relink \
19890libname_spec \
19891library_names_spec \
19892soname_spec \
19893install_override_mode \
19894finish_eval \
19895old_striplib \
19896striplib; do
19897    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19898    *[\\\\\\\`\\"\\\$]*)
19899      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19900      ;;
19901    *)
19902      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19903      ;;
19904    esac
19905done
19906
19907# Double-quote double-evaled strings.
19908for var in reload_cmds \
19909old_postinstall_cmds \
19910old_postuninstall_cmds \
19911old_archive_cmds \
19912extract_expsyms_cmds \
19913old_archive_from_new_cmds \
19914old_archive_from_expsyms_cmds \
19915archive_cmds \
19916archive_expsym_cmds \
19917module_cmds \
19918module_expsym_cmds \
19919export_symbols_cmds \
19920prelink_cmds \
19921postlink_cmds \
19922postinstall_cmds \
19923postuninstall_cmds \
19924finish_cmds \
19925sys_lib_search_path_spec \
19926configure_time_dlsearch_path \
19927configure_time_lt_sys_library_path; do
19928    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19929    *[\\\\\\\`\\"\\\$]*)
19930      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19931      ;;
19932    *)
19933      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19934      ;;
19935    esac
19936done
19937
19938ac_aux_dir='$ac_aux_dir'
19939
19940# See if we are running on zsh, and set the options that allow our
19941# commands through without removal of \ escapes INIT.
19942if test -n "\${ZSH_VERSION+set}"; then
19943   setopt NO_GLOB_SUBST
19944fi
19945
19946
19947    PACKAGE='$PACKAGE'
19948    VERSION='$VERSION'
19949    RM='$RM'
19950    ofile='$ofile'
19951
19952
19953
19954
19955_ACEOF
19956
19957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958
19959# Handling of arguments.
19960for ac_config_target in $ac_config_targets
19961do
19962  case $ac_config_target in
19963    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19964    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19965    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19966    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19967    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19968    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19969    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19970    "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;;
19971    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
19972
19973  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19974  esac
19975done
19976
19977
19978# If the user did not use the arguments to specify the items to instantiate,
19979# then the envvar interface is used.  Set only those that are not.
19980# We use the long form for the default assignment because of an extremely
19981# bizarre bug on SunOS 4.1.3.
19982if $ac_need_defaults; then
19983  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19984  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19985  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19986fi
19987
19988# Have a temporary directory for convenience.  Make it in the build tree
19989# simply because there is no reason against having it here, and in addition,
19990# creating and moving files from /tmp can sometimes cause problems.
19991# Hook for its removal unless debugging.
19992# Note that there is a small window in which the directory will not be cleaned:
19993# after its creation but before its name has been assigned to `$tmp'.
19994$debug ||
19995{
19996  tmp= ac_tmp=
19997  trap 'exit_status=$?
19998  : "${ac_tmp:=$tmp}"
19999  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20000' 0
20001  trap 'as_fn_exit 1' 1 2 13 15
20002}
20003# Create a (secure) tmp directory for tmp files.
20004
20005{
20006  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20007  test -d "$tmp"
20008}  ||
20009{
20010  tmp=./conf$$-$RANDOM
20011  (umask 077 && mkdir "$tmp")
20012} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20013ac_tmp=$tmp
20014
20015# Set up the scripts for CONFIG_FILES section.
20016# No need to generate them if there are no CONFIG_FILES.
20017# This happens for instance with `./config.status config.h'.
20018if test -n "$CONFIG_FILES"; then
20019
20020
20021ac_cr=`echo X | tr X '\015'`
20022# On cygwin, bash can eat \r inside `` if the user requested igncr.
20023# But we know of no other shell where ac_cr would be empty at this
20024# point, so we can use a bashism as a fallback.
20025if test "x$ac_cr" = x; then
20026  eval ac_cr=\$\'\\r\'
20027fi
20028ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20029if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20030  ac_cs_awk_cr='\\r'
20031else
20032  ac_cs_awk_cr=$ac_cr
20033fi
20034
20035echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20036_ACEOF
20037
20038
20039{
20040  echo "cat >conf$$subs.awk <<_ACEOF" &&
20041  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20042  echo "_ACEOF"
20043} >conf$$subs.sh ||
20044  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20045ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20046ac_delim='%!_!# '
20047for ac_last_try in false false false false false :; do
20048  . ./conf$$subs.sh ||
20049    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20050
20051  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20052  if test $ac_delim_n = $ac_delim_num; then
20053    break
20054  elif $ac_last_try; then
20055    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20056  else
20057    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20058  fi
20059done
20060rm -f conf$$subs.sh
20061
20062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20063cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20064_ACEOF
20065sed -n '
20066h
20067s/^/S["/; s/!.*/"]=/
20068p
20069g
20070s/^[^!]*!//
20071:repl
20072t repl
20073s/'"$ac_delim"'$//
20074t delim
20075:nl
20076h
20077s/\(.\{148\}\)..*/\1/
20078t more1
20079s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20080p
20081n
20082b repl
20083:more1
20084s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20085p
20086g
20087s/.\{148\}//
20088t nl
20089:delim
20090h
20091s/\(.\{148\}\)..*/\1/
20092t more2
20093s/["\\]/\\&/g; s/^/"/; s/$/"/
20094p
20095b
20096:more2
20097s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20098p
20099g
20100s/.\{148\}//
20101t delim
20102' <conf$$subs.awk | sed '
20103/^[^""]/{
20104  N
20105  s/\n//
20106}
20107' >>$CONFIG_STATUS || ac_write_fail=1
20108rm -f conf$$subs.awk
20109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20110_ACAWK
20111cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20112  for (key in S) S_is_set[key] = 1
20113  FS = ""
20114
20115}
20116{
20117  line = $ 0
20118  nfields = split(line, field, "@")
20119  substed = 0
20120  len = length(field[1])
20121  for (i = 2; i < nfields; i++) {
20122    key = field[i]
20123    keylen = length(key)
20124    if (S_is_set[key]) {
20125      value = S[key]
20126      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20127      len += length(value) + length(field[++i])
20128      substed = 1
20129    } else
20130      len += 1 + keylen
20131  }
20132
20133  print line
20134}
20135
20136_ACAWK
20137_ACEOF
20138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20139if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20140  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20141else
20142  cat
20143fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20144  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20145_ACEOF
20146
20147# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20148# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20149# trailing colons and then remove the whole line if VPATH becomes empty
20150# (actually we leave an empty line to preserve line numbers).
20151if test "x$srcdir" = x.; then
20152  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20153h
20154s///
20155s/^/:/
20156s/[	 ]*$/:/
20157s/:\$(srcdir):/:/g
20158s/:\${srcdir}:/:/g
20159s/:@srcdir@:/:/g
20160s/^:*//
20161s/:*$//
20162x
20163s/\(=[	 ]*\).*/\1/
20164G
20165s/\n//
20166s/^[^=]*=[	 ]*$//
20167}'
20168fi
20169
20170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20171fi # test -n "$CONFIG_FILES"
20172
20173# Set up the scripts for CONFIG_HEADERS section.
20174# No need to generate them if there are no CONFIG_HEADERS.
20175# This happens for instance with `./config.status Makefile'.
20176if test -n "$CONFIG_HEADERS"; then
20177cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20178BEGIN {
20179_ACEOF
20180
20181# Transform confdefs.h into an awk script `defines.awk', embedded as
20182# here-document in config.status, that substitutes the proper values into
20183# config.h.in to produce config.h.
20184
20185# Create a delimiter string that does not exist in confdefs.h, to ease
20186# handling of long lines.
20187ac_delim='%!_!# '
20188for ac_last_try in false false :; do
20189  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20190  if test -z "$ac_tt"; then
20191    break
20192  elif $ac_last_try; then
20193    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20194  else
20195    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20196  fi
20197done
20198
20199# For the awk script, D is an array of macro values keyed by name,
20200# likewise P contains macro parameters if any.  Preserve backslash
20201# newline sequences.
20202
20203ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20204sed -n '
20205s/.\{148\}/&'"$ac_delim"'/g
20206t rset
20207:rset
20208s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20209t def
20210d
20211:def
20212s/\\$//
20213t bsnl
20214s/["\\]/\\&/g
20215s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20216D["\1"]=" \3"/p
20217s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20218d
20219:bsnl
20220s/["\\]/\\&/g
20221s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20222D["\1"]=" \3\\\\\\n"\\/p
20223t cont
20224s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20225t cont
20226d
20227:cont
20228n
20229s/.\{148\}/&'"$ac_delim"'/g
20230t clear
20231:clear
20232s/\\$//
20233t bsnlc
20234s/["\\]/\\&/g; s/^/"/; s/$/"/p
20235d
20236:bsnlc
20237s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20238b cont
20239' <confdefs.h | sed '
20240s/'"$ac_delim"'/"\\\
20241"/g' >>$CONFIG_STATUS || ac_write_fail=1
20242
20243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20244  for (key in D) D_is_set[key] = 1
20245  FS = ""
20246}
20247/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20248  line = \$ 0
20249  split(line, arg, " ")
20250  if (arg[1] == "#") {
20251    defundef = arg[2]
20252    mac1 = arg[3]
20253  } else {
20254    defundef = substr(arg[1], 2)
20255    mac1 = arg[2]
20256  }
20257  split(mac1, mac2, "(") #)
20258  macro = mac2[1]
20259  prefix = substr(line, 1, index(line, defundef) - 1)
20260  if (D_is_set[macro]) {
20261    # Preserve the white space surrounding the "#".
20262    print prefix "define", macro P[macro] D[macro]
20263    next
20264  } else {
20265    # Replace #undef with comments.  This is necessary, for example,
20266    # in the case of _POSIX_SOURCE, which is predefined and required
20267    # on some systems where configure will not decide to define it.
20268    if (defundef == "undef") {
20269      print "/*", prefix defundef, macro, "*/"
20270      next
20271    }
20272  }
20273}
20274{ print }
20275_ACAWK
20276_ACEOF
20277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20278  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20279fi # test -n "$CONFIG_HEADERS"
20280
20281
20282eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20283shift
20284for ac_tag
20285do
20286  case $ac_tag in
20287  :[FHLC]) ac_mode=$ac_tag; continue;;
20288  esac
20289  case $ac_mode$ac_tag in
20290  :[FHL]*:*);;
20291  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20292  :[FH]-) ac_tag=-:-;;
20293  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20294  esac
20295  ac_save_IFS=$IFS
20296  IFS=:
20297  set x $ac_tag
20298  IFS=$ac_save_IFS
20299  shift
20300  ac_file=$1
20301  shift
20302
20303  case $ac_mode in
20304  :L) ac_source=$1;;
20305  :[FH])
20306    ac_file_inputs=
20307    for ac_f
20308    do
20309      case $ac_f in
20310      -) ac_f="$ac_tmp/stdin";;
20311      *) # Look for the file first in the build tree, then in the source tree
20312	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20313	 # because $ac_f cannot contain `:'.
20314	 test -f "$ac_f" ||
20315	   case $ac_f in
20316	   [\\/$]*) false;;
20317	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20318	   esac ||
20319	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20320      esac
20321      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20322      as_fn_append ac_file_inputs " '$ac_f'"
20323    done
20324
20325    # Let's still pretend it is `configure' which instantiates (i.e., don't
20326    # use $as_me), people would be surprised to read:
20327    #    /* config.h.  Generated by config.status.  */
20328    configure_input='Generated from '`
20329	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20330	`' by configure.'
20331    if test x"$ac_file" != x-; then
20332      configure_input="$ac_file.  $configure_input"
20333      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20334$as_echo "$as_me: creating $ac_file" >&6;}
20335    fi
20336    # Neutralize special characters interpreted by sed in replacement strings.
20337    case $configure_input in #(
20338    *\&* | *\|* | *\\* )
20339       ac_sed_conf_input=`$as_echo "$configure_input" |
20340       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20341    *) ac_sed_conf_input=$configure_input;;
20342    esac
20343
20344    case $ac_tag in
20345    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20346      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20347    esac
20348    ;;
20349  esac
20350
20351  ac_dir=`$as_dirname -- "$ac_file" ||
20352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20353	 X"$ac_file" : 'X\(//\)[^/]' \| \
20354	 X"$ac_file" : 'X\(//\)$' \| \
20355	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20356$as_echo X"$ac_file" |
20357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20358	    s//\1/
20359	    q
20360	  }
20361	  /^X\(\/\/\)[^/].*/{
20362	    s//\1/
20363	    q
20364	  }
20365	  /^X\(\/\/\)$/{
20366	    s//\1/
20367	    q
20368	  }
20369	  /^X\(\/\).*/{
20370	    s//\1/
20371	    q
20372	  }
20373	  s/.*/./; q'`
20374  as_dir="$ac_dir"; as_fn_mkdir_p
20375  ac_builddir=.
20376
20377case "$ac_dir" in
20378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20379*)
20380  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20381  # A ".." for each directory in $ac_dir_suffix.
20382  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20383  case $ac_top_builddir_sub in
20384  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20385  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20386  esac ;;
20387esac
20388ac_abs_top_builddir=$ac_pwd
20389ac_abs_builddir=$ac_pwd$ac_dir_suffix
20390# for backward compatibility:
20391ac_top_builddir=$ac_top_build_prefix
20392
20393case $srcdir in
20394  .)  # We are building in place.
20395    ac_srcdir=.
20396    ac_top_srcdir=$ac_top_builddir_sub
20397    ac_abs_top_srcdir=$ac_pwd ;;
20398  [\\/]* | ?:[\\/]* )  # Absolute name.
20399    ac_srcdir=$srcdir$ac_dir_suffix;
20400    ac_top_srcdir=$srcdir
20401    ac_abs_top_srcdir=$srcdir ;;
20402  *) # Relative name.
20403    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20404    ac_top_srcdir=$ac_top_build_prefix$srcdir
20405    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20406esac
20407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20408
20409
20410  case $ac_mode in
20411  :F)
20412  #
20413  # CONFIG_FILE
20414  #
20415
20416  case $INSTALL in
20417  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20418  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20419  esac
20420  ac_MKDIR_P=$MKDIR_P
20421  case $MKDIR_P in
20422  [\\/$]* | ?:[\\/]* ) ;;
20423  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20424  esac
20425_ACEOF
20426
20427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20428# If the template does not know about datarootdir, expand it.
20429# FIXME: This hack should be removed a few years after 2.60.
20430ac_datarootdir_hack=; ac_datarootdir_seen=
20431ac_sed_dataroot='
20432/datarootdir/ {
20433  p
20434  q
20435}
20436/@datadir@/p
20437/@docdir@/p
20438/@infodir@/p
20439/@localedir@/p
20440/@mandir@/p'
20441case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20442*datarootdir*) ac_datarootdir_seen=yes;;
20443*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20444  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20445$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20446_ACEOF
20447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20448  ac_datarootdir_hack='
20449  s&@datadir@&$datadir&g
20450  s&@docdir@&$docdir&g
20451  s&@infodir@&$infodir&g
20452  s&@localedir@&$localedir&g
20453  s&@mandir@&$mandir&g
20454  s&\\\${datarootdir}&$datarootdir&g' ;;
20455esac
20456_ACEOF
20457
20458# Neutralize VPATH when `$srcdir' = `.'.
20459# Shell code in configure.ac might set extrasub.
20460# FIXME: do we really want to maintain this feature?
20461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20462ac_sed_extra="$ac_vpsub
20463$extrasub
20464_ACEOF
20465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20466:t
20467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20468s|@configure_input@|$ac_sed_conf_input|;t t
20469s&@top_builddir@&$ac_top_builddir_sub&;t t
20470s&@top_build_prefix@&$ac_top_build_prefix&;t t
20471s&@srcdir@&$ac_srcdir&;t t
20472s&@abs_srcdir@&$ac_abs_srcdir&;t t
20473s&@top_srcdir@&$ac_top_srcdir&;t t
20474s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20475s&@builddir@&$ac_builddir&;t t
20476s&@abs_builddir@&$ac_abs_builddir&;t t
20477s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20478s&@INSTALL@&$ac_INSTALL&;t t
20479s&@MKDIR_P@&$ac_MKDIR_P&;t t
20480$ac_datarootdir_hack
20481"
20482eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20483  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20484
20485test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20486  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20487  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20488      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20489  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20490which seems to be undefined.  Please make sure it is defined" >&5
20491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20492which seems to be undefined.  Please make sure it is defined" >&2;}
20493
20494  rm -f "$ac_tmp/stdin"
20495  case $ac_file in
20496  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20497  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20498  esac \
20499  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20500 ;;
20501  :H)
20502  #
20503  # CONFIG_HEADER
20504  #
20505  if test x"$ac_file" != x-; then
20506    {
20507      $as_echo "/* $configure_input  */" \
20508      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20509    } >"$ac_tmp/config.h" \
20510      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20511    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20512      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20513$as_echo "$as_me: $ac_file is unchanged" >&6;}
20514    else
20515      rm -f "$ac_file"
20516      mv "$ac_tmp/config.h" "$ac_file" \
20517	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20518    fi
20519  else
20520    $as_echo "/* $configure_input  */" \
20521      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20522      || as_fn_error $? "could not create -" "$LINENO" 5
20523  fi
20524# Compute "$ac_file"'s index in $config_headers.
20525_am_arg="$ac_file"
20526_am_stamp_count=1
20527for _am_header in $config_headers :; do
20528  case $_am_header in
20529    $_am_arg | $_am_arg:* )
20530      break ;;
20531    * )
20532      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20533  esac
20534done
20535echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20536$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20537	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20538	 X"$_am_arg" : 'X\(//\)$' \| \
20539	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20540$as_echo X"$_am_arg" |
20541    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20542	    s//\1/
20543	    q
20544	  }
20545	  /^X\(\/\/\)[^/].*/{
20546	    s//\1/
20547	    q
20548	  }
20549	  /^X\(\/\/\)$/{
20550	    s//\1/
20551	    q
20552	  }
20553	  /^X\(\/\).*/{
20554	    s//\1/
20555	    q
20556	  }
20557	  s/.*/./; q'`/stamp-h$_am_stamp_count
20558 ;;
20559
20560  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20561$as_echo "$as_me: executing $ac_file commands" >&6;}
20562 ;;
20563  esac
20564
20565
20566  case $ac_file$ac_mode in
20567    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20568  # Older Autoconf quotes --file arguments for eval, but not when files
20569  # are listed without --file.  Let's play safe and only enable the eval
20570  # if we detect the quoting.
20571  # TODO: see whether this extra hack can be removed once we start
20572  # requiring Autoconf 2.70 or later.
20573  case $CONFIG_FILES in #(
20574  *\'*) :
20575    eval set x "$CONFIG_FILES" ;; #(
20576  *) :
20577    set x $CONFIG_FILES ;; #(
20578  *) :
20579     ;;
20580esac
20581  shift
20582  # Used to flag and report bootstrapping failures.
20583  am_rc=0
20584  for am_mf
20585  do
20586    # Strip MF so we end up with the name of the file.
20587    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20588    # Check whether this is an Automake generated Makefile which includes
20589    # dependency-tracking related rules and includes.
20590    # Grep'ing the whole file directly is not great: AIX grep has a line
20591    # limit of 2048, but all sed's we know have understand at least 4000.
20592    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20593      || continue
20594    am_dirpart=`$as_dirname -- "$am_mf" ||
20595$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20596	 X"$am_mf" : 'X\(//\)[^/]' \| \
20597	 X"$am_mf" : 'X\(//\)$' \| \
20598	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20599$as_echo X"$am_mf" |
20600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20601	    s//\1/
20602	    q
20603	  }
20604	  /^X\(\/\/\)[^/].*/{
20605	    s//\1/
20606	    q
20607	  }
20608	  /^X\(\/\/\)$/{
20609	    s//\1/
20610	    q
20611	  }
20612	  /^X\(\/\).*/{
20613	    s//\1/
20614	    q
20615	  }
20616	  s/.*/./; q'`
20617    am_filepart=`$as_basename -- "$am_mf" ||
20618$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20619	 X"$am_mf" : 'X\(//\)$' \| \
20620	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20621$as_echo X/"$am_mf" |
20622    sed '/^.*\/\([^/][^/]*\)\/*$/{
20623	    s//\1/
20624	    q
20625	  }
20626	  /^X\/\(\/\/\)$/{
20627	    s//\1/
20628	    q
20629	  }
20630	  /^X\/\(\/\).*/{
20631	    s//\1/
20632	    q
20633	  }
20634	  s/.*/./; q'`
20635    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20636      && sed -e '/# am--include-marker/d' "$am_filepart" \
20637        | $MAKE -f - am--depfiles" >&5
20638   (cd "$am_dirpart" \
20639      && sed -e '/# am--include-marker/d' "$am_filepart" \
20640        | $MAKE -f - am--depfiles) >&5 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } || am_rc=$?
20644  done
20645  if test $am_rc -ne 0; then
20646    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20648as_fn_error $? "Something went wrong bootstrapping makefile fragments
20649    for automatic dependency tracking.  Try re-running configure with the
20650    '--disable-dependency-tracking' option to at least be able to build
20651    the package (albeit without support for automatic dependency tracking).
20652See \`config.log' for more details" "$LINENO" 5; }
20653  fi
20654  { am_dirpart=; unset am_dirpart;}
20655  { am_filepart=; unset am_filepart;}
20656  { am_mf=; unset am_mf;}
20657  { am_rc=; unset am_rc;}
20658  rm -f conftest-deps.mk
20659}
20660 ;;
20661    "libtool":C)
20662
20663    # See if we are running on zsh, and set the options that allow our
20664    # commands through without removal of \ escapes.
20665    if test -n "${ZSH_VERSION+set}"; then
20666      setopt NO_GLOB_SUBST
20667    fi
20668
20669    cfgfile=${ofile}T
20670    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20671    $RM "$cfgfile"
20672
20673    cat <<_LT_EOF >> "$cfgfile"
20674#! $SHELL
20675# Generated automatically by $as_me ($PACKAGE) $VERSION
20676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20677# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20678
20679# Provide generalized library-building support services.
20680# Written by Gordon Matzigkeit, 1996
20681
20682# Copyright (C) 2014 Free Software Foundation, Inc.
20683# This is free software; see the source for copying conditions.  There is NO
20684# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20685
20686# GNU Libtool is free software; you can redistribute it and/or modify
20687# it under the terms of the GNU General Public License as published by
20688# the Free Software Foundation; either version 2 of of the License, or
20689# (at your option) any later version.
20690#
20691# As a special exception to the GNU General Public License, if you
20692# distribute this file as part of a program or library that is built
20693# using GNU Libtool, you may include this file under the  same
20694# distribution terms that you use for the rest of that program.
20695#
20696# GNU Libtool is distributed in the hope that it will be useful, but
20697# WITHOUT ANY WARRANTY; without even the implied warranty of
20698# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20699# GNU General Public License for more details.
20700#
20701# You should have received a copy of the GNU General Public License
20702# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20703
20704
20705# The names of the tagged configurations supported by this script.
20706available_tags=''
20707
20708# Configured defaults for sys_lib_dlsearch_path munging.
20709: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20710
20711# ### BEGIN LIBTOOL CONFIG
20712
20713# Which release of libtool.m4 was used?
20714macro_version=$macro_version
20715macro_revision=$macro_revision
20716
20717# Whether or not to build shared libraries.
20718build_libtool_libs=$enable_shared
20719
20720# Whether or not to build static libraries.
20721build_old_libs=$enable_static
20722
20723# What type of objects to build.
20724pic_mode=$pic_mode
20725
20726# Whether or not to optimize for fast installation.
20727fast_install=$enable_fast_install
20728
20729# Shared archive member basename,for filename based shared library versioning on AIX.
20730shared_archive_member_spec=$shared_archive_member_spec
20731
20732# Shell to use when invoking shell scripts.
20733SHELL=$lt_SHELL
20734
20735# An echo program that protects backslashes.
20736ECHO=$lt_ECHO
20737
20738# The PATH separator for the build system.
20739PATH_SEPARATOR=$lt_PATH_SEPARATOR
20740
20741# The host system.
20742host_alias=$host_alias
20743host=$host
20744host_os=$host_os
20745
20746# The build system.
20747build_alias=$build_alias
20748build=$build
20749build_os=$build_os
20750
20751# A sed program that does not truncate output.
20752SED=$lt_SED
20753
20754# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20755Xsed="\$SED -e 1s/^X//"
20756
20757# A grep program that handles long lines.
20758GREP=$lt_GREP
20759
20760# An ERE matcher.
20761EGREP=$lt_EGREP
20762
20763# A literal string matcher.
20764FGREP=$lt_FGREP
20765
20766# A BSD- or MS-compatible name lister.
20767NM=$lt_NM
20768
20769# Whether we need soft or hard links.
20770LN_S=$lt_LN_S
20771
20772# What is the maximum length of a command?
20773max_cmd_len=$max_cmd_len
20774
20775# Object file suffix (normally "o").
20776objext=$ac_objext
20777
20778# Executable file suffix (normally "").
20779exeext=$exeext
20780
20781# whether the shell understands "unset".
20782lt_unset=$lt_unset
20783
20784# turn spaces into newlines.
20785SP2NL=$lt_lt_SP2NL
20786
20787# turn newlines into spaces.
20788NL2SP=$lt_lt_NL2SP
20789
20790# convert \$build file names to \$host format.
20791to_host_file_cmd=$lt_cv_to_host_file_cmd
20792
20793# convert \$build files to toolchain format.
20794to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20795
20796# An object symbol dumper.
20797OBJDUMP=$lt_OBJDUMP
20798
20799# Method to check whether dependent libraries are shared objects.
20800deplibs_check_method=$lt_deplibs_check_method
20801
20802# Command to use when deplibs_check_method = "file_magic".
20803file_magic_cmd=$lt_file_magic_cmd
20804
20805# How to find potential files when deplibs_check_method = "file_magic".
20806file_magic_glob=$lt_file_magic_glob
20807
20808# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20809want_nocaseglob=$lt_want_nocaseglob
20810
20811# DLL creation program.
20812DLLTOOL=$lt_DLLTOOL
20813
20814# Command to associate shared and link libraries.
20815sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20816
20817# The archiver.
20818AR=$lt_AR
20819
20820# Flags to create an archive.
20821AR_FLAGS=$lt_AR_FLAGS
20822
20823# How to feed a file listing to the archiver.
20824archiver_list_spec=$lt_archiver_list_spec
20825
20826# A symbol stripping program.
20827STRIP=$lt_STRIP
20828
20829# Commands used to install an old-style archive.
20830RANLIB=$lt_RANLIB
20831old_postinstall_cmds=$lt_old_postinstall_cmds
20832old_postuninstall_cmds=$lt_old_postuninstall_cmds
20833
20834# Whether to use a lock for old archive extraction.
20835lock_old_archive_extraction=$lock_old_archive_extraction
20836
20837# A C compiler.
20838LTCC=$lt_CC
20839
20840# LTCC compiler flags.
20841LTCFLAGS=$lt_CFLAGS
20842
20843# Take the output of nm and produce a listing of raw symbols and C names.
20844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20845
20846# Transform the output of nm in a proper C declaration.
20847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20848
20849# Transform the output of nm into a list of symbols to manually relocate.
20850global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20851
20852# Transform the output of nm in a C name address pair.
20853global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20854
20855# Transform the output of nm in a C name address pair when lib prefix is needed.
20856global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20857
20858# The name lister interface.
20859nm_interface=$lt_lt_cv_nm_interface
20860
20861# Specify filename containing input files for \$NM.
20862nm_file_list_spec=$lt_nm_file_list_spec
20863
20864# The root where to search for dependent libraries,and where our libraries should be installed.
20865lt_sysroot=$lt_sysroot
20866
20867# Command to truncate a binary pipe.
20868lt_truncate_bin=$lt_lt_cv_truncate_bin
20869
20870# The name of the directory that contains temporary libtool files.
20871objdir=$objdir
20872
20873# Used to examine libraries when file_magic_cmd begins with "file".
20874MAGIC_CMD=$MAGIC_CMD
20875
20876# Must we lock files when doing compilation?
20877need_locks=$lt_need_locks
20878
20879# Manifest tool.
20880MANIFEST_TOOL=$lt_MANIFEST_TOOL
20881
20882# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20883DSYMUTIL=$lt_DSYMUTIL
20884
20885# Tool to change global to local symbols on Mac OS X.
20886NMEDIT=$lt_NMEDIT
20887
20888# Tool to manipulate fat objects and archives on Mac OS X.
20889LIPO=$lt_LIPO
20890
20891# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20892OTOOL=$lt_OTOOL
20893
20894# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20895OTOOL64=$lt_OTOOL64
20896
20897# Old archive suffix (normally "a").
20898libext=$libext
20899
20900# Shared library suffix (normally ".so").
20901shrext_cmds=$lt_shrext_cmds
20902
20903# The commands to extract the exported symbol list from a shared archive.
20904extract_expsyms_cmds=$lt_extract_expsyms_cmds
20905
20906# Variables whose values should be saved in libtool wrapper scripts and
20907# restored at link time.
20908variables_saved_for_relink=$lt_variables_saved_for_relink
20909
20910# Do we need the "lib" prefix for modules?
20911need_lib_prefix=$need_lib_prefix
20912
20913# Do we need a version for libraries?
20914need_version=$need_version
20915
20916# Library versioning type.
20917version_type=$version_type
20918
20919# Shared library runtime path variable.
20920runpath_var=$runpath_var
20921
20922# Shared library path variable.
20923shlibpath_var=$shlibpath_var
20924
20925# Is shlibpath searched before the hard-coded library search path?
20926shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20927
20928# Format of library name prefix.
20929libname_spec=$lt_libname_spec
20930
20931# List of archive names.  First name is the real one, the rest are links.
20932# The last name is the one that the linker finds with -lNAME
20933library_names_spec=$lt_library_names_spec
20934
20935# The coded name of the library, if different from the real name.
20936soname_spec=$lt_soname_spec
20937
20938# Permission mode override for installation of shared libraries.
20939install_override_mode=$lt_install_override_mode
20940
20941# Command to use after installation of a shared archive.
20942postinstall_cmds=$lt_postinstall_cmds
20943
20944# Command to use after uninstallation of a shared archive.
20945postuninstall_cmds=$lt_postuninstall_cmds
20946
20947# Commands used to finish a libtool library installation in a directory.
20948finish_cmds=$lt_finish_cmds
20949
20950# As "finish_cmds", except a single script fragment to be evaled but
20951# not shown.
20952finish_eval=$lt_finish_eval
20953
20954# Whether we should hardcode library paths into libraries.
20955hardcode_into_libs=$hardcode_into_libs
20956
20957# Compile-time system search path for libraries.
20958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20959
20960# Detected run-time system search path for libraries.
20961sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20962
20963# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20964configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20965
20966# Whether dlopen is supported.
20967dlopen_support=$enable_dlopen
20968
20969# Whether dlopen of programs is supported.
20970dlopen_self=$enable_dlopen_self
20971
20972# Whether dlopen of statically linked programs is supported.
20973dlopen_self_static=$enable_dlopen_self_static
20974
20975# Commands to strip libraries.
20976old_striplib=$lt_old_striplib
20977striplib=$lt_striplib
20978
20979
20980# The linker used to build libraries.
20981LD=$lt_LD
20982
20983# How to create reloadable object files.
20984reload_flag=$lt_reload_flag
20985reload_cmds=$lt_reload_cmds
20986
20987# Commands used to build an old-style archive.
20988old_archive_cmds=$lt_old_archive_cmds
20989
20990# A language specific compiler.
20991CC=$lt_compiler
20992
20993# Is the compiler the GNU compiler?
20994with_gcc=$GCC
20995
20996# Compiler flag to turn off builtin functions.
20997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20998
20999# Additional compiler flags for building library objects.
21000pic_flag=$lt_lt_prog_compiler_pic
21001
21002# How to pass a linker flag through the compiler.
21003wl=$lt_lt_prog_compiler_wl
21004
21005# Compiler flag to prevent dynamic linking.
21006link_static_flag=$lt_lt_prog_compiler_static
21007
21008# Does compiler simultaneously support -c and -o options?
21009compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21010
21011# Whether or not to add -lc for building shared libraries.
21012build_libtool_need_lc=$archive_cmds_need_lc
21013
21014# Whether or not to disallow shared libs when runtime libs are static.
21015allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21016
21017# Compiler flag to allow reflexive dlopens.
21018export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21019
21020# Compiler flag to generate shared objects directly from archives.
21021whole_archive_flag_spec=$lt_whole_archive_flag_spec
21022
21023# Whether the compiler copes with passing no objects directly.
21024compiler_needs_object=$lt_compiler_needs_object
21025
21026# Create an old-style archive from a shared archive.
21027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21028
21029# Create a temporary old-style archive to link instead of a shared archive.
21030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21031
21032# Commands used to build a shared archive.
21033archive_cmds=$lt_archive_cmds
21034archive_expsym_cmds=$lt_archive_expsym_cmds
21035
21036# Commands used to build a loadable module if different from building
21037# a shared archive.
21038module_cmds=$lt_module_cmds
21039module_expsym_cmds=$lt_module_expsym_cmds
21040
21041# Whether we are building with GNU ld or not.
21042with_gnu_ld=$lt_with_gnu_ld
21043
21044# Flag that allows shared libraries with undefined symbols to be built.
21045allow_undefined_flag=$lt_allow_undefined_flag
21046
21047# Flag that enforces no undefined symbols.
21048no_undefined_flag=$lt_no_undefined_flag
21049
21050# Flag to hardcode \$libdir into a binary during linking.
21051# This must work even if \$libdir does not exist
21052hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21053
21054# Whether we need a single "-rpath" flag with a separated argument.
21055hardcode_libdir_separator=$lt_hardcode_libdir_separator
21056
21057# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21058# DIR into the resulting binary.
21059hardcode_direct=$hardcode_direct
21060
21061# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21062# DIR into the resulting binary and the resulting library dependency is
21063# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21064# library is relocated.
21065hardcode_direct_absolute=$hardcode_direct_absolute
21066
21067# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21068# into the resulting binary.
21069hardcode_minus_L=$hardcode_minus_L
21070
21071# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21072# into the resulting binary.
21073hardcode_shlibpath_var=$hardcode_shlibpath_var
21074
21075# Set to "yes" if building a shared library automatically hardcodes DIR
21076# into the library and all subsequent libraries and executables linked
21077# against it.
21078hardcode_automatic=$hardcode_automatic
21079
21080# Set to yes if linker adds runtime paths of dependent libraries
21081# to runtime path list.
21082inherit_rpath=$inherit_rpath
21083
21084# Whether libtool must link a program against all its dependency libraries.
21085link_all_deplibs=$link_all_deplibs
21086
21087# Set to "yes" if exported symbols are required.
21088always_export_symbols=$always_export_symbols
21089
21090# The commands to list exported symbols.
21091export_symbols_cmds=$lt_export_symbols_cmds
21092
21093# Symbols that should not be listed in the preloaded symbols.
21094exclude_expsyms=$lt_exclude_expsyms
21095
21096# Symbols that must always be exported.
21097include_expsyms=$lt_include_expsyms
21098
21099# Commands necessary for linking programs (against libraries) with templates.
21100prelink_cmds=$lt_prelink_cmds
21101
21102# Commands necessary for finishing linking programs.
21103postlink_cmds=$lt_postlink_cmds
21104
21105# Specify filename containing input files.
21106file_list_spec=$lt_file_list_spec
21107
21108# How to hardcode a shared library path into an executable.
21109hardcode_action=$hardcode_action
21110
21111# ### END LIBTOOL CONFIG
21112
21113_LT_EOF
21114
21115    cat <<'_LT_EOF' >> "$cfgfile"
21116
21117# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21118
21119# func_munge_path_list VARIABLE PATH
21120# -----------------------------------
21121# VARIABLE is name of variable containing _space_ separated list of
21122# directories to be munged by the contents of PATH, which is string
21123# having a format:
21124# "DIR[:DIR]:"
21125#       string "DIR[ DIR]" will be prepended to VARIABLE
21126# ":DIR[:DIR]"
21127#       string "DIR[ DIR]" will be appended to VARIABLE
21128# "DIRP[:DIRP]::[DIRA:]DIRA"
21129#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21130#       "DIRA[ DIRA]" will be appended to VARIABLE
21131# "DIR[:DIR]"
21132#       VARIABLE will be replaced by "DIR[ DIR]"
21133func_munge_path_list ()
21134{
21135    case x$2 in
21136    x)
21137        ;;
21138    *:)
21139        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21140        ;;
21141    x:*)
21142        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21143        ;;
21144    *::*)
21145        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21146        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21147        ;;
21148    *)
21149        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21150        ;;
21151    esac
21152}
21153
21154
21155# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21156func_cc_basename ()
21157{
21158    for cc_temp in $*""; do
21159      case $cc_temp in
21160        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21161        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21162        \-*) ;;
21163        *) break;;
21164      esac
21165    done
21166    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21167}
21168
21169
21170# ### END FUNCTIONS SHARED WITH CONFIGURE
21171
21172_LT_EOF
21173
21174  case $host_os in
21175  aix3*)
21176    cat <<\_LT_EOF >> "$cfgfile"
21177# AIX sometimes has problems with the GCC collect2 program.  For some
21178# reason, if we set the COLLECT_NAMES environment variable, the problems
21179# vanish in a puff of smoke.
21180if test set != "${COLLECT_NAMES+set}"; then
21181  COLLECT_NAMES=
21182  export COLLECT_NAMES
21183fi
21184_LT_EOF
21185    ;;
21186  esac
21187
21188
21189ltmain=$ac_aux_dir/ltmain.sh
21190
21191
21192  # We use sed instead of cat because bash on DJGPP gets confused if
21193  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21194  # text mode, it properly converts lines to CR/LF.  This bash problem
21195  # is reportedly fixed, but why not run on old versions too?
21196  sed '$q' "$ltmain" >> "$cfgfile" \
21197     || (rm -f "$cfgfile"; exit 1)
21198
21199   mv -f "$cfgfile" "$ofile" ||
21200    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21201  chmod +x "$ofile"
21202
21203 ;;
21204
21205  esac
21206done # for ac_tag
21207
21208
21209as_fn_exit 0
21210_ACEOF
21211ac_clean_files=$ac_clean_files_save
21212
21213test $ac_write_fail = 0 ||
21214  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21215
21216
21217# configure is writing to config.log, and then calls config.status.
21218# config.status does its own redirection, appending to config.log.
21219# Unfortunately, on DOS this fails, as config.log is still kept open
21220# by configure, so config.status won't be able to write to it; its
21221# output is simply discarded.  So we exec the FD to /dev/null,
21222# effectively closing config.log, so it can be properly (re)opened and
21223# appended to by config.status.  When coming back to configure, we
21224# need to make the FD available again.
21225if test "$no_create" != yes; then
21226  ac_cs_success=:
21227  ac_config_status_args=
21228  test "$silent" = yes &&
21229    ac_config_status_args="$ac_config_status_args --quiet"
21230  exec 5>/dev/null
21231  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21232  exec 5>>config.log
21233  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21234  # would make configure fail if this is the last instruction.
21235  $ac_cs_success || as_fn_exit 1
21236fi
21237if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21239$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21240fi
21241
21242