configure revision a0c41156
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-vesa 2.5.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/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/driver/xf86-video-vesa/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-vesa'
593PACKAGE_TARNAME='xf86-video-vesa'
594PACKAGE_VERSION='2.5.0'
595PACKAGE_STRING='xf86-video-vesa 2.5.0'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641PCIACCESS_LIBS
642PCIACCESS_CFLAGS
643XEXT_LIBS
644XEXT_CFLAGS
645XORG_LIBS
646XORG_CFLAGS
647moduledir
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666LIBTOOL
667MAN_SUBSTS
668XORG_MAN_PAGE
669ADMIN_MAN_DIR
670DRIVER_MAN_DIR
671MISC_MAN_DIR
672FILE_MAN_DIR
673LIB_MAN_DIR
674APP_MAN_DIR
675ADMIN_MAN_SUFFIX
676DRIVER_MAN_SUFFIX
677MISC_MAN_SUFFIX
678FILE_MAN_SUFFIX
679LIB_MAN_SUFFIX
680APP_MAN_SUFFIX
681SED
682host_os
683host_vendor
684host_cpu
685host
686build_os
687build_vendor
688build_cpu
689build
690INSTALL_CMD
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694CHANGELOG_CMD
695STRICT_CFLAGS
696CWARNFLAGS
697BASE_CFLAGS
698EGREP
699GREP
700CPP
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL
782am__quote'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_silent_rules
787enable_dependency_tracking
788enable_selective_werror
789enable_strict_compilation
790enable_static
791enable_shared
792with_pic
793enable_fast_install
794with_aix_soname
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798with_xorg_module_dir
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP
809PKG_CONFIG
810PKG_CONFIG_PATH
811PKG_CONFIG_LIBDIR
812LT_SYS_LIBRARY_PATH
813XORG_CFLAGS
814XORG_LIBS
815XEXT_CFLAGS
816XEXT_LIBS
817PCIACCESS_CFLAGS
818PCIACCESS_LIBS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures xf86-video-vesa 2.5.0 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of xf86-video-vesa 2.5.0:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-dependency-tracking
1440                          do not reject slow dependency extractors
1441  --disable-dependency-tracking
1442                          speeds up one-time build
1443  --disable-selective-werror
1444                          Turn off selective compiler errors. (default:
1445                          enabled)
1446  --enable-strict-compilation
1447                          Enable all warnings from compiler and make them
1448                          errors (default: disabled)
1449  --enable-static[=PKGS]  build static libraries [default=no]
1450  --enable-shared[=PKGS]  build shared libraries [default=yes]
1451  --enable-fast-install[=PKGS]
1452                          optimize for fast installation [default=yes]
1453  --disable-libtool-lock  avoid locking (might break parallel builds)
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-aix-soname=aix|svr4|both
1461                          shared library versioning (aka "SONAME") variant to
1462                          provide on AIX, [default=aix].
1463  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1465                          compiler's sysroot if not specified).
1466  --with-xorg-module-dir=DIR
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  PKG_CONFIG  path to pkg-config utility
1478  PKG_CONFIG_PATH
1479              directories to add to pkg-config's search path
1480  PKG_CONFIG_LIBDIR
1481              path overriding pkg-config's built-in search path
1482  LT_SYS_LIBRARY_PATH
1483              User-defined run-time library search path.
1484  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1485  XORG_LIBS   linker flags for XORG, overriding pkg-config
1486  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1487  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1488  PCIACCESS_CFLAGS
1489              C compiler flags for PCIACCESS, overriding pkg-config
1490  PCIACCESS_LIBS
1491              linker flags for PCIACCESS, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559xf86-video-vesa configure 2.5.0
1560generated by GNU Autoconf 2.69
1561
1562Copyright (C) 2012 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612# ---------------------------------------------
1613# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614# accordingly.
1615ac_fn_c_check_decl ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  as_decl_name=`echo $2|sed 's/ *(.*//'`
1619  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628int
1629main ()
1630{
1631#ifndef $as_decl_name
1632#ifdef __cplusplus
1633  (void) $as_decl_use;
1634#else
1635  (void) $as_decl_name;
1636#endif
1637#endif
1638
1639  ;
1640  return 0;
1641}
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644  eval "$3=yes"
1645else
1646  eval "$3=no"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_decl
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists and can be compiled using the include files in
1739# INCLUDES, setting the cache variable VAR accordingly.
1740ac_fn_c_check_header_compile ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  eval "$3=yes"
1755else
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765} # ac_fn_c_check_header_compile
1766
1767# ac_fn_c_try_link LINENO
1768# -----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_link ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext conftest$ac_exeext
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest$ac_exeext && {
1793	 test "$cross_compiling" = yes ||
1794	 test -x conftest$ac_exeext
1795       }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801	ac_retval=1
1802fi
1803  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805  # interfere with the next link command; also delete a directory that is
1806  # left behind by Apple's compiler.  We do this before executing the actions.
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_link
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879cat >config.log <<_ACEOF
1880This file contains any messages produced by compilers while
1881running configure, to aid debugging if configure makes a mistake.
1882
1883It was created by xf86-video-vesa $as_me 2.5.0, which was
1884generated by GNU Autoconf 2.69.  Invocation command line was
1885
1886  $ $0 $@
1887
1888_ACEOF
1889exec 5>>config.log
1890{
1891cat <<_ASUNAME
1892## --------- ##
1893## Platform. ##
1894## --------- ##
1895
1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1904
1905/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1906/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1909/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1910/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1911/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1912
1913_ASUNAME
1914
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920    $as_echo "PATH: $as_dir"
1921  done
1922IFS=$as_save_IFS
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947  for ac_arg
1948  do
1949    case $ac_arg in
1950    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952    | -silent | --silent | --silen | --sile | --sil)
1953      continue ;;
1954    *\'*)
1955      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956    esac
1957    case $ac_pass in
1958    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959    2)
1960      as_fn_append ac_configure_args1 " '$ac_arg'"
1961      if test $ac_must_keep_next = true; then
1962	ac_must_keep_next=false # Got value, back to normal.
1963      else
1964	case $ac_arg in
1965	  *=* | --config-cache | -C | -disable-* | --disable-* \
1966	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968	  | -with-* | --with-* | -without-* | --without-* | --x)
1969	    case "$ac_configure_args0 " in
1970	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971	    esac
1972	    ;;
1973	  -* ) ac_must_keep_next=true ;;
1974	esac
1975      fi
1976      as_fn_append ac_configure_args " '$ac_arg'"
1977      ;;
1978    esac
1979  done
1980done
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log.  We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989trap 'exit_status=$?
1990  # Save into config.log some information that might help in debugging.
1991  {
1992    echo
1993
1994    $as_echo "## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##"
1997    echo
1998    # The following way of writing the cache mishandles newlines in values,
1999(
2000  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001    eval ac_val=\$$ac_var
2002    case $ac_val in #(
2003    *${as_nl}*)
2004      case $ac_var in #(
2005      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007      esac
2008      case $ac_var in #(
2009      _ | IFS | as_nl) ;; #(
2010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011      *) { eval $ac_var=; unset $ac_var;} ;;
2012      esac ;;
2013    esac
2014  done
2015  (set) 2>&1 |
2016    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017    *${as_nl}ac_space=\ *)
2018      sed -n \
2019	"s/'\''/'\''\\\\'\'''\''/g;
2020	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021      ;; #(
2022    *)
2023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024      ;;
2025    esac |
2026    sort
2027)
2028    echo
2029
2030    $as_echo "## ----------------- ##
2031## Output variables. ##
2032## ----------------- ##"
2033    echo
2034    for ac_var in $ac_subst_vars
2035    do
2036      eval ac_val=\$$ac_var
2037      case $ac_val in
2038      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039      esac
2040      $as_echo "$ac_var='\''$ac_val'\''"
2041    done | sort
2042    echo
2043
2044    if test -n "$ac_subst_files"; then
2045      $as_echo "## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##"
2048      echo
2049      for ac_var in $ac_subst_files
2050      do
2051	eval ac_val=\$$ac_var
2052	case $ac_val in
2053	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054	esac
2055	$as_echo "$ac_var='\''$ac_val'\''"
2056      done | sort
2057      echo
2058    fi
2059
2060    if test -s confdefs.h; then
2061      $as_echo "## ----------- ##
2062## confdefs.h. ##
2063## ----------- ##"
2064      echo
2065      cat confdefs.h
2066      echo
2067    fi
2068    test "$ac_signal" != 0 &&
2069      $as_echo "$as_me: caught signal $ac_signal"
2070    $as_echo "$as_me: exit $exit_status"
2071  } >&5
2072  rm -f core *.core core.conftest.* &&
2073    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074    exit $exit_status
2075' 0
2076for ac_signal in 1 2 13 15; do
2077  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078done
2079ac_signal=0
2080
2081# confdefs.h avoids OS command line length limits that DEFS can exceed.
2082rm -f -r conftest* confdefs.h
2083
2084$as_echo "/* confdefs.h */" > confdefs.h
2085
2086# Predefined preprocessor variables.
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_NAME "$PACKAGE_NAME"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_VERSION "$PACKAGE_VERSION"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_STRING "$PACKAGE_STRING"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_URL "$PACKAGE_URL"
2110_ACEOF
2111
2112
2113# Let the site file select an alternate cache file if it wants to.
2114# Prefer an explicitly selected file to automatically selected ones.
2115ac_site_file1=NONE
2116ac_site_file2=NONE
2117if test -n "$CONFIG_SITE"; then
2118  # We do not want a PATH search for config.site.
2119  case $CONFIG_SITE in #((
2120    -*)  ac_site_file1=./$CONFIG_SITE;;
2121    */*) ac_site_file1=$CONFIG_SITE;;
2122    *)   ac_site_file1=./$CONFIG_SITE;;
2123  esac
2124elif test "x$prefix" != xNONE; then
2125  ac_site_file1=$prefix/share/config.site
2126  ac_site_file2=$prefix/etc/config.site
2127else
2128  ac_site_file1=$ac_default_prefix/share/config.site
2129  ac_site_file2=$ac_default_prefix/etc/config.site
2130fi
2131for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132do
2133  test "x$ac_site_file" = xNONE && continue
2134  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137    sed 's/^/| /' "$ac_site_file" >&5
2138    . "$ac_site_file" \
2139      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141as_fn_error $? "failed to load site script $ac_site_file
2142See \`config.log' for more details" "$LINENO" 5; }
2143  fi
2144done
2145
2146if test -r "$cache_file"; then
2147  # Some versions of bash will fail to source /dev/null (special files
2148  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2149  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151$as_echo "$as_me: loading cache $cache_file" >&6;}
2152    case $cache_file in
2153      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154      *)                      . "./$cache_file";;
2155    esac
2156  fi
2157else
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159$as_echo "$as_me: creating cache $cache_file" >&6;}
2160  >$cache_file
2161fi
2162
2163# Check that the precious variables saved in the cache have kept the same
2164# value.
2165ac_cache_corrupted=false
2166for ac_var in $ac_precious_vars; do
2167  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168  eval ac_new_set=\$ac_env_${ac_var}_set
2169  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170  eval ac_new_val=\$ac_env_${ac_var}_value
2171  case $ac_old_set,$ac_new_set in
2172    set,)
2173      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175      ac_cache_corrupted=: ;;
2176    ,set)
2177      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179      ac_cache_corrupted=: ;;
2180    ,);;
2181    *)
2182      if test "x$ac_old_val" != "x$ac_new_val"; then
2183	# differences in whitespace do not lead to failure.
2184	ac_old_val_w=`echo x $ac_old_val`
2185	ac_new_val_w=`echo x $ac_new_val`
2186	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189	  ac_cache_corrupted=:
2190	else
2191	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193	  eval $ac_var=\$ac_old_val
2194	fi
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2196$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2197	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2198$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2199      fi;;
2200  esac
2201  # Pass precious variables to config.status.
2202  if test "$ac_new_set" = set; then
2203    case $ac_new_val in
2204    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205    *) ac_arg=$ac_var=$ac_new_val ;;
2206    esac
2207    case " $ac_configure_args " in
2208      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2209      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210    esac
2211  fi
2212done
2213if $ac_cache_corrupted; then
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219fi
2220## -------------------- ##
2221## Main body of script. ##
2222## -------------------- ##
2223
2224ac_ext=c
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231
2232ac_config_headers="$ac_config_headers config.h"
2233
2234ac_aux_dir=
2235for ac_dir in . "$srcdir"/.; do
2236  if test -f "$ac_dir/install-sh"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/install-sh -c"
2239    break
2240  elif test -f "$ac_dir/install.sh"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/install.sh -c"
2243    break
2244  elif test -f "$ac_dir/shtool"; then
2245    ac_aux_dir=$ac_dir
2246    ac_install_sh="$ac_aux_dir/shtool install -c"
2247    break
2248  fi
2249done
2250if test -z "$ac_aux_dir"; then
2251  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2252fi
2253
2254# These three variables are undocumented and unsupported,
2255# and are intended to be withdrawn in a future Autoconf release.
2256# They can cause serious problems if a builder's source tree is in a directory
2257# whose full name contains unusual characters.
2258ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2259ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2260ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2261
2262
2263
2264# Initialize Automake
2265am__api_version='1.16'
2266
2267# Find a good install program.  We prefer a C program (faster),
2268# so one script is as good as another.  But avoid the broken or
2269# incompatible versions:
2270# SysV /etc/install, /usr/sbin/install
2271# SunOS /usr/etc/install
2272# IRIX /sbin/install
2273# AIX /bin/install
2274# AmigaOS /C/install, which installs bootblocks on floppy discs
2275# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278# OS/2's system install, which has a completely different semantic
2279# ./install, which can be erroneously created by make from ./install.sh.
2280# Reject install programs that cannot install multiple files.
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282$as_echo_n "checking for a BSD-compatible install... " >&6; }
2283if test -z "$INSTALL"; then
2284if ${ac_cv_path_install+:} false; then :
2285  $as_echo_n "(cached) " >&6
2286else
2287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292    # Account for people who put trailing slashes in PATH elements.
2293case $as_dir/ in #((
2294  ./ | .// | /[cC]/* | \
2295  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297  /usr/ucb/* ) ;;
2298  *)
2299    # OSF1 and SCO ODT 3.0 have their own names for install.
2300    # Don't use installbsd from OSF since it installs stuff as root
2301    # by default.
2302    for ac_prog in ginstall scoinst install; do
2303      for ac_exec_ext in '' $ac_executable_extensions; do
2304	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305	  if test $ac_prog = install &&
2306	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307	    # AIX install.  It has an incompatible calling convention.
2308	    :
2309	  elif test $ac_prog = install &&
2310	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311	    # program-specific install script used by HP pwplus--don't use.
2312	    :
2313	  else
2314	    rm -rf conftest.one conftest.two conftest.dir
2315	    echo one > conftest.one
2316	    echo two > conftest.two
2317	    mkdir conftest.dir
2318	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319	      test -s conftest.one && test -s conftest.two &&
2320	      test -s conftest.dir/conftest.one &&
2321	      test -s conftest.dir/conftest.two
2322	    then
2323	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324	      break 3
2325	    fi
2326	  fi
2327	fi
2328      done
2329    done
2330    ;;
2331esac
2332
2333  done
2334IFS=$as_save_IFS
2335
2336rm -rf conftest.one conftest.two conftest.dir
2337
2338fi
2339  if test "${ac_cv_path_install+set}" = set; then
2340    INSTALL=$ac_cv_path_install
2341  else
2342    # As a last resort, use the slow shell script.  Don't cache a
2343    # value for INSTALL within a source directory, because that will
2344    # break other packages using the cache if that directory is
2345    # removed, or if the value is a relative name.
2346    INSTALL=$ac_install_sh
2347  fi
2348fi
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350$as_echo "$INSTALL" >&6; }
2351
2352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353# It thinks the first close brace ends the variable substitution.
2354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361$as_echo_n "checking whether build environment is sane... " >&6; }
2362# Reject unsafe characters in $srcdir or the absolute working directory
2363# name.  Accept space and tab only in the latter.
2364am_lf='
2365'
2366case `pwd` in
2367  *[\\\"\#\$\&\'\`$am_lf]*)
2368    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369esac
2370case $srcdir in
2371  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2372    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373esac
2374
2375# Do 'set' in a subshell so we don't clobber the current shell's
2376# arguments.  Must try -L first in case configure is actually a
2377# symlink; some systems play weird games with the mod time of symlinks
2378# (eg FreeBSD returns the mod time of the symlink's containing
2379# directory).
2380if (
2381   am_has_slept=no
2382   for am_try in 1 2; do
2383     echo "timestamp, slept: $am_has_slept" > conftest.file
2384     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385     if test "$*" = "X"; then
2386	# -L didn't work.
2387	set X `ls -t "$srcdir/configure" conftest.file`
2388     fi
2389     if test "$*" != "X $srcdir/configure conftest.file" \
2390	&& test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392	# If neither matched, then we have a broken ls.  This can happen
2393	# if, for instance, CONFIG_SHELL is bash and it inherits a
2394	# broken ls alias from the environment.  This has actually
2395	# happened.  Such a system could not be considered "sane".
2396	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2397  alias in your environment" "$LINENO" 5
2398     fi
2399     if test "$2" = conftest.file || test $am_try -eq 2; then
2400       break
2401     fi
2402     # Just in case.
2403     sleep 1
2404     am_has_slept=yes
2405   done
2406   test "$2" = conftest.file
2407   )
2408then
2409   # Ok.
2410   :
2411else
2412   as_fn_error $? "newly created file is older than distributed files!
2413Check your system clock" "$LINENO" 5
2414fi
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416$as_echo "yes" >&6; }
2417# If we didn't sleep, we still need to ensure time stamps of config.status and
2418# generated files are strictly newer.
2419am_sleep_pid=
2420if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421  ( sleep 1 ) &
2422  am_sleep_pid=$!
2423fi
2424
2425rm -f conftest.file
2426
2427test "$program_prefix" != NONE &&
2428  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429# Use a double $ so make ignores it.
2430test "$program_suffix" != NONE &&
2431  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432# Double any \ or $.
2433# By default was `s,x,x', remove it if useless.
2434ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437# Expand $ac_aux_dir to an absolute path.
2438am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440if test x"${MISSING+set}" != xset; then
2441  case $am_aux_dir in
2442  *\ * | *\	*)
2443    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444  *)
2445    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446  esac
2447fi
2448# Use eval to expand $SHELL
2449if eval "$MISSING --is-lightweight"; then
2450  am_missing_run="$MISSING "
2451else
2452  am_missing_run=
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455fi
2456
2457if test x"${install_sh+set}" != xset; then
2458  case $am_aux_dir in
2459  *\ * | *\	*)
2460    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461  *)
2462    install_sh="\${SHELL} $am_aux_dir/install-sh"
2463  esac
2464fi
2465
2466# Installed binaries are usually stripped using 'strip' when the user
2467# run "make install-strip".  However 'strip' might not be the right
2468# tool to use in cross-compilation environments, therefore Automake
2469# will honor the 'STRIP' environment variable to overrule this program.
2470if test "$cross_compiling" != no; then
2471  if test -n "$ac_tool_prefix"; then
2472  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473set dummy ${ac_tool_prefix}strip; ac_word=$2
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_STRIP+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  if test -n "$STRIP"; then
2480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487    for ac_exec_ext in '' $ac_executable_extensions; do
2488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494  done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499STRIP=$ac_cv_prog_STRIP
2500if test -n "$STRIP"; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502$as_echo "$STRIP" >&6; }
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508
2509fi
2510if test -z "$ac_cv_prog_STRIP"; then
2511  ac_ct_STRIP=$STRIP
2512  # Extract the first word of "strip", so it can be a program name with args.
2513set dummy strip; ac_word=$2
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test -n "$ac_ct_STRIP"; then
2520  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    for ac_exec_ext in '' $ac_executable_extensions; do
2528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529    ac_cv_prog_ac_ct_STRIP="strip"
2530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534  done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540if test -n "$ac_ct_STRIP"; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542$as_echo "$ac_ct_STRIP" >&6; }
2543else
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548  if test "x$ac_ct_STRIP" = x; then
2549    STRIP=":"
2550  else
2551    case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557    STRIP=$ac_ct_STRIP
2558  fi
2559else
2560  STRIP="$ac_cv_prog_STRIP"
2561fi
2562
2563fi
2564INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568if test -z "$MKDIR_P"; then
2569  if ${ac_cv_path_mkdir+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577    for ac_prog in mkdir gmkdir; do
2578	 for ac_exec_ext in '' $ac_executable_extensions; do
2579	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581	     'mkdir (GNU coreutils) '* | \
2582	     'mkdir (coreutils) '* | \
2583	     'mkdir (fileutils) '4.1*)
2584	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585	       break 3;;
2586	   esac
2587	 done
2588       done
2589  done
2590IFS=$as_save_IFS
2591
2592fi
2593
2594  test -d ./--version && rmdir ./--version
2595  if test "${ac_cv_path_mkdir+set}" = set; then
2596    MKDIR_P="$ac_cv_path_mkdir -p"
2597  else
2598    # As a last resort, use the slow shell script.  Don't cache a
2599    # value for MKDIR_P within a source directory, because that will
2600    # break other packages using the cache if that directory is
2601    # removed, or if the value is a relative name.
2602    MKDIR_P="$ac_install_sh -d"
2603  fi
2604fi
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606$as_echo "$MKDIR_P" >&6; }
2607
2608for ac_prog in gawk mawk nawk awk
2609do
2610  # Extract the first word of "$ac_prog", so it can be a program name with args.
2611set dummy $ac_prog; ac_word=$2
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
2614if ${ac_cv_prog_AWK+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  if test -n "$AWK"; then
2618  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623  IFS=$as_save_IFS
2624  test -z "$as_dir" && as_dir=.
2625    for ac_exec_ext in '' $ac_executable_extensions; do
2626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627    ac_cv_prog_AWK="$ac_prog"
2628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629    break 2
2630  fi
2631done
2632  done
2633IFS=$as_save_IFS
2634
2635fi
2636fi
2637AWK=$ac_cv_prog_AWK
2638if test -n "$AWK"; then
2639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640$as_echo "$AWK" >&6; }
2641else
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643$as_echo "no" >&6; }
2644fi
2645
2646
2647  test -n "$AWK" && break
2648done
2649
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652set x ${MAKE-make}
2653ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655  $as_echo_n "(cached) " >&6
2656else
2657  cat >conftest.make <<\_ACEOF
2658SHELL = /bin/sh
2659all:
2660	@echo '@@@%%%=$(MAKE)=@@@%%%'
2661_ACEOF
2662# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664  *@@@%%%=?*=@@@%%%*)
2665    eval ac_cv_prog_make_${ac_make}_set=yes;;
2666  *)
2667    eval ac_cv_prog_make_${ac_make}_set=no;;
2668esac
2669rm -f conftest.make
2670fi
2671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673$as_echo "yes" >&6; }
2674  SET_MAKE=
2675else
2676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677$as_echo "no" >&6; }
2678  SET_MAKE="MAKE=${MAKE-make}"
2679fi
2680
2681rm -rf .tst 2>/dev/null
2682mkdir .tst 2>/dev/null
2683if test -d .tst; then
2684  am__leading_dot=.
2685else
2686  am__leading_dot=_
2687fi
2688rmdir .tst 2>/dev/null
2689
2690# Check whether --enable-silent-rules was given.
2691if test "${enable_silent_rules+set}" = set; then :
2692  enableval=$enable_silent_rules;
2693fi
2694
2695case $enable_silent_rules in # (((
2696  yes) AM_DEFAULT_VERBOSITY=0;;
2697   no) AM_DEFAULT_VERBOSITY=1;;
2698    *) AM_DEFAULT_VERBOSITY=1;;
2699esac
2700am_make=${MAKE-make}
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703if ${am_cv_make_support_nested_variables+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if $as_echo 'TRUE=$(BAR$(V))
2707BAR0=false
2708BAR1=true
2709V=1
2710am__doit:
2711	@$(TRUE)
2712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713  am_cv_make_support_nested_variables=yes
2714else
2715  am_cv_make_support_nested_variables=no
2716fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719$as_echo "$am_cv_make_support_nested_variables" >&6; }
2720if test $am_cv_make_support_nested_variables = yes; then
2721    AM_V='$(V)'
2722  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723else
2724  AM_V=$AM_DEFAULT_VERBOSITY
2725  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726fi
2727AM_BACKSLASH='\'
2728
2729if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731  # is not polluted with repeated "-I."
2732  am__isrc=' -I$(srcdir)'
2733  # test to see if srcdir already configured
2734  if test -f $srcdir/config.status; then
2735    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736  fi
2737fi
2738
2739# test whether we have cygpath
2740if test -z "$CYGPATH_W"; then
2741  if (cygpath --version) >/dev/null 2>/dev/null; then
2742    CYGPATH_W='cygpath -w'
2743  else
2744    CYGPATH_W=echo
2745  fi
2746fi
2747
2748
2749# Define the identity of the package.
2750 PACKAGE='xf86-video-vesa'
2751 VERSION='2.5.0'
2752
2753
2754cat >>confdefs.h <<_ACEOF
2755#define PACKAGE "$PACKAGE"
2756_ACEOF
2757
2758
2759cat >>confdefs.h <<_ACEOF
2760#define VERSION "$VERSION"
2761_ACEOF
2762
2763# Some tools Automake needs.
2764
2765ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779# For better backward compatibility.  To be removed once Automake 1.9.x
2780# dies out for good.  For more background, see:
2781# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783mkdir_p='$(MKDIR_P)'
2784
2785# We need awk for the "check" target (and possibly the TAP driver).  The
2786# system "awk" is bad on some platforms.
2787# Always define AMTAR for backward compatibility.  Yes, it's still used
2788# in the wild :-(  We should find a proper way to deprecate it ...
2789AMTAR='$${TAR-tar}'
2790
2791
2792# We'll loop over all known methods to create a tar archive until one works.
2793_am_tools='gnutar  pax cpio none'
2794
2795am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802# POSIX will say in a future version that running "rm -f" with no argument
2803# is OK; and we want to be able to make that assumption in our Makefile
2804# recipes.  So use an aggressive probe to check that the usage we want is
2805# actually supported "in the wild" to an acceptable degree.
2806# See automake bug#10828.
2807# To make any issue more visible, cause the running configure to be aborted
2808# by default if the 'rm' program in use doesn't match our expectations; the
2809# user can still override this though.
2810if rm -f && rm -fr && rm -rf; then : OK; else
2811  cat >&2 <<'END'
2812Oops!
2813
2814Your 'rm' program seems unable to run without file operands specified
2815on the command line, even when the '-f' option is present.  This is contrary
2816to the behaviour of most rm programs out there, and not conforming with
2817the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819Please tell bug-automake@gnu.org about your system, including the value
2820of your $PATH and any error possibly output before this message.  This
2821can help us improve future automake versions.
2822
2823END
2824  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825    echo 'Configuration will proceed anyway, since you have set the' >&2
2826    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827    echo >&2
2828  else
2829    cat >&2 <<'END'
2830Aborting the configuration process, to ensure you take notice of the issue.
2831
2832You can download and install GNU coreutils to get an 'rm' implementation
2833that behaves properly: <https://www.gnu.org/software/coreutils/>.
2834
2835If you want to complete the configuration process using your problematic
2836'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837to "yes", and re-run configure.
2838
2839END
2840    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841  fi
2842fi
2843
2844
2845# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857DEPDIR="${am__leading_dot}deps"
2858
2859ac_config_commands="$ac_config_commands depfiles"
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2862$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2863cat > confinc.mk << 'END'
2864am__doit:
2865	@echo this is the am__doit target >confinc.out
2866.PHONY: am__doit
2867END
2868am__include="#"
2869am__quote=
2870# BSD make does it like this.
2871echo '.include "confinc.mk" # ignored' > confmf.BSD
2872# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2873echo 'include confinc.mk # ignored' > confmf.GNU
2874_am_result=no
2875for s in GNU BSD; do
2876  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2877   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }
2881  case $?:`cat confinc.out 2>/dev/null` in #(
2882  '0:this is the am__doit target') :
2883    case $s in #(
2884  BSD) :
2885    am__include='.include' am__quote='"' ;; #(
2886  *) :
2887    am__include='include' am__quote='' ;;
2888esac ;; #(
2889  *) :
2890     ;;
2891esac
2892  if test "$am__include" != "#"; then
2893    _am_result="yes ($s style)"
2894    break
2895  fi
2896done
2897rm -f confinc.* confmf.*
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2899$as_echo "${_am_result}" >&6; }
2900
2901# Check whether --enable-dependency-tracking was given.
2902if test "${enable_dependency_tracking+set}" = set; then :
2903  enableval=$enable_dependency_tracking;
2904fi
2905
2906if test "x$enable_dependency_tracking" != xno; then
2907  am_depcomp="$ac_aux_dir/depcomp"
2908  AMDEPBACKSLASH='\'
2909  am__nodep='_no'
2910fi
2911 if test "x$enable_dependency_tracking" != xno; then
2912  AMDEP_TRUE=
2913  AMDEP_FALSE='#'
2914else
2915  AMDEP_TRUE='#'
2916  AMDEP_FALSE=
2917fi
2918
2919
2920ac_ext=c
2921ac_cpp='$CPP $CPPFLAGS'
2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925if test -n "$ac_tool_prefix"; then
2926  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if ${ac_cv_prog_CC+:} false; then :
2931  $as_echo_n "(cached) " >&6
2932else
2933  if test -n "$CC"; then
2934  ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939  IFS=$as_save_IFS
2940  test -z "$as_dir" && as_dir=.
2941    for ac_exec_ext in '' $ac_executable_extensions; do
2942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945    break 2
2946  fi
2947done
2948  done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953CC=$ac_cv_prog_CC
2954if test -n "$CC"; then
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956$as_echo "$CC" >&6; }
2957else
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$ac_cv_prog_CC"; then
2965  ac_ct_CC=$CC
2966  # Extract the first word of "gcc", so it can be a program name with args.
2967set dummy gcc; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if ${ac_cv_prog_ac_ct_CC+:} false; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$ac_ct_CC"; then
2974  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983    ac_cv_prog_ac_ct_CC="gcc"
2984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994if test -n "$ac_ct_CC"; then
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996$as_echo "$ac_ct_CC" >&6; }
2997else
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002  if test "x$ac_ct_CC" = x; then
3003    CC=""
3004  else
3005    case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011    CC=$ac_ct_CC
3012  fi
3013else
3014  CC="$ac_cv_prog_CC"
3015fi
3016
3017if test -z "$CC"; then
3018          if test -n "$ac_tool_prefix"; then
3019    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}cc; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_CC+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$CC"; then
3027  ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036    ac_cv_prog_CC="${ac_tool_prefix}cc"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056  fi
3057fi
3058if test -z "$CC"; then
3059  # Extract the first word of "cc", so it can be a program name with args.
3060set dummy cc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_CC+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$CC"; then
3067  ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069  ac_prog_rejected=no
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075    for ac_exec_ext in '' $ac_executable_extensions; do
3076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078       ac_prog_rejected=yes
3079       continue
3080     fi
3081    ac_cv_prog_CC="cc"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089if test $ac_prog_rejected = yes; then
3090  # We found a bogon in the path, so make sure we never use it.
3091  set dummy $ac_cv_prog_CC
3092  shift
3093  if test $# != 0; then
3094    # We chose a different compiler from the bogus one.
3095    # However, it has the same basename, so the bogon will be chosen
3096    # first if we set CC to just the basename; use the full file name.
3097    shift
3098    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099  fi
3100fi
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113fi
3114if test -z "$CC"; then
3115  if test -n "$ac_tool_prefix"; then
3116  for ac_prog in cl.exe
3117  do
3118    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if ${ac_cv_prog_CC+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$CC"; then
3126  ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155    test -n "$CC" && break
3156  done
3157fi
3158if test -z "$CC"; then
3159  ac_ct_CC=$CC
3160  for ac_prog in cl.exe
3161do
3162  # Extract the first word of "$ac_prog", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if ${ac_cv_prog_ac_ct_CC+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$ac_ct_CC"; then
3170  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179    ac_cv_prog_ac_ct_CC="$ac_prog"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190if test -n "$ac_ct_CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192$as_echo "$ac_ct_CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199  test -n "$ac_ct_CC" && break
3200done
3201
3202  if test "x$ac_ct_CC" = x; then
3203    CC=""
3204  else
3205    case $cross_compiling:$ac_tool_warned in
3206yes:)
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209ac_tool_warned=yes ;;
3210esac
3211    CC=$ac_ct_CC
3212  fi
3213fi
3214
3215fi
3216
3217
3218test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220as_fn_error $? "no acceptable C compiler found in \$PATH
3221See \`config.log' for more details" "$LINENO" 5; }
3222
3223# Provide some information about the compiler.
3224$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225set X $ac_compile
3226ac_compiler=$2
3227for ac_option in --version -v -V -qversion; do
3228  { { ac_try="$ac_compiler $ac_option >&5"
3229case "(($ac_try" in
3230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231  *) ac_try_echo=$ac_try;;
3232esac
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236  ac_status=$?
3237  if test -s conftest.err; then
3238    sed '10a\
3239... rest of stderr output deleted ...
3240         10q' conftest.err >conftest.er1
3241    cat conftest.er1 >&5
3242  fi
3243  rm -f conftest.er1 conftest.err
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }
3246done
3247
3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259ac_clean_files_save=$ac_clean_files
3260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3261# Try to create an executable without -o first, disregard a.out.
3262# It will help us diagnose broken compilers, and finding out an intuition
3263# of exeext.
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3265$as_echo_n "checking whether the C compiler works... " >&6; }
3266ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267
3268# The possible output files:
3269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270
3271ac_rmfiles=
3272for ac_file in $ac_files
3273do
3274  case $ac_file in
3275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277  esac
3278done
3279rm -f $ac_rmfiles
3280
3281if { { ac_try="$ac_link_default"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287$as_echo "$ac_try_echo"; } >&5
3288  (eval "$ac_link_default") 2>&5
3289  ac_status=$?
3290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291  test $ac_status = 0; }; then :
3292  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3295# so that the user can short-circuit this test for compilers unknown to
3296# Autoconf.
3297for ac_file in $ac_files ''
3298do
3299  test -f "$ac_file" || continue
3300  case $ac_file in
3301    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302	;;
3303    [ab].out )
3304	# We found the default executable, but exeext='' is most
3305	# certainly right.
3306	break;;
3307    *.* )
3308	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309	then :; else
3310	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311	fi
3312	# We set ac_cv_exeext here because the later test for it is not
3313	# safe: cross compilers may not add the suffix if given an `-o'
3314	# argument, so we may need to know it at that point already.
3315	# Even if this section looks crufty: it has the advantage of
3316	# actually working.
3317	break;;
3318    * )
3319	break;;
3320  esac
3321done
3322test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324else
3325  ac_file=''
3326fi
3327if test -z "$ac_file"; then :
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330$as_echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error 77 "C compiler cannot create executables
3336See \`config.log' for more details" "$LINENO" 5; }
3337else
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339$as_echo "yes" >&6; }
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3342$as_echo_n "checking for C compiler default output file name... " >&6; }
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3344$as_echo "$ac_file" >&6; }
3345ac_exeext=$ac_cv_exeext
3346
3347rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3348ac_clean_files=$ac_clean_files_save
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350$as_echo_n "checking for suffix of executables... " >&6; }
3351if { { ac_try="$ac_link"
3352case "(($ac_try" in
3353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354  *) ac_try_echo=$ac_try;;
3355esac
3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357$as_echo "$ac_try_echo"; } >&5
3358  (eval "$ac_link") 2>&5
3359  ac_status=$?
3360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361  test $ac_status = 0; }; then :
3362  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3364# work properly (i.e., refer to `conftest.exe'), while it won't with
3365# `rm'.
3366for ac_file in conftest.exe conftest conftest.*; do
3367  test -f "$ac_file" || continue
3368  case $ac_file in
3369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371	  break;;
3372    * ) break;;
3373  esac
3374done
3375else
3376  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3379See \`config.log' for more details" "$LINENO" 5; }
3380fi
3381rm -f conftest conftest$ac_cv_exeext
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383$as_echo "$ac_cv_exeext" >&6; }
3384
3385rm -f conftest.$ac_ext
3386EXEEXT=$ac_cv_exeext
3387ac_exeext=$EXEEXT
3388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h.  */
3390#include <stdio.h>
3391int
3392main ()
3393{
3394FILE *f = fopen ("conftest.out", "w");
3395 return ferror (f) || fclose (f) != 0;
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401ac_clean_files="$ac_clean_files conftest.out"
3402# Check that the compiler produces executables we can run.  If not, either
3403# the compiler is broken, or we cross compile.
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3405$as_echo_n "checking whether we are cross compiling... " >&6; }
3406if test "$cross_compiling" != yes; then
3407  { { ac_try="$ac_link"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_link") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }
3418  if { ac_try='./conftest$ac_cv_exeext'
3419  { { case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_try") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }; }; then
3429    cross_compiling=no
3430  else
3431    if test "$cross_compiling" = maybe; then
3432	cross_compiling=yes
3433    else
3434	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436as_fn_error $? "cannot run C compiled programs.
3437If you meant to cross compile, use \`--host'.
3438See \`config.log' for more details" "$LINENO" 5; }
3439    fi
3440  fi
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3443$as_echo "$cross_compiling" >&6; }
3444
3445rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3446ac_clean_files=$ac_clean_files_save
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448$as_echo_n "checking for suffix of object files... " >&6; }
3449if ${ac_cv_objext+:} false; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463rm -f conftest.o conftest.obj
3464if { { ac_try="$ac_compile"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471  (eval "$ac_compile") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }; then :
3475  for ac_file in conftest.o conftest.obj conftest.*; do
3476  test -f "$ac_file" || continue;
3477  case $ac_file in
3478    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480       break;;
3481  esac
3482done
3483else
3484  $as_echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error $? "cannot compute suffix of object files: cannot compile
3490See \`config.log' for more details" "$LINENO" 5; }
3491fi
3492rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495$as_echo "$ac_cv_objext" >&6; }
3496OBJEXT=$ac_cv_objext
3497ac_objext=$OBJEXT
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500if ${ac_cv_c_compiler_gnu+:} false; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509#ifndef __GNUC__
3510       choke me
3511#endif
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517if ac_fn_c_try_compile "$LINENO"; then :
3518  ac_compiler_gnu=yes
3519else
3520  ac_compiler_gnu=no
3521fi
3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528if test $ac_compiler_gnu = yes; then
3529  GCC=yes
3530else
3531  GCC=
3532fi
3533ac_test_CFLAGS=${CFLAGS+set}
3534ac_save_CFLAGS=$CFLAGS
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536$as_echo_n "checking whether $CC accepts -g... " >&6; }
3537if ${ac_cv_prog_cc_g+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  ac_save_c_werror_flag=$ac_c_werror_flag
3541   ac_c_werror_flag=yes
3542   ac_cv_prog_cc_g=no
3543   CFLAGS="-g"
3544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h.  */
3546
3547int
3548main ()
3549{
3550
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555if ac_fn_c_try_compile "$LINENO"; then :
3556  ac_cv_prog_cc_g=yes
3557else
3558  CFLAGS=""
3559      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571
3572else
3573  ac_c_werror_flag=$ac_save_c_werror_flag
3574	 CFLAGS="-g"
3575	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h.  */
3577
3578int
3579main ()
3580{
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587  ac_cv_prog_cc_g=yes
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594   ac_c_werror_flag=$ac_save_c_werror_flag
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597$as_echo "$ac_cv_prog_cc_g" >&6; }
3598if test "$ac_test_CFLAGS" = set; then
3599  CFLAGS=$ac_save_CFLAGS
3600elif test $ac_cv_prog_cc_g = yes; then
3601  if test "$GCC" = yes; then
3602    CFLAGS="-g -O2"
3603  else
3604    CFLAGS="-g"
3605  fi
3606else
3607  if test "$GCC" = yes; then
3608    CFLAGS="-O2"
3609  else
3610    CFLAGS=
3611  fi
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615if ${ac_cv_prog_cc_c89+:} false; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  ac_cv_prog_cc_c89=no
3619ac_save_CC=$CC
3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h.  */
3622#include <stdarg.h>
3623#include <stdio.h>
3624struct stat;
3625/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3626struct buf { int x; };
3627FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628static char *e (p, i)
3629     char **p;
3630     int i;
3631{
3632  return p[i];
3633}
3634static char *f (char * (*g) (char **, int), char **p, ...)
3635{
3636  char *s;
3637  va_list v;
3638  va_start (v,p);
3639  s = g (p, va_arg (v,int));
3640  va_end (v);
3641  return s;
3642}
3643
3644/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3645   function prototypes and stuff, but not '\xHH' hex character constants.
3646   These don't provoke an error unfortunately, instead are silently treated
3647   as 'x'.  The following induces an error, until -std is added to get
3648   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3649   array size at least.  It's necessary to write '\x00'==0 to get something
3650   that's true only with -std.  */
3651int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
3653/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654   inside strings and character constants.  */
3655#define FOO(x) 'x'
3656int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
3658int test (int i, double x);
3659struct s1 {int (*f) (int a);};
3660struct s2 {int (*f) (double a);};
3661int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662int argc;
3663char **argv;
3664int
3665main ()
3666{
3667return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674do
3675  CC="$ac_save_CC $ac_arg"
3676  if ac_fn_c_try_compile "$LINENO"; then :
3677  ac_cv_prog_cc_c89=$ac_arg
3678fi
3679rm -f core conftest.err conftest.$ac_objext
3680  test "x$ac_cv_prog_cc_c89" != "xno" && break
3681done
3682rm -f conftest.$ac_ext
3683CC=$ac_save_CC
3684
3685fi
3686# AC_CACHE_VAL
3687case "x$ac_cv_prog_cc_c89" in
3688  x)
3689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3690$as_echo "none needed" >&6; } ;;
3691  xno)
3692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3693$as_echo "unsupported" >&6; } ;;
3694  *)
3695    CC="$CC $ac_cv_prog_cc_c89"
3696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3697$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3698esac
3699if test "x$ac_cv_prog_cc_c89" != xno; then :
3700
3701fi
3702
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709ac_ext=c
3710ac_cpp='$CPP $CPPFLAGS'
3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3715$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3716if ${am_cv_prog_cc_c_o+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730  # Make sure it works both with $CC and with simple cc.
3731  # Following AC_PROG_CC_C_O, we do the test twice because some
3732  # compilers refuse to overwrite an existing .o file with -o,
3733  # though they will create one.
3734  am_cv_prog_cc_c_o=yes
3735  for am_i in 1 2; do
3736    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3737   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } \
3741         && test -f conftest2.$ac_objext; then
3742      : OK
3743    else
3744      am_cv_prog_cc_c_o=no
3745      break
3746    fi
3747  done
3748  rm -f core conftest*
3749  unset am_i
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3752$as_echo "$am_cv_prog_cc_c_o" >&6; }
3753if test "$am_cv_prog_cc_c_o" != yes; then
3754   # Losing compiler, so override with the script.
3755   # FIXME: It is wrong to rewrite CC.
3756   # But if we don't then we get into trouble of one sort or another.
3757   # A longer-term fix would be to have automake use am__CC in this case,
3758   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3759   CC="$am_aux_dir/compile $CC"
3760fi
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768depcc="$CC"   am_compiler_list=
3769
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771$as_echo_n "checking dependency style of $depcc... " >&6; }
3772if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3773  $as_echo_n "(cached) " >&6
3774else
3775  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776  # We make a subdir and do the tests there.  Otherwise we can end up
3777  # making bogus files that we don't know about and never remove.  For
3778  # instance it was reported that on HP-UX the gcc test will end up
3779  # making a dummy file named 'D' -- because '-MD' means "put the output
3780  # in D".
3781  rm -rf conftest.dir
3782  mkdir conftest.dir
3783  # Copy depcomp to subdir because otherwise we won't find it if we're
3784  # using a relative directory.
3785  cp "$am_depcomp" conftest.dir
3786  cd conftest.dir
3787  # We will build objects and dependencies in a subdirectory because
3788  # it helps to detect inapplicable dependency modes.  For instance
3789  # both Tru64's cc and ICC support -MD to output dependencies as a
3790  # side effect of compilation, but ICC will put the dependencies in
3791  # the current directory while Tru64 will put them in the object
3792  # directory.
3793  mkdir sub
3794
3795  am_cv_CC_dependencies_compiler_type=none
3796  if test "$am_compiler_list" = ""; then
3797     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798  fi
3799  am__universal=false
3800  case " $depcc " in #(
3801     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802     esac
3803
3804  for depmode in $am_compiler_list; do
3805    # Setup a source with many dependencies, because some compilers
3806    # like to wrap large dependency lists on column 80 (with \), and
3807    # we should not choose a depcomp mode which is confused by this.
3808    #
3809    # We need to recreate these files for each test, as the compiler may
3810    # overwrite some of them when testing with obscure command lines.
3811    # This happens at least with the AIX C compiler.
3812    : > sub/conftest.c
3813    for i in 1 2 3 4 5 6; do
3814      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3816      # Solaris 10 /bin/sh.
3817      echo '/* dummy */' > sub/conftst$i.h
3818    done
3819    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3822    # mode.  It turns out that the SunPro C++ compiler does not properly
3823    # handle '-M -o', and we need to detect this.  Also, some Intel
3824    # versions had trouble with output in subdirs.
3825    am__obj=sub/conftest.${OBJEXT-o}
3826    am__minus_obj="-o $am__obj"
3827    case $depmode in
3828    gcc)
3829      # This depmode causes a compiler race in universal mode.
3830      test "$am__universal" = false || continue
3831      ;;
3832    nosideeffect)
3833      # After this tag, mechanisms are not by side-effect, so they'll
3834      # only be used when explicitly requested.
3835      if test "x$enable_dependency_tracking" = xyes; then
3836	continue
3837      else
3838	break
3839      fi
3840      ;;
3841    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3842      # This compiler won't grok '-c -o', but also, the minuso test has
3843      # not run yet.  These depmodes are late enough in the game, and
3844      # so weak that their functioning should not be impacted.
3845      am__obj=conftest.${OBJEXT-o}
3846      am__minus_obj=
3847      ;;
3848    none) break ;;
3849    esac
3850    if depmode=$depmode \
3851       source=sub/conftest.c object=$am__obj \
3852       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854         >/dev/null 2>conftest.err &&
3855       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859      # icc doesn't choke on unknown options, it will just issue warnings
3860      # or remarks (even with -Werror).  So we grep stderr for any message
3861      # that says an option was ignored or not supported.
3862      # When given -MP, icc 7.0 and 7.1 complain thusly:
3863      #   icc: Command line warning: ignoring option '-M'; no argument required
3864      # The diagnosis changed in icc 8.0:
3865      #   icc: Command line remark: option '-MP' not supported
3866      if (grep 'ignoring option' conftest.err ||
3867          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868        am_cv_CC_dependencies_compiler_type=$depmode
3869        break
3870      fi
3871    fi
3872  done
3873
3874  cd ..
3875  rm -rf conftest.dir
3876else
3877  am_cv_CC_dependencies_compiler_type=none
3878fi
3879
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886  test "x$enable_dependency_tracking" != xno \
3887  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888  am__fastdepCC_TRUE=
3889  am__fastdepCC_FALSE='#'
3890else
3891  am__fastdepCC_TRUE='#'
3892  am__fastdepCC_FALSE=
3893fi
3894
3895
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3897$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3898if ${ac_cv_prog_cc_c99+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  ac_cv_prog_cc_c99=no
3902ac_save_CC=$CC
3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905#include <stdarg.h>
3906#include <stdbool.h>
3907#include <stdlib.h>
3908#include <wchar.h>
3909#include <stdio.h>
3910
3911// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3912#define debug(...) fprintf (stderr, __VA_ARGS__)
3913#define showlist(...) puts (#__VA_ARGS__)
3914#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3915static void
3916test_varargs_macros (void)
3917{
3918  int x = 1234;
3919  int y = 5678;
3920  debug ("Flag");
3921  debug ("X = %d\n", x);
3922  showlist (The first, second, and third items.);
3923  report (x>y, "x is %d but y is %d", x, y);
3924}
3925
3926// Check long long types.
3927#define BIG64 18446744073709551615ull
3928#define BIG32 4294967295ul
3929#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3930#if !BIG_OK
3931  your preprocessor is broken;
3932#endif
3933#if BIG_OK
3934#else
3935  your preprocessor is broken;
3936#endif
3937static long long int bignum = -9223372036854775807LL;
3938static unsigned long long int ubignum = BIG64;
3939
3940struct incomplete_array
3941{
3942  int datasize;
3943  double data[];
3944};
3945
3946struct named_init {
3947  int number;
3948  const wchar_t *name;
3949  double average;
3950};
3951
3952typedef const char *ccp;
3953
3954static inline int
3955test_restrict (ccp restrict text)
3956{
3957  // See if C++-style comments work.
3958  // Iterate through items via the restricted pointer.
3959  // Also check for declarations in for loops.
3960  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3961    continue;
3962  return 0;
3963}
3964
3965// Check varargs and va_copy.
3966static void
3967test_varargs (const char *format, ...)
3968{
3969  va_list args;
3970  va_start (args, format);
3971  va_list args_copy;
3972  va_copy (args_copy, args);
3973
3974  const char *str;
3975  int number;
3976  float fnumber;
3977
3978  while (*format)
3979    {
3980      switch (*format++)
3981	{
3982	case 's': // string
3983	  str = va_arg (args_copy, const char *);
3984	  break;
3985	case 'd': // int
3986	  number = va_arg (args_copy, int);
3987	  break;
3988	case 'f': // float
3989	  fnumber = va_arg (args_copy, double);
3990	  break;
3991	default:
3992	  break;
3993	}
3994    }
3995  va_end (args_copy);
3996  va_end (args);
3997}
3998
3999int
4000main ()
4001{
4002
4003  // Check bool.
4004  _Bool success = false;
4005
4006  // Check restrict.
4007  if (test_restrict ("String literal") == 0)
4008    success = true;
4009  char *restrict newvar = "Another string";
4010
4011  // Check varargs.
4012  test_varargs ("s, d' f .", "string", 65, 34.234);
4013  test_varargs_macros ();
4014
4015  // Check flexible array members.
4016  struct incomplete_array *ia =
4017    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4018  ia->datasize = 10;
4019  for (int i = 0; i < ia->datasize; ++i)
4020    ia->data[i] = i * 1.234;
4021
4022  // Check named initializers.
4023  struct named_init ni = {
4024    .number = 34,
4025    .name = L"Test wide string",
4026    .average = 543.34343,
4027  };
4028
4029  ni.number = 58;
4030
4031  int dynamic_array[ni.number];
4032  dynamic_array[ni.number - 1] = 543;
4033
4034  // work around unused variable warnings
4035  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4036	  || dynamic_array[ni.number - 1] != 543);
4037
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4043do
4044  CC="$ac_save_CC $ac_arg"
4045  if ac_fn_c_try_compile "$LINENO"; then :
4046  ac_cv_prog_cc_c99=$ac_arg
4047fi
4048rm -f core conftest.err conftest.$ac_objext
4049  test "x$ac_cv_prog_cc_c99" != "xno" && break
4050done
4051rm -f conftest.$ac_ext
4052CC=$ac_save_CC
4053
4054fi
4055# AC_CACHE_VAL
4056case "x$ac_cv_prog_cc_c99" in
4057  x)
4058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059$as_echo "none needed" >&6; } ;;
4060  xno)
4061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062$as_echo "unsupported" >&6; } ;;
4063  *)
4064    CC="$CC $ac_cv_prog_cc_c99"
4065    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4066$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4067esac
4068if test "x$ac_cv_prog_cc_c99" != xno; then :
4069
4070fi
4071
4072
4073
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4080$as_echo_n "checking how to run the C preprocessor... " >&6; }
4081# On Suns, sometimes $CPP names a directory.
4082if test -n "$CPP" && test -d "$CPP"; then
4083  CPP=
4084fi
4085if test -z "$CPP"; then
4086  if ${ac_cv_prog_CPP+:} false; then :
4087  $as_echo_n "(cached) " >&6
4088else
4089      # Double quotes because CPP needs to be expanded
4090    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4091    do
4092      ac_preproc_ok=false
4093for ac_c_preproc_warn_flag in '' yes
4094do
4095  # Use a header file that comes with gcc, so configuring glibc
4096  # with a fresh cross-compiler works.
4097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4098  # <limits.h> exists even on freestanding compilers.
4099  # On the NeXT, cc -E runs the code through the compiler's parser,
4100  # not just through cpp. "Syntax error" is here to catch this case.
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103#ifdef __STDC__
4104# include <limits.h>
4105#else
4106# include <assert.h>
4107#endif
4108		     Syntax error
4109_ACEOF
4110if ac_fn_c_try_cpp "$LINENO"; then :
4111
4112else
4113  # Broken: fails on valid input.
4114continue
4115fi
4116rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118  # OK, works on sane cases.  Now check whether nonexistent headers
4119  # can be detected and how.
4120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#include <ac_nonexistent.h>
4123_ACEOF
4124if ac_fn_c_try_cpp "$LINENO"; then :
4125  # Broken: success on invalid input.
4126continue
4127else
4128  # Passes both tests.
4129ac_preproc_ok=:
4130break
4131fi
4132rm -f conftest.err conftest.i conftest.$ac_ext
4133
4134done
4135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136rm -f conftest.i conftest.err conftest.$ac_ext
4137if $ac_preproc_ok; then :
4138  break
4139fi
4140
4141    done
4142    ac_cv_prog_CPP=$CPP
4143
4144fi
4145  CPP=$ac_cv_prog_CPP
4146else
4147  ac_cv_prog_CPP=$CPP
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4150$as_echo "$CPP" >&6; }
4151ac_preproc_ok=false
4152for ac_c_preproc_warn_flag in '' yes
4153do
4154  # Use a header file that comes with gcc, so configuring glibc
4155  # with a fresh cross-compiler works.
4156  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157  # <limits.h> exists even on freestanding compilers.
4158  # On the NeXT, cc -E runs the code through the compiler's parser,
4159  # not just through cpp. "Syntax error" is here to catch this case.
4160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161/* end confdefs.h.  */
4162#ifdef __STDC__
4163# include <limits.h>
4164#else
4165# include <assert.h>
4166#endif
4167		     Syntax error
4168_ACEOF
4169if ac_fn_c_try_cpp "$LINENO"; then :
4170
4171else
4172  # Broken: fails on valid input.
4173continue
4174fi
4175rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177  # OK, works on sane cases.  Now check whether nonexistent headers
4178  # can be detected and how.
4179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181#include <ac_nonexistent.h>
4182_ACEOF
4183if ac_fn_c_try_cpp "$LINENO"; then :
4184  # Broken: success on invalid input.
4185continue
4186else
4187  # Passes both tests.
4188ac_preproc_ok=:
4189break
4190fi
4191rm -f conftest.err conftest.i conftest.$ac_ext
4192
4193done
4194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195rm -f conftest.i conftest.err conftest.$ac_ext
4196if $ac_preproc_ok; then :
4197
4198else
4199  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4202See \`config.log' for more details" "$LINENO" 5; }
4203fi
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4213$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214if ${ac_cv_path_GREP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -z "$GREP"; then
4218  ac_path_GREP_found=false
4219  # Loop through the user's path and test for each of PROGNAME-LIST
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_prog in grep ggrep; do
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228      as_fn_executable_p "$ac_path_GREP" || continue
4229# Check for GNU ac_path_GREP and select it if it is found.
4230  # Check for GNU $ac_path_GREP
4231case `"$ac_path_GREP" --version 2>&1` in
4232*GNU*)
4233  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234*)
4235  ac_count=0
4236  $as_echo_n 0123456789 >"conftest.in"
4237  while :
4238  do
4239    cat "conftest.in" "conftest.in" >"conftest.tmp"
4240    mv "conftest.tmp" "conftest.in"
4241    cp "conftest.in" "conftest.nl"
4242    $as_echo 'GREP' >> "conftest.nl"
4243    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245    as_fn_arith $ac_count + 1 && ac_count=$as_val
4246    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247      # Best one so far, save it but keep looking for a better one
4248      ac_cv_path_GREP="$ac_path_GREP"
4249      ac_path_GREP_max=$ac_count
4250    fi
4251    # 10*(2^10) chars as input seems more than enough
4252    test $ac_count -gt 10 && break
4253  done
4254  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255esac
4256
4257      $ac_path_GREP_found && break 3
4258    done
4259  done
4260  done
4261IFS=$as_save_IFS
4262  if test -z "$ac_cv_path_GREP"; then
4263    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264  fi
4265else
4266  ac_cv_path_GREP=$GREP
4267fi
4268
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4271$as_echo "$ac_cv_path_GREP" >&6; }
4272 GREP="$ac_cv_path_GREP"
4273
4274
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4276$as_echo_n "checking for egrep... " >&6; }
4277if ${ac_cv_path_EGREP+:} false; then :
4278  $as_echo_n "(cached) " >&6
4279else
4280  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4281   then ac_cv_path_EGREP="$GREP -E"
4282   else
4283     if test -z "$EGREP"; then
4284  ac_path_EGREP_found=false
4285  # Loop through the user's path and test for each of PROGNAME-LIST
4286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291    for ac_prog in egrep; do
4292    for ac_exec_ext in '' $ac_executable_extensions; do
4293      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294      as_fn_executable_p "$ac_path_EGREP" || continue
4295# Check for GNU ac_path_EGREP and select it if it is found.
4296  # Check for GNU $ac_path_EGREP
4297case `"$ac_path_EGREP" --version 2>&1` in
4298*GNU*)
4299  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300*)
4301  ac_count=0
4302  $as_echo_n 0123456789 >"conftest.in"
4303  while :
4304  do
4305    cat "conftest.in" "conftest.in" >"conftest.tmp"
4306    mv "conftest.tmp" "conftest.in"
4307    cp "conftest.in" "conftest.nl"
4308    $as_echo 'EGREP' >> "conftest.nl"
4309    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311    as_fn_arith $ac_count + 1 && ac_count=$as_val
4312    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313      # Best one so far, save it but keep looking for a better one
4314      ac_cv_path_EGREP="$ac_path_EGREP"
4315      ac_path_EGREP_max=$ac_count
4316    fi
4317    # 10*(2^10) chars as input seems more than enough
4318    test $ac_count -gt 10 && break
4319  done
4320  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323      $ac_path_EGREP_found && break 3
4324    done
4325  done
4326  done
4327IFS=$as_save_IFS
4328  if test -z "$ac_cv_path_EGREP"; then
4329    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330  fi
4331else
4332  ac_cv_path_EGREP=$EGREP
4333fi
4334
4335   fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4338$as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4340
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4343$as_echo_n "checking for ANSI C header files... " >&6; }
4344if ${ac_cv_header_stdc+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <stdlib.h>
4350#include <stdarg.h>
4351#include <string.h>
4352#include <float.h>
4353
4354int
4355main ()
4356{
4357
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_compile "$LINENO"; then :
4363  ac_cv_header_stdc=yes
4364else
4365  ac_cv_header_stdc=no
4366fi
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368
4369if test $ac_cv_header_stdc = yes; then
4370  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h.  */
4373#include <string.h>
4374
4375_ACEOF
4376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377  $EGREP "memchr" >/dev/null 2>&1; then :
4378
4379else
4380  ac_cv_header_stdc=no
4381fi
4382rm -f conftest*
4383
4384fi
4385
4386if test $ac_cv_header_stdc = yes; then
4387  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390#include <stdlib.h>
4391
4392_ACEOF
4393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394  $EGREP "free" >/dev/null 2>&1; then :
4395
4396else
4397  ac_cv_header_stdc=no
4398fi
4399rm -f conftest*
4400
4401fi
4402
4403if test $ac_cv_header_stdc = yes; then
4404  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4405  if test "$cross_compiling" = yes; then :
4406  :
4407else
4408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h.  */
4410#include <ctype.h>
4411#include <stdlib.h>
4412#if ((' ' & 0x0FF) == 0x020)
4413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415#else
4416# define ISLOWER(c) \
4417		   (('a' <= (c) && (c) <= 'i') \
4418		     || ('j' <= (c) && (c) <= 'r') \
4419		     || ('s' <= (c) && (c) <= 'z'))
4420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4421#endif
4422
4423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4424int
4425main ()
4426{
4427  int i;
4428  for (i = 0; i < 256; i++)
4429    if (XOR (islower (i), ISLOWER (i))
4430	|| toupper (i) != TOUPPER (i))
4431      return 2;
4432  return 0;
4433}
4434_ACEOF
4435if ac_fn_c_try_run "$LINENO"; then :
4436
4437else
4438  ac_cv_header_stdc=no
4439fi
4440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4441  conftest.$ac_objext conftest.beam conftest.$ac_ext
4442fi
4443
4444fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4447$as_echo "$ac_cv_header_stdc" >&6; }
4448if test $ac_cv_header_stdc = yes; then
4449
4450$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4451
4452fi
4453
4454# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4455for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4456		  inttypes.h stdint.h unistd.h
4457do :
4458  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4460"
4461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4462  cat >>confdefs.h <<_ACEOF
4463#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464_ACEOF
4465
4466fi
4467
4468done
4469
4470
4471
4472
4473
4474
4475ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4476if test "x$ac_cv_have_decl___clang__" = xyes; then :
4477  CLANGCC="yes"
4478else
4479  CLANGCC="no"
4480fi
4481
4482ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4483if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4484  INTELCC="yes"
4485else
4486  INTELCC="no"
4487fi
4488
4489ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4490if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4491  SUNCC="yes"
4492else
4493  SUNCC="no"
4494fi
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4505	if test -n "$ac_tool_prefix"; then
4506  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if ${ac_cv_path_PKG_CONFIG+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  case $PKG_CONFIG in
4514  [\\/]* | ?:[\\/]*)
4515  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4516  ;;
4517  *)
4518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530  done
4531IFS=$as_save_IFS
4532
4533  ;;
4534esac
4535fi
4536PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4537if test -n "$PKG_CONFIG"; then
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4539$as_echo "$PKG_CONFIG" >&6; }
4540else
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545
4546fi
4547if test -z "$ac_cv_path_PKG_CONFIG"; then
4548  ac_pt_PKG_CONFIG=$PKG_CONFIG
4549  # Extract the first word of "pkg-config", so it can be a program name with args.
4550set dummy pkg-config; ac_word=$2
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
4553if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  case $ac_pt_PKG_CONFIG in
4557  [\\/]* | ?:[\\/]*)
4558  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4559  ;;
4560  *)
4561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564  IFS=$as_save_IFS
4565  test -z "$as_dir" && as_dir=.
4566    for ac_exec_ext in '' $ac_executable_extensions; do
4567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570    break 2
4571  fi
4572done
4573  done
4574IFS=$as_save_IFS
4575
4576  ;;
4577esac
4578fi
4579ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4580if test -n "$ac_pt_PKG_CONFIG"; then
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4582$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4583else
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
4586fi
4587
4588  if test "x$ac_pt_PKG_CONFIG" = x; then
4589    PKG_CONFIG=""
4590  else
4591    case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595ac_tool_warned=yes ;;
4596esac
4597    PKG_CONFIG=$ac_pt_PKG_CONFIG
4598  fi
4599else
4600  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4601fi
4602
4603fi
4604if test -n "$PKG_CONFIG"; then
4605	_pkg_min_version=0.9.0
4606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4607$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4608	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610$as_echo "yes" >&6; }
4611	else
4612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614		PKG_CONFIG=""
4615	fi
4616fi
4617# Make sure we can run config.sub.
4618$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4619  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4622$as_echo_n "checking build system type... " >&6; }
4623if ${ac_cv_build+:} false; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  ac_build_alias=$build_alias
4627test "x$ac_build_alias" = x &&
4628  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4629test "x$ac_build_alias" = x &&
4630  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4631ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4632  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4633
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4636$as_echo "$ac_cv_build" >&6; }
4637case $ac_cv_build in
4638*-*-*) ;;
4639*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4640esac
4641build=$ac_cv_build
4642ac_save_IFS=$IFS; IFS='-'
4643set x $ac_cv_build
4644shift
4645build_cpu=$1
4646build_vendor=$2
4647shift; shift
4648# Remember, the first character of IFS is used to create $*,
4649# except with old shells:
4650build_os=$*
4651IFS=$ac_save_IFS
4652case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4653
4654
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4656$as_echo_n "checking host system type... " >&6; }
4657if ${ac_cv_host+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  if test "x$host_alias" = x; then
4661  ac_cv_host=$ac_cv_build
4662else
4663  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4664    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4665fi
4666
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4669$as_echo "$ac_cv_host" >&6; }
4670case $ac_cv_host in
4671*-*-*) ;;
4672*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4673esac
4674host=$ac_cv_host
4675ac_save_IFS=$IFS; IFS='-'
4676set x $ac_cv_host
4677shift
4678host_cpu=$1
4679host_vendor=$2
4680shift; shift
4681# Remember, the first character of IFS is used to create $*,
4682# except with old shells:
4683host_os=$*
4684IFS=$ac_save_IFS
4685case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4689$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4690if ${ac_cv_path_SED+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4694     for ac_i in 1 2 3 4 5 6 7; do
4695       ac_script="$ac_script$as_nl$ac_script"
4696     done
4697     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4698     { ac_script=; unset ac_script;}
4699     if test -z "$SED"; then
4700  ac_path_SED_found=false
4701  # Loop through the user's path and test for each of PROGNAME-LIST
4702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705  IFS=$as_save_IFS
4706  test -z "$as_dir" && as_dir=.
4707    for ac_prog in sed gsed; do
4708    for ac_exec_ext in '' $ac_executable_extensions; do
4709      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4710      as_fn_executable_p "$ac_path_SED" || continue
4711# Check for GNU ac_path_SED and select it if it is found.
4712  # Check for GNU $ac_path_SED
4713case `"$ac_path_SED" --version 2>&1` in
4714*GNU*)
4715  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4716*)
4717  ac_count=0
4718  $as_echo_n 0123456789 >"conftest.in"
4719  while :
4720  do
4721    cat "conftest.in" "conftest.in" >"conftest.tmp"
4722    mv "conftest.tmp" "conftest.in"
4723    cp "conftest.in" "conftest.nl"
4724    $as_echo '' >> "conftest.nl"
4725    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727    as_fn_arith $ac_count + 1 && ac_count=$as_val
4728    if test $ac_count -gt ${ac_path_SED_max-0}; then
4729      # Best one so far, save it but keep looking for a better one
4730      ac_cv_path_SED="$ac_path_SED"
4731      ac_path_SED_max=$ac_count
4732    fi
4733    # 10*(2^10) chars as input seems more than enough
4734    test $ac_count -gt 10 && break
4735  done
4736  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737esac
4738
4739      $ac_path_SED_found && break 3
4740    done
4741  done
4742  done
4743IFS=$as_save_IFS
4744  if test -z "$ac_cv_path_SED"; then
4745    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4746  fi
4747else
4748  ac_cv_path_SED=$SED
4749fi
4750
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4753$as_echo "$ac_cv_path_SED" >&6; }
4754 SED="$ac_cv_path_SED"
4755  rm -f conftest.sed
4756
4757
4758
4759
4760
4761
4762# Check whether --enable-selective-werror was given.
4763if test "${enable_selective_werror+set}" = set; then :
4764  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4765else
4766  SELECTIVE_WERROR=yes
4767fi
4768
4769
4770
4771
4772
4773# -v is too short to test reliably with XORG_TESTSET_CFLAG
4774if test "x$SUNCC" = "xyes"; then
4775    BASE_CFLAGS="-v"
4776else
4777    BASE_CFLAGS=""
4778fi
4779
4780# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794xorg_testset_save_CFLAGS="$CFLAGS"
4795
4796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804/* end confdefs.h.  */
4805int i;
4806_ACEOF
4807if ac_fn_c_try_compile "$LINENO"; then :
4808  xorg_cv_cc_flag_unknown_warning_option=yes
4809else
4810  xorg_cv_cc_flag_unknown_warning_option=no
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4817	CFLAGS="$xorg_testset_save_CFLAGS"
4818fi
4819
4820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823	fi
4824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832int i;
4833_ACEOF
4834if ac_fn_c_try_compile "$LINENO"; then :
4835  xorg_cv_cc_flag_unused_command_line_argument=yes
4836else
4837  xorg_cv_cc_flag_unused_command_line_argument=no
4838fi
4839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4844	CFLAGS="$xorg_testset_save_CFLAGS"
4845fi
4846
4847found="no"
4848
4849	if test $found = "no" ; then
4850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852		fi
4853
4854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856		fi
4857
4858		CFLAGS="$CFLAGS -Wall"
4859
4860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4861$as_echo_n "checking if $CC supports -Wall... " >&6; }
4862		cacheid=xorg_cv_cc_flag__Wall
4863		if eval \${$cacheid+:} false; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867/* end confdefs.h.  */
4868int i;
4869int
4870main ()
4871{
4872
4873  ;
4874  return 0;
4875}
4876_ACEOF
4877if ac_fn_c_try_link "$LINENO"; then :
4878  eval $cacheid=yes
4879else
4880  eval $cacheid=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext \
4883    conftest$ac_exeext conftest.$ac_ext
4884fi
4885
4886
4887		CFLAGS="$xorg_testset_save_CFLAGS"
4888
4889		eval supported=\$$cacheid
4890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4891$as_echo "$supported" >&6; }
4892		if test "$supported" = "yes" ; then
4893			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4894			found="yes"
4895		fi
4896	fi
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912xorg_testset_save_CFLAGS="$CFLAGS"
4913
4914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h.  */
4923int i;
4924_ACEOF
4925if ac_fn_c_try_compile "$LINENO"; then :
4926  xorg_cv_cc_flag_unknown_warning_option=yes
4927else
4928  xorg_cv_cc_flag_unknown_warning_option=no
4929fi
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4935	CFLAGS="$xorg_testset_save_CFLAGS"
4936fi
4937
4938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941	fi
4942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h.  */
4950int i;
4951_ACEOF
4952if ac_fn_c_try_compile "$LINENO"; then :
4953  xorg_cv_cc_flag_unused_command_line_argument=yes
4954else
4955  xorg_cv_cc_flag_unused_command_line_argument=no
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962	CFLAGS="$xorg_testset_save_CFLAGS"
4963fi
4964
4965found="no"
4966
4967	if test $found = "no" ; then
4968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970		fi
4971
4972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974		fi
4975
4976		CFLAGS="$CFLAGS -Wpointer-arith"
4977
4978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4979$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4980		cacheid=xorg_cv_cc_flag__Wpointer_arith
4981		if eval \${$cacheid+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986int i;
4987int
4988main ()
4989{
4990
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995if ac_fn_c_try_link "$LINENO"; then :
4996  eval $cacheid=yes
4997else
4998  eval $cacheid=no
4999fi
5000rm -f core conftest.err conftest.$ac_objext \
5001    conftest$ac_exeext conftest.$ac_ext
5002fi
5003
5004
5005		CFLAGS="$xorg_testset_save_CFLAGS"
5006
5007		eval supported=\$$cacheid
5008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5009$as_echo "$supported" >&6; }
5010		if test "$supported" = "yes" ; then
5011			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5012			found="yes"
5013		fi
5014	fi
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030xorg_testset_save_CFLAGS="$CFLAGS"
5031
5032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041int i;
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"; then :
5044  xorg_cv_cc_flag_unknown_warning_option=yes
5045else
5046  xorg_cv_cc_flag_unknown_warning_option=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5053	CFLAGS="$xorg_testset_save_CFLAGS"
5054fi
5055
5056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059	fi
5060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h.  */
5068int i;
5069_ACEOF
5070if ac_fn_c_try_compile "$LINENO"; then :
5071  xorg_cv_cc_flag_unused_command_line_argument=yes
5072else
5073  xorg_cv_cc_flag_unused_command_line_argument=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076fi
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5080	CFLAGS="$xorg_testset_save_CFLAGS"
5081fi
5082
5083found="no"
5084
5085	if test $found = "no" ; then
5086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088		fi
5089
5090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092		fi
5093
5094		CFLAGS="$CFLAGS -Wmissing-declarations"
5095
5096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5097$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5098		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5099		if eval \${$cacheid+:} false; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h.  */
5104int i;
5105int
5106main ()
5107{
5108
5109  ;
5110  return 0;
5111}
5112_ACEOF
5113if ac_fn_c_try_link "$LINENO"; then :
5114  eval $cacheid=yes
5115else
5116  eval $cacheid=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext \
5119    conftest$ac_exeext conftest.$ac_ext
5120fi
5121
5122
5123		CFLAGS="$xorg_testset_save_CFLAGS"
5124
5125		eval supported=\$$cacheid
5126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5127$as_echo "$supported" >&6; }
5128		if test "$supported" = "yes" ; then
5129			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5130			found="yes"
5131		fi
5132	fi
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148xorg_testset_save_CFLAGS="$CFLAGS"
5149
5150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"; then :
5162  xorg_cv_cc_flag_unknown_warning_option=yes
5163else
5164  xorg_cv_cc_flag_unknown_warning_option=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5171	CFLAGS="$xorg_testset_save_CFLAGS"
5172fi
5173
5174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177	fi
5178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5182  $as_echo_n "(cached) " >&6
5183else
5184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186int i;
5187_ACEOF
5188if ac_fn_c_try_compile "$LINENO"; then :
5189  xorg_cv_cc_flag_unused_command_line_argument=yes
5190else
5191  xorg_cv_cc_flag_unused_command_line_argument=no
5192fi
5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194fi
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5198	CFLAGS="$xorg_testset_save_CFLAGS"
5199fi
5200
5201found="no"
5202
5203	if test $found = "no" ; then
5204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206		fi
5207
5208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5210		fi
5211
5212		CFLAGS="$CFLAGS -Wformat=2"
5213
5214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5215$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5216		cacheid=xorg_cv_cc_flag__Wformat_2
5217		if eval \${$cacheid+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h.  */
5222int i;
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231if ac_fn_c_try_link "$LINENO"; then :
5232  eval $cacheid=yes
5233else
5234  eval $cacheid=no
5235fi
5236rm -f core conftest.err conftest.$ac_objext \
5237    conftest$ac_exeext conftest.$ac_ext
5238fi
5239
5240
5241		CFLAGS="$xorg_testset_save_CFLAGS"
5242
5243		eval supported=\$$cacheid
5244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5245$as_echo "$supported" >&6; }
5246		if test "$supported" = "yes" ; then
5247			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5248			found="yes"
5249		fi
5250	fi
5251
5252	if test $found = "no" ; then
5253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5255		fi
5256
5257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259		fi
5260
5261		CFLAGS="$CFLAGS -Wformat"
5262
5263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5264$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5265		cacheid=xorg_cv_cc_flag__Wformat
5266		if eval \${$cacheid+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272int
5273main ()
5274{
5275
5276  ;
5277  return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_link "$LINENO"; then :
5281  eval $cacheid=yes
5282else
5283  eval $cacheid=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext \
5286    conftest$ac_exeext conftest.$ac_ext
5287fi
5288
5289
5290		CFLAGS="$xorg_testset_save_CFLAGS"
5291
5292		eval supported=\$$cacheid
5293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5294$as_echo "$supported" >&6; }
5295		if test "$supported" = "yes" ; then
5296			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5297			found="yes"
5298		fi
5299	fi
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317xorg_testset_save_CFLAGS="$CFLAGS"
5318
5319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h.  */
5328int i;
5329_ACEOF
5330if ac_fn_c_try_compile "$LINENO"; then :
5331  xorg_cv_cc_flag_unknown_warning_option=yes
5332else
5333  xorg_cv_cc_flag_unknown_warning_option=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5340	CFLAGS="$xorg_testset_save_CFLAGS"
5341fi
5342
5343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346	fi
5347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354/* end confdefs.h.  */
5355int i;
5356_ACEOF
5357if ac_fn_c_try_compile "$LINENO"; then :
5358  xorg_cv_cc_flag_unused_command_line_argument=yes
5359else
5360  xorg_cv_cc_flag_unused_command_line_argument=no
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5367	CFLAGS="$xorg_testset_save_CFLAGS"
5368fi
5369
5370found="no"
5371
5372	if test $found = "no" ; then
5373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375		fi
5376
5377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5379		fi
5380
5381		CFLAGS="$CFLAGS -Wstrict-prototypes"
5382
5383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5384$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5385		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5386		if eval \${$cacheid+:} false; then :
5387  $as_echo_n "(cached) " >&6
5388else
5389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391int i;
5392int
5393main ()
5394{
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_c_try_link "$LINENO"; then :
5401  eval $cacheid=yes
5402else
5403  eval $cacheid=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext \
5406    conftest$ac_exeext conftest.$ac_ext
5407fi
5408
5409
5410		CFLAGS="$xorg_testset_save_CFLAGS"
5411
5412		eval supported=\$$cacheid
5413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5414$as_echo "$supported" >&6; }
5415		if test "$supported" = "yes" ; then
5416			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5417			found="yes"
5418		fi
5419	fi
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435xorg_testset_save_CFLAGS="$CFLAGS"
5436
5437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446int i;
5447_ACEOF
5448if ac_fn_c_try_compile "$LINENO"; then :
5449  xorg_cv_cc_flag_unknown_warning_option=yes
5450else
5451  xorg_cv_cc_flag_unknown_warning_option=no
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5458	CFLAGS="$xorg_testset_save_CFLAGS"
5459fi
5460
5461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464	fi
5465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5469  $as_echo_n "(cached) " >&6
5470else
5471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h.  */
5473int i;
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"; then :
5476  xorg_cv_cc_flag_unused_command_line_argument=yes
5477else
5478  xorg_cv_cc_flag_unused_command_line_argument=no
5479fi
5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5485	CFLAGS="$xorg_testset_save_CFLAGS"
5486fi
5487
5488found="no"
5489
5490	if test $found = "no" ; then
5491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493		fi
5494
5495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497		fi
5498
5499		CFLAGS="$CFLAGS -Wmissing-prototypes"
5500
5501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5502$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5503		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5504		if eval \${$cacheid+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h.  */
5509int i;
5510int
5511main ()
5512{
5513
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518if ac_fn_c_try_link "$LINENO"; then :
5519  eval $cacheid=yes
5520else
5521  eval $cacheid=no
5522fi
5523rm -f core conftest.err conftest.$ac_objext \
5524    conftest$ac_exeext conftest.$ac_ext
5525fi
5526
5527
5528		CFLAGS="$xorg_testset_save_CFLAGS"
5529
5530		eval supported=\$$cacheid
5531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5532$as_echo "$supported" >&6; }
5533		if test "$supported" = "yes" ; then
5534			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5535			found="yes"
5536		fi
5537	fi
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553xorg_testset_save_CFLAGS="$CFLAGS"
5554
5555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564int i;
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567  xorg_cv_cc_flag_unknown_warning_option=yes
5568else
5569  xorg_cv_cc_flag_unknown_warning_option=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5576	CFLAGS="$xorg_testset_save_CFLAGS"
5577fi
5578
5579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582	fi
5583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5587  $as_echo_n "(cached) " >&6
5588else
5589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h.  */
5591int i;
5592_ACEOF
5593if ac_fn_c_try_compile "$LINENO"; then :
5594  xorg_cv_cc_flag_unused_command_line_argument=yes
5595else
5596  xorg_cv_cc_flag_unused_command_line_argument=no
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5603	CFLAGS="$xorg_testset_save_CFLAGS"
5604fi
5605
5606found="no"
5607
5608	if test $found = "no" ; then
5609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611		fi
5612
5613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5615		fi
5616
5617		CFLAGS="$CFLAGS -Wnested-externs"
5618
5619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5620$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5621		cacheid=xorg_cv_cc_flag__Wnested_externs
5622		if eval \${$cacheid+:} false; then :
5623  $as_echo_n "(cached) " >&6
5624else
5625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627int i;
5628int
5629main ()
5630{
5631
5632  ;
5633  return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_link "$LINENO"; then :
5637  eval $cacheid=yes
5638else
5639  eval $cacheid=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext \
5642    conftest$ac_exeext conftest.$ac_ext
5643fi
5644
5645
5646		CFLAGS="$xorg_testset_save_CFLAGS"
5647
5648		eval supported=\$$cacheid
5649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5650$as_echo "$supported" >&6; }
5651		if test "$supported" = "yes" ; then
5652			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5653			found="yes"
5654		fi
5655	fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671xorg_testset_save_CFLAGS="$CFLAGS"
5672
5673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h.  */
5682int i;
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"; then :
5685  xorg_cv_cc_flag_unknown_warning_option=yes
5686else
5687  xorg_cv_cc_flag_unknown_warning_option=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5694	CFLAGS="$xorg_testset_save_CFLAGS"
5695fi
5696
5697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700	fi
5701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709int i;
5710_ACEOF
5711if ac_fn_c_try_compile "$LINENO"; then :
5712  xorg_cv_cc_flag_unused_command_line_argument=yes
5713else
5714  xorg_cv_cc_flag_unused_command_line_argument=no
5715fi
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724found="no"
5725
5726	if test $found = "no" ; then
5727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729		fi
5730
5731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733		fi
5734
5735		CFLAGS="$CFLAGS -Wbad-function-cast"
5736
5737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5738$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5739		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5740		if eval \${$cacheid+:} false; then :
5741  $as_echo_n "(cached) " >&6
5742else
5743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h.  */
5745int i;
5746int
5747main ()
5748{
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"; then :
5755  eval $cacheid=yes
5756else
5757  eval $cacheid=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext \
5760    conftest$ac_exeext conftest.$ac_ext
5761fi
5762
5763
5764		CFLAGS="$xorg_testset_save_CFLAGS"
5765
5766		eval supported=\$$cacheid
5767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5768$as_echo "$supported" >&6; }
5769		if test "$supported" = "yes" ; then
5770			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5771			found="yes"
5772		fi
5773	fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789xorg_testset_save_CFLAGS="$CFLAGS"
5790
5791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800int i;
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then :
5803  xorg_cv_cc_flag_unknown_warning_option=yes
5804else
5805  xorg_cv_cc_flag_unknown_warning_option=no
5806fi
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5812	CFLAGS="$xorg_testset_save_CFLAGS"
5813fi
5814
5815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818	fi
5819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827int i;
5828_ACEOF
5829if ac_fn_c_try_compile "$LINENO"; then :
5830  xorg_cv_cc_flag_unused_command_line_argument=yes
5831else
5832  xorg_cv_cc_flag_unused_command_line_argument=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5839	CFLAGS="$xorg_testset_save_CFLAGS"
5840fi
5841
5842found="no"
5843
5844	if test $found = "no" ; then
5845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847		fi
5848
5849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5851		fi
5852
5853		CFLAGS="$CFLAGS -Wold-style-definition"
5854
5855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5856$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5857		cacheid=xorg_cv_cc_flag__Wold_style_definition
5858		if eval \${$cacheid+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863int i;
5864int
5865main ()
5866{
5867
5868  ;
5869  return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_link "$LINENO"; then :
5873  eval $cacheid=yes
5874else
5875  eval $cacheid=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext \
5878    conftest$ac_exeext conftest.$ac_ext
5879fi
5880
5881
5882		CFLAGS="$xorg_testset_save_CFLAGS"
5883
5884		eval supported=\$$cacheid
5885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5886$as_echo "$supported" >&6; }
5887		if test "$supported" = "yes" ; then
5888			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5889			found="yes"
5890		fi
5891	fi
5892
5893	if test $found = "no" ; then
5894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896		fi
5897
5898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900		fi
5901
5902		CFLAGS="$CFLAGS -fd"
5903
5904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5905$as_echo_n "checking if $CC supports -fd... " >&6; }
5906		cacheid=xorg_cv_cc_flag__fd
5907		if eval \${$cacheid+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912int i;
5913int
5914main ()
5915{
5916
5917  ;
5918  return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_link "$LINENO"; then :
5922  eval $cacheid=yes
5923else
5924  eval $cacheid=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext \
5927    conftest$ac_exeext conftest.$ac_ext
5928fi
5929
5930
5931		CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933		eval supported=\$$cacheid
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935$as_echo "$supported" >&6; }
5936		if test "$supported" = "yes" ; then
5937			BASE_CFLAGS="$BASE_CFLAGS -fd"
5938			found="yes"
5939		fi
5940	fi
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956xorg_testset_save_CFLAGS="$CFLAGS"
5957
5958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967int i;
5968_ACEOF
5969if ac_fn_c_try_compile "$LINENO"; then :
5970  xorg_cv_cc_flag_unknown_warning_option=yes
5971else
5972  xorg_cv_cc_flag_unknown_warning_option=no
5973fi
5974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975fi
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5979	CFLAGS="$xorg_testset_save_CFLAGS"
5980fi
5981
5982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985	fi
5986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997  xorg_cv_cc_flag_unused_command_line_argument=yes
5998else
5999  xorg_cv_cc_flag_unused_command_line_argument=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6006	CFLAGS="$xorg_testset_save_CFLAGS"
6007fi
6008
6009found="no"
6010
6011	if test $found = "no" ; then
6012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014		fi
6015
6016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6018		fi
6019
6020		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6021
6022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6023$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6024		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6025		if eval \${$cacheid+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030int i;
6031int
6032main ()
6033{
6034
6035  ;
6036  return 0;
6037}
6038_ACEOF
6039if ac_fn_c_try_link "$LINENO"; then :
6040  eval $cacheid=yes
6041else
6042  eval $cacheid=no
6043fi
6044rm -f core conftest.err conftest.$ac_objext \
6045    conftest$ac_exeext conftest.$ac_ext
6046fi
6047
6048
6049		CFLAGS="$xorg_testset_save_CFLAGS"
6050
6051		eval supported=\$$cacheid
6052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6053$as_echo "$supported" >&6; }
6054		if test "$supported" = "yes" ; then
6055			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6056			found="yes"
6057		fi
6058	fi
6059
6060
6061
6062
6063
6064# This chunk adds additional warnings that could catch undesired effects.
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078xorg_testset_save_CFLAGS="$CFLAGS"
6079
6080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088/* end confdefs.h.  */
6089int i;
6090_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then :
6092  xorg_cv_cc_flag_unknown_warning_option=yes
6093else
6094  xorg_cv_cc_flag_unknown_warning_option=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101	CFLAGS="$xorg_testset_save_CFLAGS"
6102fi
6103
6104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6107	fi
6108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115/* end confdefs.h.  */
6116int i;
6117_ACEOF
6118if ac_fn_c_try_compile "$LINENO"; then :
6119  xorg_cv_cc_flag_unused_command_line_argument=yes
6120else
6121  xorg_cv_cc_flag_unused_command_line_argument=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128	CFLAGS="$xorg_testset_save_CFLAGS"
6129fi
6130
6131found="no"
6132
6133	if test $found = "no" ; then
6134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136		fi
6137
6138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140		fi
6141
6142		CFLAGS="$CFLAGS -Wunused"
6143
6144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6145$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6146		cacheid=xorg_cv_cc_flag__Wunused
6147		if eval \${$cacheid+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h.  */
6152int i;
6153int
6154main ()
6155{
6156
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161if ac_fn_c_try_link "$LINENO"; then :
6162  eval $cacheid=yes
6163else
6164  eval $cacheid=no
6165fi
6166rm -f core conftest.err conftest.$ac_objext \
6167    conftest$ac_exeext conftest.$ac_ext
6168fi
6169
6170
6171		CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173		eval supported=\$$cacheid
6174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175$as_echo "$supported" >&6; }
6176		if test "$supported" = "yes" ; then
6177			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6178			found="yes"
6179		fi
6180	fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h.  */
6207int i;
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210  xorg_cv_cc_flag_unknown_warning_option=yes
6211else
6212  xorg_cv_cc_flag_unknown_warning_option=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219	CFLAGS="$xorg_testset_save_CFLAGS"
6220fi
6221
6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	fi
6226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234int i;
6235_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then :
6237  xorg_cv_cc_flag_unused_command_line_argument=yes
6238else
6239  xorg_cv_cc_flag_unused_command_line_argument=no
6240fi
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246	CFLAGS="$xorg_testset_save_CFLAGS"
6247fi
6248
6249found="no"
6250
6251	if test $found = "no" ; then
6252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254		fi
6255
6256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258		fi
6259
6260		CFLAGS="$CFLAGS -Wuninitialized"
6261
6262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6263$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6264		cacheid=xorg_cv_cc_flag__Wuninitialized
6265		if eval \${$cacheid+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h.  */
6270int i;
6271int
6272main ()
6273{
6274
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279if ac_fn_c_try_link "$LINENO"; then :
6280  eval $cacheid=yes
6281else
6282  eval $cacheid=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext \
6285    conftest$ac_exeext conftest.$ac_ext
6286fi
6287
6288
6289		CFLAGS="$xorg_testset_save_CFLAGS"
6290
6291		eval supported=\$$cacheid
6292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293$as_echo "$supported" >&6; }
6294		if test "$supported" = "yes" ; then
6295			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6296			found="yes"
6297		fi
6298	fi
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321  $as_echo_n "(cached) " >&6
6322else
6323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325int i;
6326_ACEOF
6327if ac_fn_c_try_compile "$LINENO"; then :
6328  xorg_cv_cc_flag_unknown_warning_option=yes
6329else
6330  xorg_cv_cc_flag_unknown_warning_option=no
6331fi
6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337	CFLAGS="$xorg_testset_save_CFLAGS"
6338fi
6339
6340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343	fi
6344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352int i;
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"; then :
6355  xorg_cv_cc_flag_unused_command_line_argument=yes
6356else
6357  xorg_cv_cc_flag_unused_command_line_argument=no
6358fi
6359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360fi
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364	CFLAGS="$xorg_testset_save_CFLAGS"
6365fi
6366
6367found="no"
6368
6369	if test $found = "no" ; then
6370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372		fi
6373
6374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6376		fi
6377
6378		CFLAGS="$CFLAGS -Wshadow"
6379
6380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6381$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6382		cacheid=xorg_cv_cc_flag__Wshadow
6383		if eval \${$cacheid+:} false; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388int i;
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_link "$LINENO"; then :
6398  eval $cacheid=yes
6399else
6400  eval $cacheid=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext conftest.$ac_ext
6404fi
6405
6406
6407		CFLAGS="$xorg_testset_save_CFLAGS"
6408
6409		eval supported=\$$cacheid
6410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411$as_echo "$supported" >&6; }
6412		if test "$supported" = "yes" ; then
6413			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6414			found="yes"
6415		fi
6416	fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432xorg_testset_save_CFLAGS="$CFLAGS"
6433
6434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h.  */
6443int i;
6444_ACEOF
6445if ac_fn_c_try_compile "$LINENO"; then :
6446  xorg_cv_cc_flag_unknown_warning_option=yes
6447else
6448  xorg_cv_cc_flag_unknown_warning_option=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455	CFLAGS="$xorg_testset_save_CFLAGS"
6456fi
6457
6458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6461	fi
6462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470int i;
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"; then :
6473  xorg_cv_cc_flag_unused_command_line_argument=yes
6474else
6475  xorg_cv_cc_flag_unused_command_line_argument=no
6476fi
6477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482	CFLAGS="$xorg_testset_save_CFLAGS"
6483fi
6484
6485found="no"
6486
6487	if test $found = "no" ; then
6488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490		fi
6491
6492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6494		fi
6495
6496		CFLAGS="$CFLAGS -Wmissing-noreturn"
6497
6498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6499$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6500		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6501		if eval \${$cacheid+:} false; then :
6502  $as_echo_n "(cached) " >&6
6503else
6504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h.  */
6506int i;
6507int
6508main ()
6509{
6510
6511  ;
6512  return 0;
6513}
6514_ACEOF
6515if ac_fn_c_try_link "$LINENO"; then :
6516  eval $cacheid=yes
6517else
6518  eval $cacheid=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext \
6521    conftest$ac_exeext conftest.$ac_ext
6522fi
6523
6524
6525		CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527		eval supported=\$$cacheid
6528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529$as_echo "$supported" >&6; }
6530		if test "$supported" = "yes" ; then
6531			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6532			found="yes"
6533		fi
6534	fi
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550xorg_testset_save_CFLAGS="$CFLAGS"
6551
6552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h.  */
6561int i;
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"; then :
6564  xorg_cv_cc_flag_unknown_warning_option=yes
6565else
6566  xorg_cv_cc_flag_unknown_warning_option=no
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573	CFLAGS="$xorg_testset_save_CFLAGS"
6574fi
6575
6576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579	fi
6580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h.  */
6588int i;
6589_ACEOF
6590if ac_fn_c_try_compile "$LINENO"; then :
6591  xorg_cv_cc_flag_unused_command_line_argument=yes
6592else
6593  xorg_cv_cc_flag_unused_command_line_argument=no
6594fi
6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600	CFLAGS="$xorg_testset_save_CFLAGS"
6601fi
6602
6603found="no"
6604
6605	if test $found = "no" ; then
6606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608		fi
6609
6610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612		fi
6613
6614		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6615
6616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6617$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6618		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6619		if eval \${$cacheid+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h.  */
6624int i;
6625int
6626main ()
6627{
6628
6629  ;
6630  return 0;
6631}
6632_ACEOF
6633if ac_fn_c_try_link "$LINENO"; then :
6634  eval $cacheid=yes
6635else
6636  eval $cacheid=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext \
6639    conftest$ac_exeext conftest.$ac_ext
6640fi
6641
6642
6643		CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645		eval supported=\$$cacheid
6646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647$as_echo "$supported" >&6; }
6648		if test "$supported" = "yes" ; then
6649			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6650			found="yes"
6651		fi
6652	fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678/* end confdefs.h.  */
6679int i;
6680_ACEOF
6681if ac_fn_c_try_compile "$LINENO"; then :
6682  xorg_cv_cc_flag_unknown_warning_option=yes
6683else
6684  xorg_cv_cc_flag_unknown_warning_option=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691	CFLAGS="$xorg_testset_save_CFLAGS"
6692fi
6693
6694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697	fi
6698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702  $as_echo_n "(cached) " >&6
6703else
6704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706int i;
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709  xorg_cv_cc_flag_unused_command_line_argument=yes
6710else
6711  xorg_cv_cc_flag_unused_command_line_argument=no
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718	CFLAGS="$xorg_testset_save_CFLAGS"
6719fi
6720
6721found="no"
6722
6723	if test $found = "no" ; then
6724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726		fi
6727
6728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730		fi
6731
6732		CFLAGS="$CFLAGS -Wredundant-decls"
6733
6734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6735$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6736		cacheid=xorg_cv_cc_flag__Wredundant_decls
6737		if eval \${$cacheid+:} false; then :
6738  $as_echo_n "(cached) " >&6
6739else
6740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h.  */
6742int i;
6743int
6744main ()
6745{
6746
6747  ;
6748  return 0;
6749}
6750_ACEOF
6751if ac_fn_c_try_link "$LINENO"; then :
6752  eval $cacheid=yes
6753else
6754  eval $cacheid=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext \
6757    conftest$ac_exeext conftest.$ac_ext
6758fi
6759
6760
6761		CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763		eval supported=\$$cacheid
6764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765$as_echo "$supported" >&6; }
6766		if test "$supported" = "yes" ; then
6767			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6768			found="yes"
6769		fi
6770	fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786xorg_testset_save_CFLAGS="$CFLAGS"
6787
6788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797int i;
6798_ACEOF
6799if ac_fn_c_try_compile "$LINENO"; then :
6800  xorg_cv_cc_flag_unknown_warning_option=yes
6801else
6802  xorg_cv_cc_flag_unknown_warning_option=no
6803fi
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805fi
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6809	CFLAGS="$xorg_testset_save_CFLAGS"
6810fi
6811
6812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815	fi
6816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6820  $as_echo_n "(cached) " >&6
6821else
6822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824int i;
6825_ACEOF
6826if ac_fn_c_try_compile "$LINENO"; then :
6827  xorg_cv_cc_flag_unused_command_line_argument=yes
6828else
6829  xorg_cv_cc_flag_unused_command_line_argument=no
6830fi
6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832fi
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6836	CFLAGS="$xorg_testset_save_CFLAGS"
6837fi
6838
6839found="no"
6840
6841	if test $found = "no" ; then
6842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844		fi
6845
6846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6848		fi
6849
6850		CFLAGS="$CFLAGS -Wlogical-op"
6851
6852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6853$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6854		cacheid=xorg_cv_cc_flag__Wlogical_op
6855		if eval \${$cacheid+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860int i;
6861int
6862main ()
6863{
6864
6865  ;
6866  return 0;
6867}
6868_ACEOF
6869if ac_fn_c_try_link "$LINENO"; then :
6870  eval $cacheid=yes
6871else
6872  eval $cacheid=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext \
6875    conftest$ac_exeext conftest.$ac_ext
6876fi
6877
6878
6879		CFLAGS="$xorg_testset_save_CFLAGS"
6880
6881		eval supported=\$$cacheid
6882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6883$as_echo "$supported" >&6; }
6884		if test "$supported" = "yes" ; then
6885			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6886			found="yes"
6887		fi
6888	fi
6889
6890
6891
6892# These are currently disabled because they are noisy.  They will be enabled
6893# in the future once the codebase is sufficiently modernized to silence
6894# them.  For now, I don't want them to drown out the other warnings.
6895# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6896# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6897# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6898
6899# Turn some warnings into errors, so we don't accidently get successful builds
6900# when there are problems that should be fixed.
6901
6902if test "x$SELECTIVE_WERROR" = "xyes" ; then
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916xorg_testset_save_CFLAGS="$CFLAGS"
6917
6918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h.  */
6927int i;
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"; then :
6930  xorg_cv_cc_flag_unknown_warning_option=yes
6931else
6932  xorg_cv_cc_flag_unknown_warning_option=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939	CFLAGS="$xorg_testset_save_CFLAGS"
6940fi
6941
6942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945	fi
6946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954int i;
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"; then :
6957  xorg_cv_cc_flag_unused_command_line_argument=yes
6958else
6959  xorg_cv_cc_flag_unused_command_line_argument=no
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6966	CFLAGS="$xorg_testset_save_CFLAGS"
6967fi
6968
6969found="no"
6970
6971	if test $found = "no" ; then
6972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974		fi
6975
6976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978		fi
6979
6980		CFLAGS="$CFLAGS -Werror=implicit"
6981
6982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6983$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6984		cacheid=xorg_cv_cc_flag__Werror_implicit
6985		if eval \${$cacheid+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990int i;
6991int
6992main ()
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"; then :
7000  eval $cacheid=yes
7001else
7002  eval $cacheid=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext \
7005    conftest$ac_exeext conftest.$ac_ext
7006fi
7007
7008
7009		CFLAGS="$xorg_testset_save_CFLAGS"
7010
7011		eval supported=\$$cacheid
7012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7013$as_echo "$supported" >&6; }
7014		if test "$supported" = "yes" ; then
7015			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7016			found="yes"
7017		fi
7018	fi
7019
7020	if test $found = "no" ; then
7021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7023		fi
7024
7025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027		fi
7028
7029		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7030
7031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7032$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7033		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7034		if eval \${$cacheid+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* end confdefs.h.  */
7039int i;
7040int
7041main ()
7042{
7043
7044  ;
7045  return 0;
7046}
7047_ACEOF
7048if ac_fn_c_try_link "$LINENO"; then :
7049  eval $cacheid=yes
7050else
7051  eval $cacheid=no
7052fi
7053rm -f core conftest.err conftest.$ac_objext \
7054    conftest$ac_exeext conftest.$ac_ext
7055fi
7056
7057
7058		CFLAGS="$xorg_testset_save_CFLAGS"
7059
7060		eval supported=\$$cacheid
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062$as_echo "$supported" >&6; }
7063		if test "$supported" = "yes" ; then
7064			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7065			found="yes"
7066		fi
7067	fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083xorg_testset_save_CFLAGS="$CFLAGS"
7084
7085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"; then :
7097  xorg_cv_cc_flag_unknown_warning_option=yes
7098else
7099  xorg_cv_cc_flag_unknown_warning_option=no
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102fi
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106	CFLAGS="$xorg_testset_save_CFLAGS"
7107fi
7108
7109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112	fi
7113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121int i;
7122_ACEOF
7123if ac_fn_c_try_compile "$LINENO"; then :
7124  xorg_cv_cc_flag_unused_command_line_argument=yes
7125else
7126  xorg_cv_cc_flag_unused_command_line_argument=no
7127fi
7128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133	CFLAGS="$xorg_testset_save_CFLAGS"
7134fi
7135
7136found="no"
7137
7138	if test $found = "no" ; then
7139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141		fi
7142
7143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7145		fi
7146
7147		CFLAGS="$CFLAGS -Werror=nonnull"
7148
7149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7150$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7151		cacheid=xorg_cv_cc_flag__Werror_nonnull
7152		if eval \${$cacheid+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157int i;
7158int
7159main ()
7160{
7161
7162  ;
7163  return 0;
7164}
7165_ACEOF
7166if ac_fn_c_try_link "$LINENO"; then :
7167  eval $cacheid=yes
7168else
7169  eval $cacheid=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext \
7172    conftest$ac_exeext conftest.$ac_ext
7173fi
7174
7175
7176		CFLAGS="$xorg_testset_save_CFLAGS"
7177
7178		eval supported=\$$cacheid
7179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180$as_echo "$supported" >&6; }
7181		if test "$supported" = "yes" ; then
7182			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7183			found="yes"
7184		fi
7185	fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201xorg_testset_save_CFLAGS="$CFLAGS"
7202
7203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212int i;
7213_ACEOF
7214if ac_fn_c_try_compile "$LINENO"; then :
7215  xorg_cv_cc_flag_unknown_warning_option=yes
7216else
7217  xorg_cv_cc_flag_unknown_warning_option=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224	CFLAGS="$xorg_testset_save_CFLAGS"
7225fi
7226
7227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230	fi
7231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239int i;
7240_ACEOF
7241if ac_fn_c_try_compile "$LINENO"; then :
7242  xorg_cv_cc_flag_unused_command_line_argument=yes
7243else
7244  xorg_cv_cc_flag_unused_command_line_argument=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251	CFLAGS="$xorg_testset_save_CFLAGS"
7252fi
7253
7254found="no"
7255
7256	if test $found = "no" ; then
7257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259		fi
7260
7261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263		fi
7264
7265		CFLAGS="$CFLAGS -Werror=init-self"
7266
7267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7268$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7269		cacheid=xorg_cv_cc_flag__Werror_init_self
7270		if eval \${$cacheid+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275int i;
7276int
7277main ()
7278{
7279
7280  ;
7281  return 0;
7282}
7283_ACEOF
7284if ac_fn_c_try_link "$LINENO"; then :
7285  eval $cacheid=yes
7286else
7287  eval $cacheid=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext \
7290    conftest$ac_exeext conftest.$ac_ext
7291fi
7292
7293
7294		CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296		eval supported=\$$cacheid
7297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298$as_echo "$supported" >&6; }
7299		if test "$supported" = "yes" ; then
7300			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7301			found="yes"
7302		fi
7303	fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319xorg_testset_save_CFLAGS="$CFLAGS"
7320
7321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330int i;
7331_ACEOF
7332if ac_fn_c_try_compile "$LINENO"; then :
7333  xorg_cv_cc_flag_unknown_warning_option=yes
7334else
7335  xorg_cv_cc_flag_unknown_warning_option=no
7336fi
7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342	CFLAGS="$xorg_testset_save_CFLAGS"
7343fi
7344
7345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348	fi
7349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357int i;
7358_ACEOF
7359if ac_fn_c_try_compile "$LINENO"; then :
7360  xorg_cv_cc_flag_unused_command_line_argument=yes
7361else
7362  xorg_cv_cc_flag_unused_command_line_argument=no
7363fi
7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365fi
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369	CFLAGS="$xorg_testset_save_CFLAGS"
7370fi
7371
7372found="no"
7373
7374	if test $found = "no" ; then
7375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377		fi
7378
7379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7381		fi
7382
7383		CFLAGS="$CFLAGS -Werror=main"
7384
7385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7386$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7387		cacheid=xorg_cv_cc_flag__Werror_main
7388		if eval \${$cacheid+:} false; then :
7389  $as_echo_n "(cached) " >&6
7390else
7391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392/* end confdefs.h.  */
7393int i;
7394int
7395main ()
7396{
7397
7398  ;
7399  return 0;
7400}
7401_ACEOF
7402if ac_fn_c_try_link "$LINENO"; then :
7403  eval $cacheid=yes
7404else
7405  eval $cacheid=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext \
7408    conftest$ac_exeext conftest.$ac_ext
7409fi
7410
7411
7412		CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414		eval supported=\$$cacheid
7415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416$as_echo "$supported" >&6; }
7417		if test "$supported" = "yes" ; then
7418			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7419			found="yes"
7420		fi
7421	fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437xorg_testset_save_CFLAGS="$CFLAGS"
7438
7439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448int i;
7449_ACEOF
7450if ac_fn_c_try_compile "$LINENO"; then :
7451  xorg_cv_cc_flag_unknown_warning_option=yes
7452else
7453  xorg_cv_cc_flag_unknown_warning_option=no
7454fi
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460	CFLAGS="$xorg_testset_save_CFLAGS"
7461fi
7462
7463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7466	fi
7467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7471  $as_echo_n "(cached) " >&6
7472else
7473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475int i;
7476_ACEOF
7477if ac_fn_c_try_compile "$LINENO"; then :
7478  xorg_cv_cc_flag_unused_command_line_argument=yes
7479else
7480  xorg_cv_cc_flag_unused_command_line_argument=no
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487	CFLAGS="$xorg_testset_save_CFLAGS"
7488fi
7489
7490found="no"
7491
7492	if test $found = "no" ; then
7493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495		fi
7496
7497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499		fi
7500
7501		CFLAGS="$CFLAGS -Werror=missing-braces"
7502
7503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7504$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7505		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7506		if eval \${$cacheid+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h.  */
7511int i;
7512int
7513main ()
7514{
7515
7516  ;
7517  return 0;
7518}
7519_ACEOF
7520if ac_fn_c_try_link "$LINENO"; then :
7521  eval $cacheid=yes
7522else
7523  eval $cacheid=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext \
7526    conftest$ac_exeext conftest.$ac_ext
7527fi
7528
7529
7530		CFLAGS="$xorg_testset_save_CFLAGS"
7531
7532		eval supported=\$$cacheid
7533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7534$as_echo "$supported" >&6; }
7535		if test "$supported" = "yes" ; then
7536			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7537			found="yes"
7538		fi
7539	fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555xorg_testset_save_CFLAGS="$CFLAGS"
7556
7557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"; then :
7569  xorg_cv_cc_flag_unknown_warning_option=yes
7570else
7571  xorg_cv_cc_flag_unknown_warning_option=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578	CFLAGS="$xorg_testset_save_CFLAGS"
7579fi
7580
7581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584	fi
7585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592/* end confdefs.h.  */
7593int i;
7594_ACEOF
7595if ac_fn_c_try_compile "$LINENO"; then :
7596  xorg_cv_cc_flag_unused_command_line_argument=yes
7597else
7598  xorg_cv_cc_flag_unused_command_line_argument=no
7599fi
7600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7605	CFLAGS="$xorg_testset_save_CFLAGS"
7606fi
7607
7608found="no"
7609
7610	if test $found = "no" ; then
7611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613		fi
7614
7615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617		fi
7618
7619		CFLAGS="$CFLAGS -Werror=sequence-point"
7620
7621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7622$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7623		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7624		if eval \${$cacheid+:} false; then :
7625  $as_echo_n "(cached) " >&6
7626else
7627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629int i;
7630int
7631main ()
7632{
7633
7634  ;
7635  return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_link "$LINENO"; then :
7639  eval $cacheid=yes
7640else
7641  eval $cacheid=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext \
7644    conftest$ac_exeext conftest.$ac_ext
7645fi
7646
7647
7648		CFLAGS="$xorg_testset_save_CFLAGS"
7649
7650		eval supported=\$$cacheid
7651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7652$as_echo "$supported" >&6; }
7653		if test "$supported" = "yes" ; then
7654			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7655			found="yes"
7656		fi
7657	fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673xorg_testset_save_CFLAGS="$CFLAGS"
7674
7675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7680  $as_echo_n "(cached) " >&6
7681else
7682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h.  */
7684int i;
7685_ACEOF
7686if ac_fn_c_try_compile "$LINENO"; then :
7687  xorg_cv_cc_flag_unknown_warning_option=yes
7688else
7689  xorg_cv_cc_flag_unknown_warning_option=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7696	CFLAGS="$xorg_testset_save_CFLAGS"
7697fi
7698
7699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702	fi
7703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711int i;
7712_ACEOF
7713if ac_fn_c_try_compile "$LINENO"; then :
7714  xorg_cv_cc_flag_unused_command_line_argument=yes
7715else
7716  xorg_cv_cc_flag_unused_command_line_argument=no
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7723	CFLAGS="$xorg_testset_save_CFLAGS"
7724fi
7725
7726found="no"
7727
7728	if test $found = "no" ; then
7729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731		fi
7732
7733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7735		fi
7736
7737		CFLAGS="$CFLAGS -Werror=return-type"
7738
7739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7740$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7741		cacheid=xorg_cv_cc_flag__Werror_return_type
7742		if eval \${$cacheid+:} false; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h.  */
7747int i;
7748int
7749main ()
7750{
7751
7752  ;
7753  return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_link "$LINENO"; then :
7757  eval $cacheid=yes
7758else
7759  eval $cacheid=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext \
7762    conftest$ac_exeext conftest.$ac_ext
7763fi
7764
7765
7766		CFLAGS="$xorg_testset_save_CFLAGS"
7767
7768		eval supported=\$$cacheid
7769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7770$as_echo "$supported" >&6; }
7771		if test "$supported" = "yes" ; then
7772			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7773			found="yes"
7774		fi
7775	fi
7776
7777	if test $found = "no" ; then
7778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780		fi
7781
7782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784		fi
7785
7786		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7787
7788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7789$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7790		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7791		if eval \${$cacheid+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h.  */
7796int i;
7797int
7798main ()
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"; then :
7806  eval $cacheid=yes
7807else
7808  eval $cacheid=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext \
7811    conftest$ac_exeext conftest.$ac_ext
7812fi
7813
7814
7815		CFLAGS="$xorg_testset_save_CFLAGS"
7816
7817		eval supported=\$$cacheid
7818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819$as_echo "$supported" >&6; }
7820		if test "$supported" = "yes" ; then
7821			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7822			found="yes"
7823		fi
7824	fi
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851int i;
7852_ACEOF
7853if ac_fn_c_try_compile "$LINENO"; then :
7854  xorg_cv_cc_flag_unknown_warning_option=yes
7855else
7856  xorg_cv_cc_flag_unknown_warning_option=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863	CFLAGS="$xorg_testset_save_CFLAGS"
7864fi
7865
7866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869	fi
7870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874  $as_echo_n "(cached) " >&6
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878int i;
7879_ACEOF
7880if ac_fn_c_try_compile "$LINENO"; then :
7881  xorg_cv_cc_flag_unused_command_line_argument=yes
7882else
7883  xorg_cv_cc_flag_unused_command_line_argument=no
7884fi
7885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886fi
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890	CFLAGS="$xorg_testset_save_CFLAGS"
7891fi
7892
7893found="no"
7894
7895	if test $found = "no" ; then
7896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898		fi
7899
7900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902		fi
7903
7904		CFLAGS="$CFLAGS -Werror=trigraphs"
7905
7906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7907$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7908		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7909		if eval \${$cacheid+:} false; then :
7910  $as_echo_n "(cached) " >&6
7911else
7912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914int i;
7915int
7916main ()
7917{
7918
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923if ac_fn_c_try_link "$LINENO"; then :
7924  eval $cacheid=yes
7925else
7926  eval $cacheid=no
7927fi
7928rm -f core conftest.err conftest.$ac_objext \
7929    conftest$ac_exeext conftest.$ac_ext
7930fi
7931
7932
7933		CFLAGS="$xorg_testset_save_CFLAGS"
7934
7935		eval supported=\$$cacheid
7936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937$as_echo "$supported" >&6; }
7938		if test "$supported" = "yes" ; then
7939			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7940			found="yes"
7941		fi
7942	fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958xorg_testset_save_CFLAGS="$CFLAGS"
7959
7960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h.  */
7969int i;
7970_ACEOF
7971if ac_fn_c_try_compile "$LINENO"; then :
7972  xorg_cv_cc_flag_unknown_warning_option=yes
7973else
7974  xorg_cv_cc_flag_unknown_warning_option=no
7975fi
7976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981	CFLAGS="$xorg_testset_save_CFLAGS"
7982fi
7983
7984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987	fi
7988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996int i;
7997_ACEOF
7998if ac_fn_c_try_compile "$LINENO"; then :
7999  xorg_cv_cc_flag_unused_command_line_argument=yes
8000else
8001  xorg_cv_cc_flag_unused_command_line_argument=no
8002fi
8003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004fi
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008	CFLAGS="$xorg_testset_save_CFLAGS"
8009fi
8010
8011found="no"
8012
8013	if test $found = "no" ; then
8014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016		fi
8017
8018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020		fi
8021
8022		CFLAGS="$CFLAGS -Werror=array-bounds"
8023
8024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8025$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8026		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8027		if eval \${$cacheid+:} false; then :
8028  $as_echo_n "(cached) " >&6
8029else
8030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031/* end confdefs.h.  */
8032int i;
8033int
8034main ()
8035{
8036
8037  ;
8038  return 0;
8039}
8040_ACEOF
8041if ac_fn_c_try_link "$LINENO"; then :
8042  eval $cacheid=yes
8043else
8044  eval $cacheid=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext \
8047    conftest$ac_exeext conftest.$ac_ext
8048fi
8049
8050
8051		CFLAGS="$xorg_testset_save_CFLAGS"
8052
8053		eval supported=\$$cacheid
8054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055$as_echo "$supported" >&6; }
8056		if test "$supported" = "yes" ; then
8057			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8058			found="yes"
8059		fi
8060	fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076xorg_testset_save_CFLAGS="$CFLAGS"
8077
8078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h.  */
8087int i;
8088_ACEOF
8089if ac_fn_c_try_compile "$LINENO"; then :
8090  xorg_cv_cc_flag_unknown_warning_option=yes
8091else
8092  xorg_cv_cc_flag_unknown_warning_option=no
8093fi
8094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099	CFLAGS="$xorg_testset_save_CFLAGS"
8100fi
8101
8102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105	fi
8106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8110  $as_echo_n "(cached) " >&6
8111else
8112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h.  */
8114int i;
8115_ACEOF
8116if ac_fn_c_try_compile "$LINENO"; then :
8117  xorg_cv_cc_flag_unused_command_line_argument=yes
8118else
8119  xorg_cv_cc_flag_unused_command_line_argument=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126	CFLAGS="$xorg_testset_save_CFLAGS"
8127fi
8128
8129found="no"
8130
8131	if test $found = "no" ; then
8132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134		fi
8135
8136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138		fi
8139
8140		CFLAGS="$CFLAGS -Werror=write-strings"
8141
8142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8143$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8144		cacheid=xorg_cv_cc_flag__Werror_write_strings
8145		if eval \${$cacheid+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150int i;
8151int
8152main ()
8153{
8154
8155  ;
8156  return 0;
8157}
8158_ACEOF
8159if ac_fn_c_try_link "$LINENO"; then :
8160  eval $cacheid=yes
8161else
8162  eval $cacheid=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext \
8165    conftest$ac_exeext conftest.$ac_ext
8166fi
8167
8168
8169		CFLAGS="$xorg_testset_save_CFLAGS"
8170
8171		eval supported=\$$cacheid
8172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173$as_echo "$supported" >&6; }
8174		if test "$supported" = "yes" ; then
8175			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8176			found="yes"
8177		fi
8178	fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194xorg_testset_save_CFLAGS="$CFLAGS"
8195
8196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205int i;
8206_ACEOF
8207if ac_fn_c_try_compile "$LINENO"; then :
8208  xorg_cv_cc_flag_unknown_warning_option=yes
8209else
8210  xorg_cv_cc_flag_unknown_warning_option=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223	fi
8224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h.  */
8232int i;
8233_ACEOF
8234if ac_fn_c_try_compile "$LINENO"; then :
8235  xorg_cv_cc_flag_unused_command_line_argument=yes
8236else
8237  xorg_cv_cc_flag_unused_command_line_argument=no
8238fi
8239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240fi
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8244	CFLAGS="$xorg_testset_save_CFLAGS"
8245fi
8246
8247found="no"
8248
8249	if test $found = "no" ; then
8250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252		fi
8253
8254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8256		fi
8257
8258		CFLAGS="$CFLAGS -Werror=address"
8259
8260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8261$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8262		cacheid=xorg_cv_cc_flag__Werror_address
8263		if eval \${$cacheid+:} false; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h.  */
8268int i;
8269int
8270main ()
8271{
8272
8273  ;
8274  return 0;
8275}
8276_ACEOF
8277if ac_fn_c_try_link "$LINENO"; then :
8278  eval $cacheid=yes
8279else
8280  eval $cacheid=no
8281fi
8282rm -f core conftest.err conftest.$ac_objext \
8283    conftest$ac_exeext conftest.$ac_ext
8284fi
8285
8286
8287		CFLAGS="$xorg_testset_save_CFLAGS"
8288
8289		eval supported=\$$cacheid
8290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8291$as_echo "$supported" >&6; }
8292		if test "$supported" = "yes" ; then
8293			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8294			found="yes"
8295		fi
8296	fi
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312xorg_testset_save_CFLAGS="$CFLAGS"
8313
8314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8319  $as_echo_n "(cached) " >&6
8320else
8321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323int i;
8324_ACEOF
8325if ac_fn_c_try_compile "$LINENO"; then :
8326  xorg_cv_cc_flag_unknown_warning_option=yes
8327else
8328  xorg_cv_cc_flag_unknown_warning_option=no
8329fi
8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331fi
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8335	CFLAGS="$xorg_testset_save_CFLAGS"
8336fi
8337
8338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341	fi
8342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349/* end confdefs.h.  */
8350int i;
8351_ACEOF
8352if ac_fn_c_try_compile "$LINENO"; then :
8353  xorg_cv_cc_flag_unused_command_line_argument=yes
8354else
8355  xorg_cv_cc_flag_unused_command_line_argument=no
8356fi
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358fi
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8362	CFLAGS="$xorg_testset_save_CFLAGS"
8363fi
8364
8365found="no"
8366
8367	if test $found = "no" ; then
8368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370		fi
8371
8372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374		fi
8375
8376		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8377
8378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8379$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8380		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8381		if eval \${$cacheid+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386int i;
8387int
8388main ()
8389{
8390
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_link "$LINENO"; then :
8396  eval $cacheid=yes
8397else
8398  eval $cacheid=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext \
8401    conftest$ac_exeext conftest.$ac_ext
8402fi
8403
8404
8405		CFLAGS="$xorg_testset_save_CFLAGS"
8406
8407		eval supported=\$$cacheid
8408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8409$as_echo "$supported" >&6; }
8410		if test "$supported" = "yes" ; then
8411			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8412			found="yes"
8413		fi
8414	fi
8415
8416	if test $found = "no" ; then
8417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419		fi
8420
8421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423		fi
8424
8425		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8426
8427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8428$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8429		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8430		if eval \${$cacheid+:} false; then :
8431  $as_echo_n "(cached) " >&6
8432else
8433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434/* end confdefs.h.  */
8435int i;
8436int
8437main ()
8438{
8439
8440  ;
8441  return 0;
8442}
8443_ACEOF
8444if ac_fn_c_try_link "$LINENO"; then :
8445  eval $cacheid=yes
8446else
8447  eval $cacheid=no
8448fi
8449rm -f core conftest.err conftest.$ac_objext \
8450    conftest$ac_exeext conftest.$ac_ext
8451fi
8452
8453
8454		CFLAGS="$xorg_testset_save_CFLAGS"
8455
8456		eval supported=\$$cacheid
8457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8458$as_echo "$supported" >&6; }
8459		if test "$supported" = "yes" ; then
8460			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8461			found="yes"
8462		fi
8463	fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479xorg_testset_save_CFLAGS="$CFLAGS"
8480
8481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490int i;
8491_ACEOF
8492if ac_fn_c_try_compile "$LINENO"; then :
8493  xorg_cv_cc_flag_unknown_warning_option=yes
8494else
8495  xorg_cv_cc_flag_unknown_warning_option=no
8496fi
8497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498fi
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8502	CFLAGS="$xorg_testset_save_CFLAGS"
8503fi
8504
8505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508	fi
8509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h.  */
8517int i;
8518_ACEOF
8519if ac_fn_c_try_compile "$LINENO"; then :
8520  xorg_cv_cc_flag_unused_command_line_argument=yes
8521else
8522  xorg_cv_cc_flag_unused_command_line_argument=no
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8529	CFLAGS="$xorg_testset_save_CFLAGS"
8530fi
8531
8532found="no"
8533
8534	if test $found = "no" ; then
8535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537		fi
8538
8539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8541		fi
8542
8543		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8544
8545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8546$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8547		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8548		if eval \${$cacheid+:} false; then :
8549  $as_echo_n "(cached) " >&6
8550else
8551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553int i;
8554int
8555main ()
8556{
8557
8558  ;
8559  return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_link "$LINENO"; then :
8563  eval $cacheid=yes
8564else
8565  eval $cacheid=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext \
8568    conftest$ac_exeext conftest.$ac_ext
8569fi
8570
8571
8572		CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574		eval supported=\$$cacheid
8575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576$as_echo "$supported" >&6; }
8577		if test "$supported" = "yes" ; then
8578			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8579			found="yes"
8580		fi
8581	fi
8582
8583 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8584else
8585{ $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
8586$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;}
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611int i;
8612_ACEOF
8613if ac_fn_c_try_compile "$LINENO"; then :
8614  xorg_cv_cc_flag_unknown_warning_option=yes
8615else
8616  xorg_cv_cc_flag_unknown_warning_option=no
8617fi
8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619fi
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623	CFLAGS="$xorg_testset_save_CFLAGS"
8624fi
8625
8626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629	fi
8630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634  $as_echo_n "(cached) " >&6
8635else
8636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h.  */
8638int i;
8639_ACEOF
8640if ac_fn_c_try_compile "$LINENO"; then :
8641  xorg_cv_cc_flag_unused_command_line_argument=yes
8642else
8643  xorg_cv_cc_flag_unused_command_line_argument=no
8644fi
8645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650	CFLAGS="$xorg_testset_save_CFLAGS"
8651fi
8652
8653found="no"
8654
8655	if test $found = "no" ; then
8656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658		fi
8659
8660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662		fi
8663
8664		CFLAGS="$CFLAGS -Wimplicit"
8665
8666		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8667$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8668		cacheid=xorg_cv_cc_flag__Wimplicit
8669		if eval \${$cacheid+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h.  */
8674int i;
8675int
8676main ()
8677{
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_link "$LINENO"; then :
8684  eval $cacheid=yes
8685else
8686  eval $cacheid=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext \
8689    conftest$ac_exeext conftest.$ac_ext
8690fi
8691
8692
8693		CFLAGS="$xorg_testset_save_CFLAGS"
8694
8695		eval supported=\$$cacheid
8696		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697$as_echo "$supported" >&6; }
8698		if test "$supported" = "yes" ; then
8699			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8700			found="yes"
8701		fi
8702	fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718xorg_testset_save_CFLAGS="$CFLAGS"
8719
8720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"; then :
8732  xorg_cv_cc_flag_unknown_warning_option=yes
8733else
8734  xorg_cv_cc_flag_unknown_warning_option=no
8735fi
8736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737fi
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741	CFLAGS="$xorg_testset_save_CFLAGS"
8742fi
8743
8744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8747	fi
8748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752  $as_echo_n "(cached) " >&6
8753else
8754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755/* end confdefs.h.  */
8756int i;
8757_ACEOF
8758if ac_fn_c_try_compile "$LINENO"; then :
8759  xorg_cv_cc_flag_unused_command_line_argument=yes
8760else
8761  xorg_cv_cc_flag_unused_command_line_argument=no
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768	CFLAGS="$xorg_testset_save_CFLAGS"
8769fi
8770
8771found="no"
8772
8773	if test $found = "no" ; then
8774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776		fi
8777
8778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8780		fi
8781
8782		CFLAGS="$CFLAGS -Wnonnull"
8783
8784		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8785$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8786		cacheid=xorg_cv_cc_flag__Wnonnull
8787		if eval \${$cacheid+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791/* end confdefs.h.  */
8792int i;
8793int
8794main ()
8795{
8796
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801if ac_fn_c_try_link "$LINENO"; then :
8802  eval $cacheid=yes
8803else
8804  eval $cacheid=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext \
8807    conftest$ac_exeext conftest.$ac_ext
8808fi
8809
8810
8811		CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813		eval supported=\$$cacheid
8814		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815$as_echo "$supported" >&6; }
8816		if test "$supported" = "yes" ; then
8817			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8818			found="yes"
8819		fi
8820	fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847int i;
8848_ACEOF
8849if ac_fn_c_try_compile "$LINENO"; then :
8850  xorg_cv_cc_flag_unknown_warning_option=yes
8851else
8852  xorg_cv_cc_flag_unknown_warning_option=no
8853fi
8854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859	CFLAGS="$xorg_testset_save_CFLAGS"
8860fi
8861
8862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8865	fi
8866	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h.  */
8874int i;
8875_ACEOF
8876if ac_fn_c_try_compile "$LINENO"; then :
8877  xorg_cv_cc_flag_unused_command_line_argument=yes
8878else
8879  xorg_cv_cc_flag_unused_command_line_argument=no
8880fi
8881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886	CFLAGS="$xorg_testset_save_CFLAGS"
8887fi
8888
8889found="no"
8890
8891	if test $found = "no" ; then
8892		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894		fi
8895
8896		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898		fi
8899
8900		CFLAGS="$CFLAGS -Winit-self"
8901
8902		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8903$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8904		cacheid=xorg_cv_cc_flag__Winit_self
8905		if eval \${$cacheid+:} false; then :
8906  $as_echo_n "(cached) " >&6
8907else
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911int
8912main ()
8913{
8914
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919if ac_fn_c_try_link "$LINENO"; then :
8920  eval $cacheid=yes
8921else
8922  eval $cacheid=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext \
8925    conftest$ac_exeext conftest.$ac_ext
8926fi
8927
8928
8929		CFLAGS="$xorg_testset_save_CFLAGS"
8930
8931		eval supported=\$$cacheid
8932		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933$as_echo "$supported" >&6; }
8934		if test "$supported" = "yes" ; then
8935			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8936			found="yes"
8937		fi
8938	fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954xorg_testset_save_CFLAGS="$CFLAGS"
8955
8956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965int i;
8966_ACEOF
8967if ac_fn_c_try_compile "$LINENO"; then :
8968  xorg_cv_cc_flag_unknown_warning_option=yes
8969else
8970  xorg_cv_cc_flag_unknown_warning_option=no
8971fi
8972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973fi
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977	CFLAGS="$xorg_testset_save_CFLAGS"
8978fi
8979
8980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8983	fi
8984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988  $as_echo_n "(cached) " >&6
8989else
8990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991/* end confdefs.h.  */
8992int i;
8993_ACEOF
8994if ac_fn_c_try_compile "$LINENO"; then :
8995  xorg_cv_cc_flag_unused_command_line_argument=yes
8996else
8997  xorg_cv_cc_flag_unused_command_line_argument=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000fi
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004	CFLAGS="$xorg_testset_save_CFLAGS"
9005fi
9006
9007found="no"
9008
9009	if test $found = "no" ; then
9010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012		fi
9013
9014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9016		fi
9017
9018		CFLAGS="$CFLAGS -Wmain"
9019
9020		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9021$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9022		cacheid=xorg_cv_cc_flag__Wmain
9023		if eval \${$cacheid+:} false; then :
9024  $as_echo_n "(cached) " >&6
9025else
9026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h.  */
9028int i;
9029int
9030main ()
9031{
9032
9033  ;
9034  return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038  eval $cacheid=yes
9039else
9040  eval $cacheid=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext \
9043    conftest$ac_exeext conftest.$ac_ext
9044fi
9045
9046
9047		CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049		eval supported=\$$cacheid
9050		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051$as_echo "$supported" >&6; }
9052		if test "$supported" = "yes" ; then
9053			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9054			found="yes"
9055		fi
9056	fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079  $as_echo_n "(cached) " >&6
9080else
9081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h.  */
9083int i;
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"; then :
9086  xorg_cv_cc_flag_unknown_warning_option=yes
9087else
9088  xorg_cv_cc_flag_unknown_warning_option=no
9089fi
9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095	CFLAGS="$xorg_testset_save_CFLAGS"
9096fi
9097
9098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9101	fi
9102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110int i;
9111_ACEOF
9112if ac_fn_c_try_compile "$LINENO"; then :
9113  xorg_cv_cc_flag_unused_command_line_argument=yes
9114else
9115  xorg_cv_cc_flag_unused_command_line_argument=no
9116fi
9117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118fi
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122	CFLAGS="$xorg_testset_save_CFLAGS"
9123fi
9124
9125found="no"
9126
9127	if test $found = "no" ; then
9128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130		fi
9131
9132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134		fi
9135
9136		CFLAGS="$CFLAGS -Wmissing-braces"
9137
9138		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9139$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9140		cacheid=xorg_cv_cc_flag__Wmissing_braces
9141		if eval \${$cacheid+:} false; then :
9142  $as_echo_n "(cached) " >&6
9143else
9144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h.  */
9146int i;
9147int
9148main ()
9149{
9150
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155if ac_fn_c_try_link "$LINENO"; then :
9156  eval $cacheid=yes
9157else
9158  eval $cacheid=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext \
9161    conftest$ac_exeext conftest.$ac_ext
9162fi
9163
9164
9165		CFLAGS="$xorg_testset_save_CFLAGS"
9166
9167		eval supported=\$$cacheid
9168		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169$as_echo "$supported" >&6; }
9170		if test "$supported" = "yes" ; then
9171			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9172			found="yes"
9173		fi
9174	fi
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190xorg_testset_save_CFLAGS="$CFLAGS"
9191
9192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197  $as_echo_n "(cached) " >&6
9198else
9199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h.  */
9201int i;
9202_ACEOF
9203if ac_fn_c_try_compile "$LINENO"; then :
9204  xorg_cv_cc_flag_unknown_warning_option=yes
9205else
9206  xorg_cv_cc_flag_unknown_warning_option=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209fi
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213	CFLAGS="$xorg_testset_save_CFLAGS"
9214fi
9215
9216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219	fi
9220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224  $as_echo_n "(cached) " >&6
9225else
9226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h.  */
9228int i;
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"; then :
9231  xorg_cv_cc_flag_unused_command_line_argument=yes
9232else
9233  xorg_cv_cc_flag_unused_command_line_argument=no
9234fi
9235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240	CFLAGS="$xorg_testset_save_CFLAGS"
9241fi
9242
9243found="no"
9244
9245	if test $found = "no" ; then
9246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248		fi
9249
9250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9252		fi
9253
9254		CFLAGS="$CFLAGS -Wsequence-point"
9255
9256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9257$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9258		cacheid=xorg_cv_cc_flag__Wsequence_point
9259		if eval \${$cacheid+:} false; then :
9260  $as_echo_n "(cached) " >&6
9261else
9262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h.  */
9264int i;
9265int
9266main ()
9267{
9268
9269  ;
9270  return 0;
9271}
9272_ACEOF
9273if ac_fn_c_try_link "$LINENO"; then :
9274  eval $cacheid=yes
9275else
9276  eval $cacheid=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext \
9279    conftest$ac_exeext conftest.$ac_ext
9280fi
9281
9282
9283		CFLAGS="$xorg_testset_save_CFLAGS"
9284
9285		eval supported=\$$cacheid
9286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287$as_echo "$supported" >&6; }
9288		if test "$supported" = "yes" ; then
9289			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9290			found="yes"
9291		fi
9292	fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308xorg_testset_save_CFLAGS="$CFLAGS"
9309
9310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h.  */
9319int i;
9320_ACEOF
9321if ac_fn_c_try_compile "$LINENO"; then :
9322  xorg_cv_cc_flag_unknown_warning_option=yes
9323else
9324  xorg_cv_cc_flag_unknown_warning_option=no
9325fi
9326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331	CFLAGS="$xorg_testset_save_CFLAGS"
9332fi
9333
9334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9337	fi
9338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342  $as_echo_n "(cached) " >&6
9343else
9344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h.  */
9346int i;
9347_ACEOF
9348if ac_fn_c_try_compile "$LINENO"; then :
9349  xorg_cv_cc_flag_unused_command_line_argument=yes
9350else
9351  xorg_cv_cc_flag_unused_command_line_argument=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358	CFLAGS="$xorg_testset_save_CFLAGS"
9359fi
9360
9361found="no"
9362
9363	if test $found = "no" ; then
9364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366		fi
9367
9368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370		fi
9371
9372		CFLAGS="$CFLAGS -Wreturn-type"
9373
9374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9375$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9376		cacheid=xorg_cv_cc_flag__Wreturn_type
9377		if eval \${$cacheid+:} false; then :
9378  $as_echo_n "(cached) " >&6
9379else
9380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h.  */
9382int i;
9383int
9384main ()
9385{
9386
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392  eval $cacheid=yes
9393else
9394  eval $cacheid=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397    conftest$ac_exeext conftest.$ac_ext
9398fi
9399
9400
9401		CFLAGS="$xorg_testset_save_CFLAGS"
9402
9403		eval supported=\$$cacheid
9404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405$as_echo "$supported" >&6; }
9406		if test "$supported" = "yes" ; then
9407			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9408			found="yes"
9409		fi
9410	fi
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426xorg_testset_save_CFLAGS="$CFLAGS"
9427
9428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437int i;
9438_ACEOF
9439if ac_fn_c_try_compile "$LINENO"; then :
9440  xorg_cv_cc_flag_unknown_warning_option=yes
9441else
9442  xorg_cv_cc_flag_unknown_warning_option=no
9443fi
9444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455	fi
9456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463/* end confdefs.h.  */
9464int i;
9465_ACEOF
9466if ac_fn_c_try_compile "$LINENO"; then :
9467  xorg_cv_cc_flag_unused_command_line_argument=yes
9468else
9469  xorg_cv_cc_flag_unused_command_line_argument=no
9470fi
9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476	CFLAGS="$xorg_testset_save_CFLAGS"
9477fi
9478
9479found="no"
9480
9481	if test $found = "no" ; then
9482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484		fi
9485
9486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488		fi
9489
9490		CFLAGS="$CFLAGS -Wtrigraphs"
9491
9492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9493$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9494		cacheid=xorg_cv_cc_flag__Wtrigraphs
9495		if eval \${$cacheid+:} false; then :
9496  $as_echo_n "(cached) " >&6
9497else
9498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500int i;
9501int
9502main ()
9503{
9504
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"; then :
9510  eval $cacheid=yes
9511else
9512  eval $cacheid=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515    conftest$ac_exeext conftest.$ac_ext
9516fi
9517
9518
9519		CFLAGS="$xorg_testset_save_CFLAGS"
9520
9521		eval supported=\$$cacheid
9522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523$as_echo "$supported" >&6; }
9524		if test "$supported" = "yes" ; then
9525			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9526			found="yes"
9527		fi
9528	fi
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544xorg_testset_save_CFLAGS="$CFLAGS"
9545
9546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555int i;
9556_ACEOF
9557if ac_fn_c_try_compile "$LINENO"; then :
9558  xorg_cv_cc_flag_unknown_warning_option=yes
9559else
9560  xorg_cv_cc_flag_unknown_warning_option=no
9561fi
9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563fi
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567	CFLAGS="$xorg_testset_save_CFLAGS"
9568fi
9569
9570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573	fi
9574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h.  */
9582int i;
9583_ACEOF
9584if ac_fn_c_try_compile "$LINENO"; then :
9585  xorg_cv_cc_flag_unused_command_line_argument=yes
9586else
9587  xorg_cv_cc_flag_unused_command_line_argument=no
9588fi
9589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590fi
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594	CFLAGS="$xorg_testset_save_CFLAGS"
9595fi
9596
9597found="no"
9598
9599	if test $found = "no" ; then
9600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602		fi
9603
9604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606		fi
9607
9608		CFLAGS="$CFLAGS -Warray-bounds"
9609
9610		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9611$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9612		cacheid=xorg_cv_cc_flag__Warray_bounds
9613		if eval \${$cacheid+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617/* end confdefs.h.  */
9618int i;
9619int
9620main ()
9621{
9622
9623  ;
9624  return 0;
9625}
9626_ACEOF
9627if ac_fn_c_try_link "$LINENO"; then :
9628  eval $cacheid=yes
9629else
9630  eval $cacheid=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext \
9633    conftest$ac_exeext conftest.$ac_ext
9634fi
9635
9636
9637		CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639		eval supported=\$$cacheid
9640		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641$as_echo "$supported" >&6; }
9642		if test "$supported" = "yes" ; then
9643			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9644			found="yes"
9645		fi
9646	fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669  $as_echo_n "(cached) " >&6
9670else
9671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672/* end confdefs.h.  */
9673int i;
9674_ACEOF
9675if ac_fn_c_try_compile "$LINENO"; then :
9676  xorg_cv_cc_flag_unknown_warning_option=yes
9677else
9678  xorg_cv_cc_flag_unknown_warning_option=no
9679fi
9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685	CFLAGS="$xorg_testset_save_CFLAGS"
9686fi
9687
9688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691	fi
9692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696  $as_echo_n "(cached) " >&6
9697else
9698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699/* end confdefs.h.  */
9700int i;
9701_ACEOF
9702if ac_fn_c_try_compile "$LINENO"; then :
9703  xorg_cv_cc_flag_unused_command_line_argument=yes
9704else
9705  xorg_cv_cc_flag_unused_command_line_argument=no
9706fi
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708fi
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712	CFLAGS="$xorg_testset_save_CFLAGS"
9713fi
9714
9715found="no"
9716
9717	if test $found = "no" ; then
9718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720		fi
9721
9722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724		fi
9725
9726		CFLAGS="$CFLAGS -Wwrite-strings"
9727
9728		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9729$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9730		cacheid=xorg_cv_cc_flag__Wwrite_strings
9731		if eval \${$cacheid+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735/* end confdefs.h.  */
9736int i;
9737int
9738main ()
9739{
9740
9741  ;
9742  return 0;
9743}
9744_ACEOF
9745if ac_fn_c_try_link "$LINENO"; then :
9746  eval $cacheid=yes
9747else
9748  eval $cacheid=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext \
9751    conftest$ac_exeext conftest.$ac_ext
9752fi
9753
9754
9755		CFLAGS="$xorg_testset_save_CFLAGS"
9756
9757		eval supported=\$$cacheid
9758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759$as_echo "$supported" >&6; }
9760		if test "$supported" = "yes" ; then
9761			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9762			found="yes"
9763		fi
9764	fi
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780xorg_testset_save_CFLAGS="$CFLAGS"
9781
9782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9787  $as_echo_n "(cached) " >&6
9788else
9789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h.  */
9791int i;
9792_ACEOF
9793if ac_fn_c_try_compile "$LINENO"; then :
9794  xorg_cv_cc_flag_unknown_warning_option=yes
9795else
9796  xorg_cv_cc_flag_unknown_warning_option=no
9797fi
9798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799fi
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9803	CFLAGS="$xorg_testset_save_CFLAGS"
9804fi
9805
9806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809	fi
9810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9814  $as_echo_n "(cached) " >&6
9815else
9816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h.  */
9818int i;
9819_ACEOF
9820if ac_fn_c_try_compile "$LINENO"; then :
9821  xorg_cv_cc_flag_unused_command_line_argument=yes
9822else
9823  xorg_cv_cc_flag_unused_command_line_argument=no
9824fi
9825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826fi
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9830	CFLAGS="$xorg_testset_save_CFLAGS"
9831fi
9832
9833found="no"
9834
9835	if test $found = "no" ; then
9836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838		fi
9839
9840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842		fi
9843
9844		CFLAGS="$CFLAGS -Waddress"
9845
9846		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9847$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9848		cacheid=xorg_cv_cc_flag__Waddress
9849		if eval \${$cacheid+:} false; then :
9850  $as_echo_n "(cached) " >&6
9851else
9852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h.  */
9854int i;
9855int
9856main ()
9857{
9858
9859  ;
9860  return 0;
9861}
9862_ACEOF
9863if ac_fn_c_try_link "$LINENO"; then :
9864  eval $cacheid=yes
9865else
9866  eval $cacheid=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext \
9869    conftest$ac_exeext conftest.$ac_ext
9870fi
9871
9872
9873		CFLAGS="$xorg_testset_save_CFLAGS"
9874
9875		eval supported=\$$cacheid
9876		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877$as_echo "$supported" >&6; }
9878		if test "$supported" = "yes" ; then
9879			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9880			found="yes"
9881		fi
9882	fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898xorg_testset_save_CFLAGS="$CFLAGS"
9899
9900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908/* end confdefs.h.  */
9909int i;
9910_ACEOF
9911if ac_fn_c_try_compile "$LINENO"; then :
9912  xorg_cv_cc_flag_unknown_warning_option=yes
9913else
9914  xorg_cv_cc_flag_unknown_warning_option=no
9915fi
9916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917fi
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921	CFLAGS="$xorg_testset_save_CFLAGS"
9922fi
9923
9924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9927	fi
9928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9932  $as_echo_n "(cached) " >&6
9933else
9934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935/* end confdefs.h.  */
9936int i;
9937_ACEOF
9938if ac_fn_c_try_compile "$LINENO"; then :
9939  xorg_cv_cc_flag_unused_command_line_argument=yes
9940else
9941  xorg_cv_cc_flag_unused_command_line_argument=no
9942fi
9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948	CFLAGS="$xorg_testset_save_CFLAGS"
9949fi
9950
9951found="no"
9952
9953	if test $found = "no" ; then
9954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956		fi
9957
9958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960		fi
9961
9962		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9963
9964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9965$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9966		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9967		if eval \${$cacheid+:} false; then :
9968  $as_echo_n "(cached) " >&6
9969else
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int i;
9973int
9974main ()
9975{
9976
9977  ;
9978  return 0;
9979}
9980_ACEOF
9981if ac_fn_c_try_link "$LINENO"; then :
9982  eval $cacheid=yes
9983else
9984  eval $cacheid=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext \
9987    conftest$ac_exeext conftest.$ac_ext
9988fi
9989
9990
9991		CFLAGS="$xorg_testset_save_CFLAGS"
9992
9993		eval supported=\$$cacheid
9994		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9995$as_echo "$supported" >&6; }
9996		if test "$supported" = "yes" ; then
9997			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9998			found="yes"
9999		fi
10000	fi
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016xorg_testset_save_CFLAGS="$CFLAGS"
10017
10018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026/* end confdefs.h.  */
10027int i;
10028_ACEOF
10029if ac_fn_c_try_compile "$LINENO"; then :
10030  xorg_cv_cc_flag_unknown_warning_option=yes
10031else
10032  xorg_cv_cc_flag_unknown_warning_option=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039	CFLAGS="$xorg_testset_save_CFLAGS"
10040fi
10041
10042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045	fi
10046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10050  $as_echo_n "(cached) " >&6
10051else
10052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053/* end confdefs.h.  */
10054int i;
10055_ACEOF
10056if ac_fn_c_try_compile "$LINENO"; then :
10057  xorg_cv_cc_flag_unused_command_line_argument=yes
10058else
10059  xorg_cv_cc_flag_unused_command_line_argument=no
10060fi
10061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062fi
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10066	CFLAGS="$xorg_testset_save_CFLAGS"
10067fi
10068
10069found="no"
10070
10071	if test $found = "no" ; then
10072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074		fi
10075
10076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10078		fi
10079
10080		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10081
10082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10083$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10084		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10085		if eval \${$cacheid+:} false; then :
10086  $as_echo_n "(cached) " >&6
10087else
10088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089/* end confdefs.h.  */
10090int i;
10091int
10092main ()
10093{
10094
10095  ;
10096  return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_link "$LINENO"; then :
10100  eval $cacheid=yes
10101else
10102  eval $cacheid=no
10103fi
10104rm -f core conftest.err conftest.$ac_objext \
10105    conftest$ac_exeext conftest.$ac_ext
10106fi
10107
10108
10109		CFLAGS="$xorg_testset_save_CFLAGS"
10110
10111		eval supported=\$$cacheid
10112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10113$as_echo "$supported" >&6; }
10114		if test "$supported" = "yes" ; then
10115			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10116			found="yes"
10117		fi
10118	fi
10119
10120
10121fi
10122
10123
10124
10125
10126
10127
10128
10129		CWARNFLAGS="$BASE_CFLAGS"
10130		if  test "x$GCC" = xyes ; then
10131		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10132		fi
10133
10134
10135
10136
10137
10138
10139
10140
10141# Check whether --enable-strict-compilation was given.
10142if test "${enable_strict_compilation+set}" = set; then :
10143  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10144else
10145  STRICT_COMPILE=no
10146fi
10147
10148
10149
10150
10151
10152
10153STRICT_CFLAGS=""
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167xorg_testset_save_CFLAGS="$CFLAGS"
10168
10169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174  $as_echo_n "(cached) " >&6
10175else
10176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177/* end confdefs.h.  */
10178int i;
10179_ACEOF
10180if ac_fn_c_try_compile "$LINENO"; then :
10181  xorg_cv_cc_flag_unknown_warning_option=yes
10182else
10183  xorg_cv_cc_flag_unknown_warning_option=no
10184fi
10185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186fi
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190	CFLAGS="$xorg_testset_save_CFLAGS"
10191fi
10192
10193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196	fi
10197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206_ACEOF
10207if ac_fn_c_try_compile "$LINENO"; then :
10208  xorg_cv_cc_flag_unused_command_line_argument=yes
10209else
10210  xorg_cv_cc_flag_unused_command_line_argument=no
10211fi
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213fi
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217	CFLAGS="$xorg_testset_save_CFLAGS"
10218fi
10219
10220found="no"
10221
10222	if test $found = "no" ; then
10223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225		fi
10226
10227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10229		fi
10230
10231		CFLAGS="$CFLAGS -pedantic"
10232
10233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10234$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10235		cacheid=xorg_cv_cc_flag__pedantic
10236		if eval \${$cacheid+:} false; then :
10237  $as_echo_n "(cached) " >&6
10238else
10239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240/* end confdefs.h.  */
10241int i;
10242int
10243main ()
10244{
10245
10246  ;
10247  return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_link "$LINENO"; then :
10251  eval $cacheid=yes
10252else
10253  eval $cacheid=no
10254fi
10255rm -f core conftest.err conftest.$ac_objext \
10256    conftest$ac_exeext conftest.$ac_ext
10257fi
10258
10259
10260		CFLAGS="$xorg_testset_save_CFLAGS"
10261
10262		eval supported=\$$cacheid
10263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264$as_echo "$supported" >&6; }
10265		if test "$supported" = "yes" ; then
10266			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10267			found="yes"
10268		fi
10269	fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285xorg_testset_save_CFLAGS="$CFLAGS"
10286
10287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10292  $as_echo_n "(cached) " >&6
10293else
10294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h.  */
10296int i;
10297_ACEOF
10298if ac_fn_c_try_compile "$LINENO"; then :
10299  xorg_cv_cc_flag_unknown_warning_option=yes
10300else
10301  xorg_cv_cc_flag_unknown_warning_option=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304fi
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10308	CFLAGS="$xorg_testset_save_CFLAGS"
10309fi
10310
10311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10314	fi
10315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323int i;
10324_ACEOF
10325if ac_fn_c_try_compile "$LINENO"; then :
10326  xorg_cv_cc_flag_unused_command_line_argument=yes
10327else
10328  xorg_cv_cc_flag_unused_command_line_argument=no
10329fi
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10335	CFLAGS="$xorg_testset_save_CFLAGS"
10336fi
10337
10338found="no"
10339
10340	if test $found = "no" ; then
10341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343		fi
10344
10345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347		fi
10348
10349		CFLAGS="$CFLAGS -Werror"
10350
10351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10352$as_echo_n "checking if $CC supports -Werror... " >&6; }
10353		cacheid=xorg_cv_cc_flag__Werror
10354		if eval \${$cacheid+:} false; then :
10355  $as_echo_n "(cached) " >&6
10356else
10357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359int i;
10360int
10361main ()
10362{
10363
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368if ac_fn_c_try_link "$LINENO"; then :
10369  eval $cacheid=yes
10370else
10371  eval $cacheid=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext \
10374    conftest$ac_exeext conftest.$ac_ext
10375fi
10376
10377
10378		CFLAGS="$xorg_testset_save_CFLAGS"
10379
10380		eval supported=\$$cacheid
10381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10382$as_echo "$supported" >&6; }
10383		if test "$supported" = "yes" ; then
10384			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10385			found="yes"
10386		fi
10387	fi
10388
10389	if test $found = "no" ; then
10390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392		fi
10393
10394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396		fi
10397
10398		CFLAGS="$CFLAGS -errwarn"
10399
10400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10401$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10402		cacheid=xorg_cv_cc_flag__errwarn
10403		if eval \${$cacheid+:} false; then :
10404  $as_echo_n "(cached) " >&6
10405else
10406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h.  */
10408int i;
10409int
10410main ()
10411{
10412
10413  ;
10414  return 0;
10415}
10416_ACEOF
10417if ac_fn_c_try_link "$LINENO"; then :
10418  eval $cacheid=yes
10419else
10420  eval $cacheid=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext \
10423    conftest$ac_exeext conftest.$ac_ext
10424fi
10425
10426
10427		CFLAGS="$xorg_testset_save_CFLAGS"
10428
10429		eval supported=\$$cacheid
10430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10431$as_echo "$supported" >&6; }
10432		if test "$supported" = "yes" ; then
10433			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10434			found="yes"
10435		fi
10436	fi
10437
10438
10439
10440# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10441# activate it with -Werror, so we add it here explicitly.
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455xorg_testset_save_CFLAGS="$CFLAGS"
10456
10457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10462  $as_echo_n "(cached) " >&6
10463else
10464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h.  */
10466int i;
10467_ACEOF
10468if ac_fn_c_try_compile "$LINENO"; then :
10469  xorg_cv_cc_flag_unknown_warning_option=yes
10470else
10471  xorg_cv_cc_flag_unknown_warning_option=no
10472fi
10473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474fi
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10478	CFLAGS="$xorg_testset_save_CFLAGS"
10479fi
10480
10481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484	fi
10485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10489  $as_echo_n "(cached) " >&6
10490else
10491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493int i;
10494_ACEOF
10495if ac_fn_c_try_compile "$LINENO"; then :
10496  xorg_cv_cc_flag_unused_command_line_argument=yes
10497else
10498  xorg_cv_cc_flag_unused_command_line_argument=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501fi
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10505	CFLAGS="$xorg_testset_save_CFLAGS"
10506fi
10507
10508found="no"
10509
10510	if test $found = "no" ; then
10511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513		fi
10514
10515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517		fi
10518
10519		CFLAGS="$CFLAGS -Werror=attributes"
10520
10521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10522$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10523		cacheid=xorg_cv_cc_flag__Werror_attributes
10524		if eval \${$cacheid+:} false; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h.  */
10529int i;
10530int
10531main ()
10532{
10533
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"; then :
10539  eval $cacheid=yes
10540else
10541  eval $cacheid=no
10542fi
10543rm -f core conftest.err conftest.$ac_objext \
10544    conftest$ac_exeext conftest.$ac_ext
10545fi
10546
10547
10548		CFLAGS="$xorg_testset_save_CFLAGS"
10549
10550		eval supported=\$$cacheid
10551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10552$as_echo "$supported" >&6; }
10553		if test "$supported" = "yes" ; then
10554			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10555			found="yes"
10556		fi
10557	fi
10558
10559
10560
10561if test "x$STRICT_COMPILE" = "xyes"; then
10562    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10563    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10564fi
10565
10566
10567
10568
10569
10570
10571cat >>confdefs.h <<_ACEOF
10572#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10573_ACEOF
10574
10575	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10576	if test "x$PVM" = "x"; then
10577		PVM="0"
10578	fi
10579
10580cat >>confdefs.h <<_ACEOF
10581#define PACKAGE_VERSION_MINOR $PVM
10582_ACEOF
10583
10584	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10585	if test "x$PVP" = "x"; then
10586		PVP="0"
10587	fi
10588
10589cat >>confdefs.h <<_ACEOF
10590#define PACKAGE_VERSION_PATCHLEVEL $PVP
10591_ACEOF
10592
10593
10594
10595CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10596mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10597|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10598touch \$(top_srcdir)/ChangeLog; \
10599echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10600
10601
10602
10603
10604macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10605INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10606mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10607|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10608touch \$(top_srcdir)/INSTALL; \
10609echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10610
10611
10612
10613
10614
10615
10616case $host_os in
10617    solaris*)
10618        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10619        # check for a man page file found in later versions that use
10620        # traditional section numbers instead
10621        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10622$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10623if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10624  $as_echo_n "(cached) " >&6
10625else
10626  test "$cross_compiling" = yes &&
10627  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10628if test -r "/usr/share/man/man7/attributes.7"; then
10629  ac_cv_file__usr_share_man_man7_attributes_7=yes
10630else
10631  ac_cv_file__usr_share_man_man7_attributes_7=no
10632fi
10633fi
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10635$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10636if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10637  SYSV_MAN_SECTIONS=false
10638else
10639  SYSV_MAN_SECTIONS=true
10640fi
10641
10642        ;;
10643    *) SYSV_MAN_SECTIONS=false ;;
10644esac
10645
10646if test x$APP_MAN_SUFFIX = x    ; then
10647    APP_MAN_SUFFIX=1
10648fi
10649if test x$APP_MAN_DIR = x    ; then
10650    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10651fi
10652
10653if test x$LIB_MAN_SUFFIX = x    ; then
10654    LIB_MAN_SUFFIX=3
10655fi
10656if test x$LIB_MAN_DIR = x    ; then
10657    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10658fi
10659
10660if test x$FILE_MAN_SUFFIX = x    ; then
10661    case $SYSV_MAN_SECTIONS in
10662	true)				FILE_MAN_SUFFIX=4  ;;
10663	*)				FILE_MAN_SUFFIX=5  ;;
10664    esac
10665fi
10666if test x$FILE_MAN_DIR = x    ; then
10667    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10668fi
10669
10670if test x$MISC_MAN_SUFFIX = x    ; then
10671    case $SYSV_MAN_SECTIONS in
10672	true)				MISC_MAN_SUFFIX=5  ;;
10673	*)				MISC_MAN_SUFFIX=7  ;;
10674    esac
10675fi
10676if test x$MISC_MAN_DIR = x    ; then
10677    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10678fi
10679
10680if test x$DRIVER_MAN_SUFFIX = x    ; then
10681    case $SYSV_MAN_SECTIONS in
10682	true)				DRIVER_MAN_SUFFIX=7  ;;
10683	*)				DRIVER_MAN_SUFFIX=4  ;;
10684    esac
10685fi
10686if test x$DRIVER_MAN_DIR = x    ; then
10687    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10688fi
10689
10690if test x$ADMIN_MAN_SUFFIX = x    ; then
10691    case $SYSV_MAN_SECTIONS in
10692	true)				ADMIN_MAN_SUFFIX=1m ;;
10693	*)				ADMIN_MAN_SUFFIX=8  ;;
10694    esac
10695fi
10696if test x$ADMIN_MAN_DIR = x    ; then
10697    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10698fi
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714XORG_MAN_PAGE="X Version 11"
10715
10716MAN_SUBSTS="\
10717	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10718	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10719	-e 's|__xservername__|Xorg|g' \
10720	-e 's|__xconfigfile__|xorg.conf|g' \
10721	-e 's|__projectroot__|\$(prefix)|g' \
10722	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10723	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10724	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10725	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10726	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10727	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10728	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10729
10730
10731
10732# Check whether --enable-silent-rules was given.
10733if test "${enable_silent_rules+set}" = set; then :
10734  enableval=$enable_silent_rules;
10735fi
10736
10737case $enable_silent_rules in # (((
10738  yes) AM_DEFAULT_VERBOSITY=0;;
10739   no) AM_DEFAULT_VERBOSITY=1;;
10740    *) AM_DEFAULT_VERBOSITY=0;;
10741esac
10742am_make=${MAKE-make}
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10744$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10745if ${am_cv_make_support_nested_variables+:} false; then :
10746  $as_echo_n "(cached) " >&6
10747else
10748  if $as_echo 'TRUE=$(BAR$(V))
10749BAR0=false
10750BAR1=true
10751V=1
10752am__doit:
10753	@$(TRUE)
10754.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10755  am_cv_make_support_nested_variables=yes
10756else
10757  am_cv_make_support_nested_variables=no
10758fi
10759fi
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10761$as_echo "$am_cv_make_support_nested_variables" >&6; }
10762if test $am_cv_make_support_nested_variables = yes; then
10763    AM_V='$(V)'
10764  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10765else
10766  AM_V=$AM_DEFAULT_VERBOSITY
10767  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10768fi
10769AM_BACKSLASH='\'
10770
10771
10772
10773# Initialize libtool
10774# Check whether --enable-static was given.
10775if test "${enable_static+set}" = set; then :
10776  enableval=$enable_static; p=${PACKAGE-default}
10777    case $enableval in
10778    yes) enable_static=yes ;;
10779    no) enable_static=no ;;
10780    *)
10781     enable_static=no
10782      # Look at the argument we got.  We use all the common list separators.
10783      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10784      for pkg in $enableval; do
10785	IFS=$lt_save_ifs
10786	if test "X$pkg" = "X$p"; then
10787	  enable_static=yes
10788	fi
10789      done
10790      IFS=$lt_save_ifs
10791      ;;
10792    esac
10793else
10794  enable_static=no
10795fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805case `pwd` in
10806  *\ * | *\	*)
10807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10808$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10809esac
10810
10811
10812
10813macro_version='2.4.6'
10814macro_revision='2.4.6'
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828ltmain=$ac_aux_dir/ltmain.sh
10829
10830# Backslashify metacharacters that are still active within
10831# double-quoted strings.
10832sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10833
10834# Same as above, but do not quote variable references.
10835double_quote_subst='s/\(["`\\]\)/\\\1/g'
10836
10837# Sed substitution to delay expansion of an escaped shell variable in a
10838# double_quote_subst'ed string.
10839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10840
10841# Sed substitution to delay expansion of an escaped single quote.
10842delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10843
10844# Sed substitution to avoid accidental globbing in evaled expressions
10845no_glob_subst='s/\*/\\\*/g'
10846
10847ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10848ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10849ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10850
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10852$as_echo_n "checking how to print strings... " >&6; }
10853# Test print first, because it will be a builtin if present.
10854if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10855   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10856  ECHO='print -r --'
10857elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10858  ECHO='printf %s\n'
10859else
10860  # Use this function as a fallback that always works.
10861  func_fallback_echo ()
10862  {
10863    eval 'cat <<_LTECHO_EOF
10864$1
10865_LTECHO_EOF'
10866  }
10867  ECHO='func_fallback_echo'
10868fi
10869
10870# func_echo_all arg...
10871# Invoke $ECHO with all args, space-separated.
10872func_echo_all ()
10873{
10874    $ECHO ""
10875}
10876
10877case $ECHO in
10878  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10879$as_echo "printf" >&6; } ;;
10880  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10881$as_echo "print -r" >&6; } ;;
10882  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10883$as_echo "cat" >&6; } ;;
10884esac
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10900$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10901if ${ac_cv_path_SED+:} false; then :
10902  $as_echo_n "(cached) " >&6
10903else
10904            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10905     for ac_i in 1 2 3 4 5 6 7; do
10906       ac_script="$ac_script$as_nl$ac_script"
10907     done
10908     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10909     { ac_script=; unset ac_script;}
10910     if test -z "$SED"; then
10911  ac_path_SED_found=false
10912  # Loop through the user's path and test for each of PROGNAME-LIST
10913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916  IFS=$as_save_IFS
10917  test -z "$as_dir" && as_dir=.
10918    for ac_prog in sed gsed; do
10919    for ac_exec_ext in '' $ac_executable_extensions; do
10920      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10921      as_fn_executable_p "$ac_path_SED" || continue
10922# Check for GNU ac_path_SED and select it if it is found.
10923  # Check for GNU $ac_path_SED
10924case `"$ac_path_SED" --version 2>&1` in
10925*GNU*)
10926  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10927*)
10928  ac_count=0
10929  $as_echo_n 0123456789 >"conftest.in"
10930  while :
10931  do
10932    cat "conftest.in" "conftest.in" >"conftest.tmp"
10933    mv "conftest.tmp" "conftest.in"
10934    cp "conftest.in" "conftest.nl"
10935    $as_echo '' >> "conftest.nl"
10936    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10937    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10938    as_fn_arith $ac_count + 1 && ac_count=$as_val
10939    if test $ac_count -gt ${ac_path_SED_max-0}; then
10940      # Best one so far, save it but keep looking for a better one
10941      ac_cv_path_SED="$ac_path_SED"
10942      ac_path_SED_max=$ac_count
10943    fi
10944    # 10*(2^10) chars as input seems more than enough
10945    test $ac_count -gt 10 && break
10946  done
10947  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10948esac
10949
10950      $ac_path_SED_found && break 3
10951    done
10952  done
10953  done
10954IFS=$as_save_IFS
10955  if test -z "$ac_cv_path_SED"; then
10956    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10957  fi
10958else
10959  ac_cv_path_SED=$SED
10960fi
10961
10962fi
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10964$as_echo "$ac_cv_path_SED" >&6; }
10965 SED="$ac_cv_path_SED"
10966  rm -f conftest.sed
10967
10968test -z "$SED" && SED=sed
10969Xsed="$SED -e 1s/^X//"
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10982$as_echo_n "checking for fgrep... " >&6; }
10983if ${ac_cv_path_FGREP+:} false; then :
10984  $as_echo_n "(cached) " >&6
10985else
10986  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10987   then ac_cv_path_FGREP="$GREP -F"
10988   else
10989     if test -z "$FGREP"; then
10990  ac_path_FGREP_found=false
10991  # Loop through the user's path and test for each of PROGNAME-LIST
10992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10994do
10995  IFS=$as_save_IFS
10996  test -z "$as_dir" && as_dir=.
10997    for ac_prog in fgrep; do
10998    for ac_exec_ext in '' $ac_executable_extensions; do
10999      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11000      as_fn_executable_p "$ac_path_FGREP" || continue
11001# Check for GNU ac_path_FGREP and select it if it is found.
11002  # Check for GNU $ac_path_FGREP
11003case `"$ac_path_FGREP" --version 2>&1` in
11004*GNU*)
11005  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11006*)
11007  ac_count=0
11008  $as_echo_n 0123456789 >"conftest.in"
11009  while :
11010  do
11011    cat "conftest.in" "conftest.in" >"conftest.tmp"
11012    mv "conftest.tmp" "conftest.in"
11013    cp "conftest.in" "conftest.nl"
11014    $as_echo 'FGREP' >> "conftest.nl"
11015    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11016    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11017    as_fn_arith $ac_count + 1 && ac_count=$as_val
11018    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11019      # Best one so far, save it but keep looking for a better one
11020      ac_cv_path_FGREP="$ac_path_FGREP"
11021      ac_path_FGREP_max=$ac_count
11022    fi
11023    # 10*(2^10) chars as input seems more than enough
11024    test $ac_count -gt 10 && break
11025  done
11026  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11027esac
11028
11029      $ac_path_FGREP_found && break 3
11030    done
11031  done
11032  done
11033IFS=$as_save_IFS
11034  if test -z "$ac_cv_path_FGREP"; then
11035    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11036  fi
11037else
11038  ac_cv_path_FGREP=$FGREP
11039fi
11040
11041   fi
11042fi
11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11044$as_echo "$ac_cv_path_FGREP" >&6; }
11045 FGREP="$ac_cv_path_FGREP"
11046
11047
11048test -z "$GREP" && GREP=grep
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068# Check whether --with-gnu-ld was given.
11069if test "${with_gnu_ld+set}" = set; then :
11070  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11071else
11072  with_gnu_ld=no
11073fi
11074
11075ac_prog=ld
11076if test yes = "$GCC"; then
11077  # Check if gcc -print-prog-name=ld gives a path.
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11079$as_echo_n "checking for ld used by $CC... " >&6; }
11080  case $host in
11081  *-*-mingw*)
11082    # gcc leaves a trailing carriage return, which upsets mingw
11083    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11084  *)
11085    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11086  esac
11087  case $ac_prog in
11088    # Accept absolute paths.
11089    [\\/]* | ?:[\\/]*)
11090      re_direlt='/[^/][^/]*/\.\./'
11091      # Canonicalize the pathname of ld
11092      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11093      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11094	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11095      done
11096      test -z "$LD" && LD=$ac_prog
11097      ;;
11098  "")
11099    # If it fails, then pretend we aren't using GCC.
11100    ac_prog=ld
11101    ;;
11102  *)
11103    # If it is relative, then search for the first ld in PATH.
11104    with_gnu_ld=unknown
11105    ;;
11106  esac
11107elif test yes = "$with_gnu_ld"; then
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11109$as_echo_n "checking for GNU ld... " >&6; }
11110else
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11112$as_echo_n "checking for non-GNU ld... " >&6; }
11113fi
11114if ${lt_cv_path_LD+:} false; then :
11115  $as_echo_n "(cached) " >&6
11116else
11117  if test -z "$LD"; then
11118  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11119  for ac_dir in $PATH; do
11120    IFS=$lt_save_ifs
11121    test -z "$ac_dir" && ac_dir=.
11122    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11123      lt_cv_path_LD=$ac_dir/$ac_prog
11124      # Check to see if the program is GNU ld.  I'd rather use --version,
11125      # but apparently some variants of GNU ld only accept -v.
11126      # Break only if it was the GNU/non-GNU ld that we prefer.
11127      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11128      *GNU* | *'with BFD'*)
11129	test no != "$with_gnu_ld" && break
11130	;;
11131      *)
11132	test yes != "$with_gnu_ld" && break
11133	;;
11134      esac
11135    fi
11136  done
11137  IFS=$lt_save_ifs
11138else
11139  lt_cv_path_LD=$LD # Let the user override the test with a path.
11140fi
11141fi
11142
11143LD=$lt_cv_path_LD
11144if test -n "$LD"; then
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11146$as_echo "$LD" >&6; }
11147else
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11154if ${lt_cv_prog_gnu_ld+:} false; then :
11155  $as_echo_n "(cached) " >&6
11156else
11157  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11158case `$LD -v 2>&1 </dev/null` in
11159*GNU* | *'with BFD'*)
11160  lt_cv_prog_gnu_ld=yes
11161  ;;
11162*)
11163  lt_cv_prog_gnu_ld=no
11164  ;;
11165esac
11166fi
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11168$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11169with_gnu_ld=$lt_cv_prog_gnu_ld
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11180$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11181if ${lt_cv_path_NM+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  if test -n "$NM"; then
11185  # Let the user override the test.
11186  lt_cv_path_NM=$NM
11187else
11188  lt_nm_to_check=${ac_tool_prefix}nm
11189  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11190    lt_nm_to_check="$lt_nm_to_check nm"
11191  fi
11192  for lt_tmp_nm in $lt_nm_to_check; do
11193    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11194    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11195      IFS=$lt_save_ifs
11196      test -z "$ac_dir" && ac_dir=.
11197      tmp_nm=$ac_dir/$lt_tmp_nm
11198      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11199	# Check to see if the nm accepts a BSD-compat flag.
11200	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11201	#   nm: unknown option "B" ignored
11202	# Tru64's nm complains that /dev/null is an invalid object file
11203	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11204	case $build_os in
11205	mingw*) lt_bad_file=conftest.nm/nofile ;;
11206	*) lt_bad_file=/dev/null ;;
11207	esac
11208	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11209	*$lt_bad_file* | *'Invalid file or object type'*)
11210	  lt_cv_path_NM="$tmp_nm -B"
11211	  break 2
11212	  ;;
11213	*)
11214	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11215	  */dev/null*)
11216	    lt_cv_path_NM="$tmp_nm -p"
11217	    break 2
11218	    ;;
11219	  *)
11220	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11221	    continue # so that we can try to find one that supports BSD flags
11222	    ;;
11223	  esac
11224	  ;;
11225	esac
11226      fi
11227    done
11228    IFS=$lt_save_ifs
11229  done
11230  : ${lt_cv_path_NM=no}
11231fi
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11234$as_echo "$lt_cv_path_NM" >&6; }
11235if test no != "$lt_cv_path_NM"; then
11236  NM=$lt_cv_path_NM
11237else
11238  # Didn't find any BSD compatible name lister, look for dumpbin.
11239  if test -n "$DUMPBIN"; then :
11240    # Let the user override the test.
11241  else
11242    if test -n "$ac_tool_prefix"; then
11243  for ac_prog in dumpbin "link -dump"
11244  do
11245    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248$as_echo_n "checking for $ac_word... " >&6; }
11249if ${ac_cv_prog_DUMPBIN+:} false; then :
11250  $as_echo_n "(cached) " >&6
11251else
11252  if test -n "$DUMPBIN"; then
11253  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11254else
11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256for as_dir in $PATH
11257do
11258  IFS=$as_save_IFS
11259  test -z "$as_dir" && as_dir=.
11260    for ac_exec_ext in '' $ac_executable_extensions; do
11261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264    break 2
11265  fi
11266done
11267  done
11268IFS=$as_save_IFS
11269
11270fi
11271fi
11272DUMPBIN=$ac_cv_prog_DUMPBIN
11273if test -n "$DUMPBIN"; then
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11275$as_echo "$DUMPBIN" >&6; }
11276else
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278$as_echo "no" >&6; }
11279fi
11280
11281
11282    test -n "$DUMPBIN" && break
11283  done
11284fi
11285if test -z "$DUMPBIN"; then
11286  ac_ct_DUMPBIN=$DUMPBIN
11287  for ac_prog in dumpbin "link -dump"
11288do
11289  # Extract the first word of "$ac_prog", so it can be a program name with args.
11290set dummy $ac_prog; ac_word=$2
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
11293if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11294  $as_echo_n "(cached) " >&6
11295else
11296  if test -n "$ac_ct_DUMPBIN"; then
11297  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302  IFS=$as_save_IFS
11303  test -z "$as_dir" && as_dir=.
11304    for ac_exec_ext in '' $ac_executable_extensions; do
11305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308    break 2
11309  fi
11310done
11311  done
11312IFS=$as_save_IFS
11313
11314fi
11315fi
11316ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11317if test -n "$ac_ct_DUMPBIN"; then
11318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11319$as_echo "$ac_ct_DUMPBIN" >&6; }
11320else
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
11323fi
11324
11325
11326  test -n "$ac_ct_DUMPBIN" && break
11327done
11328
11329  if test "x$ac_ct_DUMPBIN" = x; then
11330    DUMPBIN=":"
11331  else
11332    case $cross_compiling:$ac_tool_warned in
11333yes:)
11334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11336ac_tool_warned=yes ;;
11337esac
11338    DUMPBIN=$ac_ct_DUMPBIN
11339  fi
11340fi
11341
11342    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11343    *COFF*)
11344      DUMPBIN="$DUMPBIN -symbols -headers"
11345      ;;
11346    *)
11347      DUMPBIN=:
11348      ;;
11349    esac
11350  fi
11351
11352  if test : != "$DUMPBIN"; then
11353    NM=$DUMPBIN
11354  fi
11355fi
11356test -z "$NM" && NM=nm
11357
11358
11359
11360
11361
11362
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11364$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11365if ${lt_cv_nm_interface+:} false; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  lt_cv_nm_interface="BSD nm"
11369  echo "int some_variable = 0;" > conftest.$ac_ext
11370  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11371  (eval "$ac_compile" 2>conftest.err)
11372  cat conftest.err >&5
11373  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11374  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11375  cat conftest.err >&5
11376  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11377  cat conftest.out >&5
11378  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11379    lt_cv_nm_interface="MS dumpbin"
11380  fi
11381  rm -f conftest*
11382fi
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11384$as_echo "$lt_cv_nm_interface" >&6; }
11385
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11387$as_echo_n "checking whether ln -s works... " >&6; }
11388LN_S=$as_ln_s
11389if test "$LN_S" = "ln -s"; then
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11391$as_echo "yes" >&6; }
11392else
11393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11394$as_echo "no, using $LN_S" >&6; }
11395fi
11396
11397# find the maximum length of command line arguments
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11399$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11400if ${lt_cv_sys_max_cmd_len+:} false; then :
11401  $as_echo_n "(cached) " >&6
11402else
11403    i=0
11404  teststring=ABCD
11405
11406  case $build_os in
11407  msdosdjgpp*)
11408    # On DJGPP, this test can blow up pretty badly due to problems in libc
11409    # (any single argument exceeding 2000 bytes causes a buffer overrun
11410    # during glob expansion).  Even if it were fixed, the result of this
11411    # check would be larger than it should be.
11412    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11413    ;;
11414
11415  gnu*)
11416    # Under GNU Hurd, this test is not required because there is
11417    # no limit to the length of command line arguments.
11418    # Libtool will interpret -1 as no limit whatsoever
11419    lt_cv_sys_max_cmd_len=-1;
11420    ;;
11421
11422  cygwin* | mingw* | cegcc*)
11423    # On Win9x/ME, this test blows up -- it succeeds, but takes
11424    # about 5 minutes as the teststring grows exponentially.
11425    # Worse, since 9x/ME are not pre-emptively multitasking,
11426    # you end up with a "frozen" computer, even though with patience
11427    # the test eventually succeeds (with a max line length of 256k).
11428    # Instead, let's just punt: use the minimum linelength reported by
11429    # all of the supported platforms: 8192 (on NT/2K/XP).
11430    lt_cv_sys_max_cmd_len=8192;
11431    ;;
11432
11433  mint*)
11434    # On MiNT this can take a long time and run out of memory.
11435    lt_cv_sys_max_cmd_len=8192;
11436    ;;
11437
11438  amigaos*)
11439    # On AmigaOS with pdksh, this test takes hours, literally.
11440    # So we just punt and use a minimum line length of 8192.
11441    lt_cv_sys_max_cmd_len=8192;
11442    ;;
11443
11444  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11445    # This has been around since 386BSD, at least.  Likely further.
11446    if test -x /sbin/sysctl; then
11447      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11448    elif test -x /usr/sbin/sysctl; then
11449      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11450    else
11451      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11452    fi
11453    # And add a safety zone
11454    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11455    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11456    ;;
11457
11458  interix*)
11459    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11460    lt_cv_sys_max_cmd_len=196608
11461    ;;
11462
11463  os2*)
11464    # The test takes a long time on OS/2.
11465    lt_cv_sys_max_cmd_len=8192
11466    ;;
11467
11468  osf*)
11469    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11470    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11471    # nice to cause kernel panics so lets avoid the loop below.
11472    # First set a reasonable default.
11473    lt_cv_sys_max_cmd_len=16384
11474    #
11475    if test -x /sbin/sysconfig; then
11476      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11477        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11478      esac
11479    fi
11480    ;;
11481  sco3.2v5*)
11482    lt_cv_sys_max_cmd_len=102400
11483    ;;
11484  sysv5* | sco5v6* | sysv4.2uw2*)
11485    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11486    if test -n "$kargmax"; then
11487      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11488    else
11489      lt_cv_sys_max_cmd_len=32768
11490    fi
11491    ;;
11492  *)
11493    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11494    if test -n "$lt_cv_sys_max_cmd_len" && \
11495       test undefined != "$lt_cv_sys_max_cmd_len"; then
11496      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11498    else
11499      # Make teststring a little bigger before we do anything with it.
11500      # a 1K string should be a reasonable start.
11501      for i in 1 2 3 4 5 6 7 8; do
11502        teststring=$teststring$teststring
11503      done
11504      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11505      # If test is not a shell built-in, we'll probably end up computing a
11506      # maximum length that is only half of the actual maximum length, but
11507      # we can't tell.
11508      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11509	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11510	      test 17 != "$i" # 1/2 MB should be enough
11511      do
11512        i=`expr $i + 1`
11513        teststring=$teststring$teststring
11514      done
11515      # Only check the string length outside the loop.
11516      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11517      teststring=
11518      # Add a significant safety factor because C++ compilers can tack on
11519      # massive amounts of additional arguments before passing them to the
11520      # linker.  It appears as though 1/2 is a usable value.
11521      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11522    fi
11523    ;;
11524  esac
11525
11526fi
11527
11528if test -n "$lt_cv_sys_max_cmd_len"; then
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11530$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11531else
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11533$as_echo "none" >&6; }
11534fi
11535max_cmd_len=$lt_cv_sys_max_cmd_len
11536
11537
11538
11539
11540
11541
11542: ${CP="cp -f"}
11543: ${MV="mv -f"}
11544: ${RM="rm -f"}
11545
11546if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11547  lt_unset=unset
11548else
11549  lt_unset=false
11550fi
11551
11552
11553
11554
11555
11556# test EBCDIC or ASCII
11557case `echo X|tr X '\101'` in
11558 A) # ASCII based system
11559    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11560  lt_SP2NL='tr \040 \012'
11561  lt_NL2SP='tr \015\012 \040\040'
11562  ;;
11563 *) # EBCDIC based system
11564  lt_SP2NL='tr \100 \n'
11565  lt_NL2SP='tr \r\n \100\100'
11566  ;;
11567esac
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11578$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11579if ${lt_cv_to_host_file_cmd+:} false; then :
11580  $as_echo_n "(cached) " >&6
11581else
11582  case $host in
11583  *-*-mingw* )
11584    case $build in
11585      *-*-mingw* ) # actually msys
11586        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11587        ;;
11588      *-*-cygwin* )
11589        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11590        ;;
11591      * ) # otherwise, assume *nix
11592        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11593        ;;
11594    esac
11595    ;;
11596  *-*-cygwin* )
11597    case $build in
11598      *-*-mingw* ) # actually msys
11599        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11600        ;;
11601      *-*-cygwin* )
11602        lt_cv_to_host_file_cmd=func_convert_file_noop
11603        ;;
11604      * ) # otherwise, assume *nix
11605        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11606        ;;
11607    esac
11608    ;;
11609  * ) # unhandled hosts (and "normal" native builds)
11610    lt_cv_to_host_file_cmd=func_convert_file_noop
11611    ;;
11612esac
11613
11614fi
11615
11616to_host_file_cmd=$lt_cv_to_host_file_cmd
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11618$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11619
11620
11621
11622
11623
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11625$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11626if ${lt_cv_to_tool_file_cmd+:} false; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  #assume ordinary cross tools, or native build.
11630lt_cv_to_tool_file_cmd=func_convert_file_noop
11631case $host in
11632  *-*-mingw* )
11633    case $build in
11634      *-*-mingw* ) # actually msys
11635        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11636        ;;
11637    esac
11638    ;;
11639esac
11640
11641fi
11642
11643to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11645$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11646
11647
11648
11649
11650
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11652$as_echo_n "checking for $LD option to reload object files... " >&6; }
11653if ${lt_cv_ld_reload_flag+:} false; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656  lt_cv_ld_reload_flag='-r'
11657fi
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11659$as_echo "$lt_cv_ld_reload_flag" >&6; }
11660reload_flag=$lt_cv_ld_reload_flag
11661case $reload_flag in
11662"" | " "*) ;;
11663*) reload_flag=" $reload_flag" ;;
11664esac
11665reload_cmds='$LD$reload_flag -o $output$reload_objs'
11666case $host_os in
11667  cygwin* | mingw* | pw32* | cegcc*)
11668    if test yes != "$GCC"; then
11669      reload_cmds=false
11670    fi
11671    ;;
11672  darwin*)
11673    if test yes = "$GCC"; then
11674      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11675    else
11676      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11677    fi
11678    ;;
11679esac
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689if test -n "$ac_tool_prefix"; then
11690  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11691set dummy ${ac_tool_prefix}objdump; ac_word=$2
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693$as_echo_n "checking for $ac_word... " >&6; }
11694if ${ac_cv_prog_OBJDUMP+:} false; then :
11695  $as_echo_n "(cached) " >&6
11696else
11697  if test -n "$OBJDUMP"; then
11698  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11699else
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703  IFS=$as_save_IFS
11704  test -z "$as_dir" && as_dir=.
11705    for ac_exec_ext in '' $ac_executable_extensions; do
11706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11707    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709    break 2
11710  fi
11711done
11712  done
11713IFS=$as_save_IFS
11714
11715fi
11716fi
11717OBJDUMP=$ac_cv_prog_OBJDUMP
11718if test -n "$OBJDUMP"; then
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11720$as_echo "$OBJDUMP" >&6; }
11721else
11722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723$as_echo "no" >&6; }
11724fi
11725
11726
11727fi
11728if test -z "$ac_cv_prog_OBJDUMP"; then
11729  ac_ct_OBJDUMP=$OBJDUMP
11730  # Extract the first word of "objdump", so it can be a program name with args.
11731set dummy objdump; ac_word=$2
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11733$as_echo_n "checking for $ac_word... " >&6; }
11734if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11735  $as_echo_n "(cached) " >&6
11736else
11737  if test -n "$ac_ct_OBJDUMP"; then
11738  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743  IFS=$as_save_IFS
11744  test -z "$as_dir" && as_dir=.
11745    for ac_exec_ext in '' $ac_executable_extensions; do
11746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749    break 2
11750  fi
11751done
11752  done
11753IFS=$as_save_IFS
11754
11755fi
11756fi
11757ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11758if test -n "$ac_ct_OBJDUMP"; then
11759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11760$as_echo "$ac_ct_OBJDUMP" >&6; }
11761else
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765
11766  if test "x$ac_ct_OBJDUMP" = x; then
11767    OBJDUMP="false"
11768  else
11769    case $cross_compiling:$ac_tool_warned in
11770yes:)
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773ac_tool_warned=yes ;;
11774esac
11775    OBJDUMP=$ac_ct_OBJDUMP
11776  fi
11777else
11778  OBJDUMP="$ac_cv_prog_OBJDUMP"
11779fi
11780
11781test -z "$OBJDUMP" && OBJDUMP=objdump
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11792$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11793if ${lt_cv_deplibs_check_method+:} false; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  lt_cv_file_magic_cmd='$MAGIC_CMD'
11797lt_cv_file_magic_test_file=
11798lt_cv_deplibs_check_method='unknown'
11799# Need to set the preceding variable on all platforms that support
11800# interlibrary dependencies.
11801# 'none' -- dependencies not supported.
11802# 'unknown' -- same as none, but documents that we really don't know.
11803# 'pass_all' -- all dependencies passed with no checks.
11804# 'test_compile' -- check by making test program.
11805# 'file_magic [[regex]]' -- check by looking for files in library path
11806# that responds to the $file_magic_cmd with a given extended regex.
11807# If you have 'file' or equivalent on your system and you're not sure
11808# whether 'pass_all' will *always* work, you probably want this one.
11809
11810case $host_os in
11811aix[4-9]*)
11812  lt_cv_deplibs_check_method=pass_all
11813  ;;
11814
11815beos*)
11816  lt_cv_deplibs_check_method=pass_all
11817  ;;
11818
11819bsdi[45]*)
11820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11821  lt_cv_file_magic_cmd='/usr/bin/file -L'
11822  lt_cv_file_magic_test_file=/shlib/libc.so
11823  ;;
11824
11825cygwin*)
11826  # func_win32_libid is a shell function defined in ltmain.sh
11827  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11828  lt_cv_file_magic_cmd='func_win32_libid'
11829  ;;
11830
11831mingw* | pw32*)
11832  # Base MSYS/MinGW do not provide the 'file' command needed by
11833  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11834  # unless we find 'file', for example because we are cross-compiling.
11835  if ( file / ) >/dev/null 2>&1; then
11836    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11837    lt_cv_file_magic_cmd='func_win32_libid'
11838  else
11839    # Keep this pattern in sync with the one in func_win32_libid.
11840    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11841    lt_cv_file_magic_cmd='$OBJDUMP -f'
11842  fi
11843  ;;
11844
11845cegcc*)
11846  # use the weaker test based on 'objdump'. See mingw*.
11847  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11848  lt_cv_file_magic_cmd='$OBJDUMP -f'
11849  ;;
11850
11851darwin* | rhapsody*)
11852  lt_cv_deplibs_check_method=pass_all
11853  ;;
11854
11855freebsd* | dragonfly*)
11856  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11857    case $host_cpu in
11858    i*86 )
11859      # Not sure whether the presence of OpenBSD here was a mistake.
11860      # Let's accept both of them until this is cleared up.
11861      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11862      lt_cv_file_magic_cmd=/usr/bin/file
11863      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11864      ;;
11865    esac
11866  else
11867    lt_cv_deplibs_check_method=pass_all
11868  fi
11869  ;;
11870
11871haiku*)
11872  lt_cv_deplibs_check_method=pass_all
11873  ;;
11874
11875hpux10.20* | hpux11*)
11876  lt_cv_file_magic_cmd=/usr/bin/file
11877  case $host_cpu in
11878  ia64*)
11879    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11880    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11881    ;;
11882  hppa*64*)
11883    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]'
11884    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11885    ;;
11886  *)
11887    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11888    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11889    ;;
11890  esac
11891  ;;
11892
11893interix[3-9]*)
11894  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11895  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11896  ;;
11897
11898irix5* | irix6* | nonstopux*)
11899  case $LD in
11900  *-32|*"-32 ") libmagic=32-bit;;
11901  *-n32|*"-n32 ") libmagic=N32;;
11902  *-64|*"-64 ") libmagic=64-bit;;
11903  *) libmagic=never-match;;
11904  esac
11905  lt_cv_deplibs_check_method=pass_all
11906  ;;
11907
11908# This must be glibc/ELF.
11909linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11910  lt_cv_deplibs_check_method=pass_all
11911  ;;
11912
11913netbsd*)
11914  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11916  else
11917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11918  fi
11919  ;;
11920
11921newos6*)
11922  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11923  lt_cv_file_magic_cmd=/usr/bin/file
11924  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11925  ;;
11926
11927*nto* | *qnx*)
11928  lt_cv_deplibs_check_method=pass_all
11929  ;;
11930
11931openbsd* | bitrig*)
11932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11933    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11934  else
11935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11936  fi
11937  ;;
11938
11939osf3* | osf4* | osf5*)
11940  lt_cv_deplibs_check_method=pass_all
11941  ;;
11942
11943rdos*)
11944  lt_cv_deplibs_check_method=pass_all
11945  ;;
11946
11947solaris*)
11948  lt_cv_deplibs_check_method=pass_all
11949  ;;
11950
11951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11952  lt_cv_deplibs_check_method=pass_all
11953  ;;
11954
11955sysv4 | sysv4.3*)
11956  case $host_vendor in
11957  motorola)
11958    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]'
11959    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11960    ;;
11961  ncr)
11962    lt_cv_deplibs_check_method=pass_all
11963    ;;
11964  sequent)
11965    lt_cv_file_magic_cmd='/bin/file'
11966    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11967    ;;
11968  sni)
11969    lt_cv_file_magic_cmd='/bin/file'
11970    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11971    lt_cv_file_magic_test_file=/lib/libc.so
11972    ;;
11973  siemens)
11974    lt_cv_deplibs_check_method=pass_all
11975    ;;
11976  pc)
11977    lt_cv_deplibs_check_method=pass_all
11978    ;;
11979  esac
11980  ;;
11981
11982tpf*)
11983  lt_cv_deplibs_check_method=pass_all
11984  ;;
11985os2*)
11986  lt_cv_deplibs_check_method=pass_all
11987  ;;
11988esac
11989
11990fi
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11992$as_echo "$lt_cv_deplibs_check_method" >&6; }
11993
11994file_magic_glob=
11995want_nocaseglob=no
11996if test "$build" = "$host"; then
11997  case $host_os in
11998  mingw* | pw32*)
11999    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12000      want_nocaseglob=yes
12001    else
12002      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12003    fi
12004    ;;
12005  esac
12006fi
12007
12008file_magic_cmd=$lt_cv_file_magic_cmd
12009deplibs_check_method=$lt_cv_deplibs_check_method
12010test -z "$deplibs_check_method" && deplibs_check_method=unknown
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033if test -n "$ac_tool_prefix"; then
12034  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12035set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if ${ac_cv_prog_DLLTOOL+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  if test -n "$DLLTOOL"; then
12042  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047  IFS=$as_save_IFS
12048  test -z "$as_dir" && as_dir=.
12049    for ac_exec_ext in '' $ac_executable_extensions; do
12050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053    break 2
12054  fi
12055done
12056  done
12057IFS=$as_save_IFS
12058
12059fi
12060fi
12061DLLTOOL=$ac_cv_prog_DLLTOOL
12062if test -n "$DLLTOOL"; then
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12064$as_echo "$DLLTOOL" >&6; }
12065else
12066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
12068fi
12069
12070
12071fi
12072if test -z "$ac_cv_prog_DLLTOOL"; then
12073  ac_ct_DLLTOOL=$DLLTOOL
12074  # Extract the first word of "dlltool", so it can be a program name with args.
12075set dummy dlltool; ac_word=$2
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
12078if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  if test -n "$ac_ct_DLLTOOL"; then
12082  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12083else
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087  IFS=$as_save_IFS
12088  test -z "$as_dir" && as_dir=.
12089    for ac_exec_ext in '' $ac_executable_extensions; do
12090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093    break 2
12094  fi
12095done
12096  done
12097IFS=$as_save_IFS
12098
12099fi
12100fi
12101ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12102if test -n "$ac_ct_DLLTOOL"; then
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12104$as_echo "$ac_ct_DLLTOOL" >&6; }
12105else
12106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108fi
12109
12110  if test "x$ac_ct_DLLTOOL" = x; then
12111    DLLTOOL="false"
12112  else
12113    case $cross_compiling:$ac_tool_warned in
12114yes:)
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12117ac_tool_warned=yes ;;
12118esac
12119    DLLTOOL=$ac_ct_DLLTOOL
12120  fi
12121else
12122  DLLTOOL="$ac_cv_prog_DLLTOOL"
12123fi
12124
12125test -z "$DLLTOOL" && DLLTOOL=dlltool
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12137$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12138if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12139  $as_echo_n "(cached) " >&6
12140else
12141  lt_cv_sharedlib_from_linklib_cmd='unknown'
12142
12143case $host_os in
12144cygwin* | mingw* | pw32* | cegcc*)
12145  # two different shell functions defined in ltmain.sh;
12146  # decide which one to use based on capabilities of $DLLTOOL
12147  case `$DLLTOOL --help 2>&1` in
12148  *--identify-strict*)
12149    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12150    ;;
12151  *)
12152    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12153    ;;
12154  esac
12155  ;;
12156*)
12157  # fallback: assume linklib IS sharedlib
12158  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12159  ;;
12160esac
12161
12162fi
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12164$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12165sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12166test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12167
12168
12169
12170
12171
12172
12173
12174if test -n "$ac_tool_prefix"; then
12175  for ac_prog in ar
12176  do
12177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
12181if ${ac_cv_prog_AR+:} false; then :
12182  $as_echo_n "(cached) " >&6
12183else
12184  if test -n "$AR"; then
12185  ac_cv_prog_AR="$AR" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190  IFS=$as_save_IFS
12191  test -z "$as_dir" && as_dir=.
12192    for ac_exec_ext in '' $ac_executable_extensions; do
12193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196    break 2
12197  fi
12198done
12199  done
12200IFS=$as_save_IFS
12201
12202fi
12203fi
12204AR=$ac_cv_prog_AR
12205if test -n "$AR"; then
12206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12207$as_echo "$AR" >&6; }
12208else
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212
12213
12214    test -n "$AR" && break
12215  done
12216fi
12217if test -z "$AR"; then
12218  ac_ct_AR=$AR
12219  for ac_prog in ar
12220do
12221  # Extract the first word of "$ac_prog", so it can be a program name with args.
12222set dummy $ac_prog; ac_word=$2
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if ${ac_cv_prog_ac_ct_AR+:} false; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  if test -n "$ac_ct_AR"; then
12229  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234  IFS=$as_save_IFS
12235  test -z "$as_dir" && as_dir=.
12236    for ac_exec_ext in '' $ac_executable_extensions; do
12237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238    ac_cv_prog_ac_ct_AR="$ac_prog"
12239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240    break 2
12241  fi
12242done
12243  done
12244IFS=$as_save_IFS
12245
12246fi
12247fi
12248ac_ct_AR=$ac_cv_prog_ac_ct_AR
12249if test -n "$ac_ct_AR"; then
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12251$as_echo "$ac_ct_AR" >&6; }
12252else
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257
12258  test -n "$ac_ct_AR" && break
12259done
12260
12261  if test "x$ac_ct_AR" = x; then
12262    AR="false"
12263  else
12264    case $cross_compiling:$ac_tool_warned in
12265yes:)
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12268ac_tool_warned=yes ;;
12269esac
12270    AR=$ac_ct_AR
12271  fi
12272fi
12273
12274: ${AR=ar}
12275: ${AR_FLAGS=cru}
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12288$as_echo_n "checking for archiver @FILE support... " >&6; }
12289if ${lt_cv_ar_at_file+:} false; then :
12290  $as_echo_n "(cached) " >&6
12291else
12292  lt_cv_ar_at_file=no
12293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294/* end confdefs.h.  */
12295
12296int
12297main ()
12298{
12299
12300  ;
12301  return 0;
12302}
12303_ACEOF
12304if ac_fn_c_try_compile "$LINENO"; then :
12305  echo conftest.$ac_objext > conftest.lst
12306      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12307      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12308  (eval $lt_ar_try) 2>&5
12309  ac_status=$?
12310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311  test $ac_status = 0; }
12312      if test 0 -eq "$ac_status"; then
12313	# Ensure the archiver fails upon bogus file names.
12314	rm -f conftest.$ac_objext libconftest.a
12315	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12316  (eval $lt_ar_try) 2>&5
12317  ac_status=$?
12318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319  test $ac_status = 0; }
12320	if test 0 -ne "$ac_status"; then
12321          lt_cv_ar_at_file=@
12322        fi
12323      fi
12324      rm -f conftest.* libconftest.a
12325
12326fi
12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12331$as_echo "$lt_cv_ar_at_file" >&6; }
12332
12333if test no = "$lt_cv_ar_at_file"; then
12334  archiver_list_spec=
12335else
12336  archiver_list_spec=$lt_cv_ar_at_file
12337fi
12338
12339
12340
12341
12342
12343
12344
12345if test -n "$ac_tool_prefix"; then
12346  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12347set dummy ${ac_tool_prefix}strip; ac_word=$2
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349$as_echo_n "checking for $ac_word... " >&6; }
12350if ${ac_cv_prog_STRIP+:} false; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  if test -n "$STRIP"; then
12354  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12355else
12356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359  IFS=$as_save_IFS
12360  test -z "$as_dir" && as_dir=.
12361    for ac_exec_ext in '' $ac_executable_extensions; do
12362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12363    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365    break 2
12366  fi
12367done
12368  done
12369IFS=$as_save_IFS
12370
12371fi
12372fi
12373STRIP=$ac_cv_prog_STRIP
12374if test -n "$STRIP"; then
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12376$as_echo "$STRIP" >&6; }
12377else
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379$as_echo "no" >&6; }
12380fi
12381
12382
12383fi
12384if test -z "$ac_cv_prog_STRIP"; then
12385  ac_ct_STRIP=$STRIP
12386  # Extract the first word of "strip", so it can be a program name with args.
12387set dummy strip; ac_word=$2
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389$as_echo_n "checking for $ac_word... " >&6; }
12390if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12391  $as_echo_n "(cached) " >&6
12392else
12393  if test -n "$ac_ct_STRIP"; then
12394  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12395else
12396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397for as_dir in $PATH
12398do
12399  IFS=$as_save_IFS
12400  test -z "$as_dir" && as_dir=.
12401    for ac_exec_ext in '' $ac_executable_extensions; do
12402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403    ac_cv_prog_ac_ct_STRIP="strip"
12404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405    break 2
12406  fi
12407done
12408  done
12409IFS=$as_save_IFS
12410
12411fi
12412fi
12413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12414if test -n "$ac_ct_STRIP"; then
12415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12416$as_echo "$ac_ct_STRIP" >&6; }
12417else
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419$as_echo "no" >&6; }
12420fi
12421
12422  if test "x$ac_ct_STRIP" = x; then
12423    STRIP=":"
12424  else
12425    case $cross_compiling:$ac_tool_warned in
12426yes:)
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12429ac_tool_warned=yes ;;
12430esac
12431    STRIP=$ac_ct_STRIP
12432  fi
12433else
12434  STRIP="$ac_cv_prog_STRIP"
12435fi
12436
12437test -z "$STRIP" && STRIP=:
12438
12439
12440
12441
12442
12443
12444if test -n "$ac_tool_prefix"; then
12445  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448$as_echo_n "checking for $ac_word... " >&6; }
12449if ${ac_cv_prog_RANLIB+:} false; then :
12450  $as_echo_n "(cached) " >&6
12451else
12452  if test -n "$RANLIB"; then
12453  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12454else
12455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456for as_dir in $PATH
12457do
12458  IFS=$as_save_IFS
12459  test -z "$as_dir" && as_dir=.
12460    for ac_exec_ext in '' $ac_executable_extensions; do
12461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12462    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12464    break 2
12465  fi
12466done
12467  done
12468IFS=$as_save_IFS
12469
12470fi
12471fi
12472RANLIB=$ac_cv_prog_RANLIB
12473if test -n "$RANLIB"; then
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12475$as_echo "$RANLIB" >&6; }
12476else
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478$as_echo "no" >&6; }
12479fi
12480
12481
12482fi
12483if test -z "$ac_cv_prog_RANLIB"; then
12484  ac_ct_RANLIB=$RANLIB
12485  # Extract the first word of "ranlib", so it can be a program name with args.
12486set dummy ranlib; ac_word=$2
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488$as_echo_n "checking for $ac_word... " >&6; }
12489if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492  if test -n "$ac_ct_RANLIB"; then
12493  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12494else
12495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $PATH
12497do
12498  IFS=$as_save_IFS
12499  test -z "$as_dir" && as_dir=.
12500    for ac_exec_ext in '' $ac_executable_extensions; do
12501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502    ac_cv_prog_ac_ct_RANLIB="ranlib"
12503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504    break 2
12505  fi
12506done
12507  done
12508IFS=$as_save_IFS
12509
12510fi
12511fi
12512ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12513if test -n "$ac_ct_RANLIB"; then
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12515$as_echo "$ac_ct_RANLIB" >&6; }
12516else
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518$as_echo "no" >&6; }
12519fi
12520
12521  if test "x$ac_ct_RANLIB" = x; then
12522    RANLIB=":"
12523  else
12524    case $cross_compiling:$ac_tool_warned in
12525yes:)
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528ac_tool_warned=yes ;;
12529esac
12530    RANLIB=$ac_ct_RANLIB
12531  fi
12532else
12533  RANLIB="$ac_cv_prog_RANLIB"
12534fi
12535
12536test -z "$RANLIB" && RANLIB=:
12537
12538
12539
12540
12541
12542
12543# Determine commands to create old-style static archives.
12544old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12545old_postinstall_cmds='chmod 644 $oldlib'
12546old_postuninstall_cmds=
12547
12548if test -n "$RANLIB"; then
12549  case $host_os in
12550  bitrig* | openbsd*)
12551    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12552    ;;
12553  *)
12554    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12555    ;;
12556  esac
12557  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12558fi
12559
12560case $host_os in
12561  darwin*)
12562    lock_old_archive_extraction=yes ;;
12563  *)
12564    lock_old_archive_extraction=no ;;
12565esac
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605# If no C compiler was specified, use CC.
12606LTCC=${LTCC-"$CC"}
12607
12608# If no C compiler flags were specified, use CFLAGS.
12609LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12610
12611# Allow CC to be a program name with arguments.
12612compiler=$CC
12613
12614
12615# Check for command to grab the raw symbol name followed by C symbol from nm.
12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12617$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12618if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12619  $as_echo_n "(cached) " >&6
12620else
12621
12622# These are sane defaults that work on at least a few old systems.
12623# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12624
12625# Character class describing NM global symbol codes.
12626symcode='[BCDEGRST]'
12627
12628# Regexp to match symbols that can be accessed directly from C.
12629sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12630
12631# Define system-specific variables.
12632case $host_os in
12633aix*)
12634  symcode='[BCDT]'
12635  ;;
12636cygwin* | mingw* | pw32* | cegcc*)
12637  symcode='[ABCDGISTW]'
12638  ;;
12639hpux*)
12640  if test ia64 = "$host_cpu"; then
12641    symcode='[ABCDEGRST]'
12642  fi
12643  ;;
12644irix* | nonstopux*)
12645  symcode='[BCDEGRST]'
12646  ;;
12647osf*)
12648  symcode='[BCDEGQRST]'
12649  ;;
12650solaris*)
12651  symcode='[BDRT]'
12652  ;;
12653sco3.2v5*)
12654  symcode='[DT]'
12655  ;;
12656sysv4.2uw2*)
12657  symcode='[DT]'
12658  ;;
12659sysv5* | sco5v6* | unixware* | OpenUNIX*)
12660  symcode='[ABDT]'
12661  ;;
12662sysv4)
12663  symcode='[DFNSTU]'
12664  ;;
12665esac
12666
12667# If we're using GNU nm, then use its standard symbol codes.
12668case `$NM -V 2>&1` in
12669*GNU* | *'with BFD'*)
12670  symcode='[ABCDGIRSTW]' ;;
12671esac
12672
12673if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12674  # Gets list of data symbols to import.
12675  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12676  # Adjust the below global symbol transforms to fixup imported variables.
12677  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12678  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12679  lt_c_name_lib_hook="\
12680  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12681  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12682else
12683  # Disable hooks by default.
12684  lt_cv_sys_global_symbol_to_import=
12685  lt_cdecl_hook=
12686  lt_c_name_hook=
12687  lt_c_name_lib_hook=
12688fi
12689
12690# Transform an extracted symbol line into a proper C declaration.
12691# Some systems (esp. on ia64) link data and code symbols differently,
12692# so use this general approach.
12693lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12694$lt_cdecl_hook\
12695" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12696" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12697
12698# Transform an extracted symbol line into symbol name and symbol address
12699lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12700$lt_c_name_hook\
12701" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12702" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12703
12704# Transform an extracted symbol line into symbol name with lib prefix and
12705# symbol address.
12706lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12707$lt_c_name_lib_hook\
12708" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12709" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12710" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12711
12712# Handle CRLF in mingw tool chain
12713opt_cr=
12714case $build_os in
12715mingw*)
12716  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12717  ;;
12718esac
12719
12720# Try without a prefix underscore, then with it.
12721for ac_symprfx in "" "_"; do
12722
12723  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12724  symxfrm="\\1 $ac_symprfx\\2 \\2"
12725
12726  # Write the raw and C identifiers.
12727  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12728    # Fake it for dumpbin and say T for any non-static function,
12729    # D for any global variable and I for any imported variable.
12730    # Also find C++ and __fastcall symbols from MSVC++,
12731    # which start with @ or ?.
12732    lt_cv_sys_global_symbol_pipe="$AWK '"\
12733"     {last_section=section; section=\$ 3};"\
12734"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12735"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12736"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12737"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12738"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12739"     \$ 0!~/External *\|/{next};"\
12740"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12741"     {if(hide[section]) next};"\
12742"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12743"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12744"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12745"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12746"     ' prfx=^$ac_symprfx"
12747  else
12748    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12749  fi
12750  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12751
12752  # Check to see that the pipe works correctly.
12753  pipe_works=no
12754
12755  rm -f conftest*
12756  cat > conftest.$ac_ext <<_LT_EOF
12757#ifdef __cplusplus
12758extern "C" {
12759#endif
12760char nm_test_var;
12761void nm_test_func(void);
12762void nm_test_func(void){}
12763#ifdef __cplusplus
12764}
12765#endif
12766int main(){nm_test_var='a';nm_test_func();return(0);}
12767_LT_EOF
12768
12769  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12770  (eval $ac_compile) 2>&5
12771  ac_status=$?
12772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773  test $ac_status = 0; }; then
12774    # Now try to grab the symbols.
12775    nlist=conftest.nm
12776    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12777  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12778  ac_status=$?
12779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780  test $ac_status = 0; } && test -s "$nlist"; then
12781      # Try sorting and uniquifying the output.
12782      if sort "$nlist" | uniq > "$nlist"T; then
12783	mv -f "$nlist"T "$nlist"
12784      else
12785	rm -f "$nlist"T
12786      fi
12787
12788      # Make sure that we snagged all the symbols we need.
12789      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12790	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12791	  cat <<_LT_EOF > conftest.$ac_ext
12792/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12793#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12794/* DATA imports from DLLs on WIN32 can't be const, because runtime
12795   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12796# define LT_DLSYM_CONST
12797#elif defined __osf__
12798/* This system does not cope well with relocations in const data.  */
12799# define LT_DLSYM_CONST
12800#else
12801# define LT_DLSYM_CONST const
12802#endif
12803
12804#ifdef __cplusplus
12805extern "C" {
12806#endif
12807
12808_LT_EOF
12809	  # Now generate the symbol file.
12810	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12811
12812	  cat <<_LT_EOF >> conftest.$ac_ext
12813
12814/* The mapping between symbol names and symbols.  */
12815LT_DLSYM_CONST struct {
12816  const char *name;
12817  void       *address;
12818}
12819lt__PROGRAM__LTX_preloaded_symbols[] =
12820{
12821  { "@PROGRAM@", (void *) 0 },
12822_LT_EOF
12823	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12824	  cat <<\_LT_EOF >> conftest.$ac_ext
12825  {0, (void *) 0}
12826};
12827
12828/* This works around a problem in FreeBSD linker */
12829#ifdef FREEBSD_WORKAROUND
12830static const void *lt_preloaded_setup() {
12831  return lt__PROGRAM__LTX_preloaded_symbols;
12832}
12833#endif
12834
12835#ifdef __cplusplus
12836}
12837#endif
12838_LT_EOF
12839	  # Now try linking the two files.
12840	  mv conftest.$ac_objext conftstm.$ac_objext
12841	  lt_globsym_save_LIBS=$LIBS
12842	  lt_globsym_save_CFLAGS=$CFLAGS
12843	  LIBS=conftstm.$ac_objext
12844	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12845	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12846  (eval $ac_link) 2>&5
12847  ac_status=$?
12848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12849  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12850	    pipe_works=yes
12851	  fi
12852	  LIBS=$lt_globsym_save_LIBS
12853	  CFLAGS=$lt_globsym_save_CFLAGS
12854	else
12855	  echo "cannot find nm_test_func in $nlist" >&5
12856	fi
12857      else
12858	echo "cannot find nm_test_var in $nlist" >&5
12859      fi
12860    else
12861      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12862    fi
12863  else
12864    echo "$progname: failed program was:" >&5
12865    cat conftest.$ac_ext >&5
12866  fi
12867  rm -rf conftest* conftst*
12868
12869  # Do not use the global_symbol_pipe unless it works.
12870  if test yes = "$pipe_works"; then
12871    break
12872  else
12873    lt_cv_sys_global_symbol_pipe=
12874  fi
12875done
12876
12877fi
12878
12879if test -z "$lt_cv_sys_global_symbol_pipe"; then
12880  lt_cv_sys_global_symbol_to_cdecl=
12881fi
12882if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12884$as_echo "failed" >&6; }
12885else
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12887$as_echo "ok" >&6; }
12888fi
12889
12890# Response file support.
12891if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12892  nm_file_list_spec='@'
12893elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12894  nm_file_list_spec='@'
12895fi
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12934$as_echo_n "checking for sysroot... " >&6; }
12935
12936# Check whether --with-sysroot was given.
12937if test "${with_sysroot+set}" = set; then :
12938  withval=$with_sysroot;
12939else
12940  with_sysroot=no
12941fi
12942
12943
12944lt_sysroot=
12945case $with_sysroot in #(
12946 yes)
12947   if test yes = "$GCC"; then
12948     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12949   fi
12950   ;; #(
12951 /*)
12952   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12953   ;; #(
12954 no|'')
12955   ;; #(
12956 *)
12957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12958$as_echo "$with_sysroot" >&6; }
12959   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12960   ;;
12961esac
12962
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12964$as_echo "${lt_sysroot:-no}" >&6; }
12965
12966
12967
12968
12969
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12971$as_echo_n "checking for a working dd... " >&6; }
12972if ${ac_cv_path_lt_DD+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975  printf 0123456789abcdef0123456789abcdef >conftest.i
12976cat conftest.i conftest.i >conftest2.i
12977: ${lt_DD:=$DD}
12978if test -z "$lt_DD"; then
12979  ac_path_lt_DD_found=false
12980  # Loop through the user's path and test for each of PROGNAME-LIST
12981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982for as_dir in $PATH
12983do
12984  IFS=$as_save_IFS
12985  test -z "$as_dir" && as_dir=.
12986    for ac_prog in dd; do
12987    for ac_exec_ext in '' $ac_executable_extensions; do
12988      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12989      as_fn_executable_p "$ac_path_lt_DD" || continue
12990if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12991  cmp -s conftest.i conftest.out \
12992  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12993fi
12994      $ac_path_lt_DD_found && break 3
12995    done
12996  done
12997  done
12998IFS=$as_save_IFS
12999  if test -z "$ac_cv_path_lt_DD"; then
13000    :
13001  fi
13002else
13003  ac_cv_path_lt_DD=$lt_DD
13004fi
13005
13006rm -f conftest.i conftest2.i conftest.out
13007fi
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13009$as_echo "$ac_cv_path_lt_DD" >&6; }
13010
13011
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13013$as_echo_n "checking how to truncate binary pipes... " >&6; }
13014if ${lt_cv_truncate_bin+:} false; then :
13015  $as_echo_n "(cached) " >&6
13016else
13017  printf 0123456789abcdef0123456789abcdef >conftest.i
13018cat conftest.i conftest.i >conftest2.i
13019lt_cv_truncate_bin=
13020if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13021  cmp -s conftest.i conftest.out \
13022  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13023fi
13024rm -f conftest.i conftest2.i conftest.out
13025test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13026fi
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13028$as_echo "$lt_cv_truncate_bin" >&6; }
13029
13030
13031
13032
13033
13034
13035
13036# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13037func_cc_basename ()
13038{
13039    for cc_temp in $*""; do
13040      case $cc_temp in
13041        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13042        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13043        \-*) ;;
13044        *) break;;
13045      esac
13046    done
13047    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13048}
13049
13050# Check whether --enable-libtool-lock was given.
13051if test "${enable_libtool_lock+set}" = set; then :
13052  enableval=$enable_libtool_lock;
13053fi
13054
13055test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13056
13057# Some flags need to be propagated to the compiler or linker for good
13058# libtool support.
13059case $host in
13060ia64-*-hpux*)
13061  # Find out what ABI is being produced by ac_compile, and set mode
13062  # options accordingly.
13063  echo 'int i;' > conftest.$ac_ext
13064  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13065  (eval $ac_compile) 2>&5
13066  ac_status=$?
13067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068  test $ac_status = 0; }; then
13069    case `/usr/bin/file conftest.$ac_objext` in
13070      *ELF-32*)
13071	HPUX_IA64_MODE=32
13072	;;
13073      *ELF-64*)
13074	HPUX_IA64_MODE=64
13075	;;
13076    esac
13077  fi
13078  rm -rf conftest*
13079  ;;
13080*-*-irix6*)
13081  # Find out what ABI is being produced by ac_compile, and set linker
13082  # options accordingly.
13083  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13084  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13085  (eval $ac_compile) 2>&5
13086  ac_status=$?
13087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088  test $ac_status = 0; }; then
13089    if test yes = "$lt_cv_prog_gnu_ld"; then
13090      case `/usr/bin/file conftest.$ac_objext` in
13091	*32-bit*)
13092	  LD="${LD-ld} -melf32bsmip"
13093	  ;;
13094	*N32*)
13095	  LD="${LD-ld} -melf32bmipn32"
13096	  ;;
13097	*64-bit*)
13098	  LD="${LD-ld} -melf64bmip"
13099	;;
13100      esac
13101    else
13102      case `/usr/bin/file conftest.$ac_objext` in
13103	*32-bit*)
13104	  LD="${LD-ld} -32"
13105	  ;;
13106	*N32*)
13107	  LD="${LD-ld} -n32"
13108	  ;;
13109	*64-bit*)
13110	  LD="${LD-ld} -64"
13111	  ;;
13112      esac
13113    fi
13114  fi
13115  rm -rf conftest*
13116  ;;
13117
13118mips64*-*linux*)
13119  # Find out what ABI is being produced by ac_compile, and set linker
13120  # options accordingly.
13121  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13122  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13123  (eval $ac_compile) 2>&5
13124  ac_status=$?
13125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126  test $ac_status = 0; }; then
13127    emul=elf
13128    case `/usr/bin/file conftest.$ac_objext` in
13129      *32-bit*)
13130	emul="${emul}32"
13131	;;
13132      *64-bit*)
13133	emul="${emul}64"
13134	;;
13135    esac
13136    case `/usr/bin/file conftest.$ac_objext` in
13137      *MSB*)
13138	emul="${emul}btsmip"
13139	;;
13140      *LSB*)
13141	emul="${emul}ltsmip"
13142	;;
13143    esac
13144    case `/usr/bin/file conftest.$ac_objext` in
13145      *N32*)
13146	emul="${emul}n32"
13147	;;
13148    esac
13149    LD="${LD-ld} -m $emul"
13150  fi
13151  rm -rf conftest*
13152  ;;
13153
13154x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13155s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13156  # Find out what ABI is being produced by ac_compile, and set linker
13157  # options accordingly.  Note that the listed cases only cover the
13158  # situations where additional linker options are needed (such as when
13159  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13160  # vice versa); the common cases where no linker options are needed do
13161  # not appear in the list.
13162  echo 'int i;' > conftest.$ac_ext
13163  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13164  (eval $ac_compile) 2>&5
13165  ac_status=$?
13166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167  test $ac_status = 0; }; then
13168    case `/usr/bin/file conftest.o` in
13169      *32-bit*)
13170	case $host in
13171	  x86_64-*kfreebsd*-gnu)
13172	    LD="${LD-ld} -m elf_i386_fbsd"
13173	    ;;
13174	  x86_64-*linux*)
13175	    case `/usr/bin/file conftest.o` in
13176	      *x86-64*)
13177		LD="${LD-ld} -m elf32_x86_64"
13178		;;
13179	      *)
13180		LD="${LD-ld} -m elf_i386"
13181		;;
13182	    esac
13183	    ;;
13184	  powerpc64le-*linux*)
13185	    LD="${LD-ld} -m elf32lppclinux"
13186	    ;;
13187	  powerpc64-*linux*)
13188	    LD="${LD-ld} -m elf32ppclinux"
13189	    ;;
13190	  s390x-*linux*)
13191	    LD="${LD-ld} -m elf_s390"
13192	    ;;
13193	  sparc64-*linux*)
13194	    LD="${LD-ld} -m elf32_sparc"
13195	    ;;
13196	esac
13197	;;
13198      *64-bit*)
13199	case $host in
13200	  x86_64-*kfreebsd*-gnu)
13201	    LD="${LD-ld} -m elf_x86_64_fbsd"
13202	    ;;
13203	  x86_64-*linux*)
13204	    LD="${LD-ld} -m elf_x86_64"
13205	    ;;
13206	  powerpcle-*linux*)
13207	    LD="${LD-ld} -m elf64lppc"
13208	    ;;
13209	  powerpc-*linux*)
13210	    LD="${LD-ld} -m elf64ppc"
13211	    ;;
13212	  s390*-*linux*|s390*-*tpf*)
13213	    LD="${LD-ld} -m elf64_s390"
13214	    ;;
13215	  sparc*-*linux*)
13216	    LD="${LD-ld} -m elf64_sparc"
13217	    ;;
13218	esac
13219	;;
13220    esac
13221  fi
13222  rm -rf conftest*
13223  ;;
13224
13225*-*-sco3.2v5*)
13226  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13227  SAVE_CFLAGS=$CFLAGS
13228  CFLAGS="$CFLAGS -belf"
13229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13230$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13231if ${lt_cv_cc_needs_belf+:} false; then :
13232  $as_echo_n "(cached) " >&6
13233else
13234  ac_ext=c
13235ac_cpp='$CPP $CPPFLAGS'
13236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238ac_compiler_gnu=$ac_cv_c_compiler_gnu
13239
13240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242
13243int
13244main ()
13245{
13246
13247  ;
13248  return 0;
13249}
13250_ACEOF
13251if ac_fn_c_try_link "$LINENO"; then :
13252  lt_cv_cc_needs_belf=yes
13253else
13254  lt_cv_cc_needs_belf=no
13255fi
13256rm -f core conftest.err conftest.$ac_objext \
13257    conftest$ac_exeext conftest.$ac_ext
13258     ac_ext=c
13259ac_cpp='$CPP $CPPFLAGS'
13260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262ac_compiler_gnu=$ac_cv_c_compiler_gnu
13263
13264fi
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13266$as_echo "$lt_cv_cc_needs_belf" >&6; }
13267  if test yes != "$lt_cv_cc_needs_belf"; then
13268    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13269    CFLAGS=$SAVE_CFLAGS
13270  fi
13271  ;;
13272*-*solaris*)
13273  # Find out what ABI is being produced by ac_compile, and set linker
13274  # options accordingly.
13275  echo 'int i;' > conftest.$ac_ext
13276  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13277  (eval $ac_compile) 2>&5
13278  ac_status=$?
13279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280  test $ac_status = 0; }; then
13281    case `/usr/bin/file conftest.o` in
13282    *64-bit*)
13283      case $lt_cv_prog_gnu_ld in
13284      yes*)
13285        case $host in
13286        i?86-*-solaris*|x86_64-*-solaris*)
13287          LD="${LD-ld} -m elf_x86_64"
13288          ;;
13289        sparc*-*-solaris*)
13290          LD="${LD-ld} -m elf64_sparc"
13291          ;;
13292        esac
13293        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13294        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13295          LD=${LD-ld}_sol2
13296        fi
13297        ;;
13298      *)
13299	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13300	  LD="${LD-ld} -64"
13301	fi
13302	;;
13303      esac
13304      ;;
13305    esac
13306  fi
13307  rm -rf conftest*
13308  ;;
13309esac
13310
13311need_locks=$enable_libtool_lock
13312
13313if test -n "$ac_tool_prefix"; then
13314  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13315set dummy ${ac_tool_prefix}mt; ac_word=$2
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
13318if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13319  $as_echo_n "(cached) " >&6
13320else
13321  if test -n "$MANIFEST_TOOL"; then
13322  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327  IFS=$as_save_IFS
13328  test -z "$as_dir" && as_dir=.
13329    for ac_exec_ext in '' $ac_executable_extensions; do
13330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333    break 2
13334  fi
13335done
13336  done
13337IFS=$as_save_IFS
13338
13339fi
13340fi
13341MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13342if test -n "$MANIFEST_TOOL"; then
13343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13344$as_echo "$MANIFEST_TOOL" >&6; }
13345else
13346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348fi
13349
13350
13351fi
13352if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13353  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13354  # Extract the first word of "mt", so it can be a program name with args.
13355set dummy mt; ac_word=$2
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357$as_echo_n "checking for $ac_word... " >&6; }
13358if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  if test -n "$ac_ct_MANIFEST_TOOL"; then
13362  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13363else
13364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365for as_dir in $PATH
13366do
13367  IFS=$as_save_IFS
13368  test -z "$as_dir" && as_dir=.
13369    for ac_exec_ext in '' $ac_executable_extensions; do
13370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373    break 2
13374  fi
13375done
13376  done
13377IFS=$as_save_IFS
13378
13379fi
13380fi
13381ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13382if test -n "$ac_ct_MANIFEST_TOOL"; then
13383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13384$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13385else
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388fi
13389
13390  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13391    MANIFEST_TOOL=":"
13392  else
13393    case $cross_compiling:$ac_tool_warned in
13394yes:)
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397ac_tool_warned=yes ;;
13398esac
13399    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13400  fi
13401else
13402  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13403fi
13404
13405test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13407$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13408if ${lt_cv_path_mainfest_tool+:} false; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  lt_cv_path_mainfest_tool=no
13412  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13413  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13414  cat conftest.err >&5
13415  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13416    lt_cv_path_mainfest_tool=yes
13417  fi
13418  rm -f conftest*
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13421$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13422if test yes != "$lt_cv_path_mainfest_tool"; then
13423  MANIFEST_TOOL=:
13424fi
13425
13426
13427
13428
13429
13430
13431  case $host_os in
13432    rhapsody* | darwin*)
13433    if test -n "$ac_tool_prefix"; then
13434  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13435set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
13438if ${ac_cv_prog_DSYMUTIL+:} false; then :
13439  $as_echo_n "(cached) " >&6
13440else
13441  if test -n "$DSYMUTIL"; then
13442  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447  IFS=$as_save_IFS
13448  test -z "$as_dir" && as_dir=.
13449    for ac_exec_ext in '' $ac_executable_extensions; do
13450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453    break 2
13454  fi
13455done
13456  done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461DSYMUTIL=$ac_cv_prog_DSYMUTIL
13462if test -n "$DSYMUTIL"; then
13463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13464$as_echo "$DSYMUTIL" >&6; }
13465else
13466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471fi
13472if test -z "$ac_cv_prog_DSYMUTIL"; then
13473  ac_ct_DSYMUTIL=$DSYMUTIL
13474  # Extract the first word of "dsymutil", so it can be a program name with args.
13475set dummy dsymutil; ac_word=$2
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
13478if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13479  $as_echo_n "(cached) " >&6
13480else
13481  if test -n "$ac_ct_DSYMUTIL"; then
13482  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13483else
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487  IFS=$as_save_IFS
13488  test -z "$as_dir" && as_dir=.
13489    for ac_exec_ext in '' $ac_executable_extensions; do
13490  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13491    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493    break 2
13494  fi
13495done
13496  done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13502if test -n "$ac_ct_DSYMUTIL"; then
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13504$as_echo "$ac_ct_DSYMUTIL" >&6; }
13505else
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
13508fi
13509
13510  if test "x$ac_ct_DSYMUTIL" = x; then
13511    DSYMUTIL=":"
13512  else
13513    case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519    DSYMUTIL=$ac_ct_DSYMUTIL
13520  fi
13521else
13522  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13523fi
13524
13525    if test -n "$ac_tool_prefix"; then
13526  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13527set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
13530if ${ac_cv_prog_NMEDIT+:} false; then :
13531  $as_echo_n "(cached) " >&6
13532else
13533  if test -n "$NMEDIT"; then
13534  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539  IFS=$as_save_IFS
13540  test -z "$as_dir" && as_dir=.
13541    for ac_exec_ext in '' $ac_executable_extensions; do
13542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545    break 2
13546  fi
13547done
13548  done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553NMEDIT=$ac_cv_prog_NMEDIT
13554if test -n "$NMEDIT"; then
13555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13556$as_echo "$NMEDIT" >&6; }
13557else
13558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562
13563fi
13564if test -z "$ac_cv_prog_NMEDIT"; then
13565  ac_ct_NMEDIT=$NMEDIT
13566  # Extract the first word of "nmedit", so it can be a program name with args.
13567set dummy nmedit; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
13570if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13571  $as_echo_n "(cached) " >&6
13572else
13573  if test -n "$ac_ct_NMEDIT"; then
13574  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579  IFS=$as_save_IFS
13580  test -z "$as_dir" && as_dir=.
13581    for ac_exec_ext in '' $ac_executable_extensions; do
13582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13583    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585    break 2
13586  fi
13587done
13588  done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13594if test -n "$ac_ct_NMEDIT"; then
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13596$as_echo "$ac_ct_NMEDIT" >&6; }
13597else
13598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602  if test "x$ac_ct_NMEDIT" = x; then
13603    NMEDIT=":"
13604  else
13605    case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609ac_tool_warned=yes ;;
13610esac
13611    NMEDIT=$ac_ct_NMEDIT
13612  fi
13613else
13614  NMEDIT="$ac_cv_prog_NMEDIT"
13615fi
13616
13617    if test -n "$ac_tool_prefix"; then
13618  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13619set dummy ${ac_tool_prefix}lipo; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
13622if ${ac_cv_prog_LIPO+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  if test -n "$LIPO"; then
13626  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631  IFS=$as_save_IFS
13632  test -z "$as_dir" && as_dir=.
13633    for ac_exec_ext in '' $ac_executable_extensions; do
13634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637    break 2
13638  fi
13639done
13640  done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645LIPO=$ac_cv_prog_LIPO
13646if test -n "$LIPO"; then
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13648$as_echo "$LIPO" >&6; }
13649else
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654
13655fi
13656if test -z "$ac_cv_prog_LIPO"; then
13657  ac_ct_LIPO=$LIPO
13658  # Extract the first word of "lipo", so it can be a program name with args.
13659set dummy lipo; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
13662if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13663  $as_echo_n "(cached) " >&6
13664else
13665  if test -n "$ac_ct_LIPO"; then
13666  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671  IFS=$as_save_IFS
13672  test -z "$as_dir" && as_dir=.
13673    for ac_exec_ext in '' $ac_executable_extensions; do
13674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13675    ac_cv_prog_ac_ct_LIPO="lipo"
13676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677    break 2
13678  fi
13679done
13680  done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13686if test -n "$ac_ct_LIPO"; then
13687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13688$as_echo "$ac_ct_LIPO" >&6; }
13689else
13690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694  if test "x$ac_ct_LIPO" = x; then
13695    LIPO=":"
13696  else
13697    case $cross_compiling:$ac_tool_warned in
13698yes:)
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701ac_tool_warned=yes ;;
13702esac
13703    LIPO=$ac_ct_LIPO
13704  fi
13705else
13706  LIPO="$ac_cv_prog_LIPO"
13707fi
13708
13709    if test -n "$ac_tool_prefix"; then
13710  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13711set dummy ${ac_tool_prefix}otool; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
13714if ${ac_cv_prog_OTOOL+:} false; then :
13715  $as_echo_n "(cached) " >&6
13716else
13717  if test -n "$OTOOL"; then
13718  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723  IFS=$as_save_IFS
13724  test -z "$as_dir" && as_dir=.
13725    for ac_exec_ext in '' $ac_executable_extensions; do
13726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729    break 2
13730  fi
13731done
13732  done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737OTOOL=$ac_cv_prog_OTOOL
13738if test -n "$OTOOL"; then
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13740$as_echo "$OTOOL" >&6; }
13741else
13742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746
13747fi
13748if test -z "$ac_cv_prog_OTOOL"; then
13749  ac_ct_OTOOL=$OTOOL
13750  # Extract the first word of "otool", so it can be a program name with args.
13751set dummy otool; ac_word=$2
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753$as_echo_n "checking for $ac_word... " >&6; }
13754if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13755  $as_echo_n "(cached) " >&6
13756else
13757  if test -n "$ac_ct_OTOOL"; then
13758  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763  IFS=$as_save_IFS
13764  test -z "$as_dir" && as_dir=.
13765    for ac_exec_ext in '' $ac_executable_extensions; do
13766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13767    ac_cv_prog_ac_ct_OTOOL="otool"
13768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769    break 2
13770  fi
13771done
13772  done
13773IFS=$as_save_IFS
13774
13775fi
13776fi
13777ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13778if test -n "$ac_ct_OTOOL"; then
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13780$as_echo "$ac_ct_OTOOL" >&6; }
13781else
13782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786  if test "x$ac_ct_OTOOL" = x; then
13787    OTOOL=":"
13788  else
13789    case $cross_compiling:$ac_tool_warned in
13790yes:)
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793ac_tool_warned=yes ;;
13794esac
13795    OTOOL=$ac_ct_OTOOL
13796  fi
13797else
13798  OTOOL="$ac_cv_prog_OTOOL"
13799fi
13800
13801    if test -n "$ac_tool_prefix"; then
13802  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13803set dummy ${ac_tool_prefix}otool64; ac_word=$2
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805$as_echo_n "checking for $ac_word... " >&6; }
13806if ${ac_cv_prog_OTOOL64+:} false; then :
13807  $as_echo_n "(cached) " >&6
13808else
13809  if test -n "$OTOOL64"; then
13810  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815  IFS=$as_save_IFS
13816  test -z "$as_dir" && as_dir=.
13817    for ac_exec_ext in '' $ac_executable_extensions; do
13818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821    break 2
13822  fi
13823done
13824  done
13825IFS=$as_save_IFS
13826
13827fi
13828fi
13829OTOOL64=$ac_cv_prog_OTOOL64
13830if test -n "$OTOOL64"; then
13831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13832$as_echo "$OTOOL64" >&6; }
13833else
13834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
13836fi
13837
13838
13839fi
13840if test -z "$ac_cv_prog_OTOOL64"; then
13841  ac_ct_OTOOL64=$OTOOL64
13842  # Extract the first word of "otool64", so it can be a program name with args.
13843set dummy otool64; ac_word=$2
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845$as_echo_n "checking for $ac_word... " >&6; }
13846if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13847  $as_echo_n "(cached) " >&6
13848else
13849  if test -n "$ac_ct_OTOOL64"; then
13850  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13851else
13852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853for as_dir in $PATH
13854do
13855  IFS=$as_save_IFS
13856  test -z "$as_dir" && as_dir=.
13857    for ac_exec_ext in '' $ac_executable_extensions; do
13858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13859    ac_cv_prog_ac_ct_OTOOL64="otool64"
13860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861    break 2
13862  fi
13863done
13864  done
13865IFS=$as_save_IFS
13866
13867fi
13868fi
13869ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13870if test -n "$ac_ct_OTOOL64"; then
13871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13872$as_echo "$ac_ct_OTOOL64" >&6; }
13873else
13874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875$as_echo "no" >&6; }
13876fi
13877
13878  if test "x$ac_ct_OTOOL64" = x; then
13879    OTOOL64=":"
13880  else
13881    case $cross_compiling:$ac_tool_warned in
13882yes:)
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13885ac_tool_warned=yes ;;
13886esac
13887    OTOOL64=$ac_ct_OTOOL64
13888  fi
13889else
13890  OTOOL64="$ac_cv_prog_OTOOL64"
13891fi
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13920$as_echo_n "checking for -single_module linker flag... " >&6; }
13921if ${lt_cv_apple_cc_single_mod+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  lt_cv_apple_cc_single_mod=no
13925      if test -z "$LT_MULTI_MODULE"; then
13926	# By default we will add the -single_module flag. You can override
13927	# by either setting the environment variable LT_MULTI_MODULE
13928	# non-empty at configure time, or by adding -multi_module to the
13929	# link flags.
13930	rm -rf libconftest.dylib*
13931	echo "int foo(void){return 1;}" > conftest.c
13932	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13933-dynamiclib -Wl,-single_module conftest.c" >&5
13934	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13935	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13936        _lt_result=$?
13937	# If there is a non-empty error log, and "single_module"
13938	# appears in it, assume the flag caused a linker warning
13939        if test -s conftest.err && $GREP single_module conftest.err; then
13940	  cat conftest.err >&5
13941	# Otherwise, if the output was created with a 0 exit code from
13942	# the compiler, it worked.
13943	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13944	  lt_cv_apple_cc_single_mod=yes
13945	else
13946	  cat conftest.err >&5
13947	fi
13948	rm -rf libconftest.dylib*
13949	rm -f conftest.*
13950      fi
13951fi
13952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13953$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13954
13955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13956$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13957if ${lt_cv_ld_exported_symbols_list+:} false; then :
13958  $as_echo_n "(cached) " >&6
13959else
13960  lt_cv_ld_exported_symbols_list=no
13961      save_LDFLAGS=$LDFLAGS
13962      echo "_main" > conftest.sym
13963      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966
13967int
13968main ()
13969{
13970
13971  ;
13972  return 0;
13973}
13974_ACEOF
13975if ac_fn_c_try_link "$LINENO"; then :
13976  lt_cv_ld_exported_symbols_list=yes
13977else
13978  lt_cv_ld_exported_symbols_list=no
13979fi
13980rm -f core conftest.err conftest.$ac_objext \
13981    conftest$ac_exeext conftest.$ac_ext
13982	LDFLAGS=$save_LDFLAGS
13983
13984fi
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13986$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13987
13988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13989$as_echo_n "checking for -force_load linker flag... " >&6; }
13990if ${lt_cv_ld_force_load+:} false; then :
13991  $as_echo_n "(cached) " >&6
13992else
13993  lt_cv_ld_force_load=no
13994      cat > conftest.c << _LT_EOF
13995int forced_loaded() { return 2;}
13996_LT_EOF
13997      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13998      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13999      echo "$AR cru libconftest.a conftest.o" >&5
14000      $AR cru libconftest.a conftest.o 2>&5
14001      echo "$RANLIB libconftest.a" >&5
14002      $RANLIB libconftest.a 2>&5
14003      cat > conftest.c << _LT_EOF
14004int main() { return 0;}
14005_LT_EOF
14006      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14007      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14008      _lt_result=$?
14009      if test -s conftest.err && $GREP force_load conftest.err; then
14010	cat conftest.err >&5
14011      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14012	lt_cv_ld_force_load=yes
14013      else
14014	cat conftest.err >&5
14015      fi
14016        rm -f conftest.err libconftest.a conftest conftest.c
14017        rm -rf conftest.dSYM
14018
14019fi
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14021$as_echo "$lt_cv_ld_force_load" >&6; }
14022    case $host_os in
14023    rhapsody* | darwin1.[012])
14024      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14025    darwin1.*)
14026      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14027    darwin*) # darwin 5.x on
14028      # if running on 10.5 or later, the deployment target defaults
14029      # to the OS version, if on x86, and 10.4, the deployment
14030      # target defaults to 10.4. Don't you love it?
14031      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14032	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14033	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14034	10.[012][,.]*)
14035	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14036	10.*)
14037	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14038      esac
14039    ;;
14040  esac
14041    if test yes = "$lt_cv_apple_cc_single_mod"; then
14042      _lt_dar_single_mod='$single_module'
14043    fi
14044    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14045      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14046    else
14047      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14048    fi
14049    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14050      _lt_dsymutil='~$DSYMUTIL $lib || :'
14051    else
14052      _lt_dsymutil=
14053    fi
14054    ;;
14055  esac
14056
14057# func_munge_path_list VARIABLE PATH
14058# -----------------------------------
14059# VARIABLE is name of variable containing _space_ separated list of
14060# directories to be munged by the contents of PATH, which is string
14061# having a format:
14062# "DIR[:DIR]:"
14063#       string "DIR[ DIR]" will be prepended to VARIABLE
14064# ":DIR[:DIR]"
14065#       string "DIR[ DIR]" will be appended to VARIABLE
14066# "DIRP[:DIRP]::[DIRA:]DIRA"
14067#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14068#       "DIRA[ DIRA]" will be appended to VARIABLE
14069# "DIR[:DIR]"
14070#       VARIABLE will be replaced by "DIR[ DIR]"
14071func_munge_path_list ()
14072{
14073    case x$2 in
14074    x)
14075        ;;
14076    *:)
14077        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14078        ;;
14079    x:*)
14080        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14081        ;;
14082    *::*)
14083        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14084        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14085        ;;
14086    *)
14087        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14088        ;;
14089    esac
14090}
14091
14092for ac_header in dlfcn.h
14093do :
14094  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14095"
14096if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14097  cat >>confdefs.h <<_ACEOF
14098#define HAVE_DLFCN_H 1
14099_ACEOF
14100
14101fi
14102
14103done
14104
14105
14106
14107
14108
14109# Set options
14110
14111
14112
14113        enable_dlopen=no
14114
14115
14116  enable_win32_dll=no
14117
14118
14119            # Check whether --enable-shared was given.
14120if test "${enable_shared+set}" = set; then :
14121  enableval=$enable_shared; p=${PACKAGE-default}
14122    case $enableval in
14123    yes) enable_shared=yes ;;
14124    no) enable_shared=no ;;
14125    *)
14126      enable_shared=no
14127      # Look at the argument we got.  We use all the common list separators.
14128      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14129      for pkg in $enableval; do
14130	IFS=$lt_save_ifs
14131	if test "X$pkg" = "X$p"; then
14132	  enable_shared=yes
14133	fi
14134      done
14135      IFS=$lt_save_ifs
14136      ;;
14137    esac
14138else
14139  enable_shared=yes
14140fi
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152# Check whether --with-pic was given.
14153if test "${with_pic+set}" = set; then :
14154  withval=$with_pic; lt_p=${PACKAGE-default}
14155    case $withval in
14156    yes|no) pic_mode=$withval ;;
14157    *)
14158      pic_mode=default
14159      # Look at the argument we got.  We use all the common list separators.
14160      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14161      for lt_pkg in $withval; do
14162	IFS=$lt_save_ifs
14163	if test "X$lt_pkg" = "X$lt_p"; then
14164	  pic_mode=yes
14165	fi
14166      done
14167      IFS=$lt_save_ifs
14168      ;;
14169    esac
14170else
14171  pic_mode=default
14172fi
14173
14174
14175
14176
14177
14178
14179
14180
14181  # Check whether --enable-fast-install was given.
14182if test "${enable_fast_install+set}" = set; then :
14183  enableval=$enable_fast_install; p=${PACKAGE-default}
14184    case $enableval in
14185    yes) enable_fast_install=yes ;;
14186    no) enable_fast_install=no ;;
14187    *)
14188      enable_fast_install=no
14189      # Look at the argument we got.  We use all the common list separators.
14190      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14191      for pkg in $enableval; do
14192	IFS=$lt_save_ifs
14193	if test "X$pkg" = "X$p"; then
14194	  enable_fast_install=yes
14195	fi
14196      done
14197      IFS=$lt_save_ifs
14198      ;;
14199    esac
14200else
14201  enable_fast_install=yes
14202fi
14203
14204
14205
14206
14207
14208
14209
14210
14211  shared_archive_member_spec=
14212case $host,$enable_shared in
14213power*-*-aix[5-9]*,yes)
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14215$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14216
14217# Check whether --with-aix-soname was given.
14218if test "${with_aix_soname+set}" = set; then :
14219  withval=$with_aix_soname; case $withval in
14220    aix|svr4|both)
14221      ;;
14222    *)
14223      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14224      ;;
14225    esac
14226    lt_cv_with_aix_soname=$with_aix_soname
14227else
14228  if ${lt_cv_with_aix_soname+:} false; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  lt_cv_with_aix_soname=aix
14232fi
14233
14234    with_aix_soname=$lt_cv_with_aix_soname
14235fi
14236
14237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14238$as_echo "$with_aix_soname" >&6; }
14239  if test aix != "$with_aix_soname"; then
14240    # For the AIX way of multilib, we name the shared archive member
14241    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14242    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14243    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14244    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14245    if test 64 = "${OBJECT_MODE-32}"; then
14246      shared_archive_member_spec=shr_64
14247    else
14248      shared_archive_member_spec=shr
14249    fi
14250  fi
14251  ;;
14252*)
14253  with_aix_soname=aix
14254  ;;
14255esac
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266# This can be used to rebuild libtool when needed
14267LIBTOOL_DEPS=$ltmain
14268
14269# Always use our own libtool.
14270LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301test -z "$LN_S" && LN_S="ln -s"
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316if test -n "${ZSH_VERSION+set}"; then
14317   setopt NO_GLOB_SUBST
14318fi
14319
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14321$as_echo_n "checking for objdir... " >&6; }
14322if ${lt_cv_objdir+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  rm -f .libs 2>/dev/null
14326mkdir .libs 2>/dev/null
14327if test -d .libs; then
14328  lt_cv_objdir=.libs
14329else
14330  # MS-DOS does not allow filenames that begin with a dot.
14331  lt_cv_objdir=_libs
14332fi
14333rmdir .libs 2>/dev/null
14334fi
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14336$as_echo "$lt_cv_objdir" >&6; }
14337objdir=$lt_cv_objdir
14338
14339
14340
14341
14342
14343cat >>confdefs.h <<_ACEOF
14344#define LT_OBJDIR "$lt_cv_objdir/"
14345_ACEOF
14346
14347
14348
14349
14350case $host_os in
14351aix3*)
14352  # AIX sometimes has problems with the GCC collect2 program.  For some
14353  # reason, if we set the COLLECT_NAMES environment variable, the problems
14354  # vanish in a puff of smoke.
14355  if test set != "${COLLECT_NAMES+set}"; then
14356    COLLECT_NAMES=
14357    export COLLECT_NAMES
14358  fi
14359  ;;
14360esac
14361
14362# Global variables:
14363ofile=libtool
14364can_build_shared=yes
14365
14366# All known linkers require a '.a' archive for static linking (except MSVC,
14367# which needs '.lib').
14368libext=a
14369
14370with_gnu_ld=$lt_cv_prog_gnu_ld
14371
14372old_CC=$CC
14373old_CFLAGS=$CFLAGS
14374
14375# Set sane defaults for various variables
14376test -z "$CC" && CC=cc
14377test -z "$LTCC" && LTCC=$CC
14378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14379test -z "$LD" && LD=ld
14380test -z "$ac_objext" && ac_objext=o
14381
14382func_cc_basename $compiler
14383cc_basename=$func_cc_basename_result
14384
14385
14386# Only perform the check for file, if the check method requires it
14387test -z "$MAGIC_CMD" && MAGIC_CMD=file
14388case $deplibs_check_method in
14389file_magic*)
14390  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14392$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14393if ${lt_cv_path_MAGIC_CMD+:} false; then :
14394  $as_echo_n "(cached) " >&6
14395else
14396  case $MAGIC_CMD in
14397[\\/*] |  ?:[\\/]*)
14398  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14399  ;;
14400*)
14401  lt_save_MAGIC_CMD=$MAGIC_CMD
14402  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14403  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14404  for ac_dir in $ac_dummy; do
14405    IFS=$lt_save_ifs
14406    test -z "$ac_dir" && ac_dir=.
14407    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14408      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14409      if test -n "$file_magic_test_file"; then
14410	case $deplibs_check_method in
14411	"file_magic "*)
14412	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14413	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14414	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14415	    $EGREP "$file_magic_regex" > /dev/null; then
14416	    :
14417	  else
14418	    cat <<_LT_EOF 1>&2
14419
14420*** Warning: the command libtool uses to detect shared libraries,
14421*** $file_magic_cmd, produces output that libtool cannot recognize.
14422*** The result is that libtool may fail to recognize shared libraries
14423*** as such.  This will affect the creation of libtool libraries that
14424*** depend on shared libraries, but programs linked with such libtool
14425*** libraries will work regardless of this problem.  Nevertheless, you
14426*** may want to report the problem to your system manager and/or to
14427*** bug-libtool@gnu.org
14428
14429_LT_EOF
14430	  fi ;;
14431	esac
14432      fi
14433      break
14434    fi
14435  done
14436  IFS=$lt_save_ifs
14437  MAGIC_CMD=$lt_save_MAGIC_CMD
14438  ;;
14439esac
14440fi
14441
14442MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14443if test -n "$MAGIC_CMD"; then
14444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14445$as_echo "$MAGIC_CMD" >&6; }
14446else
14447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448$as_echo "no" >&6; }
14449fi
14450
14451
14452
14453
14454
14455if test -z "$lt_cv_path_MAGIC_CMD"; then
14456  if test -n "$ac_tool_prefix"; then
14457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14458$as_echo_n "checking for file... " >&6; }
14459if ${lt_cv_path_MAGIC_CMD+:} false; then :
14460  $as_echo_n "(cached) " >&6
14461else
14462  case $MAGIC_CMD in
14463[\\/*] |  ?:[\\/]*)
14464  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14465  ;;
14466*)
14467  lt_save_MAGIC_CMD=$MAGIC_CMD
14468  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14469  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14470  for ac_dir in $ac_dummy; do
14471    IFS=$lt_save_ifs
14472    test -z "$ac_dir" && ac_dir=.
14473    if test -f "$ac_dir/file"; then
14474      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14475      if test -n "$file_magic_test_file"; then
14476	case $deplibs_check_method in
14477	"file_magic "*)
14478	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14479	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14480	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14481	    $EGREP "$file_magic_regex" > /dev/null; then
14482	    :
14483	  else
14484	    cat <<_LT_EOF 1>&2
14485
14486*** Warning: the command libtool uses to detect shared libraries,
14487*** $file_magic_cmd, produces output that libtool cannot recognize.
14488*** The result is that libtool may fail to recognize shared libraries
14489*** as such.  This will affect the creation of libtool libraries that
14490*** depend on shared libraries, but programs linked with such libtool
14491*** libraries will work regardless of this problem.  Nevertheless, you
14492*** may want to report the problem to your system manager and/or to
14493*** bug-libtool@gnu.org
14494
14495_LT_EOF
14496	  fi ;;
14497	esac
14498      fi
14499      break
14500    fi
14501  done
14502  IFS=$lt_save_ifs
14503  MAGIC_CMD=$lt_save_MAGIC_CMD
14504  ;;
14505esac
14506fi
14507
14508MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14509if test -n "$MAGIC_CMD"; then
14510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14511$as_echo "$MAGIC_CMD" >&6; }
14512else
14513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514$as_echo "no" >&6; }
14515fi
14516
14517
14518  else
14519    MAGIC_CMD=:
14520  fi
14521fi
14522
14523  fi
14524  ;;
14525esac
14526
14527# Use C for the default configuration in the libtool script
14528
14529lt_save_CC=$CC
14530ac_ext=c
14531ac_cpp='$CPP $CPPFLAGS'
14532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14534ac_compiler_gnu=$ac_cv_c_compiler_gnu
14535
14536
14537# Source file extension for C test sources.
14538ac_ext=c
14539
14540# Object file extension for compiled C test sources.
14541objext=o
14542objext=$objext
14543
14544# Code to be used in simple compile tests
14545lt_simple_compile_test_code="int some_variable = 0;"
14546
14547# Code to be used in simple link tests
14548lt_simple_link_test_code='int main(){return(0);}'
14549
14550
14551
14552
14553
14554
14555
14556# If no C compiler was specified, use CC.
14557LTCC=${LTCC-"$CC"}
14558
14559# If no C compiler flags were specified, use CFLAGS.
14560LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14561
14562# Allow CC to be a program name with arguments.
14563compiler=$CC
14564
14565# Save the default compiler, since it gets overwritten when the other
14566# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14567compiler_DEFAULT=$CC
14568
14569# save warnings/boilerplate of simple test code
14570ac_outfile=conftest.$ac_objext
14571echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14573_lt_compiler_boilerplate=`cat conftest.err`
14574$RM conftest*
14575
14576ac_outfile=conftest.$ac_objext
14577echo "$lt_simple_link_test_code" >conftest.$ac_ext
14578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14579_lt_linker_boilerplate=`cat conftest.err`
14580$RM -r conftest*
14581
14582
14583if test -n "$compiler"; then
14584
14585lt_prog_compiler_no_builtin_flag=
14586
14587if test yes = "$GCC"; then
14588  case $cc_basename in
14589  nvcc*)
14590    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14591  *)
14592    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14593  esac
14594
14595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14596$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14597if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14598  $as_echo_n "(cached) " >&6
14599else
14600  lt_cv_prog_compiler_rtti_exceptions=no
14601   ac_outfile=conftest.$ac_objext
14602   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14603   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14604   # Insert the option either (1) after the last *FLAGS variable, or
14605   # (2) before a word containing "conftest.", or (3) at the end.
14606   # Note that $ac_compile itself does not contain backslashes and begins
14607   # with a dollar sign (not a hyphen), so the echo should work correctly.
14608   # The option is referenced via a variable to avoid confusing sed.
14609   lt_compile=`echo "$ac_compile" | $SED \
14610   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14611   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14612   -e 's:$: $lt_compiler_flag:'`
14613   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14614   (eval "$lt_compile" 2>conftest.err)
14615   ac_status=$?
14616   cat conftest.err >&5
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   if (exit $ac_status) && test -s "$ac_outfile"; then
14619     # The compiler can only warn and ignore the option if not recognized
14620     # So say no if there are warnings other than the usual output.
14621     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14622     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14623     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14624       lt_cv_prog_compiler_rtti_exceptions=yes
14625     fi
14626   fi
14627   $RM conftest*
14628
14629fi
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14631$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14632
14633if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14634    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14635else
14636    :
14637fi
14638
14639fi
14640
14641
14642
14643
14644
14645
14646  lt_prog_compiler_wl=
14647lt_prog_compiler_pic=
14648lt_prog_compiler_static=
14649
14650
14651  if test yes = "$GCC"; then
14652    lt_prog_compiler_wl='-Wl,'
14653    lt_prog_compiler_static='-static'
14654
14655    case $host_os in
14656      aix*)
14657      # All AIX code is PIC.
14658      if test ia64 = "$host_cpu"; then
14659	# AIX 5 now supports IA64 processor
14660	lt_prog_compiler_static='-Bstatic'
14661      fi
14662      lt_prog_compiler_pic='-fPIC'
14663      ;;
14664
14665    amigaos*)
14666      case $host_cpu in
14667      powerpc)
14668            # see comment about AmigaOS4 .so support
14669            lt_prog_compiler_pic='-fPIC'
14670        ;;
14671      m68k)
14672            # FIXME: we need at least 68020 code to build shared libraries, but
14673            # adding the '-m68020' flag to GCC prevents building anything better,
14674            # like '-m68040'.
14675            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14676        ;;
14677      esac
14678      ;;
14679
14680    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14681      # PIC is the default for these OSes.
14682      ;;
14683
14684    mingw* | cygwin* | pw32* | os2* | cegcc*)
14685      # This hack is so that the source file can tell whether it is being
14686      # built for inclusion in a dll (and should export symbols for example).
14687      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14688      # (--disable-auto-import) libraries
14689      lt_prog_compiler_pic='-DDLL_EXPORT'
14690      case $host_os in
14691      os2*)
14692	lt_prog_compiler_static='$wl-static'
14693	;;
14694      esac
14695      ;;
14696
14697    darwin* | rhapsody*)
14698      # PIC is the default on this platform
14699      # Common symbols not allowed in MH_DYLIB files
14700      lt_prog_compiler_pic='-fno-common'
14701      ;;
14702
14703    haiku*)
14704      # PIC is the default for Haiku.
14705      # The "-static" flag exists, but is broken.
14706      lt_prog_compiler_static=
14707      ;;
14708
14709    hpux*)
14710      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14711      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14712      # sets the default TLS model and affects inlining.
14713      case $host_cpu in
14714      hppa*64*)
14715	# +Z the default
14716	;;
14717      *)
14718	lt_prog_compiler_pic='-fPIC'
14719	;;
14720      esac
14721      ;;
14722
14723    interix[3-9]*)
14724      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14725      # Instead, we relocate shared libraries at runtime.
14726      ;;
14727
14728    msdosdjgpp*)
14729      # Just because we use GCC doesn't mean we suddenly get shared libraries
14730      # on systems that don't support them.
14731      lt_prog_compiler_can_build_shared=no
14732      enable_shared=no
14733      ;;
14734
14735    *nto* | *qnx*)
14736      # QNX uses GNU C++, but need to define -shared option too, otherwise
14737      # it will coredump.
14738      lt_prog_compiler_pic='-fPIC -shared'
14739      ;;
14740
14741    sysv4*MP*)
14742      if test -d /usr/nec; then
14743	lt_prog_compiler_pic=-Kconform_pic
14744      fi
14745      ;;
14746
14747    *)
14748      lt_prog_compiler_pic='-fPIC'
14749      ;;
14750    esac
14751
14752    case $cc_basename in
14753    nvcc*) # Cuda Compiler Driver 2.2
14754      lt_prog_compiler_wl='-Xlinker '
14755      if test -n "$lt_prog_compiler_pic"; then
14756        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14757      fi
14758      ;;
14759    esac
14760  else
14761    # PORTME Check for flag to pass linker flags through the system compiler.
14762    case $host_os in
14763    aix*)
14764      lt_prog_compiler_wl='-Wl,'
14765      if test ia64 = "$host_cpu"; then
14766	# AIX 5 now supports IA64 processor
14767	lt_prog_compiler_static='-Bstatic'
14768      else
14769	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14770      fi
14771      ;;
14772
14773    darwin* | rhapsody*)
14774      # PIC is the default on this platform
14775      # Common symbols not allowed in MH_DYLIB files
14776      lt_prog_compiler_pic='-fno-common'
14777      case $cc_basename in
14778      nagfor*)
14779        # NAG Fortran compiler
14780        lt_prog_compiler_wl='-Wl,-Wl,,'
14781        lt_prog_compiler_pic='-PIC'
14782        lt_prog_compiler_static='-Bstatic'
14783        ;;
14784      esac
14785      ;;
14786
14787    mingw* | cygwin* | pw32* | os2* | cegcc*)
14788      # This hack is so that the source file can tell whether it is being
14789      # built for inclusion in a dll (and should export symbols for example).
14790      lt_prog_compiler_pic='-DDLL_EXPORT'
14791      case $host_os in
14792      os2*)
14793	lt_prog_compiler_static='$wl-static'
14794	;;
14795      esac
14796      ;;
14797
14798    hpux9* | hpux10* | hpux11*)
14799      lt_prog_compiler_wl='-Wl,'
14800      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14801      # not for PA HP-UX.
14802      case $host_cpu in
14803      hppa*64*|ia64*)
14804	# +Z the default
14805	;;
14806      *)
14807	lt_prog_compiler_pic='+Z'
14808	;;
14809      esac
14810      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14811      lt_prog_compiler_static='$wl-a ${wl}archive'
14812      ;;
14813
14814    irix5* | irix6* | nonstopux*)
14815      lt_prog_compiler_wl='-Wl,'
14816      # PIC (with -KPIC) is the default.
14817      lt_prog_compiler_static='-non_shared'
14818      ;;
14819
14820    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14821      case $cc_basename in
14822      # old Intel for x86_64, which still supported -KPIC.
14823      ecc*)
14824	lt_prog_compiler_wl='-Wl,'
14825	lt_prog_compiler_pic='-KPIC'
14826	lt_prog_compiler_static='-static'
14827        ;;
14828      # icc used to be incompatible with GCC.
14829      # ICC 10 doesn't accept -KPIC any more.
14830      icc* | ifort*)
14831	lt_prog_compiler_wl='-Wl,'
14832	lt_prog_compiler_pic='-fPIC'
14833	lt_prog_compiler_static='-static'
14834        ;;
14835      # Lahey Fortran 8.1.
14836      lf95*)
14837	lt_prog_compiler_wl='-Wl,'
14838	lt_prog_compiler_pic='--shared'
14839	lt_prog_compiler_static='--static'
14840	;;
14841      nagfor*)
14842	# NAG Fortran compiler
14843	lt_prog_compiler_wl='-Wl,-Wl,,'
14844	lt_prog_compiler_pic='-PIC'
14845	lt_prog_compiler_static='-Bstatic'
14846	;;
14847      tcc*)
14848	# Fabrice Bellard et al's Tiny C Compiler
14849	lt_prog_compiler_wl='-Wl,'
14850	lt_prog_compiler_pic='-fPIC'
14851	lt_prog_compiler_static='-static'
14852	;;
14853      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14854        # Portland Group compilers (*not* the Pentium gcc compiler,
14855	# which looks to be a dead project)
14856	lt_prog_compiler_wl='-Wl,'
14857	lt_prog_compiler_pic='-fpic'
14858	lt_prog_compiler_static='-Bstatic'
14859        ;;
14860      ccc*)
14861        lt_prog_compiler_wl='-Wl,'
14862        # All Alpha code is PIC.
14863        lt_prog_compiler_static='-non_shared'
14864        ;;
14865      xl* | bgxl* | bgf* | mpixl*)
14866	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14867	lt_prog_compiler_wl='-Wl,'
14868	lt_prog_compiler_pic='-qpic'
14869	lt_prog_compiler_static='-qstaticlink'
14870	;;
14871      *)
14872	case `$CC -V 2>&1 | sed 5q` in
14873	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14874	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14875	  lt_prog_compiler_pic='-KPIC'
14876	  lt_prog_compiler_static='-Bstatic'
14877	  lt_prog_compiler_wl=''
14878	  ;;
14879	*Sun\ F* | *Sun*Fortran*)
14880	  lt_prog_compiler_pic='-KPIC'
14881	  lt_prog_compiler_static='-Bstatic'
14882	  lt_prog_compiler_wl='-Qoption ld '
14883	  ;;
14884	*Sun\ C*)
14885	  # Sun C 5.9
14886	  lt_prog_compiler_pic='-KPIC'
14887	  lt_prog_compiler_static='-Bstatic'
14888	  lt_prog_compiler_wl='-Wl,'
14889	  ;;
14890        *Intel*\ [CF]*Compiler*)
14891	  lt_prog_compiler_wl='-Wl,'
14892	  lt_prog_compiler_pic='-fPIC'
14893	  lt_prog_compiler_static='-static'
14894	  ;;
14895	*Portland\ Group*)
14896	  lt_prog_compiler_wl='-Wl,'
14897	  lt_prog_compiler_pic='-fpic'
14898	  lt_prog_compiler_static='-Bstatic'
14899	  ;;
14900	esac
14901	;;
14902      esac
14903      ;;
14904
14905    newsos6)
14906      lt_prog_compiler_pic='-KPIC'
14907      lt_prog_compiler_static='-Bstatic'
14908      ;;
14909
14910    *nto* | *qnx*)
14911      # QNX uses GNU C++, but need to define -shared option too, otherwise
14912      # it will coredump.
14913      lt_prog_compiler_pic='-fPIC -shared'
14914      ;;
14915
14916    osf3* | osf4* | osf5*)
14917      lt_prog_compiler_wl='-Wl,'
14918      # All OSF/1 code is PIC.
14919      lt_prog_compiler_static='-non_shared'
14920      ;;
14921
14922    rdos*)
14923      lt_prog_compiler_static='-non_shared'
14924      ;;
14925
14926    solaris*)
14927      lt_prog_compiler_pic='-KPIC'
14928      lt_prog_compiler_static='-Bstatic'
14929      case $cc_basename in
14930      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14931	lt_prog_compiler_wl='-Qoption ld ';;
14932      *)
14933	lt_prog_compiler_wl='-Wl,';;
14934      esac
14935      ;;
14936
14937    sunos4*)
14938      lt_prog_compiler_wl='-Qoption ld '
14939      lt_prog_compiler_pic='-PIC'
14940      lt_prog_compiler_static='-Bstatic'
14941      ;;
14942
14943    sysv4 | sysv4.2uw2* | sysv4.3*)
14944      lt_prog_compiler_wl='-Wl,'
14945      lt_prog_compiler_pic='-KPIC'
14946      lt_prog_compiler_static='-Bstatic'
14947      ;;
14948
14949    sysv4*MP*)
14950      if test -d /usr/nec; then
14951	lt_prog_compiler_pic='-Kconform_pic'
14952	lt_prog_compiler_static='-Bstatic'
14953      fi
14954      ;;
14955
14956    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14957      lt_prog_compiler_wl='-Wl,'
14958      lt_prog_compiler_pic='-KPIC'
14959      lt_prog_compiler_static='-Bstatic'
14960      ;;
14961
14962    unicos*)
14963      lt_prog_compiler_wl='-Wl,'
14964      lt_prog_compiler_can_build_shared=no
14965      ;;
14966
14967    uts4*)
14968      lt_prog_compiler_pic='-pic'
14969      lt_prog_compiler_static='-Bstatic'
14970      ;;
14971
14972    *)
14973      lt_prog_compiler_can_build_shared=no
14974      ;;
14975    esac
14976  fi
14977
14978case $host_os in
14979  # For platforms that do not support PIC, -DPIC is meaningless:
14980  *djgpp*)
14981    lt_prog_compiler_pic=
14982    ;;
14983  *)
14984    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14985    ;;
14986esac
14987
14988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14989$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14990if ${lt_cv_prog_compiler_pic+:} false; then :
14991  $as_echo_n "(cached) " >&6
14992else
14993  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14996$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14997lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14998
14999#
15000# Check to make sure the PIC flag actually works.
15001#
15002if test -n "$lt_prog_compiler_pic"; then
15003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15004$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15005if ${lt_cv_prog_compiler_pic_works+:} false; then :
15006  $as_echo_n "(cached) " >&6
15007else
15008  lt_cv_prog_compiler_pic_works=no
15009   ac_outfile=conftest.$ac_objext
15010   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15011   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15012   # Insert the option either (1) after the last *FLAGS variable, or
15013   # (2) before a word containing "conftest.", or (3) at the end.
15014   # Note that $ac_compile itself does not contain backslashes and begins
15015   # with a dollar sign (not a hyphen), so the echo should work correctly.
15016   # The option is referenced via a variable to avoid confusing sed.
15017   lt_compile=`echo "$ac_compile" | $SED \
15018   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15020   -e 's:$: $lt_compiler_flag:'`
15021   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15022   (eval "$lt_compile" 2>conftest.err)
15023   ac_status=$?
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   if (exit $ac_status) && test -s "$ac_outfile"; then
15027     # The compiler can only warn and ignore the option if not recognized
15028     # So say no if there are warnings other than the usual output.
15029     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15030     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15031     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15032       lt_cv_prog_compiler_pic_works=yes
15033     fi
15034   fi
15035   $RM conftest*
15036
15037fi
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15039$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15040
15041if test yes = "$lt_cv_prog_compiler_pic_works"; then
15042    case $lt_prog_compiler_pic in
15043     "" | " "*) ;;
15044     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15045     esac
15046else
15047    lt_prog_compiler_pic=
15048     lt_prog_compiler_can_build_shared=no
15049fi
15050
15051fi
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063#
15064# Check to make sure the static flag actually works.
15065#
15066wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15068$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15069if ${lt_cv_prog_compiler_static_works+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  lt_cv_prog_compiler_static_works=no
15073   save_LDFLAGS=$LDFLAGS
15074   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15075   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15076   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15077     # The linker can only warn and ignore the option if not recognized
15078     # So say no if there are warnings
15079     if test -s conftest.err; then
15080       # Append any errors to the config.log.
15081       cat conftest.err 1>&5
15082       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15083       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15084       if diff conftest.exp conftest.er2 >/dev/null; then
15085         lt_cv_prog_compiler_static_works=yes
15086       fi
15087     else
15088       lt_cv_prog_compiler_static_works=yes
15089     fi
15090   fi
15091   $RM -r conftest*
15092   LDFLAGS=$save_LDFLAGS
15093
15094fi
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15096$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15097
15098if test yes = "$lt_cv_prog_compiler_static_works"; then
15099    :
15100else
15101    lt_prog_compiler_static=
15102fi
15103
15104
15105
15106
15107
15108
15109
15110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15112if ${lt_cv_prog_compiler_c_o+:} false; then :
15113  $as_echo_n "(cached) " >&6
15114else
15115  lt_cv_prog_compiler_c_o=no
15116   $RM -r conftest 2>/dev/null
15117   mkdir conftest
15118   cd conftest
15119   mkdir out
15120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121
15122   lt_compiler_flag="-o out/conftest2.$ac_objext"
15123   # Insert the option either (1) after the last *FLAGS variable, or
15124   # (2) before a word containing "conftest.", or (3) at the end.
15125   # Note that $ac_compile itself does not contain backslashes and begins
15126   # with a dollar sign (not a hyphen), so the echo should work correctly.
15127   lt_compile=`echo "$ac_compile" | $SED \
15128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130   -e 's:$: $lt_compiler_flag:'`
15131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15132   (eval "$lt_compile" 2>out/conftest.err)
15133   ac_status=$?
15134   cat out/conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15137   then
15138     # The compiler can only warn and ignore the option if not recognized
15139     # So say no if there are warnings
15140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15141     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15142     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15143       lt_cv_prog_compiler_c_o=yes
15144     fi
15145   fi
15146   chmod u+w . 2>&5
15147   $RM conftest*
15148   # SGI C++ compiler will create directory out/ii_files/ for
15149   # template instantiation
15150   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15151   $RM out/* && rmdir out
15152   cd ..
15153   $RM -r conftest
15154   $RM conftest*
15155
15156fi
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15158$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15159
15160
15161
15162
15163
15164
15165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15166$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15167if ${lt_cv_prog_compiler_c_o+:} false; then :
15168  $as_echo_n "(cached) " >&6
15169else
15170  lt_cv_prog_compiler_c_o=no
15171   $RM -r conftest 2>/dev/null
15172   mkdir conftest
15173   cd conftest
15174   mkdir out
15175   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176
15177   lt_compiler_flag="-o out/conftest2.$ac_objext"
15178   # Insert the option either (1) after the last *FLAGS variable, or
15179   # (2) before a word containing "conftest.", or (3) at the end.
15180   # Note that $ac_compile itself does not contain backslashes and begins
15181   # with a dollar sign (not a hyphen), so the echo should work correctly.
15182   lt_compile=`echo "$ac_compile" | $SED \
15183   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185   -e 's:$: $lt_compiler_flag:'`
15186   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187   (eval "$lt_compile" 2>out/conftest.err)
15188   ac_status=$?
15189   cat out/conftest.err >&5
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15192   then
15193     # The compiler can only warn and ignore the option if not recognized
15194     # So say no if there are warnings
15195     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15196     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15197     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15198       lt_cv_prog_compiler_c_o=yes
15199     fi
15200   fi
15201   chmod u+w . 2>&5
15202   $RM conftest*
15203   # SGI C++ compiler will create directory out/ii_files/ for
15204   # template instantiation
15205   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15206   $RM out/* && rmdir out
15207   cd ..
15208   $RM -r conftest
15209   $RM conftest*
15210
15211fi
15212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15213$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15214
15215
15216
15217
15218hard_links=nottested
15219if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15220  # do not overwrite the value of need_locks provided by the user
15221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15222$as_echo_n "checking if we can lock with hard links... " >&6; }
15223  hard_links=yes
15224  $RM conftest*
15225  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15226  touch conftest.a
15227  ln conftest.a conftest.b 2>&5 || hard_links=no
15228  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15230$as_echo "$hard_links" >&6; }
15231  if test no = "$hard_links"; then
15232    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15233$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15234    need_locks=warn
15235  fi
15236else
15237  need_locks=no
15238fi
15239
15240
15241
15242
15243
15244
15245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15246$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15247
15248  runpath_var=
15249  allow_undefined_flag=
15250  always_export_symbols=no
15251  archive_cmds=
15252  archive_expsym_cmds=
15253  compiler_needs_object=no
15254  enable_shared_with_static_runtimes=no
15255  export_dynamic_flag_spec=
15256  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15257  hardcode_automatic=no
15258  hardcode_direct=no
15259  hardcode_direct_absolute=no
15260  hardcode_libdir_flag_spec=
15261  hardcode_libdir_separator=
15262  hardcode_minus_L=no
15263  hardcode_shlibpath_var=unsupported
15264  inherit_rpath=no
15265  link_all_deplibs=unknown
15266  module_cmds=
15267  module_expsym_cmds=
15268  old_archive_from_new_cmds=
15269  old_archive_from_expsyms_cmds=
15270  thread_safe_flag_spec=
15271  whole_archive_flag_spec=
15272  # include_expsyms should be a list of space-separated symbols to be *always*
15273  # included in the symbol list
15274  include_expsyms=
15275  # exclude_expsyms can be an extended regexp of symbols to exclude
15276  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15277  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15278  # as well as any symbol that contains 'd'.
15279  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15280  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15281  # platforms (ab)use it in PIC code, but their linkers get confused if
15282  # the symbol is explicitly referenced.  Since portable code cannot
15283  # rely on this symbol name, it's probably fine to never include it in
15284  # preloaded symbol tables.
15285  # Exclude shared library initialization/finalization symbols.
15286  extract_expsyms_cmds=
15287
15288  case $host_os in
15289  cygwin* | mingw* | pw32* | cegcc*)
15290    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15291    # When not using gcc, we currently assume that we are using
15292    # Microsoft Visual C++.
15293    if test yes != "$GCC"; then
15294      with_gnu_ld=no
15295    fi
15296    ;;
15297  interix*)
15298    # we just hope/assume this is gcc and not c89 (= MSVC++)
15299    with_gnu_ld=yes
15300    ;;
15301  openbsd* | bitrig*)
15302    with_gnu_ld=no
15303    ;;
15304  esac
15305
15306  ld_shlibs=yes
15307
15308  # On some targets, GNU ld is compatible enough with the native linker
15309  # that we're better off using the native interface for both.
15310  lt_use_gnu_ld_interface=no
15311  if test yes = "$with_gnu_ld"; then
15312    case $host_os in
15313      aix*)
15314	# The AIX port of GNU ld has always aspired to compatibility
15315	# with the native linker.  However, as the warning in the GNU ld
15316	# block says, versions before 2.19.5* couldn't really create working
15317	# shared libraries, regardless of the interface used.
15318	case `$LD -v 2>&1` in
15319	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15320	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15321	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15322	  *)
15323	    lt_use_gnu_ld_interface=yes
15324	    ;;
15325	esac
15326	;;
15327      *)
15328	lt_use_gnu_ld_interface=yes
15329	;;
15330    esac
15331  fi
15332
15333  if test yes = "$lt_use_gnu_ld_interface"; then
15334    # If archive_cmds runs LD, not CC, wlarc should be empty
15335    wlarc='$wl'
15336
15337    # Set some defaults for GNU ld with shared library support. These
15338    # are reset later if shared libraries are not supported. Putting them
15339    # here allows them to be overridden if necessary.
15340    runpath_var=LD_RUN_PATH
15341    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15342    export_dynamic_flag_spec='$wl--export-dynamic'
15343    # ancient GNU ld didn't support --whole-archive et. al.
15344    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15345      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15346    else
15347      whole_archive_flag_spec=
15348    fi
15349    supports_anon_versioning=no
15350    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15351      *GNU\ gold*) supports_anon_versioning=yes ;;
15352      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15353      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15354      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15355      *\ 2.11.*) ;; # other 2.11 versions
15356      *) supports_anon_versioning=yes ;;
15357    esac
15358
15359    # See if GNU ld supports shared libraries.
15360    case $host_os in
15361    aix[3-9]*)
15362      # On AIX/PPC, the GNU linker is very broken
15363      if test ia64 != "$host_cpu"; then
15364	ld_shlibs=no
15365	cat <<_LT_EOF 1>&2
15366
15367*** Warning: the GNU linker, at least up to release 2.19, is reported
15368*** to be unable to reliably create shared libraries on AIX.
15369*** Therefore, libtool is disabling shared libraries support.  If you
15370*** really care for shared libraries, you may want to install binutils
15371*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15372*** You will then need to restart the configuration process.
15373
15374_LT_EOF
15375      fi
15376      ;;
15377
15378    amigaos*)
15379      case $host_cpu in
15380      powerpc)
15381            # see comment about AmigaOS4 .so support
15382            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15383            archive_expsym_cmds=''
15384        ;;
15385      m68k)
15386            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)'
15387            hardcode_libdir_flag_spec='-L$libdir'
15388            hardcode_minus_L=yes
15389        ;;
15390      esac
15391      ;;
15392
15393    beos*)
15394      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15395	allow_undefined_flag=unsupported
15396	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15397	# support --undefined.  This deserves some investigation.  FIXME
15398	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15399      else
15400	ld_shlibs=no
15401      fi
15402      ;;
15403
15404    cygwin* | mingw* | pw32* | cegcc*)
15405      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15406      # as there is no search path for DLLs.
15407      hardcode_libdir_flag_spec='-L$libdir'
15408      export_dynamic_flag_spec='$wl--export-all-symbols'
15409      allow_undefined_flag=unsupported
15410      always_export_symbols=no
15411      enable_shared_with_static_runtimes=yes
15412      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'
15413      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15414
15415      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15416        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15417	# If the export-symbols file already is a .def file, use it as
15418	# is; otherwise, prepend EXPORTS...
15419	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15420          cp $export_symbols $output_objdir/$soname.def;
15421        else
15422          echo EXPORTS > $output_objdir/$soname.def;
15423          cat $export_symbols >> $output_objdir/$soname.def;
15424        fi~
15425        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15426      else
15427	ld_shlibs=no
15428      fi
15429      ;;
15430
15431    haiku*)
15432      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15433      link_all_deplibs=yes
15434      ;;
15435
15436    os2*)
15437      hardcode_libdir_flag_spec='-L$libdir'
15438      hardcode_minus_L=yes
15439      allow_undefined_flag=unsupported
15440      shrext_cmds=.dll
15441      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15442	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15443	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15444	$ECHO EXPORTS >> $output_objdir/$libname.def~
15445	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15446	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15447	emximp -o $lib $output_objdir/$libname.def'
15448      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15449	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15450	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15451	$ECHO EXPORTS >> $output_objdir/$libname.def~
15452	prefix_cmds="$SED"~
15453	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15454	  prefix_cmds="$prefix_cmds -e 1d";
15455	fi~
15456	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15457	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15458	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15459	emximp -o $lib $output_objdir/$libname.def'
15460      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15461      enable_shared_with_static_runtimes=yes
15462      ;;
15463
15464    interix[3-9]*)
15465      hardcode_direct=no
15466      hardcode_shlibpath_var=no
15467      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15468      export_dynamic_flag_spec='$wl-E'
15469      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15470      # Instead, shared libraries are loaded at an image base (0x10000000 by
15471      # default) and relocated if they conflict, which is a slow very memory
15472      # consuming and fragmenting process.  To avoid this, we pick a random,
15473      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15474      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15475      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15476      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'
15477      ;;
15478
15479    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15480      tmp_diet=no
15481      if test linux-dietlibc = "$host_os"; then
15482	case $cc_basename in
15483	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15484	esac
15485      fi
15486      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15487	 && test no = "$tmp_diet"
15488      then
15489	tmp_addflag=' $pic_flag'
15490	tmp_sharedflag='-shared'
15491	case $cc_basename,$host_cpu in
15492        pgcc*)				# Portland Group C compiler
15493	  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'
15494	  tmp_addflag=' $pic_flag'
15495	  ;;
15496	pgf77* | pgf90* | pgf95* | pgfortran*)
15497					# Portland Group f77 and f90 compilers
15498	  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'
15499	  tmp_addflag=' $pic_flag -Mnomain' ;;
15500	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15501	  tmp_addflag=' -i_dynamic' ;;
15502	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15503	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15504	ifc* | ifort*)			# Intel Fortran compiler
15505	  tmp_addflag=' -nofor_main' ;;
15506	lf95*)				# Lahey Fortran 8.1
15507	  whole_archive_flag_spec=
15508	  tmp_sharedflag='--shared' ;;
15509        nagfor*)                        # NAGFOR 5.3
15510          tmp_sharedflag='-Wl,-shared' ;;
15511	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15512	  tmp_sharedflag='-qmkshrobj'
15513	  tmp_addflag= ;;
15514	nvcc*)	# Cuda Compiler Driver 2.2
15515	  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'
15516	  compiler_needs_object=yes
15517	  ;;
15518	esac
15519	case `$CC -V 2>&1 | sed 5q` in
15520	*Sun\ C*)			# Sun C 5.9
15521	  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'
15522	  compiler_needs_object=yes
15523	  tmp_sharedflag='-G' ;;
15524	*Sun\ F*)			# Sun Fortran 8.3
15525	  tmp_sharedflag='-G' ;;
15526	esac
15527	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15528
15529        if test yes = "$supports_anon_versioning"; then
15530          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15531            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15532            echo "local: *; };" >> $output_objdir/$libname.ver~
15533            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15534        fi
15535
15536	case $cc_basename in
15537	tcc*)
15538	  export_dynamic_flag_spec='-rdynamic'
15539	  ;;
15540	xlf* | bgf* | bgxlf* | mpixlf*)
15541	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15542	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15543	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15544	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15545	  if test yes = "$supports_anon_versioning"; then
15546	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15547              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15548              echo "local: *; };" >> $output_objdir/$libname.ver~
15549              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15550	  fi
15551	  ;;
15552	esac
15553      else
15554        ld_shlibs=no
15555      fi
15556      ;;
15557
15558    netbsd*)
15559      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15560	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15561	wlarc=
15562      else
15563	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15564	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15565      fi
15566      ;;
15567
15568    solaris*)
15569      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15570	ld_shlibs=no
15571	cat <<_LT_EOF 1>&2
15572
15573*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15574*** create shared libraries on Solaris systems.  Therefore, libtool
15575*** is disabling shared libraries support.  We urge you to upgrade GNU
15576*** binutils to release 2.9.1 or newer.  Another option is to modify
15577*** your PATH or compiler configuration so that the native linker is
15578*** used, and then restart.
15579
15580_LT_EOF
15581      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15582	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15583	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15584      else
15585	ld_shlibs=no
15586      fi
15587      ;;
15588
15589    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15590      case `$LD -v 2>&1` in
15591        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15592	ld_shlibs=no
15593	cat <<_LT_EOF 1>&2
15594
15595*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15596*** reliably create shared libraries on SCO systems.  Therefore, libtool
15597*** is disabling shared libraries support.  We urge you to upgrade GNU
15598*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15599*** your PATH or compiler configuration so that the native linker is
15600*** used, and then restart.
15601
15602_LT_EOF
15603	;;
15604	*)
15605	  # For security reasons, it is highly recommended that you always
15606	  # use absolute paths for naming shared libraries, and exclude the
15607	  # DT_RUNPATH tag from executables and libraries.  But doing so
15608	  # requires that you compile everything twice, which is a pain.
15609	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15610	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15611	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15612	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15613	  else
15614	    ld_shlibs=no
15615	  fi
15616	;;
15617      esac
15618      ;;
15619
15620    sunos4*)
15621      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622      wlarc=
15623      hardcode_direct=yes
15624      hardcode_shlibpath_var=no
15625      ;;
15626
15627    *)
15628      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15629	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15630	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15631      else
15632	ld_shlibs=no
15633      fi
15634      ;;
15635    esac
15636
15637    if test no = "$ld_shlibs"; then
15638      runpath_var=
15639      hardcode_libdir_flag_spec=
15640      export_dynamic_flag_spec=
15641      whole_archive_flag_spec=
15642    fi
15643  else
15644    # PORTME fill in a description of your system's linker (not GNU ld)
15645    case $host_os in
15646    aix3*)
15647      allow_undefined_flag=unsupported
15648      always_export_symbols=yes
15649      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'
15650      # Note: this linker hardcodes the directories in LIBPATH if there
15651      # are no directories specified by -L.
15652      hardcode_minus_L=yes
15653      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15654	# Neither direct hardcoding nor static linking is supported with a
15655	# broken collect2.
15656	hardcode_direct=unsupported
15657      fi
15658      ;;
15659
15660    aix[4-9]*)
15661      if test ia64 = "$host_cpu"; then
15662	# On IA64, the linker does run time linking by default, so we don't
15663	# have to do anything special.
15664	aix_use_runtimelinking=no
15665	exp_sym_flag='-Bexport'
15666	no_entry_flag=
15667      else
15668	# If we're using GNU nm, then we don't want the "-C" option.
15669	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15670	# Without the "-l" option, or with the "-B" option, AIX nm treats
15671	# weak defined symbols like other global defined symbols, whereas
15672	# GNU nm marks them as "W".
15673	# While the 'weak' keyword is ignored in the Export File, we need
15674	# it in the Import File for the 'aix-soname' feature, so we have
15675	# to replace the "-B" option with "-P" for AIX nm.
15676	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15677	  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'
15678	else
15679	  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'
15680	fi
15681	aix_use_runtimelinking=no
15682
15683	# Test if we are trying to use run time linking or normal
15684	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15685	# have runtime linking enabled, and use it for executables.
15686	# For shared libraries, we enable/disable runtime linking
15687	# depending on the kind of the shared library created -
15688	# when "with_aix_soname,aix_use_runtimelinking" is:
15689	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15690	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15691	#            lib.a           static archive
15692	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15693	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15694	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15695	#            lib.a(lib.so.V) shared, rtl:no
15696	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15697	#            lib.a           static archive
15698	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15699	  for ld_flag in $LDFLAGS; do
15700	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15701	    aix_use_runtimelinking=yes
15702	    break
15703	  fi
15704	  done
15705	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15706	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15707	    # so we don't have lib.a shared libs to link our executables.
15708	    # We have to force runtime linking in this case.
15709	    aix_use_runtimelinking=yes
15710	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15711	  fi
15712	  ;;
15713	esac
15714
15715	exp_sym_flag='-bexport'
15716	no_entry_flag='-bnoentry'
15717      fi
15718
15719      # When large executables or shared objects are built, AIX ld can
15720      # have problems creating the table of contents.  If linking a library
15721      # or program results in "error TOC overflow" add -mminimal-toc to
15722      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15723      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15724
15725      archive_cmds=''
15726      hardcode_direct=yes
15727      hardcode_direct_absolute=yes
15728      hardcode_libdir_separator=':'
15729      link_all_deplibs=yes
15730      file_list_spec='$wl-f,'
15731      case $with_aix_soname,$aix_use_runtimelinking in
15732      aix,*) ;; # traditional, no import file
15733      svr4,* | *,yes) # use import file
15734	# The Import File defines what to hardcode.
15735	hardcode_direct=no
15736	hardcode_direct_absolute=no
15737	;;
15738      esac
15739
15740      if test yes = "$GCC"; then
15741	case $host_os in aix4.[012]|aix4.[012].*)
15742	# We only want to do this on AIX 4.2 and lower, the check
15743	# below for broken collect2 doesn't work under 4.3+
15744	  collect2name=`$CC -print-prog-name=collect2`
15745	  if test -f "$collect2name" &&
15746	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15747	  then
15748	  # We have reworked collect2
15749	  :
15750	  else
15751	  # We have old collect2
15752	  hardcode_direct=unsupported
15753	  # It fails to find uninstalled libraries when the uninstalled
15754	  # path is not listed in the libpath.  Setting hardcode_minus_L
15755	  # to unsupported forces relinking
15756	  hardcode_minus_L=yes
15757	  hardcode_libdir_flag_spec='-L$libdir'
15758	  hardcode_libdir_separator=
15759	  fi
15760	  ;;
15761	esac
15762	shared_flag='-shared'
15763	if test yes = "$aix_use_runtimelinking"; then
15764	  shared_flag="$shared_flag "'$wl-G'
15765	fi
15766	# Need to ensure runtime linking is disabled for the traditional
15767	# shared library, or the linker may eventually find shared libraries
15768	# /with/ Import File - we do not want to mix them.
15769	shared_flag_aix='-shared'
15770	shared_flag_svr4='-shared $wl-G'
15771      else
15772	# not using gcc
15773	if test ia64 = "$host_cpu"; then
15774	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15775	# chokes on -Wl,-G. The following line is correct:
15776	  shared_flag='-G'
15777	else
15778	  if test yes = "$aix_use_runtimelinking"; then
15779	    shared_flag='$wl-G'
15780	  else
15781	    shared_flag='$wl-bM:SRE'
15782	  fi
15783	  shared_flag_aix='$wl-bM:SRE'
15784	  shared_flag_svr4='$wl-G'
15785	fi
15786      fi
15787
15788      export_dynamic_flag_spec='$wl-bexpall'
15789      # It seems that -bexpall does not export symbols beginning with
15790      # underscore (_), so it is better to generate a list of symbols to export.
15791      always_export_symbols=yes
15792      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15793	# Warning - without using the other runtime loading flags (-brtl),
15794	# -berok will link without error, but may produce a broken library.
15795	allow_undefined_flag='-berok'
15796        # Determine the default libpath from the value encoded in an
15797        # empty executable.
15798        if test set = "${lt_cv_aix_libpath+set}"; then
15799  aix_libpath=$lt_cv_aix_libpath
15800else
15801  if ${lt_cv_aix_libpath_+:} false; then :
15802  $as_echo_n "(cached) " >&6
15803else
15804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805/* end confdefs.h.  */
15806
15807int
15808main ()
15809{
15810
15811  ;
15812  return 0;
15813}
15814_ACEOF
15815if ac_fn_c_try_link "$LINENO"; then :
15816
15817  lt_aix_libpath_sed='
15818      /Import File Strings/,/^$/ {
15819	  /^0/ {
15820	      s/^0  *\([^ ]*\) *$/\1/
15821	      p
15822	  }
15823      }'
15824  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15825  # Check for a 64-bit object if we didn't find anything.
15826  if test -z "$lt_cv_aix_libpath_"; then
15827    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15828  fi
15829fi
15830rm -f core conftest.err conftest.$ac_objext \
15831    conftest$ac_exeext conftest.$ac_ext
15832  if test -z "$lt_cv_aix_libpath_"; then
15833    lt_cv_aix_libpath_=/usr/lib:/lib
15834  fi
15835
15836fi
15837
15838  aix_libpath=$lt_cv_aix_libpath_
15839fi
15840
15841        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15842        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
15843      else
15844	if test ia64 = "$host_cpu"; then
15845	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15846	  allow_undefined_flag="-z nodefs"
15847	  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"
15848	else
15849	 # Determine the default libpath from the value encoded in an
15850	 # empty executable.
15851	 if test set = "${lt_cv_aix_libpath+set}"; then
15852  aix_libpath=$lt_cv_aix_libpath
15853else
15854  if ${lt_cv_aix_libpath_+:} false; then :
15855  $as_echo_n "(cached) " >&6
15856else
15857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858/* end confdefs.h.  */
15859
15860int
15861main ()
15862{
15863
15864  ;
15865  return 0;
15866}
15867_ACEOF
15868if ac_fn_c_try_link "$LINENO"; then :
15869
15870  lt_aix_libpath_sed='
15871      /Import File Strings/,/^$/ {
15872	  /^0/ {
15873	      s/^0  *\([^ ]*\) *$/\1/
15874	      p
15875	  }
15876      }'
15877  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15878  # Check for a 64-bit object if we didn't find anything.
15879  if test -z "$lt_cv_aix_libpath_"; then
15880    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15881  fi
15882fi
15883rm -f core conftest.err conftest.$ac_objext \
15884    conftest$ac_exeext conftest.$ac_ext
15885  if test -z "$lt_cv_aix_libpath_"; then
15886    lt_cv_aix_libpath_=/usr/lib:/lib
15887  fi
15888
15889fi
15890
15891  aix_libpath=$lt_cv_aix_libpath_
15892fi
15893
15894	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15895	  # Warning - without using the other run time loading flags,
15896	  # -berok will link without error, but may produce a broken library.
15897	  no_undefined_flag=' $wl-bernotok'
15898	  allow_undefined_flag=' $wl-berok'
15899	  if test yes = "$with_gnu_ld"; then
15900	    # We only use this code for GNU lds that support --whole-archive.
15901	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15902	  else
15903	    # Exported symbols can be pulled into shared objects from archives
15904	    whole_archive_flag_spec='$convenience'
15905	  fi
15906	  archive_cmds_need_lc=yes
15907	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15908	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15909	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15910	  if test svr4 != "$with_aix_soname"; then
15911	    # This is similar to how AIX traditionally builds its shared libraries.
15912	    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'
15913	  fi
15914	  if test aix != "$with_aix_soname"; then
15915	    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'
15916	  else
15917	    # used by -dlpreopen to get the symbols
15918	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15919	  fi
15920	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15921	fi
15922      fi
15923      ;;
15924
15925    amigaos*)
15926      case $host_cpu in
15927      powerpc)
15928            # see comment about AmigaOS4 .so support
15929            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15930            archive_expsym_cmds=''
15931        ;;
15932      m68k)
15933            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)'
15934            hardcode_libdir_flag_spec='-L$libdir'
15935            hardcode_minus_L=yes
15936        ;;
15937      esac
15938      ;;
15939
15940    bsdi[45]*)
15941      export_dynamic_flag_spec=-rdynamic
15942      ;;
15943
15944    cygwin* | mingw* | pw32* | cegcc*)
15945      # When not using gcc, we currently assume that we are using
15946      # Microsoft Visual C++.
15947      # hardcode_libdir_flag_spec is actually meaningless, as there is
15948      # no search path for DLLs.
15949      case $cc_basename in
15950      cl*)
15951	# Native MSVC
15952	hardcode_libdir_flag_spec=' '
15953	allow_undefined_flag=unsupported
15954	always_export_symbols=yes
15955	file_list_spec='@'
15956	# Tell ltmain to make .lib files, not .a files.
15957	libext=lib
15958	# Tell ltmain to make .dll files, not .so files.
15959	shrext_cmds=.dll
15960	# FIXME: Setting linknames here is a bad hack.
15961	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15962	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15963            cp "$export_symbols" "$output_objdir/$soname.def";
15964            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15965          else
15966            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15967          fi~
15968          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15969          linknames='
15970	# The linker will not automatically build a static lib if we build a DLL.
15971	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15972	enable_shared_with_static_runtimes=yes
15973	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15974	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15975	# Don't use ranlib
15976	old_postinstall_cmds='chmod 644 $oldlib'
15977	postlink_cmds='lt_outputfile="@OUTPUT@"~
15978          lt_tool_outputfile="@TOOL_OUTPUT@"~
15979          case $lt_outputfile in
15980            *.exe|*.EXE) ;;
15981            *)
15982              lt_outputfile=$lt_outputfile.exe
15983              lt_tool_outputfile=$lt_tool_outputfile.exe
15984              ;;
15985          esac~
15986          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15987            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15988            $RM "$lt_outputfile.manifest";
15989          fi'
15990	;;
15991      *)
15992	# Assume MSVC wrapper
15993	hardcode_libdir_flag_spec=' '
15994	allow_undefined_flag=unsupported
15995	# Tell ltmain to make .lib files, not .a files.
15996	libext=lib
15997	# Tell ltmain to make .dll files, not .so files.
15998	shrext_cmds=.dll
15999	# FIXME: Setting linknames here is a bad hack.
16000	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16001	# The linker will automatically build a .lib file if we build a DLL.
16002	old_archive_from_new_cmds='true'
16003	# FIXME: Should let the user specify the lib program.
16004	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16005	enable_shared_with_static_runtimes=yes
16006	;;
16007      esac
16008      ;;
16009
16010    darwin* | rhapsody*)
16011
16012
16013  archive_cmds_need_lc=no
16014  hardcode_direct=no
16015  hardcode_automatic=yes
16016  hardcode_shlibpath_var=unsupported
16017  if test yes = "$lt_cv_ld_force_load"; then
16018    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\"`'
16019
16020  else
16021    whole_archive_flag_spec=''
16022  fi
16023  link_all_deplibs=yes
16024  allow_undefined_flag=$_lt_dar_allow_undefined
16025  case $cc_basename in
16026     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16027     *) _lt_dar_can_shared=$GCC ;;
16028  esac
16029  if test yes = "$_lt_dar_can_shared"; then
16030    output_verbose_link_cmd=func_echo_all
16031    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16032    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16033    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"
16034    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"
16035
16036  else
16037  ld_shlibs=no
16038  fi
16039
16040      ;;
16041
16042    dgux*)
16043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044      hardcode_libdir_flag_spec='-L$libdir'
16045      hardcode_shlibpath_var=no
16046      ;;
16047
16048    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16049    # support.  Future versions do this automatically, but an explicit c++rt0.o
16050    # does not break anything, and helps significantly (at the cost of a little
16051    # extra space).
16052    freebsd2.2*)
16053      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16054      hardcode_libdir_flag_spec='-R$libdir'
16055      hardcode_direct=yes
16056      hardcode_shlibpath_var=no
16057      ;;
16058
16059    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16060    freebsd2.*)
16061      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16062      hardcode_direct=yes
16063      hardcode_minus_L=yes
16064      hardcode_shlibpath_var=no
16065      ;;
16066
16067    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16068    freebsd* | dragonfly*)
16069      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070      hardcode_libdir_flag_spec='-R$libdir'
16071      hardcode_direct=yes
16072      hardcode_shlibpath_var=no
16073      ;;
16074
16075    hpux9*)
16076      if test yes = "$GCC"; then
16077	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'
16078      else
16079	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'
16080      fi
16081      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16082      hardcode_libdir_separator=:
16083      hardcode_direct=yes
16084
16085      # hardcode_minus_L: Not really in the search PATH,
16086      # but as the default location of the library.
16087      hardcode_minus_L=yes
16088      export_dynamic_flag_spec='$wl-E'
16089      ;;
16090
16091    hpux10*)
16092      if test yes,no = "$GCC,$with_gnu_ld"; then
16093	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16094      else
16095	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16096      fi
16097      if test no = "$with_gnu_ld"; then
16098	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16099	hardcode_libdir_separator=:
16100	hardcode_direct=yes
16101	hardcode_direct_absolute=yes
16102	export_dynamic_flag_spec='$wl-E'
16103	# hardcode_minus_L: Not really in the search PATH,
16104	# but as the default location of the library.
16105	hardcode_minus_L=yes
16106      fi
16107      ;;
16108
16109    hpux11*)
16110      if test yes,no = "$GCC,$with_gnu_ld"; then
16111	case $host_cpu in
16112	hppa*64*)
16113	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16114	  ;;
16115	ia64*)
16116	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16117	  ;;
16118	*)
16119	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16120	  ;;
16121	esac
16122      else
16123	case $host_cpu in
16124	hppa*64*)
16125	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16126	  ;;
16127	ia64*)
16128	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16129	  ;;
16130	*)
16131
16132	  # Older versions of the 11.00 compiler do not understand -b yet
16133	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16134	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16135$as_echo_n "checking if $CC understands -b... " >&6; }
16136if ${lt_cv_prog_compiler__b+:} false; then :
16137  $as_echo_n "(cached) " >&6
16138else
16139  lt_cv_prog_compiler__b=no
16140   save_LDFLAGS=$LDFLAGS
16141   LDFLAGS="$LDFLAGS -b"
16142   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16143   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16144     # The linker can only warn and ignore the option if not recognized
16145     # So say no if there are warnings
16146     if test -s conftest.err; then
16147       # Append any errors to the config.log.
16148       cat conftest.err 1>&5
16149       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16150       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16151       if diff conftest.exp conftest.er2 >/dev/null; then
16152         lt_cv_prog_compiler__b=yes
16153       fi
16154     else
16155       lt_cv_prog_compiler__b=yes
16156     fi
16157   fi
16158   $RM -r conftest*
16159   LDFLAGS=$save_LDFLAGS
16160
16161fi
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16163$as_echo "$lt_cv_prog_compiler__b" >&6; }
16164
16165if test yes = "$lt_cv_prog_compiler__b"; then
16166    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16167else
16168    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16169fi
16170
16171	  ;;
16172	esac
16173      fi
16174      if test no = "$with_gnu_ld"; then
16175	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16176	hardcode_libdir_separator=:
16177
16178	case $host_cpu in
16179	hppa*64*|ia64*)
16180	  hardcode_direct=no
16181	  hardcode_shlibpath_var=no
16182	  ;;
16183	*)
16184	  hardcode_direct=yes
16185	  hardcode_direct_absolute=yes
16186	  export_dynamic_flag_spec='$wl-E'
16187
16188	  # hardcode_minus_L: Not really in the search PATH,
16189	  # but as the default location of the library.
16190	  hardcode_minus_L=yes
16191	  ;;
16192	esac
16193      fi
16194      ;;
16195
16196    irix5* | irix6* | nonstopux*)
16197      if test yes = "$GCC"; then
16198	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'
16199	# Try to use the -exported_symbol ld option, if it does not
16200	# work, assume that -exports_file does not work either and
16201	# implicitly export all symbols.
16202	# This should be the same for all languages, so no per-tag cache variable.
16203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16204$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16205if ${lt_cv_irix_exported_symbol+:} false; then :
16206  $as_echo_n "(cached) " >&6
16207else
16208  save_LDFLAGS=$LDFLAGS
16209	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16210	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211/* end confdefs.h.  */
16212int foo (void) { return 0; }
16213_ACEOF
16214if ac_fn_c_try_link "$LINENO"; then :
16215  lt_cv_irix_exported_symbol=yes
16216else
16217  lt_cv_irix_exported_symbol=no
16218fi
16219rm -f core conftest.err conftest.$ac_objext \
16220    conftest$ac_exeext conftest.$ac_ext
16221           LDFLAGS=$save_LDFLAGS
16222fi
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16224$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16225	if test yes = "$lt_cv_irix_exported_symbol"; then
16226          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'
16227	fi
16228      else
16229	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'
16230	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'
16231      fi
16232      archive_cmds_need_lc='no'
16233      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16234      hardcode_libdir_separator=:
16235      inherit_rpath=yes
16236      link_all_deplibs=yes
16237      ;;
16238
16239    linux*)
16240      case $cc_basename in
16241      tcc*)
16242	# Fabrice Bellard et al's Tiny C Compiler
16243	ld_shlibs=yes
16244	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16245	;;
16246      esac
16247      ;;
16248
16249    netbsd*)
16250      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16251	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16252      else
16253	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16254      fi
16255      hardcode_libdir_flag_spec='-R$libdir'
16256      hardcode_direct=yes
16257      hardcode_shlibpath_var=no
16258      ;;
16259
16260    newsos6)
16261      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16262      hardcode_direct=yes
16263      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16264      hardcode_libdir_separator=:
16265      hardcode_shlibpath_var=no
16266      ;;
16267
16268    *nto* | *qnx*)
16269      ;;
16270
16271    openbsd* | bitrig*)
16272      if test -f /usr/libexec/ld.so; then
16273	hardcode_direct=yes
16274	hardcode_shlibpath_var=no
16275	hardcode_direct_absolute=yes
16276	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16277	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16278	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16279	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16280	  export_dynamic_flag_spec='$wl-E'
16281	else
16282	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16283	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16284	fi
16285      else
16286	ld_shlibs=no
16287      fi
16288      ;;
16289
16290    os2*)
16291      hardcode_libdir_flag_spec='-L$libdir'
16292      hardcode_minus_L=yes
16293      allow_undefined_flag=unsupported
16294      shrext_cmds=.dll
16295      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16296	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16297	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16298	$ECHO EXPORTS >> $output_objdir/$libname.def~
16299	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16300	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16301	emximp -o $lib $output_objdir/$libname.def'
16302      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16303	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16304	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16305	$ECHO EXPORTS >> $output_objdir/$libname.def~
16306	prefix_cmds="$SED"~
16307	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16308	  prefix_cmds="$prefix_cmds -e 1d";
16309	fi~
16310	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16311	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16312	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16313	emximp -o $lib $output_objdir/$libname.def'
16314      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16315      enable_shared_with_static_runtimes=yes
16316      ;;
16317
16318    osf3*)
16319      if test yes = "$GCC"; then
16320	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16321	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'
16322      else
16323	allow_undefined_flag=' -expect_unresolved \*'
16324	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'
16325      fi
16326      archive_cmds_need_lc='no'
16327      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16328      hardcode_libdir_separator=:
16329      ;;
16330
16331    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16332      if test yes = "$GCC"; then
16333	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16334	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'
16335	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16336      else
16337	allow_undefined_flag=' -expect_unresolved \*'
16338	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'
16339	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~
16340          $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'
16341
16342	# Both c and cxx compiler support -rpath directly
16343	hardcode_libdir_flag_spec='-rpath $libdir'
16344      fi
16345      archive_cmds_need_lc='no'
16346      hardcode_libdir_separator=:
16347      ;;
16348
16349    solaris*)
16350      no_undefined_flag=' -z defs'
16351      if test yes = "$GCC"; then
16352	wlarc='$wl'
16353	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16354	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16355          $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'
16356      else
16357	case `$CC -V 2>&1` in
16358	*"Compilers 5.0"*)
16359	  wlarc=''
16360	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16362            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16363	  ;;
16364	*)
16365	  wlarc='$wl'
16366	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16367	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16368            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16369	  ;;
16370	esac
16371      fi
16372      hardcode_libdir_flag_spec='-R$libdir'
16373      hardcode_shlibpath_var=no
16374      case $host_os in
16375      solaris2.[0-5] | solaris2.[0-5].*) ;;
16376      *)
16377	# The compiler driver will combine and reorder linker options,
16378	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16379	# but is careful enough not to reorder.
16380	# Supported since Solaris 2.6 (maybe 2.5.1?)
16381	if test yes = "$GCC"; then
16382	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16383	else
16384	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16385	fi
16386	;;
16387      esac
16388      link_all_deplibs=yes
16389      ;;
16390
16391    sunos4*)
16392      if test sequent = "$host_vendor"; then
16393	# Use $CC to link under sequent, because it throws in some extra .o
16394	# files that make .init and .fini sections work.
16395	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16396      else
16397	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16398      fi
16399      hardcode_libdir_flag_spec='-L$libdir'
16400      hardcode_direct=yes
16401      hardcode_minus_L=yes
16402      hardcode_shlibpath_var=no
16403      ;;
16404
16405    sysv4)
16406      case $host_vendor in
16407	sni)
16408	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409	  hardcode_direct=yes # is this really true???
16410	;;
16411	siemens)
16412	  ## LD is ld it makes a PLAMLIB
16413	  ## CC just makes a GrossModule.
16414	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16415	  reload_cmds='$CC -r -o $output$reload_objs'
16416	  hardcode_direct=no
16417        ;;
16418	motorola)
16419	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16421	;;
16422      esac
16423      runpath_var='LD_RUN_PATH'
16424      hardcode_shlibpath_var=no
16425      ;;
16426
16427    sysv4.3*)
16428      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429      hardcode_shlibpath_var=no
16430      export_dynamic_flag_spec='-Bexport'
16431      ;;
16432
16433    sysv4*MP*)
16434      if test -d /usr/nec; then
16435	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436	hardcode_shlibpath_var=no
16437	runpath_var=LD_RUN_PATH
16438	hardcode_runpath_var=yes
16439	ld_shlibs=yes
16440      fi
16441      ;;
16442
16443    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16444      no_undefined_flag='$wl-z,text'
16445      archive_cmds_need_lc=no
16446      hardcode_shlibpath_var=no
16447      runpath_var='LD_RUN_PATH'
16448
16449      if test yes = "$GCC"; then
16450	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452      else
16453	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16454	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16455      fi
16456      ;;
16457
16458    sysv5* | sco3.2v5* | sco5v6*)
16459      # Note: We CANNOT use -z defs as we might desire, because we do not
16460      # link with -lc, and that would cause any symbols used from libc to
16461      # always be unresolved, which means just about no library would
16462      # ever link correctly.  If we're not using GNU ld we use -z text
16463      # though, which does catch some bad symbols but isn't as heavy-handed
16464      # as -z defs.
16465      no_undefined_flag='$wl-z,text'
16466      allow_undefined_flag='$wl-z,nodefs'
16467      archive_cmds_need_lc=no
16468      hardcode_shlibpath_var=no
16469      hardcode_libdir_flag_spec='$wl-R,$libdir'
16470      hardcode_libdir_separator=':'
16471      link_all_deplibs=yes
16472      export_dynamic_flag_spec='$wl-Bexport'
16473      runpath_var='LD_RUN_PATH'
16474
16475      if test yes = "$GCC"; then
16476	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16477	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16478      else
16479	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16480	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481      fi
16482      ;;
16483
16484    uts4*)
16485      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486      hardcode_libdir_flag_spec='-L$libdir'
16487      hardcode_shlibpath_var=no
16488      ;;
16489
16490    *)
16491      ld_shlibs=no
16492      ;;
16493    esac
16494
16495    if test sni = "$host_vendor"; then
16496      case $host in
16497      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16498	export_dynamic_flag_spec='$wl-Blargedynsym'
16499	;;
16500      esac
16501    fi
16502  fi
16503
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16505$as_echo "$ld_shlibs" >&6; }
16506test no = "$ld_shlibs" && can_build_shared=no
16507
16508with_gnu_ld=$with_gnu_ld
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524#
16525# Do we need to explicitly link libc?
16526#
16527case "x$archive_cmds_need_lc" in
16528x|xyes)
16529  # Assume -lc should be added
16530  archive_cmds_need_lc=yes
16531
16532  if test yes,yes = "$GCC,$enable_shared"; then
16533    case $archive_cmds in
16534    *'~'*)
16535      # FIXME: we may have to deal with multi-command sequences.
16536      ;;
16537    '$CC '*)
16538      # Test whether the compiler implicitly links with -lc since on some
16539      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16540      # to ld, don't add -lc before -lgcc.
16541      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16543if ${lt_cv_archive_cmds_need_lc+:} false; then :
16544  $as_echo_n "(cached) " >&6
16545else
16546  $RM conftest*
16547	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16548
16549	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16550  (eval $ac_compile) 2>&5
16551  ac_status=$?
16552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16553  test $ac_status = 0; } 2>conftest.err; then
16554	  soname=conftest
16555	  lib=conftest
16556	  libobjs=conftest.$ac_objext
16557	  deplibs=
16558	  wl=$lt_prog_compiler_wl
16559	  pic_flag=$lt_prog_compiler_pic
16560	  compiler_flags=-v
16561	  linker_flags=-v
16562	  verstring=
16563	  output_objdir=.
16564	  libname=conftest
16565	  lt_save_allow_undefined_flag=$allow_undefined_flag
16566	  allow_undefined_flag=
16567	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16568  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16569  ac_status=$?
16570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16571  test $ac_status = 0; }
16572	  then
16573	    lt_cv_archive_cmds_need_lc=no
16574	  else
16575	    lt_cv_archive_cmds_need_lc=yes
16576	  fi
16577	  allow_undefined_flag=$lt_save_allow_undefined_flag
16578	else
16579	  cat conftest.err 1>&5
16580	fi
16581	$RM conftest*
16582
16583fi
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16585$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16586      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16587      ;;
16588    esac
16589  fi
16590  ;;
16591esac
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16745$as_echo_n "checking dynamic linker characteristics... " >&6; }
16746
16747if test yes = "$GCC"; then
16748  case $host_os in
16749    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16750    *) lt_awk_arg='/^libraries:/' ;;
16751  esac
16752  case $host_os in
16753    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16754    *) lt_sed_strip_eq='s|=/|/|g' ;;
16755  esac
16756  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16757  case $lt_search_path_spec in
16758  *\;*)
16759    # if the path contains ";" then we assume it to be the separator
16760    # otherwise default to the standard path separator (i.e. ":") - it is
16761    # assumed that no part of a normal pathname contains ";" but that should
16762    # okay in the real world where ";" in dirpaths is itself problematic.
16763    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16764    ;;
16765  *)
16766    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16767    ;;
16768  esac
16769  # Ok, now we have the path, separated by spaces, we can step through it
16770  # and add multilib dir if necessary...
16771  lt_tmp_lt_search_path_spec=
16772  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16773  # ...but if some path component already ends with the multilib dir we assume
16774  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16775  case "$lt_multi_os_dir; $lt_search_path_spec " in
16776  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16777    lt_multi_os_dir=
16778    ;;
16779  esac
16780  for lt_sys_path in $lt_search_path_spec; do
16781    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16782      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16783    elif test -n "$lt_multi_os_dir"; then
16784      test -d "$lt_sys_path" && \
16785	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16786    fi
16787  done
16788  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16789BEGIN {RS = " "; FS = "/|\n";} {
16790  lt_foo = "";
16791  lt_count = 0;
16792  for (lt_i = NF; lt_i > 0; lt_i--) {
16793    if ($lt_i != "" && $lt_i != ".") {
16794      if ($lt_i == "..") {
16795        lt_count++;
16796      } else {
16797        if (lt_count == 0) {
16798          lt_foo = "/" $lt_i lt_foo;
16799        } else {
16800          lt_count--;
16801        }
16802      }
16803    }
16804  }
16805  if (lt_foo != "") { lt_freq[lt_foo]++; }
16806  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16807}'`
16808  # AWK program above erroneously prepends '/' to C:/dos/paths
16809  # for these hosts.
16810  case $host_os in
16811    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16812      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16813  esac
16814  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16815else
16816  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16817fi
16818library_names_spec=
16819libname_spec='lib$name'
16820soname_spec=
16821shrext_cmds=.so
16822postinstall_cmds=
16823postuninstall_cmds=
16824finish_cmds=
16825finish_eval=
16826shlibpath_var=
16827shlibpath_overrides_runpath=unknown
16828version_type=none
16829dynamic_linker="$host_os ld.so"
16830sys_lib_dlsearch_path_spec="/lib /usr/lib"
16831need_lib_prefix=unknown
16832hardcode_into_libs=no
16833
16834# when you set need_version to no, make sure it does not cause -set_version
16835# flags to be left without arguments
16836need_version=unknown
16837
16838
16839
16840case $host_os in
16841aix3*)
16842  version_type=linux # correct to gnu/linux during the next big refactor
16843  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16844  shlibpath_var=LIBPATH
16845
16846  # AIX 3 has no versioning support, so we append a major version to the name.
16847  soname_spec='$libname$release$shared_ext$major'
16848  ;;
16849
16850aix[4-9]*)
16851  version_type=linux # correct to gnu/linux during the next big refactor
16852  need_lib_prefix=no
16853  need_version=no
16854  hardcode_into_libs=yes
16855  if test ia64 = "$host_cpu"; then
16856    # AIX 5 supports IA64
16857    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16858    shlibpath_var=LD_LIBRARY_PATH
16859  else
16860    # With GCC up to 2.95.x, collect2 would create an import file
16861    # for dependence libraries.  The import file would start with
16862    # the line '#! .'.  This would cause the generated library to
16863    # depend on '.', always an invalid library.  This was fixed in
16864    # development snapshots of GCC prior to 3.0.
16865    case $host_os in
16866      aix4 | aix4.[01] | aix4.[01].*)
16867      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868	   echo ' yes '
16869	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16870	:
16871      else
16872	can_build_shared=no
16873      fi
16874      ;;
16875    esac
16876    # Using Import Files as archive members, it is possible to support
16877    # filename-based versioning of shared library archives on AIX. While
16878    # this would work for both with and without runtime linking, it will
16879    # prevent static linking of such archives. So we do filename-based
16880    # shared library versioning with .so extension only, which is used
16881    # when both runtime linking and shared linking is enabled.
16882    # Unfortunately, runtime linking may impact performance, so we do
16883    # not want this to be the default eventually. Also, we use the
16884    # versioned .so libs for executables only if there is the -brtl
16885    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16886    # To allow for filename-based versioning support, we need to create
16887    # libNAME.so.V as an archive file, containing:
16888    # *) an Import File, referring to the versioned filename of the
16889    #    archive as well as the shared archive member, telling the
16890    #    bitwidth (32 or 64) of that shared object, and providing the
16891    #    list of exported symbols of that shared object, eventually
16892    #    decorated with the 'weak' keyword
16893    # *) the shared object with the F_LOADONLY flag set, to really avoid
16894    #    it being seen by the linker.
16895    # At run time we better use the real file rather than another symlink,
16896    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16897
16898    case $with_aix_soname,$aix_use_runtimelinking in
16899    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16900    # soname into executable. Probably we can add versioning support to
16901    # collect2, so additional links can be useful in future.
16902    aix,yes) # traditional libtool
16903      dynamic_linker='AIX unversionable lib.so'
16904      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16905      # instead of lib<name>.a to let people know that these are not
16906      # typical AIX shared libraries.
16907      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16908      ;;
16909    aix,no) # traditional AIX only
16910      dynamic_linker='AIX lib.a(lib.so.V)'
16911      # We preserve .a as extension for shared libraries through AIX4.2
16912      # and later when we are not doing run time linking.
16913      library_names_spec='$libname$release.a $libname.a'
16914      soname_spec='$libname$release$shared_ext$major'
16915      ;;
16916    svr4,*) # full svr4 only
16917      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16918      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16919      # We do not specify a path in Import Files, so LIBPATH fires.
16920      shlibpath_overrides_runpath=yes
16921      ;;
16922    *,yes) # both, prefer svr4
16923      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16924      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16925      # unpreferred sharedlib libNAME.a needs extra handling
16926      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"'
16927      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"'
16928      # We do not specify a path in Import Files, so LIBPATH fires.
16929      shlibpath_overrides_runpath=yes
16930      ;;
16931    *,no) # both, prefer aix
16932      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16933      library_names_spec='$libname$release.a $libname.a'
16934      soname_spec='$libname$release$shared_ext$major'
16935      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16936      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)'
16937      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"'
16938      ;;
16939    esac
16940    shlibpath_var=LIBPATH
16941  fi
16942  ;;
16943
16944amigaos*)
16945  case $host_cpu in
16946  powerpc)
16947    # Since July 2007 AmigaOS4 officially supports .so libraries.
16948    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16949    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16950    ;;
16951  m68k)
16952    library_names_spec='$libname.ixlibrary $libname.a'
16953    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16954    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'
16955    ;;
16956  esac
16957  ;;
16958
16959beos*)
16960  library_names_spec='$libname$shared_ext'
16961  dynamic_linker="$host_os ld.so"
16962  shlibpath_var=LIBRARY_PATH
16963  ;;
16964
16965bsdi[45]*)
16966  version_type=linux # correct to gnu/linux during the next big refactor
16967  need_version=no
16968  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16969  soname_spec='$libname$release$shared_ext$major'
16970  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16971  shlibpath_var=LD_LIBRARY_PATH
16972  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16973  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16974  # the default ld.so.conf also contains /usr/contrib/lib and
16975  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16976  # libtool to hard-code these into programs
16977  ;;
16978
16979cygwin* | mingw* | pw32* | cegcc*)
16980  version_type=windows
16981  shrext_cmds=.dll
16982  need_version=no
16983  need_lib_prefix=no
16984
16985  case $GCC,$cc_basename in
16986  yes,*)
16987    # gcc
16988    library_names_spec='$libname.dll.a'
16989    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16990    postinstall_cmds='base_file=`basename \$file`~
16991      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16992      dldir=$destdir/`dirname \$dlpath`~
16993      test -d \$dldir || mkdir -p \$dldir~
16994      $install_prog $dir/$dlname \$dldir/$dlname~
16995      chmod a+x \$dldir/$dlname~
16996      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16997        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16998      fi'
16999    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17000      dlpath=$dir/\$dldll~
17001       $RM \$dlpath'
17002    shlibpath_overrides_runpath=yes
17003
17004    case $host_os in
17005    cygwin*)
17006      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17007      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17008
17009      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17010      ;;
17011    mingw* | cegcc*)
17012      # MinGW DLLs use traditional 'lib' prefix
17013      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17014      ;;
17015    pw32*)
17016      # pw32 DLLs use 'pw' prefix rather than 'lib'
17017      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17018      ;;
17019    esac
17020    dynamic_linker='Win32 ld.exe'
17021    ;;
17022
17023  *,cl*)
17024    # Native MSVC
17025    libname_spec='$name'
17026    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17027    library_names_spec='$libname.dll.lib'
17028
17029    case $build_os in
17030    mingw*)
17031      sys_lib_search_path_spec=
17032      lt_save_ifs=$IFS
17033      IFS=';'
17034      for lt_path in $LIB
17035      do
17036        IFS=$lt_save_ifs
17037        # Let DOS variable expansion print the short 8.3 style file name.
17038        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17039        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17040      done
17041      IFS=$lt_save_ifs
17042      # Convert to MSYS style.
17043      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17044      ;;
17045    cygwin*)
17046      # Convert to unix form, then to dos form, then back to unix form
17047      # but this time dos style (no spaces!) so that the unix form looks
17048      # like /cygdrive/c/PROGRA~1:/cygdr...
17049      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17050      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17051      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052      ;;
17053    *)
17054      sys_lib_search_path_spec=$LIB
17055      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17056        # It is most probably a Windows format PATH.
17057        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17058      else
17059        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17060      fi
17061      # FIXME: find the short name or the path components, as spaces are
17062      # common. (e.g. "Program Files" -> "PROGRA~1")
17063      ;;
17064    esac
17065
17066    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17067    postinstall_cmds='base_file=`basename \$file`~
17068      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17069      dldir=$destdir/`dirname \$dlpath`~
17070      test -d \$dldir || mkdir -p \$dldir~
17071      $install_prog $dir/$dlname \$dldir/$dlname'
17072    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17073      dlpath=$dir/\$dldll~
17074       $RM \$dlpath'
17075    shlibpath_overrides_runpath=yes
17076    dynamic_linker='Win32 link.exe'
17077    ;;
17078
17079  *)
17080    # Assume MSVC wrapper
17081    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17082    dynamic_linker='Win32 ld.exe'
17083    ;;
17084  esac
17085  # FIXME: first we should search . and the directory the executable is in
17086  shlibpath_var=PATH
17087  ;;
17088
17089darwin* | rhapsody*)
17090  dynamic_linker="$host_os dyld"
17091  version_type=darwin
17092  need_lib_prefix=no
17093  need_version=no
17094  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17095  soname_spec='$libname$release$major$shared_ext'
17096  shlibpath_overrides_runpath=yes
17097  shlibpath_var=DYLD_LIBRARY_PATH
17098  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17099
17100  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17101  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17102  ;;
17103
17104dgux*)
17105  version_type=linux # correct to gnu/linux during the next big refactor
17106  need_lib_prefix=no
17107  need_version=no
17108  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17109  soname_spec='$libname$release$shared_ext$major'
17110  shlibpath_var=LD_LIBRARY_PATH
17111  ;;
17112
17113freebsd* | dragonfly*)
17114  # DragonFly does not have aout.  When/if they implement a new
17115  # versioning mechanism, adjust this.
17116  if test -x /usr/bin/objformat; then
17117    objformat=`/usr/bin/objformat`
17118  else
17119    case $host_os in
17120    freebsd[23].*) objformat=aout ;;
17121    *) objformat=elf ;;
17122    esac
17123  fi
17124  version_type=freebsd-$objformat
17125  case $version_type in
17126    freebsd-elf*)
17127      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17128      soname_spec='$libname$release$shared_ext$major'
17129      need_version=no
17130      need_lib_prefix=no
17131      ;;
17132    freebsd-*)
17133      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17134      need_version=yes
17135      ;;
17136  esac
17137  shlibpath_var=LD_LIBRARY_PATH
17138  case $host_os in
17139  freebsd2.*)
17140    shlibpath_overrides_runpath=yes
17141    ;;
17142  freebsd3.[01]* | freebsdelf3.[01]*)
17143    shlibpath_overrides_runpath=yes
17144    hardcode_into_libs=yes
17145    ;;
17146  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17147  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17148    shlibpath_overrides_runpath=no
17149    hardcode_into_libs=yes
17150    ;;
17151  *) # from 4.6 on, and DragonFly
17152    shlibpath_overrides_runpath=yes
17153    hardcode_into_libs=yes
17154    ;;
17155  esac
17156  ;;
17157
17158haiku*)
17159  version_type=linux # correct to gnu/linux during the next big refactor
17160  need_lib_prefix=no
17161  need_version=no
17162  dynamic_linker="$host_os runtime_loader"
17163  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17164  soname_spec='$libname$release$shared_ext$major'
17165  shlibpath_var=LIBRARY_PATH
17166  shlibpath_overrides_runpath=no
17167  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17168  hardcode_into_libs=yes
17169  ;;
17170
17171hpux9* | hpux10* | hpux11*)
17172  # Give a soname corresponding to the major version so that dld.sl refuses to
17173  # link against other versions.
17174  version_type=sunos
17175  need_lib_prefix=no
17176  need_version=no
17177  case $host_cpu in
17178  ia64*)
17179    shrext_cmds='.so'
17180    hardcode_into_libs=yes
17181    dynamic_linker="$host_os dld.so"
17182    shlibpath_var=LD_LIBRARY_PATH
17183    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17185    soname_spec='$libname$release$shared_ext$major'
17186    if test 32 = "$HPUX_IA64_MODE"; then
17187      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17188      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17189    else
17190      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17191      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17192    fi
17193    ;;
17194  hppa*64*)
17195    shrext_cmds='.sl'
17196    hardcode_into_libs=yes
17197    dynamic_linker="$host_os dld.sl"
17198    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17199    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17200    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17201    soname_spec='$libname$release$shared_ext$major'
17202    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17203    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17204    ;;
17205  *)
17206    shrext_cmds='.sl'
17207    dynamic_linker="$host_os dld.sl"
17208    shlibpath_var=SHLIB_PATH
17209    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17210    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17211    soname_spec='$libname$release$shared_ext$major'
17212    ;;
17213  esac
17214  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17215  postinstall_cmds='chmod 555 $lib'
17216  # or fails outright, so override atomically:
17217  install_override_mode=555
17218  ;;
17219
17220interix[3-9]*)
17221  version_type=linux # correct to gnu/linux during the next big refactor
17222  need_lib_prefix=no
17223  need_version=no
17224  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17225  soname_spec='$libname$release$shared_ext$major'
17226  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17227  shlibpath_var=LD_LIBRARY_PATH
17228  shlibpath_overrides_runpath=no
17229  hardcode_into_libs=yes
17230  ;;
17231
17232irix5* | irix6* | nonstopux*)
17233  case $host_os in
17234    nonstopux*) version_type=nonstopux ;;
17235    *)
17236	if test yes = "$lt_cv_prog_gnu_ld"; then
17237		version_type=linux # correct to gnu/linux during the next big refactor
17238	else
17239		version_type=irix
17240	fi ;;
17241  esac
17242  need_lib_prefix=no
17243  need_version=no
17244  soname_spec='$libname$release$shared_ext$major'
17245  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17246  case $host_os in
17247  irix5* | nonstopux*)
17248    libsuff= shlibsuff=
17249    ;;
17250  *)
17251    case $LD in # libtool.m4 will add one of these switches to LD
17252    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17253      libsuff= shlibsuff= libmagic=32-bit;;
17254    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17255      libsuff=32 shlibsuff=N32 libmagic=N32;;
17256    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17257      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17258    *) libsuff= shlibsuff= libmagic=never-match;;
17259    esac
17260    ;;
17261  esac
17262  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17263  shlibpath_overrides_runpath=no
17264  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17265  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17266  hardcode_into_libs=yes
17267  ;;
17268
17269# No shared lib support for Linux oldld, aout, or coff.
17270linux*oldld* | linux*aout* | linux*coff*)
17271  dynamic_linker=no
17272  ;;
17273
17274linux*android*)
17275  version_type=none # Android doesn't support versioned libraries.
17276  need_lib_prefix=no
17277  need_version=no
17278  library_names_spec='$libname$release$shared_ext'
17279  soname_spec='$libname$release$shared_ext'
17280  finish_cmds=
17281  shlibpath_var=LD_LIBRARY_PATH
17282  shlibpath_overrides_runpath=yes
17283
17284  # This implies no fast_install, which is unacceptable.
17285  # Some rework will be needed to allow for fast_install
17286  # before this can be enabled.
17287  hardcode_into_libs=yes
17288
17289  dynamic_linker='Android linker'
17290  # Don't embed -rpath directories since the linker doesn't support them.
17291  hardcode_libdir_flag_spec='-L$libdir'
17292  ;;
17293
17294# This must be glibc/ELF.
17295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17296  version_type=linux # correct to gnu/linux during the next big refactor
17297  need_lib_prefix=no
17298  need_version=no
17299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17300  soname_spec='$libname$release$shared_ext$major'
17301  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17302  shlibpath_var=LD_LIBRARY_PATH
17303  shlibpath_overrides_runpath=no
17304
17305  # Some binutils ld are patched to set DT_RUNPATH
17306  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17307  $as_echo_n "(cached) " >&6
17308else
17309  lt_cv_shlibpath_overrides_runpath=no
17310    save_LDFLAGS=$LDFLAGS
17311    save_libdir=$libdir
17312    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17313	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315/* end confdefs.h.  */
17316
17317int
17318main ()
17319{
17320
17321  ;
17322  return 0;
17323}
17324_ACEOF
17325if ac_fn_c_try_link "$LINENO"; then :
17326  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17327  lt_cv_shlibpath_overrides_runpath=yes
17328fi
17329fi
17330rm -f core conftest.err conftest.$ac_objext \
17331    conftest$ac_exeext conftest.$ac_ext
17332    LDFLAGS=$save_LDFLAGS
17333    libdir=$save_libdir
17334
17335fi
17336
17337  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17338
17339  # This implies no fast_install, which is unacceptable.
17340  # Some rework will be needed to allow for fast_install
17341  # before this can be enabled.
17342  hardcode_into_libs=yes
17343
17344  # Add ABI-specific directories to the system library path.
17345  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17346
17347  # Ideally, we could use ldconfig to report *all* directores which are
17348  # searched for libraries, however this is still not possible.  Aside from not
17349  # being certain /sbin/ldconfig is available, command
17350  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17351  # even though it is searched at run-time.  Try to do the best guess by
17352  # appending ld.so.conf contents (and includes) to the search path.
17353  if test -f /etc/ld.so.conf; then
17354    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' ' '`
17355    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17356  fi
17357
17358  # We used to test for /lib/ld.so.1 and disable shared libraries on
17359  # powerpc, because MkLinux only supported shared libraries with the
17360  # GNU dynamic linker.  Since this was broken with cross compilers,
17361  # most powerpc-linux boxes support dynamic linking these days and
17362  # people can always --disable-shared, the test was removed, and we
17363  # assume the GNU/Linux dynamic linker is in use.
17364  dynamic_linker='GNU/Linux ld.so'
17365  ;;
17366
17367netbsd*)
17368  version_type=sunos
17369  need_lib_prefix=no
17370  need_version=no
17371  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17372    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17373    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374    dynamic_linker='NetBSD (a.out) ld.so'
17375  else
17376    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17377    soname_spec='$libname$release$shared_ext$major'
17378    dynamic_linker='NetBSD ld.elf_so'
17379  fi
17380  shlibpath_var=LD_LIBRARY_PATH
17381  shlibpath_overrides_runpath=yes
17382  hardcode_into_libs=yes
17383  ;;
17384
17385newsos6)
17386  version_type=linux # correct to gnu/linux during the next big refactor
17387  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17388  shlibpath_var=LD_LIBRARY_PATH
17389  shlibpath_overrides_runpath=yes
17390  ;;
17391
17392*nto* | *qnx*)
17393  version_type=qnx
17394  need_lib_prefix=no
17395  need_version=no
17396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17397  soname_spec='$libname$release$shared_ext$major'
17398  shlibpath_var=LD_LIBRARY_PATH
17399  shlibpath_overrides_runpath=no
17400  hardcode_into_libs=yes
17401  dynamic_linker='ldqnx.so'
17402  ;;
17403
17404openbsd* | bitrig*)
17405  version_type=sunos
17406  sys_lib_dlsearch_path_spec=/usr/lib
17407  need_lib_prefix=no
17408  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17409    need_version=no
17410  else
17411    need_version=yes
17412  fi
17413  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415  shlibpath_var=LD_LIBRARY_PATH
17416  shlibpath_overrides_runpath=yes
17417  ;;
17418
17419os2*)
17420  libname_spec='$name'
17421  version_type=windows
17422  shrext_cmds=.dll
17423  need_version=no
17424  need_lib_prefix=no
17425  # OS/2 can only load a DLL with a base name of 8 characters or less.
17426  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17427    v=$($ECHO $release$versuffix | tr -d .-);
17428    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17429    $ECHO $n$v`$shared_ext'
17430  library_names_spec='${libname}_dll.$libext'
17431  dynamic_linker='OS/2 ld.exe'
17432  shlibpath_var=BEGINLIBPATH
17433  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17434  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17435  postinstall_cmds='base_file=`basename \$file`~
17436    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17437    dldir=$destdir/`dirname \$dlpath`~
17438    test -d \$dldir || mkdir -p \$dldir~
17439    $install_prog $dir/$dlname \$dldir/$dlname~
17440    chmod a+x \$dldir/$dlname~
17441    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17442      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17443    fi'
17444  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17445    dlpath=$dir/\$dldll~
17446    $RM \$dlpath'
17447  ;;
17448
17449osf3* | osf4* | osf5*)
17450  version_type=osf
17451  need_lib_prefix=no
17452  need_version=no
17453  soname_spec='$libname$release$shared_ext$major'
17454  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17455  shlibpath_var=LD_LIBRARY_PATH
17456  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17457  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17458  ;;
17459
17460rdos*)
17461  dynamic_linker=no
17462  ;;
17463
17464solaris*)
17465  version_type=linux # correct to gnu/linux during the next big refactor
17466  need_lib_prefix=no
17467  need_version=no
17468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17469  soname_spec='$libname$release$shared_ext$major'
17470  shlibpath_var=LD_LIBRARY_PATH
17471  shlibpath_overrides_runpath=yes
17472  hardcode_into_libs=yes
17473  # ldd complains unless libraries are executable
17474  postinstall_cmds='chmod +x $lib'
17475  ;;
17476
17477sunos4*)
17478  version_type=sunos
17479  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17480  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17481  shlibpath_var=LD_LIBRARY_PATH
17482  shlibpath_overrides_runpath=yes
17483  if test yes = "$with_gnu_ld"; then
17484    need_lib_prefix=no
17485  fi
17486  need_version=yes
17487  ;;
17488
17489sysv4 | sysv4.3*)
17490  version_type=linux # correct to gnu/linux during the next big refactor
17491  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17492  soname_spec='$libname$release$shared_ext$major'
17493  shlibpath_var=LD_LIBRARY_PATH
17494  case $host_vendor in
17495    sni)
17496      shlibpath_overrides_runpath=no
17497      need_lib_prefix=no
17498      runpath_var=LD_RUN_PATH
17499      ;;
17500    siemens)
17501      need_lib_prefix=no
17502      ;;
17503    motorola)
17504      need_lib_prefix=no
17505      need_version=no
17506      shlibpath_overrides_runpath=no
17507      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17508      ;;
17509  esac
17510  ;;
17511
17512sysv4*MP*)
17513  if test -d /usr/nec; then
17514    version_type=linux # correct to gnu/linux during the next big refactor
17515    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17516    soname_spec='$libname$shared_ext.$major'
17517    shlibpath_var=LD_LIBRARY_PATH
17518  fi
17519  ;;
17520
17521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17522  version_type=sco
17523  need_lib_prefix=no
17524  need_version=no
17525  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17526  soname_spec='$libname$release$shared_ext$major'
17527  shlibpath_var=LD_LIBRARY_PATH
17528  shlibpath_overrides_runpath=yes
17529  hardcode_into_libs=yes
17530  if test yes = "$with_gnu_ld"; then
17531    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17532  else
17533    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17534    case $host_os in
17535      sco3.2v5*)
17536        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17537	;;
17538    esac
17539  fi
17540  sys_lib_dlsearch_path_spec='/usr/lib'
17541  ;;
17542
17543tpf*)
17544  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17545  version_type=linux # correct to gnu/linux during the next big refactor
17546  need_lib_prefix=no
17547  need_version=no
17548  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17549  shlibpath_var=LD_LIBRARY_PATH
17550  shlibpath_overrides_runpath=no
17551  hardcode_into_libs=yes
17552  ;;
17553
17554uts4*)
17555  version_type=linux # correct to gnu/linux during the next big refactor
17556  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17557  soname_spec='$libname$release$shared_ext$major'
17558  shlibpath_var=LD_LIBRARY_PATH
17559  ;;
17560
17561*)
17562  dynamic_linker=no
17563  ;;
17564esac
17565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17566$as_echo "$dynamic_linker" >&6; }
17567test no = "$dynamic_linker" && can_build_shared=no
17568
17569variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17570if test yes = "$GCC"; then
17571  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17572fi
17573
17574if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17575  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17576fi
17577
17578if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17579  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17580fi
17581
17582# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17583configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17584
17585# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17586func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17587
17588# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17589configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17688$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17689hardcode_action=
17690if test -n "$hardcode_libdir_flag_spec" ||
17691   test -n "$runpath_var" ||
17692   test yes = "$hardcode_automatic"; then
17693
17694  # We can hardcode non-existent directories.
17695  if test no != "$hardcode_direct" &&
17696     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17697     # have to relink, otherwise we might link with an installed library
17698     # when we should be linking with a yet-to-be-installed one
17699     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17700     test no != "$hardcode_minus_L"; then
17701    # Linking always hardcodes the temporary library directory.
17702    hardcode_action=relink
17703  else
17704    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17705    hardcode_action=immediate
17706  fi
17707else
17708  # We cannot hardcode anything, or else we can only hardcode existing
17709  # directories.
17710  hardcode_action=unsupported
17711fi
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17713$as_echo "$hardcode_action" >&6; }
17714
17715if test relink = "$hardcode_action" ||
17716   test yes = "$inherit_rpath"; then
17717  # Fast installation is not supported
17718  enable_fast_install=no
17719elif test yes = "$shlibpath_overrides_runpath" ||
17720     test no = "$enable_shared"; then
17721  # Fast installation is not necessary
17722  enable_fast_install=needless
17723fi
17724
17725
17726
17727
17728
17729
17730  if test yes != "$enable_dlopen"; then
17731  enable_dlopen=unknown
17732  enable_dlopen_self=unknown
17733  enable_dlopen_self_static=unknown
17734else
17735  lt_cv_dlopen=no
17736  lt_cv_dlopen_libs=
17737
17738  case $host_os in
17739  beos*)
17740    lt_cv_dlopen=load_add_on
17741    lt_cv_dlopen_libs=
17742    lt_cv_dlopen_self=yes
17743    ;;
17744
17745  mingw* | pw32* | cegcc*)
17746    lt_cv_dlopen=LoadLibrary
17747    lt_cv_dlopen_libs=
17748    ;;
17749
17750  cygwin*)
17751    lt_cv_dlopen=dlopen
17752    lt_cv_dlopen_libs=
17753    ;;
17754
17755  darwin*)
17756    # if libdl is installed we need to link against it
17757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17758$as_echo_n "checking for dlopen in -ldl... " >&6; }
17759if ${ac_cv_lib_dl_dlopen+:} false; then :
17760  $as_echo_n "(cached) " >&6
17761else
17762  ac_check_lib_save_LIBS=$LIBS
17763LIBS="-ldl  $LIBS"
17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765/* end confdefs.h.  */
17766
17767/* Override any GCC internal prototype to avoid an error.
17768   Use char because int might match the return type of a GCC
17769   builtin and then its argument prototype would still apply.  */
17770#ifdef __cplusplus
17771extern "C"
17772#endif
17773char dlopen ();
17774int
17775main ()
17776{
17777return dlopen ();
17778  ;
17779  return 0;
17780}
17781_ACEOF
17782if ac_fn_c_try_link "$LINENO"; then :
17783  ac_cv_lib_dl_dlopen=yes
17784else
17785  ac_cv_lib_dl_dlopen=no
17786fi
17787rm -f core conftest.err conftest.$ac_objext \
17788    conftest$ac_exeext conftest.$ac_ext
17789LIBS=$ac_check_lib_save_LIBS
17790fi
17791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17792$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17793if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17794  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17795else
17796
17797    lt_cv_dlopen=dyld
17798    lt_cv_dlopen_libs=
17799    lt_cv_dlopen_self=yes
17800
17801fi
17802
17803    ;;
17804
17805  tpf*)
17806    # Don't try to run any link tests for TPF.  We know it's impossible
17807    # because TPF is a cross-compiler, and we know how we open DSOs.
17808    lt_cv_dlopen=dlopen
17809    lt_cv_dlopen_libs=
17810    lt_cv_dlopen_self=no
17811    ;;
17812
17813  *)
17814    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17815if test "x$ac_cv_func_shl_load" = xyes; then :
17816  lt_cv_dlopen=shl_load
17817else
17818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17819$as_echo_n "checking for shl_load in -ldld... " >&6; }
17820if ${ac_cv_lib_dld_shl_load+:} false; then :
17821  $as_echo_n "(cached) " >&6
17822else
17823  ac_check_lib_save_LIBS=$LIBS
17824LIBS="-ldld  $LIBS"
17825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826/* end confdefs.h.  */
17827
17828/* Override any GCC internal prototype to avoid an error.
17829   Use char because int might match the return type of a GCC
17830   builtin and then its argument prototype would still apply.  */
17831#ifdef __cplusplus
17832extern "C"
17833#endif
17834char shl_load ();
17835int
17836main ()
17837{
17838return shl_load ();
17839  ;
17840  return 0;
17841}
17842_ACEOF
17843if ac_fn_c_try_link "$LINENO"; then :
17844  ac_cv_lib_dld_shl_load=yes
17845else
17846  ac_cv_lib_dld_shl_load=no
17847fi
17848rm -f core conftest.err conftest.$ac_objext \
17849    conftest$ac_exeext conftest.$ac_ext
17850LIBS=$ac_check_lib_save_LIBS
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17853$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17854if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17855  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17856else
17857  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17858if test "x$ac_cv_func_dlopen" = xyes; then :
17859  lt_cv_dlopen=dlopen
17860else
17861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17862$as_echo_n "checking for dlopen in -ldl... " >&6; }
17863if ${ac_cv_lib_dl_dlopen+:} false; then :
17864  $as_echo_n "(cached) " >&6
17865else
17866  ac_check_lib_save_LIBS=$LIBS
17867LIBS="-ldl  $LIBS"
17868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869/* end confdefs.h.  */
17870
17871/* Override any GCC internal prototype to avoid an error.
17872   Use char because int might match the return type of a GCC
17873   builtin and then its argument prototype would still apply.  */
17874#ifdef __cplusplus
17875extern "C"
17876#endif
17877char dlopen ();
17878int
17879main ()
17880{
17881return dlopen ();
17882  ;
17883  return 0;
17884}
17885_ACEOF
17886if ac_fn_c_try_link "$LINENO"; then :
17887  ac_cv_lib_dl_dlopen=yes
17888else
17889  ac_cv_lib_dl_dlopen=no
17890fi
17891rm -f core conftest.err conftest.$ac_objext \
17892    conftest$ac_exeext conftest.$ac_ext
17893LIBS=$ac_check_lib_save_LIBS
17894fi
17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17896$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17897if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17898  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17899else
17900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17901$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17902if ${ac_cv_lib_svld_dlopen+:} false; then :
17903  $as_echo_n "(cached) " >&6
17904else
17905  ac_check_lib_save_LIBS=$LIBS
17906LIBS="-lsvld  $LIBS"
17907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h.  */
17909
17910/* Override any GCC internal prototype to avoid an error.
17911   Use char because int might match the return type of a GCC
17912   builtin and then its argument prototype would still apply.  */
17913#ifdef __cplusplus
17914extern "C"
17915#endif
17916char dlopen ();
17917int
17918main ()
17919{
17920return dlopen ();
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925if ac_fn_c_try_link "$LINENO"; then :
17926  ac_cv_lib_svld_dlopen=yes
17927else
17928  ac_cv_lib_svld_dlopen=no
17929fi
17930rm -f core conftest.err conftest.$ac_objext \
17931    conftest$ac_exeext conftest.$ac_ext
17932LIBS=$ac_check_lib_save_LIBS
17933fi
17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17935$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17936if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17937  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17938else
17939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17940$as_echo_n "checking for dld_link in -ldld... " >&6; }
17941if ${ac_cv_lib_dld_dld_link+:} false; then :
17942  $as_echo_n "(cached) " >&6
17943else
17944  ac_check_lib_save_LIBS=$LIBS
17945LIBS="-ldld  $LIBS"
17946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947/* end confdefs.h.  */
17948
17949/* Override any GCC internal prototype to avoid an error.
17950   Use char because int might match the return type of a GCC
17951   builtin and then its argument prototype would still apply.  */
17952#ifdef __cplusplus
17953extern "C"
17954#endif
17955char dld_link ();
17956int
17957main ()
17958{
17959return dld_link ();
17960  ;
17961  return 0;
17962}
17963_ACEOF
17964if ac_fn_c_try_link "$LINENO"; then :
17965  ac_cv_lib_dld_dld_link=yes
17966else
17967  ac_cv_lib_dld_dld_link=no
17968fi
17969rm -f core conftest.err conftest.$ac_objext \
17970    conftest$ac_exeext conftest.$ac_ext
17971LIBS=$ac_check_lib_save_LIBS
17972fi
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17974$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17975if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17976  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17977fi
17978
17979
17980fi
17981
17982
17983fi
17984
17985
17986fi
17987
17988
17989fi
17990
17991
17992fi
17993
17994    ;;
17995  esac
17996
17997  if test no = "$lt_cv_dlopen"; then
17998    enable_dlopen=no
17999  else
18000    enable_dlopen=yes
18001  fi
18002
18003  case $lt_cv_dlopen in
18004  dlopen)
18005    save_CPPFLAGS=$CPPFLAGS
18006    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18007
18008    save_LDFLAGS=$LDFLAGS
18009    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18010
18011    save_LIBS=$LIBS
18012    LIBS="$lt_cv_dlopen_libs $LIBS"
18013
18014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18015$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18016if ${lt_cv_dlopen_self+:} false; then :
18017  $as_echo_n "(cached) " >&6
18018else
18019  	  if test yes = "$cross_compiling"; then :
18020  lt_cv_dlopen_self=cross
18021else
18022  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18023  lt_status=$lt_dlunknown
18024  cat > conftest.$ac_ext <<_LT_EOF
18025#line $LINENO "configure"
18026#include "confdefs.h"
18027
18028#if HAVE_DLFCN_H
18029#include <dlfcn.h>
18030#endif
18031
18032#include <stdio.h>
18033
18034#ifdef RTLD_GLOBAL
18035#  define LT_DLGLOBAL		RTLD_GLOBAL
18036#else
18037#  ifdef DL_GLOBAL
18038#    define LT_DLGLOBAL		DL_GLOBAL
18039#  else
18040#    define LT_DLGLOBAL		0
18041#  endif
18042#endif
18043
18044/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18045   find out it does not work in some platform. */
18046#ifndef LT_DLLAZY_OR_NOW
18047#  ifdef RTLD_LAZY
18048#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18049#  else
18050#    ifdef DL_LAZY
18051#      define LT_DLLAZY_OR_NOW		DL_LAZY
18052#    else
18053#      ifdef RTLD_NOW
18054#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18055#      else
18056#        ifdef DL_NOW
18057#          define LT_DLLAZY_OR_NOW	DL_NOW
18058#        else
18059#          define LT_DLLAZY_OR_NOW	0
18060#        endif
18061#      endif
18062#    endif
18063#  endif
18064#endif
18065
18066/* When -fvisibility=hidden is used, assume the code has been annotated
18067   correspondingly for the symbols needed.  */
18068#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18069int fnord () __attribute__((visibility("default")));
18070#endif
18071
18072int fnord () { return 42; }
18073int main ()
18074{
18075  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18076  int status = $lt_dlunknown;
18077
18078  if (self)
18079    {
18080      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18081      else
18082        {
18083	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18084          else puts (dlerror ());
18085	}
18086      /* dlclose (self); */
18087    }
18088  else
18089    puts (dlerror ());
18090
18091  return status;
18092}
18093_LT_EOF
18094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18095  (eval $ac_link) 2>&5
18096  ac_status=$?
18097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18098  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18099    (./conftest; exit; ) >&5 2>/dev/null
18100    lt_status=$?
18101    case x$lt_status in
18102      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18103      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18104      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18105    esac
18106  else :
18107    # compilation failed
18108    lt_cv_dlopen_self=no
18109  fi
18110fi
18111rm -fr conftest*
18112
18113
18114fi
18115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18116$as_echo "$lt_cv_dlopen_self" >&6; }
18117
18118    if test yes = "$lt_cv_dlopen_self"; then
18119      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18120      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18121$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18122if ${lt_cv_dlopen_self_static+:} false; then :
18123  $as_echo_n "(cached) " >&6
18124else
18125  	  if test yes = "$cross_compiling"; then :
18126  lt_cv_dlopen_self_static=cross
18127else
18128  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18129  lt_status=$lt_dlunknown
18130  cat > conftest.$ac_ext <<_LT_EOF
18131#line $LINENO "configure"
18132#include "confdefs.h"
18133
18134#if HAVE_DLFCN_H
18135#include <dlfcn.h>
18136#endif
18137
18138#include <stdio.h>
18139
18140#ifdef RTLD_GLOBAL
18141#  define LT_DLGLOBAL		RTLD_GLOBAL
18142#else
18143#  ifdef DL_GLOBAL
18144#    define LT_DLGLOBAL		DL_GLOBAL
18145#  else
18146#    define LT_DLGLOBAL		0
18147#  endif
18148#endif
18149
18150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18151   find out it does not work in some platform. */
18152#ifndef LT_DLLAZY_OR_NOW
18153#  ifdef RTLD_LAZY
18154#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18155#  else
18156#    ifdef DL_LAZY
18157#      define LT_DLLAZY_OR_NOW		DL_LAZY
18158#    else
18159#      ifdef RTLD_NOW
18160#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18161#      else
18162#        ifdef DL_NOW
18163#          define LT_DLLAZY_OR_NOW	DL_NOW
18164#        else
18165#          define LT_DLLAZY_OR_NOW	0
18166#        endif
18167#      endif
18168#    endif
18169#  endif
18170#endif
18171
18172/* When -fvisibility=hidden is used, assume the code has been annotated
18173   correspondingly for the symbols needed.  */
18174#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18175int fnord () __attribute__((visibility("default")));
18176#endif
18177
18178int fnord () { return 42; }
18179int main ()
18180{
18181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18182  int status = $lt_dlunknown;
18183
18184  if (self)
18185    {
18186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18187      else
18188        {
18189	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18190          else puts (dlerror ());
18191	}
18192      /* dlclose (self); */
18193    }
18194  else
18195    puts (dlerror ());
18196
18197  return status;
18198}
18199_LT_EOF
18200  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18201  (eval $ac_link) 2>&5
18202  ac_status=$?
18203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18204  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18205    (./conftest; exit; ) >&5 2>/dev/null
18206    lt_status=$?
18207    case x$lt_status in
18208      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18209      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18210      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18211    esac
18212  else :
18213    # compilation failed
18214    lt_cv_dlopen_self_static=no
18215  fi
18216fi
18217rm -fr conftest*
18218
18219
18220fi
18221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18222$as_echo "$lt_cv_dlopen_self_static" >&6; }
18223    fi
18224
18225    CPPFLAGS=$save_CPPFLAGS
18226    LDFLAGS=$save_LDFLAGS
18227    LIBS=$save_LIBS
18228    ;;
18229  esac
18230
18231  case $lt_cv_dlopen_self in
18232  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18233  *) enable_dlopen_self=unknown ;;
18234  esac
18235
18236  case $lt_cv_dlopen_self_static in
18237  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18238  *) enable_dlopen_self_static=unknown ;;
18239  esac
18240fi
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258striplib=
18259old_striplib=
18260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18261$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18262if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18263  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18264  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266$as_echo "yes" >&6; }
18267else
18268# FIXME - insert some real tests, host_os isn't really good enough
18269  case $host_os in
18270  darwin*)
18271    if test -n "$STRIP"; then
18272      striplib="$STRIP -x"
18273      old_striplib="$STRIP -S"
18274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18275$as_echo "yes" >&6; }
18276    else
18277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278$as_echo "no" >&6; }
18279    fi
18280    ;;
18281  *)
18282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283$as_echo "no" >&6; }
18284    ;;
18285  esac
18286fi
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299  # Report what library types will actually be built
18300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18301$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18303$as_echo "$can_build_shared" >&6; }
18304
18305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18306$as_echo_n "checking whether to build shared libraries... " >&6; }
18307  test no = "$can_build_shared" && enable_shared=no
18308
18309  # On AIX, shared libraries and static libraries use the same namespace, and
18310  # are all built from PIC.
18311  case $host_os in
18312  aix3*)
18313    test yes = "$enable_shared" && enable_static=no
18314    if test -n "$RANLIB"; then
18315      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18316      postinstall_cmds='$RANLIB $lib'
18317    fi
18318    ;;
18319
18320  aix[4-9]*)
18321    if test ia64 != "$host_cpu"; then
18322      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18323      yes,aix,yes) ;;			# shared object as lib.so file only
18324      yes,svr4,*) ;;			# shared object as lib.so archive member only
18325      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18326      esac
18327    fi
18328    ;;
18329  esac
18330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18331$as_echo "$enable_shared" >&6; }
18332
18333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18334$as_echo_n "checking whether to build static libraries... " >&6; }
18335  # Make sure either enable_shared or enable_static is yes.
18336  test yes = "$enable_shared" || enable_static=yes
18337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18338$as_echo "$enable_static" >&6; }
18339
18340
18341
18342
18343fi
18344ac_ext=c
18345ac_cpp='$CPP $CPPFLAGS'
18346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350CC=$lt_save_CC
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366        ac_config_commands="$ac_config_commands libtool"
18367
18368
18369
18370
18371# Only expand once:
18372
18373
18374
18375
18376
18377# Define a configure option for an alternate module directory
18378
18379# Check whether --with-xorg-module-dir was given.
18380if test "${with_xorg_module_dir+set}" = set; then :
18381  withval=$with_xorg_module_dir;  moduledir="$withval"
18382else
18383   moduledir="$libdir/xorg/modules"
18384fi
18385
18386
18387
18388# Store the list of server defined optional extensions in REQUIRED_MODULES
18389
18390
18391	SAVE_CFLAGS="$CFLAGS"
18392	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18393	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h.  */
18395
18396#include "xorg-server.h"
18397#if !defined RANDR
18398#error RANDR not defined
18399#endif
18400
18401int
18402main ()
18403{
18404
18405  ;
18406  return 0;
18407}
18408_ACEOF
18409if ac_fn_c_try_compile "$LINENO"; then :
18410  _EXT_CHECK=yes
18411else
18412  _EXT_CHECK=no
18413fi
18414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415	CFLAGS="$SAVE_CFLAGS"
18416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18417$as_echo_n "checking if RANDR is defined... " >&6; }
18418	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18419$as_echo "$_EXT_CHECK" >&6; }
18420	if test "$_EXT_CHECK" != no; then
18421		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18422	fi
18423
18424
18425
18426	SAVE_CFLAGS="$CFLAGS"
18427	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18428	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430
18431#include "xorg-server.h"
18432#if !defined RENDER
18433#error RENDER not defined
18434#endif
18435
18436int
18437main ()
18438{
18439
18440  ;
18441  return 0;
18442}
18443_ACEOF
18444if ac_fn_c_try_compile "$LINENO"; then :
18445  _EXT_CHECK=yes
18446else
18447  _EXT_CHECK=no
18448fi
18449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450	CFLAGS="$SAVE_CFLAGS"
18451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18452$as_echo_n "checking if RENDER is defined... " >&6; }
18453	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18454$as_echo "$_EXT_CHECK" >&6; }
18455	if test "$_EXT_CHECK" != no; then
18456		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18457	fi
18458
18459
18460
18461	SAVE_CFLAGS="$CFLAGS"
18462	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18463	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464/* end confdefs.h.  */
18465
18466#include "xorg-server.h"
18467#if !defined DPMSExtension
18468#error DPMSExtension not defined
18469#endif
18470
18471int
18472main ()
18473{
18474
18475  ;
18476  return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_compile "$LINENO"; then :
18480  _EXT_CHECK=yes
18481else
18482  _EXT_CHECK=no
18483fi
18484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485	CFLAGS="$SAVE_CFLAGS"
18486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18487$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18488	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18489$as_echo "$_EXT_CHECK" >&6; }
18490	if test "$_EXT_CHECK" != no; then
18491		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18492	fi
18493
18494
18495# Obtain compiler/linker options for the driver dependencies
18496
18497pkg_failed=no
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18499$as_echo_n "checking for XORG... " >&6; }
18500
18501if test -n "$XORG_CFLAGS"; then
18502    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18503 elif test -n "$PKG_CONFIG"; then
18504    if test -n "$PKG_CONFIG" && \
18505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18506  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18507  ac_status=$?
18508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18509  test $ac_status = 0; }; then
18510  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18511		      test "x$?" != "x0" && pkg_failed=yes
18512else
18513  pkg_failed=yes
18514fi
18515 else
18516    pkg_failed=untried
18517fi
18518if test -n "$XORG_LIBS"; then
18519    pkg_cv_XORG_LIBS="$XORG_LIBS"
18520 elif test -n "$PKG_CONFIG"; then
18521    if test -n "$PKG_CONFIG" && \
18522    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18523  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18524  ac_status=$?
18525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526  test $ac_status = 0; }; then
18527  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18528		      test "x$?" != "x0" && pkg_failed=yes
18529else
18530  pkg_failed=yes
18531fi
18532 else
18533    pkg_failed=untried
18534fi
18535
18536
18537
18538if test $pkg_failed = yes; then
18539   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540$as_echo "no" >&6; }
18541
18542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18543        _pkg_short_errors_supported=yes
18544else
18545        _pkg_short_errors_supported=no
18546fi
18547        if test $_pkg_short_errors_supported = yes; then
18548	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18549        else
18550	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18551        fi
18552	# Put the nasty error message in config.log where it belongs
18553	echo "$XORG_PKG_ERRORS" >&5
18554
18555	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18556
18557$XORG_PKG_ERRORS
18558
18559Consider adjusting the PKG_CONFIG_PATH environment variable if you
18560installed software in a non-standard prefix.
18561
18562Alternatively, you may set the environment variables XORG_CFLAGS
18563and XORG_LIBS to avoid the need to call pkg-config.
18564See the pkg-config man page for more details." "$LINENO" 5
18565elif test $pkg_failed = untried; then
18566     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567$as_echo "no" >&6; }
18568	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18570as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18571is in your PATH or set the PKG_CONFIG environment variable to the full
18572path to pkg-config.
18573
18574Alternatively, you may set the environment variables XORG_CFLAGS
18575and XORG_LIBS to avoid the need to call pkg-config.
18576See the pkg-config man page for more details.
18577
18578To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18579See \`config.log' for more details" "$LINENO" 5; }
18580else
18581	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18582	XORG_LIBS=$pkg_cv_XORG_LIBS
18583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18584$as_echo "yes" >&6; }
18585
18586fi
18587
18588pkg_failed=no
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18590$as_echo_n "checking for XEXT... " >&6; }
18591
18592if test -n "$XEXT_CFLAGS"; then
18593    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18594 elif test -n "$PKG_CONFIG"; then
18595    if test -n "$PKG_CONFIG" && \
18596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18597  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18598  ac_status=$?
18599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18600  test $ac_status = 0; }; then
18601  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18602		      test "x$?" != "x0" && pkg_failed=yes
18603else
18604  pkg_failed=yes
18605fi
18606 else
18607    pkg_failed=untried
18608fi
18609if test -n "$XEXT_LIBS"; then
18610    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18611 elif test -n "$PKG_CONFIG"; then
18612    if test -n "$PKG_CONFIG" && \
18613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18614  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18615  ac_status=$?
18616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18617  test $ac_status = 0; }; then
18618  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18619		      test "x$?" != "x0" && pkg_failed=yes
18620else
18621  pkg_failed=yes
18622fi
18623 else
18624    pkg_failed=untried
18625fi
18626
18627
18628
18629if test $pkg_failed = yes; then
18630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631$as_echo "no" >&6; }
18632
18633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18634        _pkg_short_errors_supported=yes
18635else
18636        _pkg_short_errors_supported=no
18637fi
18638        if test $_pkg_short_errors_supported = yes; then
18639	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18640        else
18641	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18642        fi
18643	# Put the nasty error message in config.log where it belongs
18644	echo "$XEXT_PKG_ERRORS" >&5
18645
18646	HAVE_XEXTPROTO_71="no"
18647elif test $pkg_failed = untried; then
18648     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649$as_echo "no" >&6; }
18650	HAVE_XEXTPROTO_71="no"
18651else
18652	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18653	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18655$as_echo "yes" >&6; }
18656	HAVE_XEXTPROTO_71="yes"
18657fi
18658
18659if test "x$HAVE_XEXTPROTO_71" = xyes; then
18660
18661$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18662
18663fi
18664
18665save_CFLAGS="$CFLAGS"
18666CFLAGS="$XORG_CFLAGS"
18667ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18668"
18669if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18670
18671$as_echo "#define HAVE_ISA 1" >>confdefs.h
18672
18673fi
18674
18675CFLAGS="$save_CFLAGS"
18676
18677save_CFLAGS="$CFLAGS"
18678CFLAGS="$XORG_CFLAGS"
18679ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18680"
18681if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18682  XSERVER_LIBPCIACCESS=yes
18683else
18684  XSERVER_LIBPCIACCESS=no
18685fi
18686
18687CFLAGS="$save_CFLAGS"
18688
18689if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18690
18691pkg_failed=no
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18693$as_echo_n "checking for PCIACCESS... " >&6; }
18694
18695if test -n "$PCIACCESS_CFLAGS"; then
18696    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18697 elif test -n "$PKG_CONFIG"; then
18698    if test -n "$PKG_CONFIG" && \
18699    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18700  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18701  ac_status=$?
18702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18703  test $ac_status = 0; }; then
18704  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18705		      test "x$?" != "x0" && pkg_failed=yes
18706else
18707  pkg_failed=yes
18708fi
18709 else
18710    pkg_failed=untried
18711fi
18712if test -n "$PCIACCESS_LIBS"; then
18713    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18714 elif test -n "$PKG_CONFIG"; then
18715    if test -n "$PKG_CONFIG" && \
18716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18717  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18718  ac_status=$?
18719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18720  test $ac_status = 0; }; then
18721  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18722		      test "x$?" != "x0" && pkg_failed=yes
18723else
18724  pkg_failed=yes
18725fi
18726 else
18727    pkg_failed=untried
18728fi
18729
18730
18731
18732if test $pkg_failed = yes; then
18733   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734$as_echo "no" >&6; }
18735
18736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18737        _pkg_short_errors_supported=yes
18738else
18739        _pkg_short_errors_supported=no
18740fi
18741        if test $_pkg_short_errors_supported = yes; then
18742	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18743        else
18744	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18745        fi
18746	# Put the nasty error message in config.log where it belongs
18747	echo "$PCIACCESS_PKG_ERRORS" >&5
18748
18749	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18750
18751$PCIACCESS_PKG_ERRORS
18752
18753Consider adjusting the PKG_CONFIG_PATH environment variable if you
18754installed software in a non-standard prefix.
18755
18756Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18757and PCIACCESS_LIBS to avoid the need to call pkg-config.
18758See the pkg-config man page for more details." "$LINENO" 5
18759elif test $pkg_failed = untried; then
18760     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761$as_echo "no" >&6; }
18762	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18764as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18765is in your PATH or set the PKG_CONFIG environment variable to the full
18766path to pkg-config.
18767
18768Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18769and PCIACCESS_LIBS to avoid the need to call pkg-config.
18770See the pkg-config man page for more details.
18771
18772To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18773See \`config.log' for more details" "$LINENO" 5; }
18774else
18775	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18776	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18777        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18778$as_echo "yes" >&6; }
18779
18780fi
18781fi
18782
18783# Checks for libraries.
18784
18785DRIVER_NAME=vesa
18786
18787
18788ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18789
18790cat >confcache <<\_ACEOF
18791# This file is a shell script that caches the results of configure
18792# tests run on this system so they can be shared between configure
18793# scripts and configure runs, see configure's option --config-cache.
18794# It is not useful on other systems.  If it contains results you don't
18795# want to keep, you may remove or edit it.
18796#
18797# config.status only pays attention to the cache file if you give it
18798# the --recheck option to rerun configure.
18799#
18800# `ac_cv_env_foo' variables (set or unset) will be overridden when
18801# loading this file, other *unset* `ac_cv_foo' will be assigned the
18802# following values.
18803
18804_ACEOF
18805
18806# The following way of writing the cache mishandles newlines in values,
18807# but we know of no workaround that is simple, portable, and efficient.
18808# So, we kill variables containing newlines.
18809# Ultrix sh set writes to stderr and can't be redirected directly,
18810# and sets the high bit in the cache file unless we assign to the vars.
18811(
18812  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18813    eval ac_val=\$$ac_var
18814    case $ac_val in #(
18815    *${as_nl}*)
18816      case $ac_var in #(
18817      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18819      esac
18820      case $ac_var in #(
18821      _ | IFS | as_nl) ;; #(
18822      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18823      *) { eval $ac_var=; unset $ac_var;} ;;
18824      esac ;;
18825    esac
18826  done
18827
18828  (set) 2>&1 |
18829    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18830    *${as_nl}ac_space=\ *)
18831      # `set' does not quote correctly, so add quotes: double-quote
18832      # substitution turns \\\\ into \\, and sed turns \\ into \.
18833      sed -n \
18834	"s/'/'\\\\''/g;
18835	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18836      ;; #(
18837    *)
18838      # `set' quotes correctly as required by POSIX, so do not add quotes.
18839      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18840      ;;
18841    esac |
18842    sort
18843) |
18844  sed '
18845     /^ac_cv_env_/b end
18846     t clear
18847     :clear
18848     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18849     t end
18850     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18851     :end' >>confcache
18852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18853  if test -w "$cache_file"; then
18854    if test "x$cache_file" != "x/dev/null"; then
18855      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18856$as_echo "$as_me: updating cache $cache_file" >&6;}
18857      if test ! -f "$cache_file" || test -h "$cache_file"; then
18858	cat confcache >"$cache_file"
18859      else
18860        case $cache_file in #(
18861        */* | ?:*)
18862	  mv -f confcache "$cache_file"$$ &&
18863	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18864        *)
18865	  mv -f confcache "$cache_file" ;;
18866	esac
18867      fi
18868    fi
18869  else
18870    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18872  fi
18873fi
18874rm -f confcache
18875
18876test "x$prefix" = xNONE && prefix=$ac_default_prefix
18877# Let make expand exec_prefix.
18878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18879
18880DEFS=-DHAVE_CONFIG_H
18881
18882ac_libobjs=
18883ac_ltlibobjs=
18884U=
18885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18886  # 1. Remove the extension, and $U if already installed.
18887  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18888  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18889  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18890  #    will be set to the directory where LIBOBJS objects are built.
18891  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18892  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18893done
18894LIBOBJS=$ac_libobjs
18895
18896LTLIBOBJS=$ac_ltlibobjs
18897
18898
18899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18900$as_echo_n "checking that generated files are newer than configure... " >&6; }
18901   if test -n "$am_sleep_pid"; then
18902     # Hide warnings about reused PIDs.
18903     wait $am_sleep_pid 2>/dev/null
18904   fi
18905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18906$as_echo "done" >&6; }
18907 if test -n "$EXEEXT"; then
18908  am__EXEEXT_TRUE=
18909  am__EXEEXT_FALSE='#'
18910else
18911  am__EXEEXT_TRUE='#'
18912  am__EXEEXT_FALSE=
18913fi
18914
18915if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18916  as_fn_error $? "conditional \"AMDEP\" was never defined.
18917Usually this means the macro was only invoked conditionally." "$LINENO" 5
18918fi
18919if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18920  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18921Usually this means the macro was only invoked conditionally." "$LINENO" 5
18922fi
18923
18924: "${CONFIG_STATUS=./config.status}"
18925ac_write_fail=0
18926ac_clean_files_save=$ac_clean_files
18927ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18929$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18930as_write_fail=0
18931cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18932#! $SHELL
18933# Generated by $as_me.
18934# Run this file to recreate the current configuration.
18935# Compiler output produced by configure, useful for debugging
18936# configure, is in config.log if it exists.
18937
18938debug=false
18939ac_cs_recheck=false
18940ac_cs_silent=false
18941
18942SHELL=\${CONFIG_SHELL-$SHELL}
18943export SHELL
18944_ASEOF
18945cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18946## -------------------- ##
18947## M4sh Initialization. ##
18948## -------------------- ##
18949
18950# Be more Bourne compatible
18951DUALCASE=1; export DUALCASE # for MKS sh
18952if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18953  emulate sh
18954  NULLCMD=:
18955  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18956  # is contrary to our usage.  Disable this feature.
18957  alias -g '${1+"$@"}'='"$@"'
18958  setopt NO_GLOB_SUBST
18959else
18960  case `(set -o) 2>/dev/null` in #(
18961  *posix*) :
18962    set -o posix ;; #(
18963  *) :
18964     ;;
18965esac
18966fi
18967
18968
18969as_nl='
18970'
18971export as_nl
18972# Printing a long string crashes Solaris 7 /usr/bin/printf.
18973as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18974as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18976# Prefer a ksh shell builtin over an external printf program on Solaris,
18977# but without wasting forks for bash or zsh.
18978if test -z "$BASH_VERSION$ZSH_VERSION" \
18979    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18980  as_echo='print -r --'
18981  as_echo_n='print -rn --'
18982elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18983  as_echo='printf %s\n'
18984  as_echo_n='printf %s'
18985else
18986  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18987    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18988    as_echo_n='/usr/ucb/echo -n'
18989  else
18990    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18991    as_echo_n_body='eval
18992      arg=$1;
18993      case $arg in #(
18994      *"$as_nl"*)
18995	expr "X$arg" : "X\\(.*\\)$as_nl";
18996	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18997      esac;
18998      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18999    '
19000    export as_echo_n_body
19001    as_echo_n='sh -c $as_echo_n_body as_echo'
19002  fi
19003  export as_echo_body
19004  as_echo='sh -c $as_echo_body as_echo'
19005fi
19006
19007# The user is always right.
19008if test "${PATH_SEPARATOR+set}" != set; then
19009  PATH_SEPARATOR=:
19010  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19011    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19012      PATH_SEPARATOR=';'
19013  }
19014fi
19015
19016
19017# IFS
19018# We need space, tab and new line, in precisely that order.  Quoting is
19019# there to prevent editors from complaining about space-tab.
19020# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19021# splitting by setting IFS to empty value.)
19022IFS=" ""	$as_nl"
19023
19024# Find who we are.  Look in the path if we contain no directory separator.
19025as_myself=
19026case $0 in #((
19027  *[\\/]* ) as_myself=$0 ;;
19028  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19029for as_dir in $PATH
19030do
19031  IFS=$as_save_IFS
19032  test -z "$as_dir" && as_dir=.
19033    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19034  done
19035IFS=$as_save_IFS
19036
19037     ;;
19038esac
19039# We did not find ourselves, most probably we were run as `sh COMMAND'
19040# in which case we are not to be found in the path.
19041if test "x$as_myself" = x; then
19042  as_myself=$0
19043fi
19044if test ! -f "$as_myself"; then
19045  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19046  exit 1
19047fi
19048
19049# Unset variables that we do not need and which cause bugs (e.g. in
19050# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19051# suppresses any "Segmentation fault" message there.  '((' could
19052# trigger a bug in pdksh 5.2.14.
19053for as_var in BASH_ENV ENV MAIL MAILPATH
19054do eval test x\${$as_var+set} = xset \
19055  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19056done
19057PS1='$ '
19058PS2='> '
19059PS4='+ '
19060
19061# NLS nuisances.
19062LC_ALL=C
19063export LC_ALL
19064LANGUAGE=C
19065export LANGUAGE
19066
19067# CDPATH.
19068(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19069
19070
19071# as_fn_error STATUS ERROR [LINENO LOG_FD]
19072# ----------------------------------------
19073# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19074# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19075# script with STATUS, using 1 if that was 0.
19076as_fn_error ()
19077{
19078  as_status=$1; test $as_status -eq 0 && as_status=1
19079  if test "$4"; then
19080    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19081    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19082  fi
19083  $as_echo "$as_me: error: $2" >&2
19084  as_fn_exit $as_status
19085} # as_fn_error
19086
19087
19088# as_fn_set_status STATUS
19089# -----------------------
19090# Set $? to STATUS, without forking.
19091as_fn_set_status ()
19092{
19093  return $1
19094} # as_fn_set_status
19095
19096# as_fn_exit STATUS
19097# -----------------
19098# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19099as_fn_exit ()
19100{
19101  set +e
19102  as_fn_set_status $1
19103  exit $1
19104} # as_fn_exit
19105
19106# as_fn_unset VAR
19107# ---------------
19108# Portably unset VAR.
19109as_fn_unset ()
19110{
19111  { eval $1=; unset $1;}
19112}
19113as_unset=as_fn_unset
19114# as_fn_append VAR VALUE
19115# ----------------------
19116# Append the text in VALUE to the end of the definition contained in VAR. Take
19117# advantage of any shell optimizations that allow amortized linear growth over
19118# repeated appends, instead of the typical quadratic growth present in naive
19119# implementations.
19120if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19121  eval 'as_fn_append ()
19122  {
19123    eval $1+=\$2
19124  }'
19125else
19126  as_fn_append ()
19127  {
19128    eval $1=\$$1\$2
19129  }
19130fi # as_fn_append
19131
19132# as_fn_arith ARG...
19133# ------------------
19134# Perform arithmetic evaluation on the ARGs, and store the result in the
19135# global $as_val. Take advantage of shells that can avoid forks. The arguments
19136# must be portable across $(()) and expr.
19137if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19138  eval 'as_fn_arith ()
19139  {
19140    as_val=$(( $* ))
19141  }'
19142else
19143  as_fn_arith ()
19144  {
19145    as_val=`expr "$@" || test $? -eq 1`
19146  }
19147fi # as_fn_arith
19148
19149
19150if expr a : '\(a\)' >/dev/null 2>&1 &&
19151   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19152  as_expr=expr
19153else
19154  as_expr=false
19155fi
19156
19157if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19158  as_basename=basename
19159else
19160  as_basename=false
19161fi
19162
19163if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19164  as_dirname=dirname
19165else
19166  as_dirname=false
19167fi
19168
19169as_me=`$as_basename -- "$0" ||
19170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19171	 X"$0" : 'X\(//\)$' \| \
19172	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19173$as_echo X/"$0" |
19174    sed '/^.*\/\([^/][^/]*\)\/*$/{
19175	    s//\1/
19176	    q
19177	  }
19178	  /^X\/\(\/\/\)$/{
19179	    s//\1/
19180	    q
19181	  }
19182	  /^X\/\(\/\).*/{
19183	    s//\1/
19184	    q
19185	  }
19186	  s/.*/./; q'`
19187
19188# Avoid depending upon Character Ranges.
19189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19192as_cr_digits='0123456789'
19193as_cr_alnum=$as_cr_Letters$as_cr_digits
19194
19195ECHO_C= ECHO_N= ECHO_T=
19196case `echo -n x` in #(((((
19197-n*)
19198  case `echo 'xy\c'` in
19199  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19200  xy)  ECHO_C='\c';;
19201  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19202       ECHO_T='	';;
19203  esac;;
19204*)
19205  ECHO_N='-n';;
19206esac
19207
19208rm -f conf$$ conf$$.exe conf$$.file
19209if test -d conf$$.dir; then
19210  rm -f conf$$.dir/conf$$.file
19211else
19212  rm -f conf$$.dir
19213  mkdir conf$$.dir 2>/dev/null
19214fi
19215if (echo >conf$$.file) 2>/dev/null; then
19216  if ln -s conf$$.file conf$$ 2>/dev/null; then
19217    as_ln_s='ln -s'
19218    # ... but there are two gotchas:
19219    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19220    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19221    # In both cases, we have to default to `cp -pR'.
19222    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19223      as_ln_s='cp -pR'
19224  elif ln conf$$.file conf$$ 2>/dev/null; then
19225    as_ln_s=ln
19226  else
19227    as_ln_s='cp -pR'
19228  fi
19229else
19230  as_ln_s='cp -pR'
19231fi
19232rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19233rmdir conf$$.dir 2>/dev/null
19234
19235
19236# as_fn_mkdir_p
19237# -------------
19238# Create "$as_dir" as a directory, including parents if necessary.
19239as_fn_mkdir_p ()
19240{
19241
19242  case $as_dir in #(
19243  -*) as_dir=./$as_dir;;
19244  esac
19245  test -d "$as_dir" || eval $as_mkdir_p || {
19246    as_dirs=
19247    while :; do
19248      case $as_dir in #(
19249      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19250      *) as_qdir=$as_dir;;
19251      esac
19252      as_dirs="'$as_qdir' $as_dirs"
19253      as_dir=`$as_dirname -- "$as_dir" ||
19254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19255	 X"$as_dir" : 'X\(//\)[^/]' \| \
19256	 X"$as_dir" : 'X\(//\)$' \| \
19257	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19258$as_echo X"$as_dir" |
19259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19260	    s//\1/
19261	    q
19262	  }
19263	  /^X\(\/\/\)[^/].*/{
19264	    s//\1/
19265	    q
19266	  }
19267	  /^X\(\/\/\)$/{
19268	    s//\1/
19269	    q
19270	  }
19271	  /^X\(\/\).*/{
19272	    s//\1/
19273	    q
19274	  }
19275	  s/.*/./; q'`
19276      test -d "$as_dir" && break
19277    done
19278    test -z "$as_dirs" || eval "mkdir $as_dirs"
19279  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19280
19281
19282} # as_fn_mkdir_p
19283if mkdir -p . 2>/dev/null; then
19284  as_mkdir_p='mkdir -p "$as_dir"'
19285else
19286  test -d ./-p && rmdir ./-p
19287  as_mkdir_p=false
19288fi
19289
19290
19291# as_fn_executable_p FILE
19292# -----------------------
19293# Test if FILE is an executable regular file.
19294as_fn_executable_p ()
19295{
19296  test -f "$1" && test -x "$1"
19297} # as_fn_executable_p
19298as_test_x='test -x'
19299as_executable_p=as_fn_executable_p
19300
19301# Sed expression to map a string onto a valid CPP name.
19302as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19303
19304# Sed expression to map a string onto a valid variable name.
19305as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19306
19307
19308exec 6>&1
19309## ----------------------------------- ##
19310## Main body of $CONFIG_STATUS script. ##
19311## ----------------------------------- ##
19312_ASEOF
19313test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19314
19315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19316# Save the log message, to keep $0 and so on meaningful, and to
19317# report actual input values of CONFIG_FILES etc. instead of their
19318# values after options handling.
19319ac_log="
19320This file was extended by xf86-video-vesa $as_me 2.5.0, which was
19321generated by GNU Autoconf 2.69.  Invocation command line was
19322
19323  CONFIG_FILES    = $CONFIG_FILES
19324  CONFIG_HEADERS  = $CONFIG_HEADERS
19325  CONFIG_LINKS    = $CONFIG_LINKS
19326  CONFIG_COMMANDS = $CONFIG_COMMANDS
19327  $ $0 $@
19328
19329on `(hostname || uname -n) 2>/dev/null | sed 1q`
19330"
19331
19332_ACEOF
19333
19334case $ac_config_files in *"
19335"*) set x $ac_config_files; shift; ac_config_files=$*;;
19336esac
19337
19338case $ac_config_headers in *"
19339"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19340esac
19341
19342
19343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19344# Files that config.status was made for.
19345config_files="$ac_config_files"
19346config_headers="$ac_config_headers"
19347config_commands="$ac_config_commands"
19348
19349_ACEOF
19350
19351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19352ac_cs_usage="\
19353\`$as_me' instantiates files and other configuration actions
19354from templates according to the current configuration.  Unless the files
19355and actions are specified as TAGs, all are instantiated by default.
19356
19357Usage: $0 [OPTION]... [TAG]...
19358
19359  -h, --help       print this help, then exit
19360  -V, --version    print version number and configuration settings, then exit
19361      --config     print configuration, then exit
19362  -q, --quiet, --silent
19363                   do not print progress messages
19364  -d, --debug      don't remove temporary files
19365      --recheck    update $as_me by reconfiguring in the same conditions
19366      --file=FILE[:TEMPLATE]
19367                   instantiate the configuration file FILE
19368      --header=FILE[:TEMPLATE]
19369                   instantiate the configuration header FILE
19370
19371Configuration files:
19372$config_files
19373
19374Configuration headers:
19375$config_headers
19376
19377Configuration commands:
19378$config_commands
19379
19380Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/issues>."
19381
19382_ACEOF
19383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19384ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19385ac_cs_version="\\
19386xf86-video-vesa config.status 2.5.0
19387configured by $0, generated by GNU Autoconf 2.69,
19388  with options \\"\$ac_cs_config\\"
19389
19390Copyright (C) 2012 Free Software Foundation, Inc.
19391This config.status script is free software; the Free Software Foundation
19392gives unlimited permission to copy, distribute and modify it."
19393
19394ac_pwd='$ac_pwd'
19395srcdir='$srcdir'
19396INSTALL='$INSTALL'
19397MKDIR_P='$MKDIR_P'
19398AWK='$AWK'
19399test -n "\$AWK" || AWK=awk
19400_ACEOF
19401
19402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19403# The default lists apply if the user does not specify any file.
19404ac_need_defaults=:
19405while test $# != 0
19406do
19407  case $1 in
19408  --*=?*)
19409    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19410    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19411    ac_shift=:
19412    ;;
19413  --*=)
19414    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19415    ac_optarg=
19416    ac_shift=:
19417    ;;
19418  *)
19419    ac_option=$1
19420    ac_optarg=$2
19421    ac_shift=shift
19422    ;;
19423  esac
19424
19425  case $ac_option in
19426  # Handling of the options.
19427  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19428    ac_cs_recheck=: ;;
19429  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19430    $as_echo "$ac_cs_version"; exit ;;
19431  --config | --confi | --conf | --con | --co | --c )
19432    $as_echo "$ac_cs_config"; exit ;;
19433  --debug | --debu | --deb | --de | --d | -d )
19434    debug=: ;;
19435  --file | --fil | --fi | --f )
19436    $ac_shift
19437    case $ac_optarg in
19438    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19439    '') as_fn_error $? "missing file argument" ;;
19440    esac
19441    as_fn_append CONFIG_FILES " '$ac_optarg'"
19442    ac_need_defaults=false;;
19443  --header | --heade | --head | --hea )
19444    $ac_shift
19445    case $ac_optarg in
19446    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19447    esac
19448    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19449    ac_need_defaults=false;;
19450  --he | --h)
19451    # Conflict between --help and --header
19452    as_fn_error $? "ambiguous option: \`$1'
19453Try \`$0 --help' for more information.";;
19454  --help | --hel | -h )
19455    $as_echo "$ac_cs_usage"; exit ;;
19456  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19457  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19458    ac_cs_silent=: ;;
19459
19460  # This is an error.
19461  -*) as_fn_error $? "unrecognized option: \`$1'
19462Try \`$0 --help' for more information." ;;
19463
19464  *) as_fn_append ac_config_targets " $1"
19465     ac_need_defaults=false ;;
19466
19467  esac
19468  shift
19469done
19470
19471ac_configure_extra_args=
19472
19473if $ac_cs_silent; then
19474  exec 6>/dev/null
19475  ac_configure_extra_args="$ac_configure_extra_args --silent"
19476fi
19477
19478_ACEOF
19479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19480if \$ac_cs_recheck; then
19481  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19482  shift
19483  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19484  CONFIG_SHELL='$SHELL'
19485  export CONFIG_SHELL
19486  exec "\$@"
19487fi
19488
19489_ACEOF
19490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19491exec 5>>config.log
19492{
19493  echo
19494  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19495## Running $as_me. ##
19496_ASBOX
19497  $as_echo "$ac_log"
19498} >&5
19499
19500_ACEOF
19501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19502#
19503# INIT-COMMANDS
19504#
19505AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19506
19507
19508# The HP-UX ksh and POSIX shell print the target directory to stdout
19509# if CDPATH is set.
19510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19511
19512sed_quote_subst='$sed_quote_subst'
19513double_quote_subst='$double_quote_subst'
19514delay_variable_subst='$delay_variable_subst'
19515enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19516macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19517macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19518enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19519pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19520enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19521shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19522SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19523ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19524PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19525host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19526host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19527host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19528build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19529build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19530build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19531SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19532Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19533GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19534EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19535FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19536LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19537NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19538LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19539max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19540ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19541exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19542lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19543lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19544lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19545lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19546lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19547reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19548reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19549OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19550deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19551file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19552file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19553want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19554DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19555sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19556AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19557AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19558archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19559STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19560RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19561old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19562old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19563old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19564lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19565CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19566CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19567compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19568GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19569lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19570lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19571lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19572lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19573lt_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"`'
19574lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19575nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19576lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19577lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19578objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19579MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19580lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19581lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19582lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19583lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19584lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19585need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19586MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19587DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19588NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19589LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19590OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19591OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19592libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19593shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19594extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19595archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19596enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19597export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19598whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19599compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19600old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19601old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19602archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19603archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19604module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19605module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19606with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19607allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19608no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19609hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19610hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19611hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19612hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19613hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19614hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19615hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19616inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19617link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19618always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19619export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19620exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19621include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19622prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19623postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19624file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19625variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19626need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19627need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19628version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19629runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19630shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19631shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19632libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19633library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19634soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19635install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19636postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19637postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19638finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19639finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19640hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19641sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19642configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19643configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19644hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19645enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19646enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19647enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19648old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19649striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19650
19651LTCC='$LTCC'
19652LTCFLAGS='$LTCFLAGS'
19653compiler='$compiler_DEFAULT'
19654
19655# A function that is used when there is no print builtin or printf.
19656func_fallback_echo ()
19657{
19658  eval 'cat <<_LTECHO_EOF
19659\$1
19660_LTECHO_EOF'
19661}
19662
19663# Quote evaled strings.
19664for var in SHELL \
19665ECHO \
19666PATH_SEPARATOR \
19667SED \
19668GREP \
19669EGREP \
19670FGREP \
19671LD \
19672NM \
19673LN_S \
19674lt_SP2NL \
19675lt_NL2SP \
19676reload_flag \
19677OBJDUMP \
19678deplibs_check_method \
19679file_magic_cmd \
19680file_magic_glob \
19681want_nocaseglob \
19682DLLTOOL \
19683sharedlib_from_linklib_cmd \
19684AR \
19685AR_FLAGS \
19686archiver_list_spec \
19687STRIP \
19688RANLIB \
19689CC \
19690CFLAGS \
19691compiler \
19692lt_cv_sys_global_symbol_pipe \
19693lt_cv_sys_global_symbol_to_cdecl \
19694lt_cv_sys_global_symbol_to_import \
19695lt_cv_sys_global_symbol_to_c_name_address \
19696lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19697lt_cv_nm_interface \
19698nm_file_list_spec \
19699lt_cv_truncate_bin \
19700lt_prog_compiler_no_builtin_flag \
19701lt_prog_compiler_pic \
19702lt_prog_compiler_wl \
19703lt_prog_compiler_static \
19704lt_cv_prog_compiler_c_o \
19705need_locks \
19706MANIFEST_TOOL \
19707DSYMUTIL \
19708NMEDIT \
19709LIPO \
19710OTOOL \
19711OTOOL64 \
19712shrext_cmds \
19713export_dynamic_flag_spec \
19714whole_archive_flag_spec \
19715compiler_needs_object \
19716with_gnu_ld \
19717allow_undefined_flag \
19718no_undefined_flag \
19719hardcode_libdir_flag_spec \
19720hardcode_libdir_separator \
19721exclude_expsyms \
19722include_expsyms \
19723file_list_spec \
19724variables_saved_for_relink \
19725libname_spec \
19726library_names_spec \
19727soname_spec \
19728install_override_mode \
19729finish_eval \
19730old_striplib \
19731striplib; do
19732    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19733    *[\\\\\\\`\\"\\\$]*)
19734      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19735      ;;
19736    *)
19737      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19738      ;;
19739    esac
19740done
19741
19742# Double-quote double-evaled strings.
19743for var in reload_cmds \
19744old_postinstall_cmds \
19745old_postuninstall_cmds \
19746old_archive_cmds \
19747extract_expsyms_cmds \
19748old_archive_from_new_cmds \
19749old_archive_from_expsyms_cmds \
19750archive_cmds \
19751archive_expsym_cmds \
19752module_cmds \
19753module_expsym_cmds \
19754export_symbols_cmds \
19755prelink_cmds \
19756postlink_cmds \
19757postinstall_cmds \
19758postuninstall_cmds \
19759finish_cmds \
19760sys_lib_search_path_spec \
19761configure_time_dlsearch_path \
19762configure_time_lt_sys_library_path; do
19763    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19764    *[\\\\\\\`\\"\\\$]*)
19765      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19766      ;;
19767    *)
19768      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19769      ;;
19770    esac
19771done
19772
19773ac_aux_dir='$ac_aux_dir'
19774
19775# See if we are running on zsh, and set the options that allow our
19776# commands through without removal of \ escapes INIT.
19777if test -n "\${ZSH_VERSION+set}"; then
19778   setopt NO_GLOB_SUBST
19779fi
19780
19781
19782    PACKAGE='$PACKAGE'
19783    VERSION='$VERSION'
19784    RM='$RM'
19785    ofile='$ofile'
19786
19787
19788
19789
19790_ACEOF
19791
19792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19793
19794# Handling of arguments.
19795for ac_config_target in $ac_config_targets
19796do
19797  case $ac_config_target in
19798    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19799    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19800    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19801    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19802    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19803    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19804
19805  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19806  esac
19807done
19808
19809
19810# If the user did not use the arguments to specify the items to instantiate,
19811# then the envvar interface is used.  Set only those that are not.
19812# We use the long form for the default assignment because of an extremely
19813# bizarre bug on SunOS 4.1.3.
19814if $ac_need_defaults; then
19815  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19816  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19817  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19818fi
19819
19820# Have a temporary directory for convenience.  Make it in the build tree
19821# simply because there is no reason against having it here, and in addition,
19822# creating and moving files from /tmp can sometimes cause problems.
19823# Hook for its removal unless debugging.
19824# Note that there is a small window in which the directory will not be cleaned:
19825# after its creation but before its name has been assigned to `$tmp'.
19826$debug ||
19827{
19828  tmp= ac_tmp=
19829  trap 'exit_status=$?
19830  : "${ac_tmp:=$tmp}"
19831  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19832' 0
19833  trap 'as_fn_exit 1' 1 2 13 15
19834}
19835# Create a (secure) tmp directory for tmp files.
19836
19837{
19838  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19839  test -d "$tmp"
19840}  ||
19841{
19842  tmp=./conf$$-$RANDOM
19843  (umask 077 && mkdir "$tmp")
19844} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19845ac_tmp=$tmp
19846
19847# Set up the scripts for CONFIG_FILES section.
19848# No need to generate them if there are no CONFIG_FILES.
19849# This happens for instance with `./config.status config.h'.
19850if test -n "$CONFIG_FILES"; then
19851
19852
19853ac_cr=`echo X | tr X '\015'`
19854# On cygwin, bash can eat \r inside `` if the user requested igncr.
19855# But we know of no other shell where ac_cr would be empty at this
19856# point, so we can use a bashism as a fallback.
19857if test "x$ac_cr" = x; then
19858  eval ac_cr=\$\'\\r\'
19859fi
19860ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19861if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19862  ac_cs_awk_cr='\\r'
19863else
19864  ac_cs_awk_cr=$ac_cr
19865fi
19866
19867echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19868_ACEOF
19869
19870
19871{
19872  echo "cat >conf$$subs.awk <<_ACEOF" &&
19873  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19874  echo "_ACEOF"
19875} >conf$$subs.sh ||
19876  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19877ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19878ac_delim='%!_!# '
19879for ac_last_try in false false false false false :; do
19880  . ./conf$$subs.sh ||
19881    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19882
19883  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19884  if test $ac_delim_n = $ac_delim_num; then
19885    break
19886  elif $ac_last_try; then
19887    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19888  else
19889    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19890  fi
19891done
19892rm -f conf$$subs.sh
19893
19894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19896_ACEOF
19897sed -n '
19898h
19899s/^/S["/; s/!.*/"]=/
19900p
19901g
19902s/^[^!]*!//
19903:repl
19904t repl
19905s/'"$ac_delim"'$//
19906t delim
19907:nl
19908h
19909s/\(.\{148\}\)..*/\1/
19910t more1
19911s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19912p
19913n
19914b repl
19915:more1
19916s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19917p
19918g
19919s/.\{148\}//
19920t nl
19921:delim
19922h
19923s/\(.\{148\}\)..*/\1/
19924t more2
19925s/["\\]/\\&/g; s/^/"/; s/$/"/
19926p
19927b
19928:more2
19929s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19930p
19931g
19932s/.\{148\}//
19933t delim
19934' <conf$$subs.awk | sed '
19935/^[^""]/{
19936  N
19937  s/\n//
19938}
19939' >>$CONFIG_STATUS || ac_write_fail=1
19940rm -f conf$$subs.awk
19941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19942_ACAWK
19943cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19944  for (key in S) S_is_set[key] = 1
19945  FS = ""
19946
19947}
19948{
19949  line = $ 0
19950  nfields = split(line, field, "@")
19951  substed = 0
19952  len = length(field[1])
19953  for (i = 2; i < nfields; i++) {
19954    key = field[i]
19955    keylen = length(key)
19956    if (S_is_set[key]) {
19957      value = S[key]
19958      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19959      len += length(value) + length(field[++i])
19960      substed = 1
19961    } else
19962      len += 1 + keylen
19963  }
19964
19965  print line
19966}
19967
19968_ACAWK
19969_ACEOF
19970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19971if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19972  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19973else
19974  cat
19975fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19976  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19977_ACEOF
19978
19979# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19980# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19981# trailing colons and then remove the whole line if VPATH becomes empty
19982# (actually we leave an empty line to preserve line numbers).
19983if test "x$srcdir" = x.; then
19984  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19985h
19986s///
19987s/^/:/
19988s/[	 ]*$/:/
19989s/:\$(srcdir):/:/g
19990s/:\${srcdir}:/:/g
19991s/:@srcdir@:/:/g
19992s/^:*//
19993s/:*$//
19994x
19995s/\(=[	 ]*\).*/\1/
19996G
19997s/\n//
19998s/^[^=]*=[	 ]*$//
19999}'
20000fi
20001
20002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003fi # test -n "$CONFIG_FILES"
20004
20005# Set up the scripts for CONFIG_HEADERS section.
20006# No need to generate them if there are no CONFIG_HEADERS.
20007# This happens for instance with `./config.status Makefile'.
20008if test -n "$CONFIG_HEADERS"; then
20009cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20010BEGIN {
20011_ACEOF
20012
20013# Transform confdefs.h into an awk script `defines.awk', embedded as
20014# here-document in config.status, that substitutes the proper values into
20015# config.h.in to produce config.h.
20016
20017# Create a delimiter string that does not exist in confdefs.h, to ease
20018# handling of long lines.
20019ac_delim='%!_!# '
20020for ac_last_try in false false :; do
20021  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20022  if test -z "$ac_tt"; then
20023    break
20024  elif $ac_last_try; then
20025    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20026  else
20027    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20028  fi
20029done
20030
20031# For the awk script, D is an array of macro values keyed by name,
20032# likewise P contains macro parameters if any.  Preserve backslash
20033# newline sequences.
20034
20035ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20036sed -n '
20037s/.\{148\}/&'"$ac_delim"'/g
20038t rset
20039:rset
20040s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20041t def
20042d
20043:def
20044s/\\$//
20045t bsnl
20046s/["\\]/\\&/g
20047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20048D["\1"]=" \3"/p
20049s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20050d
20051:bsnl
20052s/["\\]/\\&/g
20053s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20054D["\1"]=" \3\\\\\\n"\\/p
20055t cont
20056s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20057t cont
20058d
20059:cont
20060n
20061s/.\{148\}/&'"$ac_delim"'/g
20062t clear
20063:clear
20064s/\\$//
20065t bsnlc
20066s/["\\]/\\&/g; s/^/"/; s/$/"/p
20067d
20068:bsnlc
20069s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20070b cont
20071' <confdefs.h | sed '
20072s/'"$ac_delim"'/"\\\
20073"/g' >>$CONFIG_STATUS || ac_write_fail=1
20074
20075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076  for (key in D) D_is_set[key] = 1
20077  FS = ""
20078}
20079/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20080  line = \$ 0
20081  split(line, arg, " ")
20082  if (arg[1] == "#") {
20083    defundef = arg[2]
20084    mac1 = arg[3]
20085  } else {
20086    defundef = substr(arg[1], 2)
20087    mac1 = arg[2]
20088  }
20089  split(mac1, mac2, "(") #)
20090  macro = mac2[1]
20091  prefix = substr(line, 1, index(line, defundef) - 1)
20092  if (D_is_set[macro]) {
20093    # Preserve the white space surrounding the "#".
20094    print prefix "define", macro P[macro] D[macro]
20095    next
20096  } else {
20097    # Replace #undef with comments.  This is necessary, for example,
20098    # in the case of _POSIX_SOURCE, which is predefined and required
20099    # on some systems where configure will not decide to define it.
20100    if (defundef == "undef") {
20101      print "/*", prefix defundef, macro, "*/"
20102      next
20103    }
20104  }
20105}
20106{ print }
20107_ACAWK
20108_ACEOF
20109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20110  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20111fi # test -n "$CONFIG_HEADERS"
20112
20113
20114eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20115shift
20116for ac_tag
20117do
20118  case $ac_tag in
20119  :[FHLC]) ac_mode=$ac_tag; continue;;
20120  esac
20121  case $ac_mode$ac_tag in
20122  :[FHL]*:*);;
20123  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20124  :[FH]-) ac_tag=-:-;;
20125  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20126  esac
20127  ac_save_IFS=$IFS
20128  IFS=:
20129  set x $ac_tag
20130  IFS=$ac_save_IFS
20131  shift
20132  ac_file=$1
20133  shift
20134
20135  case $ac_mode in
20136  :L) ac_source=$1;;
20137  :[FH])
20138    ac_file_inputs=
20139    for ac_f
20140    do
20141      case $ac_f in
20142      -) ac_f="$ac_tmp/stdin";;
20143      *) # Look for the file first in the build tree, then in the source tree
20144	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20145	 # because $ac_f cannot contain `:'.
20146	 test -f "$ac_f" ||
20147	   case $ac_f in
20148	   [\\/$]*) false;;
20149	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20150	   esac ||
20151	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20152      esac
20153      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20154      as_fn_append ac_file_inputs " '$ac_f'"
20155    done
20156
20157    # Let's still pretend it is `configure' which instantiates (i.e., don't
20158    # use $as_me), people would be surprised to read:
20159    #    /* config.h.  Generated by config.status.  */
20160    configure_input='Generated from '`
20161	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20162	`' by configure.'
20163    if test x"$ac_file" != x-; then
20164      configure_input="$ac_file.  $configure_input"
20165      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20166$as_echo "$as_me: creating $ac_file" >&6;}
20167    fi
20168    # Neutralize special characters interpreted by sed in replacement strings.
20169    case $configure_input in #(
20170    *\&* | *\|* | *\\* )
20171       ac_sed_conf_input=`$as_echo "$configure_input" |
20172       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20173    *) ac_sed_conf_input=$configure_input;;
20174    esac
20175
20176    case $ac_tag in
20177    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20178      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20179    esac
20180    ;;
20181  esac
20182
20183  ac_dir=`$as_dirname -- "$ac_file" ||
20184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20185	 X"$ac_file" : 'X\(//\)[^/]' \| \
20186	 X"$ac_file" : 'X\(//\)$' \| \
20187	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20188$as_echo X"$ac_file" |
20189    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20190	    s//\1/
20191	    q
20192	  }
20193	  /^X\(\/\/\)[^/].*/{
20194	    s//\1/
20195	    q
20196	  }
20197	  /^X\(\/\/\)$/{
20198	    s//\1/
20199	    q
20200	  }
20201	  /^X\(\/\).*/{
20202	    s//\1/
20203	    q
20204	  }
20205	  s/.*/./; q'`
20206  as_dir="$ac_dir"; as_fn_mkdir_p
20207  ac_builddir=.
20208
20209case "$ac_dir" in
20210.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20211*)
20212  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20213  # A ".." for each directory in $ac_dir_suffix.
20214  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20215  case $ac_top_builddir_sub in
20216  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20217  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20218  esac ;;
20219esac
20220ac_abs_top_builddir=$ac_pwd
20221ac_abs_builddir=$ac_pwd$ac_dir_suffix
20222# for backward compatibility:
20223ac_top_builddir=$ac_top_build_prefix
20224
20225case $srcdir in
20226  .)  # We are building in place.
20227    ac_srcdir=.
20228    ac_top_srcdir=$ac_top_builddir_sub
20229    ac_abs_top_srcdir=$ac_pwd ;;
20230  [\\/]* | ?:[\\/]* )  # Absolute name.
20231    ac_srcdir=$srcdir$ac_dir_suffix;
20232    ac_top_srcdir=$srcdir
20233    ac_abs_top_srcdir=$srcdir ;;
20234  *) # Relative name.
20235    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20236    ac_top_srcdir=$ac_top_build_prefix$srcdir
20237    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20238esac
20239ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20240
20241
20242  case $ac_mode in
20243  :F)
20244  #
20245  # CONFIG_FILE
20246  #
20247
20248  case $INSTALL in
20249  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20250  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20251  esac
20252  ac_MKDIR_P=$MKDIR_P
20253  case $MKDIR_P in
20254  [\\/$]* | ?:[\\/]* ) ;;
20255  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20256  esac
20257_ACEOF
20258
20259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20260# If the template does not know about datarootdir, expand it.
20261# FIXME: This hack should be removed a few years after 2.60.
20262ac_datarootdir_hack=; ac_datarootdir_seen=
20263ac_sed_dataroot='
20264/datarootdir/ {
20265  p
20266  q
20267}
20268/@datadir@/p
20269/@docdir@/p
20270/@infodir@/p
20271/@localedir@/p
20272/@mandir@/p'
20273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20274*datarootdir*) ac_datarootdir_seen=yes;;
20275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20276  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20278_ACEOF
20279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20280  ac_datarootdir_hack='
20281  s&@datadir@&$datadir&g
20282  s&@docdir@&$docdir&g
20283  s&@infodir@&$infodir&g
20284  s&@localedir@&$localedir&g
20285  s&@mandir@&$mandir&g
20286  s&\\\${datarootdir}&$datarootdir&g' ;;
20287esac
20288_ACEOF
20289
20290# Neutralize VPATH when `$srcdir' = `.'.
20291# Shell code in configure.ac might set extrasub.
20292# FIXME: do we really want to maintain this feature?
20293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20294ac_sed_extra="$ac_vpsub
20295$extrasub
20296_ACEOF
20297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20298:t
20299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20300s|@configure_input@|$ac_sed_conf_input|;t t
20301s&@top_builddir@&$ac_top_builddir_sub&;t t
20302s&@top_build_prefix@&$ac_top_build_prefix&;t t
20303s&@srcdir@&$ac_srcdir&;t t
20304s&@abs_srcdir@&$ac_abs_srcdir&;t t
20305s&@top_srcdir@&$ac_top_srcdir&;t t
20306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20307s&@builddir@&$ac_builddir&;t t
20308s&@abs_builddir@&$ac_abs_builddir&;t t
20309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20310s&@INSTALL@&$ac_INSTALL&;t t
20311s&@MKDIR_P@&$ac_MKDIR_P&;t t
20312$ac_datarootdir_hack
20313"
20314eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20315  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20316
20317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20318  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20319  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20320      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20321  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20322which seems to be undefined.  Please make sure it is defined" >&5
20323$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20324which seems to be undefined.  Please make sure it is defined" >&2;}
20325
20326  rm -f "$ac_tmp/stdin"
20327  case $ac_file in
20328  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20329  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20330  esac \
20331  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20332 ;;
20333  :H)
20334  #
20335  # CONFIG_HEADER
20336  #
20337  if test x"$ac_file" != x-; then
20338    {
20339      $as_echo "/* $configure_input  */" \
20340      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20341    } >"$ac_tmp/config.h" \
20342      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20343    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20344      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20345$as_echo "$as_me: $ac_file is unchanged" >&6;}
20346    else
20347      rm -f "$ac_file"
20348      mv "$ac_tmp/config.h" "$ac_file" \
20349	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20350    fi
20351  else
20352    $as_echo "/* $configure_input  */" \
20353      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20354      || as_fn_error $? "could not create -" "$LINENO" 5
20355  fi
20356# Compute "$ac_file"'s index in $config_headers.
20357_am_arg="$ac_file"
20358_am_stamp_count=1
20359for _am_header in $config_headers :; do
20360  case $_am_header in
20361    $_am_arg | $_am_arg:* )
20362      break ;;
20363    * )
20364      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20365  esac
20366done
20367echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20368$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20369	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20370	 X"$_am_arg" : 'X\(//\)$' \| \
20371	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20372$as_echo X"$_am_arg" |
20373    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20374	    s//\1/
20375	    q
20376	  }
20377	  /^X\(\/\/\)[^/].*/{
20378	    s//\1/
20379	    q
20380	  }
20381	  /^X\(\/\/\)$/{
20382	    s//\1/
20383	    q
20384	  }
20385	  /^X\(\/\).*/{
20386	    s//\1/
20387	    q
20388	  }
20389	  s/.*/./; q'`/stamp-h$_am_stamp_count
20390 ;;
20391
20392  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20393$as_echo "$as_me: executing $ac_file commands" >&6;}
20394 ;;
20395  esac
20396
20397
20398  case $ac_file$ac_mode in
20399    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20400  # Older Autoconf quotes --file arguments for eval, but not when files
20401  # are listed without --file.  Let's play safe and only enable the eval
20402  # if we detect the quoting.
20403  # TODO: see whether this extra hack can be removed once we start
20404  # requiring Autoconf 2.70 or later.
20405  case $CONFIG_FILES in #(
20406  *\'*) :
20407    eval set x "$CONFIG_FILES" ;; #(
20408  *) :
20409    set x $CONFIG_FILES ;; #(
20410  *) :
20411     ;;
20412esac
20413  shift
20414  # Used to flag and report bootstrapping failures.
20415  am_rc=0
20416  for am_mf
20417  do
20418    # Strip MF so we end up with the name of the file.
20419    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20420    # Check whether this is an Automake generated Makefile which includes
20421    # dependency-tracking related rules and includes.
20422    # Grep'ing the whole file directly is not great: AIX grep has a line
20423    # limit of 2048, but all sed's we know have understand at least 4000.
20424    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20425      || continue
20426    am_dirpart=`$as_dirname -- "$am_mf" ||
20427$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428	 X"$am_mf" : 'X\(//\)[^/]' \| \
20429	 X"$am_mf" : 'X\(//\)$' \| \
20430	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20431$as_echo X"$am_mf" |
20432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20433	    s//\1/
20434	    q
20435	  }
20436	  /^X\(\/\/\)[^/].*/{
20437	    s//\1/
20438	    q
20439	  }
20440	  /^X\(\/\/\)$/{
20441	    s//\1/
20442	    q
20443	  }
20444	  /^X\(\/\).*/{
20445	    s//\1/
20446	    q
20447	  }
20448	  s/.*/./; q'`
20449    am_filepart=`$as_basename -- "$am_mf" ||
20450$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20451	 X"$am_mf" : 'X\(//\)$' \| \
20452	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20453$as_echo X/"$am_mf" |
20454    sed '/^.*\/\([^/][^/]*\)\/*$/{
20455	    s//\1/
20456	    q
20457	  }
20458	  /^X\/\(\/\/\)$/{
20459	    s//\1/
20460	    q
20461	  }
20462	  /^X\/\(\/\).*/{
20463	    s//\1/
20464	    q
20465	  }
20466	  s/.*/./; q'`
20467    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20468      && sed -e '/# am--include-marker/d' "$am_filepart" \
20469        | $MAKE -f - am--depfiles" >&5
20470   (cd "$am_dirpart" \
20471      && sed -e '/# am--include-marker/d' "$am_filepart" \
20472        | $MAKE -f - am--depfiles) >&5 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } || am_rc=$?
20476  done
20477  if test $am_rc -ne 0; then
20478    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20480as_fn_error $? "Something went wrong bootstrapping makefile fragments
20481    for automatic dependency tracking.  Try re-running configure with the
20482    '--disable-dependency-tracking' option to at least be able to build
20483    the package (albeit without support for automatic dependency tracking).
20484See \`config.log' for more details" "$LINENO" 5; }
20485  fi
20486  { am_dirpart=; unset am_dirpart;}
20487  { am_filepart=; unset am_filepart;}
20488  { am_mf=; unset am_mf;}
20489  { am_rc=; unset am_rc;}
20490  rm -f conftest-deps.mk
20491}
20492 ;;
20493    "libtool":C)
20494
20495    # See if we are running on zsh, and set the options that allow our
20496    # commands through without removal of \ escapes.
20497    if test -n "${ZSH_VERSION+set}"; then
20498      setopt NO_GLOB_SUBST
20499    fi
20500
20501    cfgfile=${ofile}T
20502    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20503    $RM "$cfgfile"
20504
20505    cat <<_LT_EOF >> "$cfgfile"
20506#! $SHELL
20507# Generated automatically by $as_me ($PACKAGE) $VERSION
20508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20510
20511# Provide generalized library-building support services.
20512# Written by Gordon Matzigkeit, 1996
20513
20514# Copyright (C) 2014 Free Software Foundation, Inc.
20515# This is free software; see the source for copying conditions.  There is NO
20516# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20517
20518# GNU Libtool is free software; you can redistribute it and/or modify
20519# it under the terms of the GNU General Public License as published by
20520# the Free Software Foundation; either version 2 of of the License, or
20521# (at your option) any later version.
20522#
20523# As a special exception to the GNU General Public License, if you
20524# distribute this file as part of a program or library that is built
20525# using GNU Libtool, you may include this file under the  same
20526# distribution terms that you use for the rest of that program.
20527#
20528# GNU Libtool is distributed in the hope that it will be useful, but
20529# WITHOUT ANY WARRANTY; without even the implied warranty of
20530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20531# GNU General Public License for more details.
20532#
20533# You should have received a copy of the GNU General Public License
20534# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20535
20536
20537# The names of the tagged configurations supported by this script.
20538available_tags=''
20539
20540# Configured defaults for sys_lib_dlsearch_path munging.
20541: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20542
20543# ### BEGIN LIBTOOL CONFIG
20544
20545# Whether or not to build static libraries.
20546build_old_libs=$enable_static
20547
20548# Which release of libtool.m4 was used?
20549macro_version=$macro_version
20550macro_revision=$macro_revision
20551
20552# Whether or not to build shared libraries.
20553build_libtool_libs=$enable_shared
20554
20555# What type of objects to build.
20556pic_mode=$pic_mode
20557
20558# Whether or not to optimize for fast installation.
20559fast_install=$enable_fast_install
20560
20561# Shared archive member basename,for filename based shared library versioning on AIX.
20562shared_archive_member_spec=$shared_archive_member_spec
20563
20564# Shell to use when invoking shell scripts.
20565SHELL=$lt_SHELL
20566
20567# An echo program that protects backslashes.
20568ECHO=$lt_ECHO
20569
20570# The PATH separator for the build system.
20571PATH_SEPARATOR=$lt_PATH_SEPARATOR
20572
20573# The host system.
20574host_alias=$host_alias
20575host=$host
20576host_os=$host_os
20577
20578# The build system.
20579build_alias=$build_alias
20580build=$build
20581build_os=$build_os
20582
20583# A sed program that does not truncate output.
20584SED=$lt_SED
20585
20586# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20587Xsed="\$SED -e 1s/^X//"
20588
20589# A grep program that handles long lines.
20590GREP=$lt_GREP
20591
20592# An ERE matcher.
20593EGREP=$lt_EGREP
20594
20595# A literal string matcher.
20596FGREP=$lt_FGREP
20597
20598# A BSD- or MS-compatible name lister.
20599NM=$lt_NM
20600
20601# Whether we need soft or hard links.
20602LN_S=$lt_LN_S
20603
20604# What is the maximum length of a command?
20605max_cmd_len=$max_cmd_len
20606
20607# Object file suffix (normally "o").
20608objext=$ac_objext
20609
20610# Executable file suffix (normally "").
20611exeext=$exeext
20612
20613# whether the shell understands "unset".
20614lt_unset=$lt_unset
20615
20616# turn spaces into newlines.
20617SP2NL=$lt_lt_SP2NL
20618
20619# turn newlines into spaces.
20620NL2SP=$lt_lt_NL2SP
20621
20622# convert \$build file names to \$host format.
20623to_host_file_cmd=$lt_cv_to_host_file_cmd
20624
20625# convert \$build files to toolchain format.
20626to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20627
20628# An object symbol dumper.
20629OBJDUMP=$lt_OBJDUMP
20630
20631# Method to check whether dependent libraries are shared objects.
20632deplibs_check_method=$lt_deplibs_check_method
20633
20634# Command to use when deplibs_check_method = "file_magic".
20635file_magic_cmd=$lt_file_magic_cmd
20636
20637# How to find potential files when deplibs_check_method = "file_magic".
20638file_magic_glob=$lt_file_magic_glob
20639
20640# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20641want_nocaseglob=$lt_want_nocaseglob
20642
20643# DLL creation program.
20644DLLTOOL=$lt_DLLTOOL
20645
20646# Command to associate shared and link libraries.
20647sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20648
20649# The archiver.
20650AR=$lt_AR
20651
20652# Flags to create an archive.
20653AR_FLAGS=$lt_AR_FLAGS
20654
20655# How to feed a file listing to the archiver.
20656archiver_list_spec=$lt_archiver_list_spec
20657
20658# A symbol stripping program.
20659STRIP=$lt_STRIP
20660
20661# Commands used to install an old-style archive.
20662RANLIB=$lt_RANLIB
20663old_postinstall_cmds=$lt_old_postinstall_cmds
20664old_postuninstall_cmds=$lt_old_postuninstall_cmds
20665
20666# Whether to use a lock for old archive extraction.
20667lock_old_archive_extraction=$lock_old_archive_extraction
20668
20669# A C compiler.
20670LTCC=$lt_CC
20671
20672# LTCC compiler flags.
20673LTCFLAGS=$lt_CFLAGS
20674
20675# Take the output of nm and produce a listing of raw symbols and C names.
20676global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20677
20678# Transform the output of nm in a proper C declaration.
20679global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20680
20681# Transform the output of nm into a list of symbols to manually relocate.
20682global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20683
20684# Transform the output of nm in a C name address pair.
20685global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20686
20687# Transform the output of nm in a C name address pair when lib prefix is needed.
20688global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20689
20690# The name lister interface.
20691nm_interface=$lt_lt_cv_nm_interface
20692
20693# Specify filename containing input files for \$NM.
20694nm_file_list_spec=$lt_nm_file_list_spec
20695
20696# The root where to search for dependent libraries,and where our libraries should be installed.
20697lt_sysroot=$lt_sysroot
20698
20699# Command to truncate a binary pipe.
20700lt_truncate_bin=$lt_lt_cv_truncate_bin
20701
20702# The name of the directory that contains temporary libtool files.
20703objdir=$objdir
20704
20705# Used to examine libraries when file_magic_cmd begins with "file".
20706MAGIC_CMD=$MAGIC_CMD
20707
20708# Must we lock files when doing compilation?
20709need_locks=$lt_need_locks
20710
20711# Manifest tool.
20712MANIFEST_TOOL=$lt_MANIFEST_TOOL
20713
20714# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20715DSYMUTIL=$lt_DSYMUTIL
20716
20717# Tool to change global to local symbols on Mac OS X.
20718NMEDIT=$lt_NMEDIT
20719
20720# Tool to manipulate fat objects and archives on Mac OS X.
20721LIPO=$lt_LIPO
20722
20723# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20724OTOOL=$lt_OTOOL
20725
20726# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20727OTOOL64=$lt_OTOOL64
20728
20729# Old archive suffix (normally "a").
20730libext=$libext
20731
20732# Shared library suffix (normally ".so").
20733shrext_cmds=$lt_shrext_cmds
20734
20735# The commands to extract the exported symbol list from a shared archive.
20736extract_expsyms_cmds=$lt_extract_expsyms_cmds
20737
20738# Variables whose values should be saved in libtool wrapper scripts and
20739# restored at link time.
20740variables_saved_for_relink=$lt_variables_saved_for_relink
20741
20742# Do we need the "lib" prefix for modules?
20743need_lib_prefix=$need_lib_prefix
20744
20745# Do we need a version for libraries?
20746need_version=$need_version
20747
20748# Library versioning type.
20749version_type=$version_type
20750
20751# Shared library runtime path variable.
20752runpath_var=$runpath_var
20753
20754# Shared library path variable.
20755shlibpath_var=$shlibpath_var
20756
20757# Is shlibpath searched before the hard-coded library search path?
20758shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20759
20760# Format of library name prefix.
20761libname_spec=$lt_libname_spec
20762
20763# List of archive names.  First name is the real one, the rest are links.
20764# The last name is the one that the linker finds with -lNAME
20765library_names_spec=$lt_library_names_spec
20766
20767# The coded name of the library, if different from the real name.
20768soname_spec=$lt_soname_spec
20769
20770# Permission mode override for installation of shared libraries.
20771install_override_mode=$lt_install_override_mode
20772
20773# Command to use after installation of a shared archive.
20774postinstall_cmds=$lt_postinstall_cmds
20775
20776# Command to use after uninstallation of a shared archive.
20777postuninstall_cmds=$lt_postuninstall_cmds
20778
20779# Commands used to finish a libtool library installation in a directory.
20780finish_cmds=$lt_finish_cmds
20781
20782# As "finish_cmds", except a single script fragment to be evaled but
20783# not shown.
20784finish_eval=$lt_finish_eval
20785
20786# Whether we should hardcode library paths into libraries.
20787hardcode_into_libs=$hardcode_into_libs
20788
20789# Compile-time system search path for libraries.
20790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20791
20792# Detected run-time system search path for libraries.
20793sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20794
20795# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20796configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20797
20798# Whether dlopen is supported.
20799dlopen_support=$enable_dlopen
20800
20801# Whether dlopen of programs is supported.
20802dlopen_self=$enable_dlopen_self
20803
20804# Whether dlopen of statically linked programs is supported.
20805dlopen_self_static=$enable_dlopen_self_static
20806
20807# Commands to strip libraries.
20808old_striplib=$lt_old_striplib
20809striplib=$lt_striplib
20810
20811
20812# The linker used to build libraries.
20813LD=$lt_LD
20814
20815# How to create reloadable object files.
20816reload_flag=$lt_reload_flag
20817reload_cmds=$lt_reload_cmds
20818
20819# Commands used to build an old-style archive.
20820old_archive_cmds=$lt_old_archive_cmds
20821
20822# A language specific compiler.
20823CC=$lt_compiler
20824
20825# Is the compiler the GNU compiler?
20826with_gcc=$GCC
20827
20828# Compiler flag to turn off builtin functions.
20829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20830
20831# Additional compiler flags for building library objects.
20832pic_flag=$lt_lt_prog_compiler_pic
20833
20834# How to pass a linker flag through the compiler.
20835wl=$lt_lt_prog_compiler_wl
20836
20837# Compiler flag to prevent dynamic linking.
20838link_static_flag=$lt_lt_prog_compiler_static
20839
20840# Does compiler simultaneously support -c and -o options?
20841compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20842
20843# Whether or not to add -lc for building shared libraries.
20844build_libtool_need_lc=$archive_cmds_need_lc
20845
20846# Whether or not to disallow shared libs when runtime libs are static.
20847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20848
20849# Compiler flag to allow reflexive dlopens.
20850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20851
20852# Compiler flag to generate shared objects directly from archives.
20853whole_archive_flag_spec=$lt_whole_archive_flag_spec
20854
20855# Whether the compiler copes with passing no objects directly.
20856compiler_needs_object=$lt_compiler_needs_object
20857
20858# Create an old-style archive from a shared archive.
20859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20860
20861# Create a temporary old-style archive to link instead of a shared archive.
20862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20863
20864# Commands used to build a shared archive.
20865archive_cmds=$lt_archive_cmds
20866archive_expsym_cmds=$lt_archive_expsym_cmds
20867
20868# Commands used to build a loadable module if different from building
20869# a shared archive.
20870module_cmds=$lt_module_cmds
20871module_expsym_cmds=$lt_module_expsym_cmds
20872
20873# Whether we are building with GNU ld or not.
20874with_gnu_ld=$lt_with_gnu_ld
20875
20876# Flag that allows shared libraries with undefined symbols to be built.
20877allow_undefined_flag=$lt_allow_undefined_flag
20878
20879# Flag that enforces no undefined symbols.
20880no_undefined_flag=$lt_no_undefined_flag
20881
20882# Flag to hardcode \$libdir into a binary during linking.
20883# This must work even if \$libdir does not exist
20884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20885
20886# Whether we need a single "-rpath" flag with a separated argument.
20887hardcode_libdir_separator=$lt_hardcode_libdir_separator
20888
20889# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20890# DIR into the resulting binary.
20891hardcode_direct=$hardcode_direct
20892
20893# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20894# DIR into the resulting binary and the resulting library dependency is
20895# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20896# library is relocated.
20897hardcode_direct_absolute=$hardcode_direct_absolute
20898
20899# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20900# into the resulting binary.
20901hardcode_minus_L=$hardcode_minus_L
20902
20903# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20904# into the resulting binary.
20905hardcode_shlibpath_var=$hardcode_shlibpath_var
20906
20907# Set to "yes" if building a shared library automatically hardcodes DIR
20908# into the library and all subsequent libraries and executables linked
20909# against it.
20910hardcode_automatic=$hardcode_automatic
20911
20912# Set to yes if linker adds runtime paths of dependent libraries
20913# to runtime path list.
20914inherit_rpath=$inherit_rpath
20915
20916# Whether libtool must link a program against all its dependency libraries.
20917link_all_deplibs=$link_all_deplibs
20918
20919# Set to "yes" if exported symbols are required.
20920always_export_symbols=$always_export_symbols
20921
20922# The commands to list exported symbols.
20923export_symbols_cmds=$lt_export_symbols_cmds
20924
20925# Symbols that should not be listed in the preloaded symbols.
20926exclude_expsyms=$lt_exclude_expsyms
20927
20928# Symbols that must always be exported.
20929include_expsyms=$lt_include_expsyms
20930
20931# Commands necessary for linking programs (against libraries) with templates.
20932prelink_cmds=$lt_prelink_cmds
20933
20934# Commands necessary for finishing linking programs.
20935postlink_cmds=$lt_postlink_cmds
20936
20937# Specify filename containing input files.
20938file_list_spec=$lt_file_list_spec
20939
20940# How to hardcode a shared library path into an executable.
20941hardcode_action=$hardcode_action
20942
20943# ### END LIBTOOL CONFIG
20944
20945_LT_EOF
20946
20947    cat <<'_LT_EOF' >> "$cfgfile"
20948
20949# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20950
20951# func_munge_path_list VARIABLE PATH
20952# -----------------------------------
20953# VARIABLE is name of variable containing _space_ separated list of
20954# directories to be munged by the contents of PATH, which is string
20955# having a format:
20956# "DIR[:DIR]:"
20957#       string "DIR[ DIR]" will be prepended to VARIABLE
20958# ":DIR[:DIR]"
20959#       string "DIR[ DIR]" will be appended to VARIABLE
20960# "DIRP[:DIRP]::[DIRA:]DIRA"
20961#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20962#       "DIRA[ DIRA]" will be appended to VARIABLE
20963# "DIR[:DIR]"
20964#       VARIABLE will be replaced by "DIR[ DIR]"
20965func_munge_path_list ()
20966{
20967    case x$2 in
20968    x)
20969        ;;
20970    *:)
20971        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20972        ;;
20973    x:*)
20974        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20975        ;;
20976    *::*)
20977        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20978        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20979        ;;
20980    *)
20981        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20982        ;;
20983    esac
20984}
20985
20986
20987# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20988func_cc_basename ()
20989{
20990    for cc_temp in $*""; do
20991      case $cc_temp in
20992        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20993        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20994        \-*) ;;
20995        *) break;;
20996      esac
20997    done
20998    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20999}
21000
21001
21002# ### END FUNCTIONS SHARED WITH CONFIGURE
21003
21004_LT_EOF
21005
21006  case $host_os in
21007  aix3*)
21008    cat <<\_LT_EOF >> "$cfgfile"
21009# AIX sometimes has problems with the GCC collect2 program.  For some
21010# reason, if we set the COLLECT_NAMES environment variable, the problems
21011# vanish in a puff of smoke.
21012if test set != "${COLLECT_NAMES+set}"; then
21013  COLLECT_NAMES=
21014  export COLLECT_NAMES
21015fi
21016_LT_EOF
21017    ;;
21018  esac
21019
21020
21021ltmain=$ac_aux_dir/ltmain.sh
21022
21023
21024  # We use sed instead of cat because bash on DJGPP gets confused if
21025  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21026  # text mode, it properly converts lines to CR/LF.  This bash problem
21027  # is reportedly fixed, but why not run on old versions too?
21028  sed '$q' "$ltmain" >> "$cfgfile" \
21029     || (rm -f "$cfgfile"; exit 1)
21030
21031   mv -f "$cfgfile" "$ofile" ||
21032    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21033  chmod +x "$ofile"
21034
21035 ;;
21036
21037  esac
21038done # for ac_tag
21039
21040
21041as_fn_exit 0
21042_ACEOF
21043ac_clean_files=$ac_clean_files_save
21044
21045test $ac_write_fail = 0 ||
21046  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21047
21048
21049# configure is writing to config.log, and then calls config.status.
21050# config.status does its own redirection, appending to config.log.
21051# Unfortunately, on DOS this fails, as config.log is still kept open
21052# by configure, so config.status won't be able to write to it; its
21053# output is simply discarded.  So we exec the FD to /dev/null,
21054# effectively closing config.log, so it can be properly (re)opened and
21055# appended to by config.status.  When coming back to configure, we
21056# need to make the FD available again.
21057if test "$no_create" != yes; then
21058  ac_cs_success=:
21059  ac_config_status_args=
21060  test "$silent" = yes &&
21061    ac_config_status_args="$ac_config_status_args --quiet"
21062  exec 5>/dev/null
21063  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21064  exec 5>>config.log
21065  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21066  # would make configure fail if this is the last instruction.
21067  $ac_cs_success || as_fn_exit 1
21068fi
21069if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21071$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21072fi
21073
21074