Imported Upstream version 0.4.3
[platform/upstream/xf86-video-fbdev.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-video-fbdev 0.4.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-video-fbdev'
573 PACKAGE_TARNAME='xf86-video-fbdev'
574 PACKAGE_VERSION='0.4.3'
575 PACKAGE_STRING='xf86-video-fbdev 0.4.3'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 DRIVER_NAME
621 moduledir
622 PCIACCESS_LIBS
623 PCIACCESS_CFLAGS
624 PCIACCESS_FALSE
625 PCIACCESS_TRUE
626 XORG_LIBS
627 XORG_CFLAGS
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 MANIFEST_TOOL
634 RANLIB
635 ac_ct_AR
636 AR
637 DLLTOOL
638 OBJDUMP
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 LIBTOOL
646 AM_BACKSLASH
647 AM_DEFAULT_VERBOSITY
648 AM_DEFAULT_V
649 AM_V
650 MAN_SUBSTS
651 XORG_MAN_PAGE
652 ADMIN_MAN_DIR
653 DRIVER_MAN_DIR
654 MISC_MAN_DIR
655 FILE_MAN_DIR
656 LIB_MAN_DIR
657 APP_MAN_DIR
658 ADMIN_MAN_SUFFIX
659 DRIVER_MAN_SUFFIX
660 MISC_MAN_SUFFIX
661 FILE_MAN_SUFFIX
662 LIB_MAN_SUFFIX
663 APP_MAN_SUFFIX
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 INSTALL_CMD
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 CHANGELOG_CMD
678 STRICT_CFLAGS
679 CWARNFLAGS
680 BASE_CFLAGS
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_maintainer_mode
769 enable_dependency_tracking
770 enable_selective_werror
771 enable_strict_compilation
772 enable_silent_rules
773 enable_static
774 enable_shared
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 with_xorg_module_dir
781 enable_pciaccess
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 XORG_CFLAGS
796 XORG_LIBS
797 PCIACCESS_CFLAGS
798 PCIACCESS_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853   # If the previous option needs an argument, assign it.
854   if test -n "$ac_prev"; then
855     eval $ac_prev=\$ac_option
856     ac_prev=
857     continue
858   fi
859
860   case $ac_option in
861   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862   *=)   ac_optarg= ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908       as_fn_error $? "invalid feature name: $ac_useropt"
909     ac_useropt_orig=$ac_useropt
910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911     case $ac_user_opts in
912       *"
913 "enable_$ac_useropt"
914 "*) ;;
915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916          ac_unrecognized_sep=', ';;
917     esac
918     eval enable_$ac_useropt=no ;;
919
920   -docdir | --docdir | --docdi | --doc | --do)
921     ac_prev=docdir ;;
922   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923     docdir=$ac_optarg ;;
924
925   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926     ac_prev=dvidir ;;
927   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928     dvidir=$ac_optarg ;;
929
930   -enable-* | --enable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error $? "invalid feature name: $ac_useropt"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138       as_fn_error $? "invalid package name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142       *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146          ac_unrecognized_sep=', ';;
1147     esac
1148     eval with_$ac_useropt=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154       as_fn_error $? "invalid package name: $ac_useropt"
1155     ac_useropt_orig=$ac_useropt
1156     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157     case $ac_user_opts in
1158       *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162          ac_unrecognized_sep=', ';;
1163     esac
1164     eval with_$ac_useropt=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     case $ac_envvar in #(
1192       '' | [0-9]* | *[!_$as_cr_alnum]* )
1193       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194     esac
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215   case $enable_option_checking in
1216     no) ;;
1217     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219   esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224                 datadir sysconfdir sharedstatedir localstatedir includedir \
1225                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226                 libdir localedir mandir
1227 do
1228   eval ac_val=\$$ac_var
1229   # Remove trailing slashes.
1230   case $ac_val in
1231     */ )
1232       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233       eval $ac_var=\$ac_val;;
1234   esac
1235   # Be sure to have absolute directory names.
1236   case $ac_val in
1237     [\\/$]* | ?:[\\/]* )  continue;;
1238     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239   esac
1240   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252   if test "x$build_alias" = x; then
1253     cross_compiling=maybe
1254     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1255     If a cross compiler is detected then cross compile mode will be used" >&2
1256   elif test "x$build_alias" != "x$host_alias"; then
1257     cross_compiling=yes
1258   fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270   as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272   as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277   ac_srcdir_defaulted=yes
1278   # Try the directory containing this script, then the parent directory.
1279   ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281          X"$as_myself" : 'X\(//\)[^/]' \| \
1282          X"$as_myself" : 'X\(//\)$' \| \
1283          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\/\)[^/].*/{
1290             s//\1/
1291             q
1292           }
1293           /^X\(\/\/\)$/{
1294             s//\1/
1295             q
1296           }
1297           /^X\(\/\).*/{
1298             s//\1/
1299             q
1300           }
1301           s/.*/./; q'`
1302   srcdir=$ac_confdir
1303   if test ! -r "$srcdir/$ac_unique_file"; then
1304     srcdir=..
1305   fi
1306 else
1307   ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316         pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319   srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329   eval ac_env_${ac_var}_value=\$${ac_var}
1330   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338   # Omit some internal or obsolete options to make the list less imposing.
1339   # This message is too long to be a string in the A/UX 3.1 sh.
1340   cat <<_ACEOF
1341 \`configure' configures xf86-video-fbdev 0.4.3 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE.  See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351   -h, --help              display this help and exit
1352       --help=short        display options specific to this package
1353       --help=recursive    display the short help of all the included packages
1354   -V, --version           display version information and exit
1355   -q, --quiet, --silent   do not print \`checking ...' messages
1356       --cache-file=FILE   cache test results in FILE [disabled]
1357   -C, --config-cache      alias for \`--cache-file=config.cache'
1358   -n, --no-create         do not create output files
1359       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362   --prefix=PREFIX         install architecture-independent files in PREFIX
1363                           [$ac_default_prefix]
1364   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1365                           [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375   --bindir=DIR            user executables [EPREFIX/bin]
1376   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1377   --libexecdir=DIR        program executables [EPREFIX/libexec]
1378   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1379   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1380   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1381   --libdir=DIR            object code libraries [EPREFIX/lib]
1382   --includedir=DIR        C header files [PREFIX/include]
1383   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386   --infodir=DIR           info documentation [DATAROOTDIR/info]
1387   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388   --mandir=DIR            man documentation [DATAROOTDIR/man]
1389   --docdir=DIR            documentation root
1390                           [DATAROOTDIR/doc/xf86-video-fbdev]
1391   --htmldir=DIR           html documentation [DOCDIR]
1392   --dvidir=DIR            dvi documentation [DOCDIR]
1393   --pdfdir=DIR            pdf documentation [DOCDIR]
1394   --psdir=DIR             ps documentation [DOCDIR]
1395 _ACEOF
1396
1397   cat <<\_ACEOF
1398
1399 Program names:
1400   --program-prefix=PREFIX            prepend PREFIX to installed program names
1401   --program-suffix=SUFFIX            append SUFFIX to installed program names
1402   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1403
1404 System types:
1405   --build=BUILD     configure for building on BUILD [guessed]
1406   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1407 _ACEOF
1408 fi
1409
1410 if test -n "$ac_init_help"; then
1411   case $ac_init_help in
1412      short | recursive ) echo "Configuration of xf86-video-fbdev 0.4.3:";;
1413    esac
1414   cat <<\_ACEOF
1415
1416 Optional Features:
1417   --disable-option-checking  ignore unrecognized --enable/--with options
1418   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1419   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1420   --enable-maintainer-mode  enable make rules and dependencies not useful
1421                           (and sometimes confusing) to the casual installer
1422   --disable-dependency-tracking  speeds up one-time build
1423   --enable-dependency-tracking   do not reject slow dependency extractors
1424   --disable-selective-werror
1425                           Turn off selective compiler errors. (default:
1426                           enabled)
1427   --enable-strict-compilation
1428                           Enable all warnings from compiler and make them
1429                           errors (default: disabled)
1430   --enable-silent-rules          less verbose build output (undo: `make V=1')
1431   --disable-silent-rules         verbose build output (undo: `make V=0')
1432   --enable-static[=PKGS]  build static libraries [default=no]
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-fast-install[=PKGS]
1435                           optimize for fast installation [default=yes]
1436   --disable-libtool-lock  avoid locking (might break parallel builds)
1437   --enable-pciaccess      Enable use of libpciaccess (default: disabled)
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1443                           both]
1444   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445   --with-sysroot=DIR Search for dependent libraries within DIR
1446                         (or the compiler's sysroot if not specified).
1447   --with-xorg-module-dir=DIR
1448                           Default xorg module directory
1449                           [[default=$libdir/xorg/modules]]
1450
1451 Some influential environment variables:
1452   CC          C compiler command
1453   CFLAGS      C compiler flags
1454   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455               nonstandard directory <lib dir>
1456   LIBS        libraries to pass to the linker, e.g. -l<library>
1457   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   CPP         C preprocessor
1460   PKG_CONFIG  path to pkg-config utility
1461   PKG_CONFIG_PATH
1462               directories to add to pkg-config's search path
1463   PKG_CONFIG_LIBDIR
1464               path overriding pkg-config's built-in search path
1465   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1466   XORG_LIBS   linker flags for XORG, overriding pkg-config
1467   PCIACCESS_CFLAGS
1468               C compiler flags for PCIACCESS, overriding pkg-config
1469   PCIACCESS_LIBS
1470               linker flags for PCIACCESS, overriding pkg-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 xf86-video-fbdev configure 0.4.3
1539 generated by GNU Autoconf 2.68
1540
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545   exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   rm -f conftest.$ac_objext
1559   if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_compile") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } && {
1575          test -z "$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        } && test -s conftest.$ac_objext; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583         ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1591 # ---------------------------------------------
1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_decl ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   as_decl_name=`echo $2|sed 's/ *(.*//'`
1598   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1601 if eval \${$3+:} false; then :
1602   $as_echo_n "(cached) " >&6
1603 else
1604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h.  */
1606 $4
1607 int
1608 main ()
1609 {
1610 #ifndef $as_decl_name
1611 #ifdef __cplusplus
1612   (void) $as_decl_use;
1613 #else
1614   (void) $as_decl_name;
1615 #endif
1616 #endif
1617
1618   ;
1619   return 0;
1620 }
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623   eval "$3=yes"
1624 else
1625   eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_decl
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } > conftest.i && {
1658          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        }; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666     ac_retval=1
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_link") 2>&5
1688   ac_status=$?
1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691   { { case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_try") 2>&5
1698   ac_status=$?
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; }; }; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: program exited with status $ac_status" >&5
1704        $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707        ac_retval=$ac_status
1708 fi
1709   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725   $as_echo_n "(cached) " >&6
1726 else
1727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h.  */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733   eval "$3=yes"
1734 else
1735   eval "$3=no"
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_header_compile
1745
1746 # ac_fn_c_try_link LINENO
1747 # -----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_link ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   rm -f conftest.$ac_objext conftest$ac_exeext
1753   if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756   *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760   (eval "$ac_link") 2>conftest.err
1761   ac_status=$?
1762   if test -s conftest.err; then
1763     grep -v '^ *+' conftest.err >conftest.er1
1764     cat conftest.er1 >&5
1765     mv -f conftest.er1 conftest.err
1766   fi
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; } && {
1769          test -z "$ac_c_werror_flag" ||
1770          test ! -s conftest.err
1771        } && test -s conftest$ac_exeext && {
1772          test "$cross_compiling" = yes ||
1773          $as_test_x conftest$ac_exeext
1774        }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780         ac_retval=1
1781 fi
1782   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784   # interfere with the next link command; also delete a directory that is
1785   # left behind by Apple's compiler.  We do this before executing the actions.
1786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_link
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801   $as_echo_n "(cached) " >&6
1802 else
1803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810     which can conflict with char $2 (); below.
1811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812     <limits.h> exists even on freestanding compilers.  */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823    Use char because int might match the return type of a GCC
1824    builtin and then its argument prototype would still apply.  */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830     to always fail with ENOSYS.  Some functions are actually named
1831     something starting with __ and the normal name is an alias.  */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840   ;
1841   return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845   eval "$3=yes"
1846 else
1847   eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850     conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_func
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1861
1862 It was created by xf86-video-fbdev $as_me 0.4.3, which was
1863 generated by GNU Autoconf 2.68.  Invocation command line was
1864
1865   $ $0 $@
1866
1867 _ACEOF
1868 exec 5>>config.log
1869 {
1870 cat <<_ASUNAME
1871 ## --------- ##
1872 ## Platform. ##
1873 ## --------- ##
1874
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1883
1884 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1885 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1888 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1889 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1890 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1891
1892 _ASUNAME
1893
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899     $as_echo "PATH: $as_dir"
1900   done
1901 IFS=$as_save_IFS
1902
1903 } >&5
1904
1905 cat >&5 <<_ACEOF
1906
1907
1908 ## ----------- ##
1909 ## Core tests. ##
1910 ## ----------- ##
1911
1912 _ACEOF
1913
1914
1915 # Keep a trace of the command line.
1916 # Strip out --no-create and --no-recursion so they do not pile up.
1917 # Strip out --silent because we don't want to record it for future runs.
1918 # Also quote any args containing shell meta-characters.
1919 # Make two passes to allow for proper duplicate-argument suppression.
1920 ac_configure_args=
1921 ac_configure_args0=
1922 ac_configure_args1=
1923 ac_must_keep_next=false
1924 for ac_pass in 1 2
1925 do
1926   for ac_arg
1927   do
1928     case $ac_arg in
1929     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1930     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1931     | -silent | --silent | --silen | --sile | --sil)
1932       continue ;;
1933     *\'*)
1934       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1935     esac
1936     case $ac_pass in
1937     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1938     2)
1939       as_fn_append ac_configure_args1 " '$ac_arg'"
1940       if test $ac_must_keep_next = true; then
1941         ac_must_keep_next=false # Got value, back to normal.
1942       else
1943         case $ac_arg in
1944           *=* | --config-cache | -C | -disable-* | --disable-* \
1945           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1946           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1947           | -with-* | --with-* | -without-* | --without-* | --x)
1948             case "$ac_configure_args0 " in
1949               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1950             esac
1951             ;;
1952           -* ) ac_must_keep_next=true ;;
1953         esac
1954       fi
1955       as_fn_append ac_configure_args " '$ac_arg'"
1956       ;;
1957     esac
1958   done
1959 done
1960 { ac_configure_args0=; unset ac_configure_args0;}
1961 { ac_configure_args1=; unset ac_configure_args1;}
1962
1963 # When interrupted or exit'd, cleanup temporary files, and complete
1964 # config.log.  We remove comments because anyway the quotes in there
1965 # would cause problems or look ugly.
1966 # WARNING: Use '\'' to represent an apostrophe within the trap.
1967 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1968 trap 'exit_status=$?
1969   # Save into config.log some information that might help in debugging.
1970   {
1971     echo
1972
1973     $as_echo "## ---------------- ##
1974 ## Cache variables. ##
1975 ## ---------------- ##"
1976     echo
1977     # The following way of writing the cache mishandles newlines in values,
1978 (
1979   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980     eval ac_val=\$$ac_var
1981     case $ac_val in #(
1982     *${as_nl}*)
1983       case $ac_var in #(
1984       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986       esac
1987       case $ac_var in #(
1988       _ | IFS | as_nl) ;; #(
1989       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990       *) { eval $ac_var=; unset $ac_var;} ;;
1991       esac ;;
1992     esac
1993   done
1994   (set) 2>&1 |
1995     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996     *${as_nl}ac_space=\ *)
1997       sed -n \
1998         "s/'\''/'\''\\\\'\'''\''/g;
1999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000       ;; #(
2001     *)
2002       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003       ;;
2004     esac |
2005     sort
2006 )
2007     echo
2008
2009     $as_echo "## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##"
2012     echo
2013     for ac_var in $ac_subst_vars
2014     do
2015       eval ac_val=\$$ac_var
2016       case $ac_val in
2017       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018       esac
2019       $as_echo "$ac_var='\''$ac_val'\''"
2020     done | sort
2021     echo
2022
2023     if test -n "$ac_subst_files"; then
2024       $as_echo "## ------------------- ##
2025 ## File substitutions. ##
2026 ## ------------------- ##"
2027       echo
2028       for ac_var in $ac_subst_files
2029       do
2030         eval ac_val=\$$ac_var
2031         case $ac_val in
2032         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033         esac
2034         $as_echo "$ac_var='\''$ac_val'\''"
2035       done | sort
2036       echo
2037     fi
2038
2039     if test -s confdefs.h; then
2040       $as_echo "## ----------- ##
2041 ## confdefs.h. ##
2042 ## ----------- ##"
2043       echo
2044       cat confdefs.h
2045       echo
2046     fi
2047     test "$ac_signal" != 0 &&
2048       $as_echo "$as_me: caught signal $ac_signal"
2049     $as_echo "$as_me: exit $exit_status"
2050   } >&5
2051   rm -f core *.core core.conftest.* &&
2052     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053     exit $exit_status
2054 ' 0
2055 for ac_signal in 1 2 13 15; do
2056   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2057 done
2058 ac_signal=0
2059
2060 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2061 rm -f -r conftest* confdefs.h
2062
2063 $as_echo "/* confdefs.h */" > confdefs.h
2064
2065 # Predefined preprocessor variables.
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_NAME "$PACKAGE_NAME"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2081 _ACEOF
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_URL "$PACKAGE_URL"
2089 _ACEOF
2090
2091
2092 # Let the site file select an alternate cache file if it wants to.
2093 # Prefer an explicitly selected file to automatically selected ones.
2094 ac_site_file1=NONE
2095 ac_site_file2=NONE
2096 if test -n "$CONFIG_SITE"; then
2097   # We do not want a PATH search for config.site.
2098   case $CONFIG_SITE in #((
2099     -*)  ac_site_file1=./$CONFIG_SITE;;
2100     */*) ac_site_file1=$CONFIG_SITE;;
2101     *)   ac_site_file1=./$CONFIG_SITE;;
2102   esac
2103 elif test "x$prefix" != xNONE; then
2104   ac_site_file1=$prefix/share/config.site
2105   ac_site_file2=$prefix/etc/config.site
2106 else
2107   ac_site_file1=$ac_default_prefix/share/config.site
2108   ac_site_file2=$ac_default_prefix/etc/config.site
2109 fi
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111 do
2112   test "x$ac_site_file" = xNONE && continue
2113   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2114     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116     sed 's/^/| /' "$ac_site_file" >&5
2117     . "$ac_site_file" \
2118       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2122   fi
2123 done
2124
2125 if test -r "$cache_file"; then
2126   # Some versions of bash will fail to source /dev/null (special files
2127   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2128   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 $as_echo "$as_me: loading cache $cache_file" >&6;}
2131     case $cache_file in
2132       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133       *)                      . "./$cache_file";;
2134     esac
2135   fi
2136 else
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 $as_echo "$as_me: creating cache $cache_file" >&6;}
2139   >$cache_file
2140 fi
2141
2142 # Check that the precious variables saved in the cache have kept the same
2143 # value.
2144 ac_cache_corrupted=false
2145 for ac_var in $ac_precious_vars; do
2146   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2147   eval ac_new_set=\$ac_env_${ac_var}_set
2148   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2149   eval ac_new_val=\$ac_env_${ac_var}_value
2150   case $ac_old_set,$ac_new_set in
2151     set,)
2152       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154       ac_cache_corrupted=: ;;
2155     ,set)
2156       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158       ac_cache_corrupted=: ;;
2159     ,);;
2160     *)
2161       if test "x$ac_old_val" != "x$ac_new_val"; then
2162         # differences in whitespace do not lead to failure.
2163         ac_old_val_w=`echo x $ac_old_val`
2164         ac_new_val_w=`echo x $ac_new_val`
2165         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2166           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2168           ac_cache_corrupted=:
2169         else
2170           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2172           eval $ac_var=\$ac_old_val
2173         fi
2174         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2175 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2176         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2177 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2178       fi;;
2179   esac
2180   # Pass precious variables to config.status.
2181   if test "$ac_new_set" = set; then
2182     case $ac_new_val in
2183     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2184     *) ac_arg=$ac_var=$ac_new_val ;;
2185     esac
2186     case " $ac_configure_args " in
2187       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2188       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2189     esac
2190   fi
2191 done
2192 if $ac_cache_corrupted; then
2193   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2197   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2198 fi
2199 ## -------------------- ##
2200 ## Main body of script. ##
2201 ## -------------------- ##
2202
2203 ac_ext=c
2204 ac_cpp='$CPP $CPPFLAGS'
2205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208
2209
2210
2211 ac_config_headers="$ac_config_headers config.h"
2212
2213 ac_aux_dir=
2214 for ac_dir in . "$srcdir"/.; do
2215   if test -f "$ac_dir/install-sh"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/install-sh -c"
2218     break
2219   elif test -f "$ac_dir/install.sh"; then
2220     ac_aux_dir=$ac_dir
2221     ac_install_sh="$ac_aux_dir/install.sh -c"
2222     break
2223   elif test -f "$ac_dir/shtool"; then
2224     ac_aux_dir=$ac_dir
2225     ac_install_sh="$ac_aux_dir/shtool install -c"
2226     break
2227   fi
2228 done
2229 if test -z "$ac_aux_dir"; then
2230   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2231 fi
2232
2233 # These three variables are undocumented and unsupported,
2234 # and are intended to be withdrawn in a future Autoconf release.
2235 # They can cause serious problems if a builder's source tree is in a directory
2236 # whose full name contains unusual characters.
2237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2239 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2240
2241
2242
2243 # Initialize Automake
2244 am__api_version='1.11'
2245
2246 # Find a good install program.  We prefer a C program (faster),
2247 # so one script is as good as another.  But avoid the broken or
2248 # incompatible versions:
2249 # SysV /etc/install, /usr/sbin/install
2250 # SunOS /usr/etc/install
2251 # IRIX /sbin/install
2252 # AIX /bin/install
2253 # AmigaOS /C/install, which installs bootblocks on floppy discs
2254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2257 # OS/2's system install, which has a completely different semantic
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 # Reject install programs that cannot install multiple files.
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2262 if test -z "$INSTALL"; then
2263 if ${ac_cv_path_install+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271     # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in #((
2273   ./ | .// | /[cC]/* | \
2274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2276   /usr/ucb/* ) ;;
2277   *)
2278     # OSF1 and SCO ODT 3.0 have their own names for install.
2279     # Don't use installbsd from OSF since it installs stuff as root
2280     # by default.
2281     for ac_prog in ginstall scoinst install; do
2282       for ac_exec_ext in '' $ac_executable_extensions; do
2283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2284           if test $ac_prog = install &&
2285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286             # AIX install.  It has an incompatible calling convention.
2287             :
2288           elif test $ac_prog = install &&
2289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290             # program-specific install script used by HP pwplus--don't use.
2291             :
2292           else
2293             rm -rf conftest.one conftest.two conftest.dir
2294             echo one > conftest.one
2295             echo two > conftest.two
2296             mkdir conftest.dir
2297             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2298               test -s conftest.one && test -s conftest.two &&
2299               test -s conftest.dir/conftest.one &&
2300               test -s conftest.dir/conftest.two
2301             then
2302               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303               break 3
2304             fi
2305           fi
2306         fi
2307       done
2308     done
2309     ;;
2310 esac
2311
2312   done
2313 IFS=$as_save_IFS
2314
2315 rm -rf conftest.one conftest.two conftest.dir
2316
2317 fi
2318   if test "${ac_cv_path_install+set}" = set; then
2319     INSTALL=$ac_cv_path_install
2320   else
2321     # As a last resort, use the slow shell script.  Don't cache a
2322     # value for INSTALL within a source directory, because that will
2323     # break other packages using the cache if that directory is
2324     # removed, or if the value is a relative name.
2325     INSTALL=$ac_install_sh
2326   fi
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2329 $as_echo "$INSTALL" >&6; }
2330
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2340 $as_echo_n "checking whether build environment is sane... " >&6; }
2341 # Just in case
2342 sleep 1
2343 echo timestamp > conftest.file
2344 # Reject unsafe characters in $srcdir or the absolute working directory
2345 # name.  Accept space and tab only in the latter.
2346 am_lf='
2347 '
2348 case `pwd` in
2349   *[\\\"\#\$\&\'\`$am_lf]*)
2350     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2351 esac
2352 case $srcdir in
2353   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2354     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2355 esac
2356
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments.  Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2361 # directory).
2362 if (
2363    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2364    if test "$*" = "X"; then
2365       # -L didn't work.
2366       set X `ls -t "$srcdir/configure" conftest.file`
2367    fi
2368    rm -f conftest.file
2369    if test "$*" != "X $srcdir/configure conftest.file" \
2370       && test "$*" != "X conftest.file $srcdir/configure"; then
2371
2372       # If neither matched, then we have a broken ls.  This can happen
2373       # if, for instance, CONFIG_SHELL is bash and it inherits a
2374       # broken ls alias from the environment.  This has actually
2375       # happened.  Such a system could not be considered "sane".
2376       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2377 alias in your environment" "$LINENO" 5
2378    fi
2379
2380    test "$2" = conftest.file
2381    )
2382 then
2383    # Ok.
2384    :
2385 else
2386    as_fn_error $? "newly created file is older than distributed files!
2387 Check your system clock" "$LINENO" 5
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2390 $as_echo "yes" >&6; }
2391 test "$program_prefix" != NONE &&
2392   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2393 # Use a double $ so make ignores it.
2394 test "$program_suffix" != NONE &&
2395   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2396 # Double any \ or $.
2397 # By default was `s,x,x', remove it if useless.
2398 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2399 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2400
2401 # expand $ac_aux_dir to an absolute path
2402 am_aux_dir=`cd $ac_aux_dir && pwd`
2403
2404 if test x"${MISSING+set}" != xset; then
2405   case $am_aux_dir in
2406   *\ * | *\     *)
2407     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2408   *)
2409     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2410   esac
2411 fi
2412 # Use eval to expand $SHELL
2413 if eval "$MISSING --run true"; then
2414   am_missing_run="$MISSING --run "
2415 else
2416   am_missing_run=
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2418 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2419 fi
2420
2421 if test x"${install_sh}" != xset; then
2422   case $am_aux_dir in
2423   *\ * | *\     *)
2424     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2425   *)
2426     install_sh="\${SHELL} $am_aux_dir/install-sh"
2427   esac
2428 fi
2429
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'.  However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435   if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_STRIP+:} false; then :
2441   $as_echo_n "(cached) " >&6
2442 else
2443   if test -n "$STRIP"; then
2444   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451     for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458   done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2466 $as_echo "$STRIP" >&6; }
2467 else
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_STRIP"; then
2475   ac_ct_STRIP=$STRIP
2476   # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test -n "$ac_ct_STRIP"; then
2484   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_STRIP="strip"
2494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498   done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2506 $as_echo "$ac_ct_STRIP" >&6; }
2507 else
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_STRIP" = x; then
2513     STRIP=":"
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2519 ac_tool_warned=yes ;;
2520 esac
2521     STRIP=$ac_ct_STRIP
2522   fi
2523 else
2524   STRIP="$ac_cv_prog_STRIP"
2525 fi
2526
2527 fi
2528 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2531 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2532 if test -z "$MKDIR_P"; then
2533   if ${ac_cv_path_mkdir+:} false; then :
2534   $as_echo_n "(cached) " >&6
2535 else
2536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541     for ac_prog in mkdir gmkdir; do
2542          for ac_exec_ext in '' $ac_executable_extensions; do
2543            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2544            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2545              'mkdir (GNU coreutils) '* | \
2546              'mkdir (coreutils) '* | \
2547              'mkdir (fileutils) '4.1*)
2548                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2549                break 3;;
2550            esac
2551          done
2552        done
2553   done
2554 IFS=$as_save_IFS
2555
2556 fi
2557
2558   test -d ./--version && rmdir ./--version
2559   if test "${ac_cv_path_mkdir+set}" = set; then
2560     MKDIR_P="$ac_cv_path_mkdir -p"
2561   else
2562     # As a last resort, use the slow shell script.  Don't cache a
2563     # value for MKDIR_P within a source directory, because that will
2564     # break other packages using the cache if that directory is
2565     # removed, or if the value is a relative name.
2566     MKDIR_P="$ac_install_sh -d"
2567   fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2570 $as_echo "$MKDIR_P" >&6; }
2571
2572 mkdir_p="$MKDIR_P"
2573 case $mkdir_p in
2574   [\\/$]* | ?:[\\/]*) ;;
2575   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2576 esac
2577
2578 for ac_prog in gawk mawk nawk awk
2579 do
2580   # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_AWK+:} false; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587   if test -n "$AWK"; then
2588   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595     for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     ac_cv_prog_AWK="$ac_prog"
2598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602   done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 AWK=$ac_cv_prog_AWK
2608 if test -n "$AWK"; then
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2610 $as_echo "$AWK" >&6; }
2611 else
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616
2617   test -n "$AWK" && break
2618 done
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2622 set x ${MAKE-make}
2623 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2624 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   cat >conftest.make <<\_ACEOF
2628 SHELL = /bin/sh
2629 all:
2630         @echo '@@@%%%=$(MAKE)=@@@%%%'
2631 _ACEOF
2632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2634   *@@@%%%=?*=@@@%%%*)
2635     eval ac_cv_prog_make_${ac_make}_set=yes;;
2636   *)
2637     eval ac_cv_prog_make_${ac_make}_set=no;;
2638 esac
2639 rm -f conftest.make
2640 fi
2641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2644   SET_MAKE=
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648   SET_MAKE="MAKE=${MAKE-make}"
2649 fi
2650
2651 rm -rf .tst 2>/dev/null
2652 mkdir .tst 2>/dev/null
2653 if test -d .tst; then
2654   am__leading_dot=.
2655 else
2656   am__leading_dot=_
2657 fi
2658 rmdir .tst 2>/dev/null
2659
2660 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2661   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2662   # is not polluted with repeated "-I."
2663   am__isrc=' -I$(srcdir)'
2664   # test to see if srcdir already configured
2665   if test -f $srcdir/config.status; then
2666     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2667   fi
2668 fi
2669
2670 # test whether we have cygpath
2671 if test -z "$CYGPATH_W"; then
2672   if (cygpath --version) >/dev/null 2>/dev/null; then
2673     CYGPATH_W='cygpath -w'
2674   else
2675     CYGPATH_W=echo
2676   fi
2677 fi
2678
2679
2680 # Define the identity of the package.
2681  PACKAGE='xf86-video-fbdev'
2682  VERSION='0.4.3'
2683
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE "$PACKAGE"
2687 _ACEOF
2688
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define VERSION "$VERSION"
2692 _ACEOF
2693
2694 # Some tools Automake needs.
2695
2696 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2697
2698
2699 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2700
2701
2702 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2703
2704
2705 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2706
2707
2708 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2709
2710 # We need awk for the "check" target.  The system "awk" is bad on
2711 # some platforms.
2712 # Always define AMTAR for backward compatibility.  Yes, it's still used
2713 # in the wild :-(  We should find a proper way to deprecate it ...
2714 AMTAR='$${TAR-tar}'
2715
2716 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2717
2718
2719
2720
2721
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2724 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2725     # Check whether --enable-maintainer-mode was given.
2726 if test "${enable_maintainer_mode+set}" = set; then :
2727   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2728 else
2729   USE_MAINTAINER_MODE=no
2730 fi
2731
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2733 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2734    if test $USE_MAINTAINER_MODE = yes; then
2735   MAINTAINER_MODE_TRUE=
2736   MAINTAINER_MODE_FALSE='#'
2737 else
2738   MAINTAINER_MODE_TRUE='#'
2739   MAINTAINER_MODE_FALSE=
2740 fi
2741
2742   MAINT=$MAINTAINER_MODE_TRUE
2743
2744
2745
2746 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758 DEPDIR="${am__leading_dot}deps"
2759
2760 ac_config_commands="$ac_config_commands depfiles"
2761
2762
2763 am_make=${MAKE-make}
2764 cat > confinc << 'END'
2765 am__doit:
2766         @echo this is the am__doit target
2767 .PHONY: am__doit
2768 END
2769 # If we don't find an include directive, just comment out the code.
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2771 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2772 am__include="#"
2773 am__quote=
2774 _am_result=none
2775 # First try GNU make style include.
2776 echo "include confinc" > confmf
2777 # Ignore all kinds of additional output from `make'.
2778 case `$am_make -s -f confmf 2> /dev/null` in #(
2779 *the\ am__doit\ target*)
2780   am__include=include
2781   am__quote=
2782   _am_result=GNU
2783   ;;
2784 esac
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787    echo '.include "confinc"' > confmf
2788    case `$am_make -s -f confmf 2> /dev/null` in #(
2789    *the\ am__doit\ target*)
2790      am__include=.include
2791      am__quote="\""
2792      _am_result=BSD
2793      ;;
2794    esac
2795 fi
2796
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2799 $as_echo "$_am_result" >&6; }
2800 rm -f confinc confmf
2801
2802 # Check whether --enable-dependency-tracking was given.
2803 if test "${enable_dependency_tracking+set}" = set; then :
2804   enableval=$enable_dependency_tracking;
2805 fi
2806
2807 if test "x$enable_dependency_tracking" != xno; then
2808   am_depcomp="$ac_aux_dir/depcomp"
2809   AMDEPBACKSLASH='\'
2810   am__nodep='_no'
2811 fi
2812  if test "x$enable_dependency_tracking" != xno; then
2813   AMDEP_TRUE=
2814   AMDEP_FALSE='#'
2815 else
2816   AMDEP_TRUE='#'
2817   AMDEP_FALSE=
2818 fi
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 if test -n "$ac_tool_prefix"; then
2827   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842     for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849   done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 fi
2865 if test -z "$ac_cv_prog_CC"; then
2866   ac_ct_CC=$CC
2867   # Extract the first word of "gcc", so it can be a program name with args.
2868 set dummy gcc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   if test -n "$ac_ct_CC"; then
2875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     for ac_exec_ext in '' $ac_executable_extensions; do
2883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884     ac_cv_prog_ac_ct_CC="gcc"
2885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889   done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897 $as_echo "$ac_ct_CC" >&6; }
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903   if test "x$ac_ct_CC" = x; then
2904     CC=""
2905   else
2906     case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912     CC=$ac_ct_CC
2913   fi
2914 else
2915   CC="$ac_cv_prog_CC"
2916 fi
2917
2918 if test -z "$CC"; then
2919           if test -n "$ac_tool_prefix"; then
2920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$CC"; then
2928   ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_CC="${ac_tool_prefix}cc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957   fi
2958 fi
2959 if test -z "$CC"; then
2960   # Extract the first word of "cc", so it can be a program name with args.
2961 set dummy cc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$CC"; then
2968   ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970   ac_prog_rejected=no
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2979        ac_prog_rejected=yes
2980        continue
2981      fi
2982     ac_cv_prog_CC="cc"
2983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984     break 2
2985   fi
2986 done
2987   done
2988 IFS=$as_save_IFS
2989
2990 if test $ac_prog_rejected = yes; then
2991   # We found a bogon in the path, so make sure we never use it.
2992   set dummy $ac_cv_prog_CC
2993   shift
2994   if test $# != 0; then
2995     # We chose a different compiler from the bogus one.
2996     # However, it has the same basename, so the bogon will be chosen
2997     # first if we set CC to just the basename; use the full file name.
2998     shift
2999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3000   fi
3001 fi
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013
3014 fi
3015 if test -z "$CC"; then
3016   if test -n "$ac_tool_prefix"; then
3017   for ac_prog in cl.exe
3018   do
3019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3020 set dummy $ac_tool_prefix$ac_prog; 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; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$CC"; then
3027   ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056     test -n "$CC" && break
3057   done
3058 fi
3059 if test -z "$CC"; then
3060   ac_ct_CC=$CC
3061   for ac_prog in cl.exe
3062 do
3063   # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   if test -n "$ac_ct_CC"; then
3071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080     ac_cv_prog_ac_ct_CC="$ac_prog"
3081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085   done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3093 $as_echo "$ac_ct_CC" >&6; }
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100   test -n "$ac_ct_CC" && break
3101 done
3102
3103   if test "x$ac_ct_CC" = x; then
3104     CC=""
3105   else
3106     case $cross_compiling:$ac_tool_warned in
3107 yes:)
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110 ac_tool_warned=yes ;;
3111 esac
3112     CC=$ac_ct_CC
3113   fi
3114 fi
3115
3116 fi
3117
3118
3119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "no acceptable C compiler found in \$PATH
3122 See \`config.log' for more details" "$LINENO" 5; }
3123
3124 # Provide some information about the compiler.
3125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3126 set X $ac_compile
3127 ac_compiler=$2
3128 for ac_option in --version -v -V -qversion; do
3129   { { ac_try="$ac_compiler $ac_option >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135 $as_echo "$ac_try_echo"; } >&5
3136   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3137   ac_status=$?
3138   if test -s conftest.err; then
3139     sed '10a\
3140 ... rest of stderr output deleted ...
3141          10q' conftest.err >conftest.er1
3142     cat conftest.er1 >&5
3143   fi
3144   rm -f conftest.er1 conftest.err
3145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146   test $ac_status = 0; }
3147 done
3148
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h.  */
3151
3152 int
3153 main ()
3154 {
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 ac_clean_files_save=$ac_clean_files
3161 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3162 # Try to create an executable without -o first, disregard a.out.
3163 # It will help us diagnose broken compilers, and finding out an intuition
3164 # of exeext.
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3166 $as_echo_n "checking whether the C compiler works... " >&6; }
3167 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3168
3169 # The possible output files:
3170 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3171
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { { ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189   (eval "$ac_link_default") 2>&5
3190   ac_status=$?
3191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192   test $ac_status = 0; }; then :
3193   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3196 # so that the user can short-circuit this test for compilers unknown to
3197 # Autoconf.
3198 for ac_file in $ac_files ''
3199 do
3200   test -f "$ac_file" || continue
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3203         ;;
3204     [ab].out )
3205         # We found the default executable, but exeext='' is most
3206         # certainly right.
3207         break;;
3208     *.* )
3209         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210         then :; else
3211            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212         fi
3213         # We set ac_cv_exeext here because the later test for it is not
3214         # safe: cross compilers may not add the suffix if given an `-o'
3215         # argument, so we may need to know it at that point already.
3216         # Even if this section looks crufty: it has the advantage of
3217         # actually working.
3218         break;;
3219     * )
3220         break;;
3221   esac
3222 done
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
3225 else
3226   ac_file=''
3227 fi
3228 if test -z "$ac_file"; then :
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error 77 "C compiler cannot create executables
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3243 $as_echo_n "checking for C compiler default output file name... " >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3245 $as_echo "$ac_file" >&6; }
3246 ac_exeext=$ac_cv_exeext
3247
3248 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251 $as_echo_n "checking for suffix of executables... " >&6; }
3252 if { { ac_try="$ac_link"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259   (eval "$ac_link") 2>&5
3260   ac_status=$?
3261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262   test $ac_status = 0; }; then :
3263   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3265 # work properly (i.e., refer to `conftest.exe'), while it won't with
3266 # `rm'.
3267 for ac_file in conftest.exe conftest conftest.*; do
3268   test -f "$ac_file" || continue
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272           break;;
3273     * ) break;;
3274   esac
3275 done
3276 else
3277   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 fi
3282 rm -f conftest conftest$ac_cv_exeext
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3284 $as_echo "$ac_cv_exeext" >&6; }
3285
3286 rm -f conftest.$ac_ext
3287 EXEEXT=$ac_cv_exeext
3288 ac_exeext=$EXEEXT
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h.  */
3291 #include <stdio.h>
3292 int
3293 main ()
3294 {
3295 FILE *f = fopen ("conftest.out", "w");
3296  return ferror (f) || fclose (f) != 0;
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 ac_clean_files="$ac_clean_files conftest.out"
3303 # Check that the compiler produces executables we can run.  If not, either
3304 # the compiler is broken, or we cross compile.
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3306 $as_echo_n "checking whether we are cross compiling... " >&6; }
3307 if test "$cross_compiling" != yes; then
3308   { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315   (eval "$ac_link") 2>&5
3316   ac_status=$?
3317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318   test $ac_status = 0; }
3319   if { ac_try='./conftest$ac_cv_exeext'
3320   { { case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326   (eval "$ac_try") 2>&5
3327   ac_status=$?
3328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329   test $ac_status = 0; }; }; then
3330     cross_compiling=no
3331   else
3332     if test "$cross_compiling" = maybe; then
3333         cross_compiling=yes
3334     else
3335         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details" "$LINENO" 5; }
3340     fi
3341   fi
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3344 $as_echo "$cross_compiling" >&6; }
3345
3346 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3347 ac_clean_files=$ac_clean_files_save
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3349 $as_echo_n "checking for suffix of object files... " >&6; }
3350 if ${ac_cv_objext+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355
3356 int
3357 main ()
3358 {
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.o conftest.obj
3365 if { { ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_compile") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; then :
3376   for ac_file in conftest.o conftest.obj conftest.*; do
3377   test -f "$ac_file" || continue;
3378   case $ac_file in
3379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3380     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381        break;;
3382   esac
3383 done
3384 else
3385   $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details" "$LINENO" 5; }
3392 fi
3393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396 $as_echo "$ac_cv_objext" >&6; }
3397 OBJEXT=$ac_cv_objext
3398 ac_objext=$OBJEXT
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3401 if ${ac_cv_c_compiler_gnu+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410 #ifndef __GNUC__
3411        choke me
3412 #endif
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419   ac_compiler_gnu=yes
3420 else
3421   ac_compiler_gnu=no
3422 fi
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3429 if test $ac_compiler_gnu = yes; then
3430   GCC=yes
3431 else
3432   GCC=
3433 fi
3434 ac_test_CFLAGS=${CFLAGS+set}
3435 ac_save_CFLAGS=$CFLAGS
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3438 if ${ac_cv_prog_cc_g+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   ac_save_c_werror_flag=$ac_c_werror_flag
3442    ac_c_werror_flag=yes
3443    ac_cv_prog_cc_g=no
3444    CFLAGS="-g"
3445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457   ac_cv_prog_cc_g=yes
3458 else
3459   CFLAGS=""
3460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472
3473 else
3474   ac_c_werror_flag=$ac_save_c_werror_flag
3475          CFLAGS="-g"
3476          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488   ac_cv_prog_cc_g=yes
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 fi
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495    ac_c_werror_flag=$ac_save_c_werror_flag
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3498 $as_echo "$ac_cv_prog_cc_g" >&6; }
3499 if test "$ac_test_CFLAGS" = set; then
3500   CFLAGS=$ac_save_CFLAGS
3501 elif test $ac_cv_prog_cc_g = yes; then
3502   if test "$GCC" = yes; then
3503     CFLAGS="-g -O2"
3504   else
3505     CFLAGS="-g"
3506   fi
3507 else
3508   if test "$GCC" = yes; then
3509     CFLAGS="-O2"
3510   else
3511     CFLAGS=
3512   fi
3513 fi
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3516 if ${ac_cv_prog_cc_c89+:} false; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   ac_cv_prog_cc_c89=no
3520 ac_save_CC=$CC
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523 #include <stdarg.h>
3524 #include <stdio.h>
3525 #include <sys/types.h>
3526 #include <sys/stat.h>
3527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3528 struct buf { int x; };
3529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530 static char *e (p, i)
3531      char **p;
3532      int i;
3533 {
3534   return p[i];
3535 }
3536 static char *f (char * (*g) (char **, int), char **p, ...)
3537 {
3538   char *s;
3539   va_list v;
3540   va_start (v,p);
3541   s = g (p, va_arg (v,int));
3542   va_end (v);
3543   return s;
3544 }
3545
3546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3547    function prototypes and stuff, but not '\xHH' hex character constants.
3548    These don't provoke an error unfortunately, instead are silently treated
3549    as 'x'.  The following induces an error, until -std is added to get
3550    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3551    array size at least.  It's necessary to write '\x00'==0 to get something
3552    that's true only with -std.  */
3553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3554
3555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556    inside strings and character constants.  */
3557 #define FOO(x) 'x'
3558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3559
3560 int test (int i, double x);
3561 struct s1 {int (*f) (int a);};
3562 struct s2 {int (*f) (double a);};
3563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564 int argc;
3565 char **argv;
3566 int
3567 main ()
3568 {
3569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3576 do
3577   CC="$ac_save_CC $ac_arg"
3578   if ac_fn_c_try_compile "$LINENO"; then :
3579   ac_cv_prog_cc_c89=$ac_arg
3580 fi
3581 rm -f core conftest.err conftest.$ac_objext
3582   test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 done
3584 rm -f conftest.$ac_ext
3585 CC=$ac_save_CC
3586
3587 fi
3588 # AC_CACHE_VAL
3589 case "x$ac_cv_prog_cc_c89" in
3590   x)
3591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3592 $as_echo "none needed" >&6; } ;;
3593   xno)
3594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3595 $as_echo "unsupported" >&6; } ;;
3596   *)
3597     CC="$CC $ac_cv_prog_cc_c89"
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3599 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3600 esac
3601 if test "x$ac_cv_prog_cc_c89" != xno; then :
3602
3603 fi
3604
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611 depcc="$CC"   am_compiler_list=
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3614 $as_echo_n "checking dependency style of $depcc... " >&6; }
3615 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3619   # We make a subdir and do the tests there.  Otherwise we can end up
3620   # making bogus files that we don't know about and never remove.  For
3621   # instance it was reported that on HP-UX the gcc test will end up
3622   # making a dummy file named `D' -- because `-MD' means `put the output
3623   # in D'.
3624   rm -rf conftest.dir
3625   mkdir conftest.dir
3626   # Copy depcomp to subdir because otherwise we won't find it if we're
3627   # using a relative directory.
3628   cp "$am_depcomp" conftest.dir
3629   cd conftest.dir
3630   # We will build objects and dependencies in a subdirectory because
3631   # it helps to detect inapplicable dependency modes.  For instance
3632   # both Tru64's cc and ICC support -MD to output dependencies as a
3633   # side effect of compilation, but ICC will put the dependencies in
3634   # the current directory while Tru64 will put them in the object
3635   # directory.
3636   mkdir sub
3637
3638   am_cv_CC_dependencies_compiler_type=none
3639   if test "$am_compiler_list" = ""; then
3640      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641   fi
3642   am__universal=false
3643   case " $depcc " in #(
3644      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3645      esac
3646
3647   for depmode in $am_compiler_list; do
3648     # Setup a source with many dependencies, because some compilers
3649     # like to wrap large dependency lists on column 80 (with \), and
3650     # we should not choose a depcomp mode which is confused by this.
3651     #
3652     # We need to recreate these files for each test, as the compiler may
3653     # overwrite some of them when testing with obscure command lines.
3654     # This happens at least with the AIX C compiler.
3655     : > sub/conftest.c
3656     for i in 1 2 3 4 5 6; do
3657       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3658       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3659       # Solaris 8's {/usr,}/bin/sh.
3660       touch sub/conftst$i.h
3661     done
3662     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3663
3664     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665     # mode.  It turns out that the SunPro C++ compiler does not properly
3666     # handle `-M -o', and we need to detect this.  Also, some Intel
3667     # versions had trouble with output in subdirs
3668     am__obj=sub/conftest.${OBJEXT-o}
3669     am__minus_obj="-o $am__obj"
3670     case $depmode in
3671     gcc)
3672       # This depmode causes a compiler race in universal mode.
3673       test "$am__universal" = false || continue
3674       ;;
3675     nosideeffect)
3676       # after this tag, mechanisms are not by side-effect, so they'll
3677       # only be used when explicitly requested
3678       if test "x$enable_dependency_tracking" = xyes; then
3679         continue
3680       else
3681         break
3682       fi
3683       ;;
3684     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3685       # This compiler won't grok `-c -o', but also, the minuso test has
3686       # not run yet.  These depmodes are late enough in the game, and
3687       # so weak that their functioning should not be impacted.
3688       am__obj=conftest.${OBJEXT-o}
3689       am__minus_obj=
3690       ;;
3691     none) break ;;
3692     esac
3693     if depmode=$depmode \
3694        source=sub/conftest.c object=$am__obj \
3695        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3696        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3697          >/dev/null 2>conftest.err &&
3698        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3699        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3700        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3701        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3702       # icc doesn't choke on unknown options, it will just issue warnings
3703       # or remarks (even with -Werror).  So we grep stderr for any message
3704       # that says an option was ignored or not supported.
3705       # When given -MP, icc 7.0 and 7.1 complain thusly:
3706       #   icc: Command line warning: ignoring option '-M'; no argument required
3707       # The diagnosis changed in icc 8.0:
3708       #   icc: Command line remark: option '-MP' not supported
3709       if (grep 'ignoring option' conftest.err ||
3710           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3711         am_cv_CC_dependencies_compiler_type=$depmode
3712         break
3713       fi
3714     fi
3715   done
3716
3717   cd ..
3718   rm -rf conftest.dir
3719 else
3720   am_cv_CC_dependencies_compiler_type=none
3721 fi
3722
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3725 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3727
3728  if
3729   test "x$enable_dependency_tracking" != xno \
3730   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3731   am__fastdepCC_TRUE=
3732   am__fastdepCC_FALSE='#'
3733 else
3734   am__fastdepCC_TRUE='#'
3735   am__fastdepCC_FALSE=
3736 fi
3737
3738
3739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3740 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3741 if ${ac_cv_prog_cc_c99+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   ac_cv_prog_cc_c99=no
3745 ac_save_CC=$CC
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h.  */
3748 #include <stdarg.h>
3749 #include <stdbool.h>
3750 #include <stdlib.h>
3751 #include <wchar.h>
3752 #include <stdio.h>
3753
3754 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3755 #define debug(...) fprintf (stderr, __VA_ARGS__)
3756 #define showlist(...) puts (#__VA_ARGS__)
3757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3758 static void
3759 test_varargs_macros (void)
3760 {
3761   int x = 1234;
3762   int y = 5678;
3763   debug ("Flag");
3764   debug ("X = %d\n", x);
3765   showlist (The first, second, and third items.);
3766   report (x>y, "x is %d but y is %d", x, y);
3767 }
3768
3769 // Check long long types.
3770 #define BIG64 18446744073709551615ull
3771 #define BIG32 4294967295ul
3772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3773 #if !BIG_OK
3774   your preprocessor is broken;
3775 #endif
3776 #if BIG_OK
3777 #else
3778   your preprocessor is broken;
3779 #endif
3780 static long long int bignum = -9223372036854775807LL;
3781 static unsigned long long int ubignum = BIG64;
3782
3783 struct incomplete_array
3784 {
3785   int datasize;
3786   double data[];
3787 };
3788
3789 struct named_init {
3790   int number;
3791   const wchar_t *name;
3792   double average;
3793 };
3794
3795 typedef const char *ccp;
3796
3797 static inline int
3798 test_restrict (ccp restrict text)
3799 {
3800   // See if C++-style comments work.
3801   // Iterate through items via the restricted pointer.
3802   // Also check for declarations in for loops.
3803   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3804     continue;
3805   return 0;
3806 }
3807
3808 // Check varargs and va_copy.
3809 static void
3810 test_varargs (const char *format, ...)
3811 {
3812   va_list args;
3813   va_start (args, format);
3814   va_list args_copy;
3815   va_copy (args_copy, args);
3816
3817   const char *str;
3818   int number;
3819   float fnumber;
3820
3821   while (*format)
3822     {
3823       switch (*format++)
3824         {
3825         case 's': // string
3826           str = va_arg (args_copy, const char *);
3827           break;
3828         case 'd': // int
3829           number = va_arg (args_copy, int);
3830           break;
3831         case 'f': // float
3832           fnumber = va_arg (args_copy, double);
3833           break;
3834         default:
3835           break;
3836         }
3837     }
3838   va_end (args_copy);
3839   va_end (args);
3840 }
3841
3842 int
3843 main ()
3844 {
3845
3846   // Check bool.
3847   _Bool success = false;
3848
3849   // Check restrict.
3850   if (test_restrict ("String literal") == 0)
3851     success = true;
3852   char *restrict newvar = "Another string";
3853
3854   // Check varargs.
3855   test_varargs ("s, d' f .", "string", 65, 34.234);
3856   test_varargs_macros ();
3857
3858   // Check flexible array members.
3859   struct incomplete_array *ia =
3860     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3861   ia->datasize = 10;
3862   for (int i = 0; i < ia->datasize; ++i)
3863     ia->data[i] = i * 1.234;
3864
3865   // Check named initializers.
3866   struct named_init ni = {
3867     .number = 34,
3868     .name = L"Test wide string",
3869     .average = 543.34343,
3870   };
3871
3872   ni.number = 58;
3873
3874   int dynamic_array[ni.number];
3875   dynamic_array[ni.number - 1] = 543;
3876
3877   // work around unused variable warnings
3878   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3879           || dynamic_array[ni.number - 1] != 543);
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3886 do
3887   CC="$ac_save_CC $ac_arg"
3888   if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_c99=$ac_arg
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext
3892   test "x$ac_cv_prog_cc_c99" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3896
3897 fi
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c99" in
3900   x)
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903   xno)
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3906   *)
3907     CC="$CC $ac_cv_prog_cc_c99"
3908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3909 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c99" != xno; then :
3912
3913 fi
3914
3915
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3923 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3924 # On Suns, sometimes $CPP names a directory.
3925 if test -n "$CPP" && test -d "$CPP"; then
3926   CPP=
3927 fi
3928 if test -z "$CPP"; then
3929   if ${ac_cv_prog_CPP+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932       # Double quotes because CPP needs to be expanded
3933     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3934     do
3935       ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3937 do
3938   # Use a header file that comes with gcc, so configuring glibc
3939   # with a fresh cross-compiler works.
3940   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941   # <limits.h> exists even on freestanding compilers.
3942   # On the NeXT, cc -E runs the code through the compiler's parser,
3943   # not just through cpp. "Syntax error" is here to catch this case.
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946 #ifdef __STDC__
3947 # include <limits.h>
3948 #else
3949 # include <assert.h>
3950 #endif
3951                      Syntax error
3952 _ACEOF
3953 if ac_fn_c_try_cpp "$LINENO"; then :
3954
3955 else
3956   # Broken: fails on valid input.
3957 continue
3958 fi
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3960
3961   # OK, works on sane cases.  Now check whether nonexistent headers
3962   # can be detected and how.
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <ac_nonexistent.h>
3966 _ACEOF
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3968   # Broken: success on invalid input.
3969 continue
3970 else
3971   # Passes both tests.
3972 ac_preproc_ok=:
3973 break
3974 fi
3975 rm -f conftest.err conftest.i conftest.$ac_ext
3976
3977 done
3978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3979 rm -f conftest.i conftest.err conftest.$ac_ext
3980 if $ac_preproc_ok; then :
3981   break
3982 fi
3983
3984     done
3985     ac_cv_prog_CPP=$CPP
3986
3987 fi
3988   CPP=$ac_cv_prog_CPP
3989 else
3990   ac_cv_prog_CPP=$CPP
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3993 $as_echo "$CPP" >&6; }
3994 ac_preproc_ok=false
3995 for ac_c_preproc_warn_flag in '' yes
3996 do
3997   # Use a header file that comes with gcc, so configuring glibc
3998   # with a fresh cross-compiler works.
3999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4000   # <limits.h> exists even on freestanding compilers.
4001   # On the NeXT, cc -E runs the code through the compiler's parser,
4002   # not just through cpp. "Syntax error" is here to catch this case.
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005 #ifdef __STDC__
4006 # include <limits.h>
4007 #else
4008 # include <assert.h>
4009 #endif
4010                      Syntax error
4011 _ACEOF
4012 if ac_fn_c_try_cpp "$LINENO"; then :
4013
4014 else
4015   # Broken: fails on valid input.
4016 continue
4017 fi
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4019
4020   # OK, works on sane cases.  Now check whether nonexistent headers
4021   # can be detected and how.
4022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024 #include <ac_nonexistent.h>
4025 _ACEOF
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4027   # Broken: success on invalid input.
4028 continue
4029 else
4030   # Passes both tests.
4031 ac_preproc_ok=:
4032 break
4033 fi
4034 rm -f conftest.err conftest.i conftest.$ac_ext
4035
4036 done
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.i conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then :
4040
4041 else
4042   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4045 See \`config.log' for more details" "$LINENO" 5; }
4046 fi
4047
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4056 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4057 if ${ac_cv_path_GREP+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -z "$GREP"; then
4061   ac_path_GREP_found=false
4062   # Loop through the user's path and test for each of PROGNAME-LIST
4063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_prog in grep ggrep; do
4069     for ac_exec_ext in '' $ac_executable_extensions; do
4070       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4071       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4072 # Check for GNU ac_path_GREP and select it if it is found.
4073   # Check for GNU $ac_path_GREP
4074 case `"$ac_path_GREP" --version 2>&1` in
4075 *GNU*)
4076   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4077 *)
4078   ac_count=0
4079   $as_echo_n 0123456789 >"conftest.in"
4080   while :
4081   do
4082     cat "conftest.in" "conftest.in" >"conftest.tmp"
4083     mv "conftest.tmp" "conftest.in"
4084     cp "conftest.in" "conftest.nl"
4085     $as_echo 'GREP' >> "conftest.nl"
4086     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088     as_fn_arith $ac_count + 1 && ac_count=$as_val
4089     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4090       # Best one so far, save it but keep looking for a better one
4091       ac_cv_path_GREP="$ac_path_GREP"
4092       ac_path_GREP_max=$ac_count
4093     fi
4094     # 10*(2^10) chars as input seems more than enough
4095     test $ac_count -gt 10 && break
4096   done
4097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099
4100       $ac_path_GREP_found && break 3
4101     done
4102   done
4103   done
4104 IFS=$as_save_IFS
4105   if test -z "$ac_cv_path_GREP"; then
4106     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4107   fi
4108 else
4109   ac_cv_path_GREP=$GREP
4110 fi
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4114 $as_echo "$ac_cv_path_GREP" >&6; }
4115  GREP="$ac_cv_path_GREP"
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4119 $as_echo_n "checking for egrep... " >&6; }
4120 if ${ac_cv_path_EGREP+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4124    then ac_cv_path_EGREP="$GREP -E"
4125    else
4126      if test -z "$EGREP"; then
4127   ac_path_EGREP_found=false
4128   # Loop through the user's path and test for each of PROGNAME-LIST
4129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_prog in egrep; do
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4137       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4138 # Check for GNU ac_path_EGREP and select it if it is found.
4139   # Check for GNU $ac_path_EGREP
4140 case `"$ac_path_EGREP" --version 2>&1` in
4141 *GNU*)
4142   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4143 *)
4144   ac_count=0
4145   $as_echo_n 0123456789 >"conftest.in"
4146   while :
4147   do
4148     cat "conftest.in" "conftest.in" >"conftest.tmp"
4149     mv "conftest.tmp" "conftest.in"
4150     cp "conftest.in" "conftest.nl"
4151     $as_echo 'EGREP' >> "conftest.nl"
4152     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154     as_fn_arith $ac_count + 1 && ac_count=$as_val
4155     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4156       # Best one so far, save it but keep looking for a better one
4157       ac_cv_path_EGREP="$ac_path_EGREP"
4158       ac_path_EGREP_max=$ac_count
4159     fi
4160     # 10*(2^10) chars as input seems more than enough
4161     test $ac_count -gt 10 && break
4162   done
4163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165
4166       $ac_path_EGREP_found && break 3
4167     done
4168   done
4169   done
4170 IFS=$as_save_IFS
4171   if test -z "$ac_cv_path_EGREP"; then
4172     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173   fi
4174 else
4175   ac_cv_path_EGREP=$EGREP
4176 fi
4177
4178    fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4181 $as_echo "$ac_cv_path_EGREP" >&6; }
4182  EGREP="$ac_cv_path_EGREP"
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4186 $as_echo_n "checking for ANSI C header files... " >&6; }
4187 if ${ac_cv_header_stdc+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h.  */
4192 #include <stdlib.h>
4193 #include <stdarg.h>
4194 #include <string.h>
4195 #include <float.h>
4196
4197 int
4198 main ()
4199 {
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206   ac_cv_header_stdc=yes
4207 else
4208   ac_cv_header_stdc=no
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211
4212 if test $ac_cv_header_stdc = yes; then
4213   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h.  */
4216 #include <string.h>
4217
4218 _ACEOF
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220   $EGREP "memchr" >/dev/null 2>&1; then :
4221
4222 else
4223   ac_cv_header_stdc=no
4224 fi
4225 rm -f conftest*
4226
4227 fi
4228
4229 if test $ac_cv_header_stdc = yes; then
4230   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233 #include <stdlib.h>
4234
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237   $EGREP "free" >/dev/null 2>&1; then :
4238
4239 else
4240   ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243
4244 fi
4245
4246 if test $ac_cv_header_stdc = yes; then
4247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248   if test "$cross_compiling" = yes; then :
4249   :
4250 else
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #include <ctype.h>
4254 #include <stdlib.h>
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4258 #else
4259 # define ISLOWER(c) \
4260                    (('a' <= (c) && (c) <= 'i') \
4261                      || ('j' <= (c) && (c) <= 'r') \
4262                      || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4264 #endif
4265
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4267 int
4268 main ()
4269 {
4270   int i;
4271   for (i = 0; i < 256; i++)
4272     if (XOR (islower (i), ISLOWER (i))
4273         || toupper (i) != TOUPPER (i))
4274       return 2;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_run "$LINENO"; then :
4279
4280 else
4281   ac_cv_header_stdc=no
4282 fi
4283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4284   conftest.$ac_objext conftest.beam conftest.$ac_ext
4285 fi
4286
4287 fi
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4290 $as_echo "$ac_cv_header_stdc" >&6; }
4291 if test $ac_cv_header_stdc = yes; then
4292
4293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4294
4295 fi
4296
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299                   inttypes.h stdint.h unistd.h
4300 do :
4301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4303 "
4304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4305   cat >>confdefs.h <<_ACEOF
4306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307 _ACEOF
4308
4309 fi
4310
4311 done
4312
4313
4314
4315
4316 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4317 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4318   CLANGCC="yes"
4319 else
4320   CLANGCC="no"
4321 fi
4322
4323 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4324 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4325   INTELCC="yes"
4326 else
4327   INTELCC="no"
4328 fi
4329
4330 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4331 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4332   SUNCC="yes"
4333 else
4334   SUNCC="no"
4335 fi
4336
4337
4338
4339
4340
4341
4342
4343
4344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4345         if test -n "$ac_tool_prefix"; then
4346   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4347 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   case $PKG_CONFIG in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363     for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370   done
4371 IFS=$as_save_IFS
4372
4373   ;;
4374 esac
4375 fi
4376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4377 if test -n "$PKG_CONFIG"; then
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4379 $as_echo "$PKG_CONFIG" >&6; }
4380 else
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386 fi
4387 if test -z "$ac_cv_path_PKG_CONFIG"; then
4388   ac_pt_PKG_CONFIG=$PKG_CONFIG
4389   # Extract the first word of "pkg-config", so it can be a program name with args.
4390 set dummy pkg-config; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   case $ac_pt_PKG_CONFIG in
4397   [\\/]* | ?:[\\/]*)
4398   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4399   ;;
4400   *)
4401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406     for ac_exec_ext in '' $ac_executable_extensions; do
4407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410     break 2
4411   fi
4412 done
4413   done
4414 IFS=$as_save_IFS
4415
4416   ;;
4417 esac
4418 fi
4419 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4420 if test -n "$ac_pt_PKG_CONFIG"; then
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4422 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4423 else
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 fi
4427
4428   if test "x$ac_pt_PKG_CONFIG" = x; then
4429     PKG_CONFIG=""
4430   else
4431     case $cross_compiling:$ac_tool_warned in
4432 yes:)
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4435 ac_tool_warned=yes ;;
4436 esac
4437     PKG_CONFIG=$ac_pt_PKG_CONFIG
4438   fi
4439 else
4440   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4441 fi
4442
4443 fi
4444 if test -n "$PKG_CONFIG"; then
4445         _pkg_min_version=0.9.0
4446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4448         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4449                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 $as_echo "yes" >&6; }
4451         else
4452                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4454                 PKG_CONFIG=""
4455         fi
4456 fi
4457 # Make sure we can run config.sub.
4458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4459   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4462 $as_echo_n "checking build system type... " >&6; }
4463 if ${ac_cv_build+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466   ac_build_alias=$build_alias
4467 test "x$ac_build_alias" = x &&
4468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4469 test "x$ac_build_alias" = x &&
4470   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4472   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4476 $as_echo "$ac_cv_build" >&6; }
4477 case $ac_cv_build in
4478 *-*-*) ;;
4479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4480 esac
4481 build=$ac_cv_build
4482 ac_save_IFS=$IFS; IFS='-'
4483 set x $ac_cv_build
4484 shift
4485 build_cpu=$1
4486 build_vendor=$2
4487 shift; shift
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4490 build_os=$*
4491 IFS=$ac_save_IFS
4492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4496 $as_echo_n "checking host system type... " >&6; }
4497 if ${ac_cv_host+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if test "x$host_alias" = x; then
4501   ac_cv_host=$ac_cv_build
4502 else
4503   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4504     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4505 fi
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4509 $as_echo "$ac_cv_host" >&6; }
4510 case $ac_cv_host in
4511 *-*-*) ;;
4512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4513 esac
4514 host=$ac_cv_host
4515 ac_save_IFS=$IFS; IFS='-'
4516 set x $ac_cv_host
4517 shift
4518 host_cpu=$1
4519 host_vendor=$2
4520 shift; shift
4521 # Remember, the first character of IFS is used to create $*,
4522 # except with old shells:
4523 host_os=$*
4524 IFS=$ac_save_IFS
4525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4529 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4530 if ${ac_cv_path_SED+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4534      for ac_i in 1 2 3 4 5 6 7; do
4535        ac_script="$ac_script$as_nl$ac_script"
4536      done
4537      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4538      { ac_script=; unset ac_script;}
4539      if test -z "$SED"; then
4540   ac_path_SED_found=false
4541   # Loop through the user's path and test for each of PROGNAME-LIST
4542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547     for ac_prog in sed gsed; do
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4550       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4551 # Check for GNU ac_path_SED and select it if it is found.
4552   # Check for GNU $ac_path_SED
4553 case `"$ac_path_SED" --version 2>&1` in
4554 *GNU*)
4555   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4556 *)
4557   ac_count=0
4558   $as_echo_n 0123456789 >"conftest.in"
4559   while :
4560   do
4561     cat "conftest.in" "conftest.in" >"conftest.tmp"
4562     mv "conftest.tmp" "conftest.in"
4563     cp "conftest.in" "conftest.nl"
4564     $as_echo '' >> "conftest.nl"
4565     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567     as_fn_arith $ac_count + 1 && ac_count=$as_val
4568     if test $ac_count -gt ${ac_path_SED_max-0}; then
4569       # Best one so far, save it but keep looking for a better one
4570       ac_cv_path_SED="$ac_path_SED"
4571       ac_path_SED_max=$ac_count
4572     fi
4573     # 10*(2^10) chars as input seems more than enough
4574     test $ac_count -gt 10 && break
4575   done
4576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577 esac
4578
4579       $ac_path_SED_found && break 3
4580     done
4581   done
4582   done
4583 IFS=$as_save_IFS
4584   if test -z "$ac_cv_path_SED"; then
4585     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4586   fi
4587 else
4588   ac_cv_path_SED=$SED
4589 fi
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4593 $as_echo "$ac_cv_path_SED" >&6; }
4594  SED="$ac_cv_path_SED"
4595   rm -f conftest.sed
4596
4597
4598
4599
4600
4601
4602 # Check whether --enable-selective-werror was given.
4603 if test "${enable_selective_werror+set}" = set; then :
4604   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4605 else
4606   SELECTIVE_WERROR=yes
4607 fi
4608
4609
4610 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4611 if test "x$SUNCC" = "xyes"; then
4612     BASE_CFLAGS="-v"
4613 else
4614     BASE_CFLAGS=""
4615 fi
4616
4617 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4618
4619
4620
4621
4622
4623 xorg_testset_save_CFLAGS="$CFLAGS"
4624
4625 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4626         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4628 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4629         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631 int i;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634   xorg_testset_unknown_warning_option=yes
4635 else
4636   xorg_testset_unknown_warning_option=no
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4640 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4641         CFLAGS="$xorg_testset_save_CFLAGS"
4642 fi
4643
4644 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4645         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4646                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4647         fi
4648         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4650 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4651         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h.  */
4653 int i;
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656   xorg_testset_unused_command_line_argument=yes
4657 else
4658   xorg_testset_unused_command_line_argument=no
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4662 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4663         CFLAGS="$xorg_testset_save_CFLAGS"
4664 fi
4665
4666 found="no"
4667
4668         if test $found = "no" ; then
4669                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4670                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4671                 fi
4672
4673                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4674                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4675                 fi
4676
4677                 CFLAGS="$CFLAGS -Wall"
4678
4679                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4680 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4681                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h.  */
4683 int i;
4684 int
4685 main ()
4686 {
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_c_try_link "$LINENO"; then :
4693   supported=yes
4694 else
4695   supported=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext \
4698     conftest$ac_exeext conftest.$ac_ext
4699                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4700 $as_echo "$supported" >&6; }
4701                 CFLAGS="$xorg_testset_save_CFLAGS"
4702
4703                 if test "$supported" = "yes" ; then
4704                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
4705                         found="yes"
4706                 fi
4707         fi
4708
4709
4710
4711
4712
4713
4714
4715 xorg_testset_save_CFLAGS="$CFLAGS"
4716
4717 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4718         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4721         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 int i;
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726   xorg_testset_unknown_warning_option=yes
4727 else
4728   xorg_testset_unknown_warning_option=no
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4732 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4733         CFLAGS="$xorg_testset_save_CFLAGS"
4734 fi
4735
4736 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4737         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4738                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4739         fi
4740         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4742 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4743         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 int i;
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748   xorg_testset_unused_command_line_argument=yes
4749 else
4750   xorg_testset_unused_command_line_argument=no
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4754 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4755         CFLAGS="$xorg_testset_save_CFLAGS"
4756 fi
4757
4758 found="no"
4759
4760         if test $found = "no" ; then
4761                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4762                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4763                 fi
4764
4765                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4766                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4767                 fi
4768
4769                 CFLAGS="$CFLAGS -Wpointer-arith"
4770
4771                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4772 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4773                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 int i;
4776 int
4777 main ()
4778 {
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_link "$LINENO"; then :
4785   supported=yes
4786 else
4787   supported=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext \
4790     conftest$ac_exeext conftest.$ac_ext
4791                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4792 $as_echo "$supported" >&6; }
4793                 CFLAGS="$xorg_testset_save_CFLAGS"
4794
4795                 if test "$supported" = "yes" ; then
4796                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4797                         found="yes"
4798                 fi
4799         fi
4800
4801
4802
4803
4804
4805
4806
4807 xorg_testset_save_CFLAGS="$CFLAGS"
4808
4809 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4810         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4812 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815 int i;
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818   xorg_testset_unknown_warning_option=yes
4819 else
4820   xorg_testset_unknown_warning_option=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4824 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4825         CFLAGS="$xorg_testset_save_CFLAGS"
4826 fi
4827
4828 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4829         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4830                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831         fi
4832         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4834 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4835         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837 int i;
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840   xorg_testset_unused_command_line_argument=yes
4841 else
4842   xorg_testset_unused_command_line_argument=no
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4846 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4847         CFLAGS="$xorg_testset_save_CFLAGS"
4848 fi
4849
4850 found="no"
4851
4852         if test $found = "no" ; then
4853                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4854                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4855                 fi
4856
4857                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4858                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4859                 fi
4860
4861                 CFLAGS="$CFLAGS -Wstrict-prototypes"
4862
4863                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4864 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4865                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h.  */
4867 int i;
4868 int
4869 main ()
4870 {
4871
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_link "$LINENO"; then :
4877   supported=yes
4878 else
4879   supported=no
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext \
4882     conftest$ac_exeext conftest.$ac_ext
4883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4884 $as_echo "$supported" >&6; }
4885                 CFLAGS="$xorg_testset_save_CFLAGS"
4886
4887                 if test "$supported" = "yes" ; then
4888                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4889                         found="yes"
4890                 fi
4891         fi
4892
4893
4894
4895
4896
4897
4898
4899 xorg_testset_save_CFLAGS="$CFLAGS"
4900
4901 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4902         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4905         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h.  */
4907 int i;
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   xorg_testset_unknown_warning_option=yes
4911 else
4912   xorg_testset_unknown_warning_option=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4916 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
4917         CFLAGS="$xorg_testset_save_CFLAGS"
4918 fi
4919
4920 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4921         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4922                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923         fi
4924         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4927         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929 int i;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932   xorg_testset_unused_command_line_argument=yes
4933 else
4934   xorg_testset_unused_command_line_argument=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4938 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4939         CFLAGS="$xorg_testset_save_CFLAGS"
4940 fi
4941
4942 found="no"
4943
4944         if test $found = "no" ; then
4945                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4946                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4947                 fi
4948
4949                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4950                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4951                 fi
4952
4953                 CFLAGS="$CFLAGS -Wmissing-prototypes"
4954
4955                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4956 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4957                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h.  */
4959 int i;
4960 int
4961 main ()
4962 {
4963
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"; then :
4969   supported=yes
4970 else
4971   supported=no
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext \
4974     conftest$ac_exeext conftest.$ac_ext
4975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4976 $as_echo "$supported" >&6; }
4977                 CFLAGS="$xorg_testset_save_CFLAGS"
4978
4979                 if test "$supported" = "yes" ; then
4980                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4981                         found="yes"
4982                 fi
4983         fi
4984
4985
4986
4987
4988
4989
4990
4991 xorg_testset_save_CFLAGS="$CFLAGS"
4992
4993 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4994         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4996 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 int i;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002   xorg_testset_unknown_warning_option=yes
5003 else
5004   xorg_testset_unknown_warning_option=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5008 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5009         CFLAGS="$xorg_testset_save_CFLAGS"
5010 fi
5011
5012 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5013         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5014                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015         fi
5016         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5019         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h.  */
5021 int i;
5022 _ACEOF
5023 if ac_fn_c_try_compile "$LINENO"; then :
5024   xorg_testset_unused_command_line_argument=yes
5025 else
5026   xorg_testset_unused_command_line_argument=no
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5030 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5031         CFLAGS="$xorg_testset_save_CFLAGS"
5032 fi
5033
5034 found="no"
5035
5036         if test $found = "no" ; then
5037                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5038                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039                 fi
5040
5041                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5042                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043                 fi
5044
5045                 CFLAGS="$CFLAGS -Wmissing-declarations"
5046
5047                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5048 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5049                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051 int i;
5052 int
5053 main ()
5054 {
5055
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_link "$LINENO"; then :
5061   supported=yes
5062 else
5063   supported=no
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext \
5066     conftest$ac_exeext conftest.$ac_ext
5067                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5068 $as_echo "$supported" >&6; }
5069                 CFLAGS="$xorg_testset_save_CFLAGS"
5070
5071                 if test "$supported" = "yes" ; then
5072                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5073                         found="yes"
5074                 fi
5075         fi
5076
5077
5078
5079
5080
5081
5082
5083 xorg_testset_save_CFLAGS="$CFLAGS"
5084
5085 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5086         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5089         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091 int i;
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094   xorg_testset_unknown_warning_option=yes
5095 else
5096   xorg_testset_unknown_warning_option=no
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5100 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5101         CFLAGS="$xorg_testset_save_CFLAGS"
5102 fi
5103
5104 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5105         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5106                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107         fi
5108         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113 int i;
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116   xorg_testset_unused_command_line_argument=yes
5117 else
5118   xorg_testset_unused_command_line_argument=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5122 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5123         CFLAGS="$xorg_testset_save_CFLAGS"
5124 fi
5125
5126 found="no"
5127
5128         if test $found = "no" ; then
5129                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5130                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131                 fi
5132
5133                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5134                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5135                 fi
5136
5137                 CFLAGS="$CFLAGS -Wnested-externs"
5138
5139                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5140 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5141                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h.  */
5143 int i;
5144 int
5145 main ()
5146 {
5147
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 if ac_fn_c_try_link "$LINENO"; then :
5153   supported=yes
5154 else
5155   supported=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158     conftest$ac_exeext conftest.$ac_ext
5159                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5160 $as_echo "$supported" >&6; }
5161                 CFLAGS="$xorg_testset_save_CFLAGS"
5162
5163                 if test "$supported" = "yes" ; then
5164                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5165                         found="yes"
5166                 fi
5167         fi
5168
5169
5170
5171
5172
5173
5174
5175 xorg_testset_save_CFLAGS="$CFLAGS"
5176
5177 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5178         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5181         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h.  */
5183 int i;
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"; then :
5186   xorg_testset_unknown_warning_option=yes
5187 else
5188   xorg_testset_unknown_warning_option=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5192 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5193         CFLAGS="$xorg_testset_save_CFLAGS"
5194 fi
5195
5196 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5197         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5198                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199         fi
5200         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h.  */
5205 int i;
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208   xorg_testset_unused_command_line_argument=yes
5209 else
5210   xorg_testset_unused_command_line_argument=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5214 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5215         CFLAGS="$xorg_testset_save_CFLAGS"
5216 fi
5217
5218 found="no"
5219
5220         if test $found = "no" ; then
5221                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5222                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5223                 fi
5224
5225                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5226                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5227                 fi
5228
5229                 CFLAGS="$CFLAGS -Wbad-function-cast"
5230
5231                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5232 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5233                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235 int i;
5236 int
5237 main ()
5238 {
5239
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_link "$LINENO"; then :
5245   supported=yes
5246 else
5247   supported=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext \
5250     conftest$ac_exeext conftest.$ac_ext
5251                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252 $as_echo "$supported" >&6; }
5253                 CFLAGS="$xorg_testset_save_CFLAGS"
5254
5255                 if test "$supported" = "yes" ; then
5256                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5257                         found="yes"
5258                 fi
5259         fi
5260
5261
5262
5263
5264
5265
5266
5267 xorg_testset_save_CFLAGS="$CFLAGS"
5268
5269 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5270         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5272 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5273         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h.  */
5275 int i;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278   xorg_testset_unknown_warning_option=yes
5279 else
5280   xorg_testset_unknown_warning_option=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5284 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5285         CFLAGS="$xorg_testset_save_CFLAGS"
5286 fi
5287
5288 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5289         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5290                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291         fi
5292         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5294 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297 int i;
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300   xorg_testset_unused_command_line_argument=yes
5301 else
5302   xorg_testset_unused_command_line_argument=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5306 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5307         CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 found="no"
5311
5312         if test $found = "no" ; then
5313                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5314                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315                 fi
5316
5317                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5318                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319                 fi
5320
5321                 CFLAGS="$CFLAGS -Wformat=2"
5322
5323                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5324 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5325                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 int i;
5328 int
5329 main ()
5330 {
5331
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"; then :
5337   supported=yes
5338 else
5339   supported=no
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext \
5342     conftest$ac_exeext conftest.$ac_ext
5343                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344 $as_echo "$supported" >&6; }
5345                 CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347                 if test "$supported" = "yes" ; then
5348                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5349                         found="yes"
5350                 fi
5351         fi
5352
5353         if test $found = "no" ; then
5354                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5355                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356                 fi
5357
5358                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5359                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360                 fi
5361
5362                 CFLAGS="$CFLAGS -Wformat"
5363
5364                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5365 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5366                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 int i;
5369 int
5370 main ()
5371 {
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_link "$LINENO"; then :
5378   supported=yes
5379 else
5380   supported=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext \
5383     conftest$ac_exeext conftest.$ac_ext
5384                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385 $as_echo "$supported" >&6; }
5386                 CFLAGS="$xorg_testset_save_CFLAGS"
5387
5388                 if test "$supported" = "yes" ; then
5389                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5390                         found="yes"
5391                 fi
5392         fi
5393
5394
5395
5396
5397
5398
5399
5400 xorg_testset_save_CFLAGS="$CFLAGS"
5401
5402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5403         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5406         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h.  */
5408 int i;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411   xorg_testset_unknown_warning_option=yes
5412 else
5413   xorg_testset_unknown_warning_option=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5417 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5418         CFLAGS="$xorg_testset_save_CFLAGS"
5419 fi
5420
5421 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5422         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424         fi
5425         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5427 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5428         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433   xorg_testset_unused_command_line_argument=yes
5434 else
5435   xorg_testset_unused_command_line_argument=no
5436 fi
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5439 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5440         CFLAGS="$xorg_testset_save_CFLAGS"
5441 fi
5442
5443 found="no"
5444
5445         if test $found = "no" ; then
5446                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5447                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448                 fi
5449
5450                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5451                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452                 fi
5453
5454                 CFLAGS="$CFLAGS -Wold-style-definition"
5455
5456                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5457 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5458                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h.  */
5460 int i;
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_link "$LINENO"; then :
5470   supported=yes
5471 else
5472   supported=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475     conftest$ac_exeext conftest.$ac_ext
5476                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5477 $as_echo "$supported" >&6; }
5478                 CFLAGS="$xorg_testset_save_CFLAGS"
5479
5480                 if test "$supported" = "yes" ; then
5481                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5482                         found="yes"
5483                 fi
5484         fi
5485
5486
5487
5488
5489
5490
5491
5492 xorg_testset_save_CFLAGS="$CFLAGS"
5493
5494 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5495         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5498         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h.  */
5500 int i;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"; then :
5503   xorg_testset_unknown_warning_option=yes
5504 else
5505   xorg_testset_unknown_warning_option=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5509 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5510         CFLAGS="$xorg_testset_save_CFLAGS"
5511 fi
5512
5513 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5514         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5515                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516         fi
5517         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h.  */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525   xorg_testset_unused_command_line_argument=yes
5526 else
5527   xorg_testset_unused_command_line_argument=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5531 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5532         CFLAGS="$xorg_testset_save_CFLAGS"
5533 fi
5534
5535 found="no"
5536
5537         if test $found = "no" ; then
5538                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5539                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540                 fi
5541
5542                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5543                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5544                 fi
5545
5546                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5547
5548                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5549 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5550                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h.  */
5552 int i;
5553 int
5554 main ()
5555 {
5556
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_link "$LINENO"; then :
5562   supported=yes
5563 else
5564   supported=no
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext \
5567     conftest$ac_exeext conftest.$ac_ext
5568                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5569 $as_echo "$supported" >&6; }
5570                 CFLAGS="$xorg_testset_save_CFLAGS"
5571
5572                 if test "$supported" = "yes" ; then
5573                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5574                         found="yes"
5575                 fi
5576         fi
5577
5578
5579
5580 # This chunk adds additional warnings that could catch undesired effects.
5581
5582
5583
5584
5585
5586 xorg_testset_save_CFLAGS="$CFLAGS"
5587
5588 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5589         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h.  */
5594 int i;
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597   xorg_testset_unknown_warning_option=yes
5598 else
5599   xorg_testset_unknown_warning_option=no
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5603 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5604         CFLAGS="$xorg_testset_save_CFLAGS"
5605 fi
5606
5607 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5608         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5609                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610         fi
5611         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h.  */
5616 int i;
5617 _ACEOF
5618 if ac_fn_c_try_compile "$LINENO"; then :
5619   xorg_testset_unused_command_line_argument=yes
5620 else
5621   xorg_testset_unused_command_line_argument=no
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5625 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5626         CFLAGS="$xorg_testset_save_CFLAGS"
5627 fi
5628
5629 found="no"
5630
5631         if test $found = "no" ; then
5632                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5633                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634                 fi
5635
5636                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5637                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5638                 fi
5639
5640                 CFLAGS="$CFLAGS -Wunused"
5641
5642                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5643 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5644                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h.  */
5646 int i;
5647 int
5648 main ()
5649 {
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_link "$LINENO"; then :
5656   supported=yes
5657 else
5658   supported=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext \
5661     conftest$ac_exeext conftest.$ac_ext
5662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663 $as_echo "$supported" >&6; }
5664                 CFLAGS="$xorg_testset_save_CFLAGS"
5665
5666                 if test "$supported" = "yes" ; then
5667                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5668                         found="yes"
5669                 fi
5670         fi
5671
5672
5673
5674
5675
5676
5677
5678 xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5681         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h.  */
5686 int i;
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689   xorg_testset_unknown_warning_option=yes
5690 else
5691   xorg_testset_unknown_warning_option=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5695 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5696         CFLAGS="$xorg_testset_save_CFLAGS"
5697 fi
5698
5699 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5700         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5701                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702         fi
5703         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h.  */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711   xorg_testset_unused_command_line_argument=yes
5712 else
5713   xorg_testset_unused_command_line_argument=no
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5717 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5718         CFLAGS="$xorg_testset_save_CFLAGS"
5719 fi
5720
5721 found="no"
5722
5723         if test $found = "no" ; then
5724                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5725                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5726                 fi
5727
5728                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5729                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5730                 fi
5731
5732                 CFLAGS="$CFLAGS -Wuninitialized"
5733
5734                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5735 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5736                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h.  */
5738 int i;
5739 int
5740 main ()
5741 {
5742
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 if ac_fn_c_try_link "$LINENO"; then :
5748   supported=yes
5749 else
5750   supported=no
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext \
5753     conftest$ac_exeext conftest.$ac_ext
5754                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5755 $as_echo "$supported" >&6; }
5756                 CFLAGS="$xorg_testset_save_CFLAGS"
5757
5758                 if test "$supported" = "yes" ; then
5759                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5760                         found="yes"
5761                 fi
5762         fi
5763
5764
5765
5766
5767
5768
5769
5770 xorg_testset_save_CFLAGS="$CFLAGS"
5771
5772 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5773         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5775 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5776         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h.  */
5778 int i;
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781   xorg_testset_unknown_warning_option=yes
5782 else
5783   xorg_testset_unknown_warning_option=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5787 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5788         CFLAGS="$xorg_testset_save_CFLAGS"
5789 fi
5790
5791 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5792         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5793                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794         fi
5795         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5797 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5798         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h.  */
5800 int i;
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803   xorg_testset_unused_command_line_argument=yes
5804 else
5805   xorg_testset_unused_command_line_argument=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5809 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5810         CFLAGS="$xorg_testset_save_CFLAGS"
5811 fi
5812
5813 found="no"
5814
5815         if test $found = "no" ; then
5816                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5817                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818                 fi
5819
5820                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5821                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822                 fi
5823
5824                 CFLAGS="$CFLAGS -Wshadow"
5825
5826                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5827 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5828                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h.  */
5830 int i;
5831 int
5832 main ()
5833 {
5834
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 if ac_fn_c_try_link "$LINENO"; then :
5840   supported=yes
5841 else
5842   supported=no
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext \
5845     conftest$ac_exeext conftest.$ac_ext
5846                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847 $as_echo "$supported" >&6; }
5848                 CFLAGS="$xorg_testset_save_CFLAGS"
5849
5850                 if test "$supported" = "yes" ; then
5851                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5852                         found="yes"
5853                 fi
5854         fi
5855
5856
5857
5858
5859
5860
5861
5862 xorg_testset_save_CFLAGS="$CFLAGS"
5863
5864 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5865         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h.  */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873   xorg_testset_unknown_warning_option=yes
5874 else
5875   xorg_testset_unknown_warning_option=no
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5879 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5880         CFLAGS="$xorg_testset_save_CFLAGS"
5881 fi
5882
5883 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5884         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5885                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886         fi
5887         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h.  */
5892 int i;
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"; then :
5895   xorg_testset_unused_command_line_argument=yes
5896 else
5897   xorg_testset_unused_command_line_argument=no
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5901 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5902         CFLAGS="$xorg_testset_save_CFLAGS"
5903 fi
5904
5905 found="no"
5906
5907         if test $found = "no" ; then
5908                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5909                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910                 fi
5911
5912                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5913                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5914                 fi
5915
5916                 CFLAGS="$CFLAGS -Wcast-qual"
5917
5918                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5919 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5920                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h.  */
5922 int i;
5923 int
5924 main ()
5925 {
5926
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_link "$LINENO"; then :
5932   supported=yes
5933 else
5934   supported=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext \
5937     conftest$ac_exeext conftest.$ac_ext
5938                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940                 CFLAGS="$xorg_testset_save_CFLAGS"
5941
5942                 if test "$supported" = "yes" ; then
5943                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5944                         found="yes"
5945                 fi
5946         fi
5947
5948
5949
5950
5951
5952
5953
5954 xorg_testset_save_CFLAGS="$CFLAGS"
5955
5956 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5957         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962 int i;
5963 _ACEOF
5964 if ac_fn_c_try_compile "$LINENO"; then :
5965   xorg_testset_unknown_warning_option=yes
5966 else
5967   xorg_testset_unknown_warning_option=no
5968 fi
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5971 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
5972         CFLAGS="$xorg_testset_save_CFLAGS"
5973 fi
5974
5975 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5976         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5977                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978         fi
5979         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5982         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h.  */
5984 int i;
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987   xorg_testset_unused_command_line_argument=yes
5988 else
5989   xorg_testset_unused_command_line_argument=no
5990 fi
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5993 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5994         CFLAGS="$xorg_testset_save_CFLAGS"
5995 fi
5996
5997 found="no"
5998
5999         if test $found = "no" ; then
6000                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6001                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002                 fi
6003
6004                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6005                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006                 fi
6007
6008                 CFLAGS="$CFLAGS -Wmissing-noreturn"
6009
6010                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6011 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6012                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h.  */
6014 int i;
6015 int
6016 main ()
6017 {
6018
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024   supported=yes
6025 else
6026   supported=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029     conftest$ac_exeext conftest.$ac_ext
6030                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6031 $as_echo "$supported" >&6; }
6032                 CFLAGS="$xorg_testset_save_CFLAGS"
6033
6034                 if test "$supported" = "yes" ; then
6035                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6036                         found="yes"
6037                 fi
6038         fi
6039
6040
6041
6042
6043
6044
6045
6046 xorg_testset_save_CFLAGS="$CFLAGS"
6047
6048 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6049         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6052         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h.  */
6054 int i;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057   xorg_testset_unknown_warning_option=yes
6058 else
6059   xorg_testset_unknown_warning_option=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6063 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6064         CFLAGS="$xorg_testset_save_CFLAGS"
6065 fi
6066
6067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6068         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6069                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070         fi
6071         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076 int i;
6077 _ACEOF
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079   xorg_testset_unused_command_line_argument=yes
6080 else
6081   xorg_testset_unused_command_line_argument=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6085 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6086         CFLAGS="$xorg_testset_save_CFLAGS"
6087 fi
6088
6089 found="no"
6090
6091         if test $found = "no" ; then
6092                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6093                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094                 fi
6095
6096                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6097                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098                 fi
6099
6100                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6101
6102                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6103 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6104                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106 int i;
6107 int
6108 main ()
6109 {
6110
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"; then :
6116   supported=yes
6117 else
6118   supported=no
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext \
6121     conftest$ac_exeext conftest.$ac_ext
6122                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6123 $as_echo "$supported" >&6; }
6124                 CFLAGS="$xorg_testset_save_CFLAGS"
6125
6126                 if test "$supported" = "yes" ; then
6127                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6128                         found="yes"
6129                 fi
6130         fi
6131
6132
6133
6134
6135
6136
6137
6138 xorg_testset_save_CFLAGS="$CFLAGS"
6139
6140 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6141         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6144         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h.  */
6146 int i;
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149   xorg_testset_unknown_warning_option=yes
6150 else
6151   xorg_testset_unknown_warning_option=no
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6155 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6156         CFLAGS="$xorg_testset_save_CFLAGS"
6157 fi
6158
6159 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6160         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6161                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162         fi
6163         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6166         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h.  */
6168 int i;
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171   xorg_testset_unused_command_line_argument=yes
6172 else
6173   xorg_testset_unused_command_line_argument=no
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6177 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6178         CFLAGS="$xorg_testset_save_CFLAGS"
6179 fi
6180
6181 found="no"
6182
6183         if test $found = "no" ; then
6184                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6185                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186                 fi
6187
6188                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6189                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6190                 fi
6191
6192                 CFLAGS="$CFLAGS -Wredundant-decls"
6193
6194                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6195 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6196                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198 int i;
6199 int
6200 main ()
6201 {
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_link "$LINENO"; then :
6208   supported=yes
6209 else
6210   supported=no
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext \
6213     conftest$ac_exeext conftest.$ac_ext
6214                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6215 $as_echo "$supported" >&6; }
6216                 CFLAGS="$xorg_testset_save_CFLAGS"
6217
6218                 if test "$supported" = "yes" ; then
6219                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6220                         found="yes"
6221                 fi
6222         fi
6223
6224
6225
6226 # These are currently disabled because they are noisy.  They will be enabled
6227 # in the future once the codebase is sufficiently modernized to silence
6228 # them.  For now, I don't want them to drown out the other warnings.
6229 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6230 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6231 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6232
6233 # Turn some warnings into errors, so we don't accidently get successful builds
6234 # when there are problems that should be fixed.
6235
6236 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6237
6238
6239
6240
6241
6242 xorg_testset_save_CFLAGS="$CFLAGS"
6243
6244 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6245         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6247 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6248         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h.  */
6250 int i;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253   xorg_testset_unknown_warning_option=yes
6254 else
6255   xorg_testset_unknown_warning_option=no
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6259 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6260         CFLAGS="$xorg_testset_save_CFLAGS"
6261 fi
6262
6263 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6264         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6265                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266         fi
6267         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6269 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6270         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h.  */
6272 int i;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275   xorg_testset_unused_command_line_argument=yes
6276 else
6277   xorg_testset_unused_command_line_argument=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6281 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6282         CFLAGS="$xorg_testset_save_CFLAGS"
6283 fi
6284
6285 found="no"
6286
6287         if test $found = "no" ; then
6288                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6289                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6290                 fi
6291
6292                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6293                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6294                 fi
6295
6296                 CFLAGS="$CFLAGS -Werror=implicit"
6297
6298                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6299 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6300                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h.  */
6302 int i;
6303 int
6304 main ()
6305 {
6306
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_link "$LINENO"; then :
6312   supported=yes
6313 else
6314   supported=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext \
6317     conftest$ac_exeext conftest.$ac_ext
6318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6319 $as_echo "$supported" >&6; }
6320                 CFLAGS="$xorg_testset_save_CFLAGS"
6321
6322                 if test "$supported" = "yes" ; then
6323                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6324                         found="yes"
6325                 fi
6326         fi
6327
6328         if test $found = "no" ; then
6329                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6330                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331                 fi
6332
6333                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6334                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6335                 fi
6336
6337                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6338
6339                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6340 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6341                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h.  */
6343 int i;
6344 int
6345 main ()
6346 {
6347
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 if ac_fn_c_try_link "$LINENO"; then :
6353   supported=yes
6354 else
6355   supported=no
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext \
6358     conftest$ac_exeext conftest.$ac_ext
6359                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6360 $as_echo "$supported" >&6; }
6361                 CFLAGS="$xorg_testset_save_CFLAGS"
6362
6363                 if test "$supported" = "yes" ; then
6364                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6365                         found="yes"
6366                 fi
6367         fi
6368
6369
6370
6371
6372
6373
6374
6375 xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6378         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383 int i;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386   xorg_testset_unknown_warning_option=yes
6387 else
6388   xorg_testset_unknown_warning_option=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6392 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6393         CFLAGS="$xorg_testset_save_CFLAGS"
6394 fi
6395
6396 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6397         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6398                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399         fi
6400         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6403         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h.  */
6405 int i;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408   xorg_testset_unused_command_line_argument=yes
6409 else
6410   xorg_testset_unused_command_line_argument=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6414 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6415         CFLAGS="$xorg_testset_save_CFLAGS"
6416 fi
6417
6418 found="no"
6419
6420         if test $found = "no" ; then
6421                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6422                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423                 fi
6424
6425                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6426                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427                 fi
6428
6429                 CFLAGS="$CFLAGS -Werror=nonnull"
6430
6431                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6432 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6433                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h.  */
6435 int i;
6436 int
6437 main ()
6438 {
6439
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_link "$LINENO"; then :
6445   supported=yes
6446 else
6447   supported=no
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext \
6450     conftest$ac_exeext conftest.$ac_ext
6451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6452 $as_echo "$supported" >&6; }
6453                 CFLAGS="$xorg_testset_save_CFLAGS"
6454
6455                 if test "$supported" = "yes" ; then
6456                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6457                         found="yes"
6458                 fi
6459         fi
6460
6461
6462
6463
6464
6465
6466
6467 xorg_testset_save_CFLAGS="$CFLAGS"
6468
6469 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6470         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6472 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6473         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475 int i;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478   xorg_testset_unknown_warning_option=yes
6479 else
6480   xorg_testset_unknown_warning_option=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6484 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6485         CFLAGS="$xorg_testset_save_CFLAGS"
6486 fi
6487
6488 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6489         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6490                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6491         fi
6492         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6494 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6495         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h.  */
6497 int i;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500   xorg_testset_unused_command_line_argument=yes
6501 else
6502   xorg_testset_unused_command_line_argument=no
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6506 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6507         CFLAGS="$xorg_testset_save_CFLAGS"
6508 fi
6509
6510 found="no"
6511
6512         if test $found = "no" ; then
6513                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6514                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515                 fi
6516
6517                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6518                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6519                 fi
6520
6521                 CFLAGS="$CFLAGS -Werror=init-self"
6522
6523                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6524 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6525                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h.  */
6527 int i;
6528 int
6529 main ()
6530 {
6531
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_link "$LINENO"; then :
6537   supported=yes
6538 else
6539   supported=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext \
6542     conftest$ac_exeext conftest.$ac_ext
6543                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544 $as_echo "$supported" >&6; }
6545                 CFLAGS="$xorg_testset_save_CFLAGS"
6546
6547                 if test "$supported" = "yes" ; then
6548                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6549                         found="yes"
6550                 fi
6551         fi
6552
6553
6554
6555
6556
6557
6558
6559 xorg_testset_save_CFLAGS="$CFLAGS"
6560
6561 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6562         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567 int i;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570   xorg_testset_unknown_warning_option=yes
6571 else
6572   xorg_testset_unknown_warning_option=no
6573 fi
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6576 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6577         CFLAGS="$xorg_testset_save_CFLAGS"
6578 fi
6579
6580 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6581         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6582                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583         fi
6584         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6587         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h.  */
6589 int i;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592   xorg_testset_unused_command_line_argument=yes
6593 else
6594   xorg_testset_unused_command_line_argument=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6598 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6599         CFLAGS="$xorg_testset_save_CFLAGS"
6600 fi
6601
6602 found="no"
6603
6604         if test $found = "no" ; then
6605                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6606                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607                 fi
6608
6609                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6610                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611                 fi
6612
6613                 CFLAGS="$CFLAGS -Werror=main"
6614
6615                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6616 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6617                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619 int i;
6620 int
6621 main ()
6622 {
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629   supported=yes
6630 else
6631   supported=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634     conftest$ac_exeext conftest.$ac_ext
6635                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6636 $as_echo "$supported" >&6; }
6637                 CFLAGS="$xorg_testset_save_CFLAGS"
6638
6639                 if test "$supported" = "yes" ; then
6640                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6641                         found="yes"
6642                 fi
6643         fi
6644
6645
6646
6647
6648
6649
6650
6651 xorg_testset_save_CFLAGS="$CFLAGS"
6652
6653 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6654         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6657         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h.  */
6659 int i;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662   xorg_testset_unknown_warning_option=yes
6663 else
6664   xorg_testset_unknown_warning_option=no
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6668 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6669         CFLAGS="$xorg_testset_save_CFLAGS"
6670 fi
6671
6672 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6673         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6674                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675         fi
6676         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h.  */
6681 int i;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684   xorg_testset_unused_command_line_argument=yes
6685 else
6686   xorg_testset_unused_command_line_argument=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6690 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6691         CFLAGS="$xorg_testset_save_CFLAGS"
6692 fi
6693
6694 found="no"
6695
6696         if test $found = "no" ; then
6697                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6698                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699                 fi
6700
6701                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6702                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703                 fi
6704
6705                 CFLAGS="$CFLAGS -Werror=missing-braces"
6706
6707                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6708 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6709                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 int i;
6712 int
6713 main ()
6714 {
6715
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721   supported=yes
6722 else
6723   supported=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726     conftest$ac_exeext conftest.$ac_ext
6727                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6728 $as_echo "$supported" >&6; }
6729                 CFLAGS="$xorg_testset_save_CFLAGS"
6730
6731                 if test "$supported" = "yes" ; then
6732                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6733                         found="yes"
6734                 fi
6735         fi
6736
6737
6738
6739
6740
6741
6742
6743 xorg_testset_save_CFLAGS="$CFLAGS"
6744
6745 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6746         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6748 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6749         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h.  */
6751 int i;
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754   xorg_testset_unknown_warning_option=yes
6755 else
6756   xorg_testset_unknown_warning_option=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6760 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6761         CFLAGS="$xorg_testset_save_CFLAGS"
6762 fi
6763
6764 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6765         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6766                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6767         fi
6768         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6771         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h.  */
6773 int i;
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776   xorg_testset_unused_command_line_argument=yes
6777 else
6778   xorg_testset_unused_command_line_argument=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6782 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6783         CFLAGS="$xorg_testset_save_CFLAGS"
6784 fi
6785
6786 found="no"
6787
6788         if test $found = "no" ; then
6789                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6790                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6791                 fi
6792
6793                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6794                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6795                 fi
6796
6797                 CFLAGS="$CFLAGS -Werror=sequence-point"
6798
6799                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6800 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6801                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803 int i;
6804 int
6805 main ()
6806 {
6807
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"; then :
6813   supported=yes
6814 else
6815   supported=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext \
6818     conftest$ac_exeext conftest.$ac_ext
6819                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6820 $as_echo "$supported" >&6; }
6821                 CFLAGS="$xorg_testset_save_CFLAGS"
6822
6823                 if test "$supported" = "yes" ; then
6824                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6825                         found="yes"
6826                 fi
6827         fi
6828
6829
6830
6831
6832
6833
6834
6835 xorg_testset_save_CFLAGS="$CFLAGS"
6836
6837 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6838         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6841         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h.  */
6843 int i;
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846   xorg_testset_unknown_warning_option=yes
6847 else
6848   xorg_testset_unknown_warning_option=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6852 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6853         CFLAGS="$xorg_testset_save_CFLAGS"
6854 fi
6855
6856 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6857         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6858                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859         fi
6860         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6862 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6863         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865 int i;
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868   xorg_testset_unused_command_line_argument=yes
6869 else
6870   xorg_testset_unused_command_line_argument=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6874 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6875         CFLAGS="$xorg_testset_save_CFLAGS"
6876 fi
6877
6878 found="no"
6879
6880         if test $found = "no" ; then
6881                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6882                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883                 fi
6884
6885                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6886                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6887                 fi
6888
6889                 CFLAGS="$CFLAGS -Werror=return-type"
6890
6891                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6892 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6893                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895 int i;
6896 int
6897 main ()
6898 {
6899
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905   supported=yes
6906 else
6907   supported=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext \
6910     conftest$ac_exeext conftest.$ac_ext
6911                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912 $as_echo "$supported" >&6; }
6913                 CFLAGS="$xorg_testset_save_CFLAGS"
6914
6915                 if test "$supported" = "yes" ; then
6916                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6917                         found="yes"
6918                 fi
6919         fi
6920
6921         if test $found = "no" ; then
6922                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6923                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924                 fi
6925
6926                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6927                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928                 fi
6929
6930                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6931
6932                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6933 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6934                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h.  */
6936 int i;
6937 int
6938 main ()
6939 {
6940
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946   supported=yes
6947 else
6948   supported=no
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951     conftest$ac_exeext conftest.$ac_ext
6952                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6953 $as_echo "$supported" >&6; }
6954                 CFLAGS="$xorg_testset_save_CFLAGS"
6955
6956                 if test "$supported" = "yes" ; then
6957                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6958                         found="yes"
6959                 fi
6960         fi
6961
6962
6963
6964
6965
6966
6967
6968 xorg_testset_save_CFLAGS="$CFLAGS"
6969
6970 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6971         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 int i;
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979   xorg_testset_unknown_warning_option=yes
6980 else
6981   xorg_testset_unknown_warning_option=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6985 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
6986         CFLAGS="$xorg_testset_save_CFLAGS"
6987 fi
6988
6989 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6990         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6991                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992         fi
6993         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6996         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h.  */
6998 int i;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001   xorg_testset_unused_command_line_argument=yes
7002 else
7003   xorg_testset_unused_command_line_argument=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7007 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7008         CFLAGS="$xorg_testset_save_CFLAGS"
7009 fi
7010
7011 found="no"
7012
7013         if test $found = "no" ; then
7014                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7015                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016                 fi
7017
7018                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7019                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020                 fi
7021
7022                 CFLAGS="$CFLAGS -Werror=trigraphs"
7023
7024                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7025 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7026                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 int i;
7029 int
7030 main ()
7031 {
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038   supported=yes
7039 else
7040   supported=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043     conftest$ac_exeext conftest.$ac_ext
7044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7045 $as_echo "$supported" >&6; }
7046                 CFLAGS="$xorg_testset_save_CFLAGS"
7047
7048                 if test "$supported" = "yes" ; then
7049                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7050                         found="yes"
7051                 fi
7052         fi
7053
7054
7055
7056
7057
7058
7059
7060 xorg_testset_save_CFLAGS="$CFLAGS"
7061
7062 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7063         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7066         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 int i;
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"; then :
7071   xorg_testset_unknown_warning_option=yes
7072 else
7073   xorg_testset_unknown_warning_option=no
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7077 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7078         CFLAGS="$xorg_testset_save_CFLAGS"
7079 fi
7080
7081 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7082         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7083                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084         fi
7085         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 int i;
7091 _ACEOF
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093   xorg_testset_unused_command_line_argument=yes
7094 else
7095   xorg_testset_unused_command_line_argument=no
7096 fi
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7099 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7100         CFLAGS="$xorg_testset_save_CFLAGS"
7101 fi
7102
7103 found="no"
7104
7105         if test $found = "no" ; then
7106                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7107                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7108                 fi
7109
7110                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7111                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7112                 fi
7113
7114                 CFLAGS="$CFLAGS -Werror=array-bounds"
7115
7116                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7117 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7118                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120 int i;
7121 int
7122 main ()
7123 {
7124
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130   supported=yes
7131 else
7132   supported=no
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext \
7135     conftest$ac_exeext conftest.$ac_ext
7136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138                 CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140                 if test "$supported" = "yes" ; then
7141                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7142                         found="yes"
7143                 fi
7144         fi
7145
7146
7147
7148
7149
7150
7151
7152 xorg_testset_save_CFLAGS="$CFLAGS"
7153
7154 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7155         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7158         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 int i;
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163   xorg_testset_unknown_warning_option=yes
7164 else
7165   xorg_testset_unknown_warning_option=no
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7169 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7170         CFLAGS="$xorg_testset_save_CFLAGS"
7171 fi
7172
7173 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7174         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7175                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7176         fi
7177         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7180         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h.  */
7182 int i;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185   xorg_testset_unused_command_line_argument=yes
7186 else
7187   xorg_testset_unused_command_line_argument=no
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7191 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7192         CFLAGS="$xorg_testset_save_CFLAGS"
7193 fi
7194
7195 found="no"
7196
7197         if test $found = "no" ; then
7198                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7199                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200                 fi
7201
7202                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7203                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204                 fi
7205
7206                 CFLAGS="$CFLAGS -Werror=write-strings"
7207
7208                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7209 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7210                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 int i;
7213 int
7214 main ()
7215 {
7216
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_link "$LINENO"; then :
7222   supported=yes
7223 else
7224   supported=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext \
7227     conftest$ac_exeext conftest.$ac_ext
7228                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7229 $as_echo "$supported" >&6; }
7230                 CFLAGS="$xorg_testset_save_CFLAGS"
7231
7232                 if test "$supported" = "yes" ; then
7233                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7234                         found="yes"
7235                 fi
7236         fi
7237
7238
7239
7240
7241
7242
7243
7244 xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7247         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h.  */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"; then :
7255   xorg_testset_unknown_warning_option=yes
7256 else
7257   xorg_testset_unknown_warning_option=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7261 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7262         CFLAGS="$xorg_testset_save_CFLAGS"
7263 fi
7264
7265 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7266         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7267                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7268         fi
7269         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h.  */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277   xorg_testset_unused_command_line_argument=yes
7278 else
7279   xorg_testset_unused_command_line_argument=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7283 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7284         CFLAGS="$xorg_testset_save_CFLAGS"
7285 fi
7286
7287 found="no"
7288
7289         if test $found = "no" ; then
7290                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7291                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292                 fi
7293
7294                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7295                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296                 fi
7297
7298                 CFLAGS="$CFLAGS -Werror=address"
7299
7300                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7301 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7302                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h.  */
7304 int i;
7305 int
7306 main ()
7307 {
7308
7309   ;
7310   return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314   supported=yes
7315 else
7316   supported=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319     conftest$ac_exeext conftest.$ac_ext
7320                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321 $as_echo "$supported" >&6; }
7322                 CFLAGS="$xorg_testset_save_CFLAGS"
7323
7324                 if test "$supported" = "yes" ; then
7325                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7326                         found="yes"
7327                 fi
7328         fi
7329
7330
7331
7332
7333
7334
7335
7336 xorg_testset_save_CFLAGS="$CFLAGS"
7337
7338 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7339         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7341 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7342         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 int i;
7345 _ACEOF
7346 if ac_fn_c_try_compile "$LINENO"; then :
7347   xorg_testset_unknown_warning_option=yes
7348 else
7349   xorg_testset_unknown_warning_option=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7353 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7354         CFLAGS="$xorg_testset_save_CFLAGS"
7355 fi
7356
7357 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7358         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7359                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360         fi
7361         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7363 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7364         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h.  */
7366 int i;
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"; then :
7369   xorg_testset_unused_command_line_argument=yes
7370 else
7371   xorg_testset_unused_command_line_argument=no
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7375 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7376         CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 found="no"
7380
7381         if test $found = "no" ; then
7382                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7383                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384                 fi
7385
7386                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7387                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388                 fi
7389
7390                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7391
7392                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7393 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7394                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h.  */
7396 int i;
7397 int
7398 main ()
7399 {
7400
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_link "$LINENO"; then :
7406   supported=yes
7407 else
7408   supported=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext \
7411     conftest$ac_exeext conftest.$ac_ext
7412                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7413 $as_echo "$supported" >&6; }
7414                 CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416                 if test "$supported" = "yes" ; then
7417                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7418                         found="yes"
7419                 fi
7420         fi
7421
7422         if test $found = "no" ; then
7423                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7424                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425                 fi
7426
7427                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7428                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429                 fi
7430
7431                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7432
7433                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7434 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7435                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437 int i;
7438 int
7439 main ()
7440 {
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447   supported=yes
7448 else
7449   supported=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext \
7452     conftest$ac_exeext conftest.$ac_ext
7453                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7454 $as_echo "$supported" >&6; }
7455                 CFLAGS="$xorg_testset_save_CFLAGS"
7456
7457                 if test "$supported" = "yes" ; then
7458                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7459                         found="yes"
7460                 fi
7461         fi
7462
7463
7464
7465
7466
7467
7468
7469 xorg_testset_save_CFLAGS="$CFLAGS"
7470
7471 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7472         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7474 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7475         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477 int i;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480   xorg_testset_unknown_warning_option=yes
7481 else
7482   xorg_testset_unknown_warning_option=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7486 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7487         CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7491         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7492                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493         fi
7494         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499 int i;
7500 _ACEOF
7501 if ac_fn_c_try_compile "$LINENO"; then :
7502   xorg_testset_unused_command_line_argument=yes
7503 else
7504   xorg_testset_unused_command_line_argument=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7508 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7509         CFLAGS="$xorg_testset_save_CFLAGS"
7510 fi
7511
7512 found="no"
7513
7514         if test $found = "no" ; then
7515                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7516                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517                 fi
7518
7519                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7520                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521                 fi
7522
7523                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7524
7525                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7526 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7527                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h.  */
7529 int i;
7530 int
7531 main ()
7532 {
7533
7534   ;
7535   return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_link "$LINENO"; then :
7539   supported=yes
7540 else
7541   supported=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext \
7544     conftest$ac_exeext conftest.$ac_ext
7545                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7546 $as_echo "$supported" >&6; }
7547                 CFLAGS="$xorg_testset_save_CFLAGS"
7548
7549                 if test "$supported" = "yes" ; then
7550                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7551                         found="yes"
7552                 fi
7553         fi
7554
7555  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7556 else
7557 { $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
7558 $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;}
7559
7560
7561
7562
7563
7564 xorg_testset_save_CFLAGS="$CFLAGS"
7565
7566 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7567         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7570         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575   xorg_testset_unknown_warning_option=yes
7576 else
7577   xorg_testset_unknown_warning_option=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7581 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7582         CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7586         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7587                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588         fi
7589         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594 int i;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597   xorg_testset_unused_command_line_argument=yes
7598 else
7599   xorg_testset_unused_command_line_argument=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7603 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7604         CFLAGS="$xorg_testset_save_CFLAGS"
7605 fi
7606
7607 found="no"
7608
7609         if test $found = "no" ; then
7610                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612                 fi
7613
7614                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616                 fi
7617
7618                 CFLAGS="$CFLAGS -Wimplicit"
7619
7620                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7621 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7622                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h.  */
7624 int i;
7625 int
7626 main ()
7627 {
7628
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_link "$LINENO"; then :
7634   supported=yes
7635 else
7636   supported=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext \
7639     conftest$ac_exeext conftest.$ac_ext
7640                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7641 $as_echo "$supported" >&6; }
7642                 CFLAGS="$xorg_testset_save_CFLAGS"
7643
7644                 if test "$supported" = "yes" ; then
7645                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7646                         found="yes"
7647                 fi
7648         fi
7649
7650
7651
7652
7653
7654
7655
7656 xorg_testset_save_CFLAGS="$CFLAGS"
7657
7658 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7659         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7662         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664 int i;
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667   xorg_testset_unknown_warning_option=yes
7668 else
7669   xorg_testset_unknown_warning_option=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7673 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7674         CFLAGS="$xorg_testset_save_CFLAGS"
7675 fi
7676
7677 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7678         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7679                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680         fi
7681         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h.  */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689   xorg_testset_unused_command_line_argument=yes
7690 else
7691   xorg_testset_unused_command_line_argument=no
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7695 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7696         CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 found="no"
7700
7701         if test $found = "no" ; then
7702                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7703                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704                 fi
7705
7706                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7707                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708                 fi
7709
7710                 CFLAGS="$CFLAGS -Wnonnull"
7711
7712                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7713 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7714                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h.  */
7716 int i;
7717 int
7718 main ()
7719 {
7720
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726   supported=yes
7727 else
7728   supported=no
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext \
7731     conftest$ac_exeext conftest.$ac_ext
7732                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7733 $as_echo "$supported" >&6; }
7734                 CFLAGS="$xorg_testset_save_CFLAGS"
7735
7736                 if test "$supported" = "yes" ; then
7737                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7738                         found="yes"
7739                 fi
7740         fi
7741
7742
7743
7744
7745
7746
7747
7748 xorg_testset_save_CFLAGS="$CFLAGS"
7749
7750 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7751         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7754         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h.  */
7756 int i;
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759   xorg_testset_unknown_warning_option=yes
7760 else
7761   xorg_testset_unknown_warning_option=no
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7765 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7766         CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7770         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7771                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772         fi
7773         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 int i;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"; then :
7781   xorg_testset_unused_command_line_argument=yes
7782 else
7783   xorg_testset_unused_command_line_argument=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7787 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7788         CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 found="no"
7792
7793         if test $found = "no" ; then
7794                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796                 fi
7797
7798                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800                 fi
7801
7802                 CFLAGS="$CFLAGS -Winit-self"
7803
7804                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7805 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7806                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h.  */
7808 int i;
7809 int
7810 main ()
7811 {
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818   supported=yes
7819 else
7820   supported=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823     conftest$ac_exeext conftest.$ac_ext
7824                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7825 $as_echo "$supported" >&6; }
7826                 CFLAGS="$xorg_testset_save_CFLAGS"
7827
7828                 if test "$supported" = "yes" ; then
7829                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7830                         found="yes"
7831                 fi
7832         fi
7833
7834
7835
7836
7837
7838
7839
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7841
7842 if test "x$xorg_testset_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; }
7846         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h.  */
7848 int i;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851   xorg_testset_unknown_warning_option=yes
7852 else
7853   xorg_testset_unknown_warning_option=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7857 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7858         CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7862         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7863                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864         fi
7865         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h.  */
7870 int i;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873   xorg_testset_unused_command_line_argument=yes
7874 else
7875   xorg_testset_unused_command_line_argument=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7879 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7880         CFLAGS="$xorg_testset_save_CFLAGS"
7881 fi
7882
7883 found="no"
7884
7885         if test $found = "no" ; then
7886                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7887                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7888                 fi
7889
7890                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7891                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7892                 fi
7893
7894                 CFLAGS="$CFLAGS -Wmain"
7895
7896                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7897 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
7898                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900 int i;
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910   supported=yes
7911 else
7912   supported=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915     conftest$ac_exeext conftest.$ac_ext
7916                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7917 $as_echo "$supported" >&6; }
7918                 CFLAGS="$xorg_testset_save_CFLAGS"
7919
7920                 if test "$supported" = "yes" ; then
7921                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7922                         found="yes"
7923                 fi
7924         fi
7925
7926
7927
7928
7929
7930
7931
7932 xorg_testset_save_CFLAGS="$CFLAGS"
7933
7934 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7935         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7938         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940 int i;
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943   xorg_testset_unknown_warning_option=yes
7944 else
7945   xorg_testset_unknown_warning_option=no
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7949 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
7950         CFLAGS="$xorg_testset_save_CFLAGS"
7951 fi
7952
7953 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7954         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7955                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956         fi
7957         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7962 int i;
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965   xorg_testset_unused_command_line_argument=yes
7966 else
7967   xorg_testset_unused_command_line_argument=no
7968 fi
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7971 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7972         CFLAGS="$xorg_testset_save_CFLAGS"
7973 fi
7974
7975 found="no"
7976
7977         if test $found = "no" ; then
7978                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7979                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980                 fi
7981
7982                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7983                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984                 fi
7985
7986                 CFLAGS="$CFLAGS -Wmissing-braces"
7987
7988                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7989 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7990                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h.  */
7992 int i;
7993 int
7994 main ()
7995 {
7996
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002   supported=yes
8003 else
8004   supported=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext \
8007     conftest$ac_exeext conftest.$ac_ext
8008                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8009 $as_echo "$supported" >&6; }
8010                 CFLAGS="$xorg_testset_save_CFLAGS"
8011
8012                 if test "$supported" = "yes" ; then
8013                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8014                         found="yes"
8015                 fi
8016         fi
8017
8018
8019
8020
8021
8022
8023
8024 xorg_testset_save_CFLAGS="$CFLAGS"
8025
8026 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8027         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8029 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8030         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 int i;
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035   xorg_testset_unknown_warning_option=yes
8036 else
8037   xorg_testset_unknown_warning_option=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8041 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8042         CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8046         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8047                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048         fi
8049         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h.  */
8054 int i;
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057   xorg_testset_unused_command_line_argument=yes
8058 else
8059   xorg_testset_unused_command_line_argument=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8063 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8064         CFLAGS="$xorg_testset_save_CFLAGS"
8065 fi
8066
8067 found="no"
8068
8069         if test $found = "no" ; then
8070                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8071                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072                 fi
8073
8074                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8075                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8076                 fi
8077
8078                 CFLAGS="$CFLAGS -Wsequence-point"
8079
8080                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8081 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8082                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h.  */
8084 int i;
8085 int
8086 main ()
8087 {
8088
8089   ;
8090   return 0;
8091 }
8092 _ACEOF
8093 if ac_fn_c_try_link "$LINENO"; then :
8094   supported=yes
8095 else
8096   supported=no
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext \
8099     conftest$ac_exeext conftest.$ac_ext
8100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8101 $as_echo "$supported" >&6; }
8102                 CFLAGS="$xorg_testset_save_CFLAGS"
8103
8104                 if test "$supported" = "yes" ; then
8105                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8106                         found="yes"
8107                 fi
8108         fi
8109
8110
8111
8112
8113
8114
8115
8116 xorg_testset_save_CFLAGS="$CFLAGS"
8117
8118 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8119         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h.  */
8124 int i;
8125 _ACEOF
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127   xorg_testset_unknown_warning_option=yes
8128 else
8129   xorg_testset_unknown_warning_option=no
8130 fi
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8133 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8134         CFLAGS="$xorg_testset_save_CFLAGS"
8135 fi
8136
8137 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8138         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8139                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140         fi
8141         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8144         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h.  */
8146 int i;
8147 _ACEOF
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149   xorg_testset_unused_command_line_argument=yes
8150 else
8151   xorg_testset_unused_command_line_argument=no
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8155 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8156         CFLAGS="$xorg_testset_save_CFLAGS"
8157 fi
8158
8159 found="no"
8160
8161         if test $found = "no" ; then
8162                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8163                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164                 fi
8165
8166                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8167                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168                 fi
8169
8170                 CFLAGS="$CFLAGS -Wreturn-type"
8171
8172                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8173 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8174                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h.  */
8176 int i;
8177 int
8178 main ()
8179 {
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"; then :
8186   supported=yes
8187 else
8188   supported=no
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext \
8191     conftest$ac_exeext conftest.$ac_ext
8192                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8193 $as_echo "$supported" >&6; }
8194                 CFLAGS="$xorg_testset_save_CFLAGS"
8195
8196                 if test "$supported" = "yes" ; then
8197                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8198                         found="yes"
8199                 fi
8200         fi
8201
8202
8203
8204
8205
8206
8207
8208 xorg_testset_save_CFLAGS="$CFLAGS"
8209
8210 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8211         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8214         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216 int i;
8217 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"; then :
8219   xorg_testset_unknown_warning_option=yes
8220 else
8221   xorg_testset_unknown_warning_option=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8225 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8226         CFLAGS="$xorg_testset_save_CFLAGS"
8227 fi
8228
8229 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8230         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8231                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232         fi
8233         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h.  */
8238 int i;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241   xorg_testset_unused_command_line_argument=yes
8242 else
8243   xorg_testset_unused_command_line_argument=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8247 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8248         CFLAGS="$xorg_testset_save_CFLAGS"
8249 fi
8250
8251 found="no"
8252
8253         if test $found = "no" ; then
8254                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8255                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256                 fi
8257
8258                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8259                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260                 fi
8261
8262                 CFLAGS="$CFLAGS -Wtrigraphs"
8263
8264                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8265 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8266                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 int i;
8269 int
8270 main ()
8271 {
8272
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278   supported=yes
8279 else
8280   supported=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext \
8283     conftest$ac_exeext conftest.$ac_ext
8284                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8285 $as_echo "$supported" >&6; }
8286                 CFLAGS="$xorg_testset_save_CFLAGS"
8287
8288                 if test "$supported" = "yes" ; then
8289                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8290                         found="yes"
8291                 fi
8292         fi
8293
8294
8295
8296
8297
8298
8299
8300 xorg_testset_save_CFLAGS="$CFLAGS"
8301
8302 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8303         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8305 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8306         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 int i;
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311   xorg_testset_unknown_warning_option=yes
8312 else
8313   xorg_testset_unknown_warning_option=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8317 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8318         CFLAGS="$xorg_testset_save_CFLAGS"
8319 fi
8320
8321 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8322         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8323                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324         fi
8325         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8327 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8328         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h.  */
8330 int i;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333   xorg_testset_unused_command_line_argument=yes
8334 else
8335   xorg_testset_unused_command_line_argument=no
8336 fi
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8339 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8340         CFLAGS="$xorg_testset_save_CFLAGS"
8341 fi
8342
8343 found="no"
8344
8345         if test $found = "no" ; then
8346                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8347                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348                 fi
8349
8350                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8351                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352                 fi
8353
8354                 CFLAGS="$CFLAGS -Warray-bounds"
8355
8356                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8357 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8358                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h.  */
8360 int i;
8361 int
8362 main ()
8363 {
8364
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370   supported=yes
8371 else
8372   supported=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext \
8375     conftest$ac_exeext conftest.$ac_ext
8376                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377 $as_echo "$supported" >&6; }
8378                 CFLAGS="$xorg_testset_save_CFLAGS"
8379
8380                 if test "$supported" = "yes" ; then
8381                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8382                         found="yes"
8383                 fi
8384         fi
8385
8386
8387
8388
8389
8390
8391
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8395         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h.  */
8400 int i;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403   xorg_testset_unknown_warning_option=yes
8404 else
8405   xorg_testset_unknown_warning_option=no
8406 fi
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8409 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8410         CFLAGS="$xorg_testset_save_CFLAGS"
8411 fi
8412
8413 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8414         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8415                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416         fi
8417         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8419 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8420         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h.  */
8422 int i;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425   xorg_testset_unused_command_line_argument=yes
8426 else
8427   xorg_testset_unused_command_line_argument=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8431 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8432         CFLAGS="$xorg_testset_save_CFLAGS"
8433 fi
8434
8435 found="no"
8436
8437         if test $found = "no" ; then
8438                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8439                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440                 fi
8441
8442                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8443                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8444                 fi
8445
8446                 CFLAGS="$CFLAGS -Wwrite-strings"
8447
8448                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8449 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8450                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h.  */
8452 int i;
8453 int
8454 main ()
8455 {
8456
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"; then :
8462   supported=yes
8463 else
8464   supported=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467     conftest$ac_exeext conftest.$ac_ext
8468                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8469 $as_echo "$supported" >&6; }
8470                 CFLAGS="$xorg_testset_save_CFLAGS"
8471
8472                 if test "$supported" = "yes" ; then
8473                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8474                         found="yes"
8475                 fi
8476         fi
8477
8478
8479
8480
8481
8482
8483
8484 xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8487         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h.  */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495   xorg_testset_unknown_warning_option=yes
8496 else
8497   xorg_testset_unknown_warning_option=no
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8501 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8502         CFLAGS="$xorg_testset_save_CFLAGS"
8503 fi
8504
8505 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8506         if test "x$xorg_testset_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; }
8512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h.  */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517   xorg_testset_unused_command_line_argument=yes
8518 else
8519   xorg_testset_unused_command_line_argument=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8523 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8524         CFLAGS="$xorg_testset_save_CFLAGS"
8525 fi
8526
8527 found="no"
8528
8529         if test $found = "no" ; then
8530                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8531                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532                 fi
8533
8534                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8535                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536                 fi
8537
8538                 CFLAGS="$CFLAGS -Waddress"
8539
8540                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8541 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
8542                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h.  */
8544 int i;
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554   supported=yes
8555 else
8556   supported=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext \
8559     conftest$ac_exeext conftest.$ac_ext
8560                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8561 $as_echo "$supported" >&6; }
8562                 CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564                 if test "$supported" = "yes" ; then
8565                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8566                         found="yes"
8567                 fi
8568         fi
8569
8570
8571
8572
8573
8574
8575
8576 xorg_testset_save_CFLAGS="$CFLAGS"
8577
8578 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8579         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8581 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h.  */
8584 int i;
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587   xorg_testset_unknown_warning_option=yes
8588 else
8589   xorg_testset_unknown_warning_option=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8593 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8594         CFLAGS="$xorg_testset_save_CFLAGS"
8595 fi
8596
8597 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8598         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8599                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600         fi
8601         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8603 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8604         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h.  */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609   xorg_testset_unused_command_line_argument=yes
8610 else
8611   xorg_testset_unused_command_line_argument=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8615 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8616         CFLAGS="$xorg_testset_save_CFLAGS"
8617 fi
8618
8619 found="no"
8620
8621         if test $found = "no" ; then
8622                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8623                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624                 fi
8625
8626                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8627                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8628                 fi
8629
8630                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8631
8632                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8633 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8634                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h.  */
8636 int i;
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"; then :
8646   supported=yes
8647 else
8648   supported=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext \
8651     conftest$ac_exeext conftest.$ac_ext
8652                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8653 $as_echo "$supported" >&6; }
8654                 CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656                 if test "$supported" = "yes" ; then
8657                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8658                         found="yes"
8659                 fi
8660         fi
8661
8662
8663
8664
8665
8666
8667
8668 xorg_testset_save_CFLAGS="$CFLAGS"
8669
8670 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8671         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h.  */
8676 int i;
8677 _ACEOF
8678 if ac_fn_c_try_compile "$LINENO"; then :
8679   xorg_testset_unknown_warning_option=yes
8680 else
8681   xorg_testset_unknown_warning_option=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8685 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8686         CFLAGS="$xorg_testset_save_CFLAGS"
8687 fi
8688
8689 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8690         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8691                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692         fi
8693         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8696         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h.  */
8698 int i;
8699 _ACEOF
8700 if ac_fn_c_try_compile "$LINENO"; then :
8701   xorg_testset_unused_command_line_argument=yes
8702 else
8703   xorg_testset_unused_command_line_argument=no
8704 fi
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8707 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8708         CFLAGS="$xorg_testset_save_CFLAGS"
8709 fi
8710
8711 found="no"
8712
8713         if test $found = "no" ; then
8714                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8715                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716                 fi
8717
8718                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8719                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720                 fi
8721
8722                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8723
8724                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8725 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8726                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h.  */
8728 int i;
8729 int
8730 main ()
8731 {
8732
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"; then :
8738   supported=yes
8739 else
8740   supported=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext \
8743     conftest$ac_exeext conftest.$ac_ext
8744                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8745 $as_echo "$supported" >&6; }
8746                 CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748                 if test "$supported" = "yes" ; then
8749                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8750                         found="yes"
8751                 fi
8752         fi
8753
8754
8755 fi
8756
8757
8758
8759
8760
8761
8762 CWARNFLAGS="$BASE_CFLAGS"
8763 if  test "x$GCC" = xyes ; then
8764     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
8765 fi
8766
8767
8768
8769
8770
8771
8772 # Check whether --enable-strict-compilation was given.
8773 if test "${enable_strict_compilation+set}" = set; then :
8774   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
8775 else
8776   STRICT_COMPILE=no
8777 fi
8778
8779
8780 STRICT_CFLAGS=""
8781
8782
8783
8784
8785
8786 xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8789         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h.  */
8794 int i;
8795 _ACEOF
8796 if ac_fn_c_try_compile "$LINENO"; then :
8797   xorg_testset_unknown_warning_option=yes
8798 else
8799   xorg_testset_unknown_warning_option=no
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8803 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8804         CFLAGS="$xorg_testset_save_CFLAGS"
8805 fi
8806
8807 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8808         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8809                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810         fi
8811         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8814         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816 int i;
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819   xorg_testset_unused_command_line_argument=yes
8820 else
8821   xorg_testset_unused_command_line_argument=no
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8825 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8826         CFLAGS="$xorg_testset_save_CFLAGS"
8827 fi
8828
8829 found="no"
8830
8831         if test $found = "no" ; then
8832                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8833                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834                 fi
8835
8836                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8837                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838                 fi
8839
8840                 CFLAGS="$CFLAGS -pedantic"
8841
8842                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
8843 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
8844                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h.  */
8846 int i;
8847 int
8848 main ()
8849 {
8850
8851   ;
8852   return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"; then :
8856   supported=yes
8857 else
8858   supported=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext \
8861     conftest$ac_exeext conftest.$ac_ext
8862                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8863 $as_echo "$supported" >&6; }
8864                 CFLAGS="$xorg_testset_save_CFLAGS"
8865
8866                 if test "$supported" = "yes" ; then
8867                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
8868                         found="yes"
8869                 fi
8870         fi
8871
8872
8873
8874
8875
8876
8877
8878 xorg_testset_save_CFLAGS="$CFLAGS"
8879
8880 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8881         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h.  */
8886 int i;
8887 _ACEOF
8888 if ac_fn_c_try_compile "$LINENO"; then :
8889   xorg_testset_unknown_warning_option=yes
8890 else
8891   xorg_testset_unknown_warning_option=no
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8895 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
8896         CFLAGS="$xorg_testset_save_CFLAGS"
8897 fi
8898
8899 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8900         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8901                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902         fi
8903         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8906         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h.  */
8908 int i;
8909 _ACEOF
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911   xorg_testset_unused_command_line_argument=yes
8912 else
8913   xorg_testset_unused_command_line_argument=no
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8917 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8918         CFLAGS="$xorg_testset_save_CFLAGS"
8919 fi
8920
8921 found="no"
8922
8923         if test $found = "no" ; then
8924                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8925                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926                 fi
8927
8928                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8929                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8930                 fi
8931
8932                 CFLAGS="$CFLAGS -Werror"
8933
8934                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
8935 $as_echo_n "checking if $CC supports -Werror... " >&6; }
8936                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h.  */
8938 int i;
8939 int
8940 main ()
8941 {
8942
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948   supported=yes
8949 else
8950   supported=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953     conftest$ac_exeext conftest.$ac_ext
8954                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8955 $as_echo "$supported" >&6; }
8956                 CFLAGS="$xorg_testset_save_CFLAGS"
8957
8958                 if test "$supported" = "yes" ; then
8959                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
8960                         found="yes"
8961                 fi
8962         fi
8963
8964         if test $found = "no" ; then
8965                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8966                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967                 fi
8968
8969                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8970                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971                 fi
8972
8973                 CFLAGS="$CFLAGS -errwarn"
8974
8975                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
8976 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
8977                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h.  */
8979 int i;
8980 int
8981 main ()
8982 {
8983
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 if ac_fn_c_try_link "$LINENO"; then :
8989   supported=yes
8990 else
8991   supported=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext \
8994     conftest$ac_exeext conftest.$ac_ext
8995                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8996 $as_echo "$supported" >&6; }
8997                 CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999                 if test "$supported" = "yes" ; then
9000                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9001                         found="yes"
9002                 fi
9003         fi
9004
9005
9006
9007 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9008 # activate it with -Werror, so we add it here explicitly.
9009
9010
9011
9012
9013
9014 xorg_testset_save_CFLAGS="$CFLAGS"
9015
9016 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9017         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9020         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022 int i;
9023 _ACEOF
9024 if ac_fn_c_try_compile "$LINENO"; then :
9025   xorg_testset_unknown_warning_option=yes
9026 else
9027   xorg_testset_unknown_warning_option=no
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
9031 $as_echo "$xorg_testset_unknown_warning_option" >&6; }
9032         CFLAGS="$xorg_testset_save_CFLAGS"
9033 fi
9034
9035 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9036         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9037                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038         fi
9039         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9040         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9042         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h.  */
9044 int i;
9045 _ACEOF
9046 if ac_fn_c_try_compile "$LINENO"; then :
9047   xorg_testset_unused_command_line_argument=yes
9048 else
9049   xorg_testset_unused_command_line_argument=no
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
9053 $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
9054         CFLAGS="$xorg_testset_save_CFLAGS"
9055 fi
9056
9057 found="no"
9058
9059         if test $found = "no" ; then
9060                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9061                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062                 fi
9063
9064                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9065                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066                 fi
9067
9068                 CFLAGS="$CFLAGS -Werror=attributes"
9069
9070                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9071 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9072                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h.  */
9074 int i;
9075 int
9076 main ()
9077 {
9078
9079   ;
9080   return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084   supported=yes
9085 else
9086   supported=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext \
9089     conftest$ac_exeext conftest.$ac_ext
9090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9091 $as_echo "$supported" >&6; }
9092                 CFLAGS="$xorg_testset_save_CFLAGS"
9093
9094                 if test "$supported" = "yes" ; then
9095                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9096                         found="yes"
9097                 fi
9098         fi
9099
9100
9101
9102 if test "x$STRICT_COMPILE" = "xyes"; then
9103     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9104     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9105 fi
9106
9107
9108
9109
9110
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9114 _ACEOF
9115
9116         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9117         if test "x$PVM" = "x"; then
9118                 PVM="0"
9119         fi
9120
9121 cat >>confdefs.h <<_ACEOF
9122 #define PACKAGE_VERSION_MINOR $PVM
9123 _ACEOF
9124
9125         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9126         if test "x$PVP" = "x"; then
9127                 PVP="0"
9128         fi
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9132 _ACEOF
9133
9134
9135
9136 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9137 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9138 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9139 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9140
9141
9142
9143
9144 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9145 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9146 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9147 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9148 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9149
9150
9151
9152
9153
9154
9155 if test x$APP_MAN_SUFFIX = x    ; then
9156     APP_MAN_SUFFIX=1
9157 fi
9158 if test x$APP_MAN_DIR = x    ; then
9159     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9160 fi
9161
9162 if test x$LIB_MAN_SUFFIX = x    ; then
9163     LIB_MAN_SUFFIX=3
9164 fi
9165 if test x$LIB_MAN_DIR = x    ; then
9166     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9167 fi
9168
9169 if test x$FILE_MAN_SUFFIX = x    ; then
9170     case $host_os in
9171         solaris*)       FILE_MAN_SUFFIX=4  ;;
9172         *)              FILE_MAN_SUFFIX=5  ;;
9173     esac
9174 fi
9175 if test x$FILE_MAN_DIR = x    ; then
9176     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9177 fi
9178
9179 if test x$MISC_MAN_SUFFIX = x    ; then
9180     case $host_os in
9181         solaris*)       MISC_MAN_SUFFIX=5  ;;
9182         *)              MISC_MAN_SUFFIX=7  ;;
9183     esac
9184 fi
9185 if test x$MISC_MAN_DIR = x    ; then
9186     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9187 fi
9188
9189 if test x$DRIVER_MAN_SUFFIX = x    ; then
9190     case $host_os in
9191         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
9192         *)              DRIVER_MAN_SUFFIX=4  ;;
9193     esac
9194 fi
9195 if test x$DRIVER_MAN_DIR = x    ; then
9196     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9197 fi
9198
9199 if test x$ADMIN_MAN_SUFFIX = x    ; then
9200     case $host_os in
9201         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
9202         *)              ADMIN_MAN_SUFFIX=8  ;;
9203     esac
9204 fi
9205 if test x$ADMIN_MAN_DIR = x    ; then
9206     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9207 fi
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223 XORG_MAN_PAGE="X Version 11"
9224
9225 MAN_SUBSTS="\
9226         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9227         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9228         -e 's|__xservername__|Xorg|g' \
9229         -e 's|__xconfigfile__|xorg.conf|g' \
9230         -e 's|__projectroot__|\$(prefix)|g' \
9231         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9232         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9233         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9234         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9235         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9236         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9237         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9238
9239
9240
9241 # Check whether --enable-silent-rules was given.
9242 if test "${enable_silent_rules+set}" = set; then :
9243   enableval=$enable_silent_rules;
9244 fi
9245
9246 case $enable_silent_rules in
9247 yes) AM_DEFAULT_VERBOSITY=0;;
9248 no)  AM_DEFAULT_VERBOSITY=1;;
9249 *)   AM_DEFAULT_VERBOSITY=0;;
9250 esac
9251 am_make=${MAKE-make}
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
9253 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
9254 if ${am_cv_make_support_nested_variables+:} false; then :
9255   $as_echo_n "(cached) " >&6
9256 else
9257   if $as_echo 'TRUE=$(BAR$(V))
9258 BAR0=false
9259 BAR1=true
9260 V=1
9261 am__doit:
9262         @$(TRUE)
9263 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
9264   am_cv_make_support_nested_variables=yes
9265 else
9266   am_cv_make_support_nested_variables=no
9267 fi
9268 fi
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
9270 $as_echo "$am_cv_make_support_nested_variables" >&6; }
9271 if test $am_cv_make_support_nested_variables = yes; then
9272     AM_V='$(V)'
9273   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9274 else
9275   AM_V=$AM_DEFAULT_VERBOSITY
9276   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9277 fi
9278 AM_BACKSLASH='\'
9279
9280
9281
9282 # Initialize libtool
9283 # Check whether --enable-static was given.
9284 if test "${enable_static+set}" = set; then :
9285   enableval=$enable_static; p=${PACKAGE-default}
9286     case $enableval in
9287     yes) enable_static=yes ;;
9288     no) enable_static=no ;;
9289     *)
9290      enable_static=no
9291       # Look at the argument we got.  We use all the common list separators.
9292       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9293       for pkg in $enableval; do
9294         IFS="$lt_save_ifs"
9295         if test "X$pkg" = "X$p"; then
9296           enable_static=yes
9297         fi
9298       done
9299       IFS="$lt_save_ifs"
9300       ;;
9301     esac
9302 else
9303   enable_static=no
9304 fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314 case `pwd` in
9315   *\ * | *\     *)
9316     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9318 esac
9319
9320
9321
9322 macro_version='2.4.2'
9323 macro_revision='1.3337'
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 ltmain="$ac_aux_dir/ltmain.sh"
9338
9339 # Backslashify metacharacters that are still active within
9340 # double-quoted strings.
9341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9342
9343 # Same as above, but do not quote variable references.
9344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9345
9346 # Sed substitution to delay expansion of an escaped shell variable in a
9347 # double_quote_subst'ed string.
9348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9349
9350 # Sed substitution to delay expansion of an escaped single quote.
9351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9352
9353 # Sed substitution to avoid accidental globbing in evaled expressions
9354 no_glob_subst='s/\*/\\\*/g'
9355
9356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9361 $as_echo_n "checking how to print strings... " >&6; }
9362 # Test print first, because it will be a builtin if present.
9363 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9364    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9365   ECHO='print -r --'
9366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9367   ECHO='printf %s\n'
9368 else
9369   # Use this function as a fallback that always works.
9370   func_fallback_echo ()
9371   {
9372     eval 'cat <<_LTECHO_EOF
9373 $1
9374 _LTECHO_EOF'
9375   }
9376   ECHO='func_fallback_echo'
9377 fi
9378
9379 # func_echo_all arg...
9380 # Invoke $ECHO with all args, space-separated.
9381 func_echo_all ()
9382 {
9383     $ECHO ""
9384 }
9385
9386 case "$ECHO" in
9387   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9388 $as_echo "printf" >&6; } ;;
9389   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9390 $as_echo "print -r" >&6; } ;;
9391   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9392 $as_echo "cat" >&6; } ;;
9393 esac
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9410 if ${ac_cv_path_SED+:} false; then :
9411   $as_echo_n "(cached) " >&6
9412 else
9413             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9414      for ac_i in 1 2 3 4 5 6 7; do
9415        ac_script="$ac_script$as_nl$ac_script"
9416      done
9417      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9418      { ac_script=; unset ac_script;}
9419      if test -z "$SED"; then
9420   ac_path_SED_found=false
9421   # Loop through the user's path and test for each of PROGNAME-LIST
9422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 for as_dir in $PATH
9424 do
9425   IFS=$as_save_IFS
9426   test -z "$as_dir" && as_dir=.
9427     for ac_prog in sed gsed; do
9428     for ac_exec_ext in '' $ac_executable_extensions; do
9429       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9430       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9431 # Check for GNU ac_path_SED and select it if it is found.
9432   # Check for GNU $ac_path_SED
9433 case `"$ac_path_SED" --version 2>&1` in
9434 *GNU*)
9435   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9436 *)
9437   ac_count=0
9438   $as_echo_n 0123456789 >"conftest.in"
9439   while :
9440   do
9441     cat "conftest.in" "conftest.in" >"conftest.tmp"
9442     mv "conftest.tmp" "conftest.in"
9443     cp "conftest.in" "conftest.nl"
9444     $as_echo '' >> "conftest.nl"
9445     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9447     as_fn_arith $ac_count + 1 && ac_count=$as_val
9448     if test $ac_count -gt ${ac_path_SED_max-0}; then
9449       # Best one so far, save it but keep looking for a better one
9450       ac_cv_path_SED="$ac_path_SED"
9451       ac_path_SED_max=$ac_count
9452     fi
9453     # 10*(2^10) chars as input seems more than enough
9454     test $ac_count -gt 10 && break
9455   done
9456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9457 esac
9458
9459       $ac_path_SED_found && break 3
9460     done
9461   done
9462   done
9463 IFS=$as_save_IFS
9464   if test -z "$ac_cv_path_SED"; then
9465     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9466   fi
9467 else
9468   ac_cv_path_SED=$SED
9469 fi
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9473 $as_echo "$ac_cv_path_SED" >&6; }
9474  SED="$ac_cv_path_SED"
9475   rm -f conftest.sed
9476
9477 test -z "$SED" && SED=sed
9478 Xsed="$SED -e 1s/^X//"
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9491 $as_echo_n "checking for fgrep... " >&6; }
9492 if ${ac_cv_path_FGREP+:} false; then :
9493   $as_echo_n "(cached) " >&6
9494 else
9495   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9496    then ac_cv_path_FGREP="$GREP -F"
9497    else
9498      if test -z "$FGREP"; then
9499   ac_path_FGREP_found=false
9500   # Loop through the user's path and test for each of PROGNAME-LIST
9501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9503 do
9504   IFS=$as_save_IFS
9505   test -z "$as_dir" && as_dir=.
9506     for ac_prog in fgrep; do
9507     for ac_exec_ext in '' $ac_executable_extensions; do
9508       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9509       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9510 # Check for GNU ac_path_FGREP and select it if it is found.
9511   # Check for GNU $ac_path_FGREP
9512 case `"$ac_path_FGREP" --version 2>&1` in
9513 *GNU*)
9514   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9515 *)
9516   ac_count=0
9517   $as_echo_n 0123456789 >"conftest.in"
9518   while :
9519   do
9520     cat "conftest.in" "conftest.in" >"conftest.tmp"
9521     mv "conftest.tmp" "conftest.in"
9522     cp "conftest.in" "conftest.nl"
9523     $as_echo 'FGREP' >> "conftest.nl"
9524     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9526     as_fn_arith $ac_count + 1 && ac_count=$as_val
9527     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9528       # Best one so far, save it but keep looking for a better one
9529       ac_cv_path_FGREP="$ac_path_FGREP"
9530       ac_path_FGREP_max=$ac_count
9531     fi
9532     # 10*(2^10) chars as input seems more than enough
9533     test $ac_count -gt 10 && break
9534   done
9535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9536 esac
9537
9538       $ac_path_FGREP_found && break 3
9539     done
9540   done
9541   done
9542 IFS=$as_save_IFS
9543   if test -z "$ac_cv_path_FGREP"; then
9544     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9545   fi
9546 else
9547   ac_cv_path_FGREP=$FGREP
9548 fi
9549
9550    fi
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9553 $as_echo "$ac_cv_path_FGREP" >&6; }
9554  FGREP="$ac_cv_path_FGREP"
9555
9556
9557 test -z "$GREP" && GREP=grep
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 # Check whether --with-gnu-ld was given.
9578 if test "${with_gnu_ld+set}" = set; then :
9579   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9580 else
9581   with_gnu_ld=no
9582 fi
9583
9584 ac_prog=ld
9585 if test "$GCC" = yes; then
9586   # Check if gcc -print-prog-name=ld gives a path.
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9588 $as_echo_n "checking for ld used by $CC... " >&6; }
9589   case $host in
9590   *-*-mingw*)
9591     # gcc leaves a trailing carriage return which upsets mingw
9592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9593   *)
9594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9595   esac
9596   case $ac_prog in
9597     # Accept absolute paths.
9598     [\\/]* | ?:[\\/]*)
9599       re_direlt='/[^/][^/]*/\.\./'
9600       # Canonicalize the pathname of ld
9601       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9602       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9603         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9604       done
9605       test -z "$LD" && LD="$ac_prog"
9606       ;;
9607   "")
9608     # If it fails, then pretend we aren't using GCC.
9609     ac_prog=ld
9610     ;;
9611   *)
9612     # If it is relative, then search for the first ld in PATH.
9613     with_gnu_ld=unknown
9614     ;;
9615   esac
9616 elif test "$with_gnu_ld" = yes; then
9617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9618 $as_echo_n "checking for GNU ld... " >&6; }
9619 else
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9621 $as_echo_n "checking for non-GNU ld... " >&6; }
9622 fi
9623 if ${lt_cv_path_LD+:} false; then :
9624   $as_echo_n "(cached) " >&6
9625 else
9626   if test -z "$LD"; then
9627   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9628   for ac_dir in $PATH; do
9629     IFS="$lt_save_ifs"
9630     test -z "$ac_dir" && ac_dir=.
9631     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9632       lt_cv_path_LD="$ac_dir/$ac_prog"
9633       # Check to see if the program is GNU ld.  I'd rather use --version,
9634       # but apparently some variants of GNU ld only accept -v.
9635       # Break only if it was the GNU/non-GNU ld that we prefer.
9636       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9637       *GNU* | *'with BFD'*)
9638         test "$with_gnu_ld" != no && break
9639         ;;
9640       *)
9641         test "$with_gnu_ld" != yes && break
9642         ;;
9643       esac
9644     fi
9645   done
9646   IFS="$lt_save_ifs"
9647 else
9648   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9649 fi
9650 fi
9651
9652 LD="$lt_cv_path_LD"
9653 if test -n "$LD"; then
9654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9655 $as_echo "$LD" >&6; }
9656 else
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9659 fi
9660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9663 if ${lt_cv_prog_gnu_ld+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9667 case `$LD -v 2>&1 </dev/null` in
9668 *GNU* | *'with BFD'*)
9669   lt_cv_prog_gnu_ld=yes
9670   ;;
9671 *)
9672   lt_cv_prog_gnu_ld=no
9673   ;;
9674 esac
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9677 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9678 with_gnu_ld=$lt_cv_prog_gnu_ld
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9689 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9690 if ${lt_cv_path_NM+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   if test -n "$NM"; then
9694   # Let the user override the test.
9695   lt_cv_path_NM="$NM"
9696 else
9697   lt_nm_to_check="${ac_tool_prefix}nm"
9698   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9699     lt_nm_to_check="$lt_nm_to_check nm"
9700   fi
9701   for lt_tmp_nm in $lt_nm_to_check; do
9702     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9703     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9704       IFS="$lt_save_ifs"
9705       test -z "$ac_dir" && ac_dir=.
9706       tmp_nm="$ac_dir/$lt_tmp_nm"
9707       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9708         # Check to see if the nm accepts a BSD-compat flag.
9709         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9710         #   nm: unknown option "B" ignored
9711         # Tru64's nm complains that /dev/null is an invalid object file
9712         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9713         */dev/null* | *'Invalid file or object type'*)
9714           lt_cv_path_NM="$tmp_nm -B"
9715           break
9716           ;;
9717         *)
9718           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9719           */dev/null*)
9720             lt_cv_path_NM="$tmp_nm -p"
9721             break
9722             ;;
9723           *)
9724             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9725             continue # so that we can try to find one that supports BSD flags
9726             ;;
9727           esac
9728           ;;
9729         esac
9730       fi
9731     done
9732     IFS="$lt_save_ifs"
9733   done
9734   : ${lt_cv_path_NM=no}
9735 fi
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9738 $as_echo "$lt_cv_path_NM" >&6; }
9739 if test "$lt_cv_path_NM" != "no"; then
9740   NM="$lt_cv_path_NM"
9741 else
9742   # Didn't find any BSD compatible name lister, look for dumpbin.
9743   if test -n "$DUMPBIN"; then :
9744     # Let the user override the test.
9745   else
9746     if test -n "$ac_tool_prefix"; then
9747   for ac_prog in dumpbin "link -dump"
9748   do
9749     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if ${ac_cv_prog_DUMPBIN+:} false; then :
9754   $as_echo_n "(cached) " >&6
9755 else
9756   if test -n "$DUMPBIN"; then
9757   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9761 do
9762   IFS=$as_save_IFS
9763   test -z "$as_dir" && as_dir=.
9764     for ac_exec_ext in '' $ac_executable_extensions; do
9765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768     break 2
9769   fi
9770 done
9771   done
9772 IFS=$as_save_IFS
9773
9774 fi
9775 fi
9776 DUMPBIN=$ac_cv_prog_DUMPBIN
9777 if test -n "$DUMPBIN"; then
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9779 $as_echo "$DUMPBIN" >&6; }
9780 else
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784
9785
9786     test -n "$DUMPBIN" && break
9787   done
9788 fi
9789 if test -z "$DUMPBIN"; then
9790   ac_ct_DUMPBIN=$DUMPBIN
9791   for ac_prog in dumpbin "link -dump"
9792 do
9793   # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   if test -n "$ac_ct_DUMPBIN"; then
9801   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808     for ac_exec_ext in '' $ac_executable_extensions; do
9809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815   done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9821 if test -n "$ac_ct_DUMPBIN"; then
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9823 $as_echo "$ac_ct_DUMPBIN" >&6; }
9824 else
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829
9830   test -n "$ac_ct_DUMPBIN" && break
9831 done
9832
9833   if test "x$ac_ct_DUMPBIN" = x; then
9834     DUMPBIN=":"
9835   else
9836     case $cross_compiling:$ac_tool_warned in
9837 yes:)
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9840 ac_tool_warned=yes ;;
9841 esac
9842     DUMPBIN=$ac_ct_DUMPBIN
9843   fi
9844 fi
9845
9846     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9847     *COFF*)
9848       DUMPBIN="$DUMPBIN -symbols"
9849       ;;
9850     *)
9851       DUMPBIN=:
9852       ;;
9853     esac
9854   fi
9855
9856   if test "$DUMPBIN" != ":"; then
9857     NM="$DUMPBIN"
9858   fi
9859 fi
9860 test -z "$NM" && NM=nm
9861
9862
9863
9864
9865
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9868 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9869 if ${lt_cv_nm_interface+:} false; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   lt_cv_nm_interface="BSD nm"
9873   echo "int some_variable = 0;" > conftest.$ac_ext
9874   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9875   (eval "$ac_compile" 2>conftest.err)
9876   cat conftest.err >&5
9877   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9878   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9879   cat conftest.err >&5
9880   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9881   cat conftest.out >&5
9882   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9883     lt_cv_nm_interface="MS dumpbin"
9884   fi
9885   rm -f conftest*
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9888 $as_echo "$lt_cv_nm_interface" >&6; }
9889
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9891 $as_echo_n "checking whether ln -s works... " >&6; }
9892 LN_S=$as_ln_s
9893 if test "$LN_S" = "ln -s"; then
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9895 $as_echo "yes" >&6; }
9896 else
9897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9898 $as_echo "no, using $LN_S" >&6; }
9899 fi
9900
9901 # find the maximum length of command line arguments
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9903 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9904 if ${lt_cv_sys_max_cmd_len+:} false; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907     i=0
9908   teststring="ABCD"
9909
9910   case $build_os in
9911   msdosdjgpp*)
9912     # On DJGPP, this test can blow up pretty badly due to problems in libc
9913     # (any single argument exceeding 2000 bytes causes a buffer overrun
9914     # during glob expansion).  Even if it were fixed, the result of this
9915     # check would be larger than it should be.
9916     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9917     ;;
9918
9919   gnu*)
9920     # Under GNU Hurd, this test is not required because there is
9921     # no limit to the length of command line arguments.
9922     # Libtool will interpret -1 as no limit whatsoever
9923     lt_cv_sys_max_cmd_len=-1;
9924     ;;
9925
9926   cygwin* | mingw* | cegcc*)
9927     # On Win9x/ME, this test blows up -- it succeeds, but takes
9928     # about 5 minutes as the teststring grows exponentially.
9929     # Worse, since 9x/ME are not pre-emptively multitasking,
9930     # you end up with a "frozen" computer, even though with patience
9931     # the test eventually succeeds (with a max line length of 256k).
9932     # Instead, let's just punt: use the minimum linelength reported by
9933     # all of the supported platforms: 8192 (on NT/2K/XP).
9934     lt_cv_sys_max_cmd_len=8192;
9935     ;;
9936
9937   mint*)
9938     # On MiNT this can take a long time and run out of memory.
9939     lt_cv_sys_max_cmd_len=8192;
9940     ;;
9941
9942   amigaos*)
9943     # On AmigaOS with pdksh, this test takes hours, literally.
9944     # So we just punt and use a minimum line length of 8192.
9945     lt_cv_sys_max_cmd_len=8192;
9946     ;;
9947
9948   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9949     # This has been around since 386BSD, at least.  Likely further.
9950     if test -x /sbin/sysctl; then
9951       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9952     elif test -x /usr/sbin/sysctl; then
9953       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9954     else
9955       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9956     fi
9957     # And add a safety zone
9958     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9959     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9960     ;;
9961
9962   interix*)
9963     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9964     lt_cv_sys_max_cmd_len=196608
9965     ;;
9966
9967   os2*)
9968     # The test takes a long time on OS/2.
9969     lt_cv_sys_max_cmd_len=8192
9970     ;;
9971
9972   osf*)
9973     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9974     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9975     # nice to cause kernel panics so lets avoid the loop below.
9976     # First set a reasonable default.
9977     lt_cv_sys_max_cmd_len=16384
9978     #
9979     if test -x /sbin/sysconfig; then
9980       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9981         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9982       esac
9983     fi
9984     ;;
9985   sco3.2v5*)
9986     lt_cv_sys_max_cmd_len=102400
9987     ;;
9988   sysv5* | sco5v6* | sysv4.2uw2*)
9989     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9990     if test -n "$kargmax"; then
9991       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9992     else
9993       lt_cv_sys_max_cmd_len=32768
9994     fi
9995     ;;
9996   *)
9997     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9998     if test -n "$lt_cv_sys_max_cmd_len"; then
9999       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10000       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10001     else
10002       # Make teststring a little bigger before we do anything with it.
10003       # a 1K string should be a reasonable start.
10004       for i in 1 2 3 4 5 6 7 8 ; do
10005         teststring=$teststring$teststring
10006       done
10007       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10008       # If test is not a shell built-in, we'll probably end up computing a
10009       # maximum length that is only half of the actual maximum length, but
10010       # we can't tell.
10011       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10012                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10013               test $i != 17 # 1/2 MB should be enough
10014       do
10015         i=`expr $i + 1`
10016         teststring=$teststring$teststring
10017       done
10018       # Only check the string length outside the loop.
10019       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10020       teststring=
10021       # Add a significant safety factor because C++ compilers can tack on
10022       # massive amounts of additional arguments before passing them to the
10023       # linker.  It appears as though 1/2 is a usable value.
10024       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10025     fi
10026     ;;
10027   esac
10028
10029 fi
10030
10031 if test -n $lt_cv_sys_max_cmd_len ; then
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10033 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10034 else
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10036 $as_echo "none" >&6; }
10037 fi
10038 max_cmd_len=$lt_cv_sys_max_cmd_len
10039
10040
10041
10042
10043
10044
10045 : ${CP="cp -f"}
10046 : ${MV="mv -f"}
10047 : ${RM="rm -f"}
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10050 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10051 # Try some XSI features
10052 xsi_shell=no
10053 ( _lt_dummy="a/b/c"
10054   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10055       = c,a/b,b/c, \
10056     && eval 'test $(( 1 + 1 )) -eq 2 \
10057     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10058   && xsi_shell=yes
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10060 $as_echo "$xsi_shell" >&6; }
10061
10062
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10064 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10065 lt_shell_append=no
10066 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10067     >/dev/null 2>&1 \
10068   && lt_shell_append=yes
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10070 $as_echo "$lt_shell_append" >&6; }
10071
10072
10073 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10074   lt_unset=unset
10075 else
10076   lt_unset=false
10077 fi
10078
10079
10080
10081
10082
10083 # test EBCDIC or ASCII
10084 case `echo X|tr X '\101'` in
10085  A) # ASCII based system
10086     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10087   lt_SP2NL='tr \040 \012'
10088   lt_NL2SP='tr \015\012 \040\040'
10089   ;;
10090  *) # EBCDIC based system
10091   lt_SP2NL='tr \100 \n'
10092   lt_NL2SP='tr \r\n \100\100'
10093   ;;
10094 esac
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10105 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10106 if ${lt_cv_to_host_file_cmd+:} false; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   case $host in
10110   *-*-mingw* )
10111     case $build in
10112       *-*-mingw* ) # actually msys
10113         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10114         ;;
10115       *-*-cygwin* )
10116         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10117         ;;
10118       * ) # otherwise, assume *nix
10119         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10120         ;;
10121     esac
10122     ;;
10123   *-*-cygwin* )
10124     case $build in
10125       *-*-mingw* ) # actually msys
10126         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10127         ;;
10128       *-*-cygwin* )
10129         lt_cv_to_host_file_cmd=func_convert_file_noop
10130         ;;
10131       * ) # otherwise, assume *nix
10132         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10133         ;;
10134     esac
10135     ;;
10136   * ) # unhandled hosts (and "normal" native builds)
10137     lt_cv_to_host_file_cmd=func_convert_file_noop
10138     ;;
10139 esac
10140
10141 fi
10142
10143 to_host_file_cmd=$lt_cv_to_host_file_cmd
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10145 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10146
10147
10148
10149
10150
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10152 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10153 if ${lt_cv_to_tool_file_cmd+:} false; then :
10154   $as_echo_n "(cached) " >&6
10155 else
10156   #assume ordinary cross tools, or native build.
10157 lt_cv_to_tool_file_cmd=func_convert_file_noop
10158 case $host in
10159   *-*-mingw* )
10160     case $build in
10161       *-*-mingw* ) # actually msys
10162         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10163         ;;
10164     esac
10165     ;;
10166 esac
10167
10168 fi
10169
10170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10172 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10173
10174
10175
10176
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10180 if ${lt_cv_ld_reload_flag+:} false; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183   lt_cv_ld_reload_flag='-r'
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10187 reload_flag=$lt_cv_ld_reload_flag
10188 case $reload_flag in
10189 "" | " "*) ;;
10190 *) reload_flag=" $reload_flag" ;;
10191 esac
10192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10193 case $host_os in
10194   cygwin* | mingw* | pw32* | cegcc*)
10195     if test "$GCC" != yes; then
10196       reload_cmds=false
10197     fi
10198     ;;
10199   darwin*)
10200     if test "$GCC" = yes; then
10201       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10202     else
10203       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10204     fi
10205     ;;
10206 esac
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 if test -n "$ac_tool_prefix"; then
10217   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_OBJDUMP+:} false; then :
10222   $as_echo_n "(cached) " >&6
10223 else
10224   if test -n "$OBJDUMP"; then
10225   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10229 do
10230   IFS=$as_save_IFS
10231   test -z "$as_dir" && as_dir=.
10232     for ac_exec_ext in '' $ac_executable_extensions; do
10233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236     break 2
10237   fi
10238 done
10239   done
10240 IFS=$as_save_IFS
10241
10242 fi
10243 fi
10244 OBJDUMP=$ac_cv_prog_OBJDUMP
10245 if test -n "$OBJDUMP"; then
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10247 $as_echo "$OBJDUMP" >&6; }
10248 else
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252
10253
10254 fi
10255 if test -z "$ac_cv_prog_OBJDUMP"; then
10256   ac_ct_OBJDUMP=$OBJDUMP
10257   # Extract the first word of "objdump", so it can be a program name with args.
10258 set dummy objdump; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   if test -n "$ac_ct_OBJDUMP"; then
10265   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270   IFS=$as_save_IFS
10271   test -z "$as_dir" && as_dir=.
10272     for ac_exec_ext in '' $ac_executable_extensions; do
10273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276     break 2
10277   fi
10278 done
10279   done
10280 IFS=$as_save_IFS
10281
10282 fi
10283 fi
10284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10285 if test -n "$ac_ct_OBJDUMP"; then
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10287 $as_echo "$ac_ct_OBJDUMP" >&6; }
10288 else
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293   if test "x$ac_ct_OBJDUMP" = x; then
10294     OBJDUMP="false"
10295   else
10296     case $cross_compiling:$ac_tool_warned in
10297 yes:)
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10300 ac_tool_warned=yes ;;
10301 esac
10302     OBJDUMP=$ac_ct_OBJDUMP
10303   fi
10304 else
10305   OBJDUMP="$ac_cv_prog_OBJDUMP"
10306 fi
10307
10308 test -z "$OBJDUMP" && OBJDUMP=objdump
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10319 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10320 if ${lt_cv_deplibs_check_method+:} false; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   lt_cv_file_magic_cmd='$MAGIC_CMD'
10324 lt_cv_file_magic_test_file=
10325 lt_cv_deplibs_check_method='unknown'
10326 # Need to set the preceding variable on all platforms that support
10327 # interlibrary dependencies.
10328 # 'none' -- dependencies not supported.
10329 # `unknown' -- same as none, but documents that we really don't know.
10330 # 'pass_all' -- all dependencies passed with no checks.
10331 # 'test_compile' -- check by making test program.
10332 # 'file_magic [[regex]]' -- check by looking for files in library path
10333 # which responds to the $file_magic_cmd with a given extended regex.
10334 # If you have `file' or equivalent on your system and you're not sure
10335 # whether `pass_all' will *always* work, you probably want this one.
10336
10337 case $host_os in
10338 aix[4-9]*)
10339   lt_cv_deplibs_check_method=pass_all
10340   ;;
10341
10342 beos*)
10343   lt_cv_deplibs_check_method=pass_all
10344   ;;
10345
10346 bsdi[45]*)
10347   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10348   lt_cv_file_magic_cmd='/usr/bin/file -L'
10349   lt_cv_file_magic_test_file=/shlib/libc.so
10350   ;;
10351
10352 cygwin*)
10353   # func_win32_libid is a shell function defined in ltmain.sh
10354   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10355   lt_cv_file_magic_cmd='func_win32_libid'
10356   ;;
10357
10358 mingw* | pw32*)
10359   # Base MSYS/MinGW do not provide the 'file' command needed by
10360   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10361   # unless we find 'file', for example because we are cross-compiling.
10362   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10363   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10364     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10365     lt_cv_file_magic_cmd='func_win32_libid'
10366   else
10367     # Keep this pattern in sync with the one in func_win32_libid.
10368     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10369     lt_cv_file_magic_cmd='$OBJDUMP -f'
10370   fi
10371   ;;
10372
10373 cegcc*)
10374   # use the weaker test based on 'objdump'. See mingw*.
10375   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10376   lt_cv_file_magic_cmd='$OBJDUMP -f'
10377   ;;
10378
10379 darwin* | rhapsody*)
10380   lt_cv_deplibs_check_method=pass_all
10381   ;;
10382
10383 freebsd* | dragonfly*)
10384   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10385     case $host_cpu in
10386     i*86 )
10387       # Not sure whether the presence of OpenBSD here was a mistake.
10388       # Let's accept both of them until this is cleared up.
10389       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10390       lt_cv_file_magic_cmd=/usr/bin/file
10391       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10392       ;;
10393     esac
10394   else
10395     lt_cv_deplibs_check_method=pass_all
10396   fi
10397   ;;
10398
10399 gnu*)
10400   lt_cv_deplibs_check_method=pass_all
10401   ;;
10402
10403 haiku*)
10404   lt_cv_deplibs_check_method=pass_all
10405   ;;
10406
10407 hpux10.20* | hpux11*)
10408   lt_cv_file_magic_cmd=/usr/bin/file
10409   case $host_cpu in
10410   ia64*)
10411     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10412     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10413     ;;
10414   hppa*64*)
10415     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]'
10416     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10417     ;;
10418   *)
10419     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10420     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10421     ;;
10422   esac
10423   ;;
10424
10425 interix[3-9]*)
10426   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10427   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10428   ;;
10429
10430 irix5* | irix6* | nonstopux*)
10431   case $LD in
10432   *-32|*"-32 ") libmagic=32-bit;;
10433   *-n32|*"-n32 ") libmagic=N32;;
10434   *-64|*"-64 ") libmagic=64-bit;;
10435   *) libmagic=never-match;;
10436   esac
10437   lt_cv_deplibs_check_method=pass_all
10438   ;;
10439
10440 # This must be glibc/ELF.
10441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10442   lt_cv_deplibs_check_method=pass_all
10443   ;;
10444
10445 netbsd*)
10446   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10448   else
10449     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10450   fi
10451   ;;
10452
10453 newos6*)
10454   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10455   lt_cv_file_magic_cmd=/usr/bin/file
10456   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10457   ;;
10458
10459 *nto* | *qnx*)
10460   lt_cv_deplibs_check_method=pass_all
10461   ;;
10462
10463 openbsd*)
10464   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10465     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10466   else
10467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10468   fi
10469   ;;
10470
10471 osf3* | osf4* | osf5*)
10472   lt_cv_deplibs_check_method=pass_all
10473   ;;
10474
10475 rdos*)
10476   lt_cv_deplibs_check_method=pass_all
10477   ;;
10478
10479 solaris*)
10480   lt_cv_deplibs_check_method=pass_all
10481   ;;
10482
10483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10484   lt_cv_deplibs_check_method=pass_all
10485   ;;
10486
10487 sysv4 | sysv4.3*)
10488   case $host_vendor in
10489   motorola)
10490     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]'
10491     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10492     ;;
10493   ncr)
10494     lt_cv_deplibs_check_method=pass_all
10495     ;;
10496   sequent)
10497     lt_cv_file_magic_cmd='/bin/file'
10498     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10499     ;;
10500   sni)
10501     lt_cv_file_magic_cmd='/bin/file'
10502     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10503     lt_cv_file_magic_test_file=/lib/libc.so
10504     ;;
10505   siemens)
10506     lt_cv_deplibs_check_method=pass_all
10507     ;;
10508   pc)
10509     lt_cv_deplibs_check_method=pass_all
10510     ;;
10511   esac
10512   ;;
10513
10514 tpf*)
10515   lt_cv_deplibs_check_method=pass_all
10516   ;;
10517 esac
10518
10519 fi
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10521 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10522
10523 file_magic_glob=
10524 want_nocaseglob=no
10525 if test "$build" = "$host"; then
10526   case $host_os in
10527   mingw* | pw32*)
10528     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10529       want_nocaseglob=yes
10530     else
10531       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10532     fi
10533     ;;
10534   esac
10535 fi
10536
10537 file_magic_cmd=$lt_cv_file_magic_cmd
10538 deplibs_check_method=$lt_cv_deplibs_check_method
10539 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 if test -n "$ac_tool_prefix"; then
10563   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if ${ac_cv_prog_DLLTOOL+:} false; then :
10568   $as_echo_n "(cached) " >&6
10569 else
10570   if test -n "$DLLTOOL"; then
10571   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10572 else
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10575 do
10576   IFS=$as_save_IFS
10577   test -z "$as_dir" && as_dir=.
10578     for ac_exec_ext in '' $ac_executable_extensions; do
10579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582     break 2
10583   fi
10584 done
10585   done
10586 IFS=$as_save_IFS
10587
10588 fi
10589 fi
10590 DLLTOOL=$ac_cv_prog_DLLTOOL
10591 if test -n "$DLLTOOL"; then
10592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10593 $as_echo "$DLLTOOL" >&6; }
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10597 fi
10598
10599
10600 fi
10601 if test -z "$ac_cv_prog_DLLTOOL"; then
10602   ac_ct_DLLTOOL=$DLLTOOL
10603   # Extract the first word of "dlltool", so it can be a program name with args.
10604 set dummy dlltool; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   if test -n "$ac_ct_DLLTOOL"; then
10611   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10612 else
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10615 do
10616   IFS=$as_save_IFS
10617   test -z "$as_dir" && as_dir=.
10618     for ac_exec_ext in '' $ac_executable_extensions; do
10619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622     break 2
10623   fi
10624 done
10625   done
10626 IFS=$as_save_IFS
10627
10628 fi
10629 fi
10630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10631 if test -n "$ac_ct_DLLTOOL"; then
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10633 $as_echo "$ac_ct_DLLTOOL" >&6; }
10634 else
10635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10637 fi
10638
10639   if test "x$ac_ct_DLLTOOL" = x; then
10640     DLLTOOL="false"
10641   else
10642     case $cross_compiling:$ac_tool_warned in
10643 yes:)
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10646 ac_tool_warned=yes ;;
10647 esac
10648     DLLTOOL=$ac_ct_DLLTOOL
10649   fi
10650 else
10651   DLLTOOL="$ac_cv_prog_DLLTOOL"
10652 fi
10653
10654 test -z "$DLLTOOL" && DLLTOOL=dlltool
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10666 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10667 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   lt_cv_sharedlib_from_linklib_cmd='unknown'
10671
10672 case $host_os in
10673 cygwin* | mingw* | pw32* | cegcc*)
10674   # two different shell functions defined in ltmain.sh
10675   # decide which to use based on capabilities of $DLLTOOL
10676   case `$DLLTOOL --help 2>&1` in
10677   *--identify-strict*)
10678     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10679     ;;
10680   *)
10681     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10682     ;;
10683   esac
10684   ;;
10685 *)
10686   # fallback: assume linklib IS sharedlib
10687   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10688   ;;
10689 esac
10690
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10693 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10694 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10695 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10696
10697
10698
10699
10700
10701
10702
10703 if test -n "$ac_tool_prefix"; then
10704   for ac_prog in ar
10705   do
10706     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_prog_AR+:} false; then :
10711   $as_echo_n "(cached) " >&6
10712 else
10713   if test -n "$AR"; then
10714   ac_cv_prog_AR="$AR" # Let the user override the test.
10715 else
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10718 do
10719   IFS=$as_save_IFS
10720   test -z "$as_dir" && as_dir=.
10721     for ac_exec_ext in '' $ac_executable_extensions; do
10722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10725     break 2
10726   fi
10727 done
10728   done
10729 IFS=$as_save_IFS
10730
10731 fi
10732 fi
10733 AR=$ac_cv_prog_AR
10734 if test -n "$AR"; then
10735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10736 $as_echo "$AR" >&6; }
10737 else
10738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10740 fi
10741
10742
10743     test -n "$AR" && break
10744   done
10745 fi
10746 if test -z "$AR"; then
10747   ac_ct_AR=$AR
10748   for ac_prog in ar
10749 do
10750   # Extract the first word of "$ac_prog", so it can be a program name with args.
10751 set dummy $ac_prog; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   if test -n "$ac_ct_AR"; then
10758   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765     for ac_exec_ext in '' $ac_executable_extensions; do
10766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767     ac_cv_prog_ac_ct_AR="$ac_prog"
10768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772   done
10773 IFS=$as_save_IFS
10774
10775 fi
10776 fi
10777 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10778 if test -n "$ac_ct_AR"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10780 $as_echo "$ac_ct_AR" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787   test -n "$ac_ct_AR" && break
10788 done
10789
10790   if test "x$ac_ct_AR" = x; then
10791     AR="false"
10792   else
10793     case $cross_compiling:$ac_tool_warned in
10794 yes:)
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10797 ac_tool_warned=yes ;;
10798 esac
10799     AR=$ac_ct_AR
10800   fi
10801 fi
10802
10803 : ${AR=ar}
10804 : ${AR_FLAGS=cru}
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10817 $as_echo_n "checking for archiver @FILE support... " >&6; }
10818 if ${lt_cv_ar_at_file+:} false; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   lt_cv_ar_at_file=no
10822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h.  */
10824
10825 int
10826 main ()
10827 {
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834   echo conftest.$ac_objext > conftest.lst
10835       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10836       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10837   (eval $lt_ar_try) 2>&5
10838   ac_status=$?
10839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840   test $ac_status = 0; }
10841       if test "$ac_status" -eq 0; then
10842         # Ensure the archiver fails upon bogus file names.
10843         rm -f conftest.$ac_objext libconftest.a
10844         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10845   (eval $lt_ar_try) 2>&5
10846   ac_status=$?
10847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10848   test $ac_status = 0; }
10849         if test "$ac_status" -ne 0; then
10850           lt_cv_ar_at_file=@
10851         fi
10852       fi
10853       rm -f conftest.* libconftest.a
10854
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10860 $as_echo "$lt_cv_ar_at_file" >&6; }
10861
10862 if test "x$lt_cv_ar_at_file" = xno; then
10863   archiver_list_spec=
10864 else
10865   archiver_list_spec=$lt_cv_ar_at_file
10866 fi
10867
10868
10869
10870
10871
10872
10873
10874 if test -n "$ac_tool_prefix"; then
10875   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10876 set dummy ${ac_tool_prefix}strip; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_prog_STRIP+:} false; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882   if test -n "$STRIP"; then
10883   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10887 do
10888   IFS=$as_save_IFS
10889   test -z "$as_dir" && as_dir=.
10890     for ac_exec_ext in '' $ac_executable_extensions; do
10891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894     break 2
10895   fi
10896 done
10897   done
10898 IFS=$as_save_IFS
10899
10900 fi
10901 fi
10902 STRIP=$ac_cv_prog_STRIP
10903 if test -n "$STRIP"; then
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10905 $as_echo "$STRIP" >&6; }
10906 else
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 fi
10910
10911
10912 fi
10913 if test -z "$ac_cv_prog_STRIP"; then
10914   ac_ct_STRIP=$STRIP
10915   # Extract the first word of "strip", so it can be a program name with args.
10916 set dummy strip; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   if test -n "$ac_ct_STRIP"; then
10923   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10924 else
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930     for ac_exec_ext in '' $ac_executable_extensions; do
10931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932     ac_cv_prog_ac_ct_STRIP="strip"
10933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937   done
10938 IFS=$as_save_IFS
10939
10940 fi
10941 fi
10942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10943 if test -n "$ac_ct_STRIP"; then
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10945 $as_echo "$ac_ct_STRIP" >&6; }
10946 else
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10949 fi
10950
10951   if test "x$ac_ct_STRIP" = x; then
10952     STRIP=":"
10953   else
10954     case $cross_compiling:$ac_tool_warned in
10955 yes:)
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10958 ac_tool_warned=yes ;;
10959 esac
10960     STRIP=$ac_ct_STRIP
10961   fi
10962 else
10963   STRIP="$ac_cv_prog_STRIP"
10964 fi
10965
10966 test -z "$STRIP" && STRIP=:
10967
10968
10969
10970
10971
10972
10973 if test -n "$ac_tool_prefix"; then
10974   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10975 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_RANLIB+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   if test -n "$RANLIB"; then
10982   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987   IFS=$as_save_IFS
10988   test -z "$as_dir" && as_dir=.
10989     for ac_exec_ext in '' $ac_executable_extensions; do
10990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993     break 2
10994   fi
10995 done
10996   done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 RANLIB=$ac_cv_prog_RANLIB
11002 if test -n "$RANLIB"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11004 $as_echo "$RANLIB" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 fi
11012 if test -z "$ac_cv_prog_RANLIB"; then
11013   ac_ct_RANLIB=$RANLIB
11014   # Extract the first word of "ranlib", so it can be a program name with args.
11015 set dummy ranlib; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   if test -n "$ac_ct_RANLIB"; then
11022   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029     for ac_exec_ext in '' $ac_executable_extensions; do
11030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031     ac_cv_prog_ac_ct_RANLIB="ranlib"
11032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036   done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11042 if test -n "$ac_ct_RANLIB"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11044 $as_echo "$ac_ct_RANLIB" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049
11050   if test "x$ac_ct_RANLIB" = x; then
11051     RANLIB=":"
11052   else
11053     case $cross_compiling:$ac_tool_warned in
11054 yes:)
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11057 ac_tool_warned=yes ;;
11058 esac
11059     RANLIB=$ac_ct_RANLIB
11060   fi
11061 else
11062   RANLIB="$ac_cv_prog_RANLIB"
11063 fi
11064
11065 test -z "$RANLIB" && RANLIB=:
11066
11067
11068
11069
11070
11071
11072 # Determine commands to create old-style static archives.
11073 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11074 old_postinstall_cmds='chmod 644 $oldlib'
11075 old_postuninstall_cmds=
11076
11077 if test -n "$RANLIB"; then
11078   case $host_os in
11079   openbsd*)
11080     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11081     ;;
11082   *)
11083     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11084     ;;
11085   esac
11086   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11087 fi
11088
11089 case $host_os in
11090   darwin*)
11091     lock_old_archive_extraction=yes ;;
11092   *)
11093     lock_old_archive_extraction=no ;;
11094 esac
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134 # If no C compiler was specified, use CC.
11135 LTCC=${LTCC-"$CC"}
11136
11137 # If no C compiler flags were specified, use CFLAGS.
11138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11139
11140 # Allow CC to be a program name with arguments.
11141 compiler=$CC
11142
11143
11144 # Check for command to grab the raw symbol name followed by C symbol from nm.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11146 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11147 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11148   $as_echo_n "(cached) " >&6
11149 else
11150
11151 # These are sane defaults that work on at least a few old systems.
11152 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11153
11154 # Character class describing NM global symbol codes.
11155 symcode='[BCDEGRST]'
11156
11157 # Regexp to match symbols that can be accessed directly from C.
11158 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11159
11160 # Define system-specific variables.
11161 case $host_os in
11162 aix*)
11163   symcode='[BCDT]'
11164   ;;
11165 cygwin* | mingw* | pw32* | cegcc*)
11166   symcode='[ABCDGISTW]'
11167   ;;
11168 hpux*)
11169   if test "$host_cpu" = ia64; then
11170     symcode='[ABCDEGRST]'
11171   fi
11172   ;;
11173 irix* | nonstopux*)
11174   symcode='[BCDEGRST]'
11175   ;;
11176 osf*)
11177   symcode='[BCDEGQRST]'
11178   ;;
11179 solaris*)
11180   symcode='[BDRT]'
11181   ;;
11182 sco3.2v5*)
11183   symcode='[DT]'
11184   ;;
11185 sysv4.2uw2*)
11186   symcode='[DT]'
11187   ;;
11188 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11189   symcode='[ABDT]'
11190   ;;
11191 sysv4)
11192   symcode='[DFNSTU]'
11193   ;;
11194 esac
11195
11196 # If we're using GNU nm, then use its standard symbol codes.
11197 case `$NM -V 2>&1` in
11198 *GNU* | *'with BFD'*)
11199   symcode='[ABCDGIRSTW]' ;;
11200 esac
11201
11202 # Transform an extracted symbol line into a proper C declaration.
11203 # Some systems (esp. on ia64) link data and code symbols differently,
11204 # so use this general approach.
11205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11206
11207 # Transform an extracted symbol line into symbol name and symbol address
11208 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
11210
11211 # Handle CRLF in mingw tool chain
11212 opt_cr=
11213 case $build_os in
11214 mingw*)
11215   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11216   ;;
11217 esac
11218
11219 # Try without a prefix underscore, then with it.
11220 for ac_symprfx in "" "_"; do
11221
11222   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11223   symxfrm="\\1 $ac_symprfx\\2 \\2"
11224
11225   # Write the raw and C identifiers.
11226   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11227     # Fake it for dumpbin and say T for any non-static function
11228     # and D for any global variable.
11229     # Also find C++ and __fastcall symbols from MSVC++,
11230     # which start with @ or ?.
11231     lt_cv_sys_global_symbol_pipe="$AWK '"\
11232 "     {last_section=section; section=\$ 3};"\
11233 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11234 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11235 "     \$ 0!~/External *\|/{next};"\
11236 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11237 "     {if(hide[section]) next};"\
11238 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11239 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11240 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11241 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11242 "     ' prfx=^$ac_symprfx"
11243   else
11244     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11245   fi
11246   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11247
11248   # Check to see that the pipe works correctly.
11249   pipe_works=no
11250
11251   rm -f conftest*
11252   cat > conftest.$ac_ext <<_LT_EOF
11253 #ifdef __cplusplus
11254 extern "C" {
11255 #endif
11256 char nm_test_var;
11257 void nm_test_func(void);
11258 void nm_test_func(void){}
11259 #ifdef __cplusplus
11260 }
11261 #endif
11262 int main(){nm_test_var='a';nm_test_func();return(0);}
11263 _LT_EOF
11264
11265   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11266   (eval $ac_compile) 2>&5
11267   ac_status=$?
11268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11269   test $ac_status = 0; }; then
11270     # Now try to grab the symbols.
11271     nlist=conftest.nm
11272     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11273   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11274   ac_status=$?
11275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276   test $ac_status = 0; } && test -s "$nlist"; then
11277       # Try sorting and uniquifying the output.
11278       if sort "$nlist" | uniq > "$nlist"T; then
11279         mv -f "$nlist"T "$nlist"
11280       else
11281         rm -f "$nlist"T
11282       fi
11283
11284       # Make sure that we snagged all the symbols we need.
11285       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11286         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11287           cat <<_LT_EOF > conftest.$ac_ext
11288 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11289 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11290 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11291    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11292 # define LT_DLSYM_CONST
11293 #elif defined(__osf__)
11294 /* This system does not cope well with relocations in const data.  */
11295 # define LT_DLSYM_CONST
11296 #else
11297 # define LT_DLSYM_CONST const
11298 #endif
11299
11300 #ifdef __cplusplus
11301 extern "C" {
11302 #endif
11303
11304 _LT_EOF
11305           # Now generate the symbol file.
11306           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11307
11308           cat <<_LT_EOF >> conftest.$ac_ext
11309
11310 /* The mapping between symbol names and symbols.  */
11311 LT_DLSYM_CONST struct {
11312   const char *name;
11313   void       *address;
11314 }
11315 lt__PROGRAM__LTX_preloaded_symbols[] =
11316 {
11317   { "@PROGRAM@", (void *) 0 },
11318 _LT_EOF
11319           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11320           cat <<\_LT_EOF >> conftest.$ac_ext
11321   {0, (void *) 0}
11322 };
11323
11324 /* This works around a problem in FreeBSD linker */
11325 #ifdef FREEBSD_WORKAROUND
11326 static const void *lt_preloaded_setup() {
11327   return lt__PROGRAM__LTX_preloaded_symbols;
11328 }
11329 #endif
11330
11331 #ifdef __cplusplus
11332 }
11333 #endif
11334 _LT_EOF
11335           # Now try linking the two files.
11336           mv conftest.$ac_objext conftstm.$ac_objext
11337           lt_globsym_save_LIBS=$LIBS
11338           lt_globsym_save_CFLAGS=$CFLAGS
11339           LIBS="conftstm.$ac_objext"
11340           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11341           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11342   (eval $ac_link) 2>&5
11343   ac_status=$?
11344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11346             pipe_works=yes
11347           fi
11348           LIBS=$lt_globsym_save_LIBS
11349           CFLAGS=$lt_globsym_save_CFLAGS
11350         else
11351           echo "cannot find nm_test_func in $nlist" >&5
11352         fi
11353       else
11354         echo "cannot find nm_test_var in $nlist" >&5
11355       fi
11356     else
11357       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11358     fi
11359   else
11360     echo "$progname: failed program was:" >&5
11361     cat conftest.$ac_ext >&5
11362   fi
11363   rm -rf conftest* conftst*
11364
11365   # Do not use the global_symbol_pipe unless it works.
11366   if test "$pipe_works" = yes; then
11367     break
11368   else
11369     lt_cv_sys_global_symbol_pipe=
11370   fi
11371 done
11372
11373 fi
11374
11375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11376   lt_cv_sys_global_symbol_to_cdecl=
11377 fi
11378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11380 $as_echo "failed" >&6; }
11381 else
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11383 $as_echo "ok" >&6; }
11384 fi
11385
11386 # Response file support.
11387 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11388   nm_file_list_spec='@'
11389 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11390   nm_file_list_spec='@'
11391 fi
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11420 $as_echo_n "checking for sysroot... " >&6; }
11421
11422 # Check whether --with-sysroot was given.
11423 if test "${with_sysroot+set}" = set; then :
11424   withval=$with_sysroot;
11425 else
11426   with_sysroot=no
11427 fi
11428
11429
11430 lt_sysroot=
11431 case ${with_sysroot} in #(
11432  yes)
11433    if test "$GCC" = yes; then
11434      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11435    fi
11436    ;; #(
11437  /*)
11438    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11439    ;; #(
11440  no|'')
11441    ;; #(
11442  *)
11443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11444 $as_echo "${with_sysroot}" >&6; }
11445    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11446    ;;
11447 esac
11448
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11450 $as_echo "${lt_sysroot:-no}" >&6; }
11451
11452
11453
11454
11455
11456 # Check whether --enable-libtool-lock was given.
11457 if test "${enable_libtool_lock+set}" = set; then :
11458   enableval=$enable_libtool_lock;
11459 fi
11460
11461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11462
11463 # Some flags need to be propagated to the compiler or linker for good
11464 # libtool support.
11465 case $host in
11466 ia64-*-hpux*)
11467   # Find out which ABI we are using.
11468   echo 'int i;' > conftest.$ac_ext
11469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11470   (eval $ac_compile) 2>&5
11471   ac_status=$?
11472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473   test $ac_status = 0; }; then
11474     case `/usr/bin/file conftest.$ac_objext` in
11475       *ELF-32*)
11476         HPUX_IA64_MODE="32"
11477         ;;
11478       *ELF-64*)
11479         HPUX_IA64_MODE="64"
11480         ;;
11481     esac
11482   fi
11483   rm -rf conftest*
11484   ;;
11485 *-*-irix6*)
11486   # Find out which ABI we are using.
11487   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11488   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11489   (eval $ac_compile) 2>&5
11490   ac_status=$?
11491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11492   test $ac_status = 0; }; then
11493     if test "$lt_cv_prog_gnu_ld" = yes; then
11494       case `/usr/bin/file conftest.$ac_objext` in
11495         *32-bit*)
11496           LD="${LD-ld} -melf32bsmip"
11497           ;;
11498         *N32*)
11499           LD="${LD-ld} -melf32bmipn32"
11500           ;;
11501         *64-bit*)
11502           LD="${LD-ld} -melf64bmip"
11503         ;;
11504       esac
11505     else
11506       case `/usr/bin/file conftest.$ac_objext` in
11507         *32-bit*)
11508           LD="${LD-ld} -32"
11509           ;;
11510         *N32*)
11511           LD="${LD-ld} -n32"
11512           ;;
11513         *64-bit*)
11514           LD="${LD-ld} -64"
11515           ;;
11516       esac
11517     fi
11518   fi
11519   rm -rf conftest*
11520   ;;
11521
11522 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11523 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11524   # Find out which ABI we are using.
11525   echo 'int i;' > conftest.$ac_ext
11526   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11527   (eval $ac_compile) 2>&5
11528   ac_status=$?
11529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11530   test $ac_status = 0; }; then
11531     case `/usr/bin/file conftest.o` in
11532       *32-bit*)
11533         case $host in
11534           x86_64-*kfreebsd*-gnu)
11535             LD="${LD-ld} -m elf_i386_fbsd"
11536             ;;
11537           x86_64-*linux*)
11538             LD="${LD-ld} -m elf_i386"
11539             ;;
11540           ppc64-*linux*|powerpc64-*linux*)
11541             LD="${LD-ld} -m elf32ppclinux"
11542             ;;
11543           s390x-*linux*)
11544             LD="${LD-ld} -m elf_s390"
11545             ;;
11546           sparc64-*linux*)
11547             LD="${LD-ld} -m elf32_sparc"
11548             ;;
11549         esac
11550         ;;
11551       *64-bit*)
11552         case $host in
11553           x86_64-*kfreebsd*-gnu)
11554             LD="${LD-ld} -m elf_x86_64_fbsd"
11555             ;;
11556           x86_64-*linux*)
11557             LD="${LD-ld} -m elf_x86_64"
11558             ;;
11559           ppc*-*linux*|powerpc*-*linux*)
11560             LD="${LD-ld} -m elf64ppc"
11561             ;;
11562           s390*-*linux*|s390*-*tpf*)
11563             LD="${LD-ld} -m elf64_s390"
11564             ;;
11565           sparc*-*linux*)
11566             LD="${LD-ld} -m elf64_sparc"
11567             ;;
11568         esac
11569         ;;
11570     esac
11571   fi
11572   rm -rf conftest*
11573   ;;
11574
11575 *-*-sco3.2v5*)
11576   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11577   SAVE_CFLAGS="$CFLAGS"
11578   CFLAGS="$CFLAGS -belf"
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11580 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11581 if ${lt_cv_cc_needs_belf+:} false; then :
11582   $as_echo_n "(cached) " >&6
11583 else
11584   ac_ext=c
11585 ac_cpp='$CPP $CPPFLAGS'
11586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11589
11590      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h.  */
11592
11593 int
11594 main ()
11595 {
11596
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602   lt_cv_cc_needs_belf=yes
11603 else
11604   lt_cv_cc_needs_belf=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607     conftest$ac_exeext conftest.$ac_ext
11608      ac_ext=c
11609 ac_cpp='$CPP $CPPFLAGS'
11610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11613
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11616 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11619     CFLAGS="$SAVE_CFLAGS"
11620   fi
11621   ;;
11622 *-*solaris*)
11623   # Find out which ABI we are using.
11624   echo 'int i;' > conftest.$ac_ext
11625   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11626   (eval $ac_compile) 2>&5
11627   ac_status=$?
11628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629   test $ac_status = 0; }; then
11630     case `/usr/bin/file conftest.o` in
11631     *64-bit*)
11632       case $lt_cv_prog_gnu_ld in
11633       yes*)
11634         case $host in
11635         i?86-*-solaris*)
11636           LD="${LD-ld} -m elf_x86_64"
11637           ;;
11638         sparc*-*-solaris*)
11639           LD="${LD-ld} -m elf64_sparc"
11640           ;;
11641         esac
11642         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11643         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11644           LD="${LD-ld}_sol2"
11645         fi
11646         ;;
11647       *)
11648         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11649           LD="${LD-ld} -64"
11650         fi
11651         ;;
11652       esac
11653       ;;
11654     esac
11655   fi
11656   rm -rf conftest*
11657   ;;
11658 esac
11659
11660 need_locks="$enable_libtool_lock"
11661
11662 if test -n "$ac_tool_prefix"; then
11663   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11664 set dummy ${ac_tool_prefix}mt; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   if test -n "$MANIFEST_TOOL"; then
11671   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676   IFS=$as_save_IFS
11677   test -z "$as_dir" && as_dir=.
11678     for ac_exec_ext in '' $ac_executable_extensions; do
11679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682     break 2
11683   fi
11684 done
11685   done
11686 IFS=$as_save_IFS
11687
11688 fi
11689 fi
11690 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11691 if test -n "$MANIFEST_TOOL"; then
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11693 $as_echo "$MANIFEST_TOOL" >&6; }
11694 else
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11702   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11703   # Extract the first word of "mt", so it can be a program name with args.
11704 set dummy mt; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11708   $as_echo_n "(cached) " >&6
11709 else
11710   if test -n "$ac_ct_MANIFEST_TOOL"; then
11711   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11712 else
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11715 do
11716   IFS=$as_save_IFS
11717   test -z "$as_dir" && as_dir=.
11718     for ac_exec_ext in '' $ac_executable_extensions; do
11719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722     break 2
11723   fi
11724 done
11725   done
11726 IFS=$as_save_IFS
11727
11728 fi
11729 fi
11730 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11731 if test -n "$ac_ct_MANIFEST_TOOL"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11733 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738
11739   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11740     MANIFEST_TOOL=":"
11741   else
11742     case $cross_compiling:$ac_tool_warned in
11743 yes:)
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned=yes ;;
11747 esac
11748     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11749   fi
11750 else
11751   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11752 fi
11753
11754 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11756 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11757 if ${lt_cv_path_mainfest_tool+:} false; then :
11758   $as_echo_n "(cached) " >&6
11759 else
11760   lt_cv_path_mainfest_tool=no
11761   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11762   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11763   cat conftest.err >&5
11764   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11765     lt_cv_path_mainfest_tool=yes
11766   fi
11767   rm -f conftest*
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11770 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11771 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11772   MANIFEST_TOOL=:
11773 fi
11774
11775
11776
11777
11778
11779
11780   case $host_os in
11781     rhapsody* | darwin*)
11782     if test -n "$ac_tool_prefix"; then
11783   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11784 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 $as_echo_n "checking for $ac_word... " >&6; }
11787 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11788   $as_echo_n "(cached) " >&6
11789 else
11790   if test -n "$DSYMUTIL"; then
11791   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11792 else
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796   IFS=$as_save_IFS
11797   test -z "$as_dir" && as_dir=.
11798     for ac_exec_ext in '' $ac_executable_extensions; do
11799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802     break 2
11803   fi
11804 done
11805   done
11806 IFS=$as_save_IFS
11807
11808 fi
11809 fi
11810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11811 if test -n "$DSYMUTIL"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11813 $as_echo "$DSYMUTIL" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$ac_cv_prog_DSYMUTIL"; then
11822   ac_ct_DSYMUTIL=$DSYMUTIL
11823   # Extract the first word of "dsymutil", so it can be a program name with args.
11824 set dummy dsymutil; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830   if test -n "$ac_ct_DSYMUTIL"; then
11831   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11835 do
11836   IFS=$as_save_IFS
11837   test -z "$as_dir" && as_dir=.
11838     for ac_exec_ext in '' $ac_executable_extensions; do
11839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842     break 2
11843   fi
11844 done
11845   done
11846 IFS=$as_save_IFS
11847
11848 fi
11849 fi
11850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11851 if test -n "$ac_ct_DSYMUTIL"; then
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11853 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11854 else
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858
11859   if test "x$ac_ct_DSYMUTIL" = x; then
11860     DSYMUTIL=":"
11861   else
11862     case $cross_compiling:$ac_tool_warned in
11863 yes:)
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11866 ac_tool_warned=yes ;;
11867 esac
11868     DSYMUTIL=$ac_ct_DSYMUTIL
11869   fi
11870 else
11871   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11872 fi
11873
11874     if test -n "$ac_tool_prefix"; then
11875   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_NMEDIT+:} false; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882   if test -n "$NMEDIT"; then
11883   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11884 else
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900 fi
11901 fi
11902 NMEDIT=$ac_cv_prog_NMEDIT
11903 if test -n "$NMEDIT"; then
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11905 $as_echo "$NMEDIT" >&6; }
11906 else
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910
11911
11912 fi
11913 if test -z "$ac_cv_prog_NMEDIT"; then
11914   ac_ct_NMEDIT=$NMEDIT
11915   # Extract the first word of "nmedit", so it can be a program name with args.
11916 set dummy nmedit; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   if test -n "$ac_ct_NMEDIT"; then
11923   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939
11940 fi
11941 fi
11942 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11943 if test -n "$ac_ct_NMEDIT"; then
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11945 $as_echo "$ac_ct_NMEDIT" >&6; }
11946 else
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950
11951   if test "x$ac_ct_NMEDIT" = x; then
11952     NMEDIT=":"
11953   else
11954     case $cross_compiling:$ac_tool_warned in
11955 yes:)
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11958 ac_tool_warned=yes ;;
11959 esac
11960     NMEDIT=$ac_ct_NMEDIT
11961   fi
11962 else
11963   NMEDIT="$ac_cv_prog_NMEDIT"
11964 fi
11965
11966     if test -n "$ac_tool_prefix"; then
11967   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11968 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if ${ac_cv_prog_LIPO+:} false; then :
11972   $as_echo_n "(cached) " >&6
11973 else
11974   if test -n "$LIPO"; then
11975   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11976 else
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11979 do
11980   IFS=$as_save_IFS
11981   test -z "$as_dir" && as_dir=.
11982     for ac_exec_ext in '' $ac_executable_extensions; do
11983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986     break 2
11987   fi
11988 done
11989   done
11990 IFS=$as_save_IFS
11991
11992 fi
11993 fi
11994 LIPO=$ac_cv_prog_LIPO
11995 if test -n "$LIPO"; then
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11997 $as_echo "$LIPO" >&6; }
11998 else
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001 fi
12002
12003
12004 fi
12005 if test -z "$ac_cv_prog_LIPO"; then
12006   ac_ct_LIPO=$LIPO
12007   # Extract the first word of "lipo", so it can be a program name with args.
12008 set dummy lipo; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   if test -n "$ac_ct_LIPO"; then
12015   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020   IFS=$as_save_IFS
12021   test -z "$as_dir" && as_dir=.
12022     for ac_exec_ext in '' $ac_executable_extensions; do
12023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12024     ac_cv_prog_ac_ct_LIPO="lipo"
12025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026     break 2
12027   fi
12028 done
12029   done
12030 IFS=$as_save_IFS
12031
12032 fi
12033 fi
12034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12035 if test -n "$ac_ct_LIPO"; then
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12037 $as_echo "$ac_ct_LIPO" >&6; }
12038 else
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 fi
12042
12043   if test "x$ac_ct_LIPO" = x; then
12044     LIPO=":"
12045   else
12046     case $cross_compiling:$ac_tool_warned in
12047 yes:)
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12050 ac_tool_warned=yes ;;
12051 esac
12052     LIPO=$ac_ct_LIPO
12053   fi
12054 else
12055   LIPO="$ac_cv_prog_LIPO"
12056 fi
12057
12058     if test -n "$ac_tool_prefix"; then
12059   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12060 set dummy ${ac_tool_prefix}otool; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_prog_OTOOL+:} false; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   if test -n "$OTOOL"; then
12067   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12068 else
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072   IFS=$as_save_IFS
12073   test -z "$as_dir" && as_dir=.
12074     for ac_exec_ext in '' $ac_executable_extensions; do
12075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12076     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078     break 2
12079   fi
12080 done
12081   done
12082 IFS=$as_save_IFS
12083
12084 fi
12085 fi
12086 OTOOL=$ac_cv_prog_OTOOL
12087 if test -n "$OTOOL"; then
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12089 $as_echo "$OTOOL" >&6; }
12090 else
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12093 fi
12094
12095
12096 fi
12097 if test -z "$ac_cv_prog_OTOOL"; then
12098   ac_ct_OTOOL=$OTOOL
12099   # Extract the first word of "otool", so it can be a program name with args.
12100 set dummy otool; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   if test -n "$ac_ct_OTOOL"; then
12107   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114     for ac_exec_ext in '' $ac_executable_extensions; do
12115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116     ac_cv_prog_ac_ct_OTOOL="otool"
12117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121   done
12122 IFS=$as_save_IFS
12123
12124 fi
12125 fi
12126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12127 if test -n "$ac_ct_OTOOL"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12129 $as_echo "$ac_ct_OTOOL" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134
12135   if test "x$ac_ct_OTOOL" = x; then
12136     OTOOL=":"
12137   else
12138     case $cross_compiling:$ac_tool_warned in
12139 yes:)
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12142 ac_tool_warned=yes ;;
12143 esac
12144     OTOOL=$ac_ct_OTOOL
12145   fi
12146 else
12147   OTOOL="$ac_cv_prog_OTOOL"
12148 fi
12149
12150     if test -n "$ac_tool_prefix"; then
12151   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_OTOOL64+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158   if test -n "$OTOOL64"; then
12159   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164   IFS=$as_save_IFS
12165   test -z "$as_dir" && as_dir=.
12166     for ac_exec_ext in '' $ac_executable_extensions; do
12167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12168     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170     break 2
12171   fi
12172 done
12173   done
12174 IFS=$as_save_IFS
12175
12176 fi
12177 fi
12178 OTOOL64=$ac_cv_prog_OTOOL64
12179 if test -n "$OTOOL64"; then
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12181 $as_echo "$OTOOL64" >&6; }
12182 else
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186
12187
12188 fi
12189 if test -z "$ac_cv_prog_OTOOL64"; then
12190   ac_ct_OTOOL64=$OTOOL64
12191   # Extract the first word of "otool64", so it can be a program name with args.
12192 set dummy otool64; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   if test -n "$ac_ct_OTOOL64"; then
12199   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204   IFS=$as_save_IFS
12205   test -z "$as_dir" && as_dir=.
12206     for ac_exec_ext in '' $ac_executable_extensions; do
12207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208     ac_cv_prog_ac_ct_OTOOL64="otool64"
12209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210     break 2
12211   fi
12212 done
12213   done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12219 if test -n "$ac_ct_OTOOL64"; then
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12221 $as_echo "$ac_ct_OTOOL64" >&6; }
12222 else
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227   if test "x$ac_ct_OTOOL64" = x; then
12228     OTOOL64=":"
12229   else
12230     case $cross_compiling:$ac_tool_warned in
12231 yes:)
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12234 ac_tool_warned=yes ;;
12235 esac
12236     OTOOL64=$ac_ct_OTOOL64
12237   fi
12238 else
12239   OTOOL64="$ac_cv_prog_OTOOL64"
12240 fi
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12269 $as_echo_n "checking for -single_module linker flag... " >&6; }
12270 if ${lt_cv_apple_cc_single_mod+:} false; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   lt_cv_apple_cc_single_mod=no
12274       if test -z "${LT_MULTI_MODULE}"; then
12275         # By default we will add the -single_module flag. You can override
12276         # by either setting the environment variable LT_MULTI_MODULE
12277         # non-empty at configure time, or by adding -multi_module to the
12278         # link flags.
12279         rm -rf libconftest.dylib*
12280         echo "int foo(void){return 1;}" > conftest.c
12281         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12282 -dynamiclib -Wl,-single_module conftest.c" >&5
12283         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12284           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12285         _lt_result=$?
12286         # If there is a non-empty error log, and "single_module"
12287         # appears in it, assume the flag caused a linker warning
12288         if test -s conftest.err && $GREP single_module conftest.err; then
12289           cat conftest.err >&5
12290         # Otherwise, if the output was created with a 0 exit code from
12291         # the compiler, it worked.
12292         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12293           lt_cv_apple_cc_single_mod=yes
12294         else
12295           cat conftest.err >&5
12296         fi
12297         rm -rf libconftest.dylib*
12298         rm -f conftest.*
12299       fi
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12302 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12303
12304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12305 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12306 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   lt_cv_ld_exported_symbols_list=no
12310       save_LDFLAGS=$LDFLAGS
12311       echo "_main" > conftest.sym
12312       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h.  */
12315
12316 int
12317 main ()
12318 {
12319
12320   ;
12321   return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325   lt_cv_ld_exported_symbols_list=yes
12326 else
12327   lt_cv_ld_exported_symbols_list=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext \
12330     conftest$ac_exeext conftest.$ac_ext
12331         LDFLAGS="$save_LDFLAGS"
12332
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12335 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12336
12337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12338 $as_echo_n "checking for -force_load linker flag... " >&6; }
12339 if ${lt_cv_ld_force_load+:} false; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   lt_cv_ld_force_load=no
12343       cat > conftest.c << _LT_EOF
12344 int forced_loaded() { return 2;}
12345 _LT_EOF
12346       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12347       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12348       echo "$AR cru libconftest.a conftest.o" >&5
12349       $AR cru libconftest.a conftest.o 2>&5
12350       echo "$RANLIB libconftest.a" >&5
12351       $RANLIB libconftest.a 2>&5
12352       cat > conftest.c << _LT_EOF
12353 int main() { return 0;}
12354 _LT_EOF
12355       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12356       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12357       _lt_result=$?
12358       if test -s conftest.err && $GREP force_load conftest.err; then
12359         cat conftest.err >&5
12360       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12361         lt_cv_ld_force_load=yes
12362       else
12363         cat conftest.err >&5
12364       fi
12365         rm -f conftest.err libconftest.a conftest conftest.c
12366         rm -rf conftest.dSYM
12367
12368 fi
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12370 $as_echo "$lt_cv_ld_force_load" >&6; }
12371     case $host_os in
12372     rhapsody* | darwin1.[012])
12373       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12374     darwin1.*)
12375       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12376     darwin*) # darwin 5.x on
12377       # if running on 10.5 or later, the deployment target defaults
12378       # to the OS version, if on x86, and 10.4, the deployment
12379       # target defaults to 10.4. Don't you love it?
12380       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12381         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12382           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12383         10.[012]*)
12384           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12385         10.*)
12386           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12387       esac
12388     ;;
12389   esac
12390     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12391       _lt_dar_single_mod='$single_module'
12392     fi
12393     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12394       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12395     else
12396       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12397     fi
12398     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12399       _lt_dsymutil='~$DSYMUTIL $lib || :'
12400     else
12401       _lt_dsymutil=
12402     fi
12403     ;;
12404   esac
12405
12406 for ac_header in dlfcn.h
12407 do :
12408   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12409 "
12410 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12411   cat >>confdefs.h <<_ACEOF
12412 #define HAVE_DLFCN_H 1
12413 _ACEOF
12414
12415 fi
12416
12417 done
12418
12419
12420
12421
12422
12423 # Set options
12424
12425
12426
12427         enable_dlopen=no
12428
12429
12430   enable_win32_dll=no
12431
12432
12433             # Check whether --enable-shared was given.
12434 if test "${enable_shared+set}" = set; then :
12435   enableval=$enable_shared; p=${PACKAGE-default}
12436     case $enableval in
12437     yes) enable_shared=yes ;;
12438     no) enable_shared=no ;;
12439     *)
12440       enable_shared=no
12441       # Look at the argument we got.  We use all the common list separators.
12442       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12443       for pkg in $enableval; do
12444         IFS="$lt_save_ifs"
12445         if test "X$pkg" = "X$p"; then
12446           enable_shared=yes
12447         fi
12448       done
12449       IFS="$lt_save_ifs"
12450       ;;
12451     esac
12452 else
12453   enable_shared=yes
12454 fi
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466 # Check whether --with-pic was given.
12467 if test "${with_pic+set}" = set; then :
12468   withval=$with_pic; lt_p=${PACKAGE-default}
12469     case $withval in
12470     yes|no) pic_mode=$withval ;;
12471     *)
12472       pic_mode=default
12473       # Look at the argument we got.  We use all the common list separators.
12474       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12475       for lt_pkg in $withval; do
12476         IFS="$lt_save_ifs"
12477         if test "X$lt_pkg" = "X$lt_p"; then
12478           pic_mode=yes
12479         fi
12480       done
12481       IFS="$lt_save_ifs"
12482       ;;
12483     esac
12484 else
12485   pic_mode=default
12486 fi
12487
12488
12489 test -z "$pic_mode" && pic_mode=default
12490
12491
12492
12493
12494
12495
12496
12497   # Check whether --enable-fast-install was given.
12498 if test "${enable_fast_install+set}" = set; then :
12499   enableval=$enable_fast_install; p=${PACKAGE-default}
12500     case $enableval in
12501     yes) enable_fast_install=yes ;;
12502     no) enable_fast_install=no ;;
12503     *)
12504       enable_fast_install=no
12505       # Look at the argument we got.  We use all the common list separators.
12506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12507       for pkg in $enableval; do
12508         IFS="$lt_save_ifs"
12509         if test "X$pkg" = "X$p"; then
12510           enable_fast_install=yes
12511         fi
12512       done
12513       IFS="$lt_save_ifs"
12514       ;;
12515     esac
12516 else
12517   enable_fast_install=yes
12518 fi
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530 # This can be used to rebuild libtool when needed
12531 LIBTOOL_DEPS="$ltmain"
12532
12533 # Always use our own libtool.
12534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565 test -z "$LN_S" && LN_S="ln -s"
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580 if test -n "${ZSH_VERSION+set}" ; then
12581    setopt NO_GLOB_SUBST
12582 fi
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12585 $as_echo_n "checking for objdir... " >&6; }
12586 if ${lt_cv_objdir+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   rm -f .libs 2>/dev/null
12590 mkdir .libs 2>/dev/null
12591 if test -d .libs; then
12592   lt_cv_objdir=.libs
12593 else
12594   # MS-DOS does not allow filenames that begin with a dot.
12595   lt_cv_objdir=_libs
12596 fi
12597 rmdir .libs 2>/dev/null
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12600 $as_echo "$lt_cv_objdir" >&6; }
12601 objdir=$lt_cv_objdir
12602
12603
12604
12605
12606
12607 cat >>confdefs.h <<_ACEOF
12608 #define LT_OBJDIR "$lt_cv_objdir/"
12609 _ACEOF
12610
12611
12612
12613
12614 case $host_os in
12615 aix3*)
12616   # AIX sometimes has problems with the GCC collect2 program.  For some
12617   # reason, if we set the COLLECT_NAMES environment variable, the problems
12618   # vanish in a puff of smoke.
12619   if test "X${COLLECT_NAMES+set}" != Xset; then
12620     COLLECT_NAMES=
12621     export COLLECT_NAMES
12622   fi
12623   ;;
12624 esac
12625
12626 # Global variables:
12627 ofile=libtool
12628 can_build_shared=yes
12629
12630 # All known linkers require a `.a' archive for static linking (except MSVC,
12631 # which needs '.lib').
12632 libext=a
12633
12634 with_gnu_ld="$lt_cv_prog_gnu_ld"
12635
12636 old_CC="$CC"
12637 old_CFLAGS="$CFLAGS"
12638
12639 # Set sane defaults for various variables
12640 test -z "$CC" && CC=cc
12641 test -z "$LTCC" && LTCC=$CC
12642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12643 test -z "$LD" && LD=ld
12644 test -z "$ac_objext" && ac_objext=o
12645
12646 for cc_temp in $compiler""; do
12647   case $cc_temp in
12648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12650     \-*) ;;
12651     *) break;;
12652   esac
12653 done
12654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12655
12656
12657 # Only perform the check for file, if the check method requires it
12658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12659 case $deplibs_check_method in
12660 file_magic*)
12661   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   case $MAGIC_CMD in
12668 [\\/*] |  ?:[\\/]*)
12669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12670   ;;
12671 *)
12672   lt_save_MAGIC_CMD="$MAGIC_CMD"
12673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12675   for ac_dir in $ac_dummy; do
12676     IFS="$lt_save_ifs"
12677     test -z "$ac_dir" && ac_dir=.
12678     if test -f $ac_dir/${ac_tool_prefix}file; then
12679       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12680       if test -n "$file_magic_test_file"; then
12681         case $deplibs_check_method in
12682         "file_magic "*)
12683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12686             $EGREP "$file_magic_regex" > /dev/null; then
12687             :
12688           else
12689             cat <<_LT_EOF 1>&2
12690
12691 *** Warning: the command libtool uses to detect shared libraries,
12692 *** $file_magic_cmd, produces output that libtool cannot recognize.
12693 *** The result is that libtool may fail to recognize shared libraries
12694 *** as such.  This will affect the creation of libtool libraries that
12695 *** depend on shared libraries, but programs linked with such libtool
12696 *** libraries will work regardless of this problem.  Nevertheless, you
12697 *** may want to report the problem to your system manager and/or to
12698 *** bug-libtool@gnu.org
12699
12700 _LT_EOF
12701           fi ;;
12702         esac
12703       fi
12704       break
12705     fi
12706   done
12707   IFS="$lt_save_ifs"
12708   MAGIC_CMD="$lt_save_MAGIC_CMD"
12709   ;;
12710 esac
12711 fi
12712
12713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12714 if test -n "$MAGIC_CMD"; then
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12716 $as_echo "$MAGIC_CMD" >&6; }
12717 else
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720 fi
12721
12722
12723
12724
12725
12726 if test -z "$lt_cv_path_MAGIC_CMD"; then
12727   if test -n "$ac_tool_prefix"; then
12728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12729 $as_echo_n "checking for file... " >&6; }
12730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   case $MAGIC_CMD in
12734 [\\/*] |  ?:[\\/]*)
12735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12736   ;;
12737 *)
12738   lt_save_MAGIC_CMD="$MAGIC_CMD"
12739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12741   for ac_dir in $ac_dummy; do
12742     IFS="$lt_save_ifs"
12743     test -z "$ac_dir" && ac_dir=.
12744     if test -f $ac_dir/file; then
12745       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12746       if test -n "$file_magic_test_file"; then
12747         case $deplibs_check_method in
12748         "file_magic "*)
12749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12752             $EGREP "$file_magic_regex" > /dev/null; then
12753             :
12754           else
12755             cat <<_LT_EOF 1>&2
12756
12757 *** Warning: the command libtool uses to detect shared libraries,
12758 *** $file_magic_cmd, produces output that libtool cannot recognize.
12759 *** The result is that libtool may fail to recognize shared libraries
12760 *** as such.  This will affect the creation of libtool libraries that
12761 *** depend on shared libraries, but programs linked with such libtool
12762 *** libraries will work regardless of this problem.  Nevertheless, you
12763 *** may want to report the problem to your system manager and/or to
12764 *** bug-libtool@gnu.org
12765
12766 _LT_EOF
12767           fi ;;
12768         esac
12769       fi
12770       break
12771     fi
12772   done
12773   IFS="$lt_save_ifs"
12774   MAGIC_CMD="$lt_save_MAGIC_CMD"
12775   ;;
12776 esac
12777 fi
12778
12779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12780 if test -n "$MAGIC_CMD"; then
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12782 $as_echo "$MAGIC_CMD" >&6; }
12783 else
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12787
12788
12789   else
12790     MAGIC_CMD=:
12791   fi
12792 fi
12793
12794   fi
12795   ;;
12796 esac
12797
12798 # Use C for the default configuration in the libtool script
12799
12800 lt_save_CC="$CC"
12801 ac_ext=c
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807
12808 # Source file extension for C test sources.
12809 ac_ext=c
12810
12811 # Object file extension for compiled C test sources.
12812 objext=o
12813 objext=$objext
12814
12815 # Code to be used in simple compile tests
12816 lt_simple_compile_test_code="int some_variable = 0;"
12817
12818 # Code to be used in simple link tests
12819 lt_simple_link_test_code='int main(){return(0);}'
12820
12821
12822
12823
12824
12825
12826
12827 # If no C compiler was specified, use CC.
12828 LTCC=${LTCC-"$CC"}
12829
12830 # If no C compiler flags were specified, use CFLAGS.
12831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12832
12833 # Allow CC to be a program name with arguments.
12834 compiler=$CC
12835
12836 # Save the default compiler, since it gets overwritten when the other
12837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12838 compiler_DEFAULT=$CC
12839
12840 # save warnings/boilerplate of simple test code
12841 ac_outfile=conftest.$ac_objext
12842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12844 _lt_compiler_boilerplate=`cat conftest.err`
12845 $RM conftest*
12846
12847 ac_outfile=conftest.$ac_objext
12848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12850 _lt_linker_boilerplate=`cat conftest.err`
12851 $RM -r conftest*
12852
12853
12854 if test -n "$compiler"; then
12855
12856 lt_prog_compiler_no_builtin_flag=
12857
12858 if test "$GCC" = yes; then
12859   case $cc_basename in
12860   nvcc*)
12861     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12862   *)
12863     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12864   esac
12865
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12867 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12868 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   lt_cv_prog_compiler_rtti_exceptions=no
12872    ac_outfile=conftest.$ac_objext
12873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12874    lt_compiler_flag="-fno-rtti -fno-exceptions"
12875    # Insert the option either (1) after the last *FLAGS variable, or
12876    # (2) before a word containing "conftest.", or (3) at the end.
12877    # Note that $ac_compile itself does not contain backslashes and begins
12878    # with a dollar sign (not a hyphen), so the echo should work correctly.
12879    # The option is referenced via a variable to avoid confusing sed.
12880    lt_compile=`echo "$ac_compile" | $SED \
12881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12883    -e 's:$: $lt_compiler_flag:'`
12884    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12885    (eval "$lt_compile" 2>conftest.err)
12886    ac_status=$?
12887    cat conftest.err >&5
12888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889    if (exit $ac_status) && test -s "$ac_outfile"; then
12890      # The compiler can only warn and ignore the option if not recognized
12891      # So say no if there are warnings other than the usual output.
12892      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12893      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12894      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12895        lt_cv_prog_compiler_rtti_exceptions=yes
12896      fi
12897    fi
12898    $RM conftest*
12899
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12902 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12903
12904 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12905     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12906 else
12907     :
12908 fi
12909
12910 fi
12911
12912
12913
12914
12915
12916
12917   lt_prog_compiler_wl=
12918 lt_prog_compiler_pic=
12919 lt_prog_compiler_static=
12920
12921
12922   if test "$GCC" = yes; then
12923     lt_prog_compiler_wl='-Wl,'
12924     lt_prog_compiler_static='-static'
12925
12926     case $host_os in
12927       aix*)
12928       # All AIX code is PIC.
12929       if test "$host_cpu" = ia64; then
12930         # AIX 5 now supports IA64 processor
12931         lt_prog_compiler_static='-Bstatic'
12932       fi
12933       ;;
12934
12935     amigaos*)
12936       case $host_cpu in
12937       powerpc)
12938             # see comment about AmigaOS4 .so support
12939             lt_prog_compiler_pic='-fPIC'
12940         ;;
12941       m68k)
12942             # FIXME: we need at least 68020 code to build shared libraries, but
12943             # adding the `-m68020' flag to GCC prevents building anything better,
12944             # like `-m68040'.
12945             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12946         ;;
12947       esac
12948       ;;
12949
12950     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12951       # PIC is the default for these OSes.
12952       ;;
12953
12954     mingw* | cygwin* | pw32* | os2* | cegcc*)
12955       # This hack is so that the source file can tell whether it is being
12956       # built for inclusion in a dll (and should export symbols for example).
12957       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12958       # (--disable-auto-import) libraries
12959       lt_prog_compiler_pic='-DDLL_EXPORT'
12960       ;;
12961
12962     darwin* | rhapsody*)
12963       # PIC is the default on this platform
12964       # Common symbols not allowed in MH_DYLIB files
12965       lt_prog_compiler_pic='-fno-common'
12966       ;;
12967
12968     haiku*)
12969       # PIC is the default for Haiku.
12970       # The "-static" flag exists, but is broken.
12971       lt_prog_compiler_static=
12972       ;;
12973
12974     hpux*)
12975       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12976       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12977       # sets the default TLS model and affects inlining.
12978       case $host_cpu in
12979       hppa*64*)
12980         # +Z the default
12981         ;;
12982       *)
12983         lt_prog_compiler_pic='-fPIC'
12984         ;;
12985       esac
12986       ;;
12987
12988     interix[3-9]*)
12989       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990       # Instead, we relocate shared libraries at runtime.
12991       ;;
12992
12993     msdosdjgpp*)
12994       # Just because we use GCC doesn't mean we suddenly get shared libraries
12995       # on systems that don't support them.
12996       lt_prog_compiler_can_build_shared=no
12997       enable_shared=no
12998       ;;
12999
13000     *nto* | *qnx*)
13001       # QNX uses GNU C++, but need to define -shared option too, otherwise
13002       # it will coredump.
13003       lt_prog_compiler_pic='-fPIC -shared'
13004       ;;
13005
13006     sysv4*MP*)
13007       if test -d /usr/nec; then
13008         lt_prog_compiler_pic=-Kconform_pic
13009       fi
13010       ;;
13011
13012     *)
13013       lt_prog_compiler_pic='-fPIC'
13014       ;;
13015     esac
13016
13017     case $cc_basename in
13018     nvcc*) # Cuda Compiler Driver 2.2
13019       lt_prog_compiler_wl='-Xlinker '
13020       if test -n "$lt_prog_compiler_pic"; then
13021         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13022       fi
13023       ;;
13024     esac
13025   else
13026     # PORTME Check for flag to pass linker flags through the system compiler.
13027     case $host_os in
13028     aix*)
13029       lt_prog_compiler_wl='-Wl,'
13030       if test "$host_cpu" = ia64; then
13031         # AIX 5 now supports IA64 processor
13032         lt_prog_compiler_static='-Bstatic'
13033       else
13034         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13035       fi
13036       ;;
13037
13038     mingw* | cygwin* | pw32* | os2* | cegcc*)
13039       # This hack is so that the source file can tell whether it is being
13040       # built for inclusion in a dll (and should export symbols for example).
13041       lt_prog_compiler_pic='-DDLL_EXPORT'
13042       ;;
13043
13044     hpux9* | hpux10* | hpux11*)
13045       lt_prog_compiler_wl='-Wl,'
13046       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13047       # not for PA HP-UX.
13048       case $host_cpu in
13049       hppa*64*|ia64*)
13050         # +Z the default
13051         ;;
13052       *)
13053         lt_prog_compiler_pic='+Z'
13054         ;;
13055       esac
13056       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13057       lt_prog_compiler_static='${wl}-a ${wl}archive'
13058       ;;
13059
13060     irix5* | irix6* | nonstopux*)
13061       lt_prog_compiler_wl='-Wl,'
13062       # PIC (with -KPIC) is the default.
13063       lt_prog_compiler_static='-non_shared'
13064       ;;
13065
13066     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13067       case $cc_basename in
13068       # old Intel for x86_64 which still supported -KPIC.
13069       ecc*)
13070         lt_prog_compiler_wl='-Wl,'
13071         lt_prog_compiler_pic='-KPIC'
13072         lt_prog_compiler_static='-static'
13073         ;;
13074       # icc used to be incompatible with GCC.
13075       # ICC 10 doesn't accept -KPIC any more.
13076       icc* | ifort*)
13077         lt_prog_compiler_wl='-Wl,'
13078         lt_prog_compiler_pic='-fPIC'
13079         lt_prog_compiler_static='-static'
13080         ;;
13081       # Lahey Fortran 8.1.
13082       lf95*)
13083         lt_prog_compiler_wl='-Wl,'
13084         lt_prog_compiler_pic='--shared'
13085         lt_prog_compiler_static='--static'
13086         ;;
13087       nagfor*)
13088         # NAG Fortran compiler
13089         lt_prog_compiler_wl='-Wl,-Wl,,'
13090         lt_prog_compiler_pic='-PIC'
13091         lt_prog_compiler_static='-Bstatic'
13092         ;;
13093       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13094         # Portland Group compilers (*not* the Pentium gcc compiler,
13095         # which looks to be a dead project)
13096         lt_prog_compiler_wl='-Wl,'
13097         lt_prog_compiler_pic='-fpic'
13098         lt_prog_compiler_static='-Bstatic'
13099         ;;
13100       ccc*)
13101         lt_prog_compiler_wl='-Wl,'
13102         # All Alpha code is PIC.
13103         lt_prog_compiler_static='-non_shared'
13104         ;;
13105       xl* | bgxl* | bgf* | mpixl*)
13106         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13107         lt_prog_compiler_wl='-Wl,'
13108         lt_prog_compiler_pic='-qpic'
13109         lt_prog_compiler_static='-qstaticlink'
13110         ;;
13111       *)
13112         case `$CC -V 2>&1 | sed 5q` in
13113         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13114           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13115           lt_prog_compiler_pic='-KPIC'
13116           lt_prog_compiler_static='-Bstatic'
13117           lt_prog_compiler_wl=''
13118           ;;
13119         *Sun\ F* | *Sun*Fortran*)
13120           lt_prog_compiler_pic='-KPIC'
13121           lt_prog_compiler_static='-Bstatic'
13122           lt_prog_compiler_wl='-Qoption ld '
13123           ;;
13124         *Sun\ C*)
13125           # Sun C 5.9
13126           lt_prog_compiler_pic='-KPIC'
13127           lt_prog_compiler_static='-Bstatic'
13128           lt_prog_compiler_wl='-Wl,'
13129           ;;
13130         *Intel*\ [CF]*Compiler*)
13131           lt_prog_compiler_wl='-Wl,'
13132           lt_prog_compiler_pic='-fPIC'
13133           lt_prog_compiler_static='-static'
13134           ;;
13135         *Portland\ Group*)
13136           lt_prog_compiler_wl='-Wl,'
13137           lt_prog_compiler_pic='-fpic'
13138           lt_prog_compiler_static='-Bstatic'
13139           ;;
13140         esac
13141         ;;
13142       esac
13143       ;;
13144
13145     newsos6)
13146       lt_prog_compiler_pic='-KPIC'
13147       lt_prog_compiler_static='-Bstatic'
13148       ;;
13149
13150     *nto* | *qnx*)
13151       # QNX uses GNU C++, but need to define -shared option too, otherwise
13152       # it will coredump.
13153       lt_prog_compiler_pic='-fPIC -shared'
13154       ;;
13155
13156     osf3* | osf4* | osf5*)
13157       lt_prog_compiler_wl='-Wl,'
13158       # All OSF/1 code is PIC.
13159       lt_prog_compiler_static='-non_shared'
13160       ;;
13161
13162     rdos*)
13163       lt_prog_compiler_static='-non_shared'
13164       ;;
13165
13166     solaris*)
13167       lt_prog_compiler_pic='-KPIC'
13168       lt_prog_compiler_static='-Bstatic'
13169       case $cc_basename in
13170       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13171         lt_prog_compiler_wl='-Qoption ld ';;
13172       *)
13173         lt_prog_compiler_wl='-Wl,';;
13174       esac
13175       ;;
13176
13177     sunos4*)
13178       lt_prog_compiler_wl='-Qoption ld '
13179       lt_prog_compiler_pic='-PIC'
13180       lt_prog_compiler_static='-Bstatic'
13181       ;;
13182
13183     sysv4 | sysv4.2uw2* | sysv4.3*)
13184       lt_prog_compiler_wl='-Wl,'
13185       lt_prog_compiler_pic='-KPIC'
13186       lt_prog_compiler_static='-Bstatic'
13187       ;;
13188
13189     sysv4*MP*)
13190       if test -d /usr/nec ;then
13191         lt_prog_compiler_pic='-Kconform_pic'
13192         lt_prog_compiler_static='-Bstatic'
13193       fi
13194       ;;
13195
13196     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13197       lt_prog_compiler_wl='-Wl,'
13198       lt_prog_compiler_pic='-KPIC'
13199       lt_prog_compiler_static='-Bstatic'
13200       ;;
13201
13202     unicos*)
13203       lt_prog_compiler_wl='-Wl,'
13204       lt_prog_compiler_can_build_shared=no
13205       ;;
13206
13207     uts4*)
13208       lt_prog_compiler_pic='-pic'
13209       lt_prog_compiler_static='-Bstatic'
13210       ;;
13211
13212     *)
13213       lt_prog_compiler_can_build_shared=no
13214       ;;
13215     esac
13216   fi
13217
13218 case $host_os in
13219   # For platforms which do not support PIC, -DPIC is meaningless:
13220   *djgpp*)
13221     lt_prog_compiler_pic=
13222     ;;
13223   *)
13224     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13225     ;;
13226 esac
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13230 if ${lt_cv_prog_compiler_pic+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13236 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13238
13239 #
13240 # Check to make sure the PIC flag actually works.
13241 #
13242 if test -n "$lt_prog_compiler_pic"; then
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13244 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13245 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13246   $as_echo_n "(cached) " >&6
13247 else
13248   lt_cv_prog_compiler_pic_works=no
13249    ac_outfile=conftest.$ac_objext
13250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13251    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13252    # Insert the option either (1) after the last *FLAGS variable, or
13253    # (2) before a word containing "conftest.", or (3) at the end.
13254    # Note that $ac_compile itself does not contain backslashes and begins
13255    # with a dollar sign (not a hyphen), so the echo should work correctly.
13256    # The option is referenced via a variable to avoid confusing sed.
13257    lt_compile=`echo "$ac_compile" | $SED \
13258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13260    -e 's:$: $lt_compiler_flag:'`
13261    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13262    (eval "$lt_compile" 2>conftest.err)
13263    ac_status=$?
13264    cat conftest.err >&5
13265    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266    if (exit $ac_status) && test -s "$ac_outfile"; then
13267      # The compiler can only warn and ignore the option if not recognized
13268      # So say no if there are warnings other than the usual output.
13269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13270      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13271      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13272        lt_cv_prog_compiler_pic_works=yes
13273      fi
13274    fi
13275    $RM conftest*
13276
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13279 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13280
13281 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13282     case $lt_prog_compiler_pic in
13283      "" | " "*) ;;
13284      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13285      esac
13286 else
13287     lt_prog_compiler_pic=
13288      lt_prog_compiler_can_build_shared=no
13289 fi
13290
13291 fi
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303 #
13304 # Check to make sure the static flag actually works.
13305 #
13306 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13308 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13309 if ${lt_cv_prog_compiler_static_works+:} false; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   lt_cv_prog_compiler_static_works=no
13313    save_LDFLAGS="$LDFLAGS"
13314    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13315    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13316    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13317      # The linker can only warn and ignore the option if not recognized
13318      # So say no if there are warnings
13319      if test -s conftest.err; then
13320        # Append any errors to the config.log.
13321        cat conftest.err 1>&5
13322        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13323        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13324        if diff conftest.exp conftest.er2 >/dev/null; then
13325          lt_cv_prog_compiler_static_works=yes
13326        fi
13327      else
13328        lt_cv_prog_compiler_static_works=yes
13329      fi
13330    fi
13331    $RM -r conftest*
13332    LDFLAGS="$save_LDFLAGS"
13333
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13336 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13337
13338 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13339     :
13340 else
13341     lt_prog_compiler_static=
13342 fi
13343
13344
13345
13346
13347
13348
13349
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13352 if ${lt_cv_prog_compiler_c_o+:} false; then :
13353   $as_echo_n "(cached) " >&6
13354 else
13355   lt_cv_prog_compiler_c_o=no
13356    $RM -r conftest 2>/dev/null
13357    mkdir conftest
13358    cd conftest
13359    mkdir out
13360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13361
13362    lt_compiler_flag="-o out/conftest2.$ac_objext"
13363    # Insert the option either (1) after the last *FLAGS variable, or
13364    # (2) before a word containing "conftest.", or (3) at the end.
13365    # Note that $ac_compile itself does not contain backslashes and begins
13366    # with a dollar sign (not a hyphen), so the echo should work correctly.
13367    lt_compile=`echo "$ac_compile" | $SED \
13368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13370    -e 's:$: $lt_compiler_flag:'`
13371    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13372    (eval "$lt_compile" 2>out/conftest.err)
13373    ac_status=$?
13374    cat out/conftest.err >&5
13375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13377    then
13378      # The compiler can only warn and ignore the option if not recognized
13379      # So say no if there are warnings
13380      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13383        lt_cv_prog_compiler_c_o=yes
13384      fi
13385    fi
13386    chmod u+w . 2>&5
13387    $RM conftest*
13388    # SGI C++ compiler will create directory out/ii_files/ for
13389    # template instantiation
13390    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13391    $RM out/* && rmdir out
13392    cd ..
13393    $RM -r conftest
13394    $RM conftest*
13395
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13398 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13399
13400
13401
13402
13403
13404
13405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13406 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13407 if ${lt_cv_prog_compiler_c_o+:} false; then :
13408   $as_echo_n "(cached) " >&6
13409 else
13410   lt_cv_prog_compiler_c_o=no
13411    $RM -r conftest 2>/dev/null
13412    mkdir conftest
13413    cd conftest
13414    mkdir out
13415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13416
13417    lt_compiler_flag="-o out/conftest2.$ac_objext"
13418    # Insert the option either (1) after the last *FLAGS variable, or
13419    # (2) before a word containing "conftest.", or (3) at the end.
13420    # Note that $ac_compile itself does not contain backslashes and begins
13421    # with a dollar sign (not a hyphen), so the echo should work correctly.
13422    lt_compile=`echo "$ac_compile" | $SED \
13423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13425    -e 's:$: $lt_compiler_flag:'`
13426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13427    (eval "$lt_compile" 2>out/conftest.err)
13428    ac_status=$?
13429    cat out/conftest.err >&5
13430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13432    then
13433      # The compiler can only warn and ignore the option if not recognized
13434      # So say no if there are warnings
13435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13436      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13437      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13438        lt_cv_prog_compiler_c_o=yes
13439      fi
13440    fi
13441    chmod u+w . 2>&5
13442    $RM conftest*
13443    # SGI C++ compiler will create directory out/ii_files/ for
13444    # template instantiation
13445    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13446    $RM out/* && rmdir out
13447    cd ..
13448    $RM -r conftest
13449    $RM conftest*
13450
13451 fi
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13453 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13454
13455
13456
13457
13458 hard_links="nottested"
13459 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13460   # do not overwrite the value of need_locks provided by the user
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13462 $as_echo_n "checking if we can lock with hard links... " >&6; }
13463   hard_links=yes
13464   $RM conftest*
13465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13466   touch conftest.a
13467   ln conftest.a conftest.b 2>&5 || hard_links=no
13468   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13470 $as_echo "$hard_links" >&6; }
13471   if test "$hard_links" = no; then
13472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13473 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13474     need_locks=warn
13475   fi
13476 else
13477   need_locks=no
13478 fi
13479
13480
13481
13482
13483
13484
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13486 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13487
13488   runpath_var=
13489   allow_undefined_flag=
13490   always_export_symbols=no
13491   archive_cmds=
13492   archive_expsym_cmds=
13493   compiler_needs_object=no
13494   enable_shared_with_static_runtimes=no
13495   export_dynamic_flag_spec=
13496   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13497   hardcode_automatic=no
13498   hardcode_direct=no
13499   hardcode_direct_absolute=no
13500   hardcode_libdir_flag_spec=
13501   hardcode_libdir_separator=
13502   hardcode_minus_L=no
13503   hardcode_shlibpath_var=unsupported
13504   inherit_rpath=no
13505   link_all_deplibs=unknown
13506   module_cmds=
13507   module_expsym_cmds=
13508   old_archive_from_new_cmds=
13509   old_archive_from_expsyms_cmds=
13510   thread_safe_flag_spec=
13511   whole_archive_flag_spec=
13512   # include_expsyms should be a list of space-separated symbols to be *always*
13513   # included in the symbol list
13514   include_expsyms=
13515   # exclude_expsyms can be an extended regexp of symbols to exclude
13516   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13517   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13518   # as well as any symbol that contains `d'.
13519   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13520   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13521   # platforms (ab)use it in PIC code, but their linkers get confused if
13522   # the symbol is explicitly referenced.  Since portable code cannot
13523   # rely on this symbol name, it's probably fine to never include it in
13524   # preloaded symbol tables.
13525   # Exclude shared library initialization/finalization symbols.
13526   extract_expsyms_cmds=
13527
13528   case $host_os in
13529   cygwin* | mingw* | pw32* | cegcc*)
13530     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13531     # When not using gcc, we currently assume that we are using
13532     # Microsoft Visual C++.
13533     if test "$GCC" != yes; then
13534       with_gnu_ld=no
13535     fi
13536     ;;
13537   interix*)
13538     # we just hope/assume this is gcc and not c89 (= MSVC++)
13539     with_gnu_ld=yes
13540     ;;
13541   openbsd*)
13542     with_gnu_ld=no
13543     ;;
13544   esac
13545
13546   ld_shlibs=yes
13547
13548   # On some targets, GNU ld is compatible enough with the native linker
13549   # that we're better off using the native interface for both.
13550   lt_use_gnu_ld_interface=no
13551   if test "$with_gnu_ld" = yes; then
13552     case $host_os in
13553       aix*)
13554         # The AIX port of GNU ld has always aspired to compatibility
13555         # with the native linker.  However, as the warning in the GNU ld
13556         # block says, versions before 2.19.5* couldn't really create working
13557         # shared libraries, regardless of the interface used.
13558         case `$LD -v 2>&1` in
13559           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13560           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13561           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13562           *)
13563             lt_use_gnu_ld_interface=yes
13564             ;;
13565         esac
13566         ;;
13567       *)
13568         lt_use_gnu_ld_interface=yes
13569         ;;
13570     esac
13571   fi
13572
13573   if test "$lt_use_gnu_ld_interface" = yes; then
13574     # If archive_cmds runs LD, not CC, wlarc should be empty
13575     wlarc='${wl}'
13576
13577     # Set some defaults for GNU ld with shared library support. These
13578     # are reset later if shared libraries are not supported. Putting them
13579     # here allows them to be overridden if necessary.
13580     runpath_var=LD_RUN_PATH
13581     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13582     export_dynamic_flag_spec='${wl}--export-dynamic'
13583     # ancient GNU ld didn't support --whole-archive et. al.
13584     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13585       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13586     else
13587       whole_archive_flag_spec=
13588     fi
13589     supports_anon_versioning=no
13590     case `$LD -v 2>&1` in
13591       *GNU\ gold*) supports_anon_versioning=yes ;;
13592       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13593       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13594       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13595       *\ 2.11.*) ;; # other 2.11 versions
13596       *) supports_anon_versioning=yes ;;
13597     esac
13598
13599     # See if GNU ld supports shared libraries.
13600     case $host_os in
13601     aix[3-9]*)
13602       # On AIX/PPC, the GNU linker is very broken
13603       if test "$host_cpu" != ia64; then
13604         ld_shlibs=no
13605         cat <<_LT_EOF 1>&2
13606
13607 *** Warning: the GNU linker, at least up to release 2.19, is reported
13608 *** to be unable to reliably create shared libraries on AIX.
13609 *** Therefore, libtool is disabling shared libraries support.  If you
13610 *** really care for shared libraries, you may want to install binutils
13611 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13612 *** You will then need to restart the configuration process.
13613
13614 _LT_EOF
13615       fi
13616       ;;
13617
13618     amigaos*)
13619       case $host_cpu in
13620       powerpc)
13621             # see comment about AmigaOS4 .so support
13622             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623             archive_expsym_cmds=''
13624         ;;
13625       m68k)
13626             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)'
13627             hardcode_libdir_flag_spec='-L$libdir'
13628             hardcode_minus_L=yes
13629         ;;
13630       esac
13631       ;;
13632
13633     beos*)
13634       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13635         allow_undefined_flag=unsupported
13636         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13637         # support --undefined.  This deserves some investigation.  FIXME
13638         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639       else
13640         ld_shlibs=no
13641       fi
13642       ;;
13643
13644     cygwin* | mingw* | pw32* | cegcc*)
13645       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13646       # as there is no search path for DLLs.
13647       hardcode_libdir_flag_spec='-L$libdir'
13648       export_dynamic_flag_spec='${wl}--export-all-symbols'
13649       allow_undefined_flag=unsupported
13650       always_export_symbols=no
13651       enable_shared_with_static_runtimes=yes
13652       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'
13653       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13654
13655       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13656         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13657         # If the export-symbols file already is a .def file (1st line
13658         # is EXPORTS), use it as is; otherwise, prepend...
13659         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13660           cp $export_symbols $output_objdir/$soname.def;
13661         else
13662           echo EXPORTS > $output_objdir/$soname.def;
13663           cat $export_symbols >> $output_objdir/$soname.def;
13664         fi~
13665         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13666       else
13667         ld_shlibs=no
13668       fi
13669       ;;
13670
13671     haiku*)
13672       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673       link_all_deplibs=yes
13674       ;;
13675
13676     interix[3-9]*)
13677       hardcode_direct=no
13678       hardcode_shlibpath_var=no
13679       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13680       export_dynamic_flag_spec='${wl}-E'
13681       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13682       # Instead, shared libraries are loaded at an image base (0x10000000 by
13683       # default) and relocated if they conflict, which is a slow very memory
13684       # consuming and fragmenting process.  To avoid this, we pick a random,
13685       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13686       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13687       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13688       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'
13689       ;;
13690
13691     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13692       tmp_diet=no
13693       if test "$host_os" = linux-dietlibc; then
13694         case $cc_basename in
13695           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13696         esac
13697       fi
13698       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13699          && test "$tmp_diet" = no
13700       then
13701         tmp_addflag=' $pic_flag'
13702         tmp_sharedflag='-shared'
13703         case $cc_basename,$host_cpu in
13704         pgcc*)                          # Portland Group C compiler
13705           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'
13706           tmp_addflag=' $pic_flag'
13707           ;;
13708         pgf77* | pgf90* | pgf95* | pgfortran*)
13709                                         # Portland Group f77 and f90 compilers
13710           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'
13711           tmp_addflag=' $pic_flag -Mnomain' ;;
13712         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13713           tmp_addflag=' -i_dynamic' ;;
13714         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13715           tmp_addflag=' -i_dynamic -nofor_main' ;;
13716         ifc* | ifort*)                  # Intel Fortran compiler
13717           tmp_addflag=' -nofor_main' ;;
13718         lf95*)                          # Lahey Fortran 8.1
13719           whole_archive_flag_spec=
13720           tmp_sharedflag='--shared' ;;
13721         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13722           tmp_sharedflag='-qmkshrobj'
13723           tmp_addflag= ;;
13724         nvcc*)  # Cuda Compiler Driver 2.2
13725           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'
13726           compiler_needs_object=yes
13727           ;;
13728         esac
13729         case `$CC -V 2>&1 | sed 5q` in
13730         *Sun\ C*)                       # Sun C 5.9
13731           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'
13732           compiler_needs_object=yes
13733           tmp_sharedflag='-G' ;;
13734         *Sun\ F*)                       # Sun Fortran 8.3
13735           tmp_sharedflag='-G' ;;
13736         esac
13737         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738
13739         if test "x$supports_anon_versioning" = xyes; then
13740           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13741             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13742             echo "local: *; };" >> $output_objdir/$libname.ver~
13743             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13744         fi
13745
13746         case $cc_basename in
13747         xlf* | bgf* | bgxlf* | mpixlf*)
13748           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13749           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13750           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13751           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13752           if test "x$supports_anon_versioning" = xyes; then
13753             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13754               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13755               echo "local: *; };" >> $output_objdir/$libname.ver~
13756               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13757           fi
13758           ;;
13759         esac
13760       else
13761         ld_shlibs=no
13762       fi
13763       ;;
13764
13765     netbsd*)
13766       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13767         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13768         wlarc=
13769       else
13770         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13772       fi
13773       ;;
13774
13775     solaris*)
13776       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13777         ld_shlibs=no
13778         cat <<_LT_EOF 1>&2
13779
13780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13781 *** create shared libraries on Solaris systems.  Therefore, libtool
13782 *** is disabling shared libraries support.  We urge you to upgrade GNU
13783 *** binutils to release 2.9.1 or newer.  Another option is to modify
13784 *** your PATH or compiler configuration so that the native linker is
13785 *** used, and then restart.
13786
13787 _LT_EOF
13788       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13789         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13791       else
13792         ld_shlibs=no
13793       fi
13794       ;;
13795
13796     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13797       case `$LD -v 2>&1` in
13798         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13799         ld_shlibs=no
13800         cat <<_LT_EOF 1>&2
13801
13802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13803 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13804 *** is disabling shared libraries support.  We urge you to upgrade GNU
13805 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13806 *** your PATH or compiler configuration so that the native linker is
13807 *** used, and then restart.
13808
13809 _LT_EOF
13810         ;;
13811         *)
13812           # For security reasons, it is highly recommended that you always
13813           # use absolute paths for naming shared libraries, and exclude the
13814           # DT_RUNPATH tag from executables and libraries.  But doing so
13815           # requires that you compile everything twice, which is a pain.
13816           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13817             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13818             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13820           else
13821             ld_shlibs=no
13822           fi
13823         ;;
13824       esac
13825       ;;
13826
13827     sunos4*)
13828       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13829       wlarc=
13830       hardcode_direct=yes
13831       hardcode_shlibpath_var=no
13832       ;;
13833
13834     *)
13835       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13837         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13838       else
13839         ld_shlibs=no
13840       fi
13841       ;;
13842     esac
13843
13844     if test "$ld_shlibs" = no; then
13845       runpath_var=
13846       hardcode_libdir_flag_spec=
13847       export_dynamic_flag_spec=
13848       whole_archive_flag_spec=
13849     fi
13850   else
13851     # PORTME fill in a description of your system's linker (not GNU ld)
13852     case $host_os in
13853     aix3*)
13854       allow_undefined_flag=unsupported
13855       always_export_symbols=yes
13856       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'
13857       # Note: this linker hardcodes the directories in LIBPATH if there
13858       # are no directories specified by -L.
13859       hardcode_minus_L=yes
13860       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13861         # Neither direct hardcoding nor static linking is supported with a
13862         # broken collect2.
13863         hardcode_direct=unsupported
13864       fi
13865       ;;
13866
13867     aix[4-9]*)
13868       if test "$host_cpu" = ia64; then
13869         # On IA64, the linker does run time linking by default, so we don't
13870         # have to do anything special.
13871         aix_use_runtimelinking=no
13872         exp_sym_flag='-Bexport'
13873         no_entry_flag=""
13874       else
13875         # If we're using GNU nm, then we don't want the "-C" option.
13876         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13877         # Also, AIX nm treats weak defined symbols like other global
13878         # defined symbols, whereas GNU nm marks them as "W".
13879         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13880           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13881         else
13882           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13883         fi
13884         aix_use_runtimelinking=no
13885
13886         # Test if we are trying to use run time linking or normal
13887         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13888         # need to do runtime linking.
13889         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13890           for ld_flag in $LDFLAGS; do
13891           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13892             aix_use_runtimelinking=yes
13893             break
13894           fi
13895           done
13896           ;;
13897         esac
13898
13899         exp_sym_flag='-bexport'
13900         no_entry_flag='-bnoentry'
13901       fi
13902
13903       # When large executables or shared objects are built, AIX ld can
13904       # have problems creating the table of contents.  If linking a library
13905       # or program results in "error TOC overflow" add -mminimal-toc to
13906       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13907       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13908
13909       archive_cmds=''
13910       hardcode_direct=yes
13911       hardcode_direct_absolute=yes
13912       hardcode_libdir_separator=':'
13913       link_all_deplibs=yes
13914       file_list_spec='${wl}-f,'
13915
13916       if test "$GCC" = yes; then
13917         case $host_os in aix4.[012]|aix4.[012].*)
13918         # We only want to do this on AIX 4.2 and lower, the check
13919         # below for broken collect2 doesn't work under 4.3+
13920           collect2name=`${CC} -print-prog-name=collect2`
13921           if test -f "$collect2name" &&
13922            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13923           then
13924           # We have reworked collect2
13925           :
13926           else
13927           # We have old collect2
13928           hardcode_direct=unsupported
13929           # It fails to find uninstalled libraries when the uninstalled
13930           # path is not listed in the libpath.  Setting hardcode_minus_L
13931           # to unsupported forces relinking
13932           hardcode_minus_L=yes
13933           hardcode_libdir_flag_spec='-L$libdir'
13934           hardcode_libdir_separator=
13935           fi
13936           ;;
13937         esac
13938         shared_flag='-shared'
13939         if test "$aix_use_runtimelinking" = yes; then
13940           shared_flag="$shared_flag "'${wl}-G'
13941         fi
13942       else
13943         # not using gcc
13944         if test "$host_cpu" = ia64; then
13945         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13946         # chokes on -Wl,-G. The following line is correct:
13947           shared_flag='-G'
13948         else
13949           if test "$aix_use_runtimelinking" = yes; then
13950             shared_flag='${wl}-G'
13951           else
13952             shared_flag='${wl}-bM:SRE'
13953           fi
13954         fi
13955       fi
13956
13957       export_dynamic_flag_spec='${wl}-bexpall'
13958       # It seems that -bexpall does not export symbols beginning with
13959       # underscore (_), so it is better to generate a list of symbols to export.
13960       always_export_symbols=yes
13961       if test "$aix_use_runtimelinking" = yes; then
13962         # Warning - without using the other runtime loading flags (-brtl),
13963         # -berok will link without error, but may produce a broken library.
13964         allow_undefined_flag='-berok'
13965         # Determine the default libpath from the value encoded in an
13966         # empty executable.
13967         if test "${lt_cv_aix_libpath+set}" = set; then
13968   aix_libpath=$lt_cv_aix_libpath
13969 else
13970   if ${lt_cv_aix_libpath_+:} false; then :
13971   $as_echo_n "(cached) " >&6
13972 else
13973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h.  */
13975
13976 int
13977 main ()
13978 {
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985
13986   lt_aix_libpath_sed='
13987       /Import File Strings/,/^$/ {
13988           /^0/ {
13989               s/^0  *\([^ ]*\) *$/\1/
13990               p
13991           }
13992       }'
13993   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994   # Check for a 64-bit object if we didn't find anything.
13995   if test -z "$lt_cv_aix_libpath_"; then
13996     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13997   fi
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext \
14000     conftest$ac_exeext conftest.$ac_ext
14001   if test -z "$lt_cv_aix_libpath_"; then
14002     lt_cv_aix_libpath_="/usr/lib:/lib"
14003   fi
14004
14005 fi
14006
14007   aix_libpath=$lt_cv_aix_libpath_
14008 fi
14009
14010         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14011         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14012       else
14013         if test "$host_cpu" = ia64; then
14014           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14015           allow_undefined_flag="-z nodefs"
14016           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"
14017         else
14018          # Determine the default libpath from the value encoded in an
14019          # empty executable.
14020          if test "${lt_cv_aix_libpath+set}" = set; then
14021   aix_libpath=$lt_cv_aix_libpath
14022 else
14023   if ${lt_cv_aix_libpath_+:} false; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h.  */
14028
14029 int
14030 main ()
14031 {
14032
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 if ac_fn_c_try_link "$LINENO"; then :
14038
14039   lt_aix_libpath_sed='
14040       /Import File Strings/,/^$/ {
14041           /^0/ {
14042               s/^0  *\([^ ]*\) *$/\1/
14043               p
14044           }
14045       }'
14046   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14047   # Check for a 64-bit object if we didn't find anything.
14048   if test -z "$lt_cv_aix_libpath_"; then
14049     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14050   fi
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext \
14053     conftest$ac_exeext conftest.$ac_ext
14054   if test -z "$lt_cv_aix_libpath_"; then
14055     lt_cv_aix_libpath_="/usr/lib:/lib"
14056   fi
14057
14058 fi
14059
14060   aix_libpath=$lt_cv_aix_libpath_
14061 fi
14062
14063          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14064           # Warning - without using the other run time loading flags,
14065           # -berok will link without error, but may produce a broken library.
14066           no_undefined_flag=' ${wl}-bernotok'
14067           allow_undefined_flag=' ${wl}-berok'
14068           if test "$with_gnu_ld" = yes; then
14069             # We only use this code for GNU lds that support --whole-archive.
14070             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14071           else
14072             # Exported symbols can be pulled into shared objects from archives
14073             whole_archive_flag_spec='$convenience'
14074           fi
14075           archive_cmds_need_lc=yes
14076           # This is similar to how AIX traditionally builds its shared libraries.
14077           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14078         fi
14079       fi
14080       ;;
14081
14082     amigaos*)
14083       case $host_cpu in
14084       powerpc)
14085             # see comment about AmigaOS4 .so support
14086             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087             archive_expsym_cmds=''
14088         ;;
14089       m68k)
14090             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)'
14091             hardcode_libdir_flag_spec='-L$libdir'
14092             hardcode_minus_L=yes
14093         ;;
14094       esac
14095       ;;
14096
14097     bsdi[45]*)
14098       export_dynamic_flag_spec=-rdynamic
14099       ;;
14100
14101     cygwin* | mingw* | pw32* | cegcc*)
14102       # When not using gcc, we currently assume that we are using
14103       # Microsoft Visual C++.
14104       # hardcode_libdir_flag_spec is actually meaningless, as there is
14105       # no search path for DLLs.
14106       case $cc_basename in
14107       cl*)
14108         # Native MSVC
14109         hardcode_libdir_flag_spec=' '
14110         allow_undefined_flag=unsupported
14111         always_export_symbols=yes
14112         file_list_spec='@'
14113         # Tell ltmain to make .lib files, not .a files.
14114         libext=lib
14115         # Tell ltmain to make .dll files, not .so files.
14116         shrext_cmds=".dll"
14117         # FIXME: Setting linknames here is a bad hack.
14118         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14119         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14120             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14121           else
14122             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14123           fi~
14124           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14125           linknames='
14126         # The linker will not automatically build a static lib if we build a DLL.
14127         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14128         enable_shared_with_static_runtimes=yes
14129         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14130         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14131         # Don't use ranlib
14132         old_postinstall_cmds='chmod 644 $oldlib'
14133         postlink_cmds='lt_outputfile="@OUTPUT@"~
14134           lt_tool_outputfile="@TOOL_OUTPUT@"~
14135           case $lt_outputfile in
14136             *.exe|*.EXE) ;;
14137             *)
14138               lt_outputfile="$lt_outputfile.exe"
14139               lt_tool_outputfile="$lt_tool_outputfile.exe"
14140               ;;
14141           esac~
14142           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14143             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14144             $RM "$lt_outputfile.manifest";
14145           fi'
14146         ;;
14147       *)
14148         # Assume MSVC wrapper
14149         hardcode_libdir_flag_spec=' '
14150         allow_undefined_flag=unsupported
14151         # Tell ltmain to make .lib files, not .a files.
14152         libext=lib
14153         # Tell ltmain to make .dll files, not .so files.
14154         shrext_cmds=".dll"
14155         # FIXME: Setting linknames here is a bad hack.
14156         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14157         # The linker will automatically build a .lib file if we build a DLL.
14158         old_archive_from_new_cmds='true'
14159         # FIXME: Should let the user specify the lib program.
14160         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14161         enable_shared_with_static_runtimes=yes
14162         ;;
14163       esac
14164       ;;
14165
14166     darwin* | rhapsody*)
14167
14168
14169   archive_cmds_need_lc=no
14170   hardcode_direct=no
14171   hardcode_automatic=yes
14172   hardcode_shlibpath_var=unsupported
14173   if test "$lt_cv_ld_force_load" = "yes"; then
14174     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\"`'
14175
14176   else
14177     whole_archive_flag_spec=''
14178   fi
14179   link_all_deplibs=yes
14180   allow_undefined_flag="$_lt_dar_allow_undefined"
14181   case $cc_basename in
14182      ifort*) _lt_dar_can_shared=yes ;;
14183      *) _lt_dar_can_shared=$GCC ;;
14184   esac
14185   if test "$_lt_dar_can_shared" = "yes"; then
14186     output_verbose_link_cmd=func_echo_all
14187     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14188     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14189     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}"
14190     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}"
14191
14192   else
14193   ld_shlibs=no
14194   fi
14195
14196       ;;
14197
14198     dgux*)
14199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200       hardcode_libdir_flag_spec='-L$libdir'
14201       hardcode_shlibpath_var=no
14202       ;;
14203
14204     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14205     # support.  Future versions do this automatically, but an explicit c++rt0.o
14206     # does not break anything, and helps significantly (at the cost of a little
14207     # extra space).
14208     freebsd2.2*)
14209       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14210       hardcode_libdir_flag_spec='-R$libdir'
14211       hardcode_direct=yes
14212       hardcode_shlibpath_var=no
14213       ;;
14214
14215     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14216     freebsd2.*)
14217       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14218       hardcode_direct=yes
14219       hardcode_minus_L=yes
14220       hardcode_shlibpath_var=no
14221       ;;
14222
14223     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14224     freebsd* | dragonfly*)
14225       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14226       hardcode_libdir_flag_spec='-R$libdir'
14227       hardcode_direct=yes
14228       hardcode_shlibpath_var=no
14229       ;;
14230
14231     hpux9*)
14232       if test "$GCC" = yes; then
14233         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14234       else
14235         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14236       fi
14237       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14238       hardcode_libdir_separator=:
14239       hardcode_direct=yes
14240
14241       # hardcode_minus_L: Not really in the search PATH,
14242       # but as the default location of the library.
14243       hardcode_minus_L=yes
14244       export_dynamic_flag_spec='${wl}-E'
14245       ;;
14246
14247     hpux10*)
14248       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14249         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14250       else
14251         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14252       fi
14253       if test "$with_gnu_ld" = no; then
14254         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14255         hardcode_libdir_separator=:
14256         hardcode_direct=yes
14257         hardcode_direct_absolute=yes
14258         export_dynamic_flag_spec='${wl}-E'
14259         # hardcode_minus_L: Not really in the search PATH,
14260         # but as the default location of the library.
14261         hardcode_minus_L=yes
14262       fi
14263       ;;
14264
14265     hpux11*)
14266       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14267         case $host_cpu in
14268         hppa*64*)
14269           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270           ;;
14271         ia64*)
14272           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14273           ;;
14274         *)
14275           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14276           ;;
14277         esac
14278       else
14279         case $host_cpu in
14280         hppa*64*)
14281           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14282           ;;
14283         ia64*)
14284           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14285           ;;
14286         *)
14287
14288           # Older versions of the 11.00 compiler do not understand -b yet
14289           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14290           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14291 $as_echo_n "checking if $CC understands -b... " >&6; }
14292 if ${lt_cv_prog_compiler__b+:} false; then :
14293   $as_echo_n "(cached) " >&6
14294 else
14295   lt_cv_prog_compiler__b=no
14296    save_LDFLAGS="$LDFLAGS"
14297    LDFLAGS="$LDFLAGS -b"
14298    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14299    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14300      # The linker can only warn and ignore the option if not recognized
14301      # So say no if there are warnings
14302      if test -s conftest.err; then
14303        # Append any errors to the config.log.
14304        cat conftest.err 1>&5
14305        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14306        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14307        if diff conftest.exp conftest.er2 >/dev/null; then
14308          lt_cv_prog_compiler__b=yes
14309        fi
14310      else
14311        lt_cv_prog_compiler__b=yes
14312      fi
14313    fi
14314    $RM -r conftest*
14315    LDFLAGS="$save_LDFLAGS"
14316
14317 fi
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14319 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14320
14321 if test x"$lt_cv_prog_compiler__b" = xyes; then
14322     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14323 else
14324     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14325 fi
14326
14327           ;;
14328         esac
14329       fi
14330       if test "$with_gnu_ld" = no; then
14331         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14332         hardcode_libdir_separator=:
14333
14334         case $host_cpu in
14335         hppa*64*|ia64*)
14336           hardcode_direct=no
14337           hardcode_shlibpath_var=no
14338           ;;
14339         *)
14340           hardcode_direct=yes
14341           hardcode_direct_absolute=yes
14342           export_dynamic_flag_spec='${wl}-E'
14343
14344           # hardcode_minus_L: Not really in the search PATH,
14345           # but as the default location of the library.
14346           hardcode_minus_L=yes
14347           ;;
14348         esac
14349       fi
14350       ;;
14351
14352     irix5* | irix6* | nonstopux*)
14353       if test "$GCC" = yes; then
14354         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'
14355         # Try to use the -exported_symbol ld option, if it does not
14356         # work, assume that -exports_file does not work either and
14357         # implicitly export all symbols.
14358         # This should be the same for all languages, so no per-tag cache variable.
14359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14360 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14361 if ${lt_cv_irix_exported_symbol+:} false; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   save_LDFLAGS="$LDFLAGS"
14365            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14366            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h.  */
14368 int foo (void) { return 0; }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"; then :
14371   lt_cv_irix_exported_symbol=yes
14372 else
14373   lt_cv_irix_exported_symbol=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext \
14376     conftest$ac_exeext conftest.$ac_ext
14377            LDFLAGS="$save_LDFLAGS"
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14380 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14381         if test "$lt_cv_irix_exported_symbol" = yes; then
14382           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'
14383         fi
14384       else
14385         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'
14386         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'
14387       fi
14388       archive_cmds_need_lc='no'
14389       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14390       hardcode_libdir_separator=:
14391       inherit_rpath=yes
14392       link_all_deplibs=yes
14393       ;;
14394
14395     netbsd*)
14396       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14397         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14398       else
14399         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14400       fi
14401       hardcode_libdir_flag_spec='-R$libdir'
14402       hardcode_direct=yes
14403       hardcode_shlibpath_var=no
14404       ;;
14405
14406     newsos6)
14407       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408       hardcode_direct=yes
14409       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14410       hardcode_libdir_separator=:
14411       hardcode_shlibpath_var=no
14412       ;;
14413
14414     *nto* | *qnx*)
14415       ;;
14416
14417     openbsd*)
14418       if test -f /usr/libexec/ld.so; then
14419         hardcode_direct=yes
14420         hardcode_shlibpath_var=no
14421         hardcode_direct_absolute=yes
14422         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14423           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14424           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14425           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14426           export_dynamic_flag_spec='${wl}-E'
14427         else
14428           case $host_os in
14429            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14430              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14431              hardcode_libdir_flag_spec='-R$libdir'
14432              ;;
14433            *)
14434              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14435              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14436              ;;
14437           esac
14438         fi
14439       else
14440         ld_shlibs=no
14441       fi
14442       ;;
14443
14444     os2*)
14445       hardcode_libdir_flag_spec='-L$libdir'
14446       hardcode_minus_L=yes
14447       allow_undefined_flag=unsupported
14448       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14449       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14450       ;;
14451
14452     osf3*)
14453       if test "$GCC" = yes; then
14454         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14455         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'
14456       else
14457         allow_undefined_flag=' -expect_unresolved \*'
14458         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'
14459       fi
14460       archive_cmds_need_lc='no'
14461       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14462       hardcode_libdir_separator=:
14463       ;;
14464
14465     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14466       if test "$GCC" = yes; then
14467         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14468         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'
14469         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14470       else
14471         allow_undefined_flag=' -expect_unresolved \*'
14472         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'
14473         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~
14474         $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'
14475
14476         # Both c and cxx compiler support -rpath directly
14477         hardcode_libdir_flag_spec='-rpath $libdir'
14478       fi
14479       archive_cmds_need_lc='no'
14480       hardcode_libdir_separator=:
14481       ;;
14482
14483     solaris*)
14484       no_undefined_flag=' -z defs'
14485       if test "$GCC" = yes; then
14486         wlarc='${wl}'
14487         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14488         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14489           $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'
14490       else
14491         case `$CC -V 2>&1` in
14492         *"Compilers 5.0"*)
14493           wlarc=''
14494           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14495           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14496           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14497           ;;
14498         *)
14499           wlarc='${wl}'
14500           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14501           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14503           ;;
14504         esac
14505       fi
14506       hardcode_libdir_flag_spec='-R$libdir'
14507       hardcode_shlibpath_var=no
14508       case $host_os in
14509       solaris2.[0-5] | solaris2.[0-5].*) ;;
14510       *)
14511         # The compiler driver will combine and reorder linker options,
14512         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14513         # but is careful enough not to reorder.
14514         # Supported since Solaris 2.6 (maybe 2.5.1?)
14515         if test "$GCC" = yes; then
14516           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14517         else
14518           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14519         fi
14520         ;;
14521       esac
14522       link_all_deplibs=yes
14523       ;;
14524
14525     sunos4*)
14526       if test "x$host_vendor" = xsequent; then
14527         # Use $CC to link under sequent, because it throws in some extra .o
14528         # files that make .init and .fini sections work.
14529         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14530       else
14531         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14532       fi
14533       hardcode_libdir_flag_spec='-L$libdir'
14534       hardcode_direct=yes
14535       hardcode_minus_L=yes
14536       hardcode_shlibpath_var=no
14537       ;;
14538
14539     sysv4)
14540       case $host_vendor in
14541         sni)
14542           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14543           hardcode_direct=yes # is this really true???
14544         ;;
14545         siemens)
14546           ## LD is ld it makes a PLAMLIB
14547           ## CC just makes a GrossModule.
14548           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14549           reload_cmds='$CC -r -o $output$reload_objs'
14550           hardcode_direct=no
14551         ;;
14552         motorola)
14553           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14555         ;;
14556       esac
14557       runpath_var='LD_RUN_PATH'
14558       hardcode_shlibpath_var=no
14559       ;;
14560
14561     sysv4.3*)
14562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14563       hardcode_shlibpath_var=no
14564       export_dynamic_flag_spec='-Bexport'
14565       ;;
14566
14567     sysv4*MP*)
14568       if test -d /usr/nec; then
14569         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14570         hardcode_shlibpath_var=no
14571         runpath_var=LD_RUN_PATH
14572         hardcode_runpath_var=yes
14573         ld_shlibs=yes
14574       fi
14575       ;;
14576
14577     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14578       no_undefined_flag='${wl}-z,text'
14579       archive_cmds_need_lc=no
14580       hardcode_shlibpath_var=no
14581       runpath_var='LD_RUN_PATH'
14582
14583       if test "$GCC" = yes; then
14584         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14586       else
14587         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14589       fi
14590       ;;
14591
14592     sysv5* | sco3.2v5* | sco5v6*)
14593       # Note: We can NOT use -z defs as we might desire, because we do not
14594       # link with -lc, and that would cause any symbols used from libc to
14595       # always be unresolved, which means just about no library would
14596       # ever link correctly.  If we're not using GNU ld we use -z text
14597       # though, which does catch some bad symbols but isn't as heavy-handed
14598       # as -z defs.
14599       no_undefined_flag='${wl}-z,text'
14600       allow_undefined_flag='${wl}-z,nodefs'
14601       archive_cmds_need_lc=no
14602       hardcode_shlibpath_var=no
14603       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14604       hardcode_libdir_separator=':'
14605       link_all_deplibs=yes
14606       export_dynamic_flag_spec='${wl}-Bexport'
14607       runpath_var='LD_RUN_PATH'
14608
14609       if test "$GCC" = yes; then
14610         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14611         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14612       else
14613         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14614         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14615       fi
14616       ;;
14617
14618     uts4*)
14619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620       hardcode_libdir_flag_spec='-L$libdir'
14621       hardcode_shlibpath_var=no
14622       ;;
14623
14624     *)
14625       ld_shlibs=no
14626       ;;
14627     esac
14628
14629     if test x$host_vendor = xsni; then
14630       case $host in
14631       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14632         export_dynamic_flag_spec='${wl}-Blargedynsym'
14633         ;;
14634       esac
14635     fi
14636   fi
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14639 $as_echo "$ld_shlibs" >&6; }
14640 test "$ld_shlibs" = no && can_build_shared=no
14641
14642 with_gnu_ld=$with_gnu_ld
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 #
14659 # Do we need to explicitly link libc?
14660 #
14661 case "x$archive_cmds_need_lc" in
14662 x|xyes)
14663   # Assume -lc should be added
14664   archive_cmds_need_lc=yes
14665
14666   if test "$enable_shared" = yes && test "$GCC" = yes; then
14667     case $archive_cmds in
14668     *'~'*)
14669       # FIXME: we may have to deal with multi-command sequences.
14670       ;;
14671     '$CC '*)
14672       # Test whether the compiler implicitly links with -lc since on some
14673       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14674       # to ld, don't add -lc before -lgcc.
14675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14676 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14677 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14678   $as_echo_n "(cached) " >&6
14679 else
14680   $RM conftest*
14681         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682
14683         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14684   (eval $ac_compile) 2>&5
14685   ac_status=$?
14686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687   test $ac_status = 0; } 2>conftest.err; then
14688           soname=conftest
14689           lib=conftest
14690           libobjs=conftest.$ac_objext
14691           deplibs=
14692           wl=$lt_prog_compiler_wl
14693           pic_flag=$lt_prog_compiler_pic
14694           compiler_flags=-v
14695           linker_flags=-v
14696           verstring=
14697           output_objdir=.
14698           libname=conftest
14699           lt_save_allow_undefined_flag=$allow_undefined_flag
14700           allow_undefined_flag=
14701           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14702   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14703   ac_status=$?
14704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705   test $ac_status = 0; }
14706           then
14707             lt_cv_archive_cmds_need_lc=no
14708           else
14709             lt_cv_archive_cmds_need_lc=yes
14710           fi
14711           allow_undefined_flag=$lt_save_allow_undefined_flag
14712         else
14713           cat conftest.err 1>&5
14714         fi
14715         $RM conftest*
14716
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14719 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14720       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14721       ;;
14722     esac
14723   fi
14724   ;;
14725 esac
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14880
14881 if test "$GCC" = yes; then
14882   case $host_os in
14883     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14884     *) lt_awk_arg="/^libraries:/" ;;
14885   esac
14886   case $host_os in
14887     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14888     *) lt_sed_strip_eq="s,=/,/,g" ;;
14889   esac
14890   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14891   case $lt_search_path_spec in
14892   *\;*)
14893     # if the path contains ";" then we assume it to be the separator
14894     # otherwise default to the standard path separator (i.e. ":") - it is
14895     # assumed that no part of a normal pathname contains ";" but that should
14896     # okay in the real world where ";" in dirpaths is itself problematic.
14897     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14898     ;;
14899   *)
14900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14901     ;;
14902   esac
14903   # Ok, now we have the path, separated by spaces, we can step through it
14904   # and add multilib dir if necessary.
14905   lt_tmp_lt_search_path_spec=
14906   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14907   for lt_sys_path in $lt_search_path_spec; do
14908     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14909       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14910     else
14911       test -d "$lt_sys_path" && \
14912         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14913     fi
14914   done
14915   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14916 BEGIN {RS=" "; FS="/|\n";} {
14917   lt_foo="";
14918   lt_count=0;
14919   for (lt_i = NF; lt_i > 0; lt_i--) {
14920     if ($lt_i != "" && $lt_i != ".") {
14921       if ($lt_i == "..") {
14922         lt_count++;
14923       } else {
14924         if (lt_count == 0) {
14925           lt_foo="/" $lt_i lt_foo;
14926         } else {
14927           lt_count--;
14928         }
14929       }
14930     }
14931   }
14932   if (lt_foo != "") { lt_freq[lt_foo]++; }
14933   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14934 }'`
14935   # AWK program above erroneously prepends '/' to C:/dos/paths
14936   # for these hosts.
14937   case $host_os in
14938     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14939       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14940   esac
14941   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14942 else
14943   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14944 fi
14945 library_names_spec=
14946 libname_spec='lib$name'
14947 soname_spec=
14948 shrext_cmds=".so"
14949 postinstall_cmds=
14950 postuninstall_cmds=
14951 finish_cmds=
14952 finish_eval=
14953 shlibpath_var=
14954 shlibpath_overrides_runpath=unknown
14955 version_type=none
14956 dynamic_linker="$host_os ld.so"
14957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14958 need_lib_prefix=unknown
14959 hardcode_into_libs=no
14960
14961 # when you set need_version to no, make sure it does not cause -set_version
14962 # flags to be left without arguments
14963 need_version=unknown
14964
14965 case $host_os in
14966 aix3*)
14967   version_type=linux # correct to gnu/linux during the next big refactor
14968   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14969   shlibpath_var=LIBPATH
14970
14971   # AIX 3 has no versioning support, so we append a major version to the name.
14972   soname_spec='${libname}${release}${shared_ext}$major'
14973   ;;
14974
14975 aix[4-9]*)
14976   version_type=linux # correct to gnu/linux during the next big refactor
14977   need_lib_prefix=no
14978   need_version=no
14979   hardcode_into_libs=yes
14980   if test "$host_cpu" = ia64; then
14981     # AIX 5 supports IA64
14982     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14983     shlibpath_var=LD_LIBRARY_PATH
14984   else
14985     # With GCC up to 2.95.x, collect2 would create an import file
14986     # for dependence libraries.  The import file would start with
14987     # the line `#! .'.  This would cause the generated library to
14988     # depend on `.', always an invalid library.  This was fixed in
14989     # development snapshots of GCC prior to 3.0.
14990     case $host_os in
14991       aix4 | aix4.[01] | aix4.[01].*)
14992       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14993            echo ' yes '
14994            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14995         :
14996       else
14997         can_build_shared=no
14998       fi
14999       ;;
15000     esac
15001     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15002     # soname into executable. Probably we can add versioning support to
15003     # collect2, so additional links can be useful in future.
15004     if test "$aix_use_runtimelinking" = yes; then
15005       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15006       # instead of lib<name>.a to let people know that these are not
15007       # typical AIX shared libraries.
15008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009     else
15010       # We preserve .a as extension for shared libraries through AIX4.2
15011       # and later when we are not doing run time linking.
15012       library_names_spec='${libname}${release}.a $libname.a'
15013       soname_spec='${libname}${release}${shared_ext}$major'
15014     fi
15015     shlibpath_var=LIBPATH
15016   fi
15017   ;;
15018
15019 amigaos*)
15020   case $host_cpu in
15021   powerpc)
15022     # Since July 2007 AmigaOS4 officially supports .so libraries.
15023     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025     ;;
15026   m68k)
15027     library_names_spec='$libname.ixlibrary $libname.a'
15028     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15029     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15030     ;;
15031   esac
15032   ;;
15033
15034 beos*)
15035   library_names_spec='${libname}${shared_ext}'
15036   dynamic_linker="$host_os ld.so"
15037   shlibpath_var=LIBRARY_PATH
15038   ;;
15039
15040 bsdi[45]*)
15041   version_type=linux # correct to gnu/linux during the next big refactor
15042   need_version=no
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15046   shlibpath_var=LD_LIBRARY_PATH
15047   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15048   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15049   # the default ld.so.conf also contains /usr/contrib/lib and
15050   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15051   # libtool to hard-code these into programs
15052   ;;
15053
15054 cygwin* | mingw* | pw32* | cegcc*)
15055   version_type=windows
15056   shrext_cmds=".dll"
15057   need_version=no
15058   need_lib_prefix=no
15059
15060   case $GCC,$cc_basename in
15061   yes,*)
15062     # gcc
15063     library_names_spec='$libname.dll.a'
15064     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15065     postinstall_cmds='base_file=`basename \${file}`~
15066       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15067       dldir=$destdir/`dirname \$dlpath`~
15068       test -d \$dldir || mkdir -p \$dldir~
15069       $install_prog $dir/$dlname \$dldir/$dlname~
15070       chmod a+x \$dldir/$dlname~
15071       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15072         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15073       fi'
15074     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15075       dlpath=$dir/\$dldll~
15076        $RM \$dlpath'
15077     shlibpath_overrides_runpath=yes
15078
15079     case $host_os in
15080     cygwin*)
15081       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15082       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15083
15084       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15085       ;;
15086     mingw* | cegcc*)
15087       # MinGW DLLs use traditional 'lib' prefix
15088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15089       ;;
15090     pw32*)
15091       # pw32 DLLs use 'pw' prefix rather than 'lib'
15092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15093       ;;
15094     esac
15095     dynamic_linker='Win32 ld.exe'
15096     ;;
15097
15098   *,cl*)
15099     # Native MSVC
15100     libname_spec='$name'
15101     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15102     library_names_spec='${libname}.dll.lib'
15103
15104     case $build_os in
15105     mingw*)
15106       sys_lib_search_path_spec=
15107       lt_save_ifs=$IFS
15108       IFS=';'
15109       for lt_path in $LIB
15110       do
15111         IFS=$lt_save_ifs
15112         # Let DOS variable expansion print the short 8.3 style file name.
15113         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15114         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15115       done
15116       IFS=$lt_save_ifs
15117       # Convert to MSYS style.
15118       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15119       ;;
15120     cygwin*)
15121       # Convert to unix form, then to dos form, then back to unix form
15122       # but this time dos style (no spaces!) so that the unix form looks
15123       # like /cygdrive/c/PROGRA~1:/cygdr...
15124       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15125       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15126       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15127       ;;
15128     *)
15129       sys_lib_search_path_spec="$LIB"
15130       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15131         # It is most probably a Windows format PATH.
15132         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15133       else
15134         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15135       fi
15136       # FIXME: find the short name or the path components, as spaces are
15137       # common. (e.g. "Program Files" -> "PROGRA~1")
15138       ;;
15139     esac
15140
15141     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15142     postinstall_cmds='base_file=`basename \${file}`~
15143       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15144       dldir=$destdir/`dirname \$dlpath`~
15145       test -d \$dldir || mkdir -p \$dldir~
15146       $install_prog $dir/$dlname \$dldir/$dlname'
15147     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15148       dlpath=$dir/\$dldll~
15149        $RM \$dlpath'
15150     shlibpath_overrides_runpath=yes
15151     dynamic_linker='Win32 link.exe'
15152     ;;
15153
15154   *)
15155     # Assume MSVC wrapper
15156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15157     dynamic_linker='Win32 ld.exe'
15158     ;;
15159   esac
15160   # FIXME: first we should search . and the directory the executable is in
15161   shlibpath_var=PATH
15162   ;;
15163
15164 darwin* | rhapsody*)
15165   dynamic_linker="$host_os dyld"
15166   version_type=darwin
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15170   soname_spec='${libname}${release}${major}$shared_ext'
15171   shlibpath_overrides_runpath=yes
15172   shlibpath_var=DYLD_LIBRARY_PATH
15173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15174
15175   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15177   ;;
15178
15179 dgux*)
15180   version_type=linux # correct to gnu/linux during the next big refactor
15181   need_lib_prefix=no
15182   need_version=no
15183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184   soname_spec='${libname}${release}${shared_ext}$major'
15185   shlibpath_var=LD_LIBRARY_PATH
15186   ;;
15187
15188 freebsd* | dragonfly*)
15189   # DragonFly does not have aout.  When/if they implement a new
15190   # versioning mechanism, adjust this.
15191   if test -x /usr/bin/objformat; then
15192     objformat=`/usr/bin/objformat`
15193   else
15194     case $host_os in
15195     freebsd[23].*) objformat=aout ;;
15196     *) objformat=elf ;;
15197     esac
15198   fi
15199   version_type=freebsd-$objformat
15200   case $version_type in
15201     freebsd-elf*)
15202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15203       need_version=no
15204       need_lib_prefix=no
15205       ;;
15206     freebsd-*)
15207       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15208       need_version=yes
15209       ;;
15210   esac
15211   shlibpath_var=LD_LIBRARY_PATH
15212   case $host_os in
15213   freebsd2.*)
15214     shlibpath_overrides_runpath=yes
15215     ;;
15216   freebsd3.[01]* | freebsdelf3.[01]*)
15217     shlibpath_overrides_runpath=yes
15218     hardcode_into_libs=yes
15219     ;;
15220   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222     shlibpath_overrides_runpath=no
15223     hardcode_into_libs=yes
15224     ;;
15225   *) # from 4.6 on, and DragonFly
15226     shlibpath_overrides_runpath=yes
15227     hardcode_into_libs=yes
15228     ;;
15229   esac
15230   ;;
15231
15232 gnu*)
15233   version_type=linux # correct to gnu/linux during the next big refactor
15234   need_lib_prefix=no
15235   need_version=no
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15237   soname_spec='${libname}${release}${shared_ext}$major'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   shlibpath_overrides_runpath=no
15240   hardcode_into_libs=yes
15241   ;;
15242
15243 haiku*)
15244   version_type=linux # correct to gnu/linux during the next big refactor
15245   need_lib_prefix=no
15246   need_version=no
15247   dynamic_linker="$host_os runtime_loader"
15248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15249   soname_spec='${libname}${release}${shared_ext}$major'
15250   shlibpath_var=LIBRARY_PATH
15251   shlibpath_overrides_runpath=yes
15252   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15253   hardcode_into_libs=yes
15254   ;;
15255
15256 hpux9* | hpux10* | hpux11*)
15257   # Give a soname corresponding to the major version so that dld.sl refuses to
15258   # link against other versions.
15259   version_type=sunos
15260   need_lib_prefix=no
15261   need_version=no
15262   case $host_cpu in
15263   ia64*)
15264     shrext_cmds='.so'
15265     hardcode_into_libs=yes
15266     dynamic_linker="$host_os dld.so"
15267     shlibpath_var=LD_LIBRARY_PATH
15268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270     soname_spec='${libname}${release}${shared_ext}$major'
15271     if test "X$HPUX_IA64_MODE" = X32; then
15272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15273     else
15274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15275     fi
15276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277     ;;
15278   hppa*64*)
15279     shrext_cmds='.sl'
15280     hardcode_into_libs=yes
15281     dynamic_linker="$host_os dld.sl"
15282     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15283     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285     soname_spec='${libname}${release}${shared_ext}$major'
15286     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15287     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15288     ;;
15289   *)
15290     shrext_cmds='.sl'
15291     dynamic_linker="$host_os dld.sl"
15292     shlibpath_var=SHLIB_PATH
15293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295     soname_spec='${libname}${release}${shared_ext}$major'
15296     ;;
15297   esac
15298   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15299   postinstall_cmds='chmod 555 $lib'
15300   # or fails outright, so override atomically:
15301   install_override_mode=555
15302   ;;
15303
15304 interix[3-9]*)
15305   version_type=linux # correct to gnu/linux during the next big refactor
15306   need_lib_prefix=no
15307   need_version=no
15308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309   soname_spec='${libname}${release}${shared_ext}$major'
15310   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15311   shlibpath_var=LD_LIBRARY_PATH
15312   shlibpath_overrides_runpath=no
15313   hardcode_into_libs=yes
15314   ;;
15315
15316 irix5* | irix6* | nonstopux*)
15317   case $host_os in
15318     nonstopux*) version_type=nonstopux ;;
15319     *)
15320         if test "$lt_cv_prog_gnu_ld" = yes; then
15321                 version_type=linux # correct to gnu/linux during the next big refactor
15322         else
15323                 version_type=irix
15324         fi ;;
15325   esac
15326   need_lib_prefix=no
15327   need_version=no
15328   soname_spec='${libname}${release}${shared_ext}$major'
15329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15330   case $host_os in
15331   irix5* | nonstopux*)
15332     libsuff= shlibsuff=
15333     ;;
15334   *)
15335     case $LD in # libtool.m4 will add one of these switches to LD
15336     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15337       libsuff= shlibsuff= libmagic=32-bit;;
15338     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15339       libsuff=32 shlibsuff=N32 libmagic=N32;;
15340     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15341       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15342     *) libsuff= shlibsuff= libmagic=never-match;;
15343     esac
15344     ;;
15345   esac
15346   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15347   shlibpath_overrides_runpath=no
15348   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15349   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15350   hardcode_into_libs=yes
15351   ;;
15352
15353 # No shared lib support for Linux oldld, aout, or coff.
15354 linux*oldld* | linux*aout* | linux*coff*)
15355   dynamic_linker=no
15356   ;;
15357
15358 # This must be glibc/ELF.
15359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15360   version_type=linux # correct to gnu/linux during the next big refactor
15361   need_lib_prefix=no
15362   need_version=no
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364   soname_spec='${libname}${release}${shared_ext}$major'
15365   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15366   shlibpath_var=LD_LIBRARY_PATH
15367   shlibpath_overrides_runpath=no
15368
15369   # Some binutils ld are patched to set DT_RUNPATH
15370   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15371   $as_echo_n "(cached) " >&6
15372 else
15373   lt_cv_shlibpath_overrides_runpath=no
15374     save_LDFLAGS=$LDFLAGS
15375     save_libdir=$libdir
15376     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15377          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380
15381 int
15382 main ()
15383 {
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_link "$LINENO"; then :
15390   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15391   lt_cv_shlibpath_overrides_runpath=yes
15392 fi
15393 fi
15394 rm -f core conftest.err conftest.$ac_objext \
15395     conftest$ac_exeext conftest.$ac_ext
15396     LDFLAGS=$save_LDFLAGS
15397     libdir=$save_libdir
15398
15399 fi
15400
15401   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15402
15403   # This implies no fast_install, which is unacceptable.
15404   # Some rework will be needed to allow for fast_install
15405   # before this can be enabled.
15406   hardcode_into_libs=yes
15407
15408   # Add ABI-specific directories to the system library path.
15409   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15410
15411   # Append ld.so.conf contents to the search path
15412   if test -f /etc/ld.so.conf; then
15413     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' ' '`
15414     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15415
15416   fi
15417
15418   # We used to test for /lib/ld.so.1 and disable shared libraries on
15419   # powerpc, because MkLinux only supported shared libraries with the
15420   # GNU dynamic linker.  Since this was broken with cross compilers,
15421   # most powerpc-linux boxes support dynamic linking these days and
15422   # people can always --disable-shared, the test was removed, and we
15423   # assume the GNU/Linux dynamic linker is in use.
15424   dynamic_linker='GNU/Linux ld.so'
15425   ;;
15426
15427 netbsd*)
15428   version_type=sunos
15429   need_lib_prefix=no
15430   need_version=no
15431   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15433     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15434     dynamic_linker='NetBSD (a.out) ld.so'
15435   else
15436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15437     soname_spec='${libname}${release}${shared_ext}$major'
15438     dynamic_linker='NetBSD ld.elf_so'
15439   fi
15440   shlibpath_var=LD_LIBRARY_PATH
15441   shlibpath_overrides_runpath=yes
15442   hardcode_into_libs=yes
15443   ;;
15444
15445 newsos6)
15446   version_type=linux # correct to gnu/linux during the next big refactor
15447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   shlibpath_overrides_runpath=yes
15450   ;;
15451
15452 *nto* | *qnx*)
15453   version_type=qnx
15454   need_lib_prefix=no
15455   need_version=no
15456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457   soname_spec='${libname}${release}${shared_ext}$major'
15458   shlibpath_var=LD_LIBRARY_PATH
15459   shlibpath_overrides_runpath=no
15460   hardcode_into_libs=yes
15461   dynamic_linker='ldqnx.so'
15462   ;;
15463
15464 openbsd*)
15465   version_type=sunos
15466   sys_lib_dlsearch_path_spec="/usr/lib"
15467   need_lib_prefix=no
15468   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15469   case $host_os in
15470     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15471     *)                          need_version=no  ;;
15472   esac
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15477     case $host_os in
15478       openbsd2.[89] | openbsd2.[89].*)
15479         shlibpath_overrides_runpath=no
15480         ;;
15481       *)
15482         shlibpath_overrides_runpath=yes
15483         ;;
15484       esac
15485   else
15486     shlibpath_overrides_runpath=yes
15487   fi
15488   ;;
15489
15490 os2*)
15491   libname_spec='$name'
15492   shrext_cmds=".dll"
15493   need_lib_prefix=no
15494   library_names_spec='$libname${shared_ext} $libname.a'
15495   dynamic_linker='OS/2 ld.exe'
15496   shlibpath_var=LIBPATH
15497   ;;
15498
15499 osf3* | osf4* | osf5*)
15500   version_type=osf
15501   need_lib_prefix=no
15502   need_version=no
15503   soname_spec='${libname}${release}${shared_ext}$major'
15504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505   shlibpath_var=LD_LIBRARY_PATH
15506   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15507   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15508   ;;
15509
15510 rdos*)
15511   dynamic_linker=no
15512   ;;
15513
15514 solaris*)
15515   version_type=linux # correct to gnu/linux during the next big refactor
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   shlibpath_overrides_runpath=yes
15522   hardcode_into_libs=yes
15523   # ldd complains unless libraries are executable
15524   postinstall_cmds='chmod +x $lib'
15525   ;;
15526
15527 sunos4*)
15528   version_type=sunos
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15531   shlibpath_var=LD_LIBRARY_PATH
15532   shlibpath_overrides_runpath=yes
15533   if test "$with_gnu_ld" = yes; then
15534     need_lib_prefix=no
15535   fi
15536   need_version=yes
15537   ;;
15538
15539 sysv4 | sysv4.3*)
15540   version_type=linux # correct to gnu/linux during the next big refactor
15541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542   soname_spec='${libname}${release}${shared_ext}$major'
15543   shlibpath_var=LD_LIBRARY_PATH
15544   case $host_vendor in
15545     sni)
15546       shlibpath_overrides_runpath=no
15547       need_lib_prefix=no
15548       runpath_var=LD_RUN_PATH
15549       ;;
15550     siemens)
15551       need_lib_prefix=no
15552       ;;
15553     motorola)
15554       need_lib_prefix=no
15555       need_version=no
15556       shlibpath_overrides_runpath=no
15557       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15558       ;;
15559   esac
15560   ;;
15561
15562 sysv4*MP*)
15563   if test -d /usr/nec ;then
15564     version_type=linux # correct to gnu/linux during the next big refactor
15565     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15566     soname_spec='$libname${shared_ext}.$major'
15567     shlibpath_var=LD_LIBRARY_PATH
15568   fi
15569   ;;
15570
15571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15572   version_type=freebsd-elf
15573   need_lib_prefix=no
15574   need_version=no
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15576   soname_spec='${libname}${release}${shared_ext}$major'
15577   shlibpath_var=LD_LIBRARY_PATH
15578   shlibpath_overrides_runpath=yes
15579   hardcode_into_libs=yes
15580   if test "$with_gnu_ld" = yes; then
15581     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15582   else
15583     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15584     case $host_os in
15585       sco3.2v5*)
15586         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15587         ;;
15588     esac
15589   fi
15590   sys_lib_dlsearch_path_spec='/usr/lib'
15591   ;;
15592
15593 tpf*)
15594   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15595   version_type=linux # correct to gnu/linux during the next big refactor
15596   need_lib_prefix=no
15597   need_version=no
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599   shlibpath_var=LD_LIBRARY_PATH
15600   shlibpath_overrides_runpath=no
15601   hardcode_into_libs=yes
15602   ;;
15603
15604 uts4*)
15605   version_type=linux # correct to gnu/linux during the next big refactor
15606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607   soname_spec='${libname}${release}${shared_ext}$major'
15608   shlibpath_var=LD_LIBRARY_PATH
15609   ;;
15610
15611 *)
15612   dynamic_linker=no
15613   ;;
15614 esac
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15616 $as_echo "$dynamic_linker" >&6; }
15617 test "$dynamic_linker" = no && can_build_shared=no
15618
15619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15620 if test "$GCC" = yes; then
15621   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15622 fi
15623
15624 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15625   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15626 fi
15627 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15628   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15629 fi
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15723 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15724 hardcode_action=
15725 if test -n "$hardcode_libdir_flag_spec" ||
15726    test -n "$runpath_var" ||
15727    test "X$hardcode_automatic" = "Xyes" ; then
15728
15729   # We can hardcode non-existent directories.
15730   if test "$hardcode_direct" != no &&
15731      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15732      # have to relink, otherwise we might link with an installed library
15733      # when we should be linking with a yet-to-be-installed one
15734      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15735      test "$hardcode_minus_L" != no; then
15736     # Linking always hardcodes the temporary library directory.
15737     hardcode_action=relink
15738   else
15739     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15740     hardcode_action=immediate
15741   fi
15742 else
15743   # We cannot hardcode anything, or else we can only hardcode existing
15744   # directories.
15745   hardcode_action=unsupported
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15748 $as_echo "$hardcode_action" >&6; }
15749
15750 if test "$hardcode_action" = relink ||
15751    test "$inherit_rpath" = yes; then
15752   # Fast installation is not supported
15753   enable_fast_install=no
15754 elif test "$shlibpath_overrides_runpath" = yes ||
15755      test "$enable_shared" = no; then
15756   # Fast installation is not necessary
15757   enable_fast_install=needless
15758 fi
15759
15760
15761
15762
15763
15764
15765   if test "x$enable_dlopen" != xyes; then
15766   enable_dlopen=unknown
15767   enable_dlopen_self=unknown
15768   enable_dlopen_self_static=unknown
15769 else
15770   lt_cv_dlopen=no
15771   lt_cv_dlopen_libs=
15772
15773   case $host_os in
15774   beos*)
15775     lt_cv_dlopen="load_add_on"
15776     lt_cv_dlopen_libs=
15777     lt_cv_dlopen_self=yes
15778     ;;
15779
15780   mingw* | pw32* | cegcc*)
15781     lt_cv_dlopen="LoadLibrary"
15782     lt_cv_dlopen_libs=
15783     ;;
15784
15785   cygwin*)
15786     lt_cv_dlopen="dlopen"
15787     lt_cv_dlopen_libs=
15788     ;;
15789
15790   darwin*)
15791   # if libdl is installed we need to link against it
15792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15794 if ${ac_cv_lib_dl_dlopen+:} false; then :
15795   $as_echo_n "(cached) " >&6
15796 else
15797   ac_check_lib_save_LIBS=$LIBS
15798 LIBS="-ldl  $LIBS"
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h.  */
15801
15802 /* Override any GCC internal prototype to avoid an error.
15803    Use char because int might match the return type of a GCC
15804    builtin and then its argument prototype would still apply.  */
15805 #ifdef __cplusplus
15806 extern "C"
15807 #endif
15808 char dlopen ();
15809 int
15810 main ()
15811 {
15812 return dlopen ();
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 if ac_fn_c_try_link "$LINENO"; then :
15818   ac_cv_lib_dl_dlopen=yes
15819 else
15820   ac_cv_lib_dl_dlopen=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext \
15823     conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15828 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15830 else
15831
15832     lt_cv_dlopen="dyld"
15833     lt_cv_dlopen_libs=
15834     lt_cv_dlopen_self=yes
15835
15836 fi
15837
15838     ;;
15839
15840   *)
15841     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15842 if test "x$ac_cv_func_shl_load" = xyes; then :
15843   lt_cv_dlopen="shl_load"
15844 else
15845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15846 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15847 if ${ac_cv_lib_dld_shl_load+:} false; then :
15848   $as_echo_n "(cached) " >&6
15849 else
15850   ac_check_lib_save_LIBS=$LIBS
15851 LIBS="-ldld  $LIBS"
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h.  */
15854
15855 /* Override any GCC internal prototype to avoid an error.
15856    Use char because int might match the return type of a GCC
15857    builtin and then its argument prototype would still apply.  */
15858 #ifdef __cplusplus
15859 extern "C"
15860 #endif
15861 char shl_load ();
15862 int
15863 main ()
15864 {
15865 return shl_load ();
15866   ;
15867   return 0;
15868 }
15869 _ACEOF
15870 if ac_fn_c_try_link "$LINENO"; then :
15871   ac_cv_lib_dld_shl_load=yes
15872 else
15873   ac_cv_lib_dld_shl_load=no
15874 fi
15875 rm -f core conftest.err conftest.$ac_objext \
15876     conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15880 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15881 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15882   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15883 else
15884   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15885 if test "x$ac_cv_func_dlopen" = xyes; then :
15886   lt_cv_dlopen="dlopen"
15887 else
15888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15890 if ${ac_cv_lib_dl_dlopen+:} false; then :
15891   $as_echo_n "(cached) " >&6
15892 else
15893   ac_check_lib_save_LIBS=$LIBS
15894 LIBS="-ldl  $LIBS"
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h.  */
15897
15898 /* Override any GCC internal prototype to avoid an error.
15899    Use char because int might match the return type of a GCC
15900    builtin and then its argument prototype would still apply.  */
15901 #ifdef __cplusplus
15902 extern "C"
15903 #endif
15904 char dlopen ();
15905 int
15906 main ()
15907 {
15908 return dlopen ();
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 if ac_fn_c_try_link "$LINENO"; then :
15914   ac_cv_lib_dl_dlopen=yes
15915 else
15916   ac_cv_lib_dl_dlopen=no
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext \
15919     conftest$ac_exeext conftest.$ac_ext
15920 LIBS=$ac_check_lib_save_LIBS
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15925   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15926 else
15927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15928 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15929 if ${ac_cv_lib_svld_dlopen+:} false; then :
15930   $as_echo_n "(cached) " >&6
15931 else
15932   ac_check_lib_save_LIBS=$LIBS
15933 LIBS="-lsvld  $LIBS"
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h.  */
15936
15937 /* Override any GCC internal prototype to avoid an error.
15938    Use char because int might match the return type of a GCC
15939    builtin and then its argument prototype would still apply.  */
15940 #ifdef __cplusplus
15941 extern "C"
15942 #endif
15943 char dlopen ();
15944 int
15945 main ()
15946 {
15947 return dlopen ();
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_link "$LINENO"; then :
15953   ac_cv_lib_svld_dlopen=yes
15954 else
15955   ac_cv_lib_svld_dlopen=no
15956 fi
15957 rm -f core conftest.err conftest.$ac_objext \
15958     conftest$ac_exeext conftest.$ac_ext
15959 LIBS=$ac_check_lib_save_LIBS
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15962 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15963 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15964   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15965 else
15966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15967 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15968 if ${ac_cv_lib_dld_dld_link+:} false; then :
15969   $as_echo_n "(cached) " >&6
15970 else
15971   ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-ldld  $LIBS"
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h.  */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977    Use char because int might match the return type of a GCC
15978    builtin and then its argument prototype would still apply.  */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char dld_link ();
15983 int
15984 main ()
15985 {
15986 return dld_link ();
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"; then :
15992   ac_cv_lib_dld_dld_link=yes
15993 else
15994   ac_cv_lib_dld_dld_link=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext \
15997     conftest$ac_exeext conftest.$ac_ext
15998 LIBS=$ac_check_lib_save_LIBS
15999 fi
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16002 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16003   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16004 fi
16005
16006
16007 fi
16008
16009
16010 fi
16011
16012
16013 fi
16014
16015
16016 fi
16017
16018
16019 fi
16020
16021     ;;
16022   esac
16023
16024   if test "x$lt_cv_dlopen" != xno; then
16025     enable_dlopen=yes
16026   else
16027     enable_dlopen=no
16028   fi
16029
16030   case $lt_cv_dlopen in
16031   dlopen)
16032     save_CPPFLAGS="$CPPFLAGS"
16033     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16034
16035     save_LDFLAGS="$LDFLAGS"
16036     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16037
16038     save_LIBS="$LIBS"
16039     LIBS="$lt_cv_dlopen_libs $LIBS"
16040
16041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16043 if ${lt_cv_dlopen_self+:} false; then :
16044   $as_echo_n "(cached) " >&6
16045 else
16046           if test "$cross_compiling" = yes; then :
16047   lt_cv_dlopen_self=cross
16048 else
16049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16050   lt_status=$lt_dlunknown
16051   cat > conftest.$ac_ext <<_LT_EOF
16052 #line $LINENO "configure"
16053 #include "confdefs.h"
16054
16055 #if HAVE_DLFCN_H
16056 #include <dlfcn.h>
16057 #endif
16058
16059 #include <stdio.h>
16060
16061 #ifdef RTLD_GLOBAL
16062 #  define LT_DLGLOBAL           RTLD_GLOBAL
16063 #else
16064 #  ifdef DL_GLOBAL
16065 #    define LT_DLGLOBAL         DL_GLOBAL
16066 #  else
16067 #    define LT_DLGLOBAL         0
16068 #  endif
16069 #endif
16070
16071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16072    find out it does not work in some platform. */
16073 #ifndef LT_DLLAZY_OR_NOW
16074 #  ifdef RTLD_LAZY
16075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16076 #  else
16077 #    ifdef DL_LAZY
16078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16079 #    else
16080 #      ifdef RTLD_NOW
16081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16082 #      else
16083 #        ifdef DL_NOW
16084 #          define LT_DLLAZY_OR_NOW      DL_NOW
16085 #        else
16086 #          define LT_DLLAZY_OR_NOW      0
16087 #        endif
16088 #      endif
16089 #    endif
16090 #  endif
16091 #endif
16092
16093 /* When -fvisbility=hidden is used, assume the code has been annotated
16094    correspondingly for the symbols needed.  */
16095 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16096 int fnord () __attribute__((visibility("default")));
16097 #endif
16098
16099 int fnord () { return 42; }
16100 int main ()
16101 {
16102   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16103   int status = $lt_dlunknown;
16104
16105   if (self)
16106     {
16107       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16108       else
16109         {
16110           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16111           else puts (dlerror ());
16112         }
16113       /* dlclose (self); */
16114     }
16115   else
16116     puts (dlerror ());
16117
16118   return status;
16119 }
16120 _LT_EOF
16121   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16122   (eval $ac_link) 2>&5
16123   ac_status=$?
16124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16125   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16126     (./conftest; exit; ) >&5 2>/dev/null
16127     lt_status=$?
16128     case x$lt_status in
16129       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16130       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16131       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16132     esac
16133   else :
16134     # compilation failed
16135     lt_cv_dlopen_self=no
16136   fi
16137 fi
16138 rm -fr conftest*
16139
16140
16141 fi
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16143 $as_echo "$lt_cv_dlopen_self" >&6; }
16144
16145     if test "x$lt_cv_dlopen_self" = xyes; then
16146       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16147       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16148 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16149 if ${lt_cv_dlopen_self_static+:} false; then :
16150   $as_echo_n "(cached) " >&6
16151 else
16152           if test "$cross_compiling" = yes; then :
16153   lt_cv_dlopen_self_static=cross
16154 else
16155   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16156   lt_status=$lt_dlunknown
16157   cat > conftest.$ac_ext <<_LT_EOF
16158 #line $LINENO "configure"
16159 #include "confdefs.h"
16160
16161 #if HAVE_DLFCN_H
16162 #include <dlfcn.h>
16163 #endif
16164
16165 #include <stdio.h>
16166
16167 #ifdef RTLD_GLOBAL
16168 #  define LT_DLGLOBAL           RTLD_GLOBAL
16169 #else
16170 #  ifdef DL_GLOBAL
16171 #    define LT_DLGLOBAL         DL_GLOBAL
16172 #  else
16173 #    define LT_DLGLOBAL         0
16174 #  endif
16175 #endif
16176
16177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16178    find out it does not work in some platform. */
16179 #ifndef LT_DLLAZY_OR_NOW
16180 #  ifdef RTLD_LAZY
16181 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16182 #  else
16183 #    ifdef DL_LAZY
16184 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16185 #    else
16186 #      ifdef RTLD_NOW
16187 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16188 #      else
16189 #        ifdef DL_NOW
16190 #          define LT_DLLAZY_OR_NOW      DL_NOW
16191 #        else
16192 #          define LT_DLLAZY_OR_NOW      0
16193 #        endif
16194 #      endif
16195 #    endif
16196 #  endif
16197 #endif
16198
16199 /* When -fvisbility=hidden is used, assume the code has been annotated
16200    correspondingly for the symbols needed.  */
16201 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16202 int fnord () __attribute__((visibility("default")));
16203 #endif
16204
16205 int fnord () { return 42; }
16206 int main ()
16207 {
16208   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16209   int status = $lt_dlunknown;
16210
16211   if (self)
16212     {
16213       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16214       else
16215         {
16216           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16217           else puts (dlerror ());
16218         }
16219       /* dlclose (self); */
16220     }
16221   else
16222     puts (dlerror ());
16223
16224   return status;
16225 }
16226 _LT_EOF
16227   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16228   (eval $ac_link) 2>&5
16229   ac_status=$?
16230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16232     (./conftest; exit; ) >&5 2>/dev/null
16233     lt_status=$?
16234     case x$lt_status in
16235       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16236       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16237       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16238     esac
16239   else :
16240     # compilation failed
16241     lt_cv_dlopen_self_static=no
16242   fi
16243 fi
16244 rm -fr conftest*
16245
16246
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16249 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16250     fi
16251
16252     CPPFLAGS="$save_CPPFLAGS"
16253     LDFLAGS="$save_LDFLAGS"
16254     LIBS="$save_LIBS"
16255     ;;
16256   esac
16257
16258   case $lt_cv_dlopen_self in
16259   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16260   *) enable_dlopen_self=unknown ;;
16261   esac
16262
16263   case $lt_cv_dlopen_self_static in
16264   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16265   *) enable_dlopen_self_static=unknown ;;
16266   esac
16267 fi
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285 striplib=
16286 old_striplib=
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16288 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16289 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16290   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16291   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16293 $as_echo "yes" >&6; }
16294 else
16295 # FIXME - insert some real tests, host_os isn't really good enough
16296   case $host_os in
16297   darwin*)
16298     if test -n "$STRIP" ; then
16299       striplib="$STRIP -x"
16300       old_striplib="$STRIP -S"
16301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16303     else
16304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306     fi
16307     ;;
16308   *)
16309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16311     ;;
16312   esac
16313 fi
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326   # Report which library types will actually be built
16327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16330 $as_echo "$can_build_shared" >&6; }
16331
16332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16333 $as_echo_n "checking whether to build shared libraries... " >&6; }
16334   test "$can_build_shared" = "no" && enable_shared=no
16335
16336   # On AIX, shared libraries and static libraries use the same namespace, and
16337   # are all built from PIC.
16338   case $host_os in
16339   aix3*)
16340     test "$enable_shared" = yes && enable_static=no
16341     if test -n "$RANLIB"; then
16342       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16343       postinstall_cmds='$RANLIB $lib'
16344     fi
16345     ;;
16346
16347   aix[4-9]*)
16348     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16349       test "$enable_shared" = yes && enable_static=no
16350     fi
16351     ;;
16352   esac
16353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16354 $as_echo "$enable_shared" >&6; }
16355
16356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16357 $as_echo_n "checking whether to build static libraries... " >&6; }
16358   # Make sure either enable_shared or enable_static is yes.
16359   test "$enable_shared" = yes || enable_static=yes
16360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16361 $as_echo "$enable_static" >&6; }
16362
16363
16364
16365
16366 fi
16367 ac_ext=c
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16372
16373 CC="$lt_save_CC"
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389         ac_config_commands="$ac_config_commands libtool"
16390
16391
16392
16393
16394 # Only expand once:
16395
16396
16397
16398
16399
16400 # Define a configure option for an alternate module directory
16401
16402 # Check whether --with-xorg-module-dir was given.
16403 if test "${with_xorg_module_dir+set}" = set; then :
16404   withval=$with_xorg_module_dir; moduledir="$withval"
16405 else
16406   moduledir="$libdir/xorg/modules"
16407 fi
16408
16409 # Check whether --enable-pciaccess was given.
16410 if test "${enable_pciaccess+set}" = set; then :
16411   enableval=$enable_pciaccess; PCIACCESS=$enableval
16412 else
16413   PCIACCESS=no
16414 fi
16415
16416
16417 # Store the list of server defined optional extensions in REQUIRED_MODULES
16418
16419
16420         SAVE_CFLAGS="$CFLAGS"
16421         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16422         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h.  */
16424
16425 #include "xorg-server.h"
16426 #if !defined RANDR
16427 #error RANDR not defined
16428 #endif
16429
16430 int
16431 main ()
16432 {
16433
16434   ;
16435   return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_compile "$LINENO"; then :
16439   _EXT_CHECK=yes
16440 else
16441   _EXT_CHECK=no
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444         CFLAGS="$SAVE_CFLAGS"
16445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
16446 $as_echo_n "checking if RANDR is defined... " >&6; }
16447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16448 $as_echo "$_EXT_CHECK" >&6; }
16449         if test "$_EXT_CHECK" != no; then
16450                 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
16451         fi
16452
16453
16454
16455         SAVE_CFLAGS="$CFLAGS"
16456         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h.  */
16459
16460 #include "xorg-server.h"
16461 #if !defined RENDER
16462 #error RENDER not defined
16463 #endif
16464
16465 int
16466 main ()
16467 {
16468
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474   _EXT_CHECK=yes
16475 else
16476   _EXT_CHECK=no
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479         CFLAGS="$SAVE_CFLAGS"
16480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
16481 $as_echo_n "checking if RENDER is defined... " >&6; }
16482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16483 $as_echo "$_EXT_CHECK" >&6; }
16484         if test "$_EXT_CHECK" != no; then
16485                 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
16486         fi
16487
16488
16489
16490         SAVE_CFLAGS="$CFLAGS"
16491         CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16492         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494
16495 #include "xorg-server.h"
16496 #if !defined XV
16497 #error XV not defined
16498 #endif
16499
16500 int
16501 main ()
16502 {
16503
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 if ac_fn_c_try_compile "$LINENO"; then :
16509   _EXT_CHECK=yes
16510 else
16511   _EXT_CHECK=no
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514         CFLAGS="$SAVE_CFLAGS"
16515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
16516 $as_echo_n "checking if XV is defined... " >&6; }
16517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16518 $as_echo "$_EXT_CHECK" >&6; }
16519         if test "$_EXT_CHECK" != no; then
16520                 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
16521         fi
16522
16523
16524 # Obtain compiler/linker options for the driver dependencies
16525
16526 pkg_failed=no
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
16528 $as_echo_n "checking for XORG... " >&6; }
16529
16530 if test -n "$XORG_CFLAGS"; then
16531     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
16532  elif test -n "$PKG_CONFIG"; then
16533     if test -n "$PKG_CONFIG" && \
16534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
16535   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
16536   ac_status=$?
16537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16538   test $ac_status = 0; }; then
16539   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
16540 else
16541   pkg_failed=yes
16542 fi
16543  else
16544     pkg_failed=untried
16545 fi
16546 if test -n "$XORG_LIBS"; then
16547     pkg_cv_XORG_LIBS="$XORG_LIBS"
16548  elif test -n "$PKG_CONFIG"; then
16549     if test -n "$PKG_CONFIG" && \
16550     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
16551   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
16552   ac_status=$?
16553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554   test $ac_status = 0; }; then
16555   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
16556 else
16557   pkg_failed=yes
16558 fi
16559  else
16560     pkg_failed=untried
16561 fi
16562
16563
16564
16565 if test $pkg_failed = yes; then
16566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16568
16569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16570         _pkg_short_errors_supported=yes
16571 else
16572         _pkg_short_errors_supported=no
16573 fi
16574         if test $_pkg_short_errors_supported = yes; then
16575                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
16576         else
16577                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
16578         fi
16579         # Put the nasty error message in config.log where it belongs
16580         echo "$XORG_PKG_ERRORS" >&5
16581
16582         as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
16583
16584 $XORG_PKG_ERRORS
16585
16586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16587 installed software in a non-standard prefix.
16588
16589 Alternatively, you may set the environment variables XORG_CFLAGS
16590 and XORG_LIBS to avoid the need to call pkg-config.
16591 See the pkg-config man page for more details." "$LINENO" 5
16592
16593 elif test $pkg_failed = untried; then
16594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16598 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16599 is in your PATH or set the PKG_CONFIG environment variable to the full
16600 path to pkg-config.
16601
16602 Alternatively, you may set the environment variables XORG_CFLAGS
16603 and XORG_LIBS to avoid the need to call pkg-config.
16604 See the pkg-config man page for more details.
16605
16606 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16607 See \`config.log' for more details" "$LINENO" 5; }
16608
16609 else
16610         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
16611         XORG_LIBS=$pkg_cv_XORG_LIBS
16612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16613 $as_echo "yes" >&6; }
16614
16615 fi
16616
16617 save_CFLAGS="$CFLAGS"
16618 CFLAGS="$XORG_CFLAGS"
16619 ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
16620 "
16621 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
16622
16623 $as_echo "#define HAVE_ISA 1" >>confdefs.h
16624
16625 fi
16626
16627 CFLAGS="$save_CFLAGS"
16628
16629  if test "x$PCIACCESS" = xyes; then
16630   PCIACCESS_TRUE=
16631   PCIACCESS_FALSE='#'
16632 else
16633   PCIACCESS_TRUE='#'
16634   PCIACCESS_FALSE=
16635 fi
16636
16637 if test "x$PCIACCESS" = xyes; then
16638
16639 $as_echo "#define PCIACCESS 1" >>confdefs.h
16640
16641
16642 pkg_failed=no
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
16644 $as_echo_n "checking for PCIACCESS... " >&6; }
16645
16646 if test -n "$PCIACCESS_CFLAGS"; then
16647     pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
16648  elif test -n "$PKG_CONFIG"; then
16649     if test -n "$PKG_CONFIG" && \
16650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
16651   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
16652   ac_status=$?
16653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16654   test $ac_status = 0; }; then
16655   pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
16656 else
16657   pkg_failed=yes
16658 fi
16659  else
16660     pkg_failed=untried
16661 fi
16662 if test -n "$PCIACCESS_LIBS"; then
16663     pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
16664  elif test -n "$PKG_CONFIG"; then
16665     if test -n "$PKG_CONFIG" && \
16666     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
16667   ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
16668   ac_status=$?
16669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16670   test $ac_status = 0; }; then
16671   pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
16672 else
16673   pkg_failed=yes
16674 fi
16675  else
16676     pkg_failed=untried
16677 fi
16678
16679
16680
16681 if test $pkg_failed = yes; then
16682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16684
16685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16686         _pkg_short_errors_supported=yes
16687 else
16688         _pkg_short_errors_supported=no
16689 fi
16690         if test $_pkg_short_errors_supported = yes; then
16691                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
16692         else
16693                 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
16694         fi
16695         # Put the nasty error message in config.log where it belongs
16696         echo "$PCIACCESS_PKG_ERRORS" >&5
16697
16698         as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
16699
16700 $PCIACCESS_PKG_ERRORS
16701
16702 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16703 installed software in a non-standard prefix.
16704
16705 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
16706 and PCIACCESS_LIBS to avoid the need to call pkg-config.
16707 See the pkg-config man page for more details." "$LINENO" 5
16708
16709 elif test $pkg_failed = untried; then
16710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16714 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16715 is in your PATH or set the PKG_CONFIG environment variable to the full
16716 path to pkg-config.
16717
16718 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
16719 and PCIACCESS_LIBS to avoid the need to call pkg-config.
16720 See the pkg-config man page for more details.
16721
16722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16723 See \`config.log' for more details" "$LINENO" 5; }
16724
16725 else
16726         PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
16727         PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
16728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16729 $as_echo "yes" >&6; }
16730
16731 fi
16732     XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
16733 fi
16734
16735 # Checks for libraries.
16736
16737
16738
16739
16740 DRIVER_NAME=fbdev
16741
16742
16743 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
16744
16745 cat >confcache <<\_ACEOF
16746 # This file is a shell script that caches the results of configure
16747 # tests run on this system so they can be shared between configure
16748 # scripts and configure runs, see configure's option --config-cache.
16749 # It is not useful on other systems.  If it contains results you don't
16750 # want to keep, you may remove or edit it.
16751 #
16752 # config.status only pays attention to the cache file if you give it
16753 # the --recheck option to rerun configure.
16754 #
16755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16757 # following values.
16758
16759 _ACEOF
16760
16761 # The following way of writing the cache mishandles newlines in values,
16762 # but we know of no workaround that is simple, portable, and efficient.
16763 # So, we kill variables containing newlines.
16764 # Ultrix sh set writes to stderr and can't be redirected directly,
16765 # and sets the high bit in the cache file unless we assign to the vars.
16766 (
16767   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16768     eval ac_val=\$$ac_var
16769     case $ac_val in #(
16770     *${as_nl}*)
16771       case $ac_var in #(
16772       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16774       esac
16775       case $ac_var in #(
16776       _ | IFS | as_nl) ;; #(
16777       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16778       *) { eval $ac_var=; unset $ac_var;} ;;
16779       esac ;;
16780     esac
16781   done
16782
16783   (set) 2>&1 |
16784     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16785     *${as_nl}ac_space=\ *)
16786       # `set' does not quote correctly, so add quotes: double-quote
16787       # substitution turns \\\\ into \\, and sed turns \\ into \.
16788       sed -n \
16789         "s/'/'\\\\''/g;
16790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16791       ;; #(
16792     *)
16793       # `set' quotes correctly as required by POSIX, so do not add quotes.
16794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16795       ;;
16796     esac |
16797     sort
16798 ) |
16799   sed '
16800      /^ac_cv_env_/b end
16801      t clear
16802      :clear
16803      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16804      t end
16805      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16806      :end' >>confcache
16807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16808   if test -w "$cache_file"; then
16809     if test "x$cache_file" != "x/dev/null"; then
16810       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16811 $as_echo "$as_me: updating cache $cache_file" >&6;}
16812       if test ! -f "$cache_file" || test -h "$cache_file"; then
16813         cat confcache >"$cache_file"
16814       else
16815         case $cache_file in #(
16816         */* | ?:*)
16817           mv -f confcache "$cache_file"$$ &&
16818           mv -f "$cache_file"$$ "$cache_file" ;; #(
16819         *)
16820           mv -f confcache "$cache_file" ;;
16821         esac
16822       fi
16823     fi
16824   else
16825     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16827   fi
16828 fi
16829 rm -f confcache
16830
16831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16832 # Let make expand exec_prefix.
16833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16834
16835 DEFS=-DHAVE_CONFIG_H
16836
16837 ac_libobjs=
16838 ac_ltlibobjs=
16839 U=
16840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16841   # 1. Remove the extension, and $U if already installed.
16842   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16843   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16844   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16845   #    will be set to the directory where LIBOBJS objects are built.
16846   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16847   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16848 done
16849 LIBOBJS=$ac_libobjs
16850
16851 LTLIBOBJS=$ac_ltlibobjs
16852
16853
16854  if test -n "$EXEEXT"; then
16855   am__EXEEXT_TRUE=
16856   am__EXEEXT_FALSE='#'
16857 else
16858   am__EXEEXT_TRUE='#'
16859   am__EXEEXT_FALSE=
16860 fi
16861
16862 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16863   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16865 fi
16866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16867   as_fn_error $? "conditional \"AMDEP\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16869 fi
16870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16871   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16873 fi
16874 if test -z "${PCIACCESS_TRUE}" && test -z "${PCIACCESS_FALSE}"; then
16875   as_fn_error $? "conditional \"PCIACCESS\" was never defined.
16876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16877 fi
16878
16879 : "${CONFIG_STATUS=./config.status}"
16880 ac_write_fail=0
16881 ac_clean_files_save=$ac_clean_files
16882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16885 as_write_fail=0
16886 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16887 #! $SHELL
16888 # Generated by $as_me.
16889 # Run this file to recreate the current configuration.
16890 # Compiler output produced by configure, useful for debugging
16891 # configure, is in config.log if it exists.
16892
16893 debug=false
16894 ac_cs_recheck=false
16895 ac_cs_silent=false
16896
16897 SHELL=\${CONFIG_SHELL-$SHELL}
16898 export SHELL
16899 _ASEOF
16900 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16901 ## -------------------- ##
16902 ## M4sh Initialization. ##
16903 ## -------------------- ##
16904
16905 # Be more Bourne compatible
16906 DUALCASE=1; export DUALCASE # for MKS sh
16907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16908   emulate sh
16909   NULLCMD=:
16910   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16911   # is contrary to our usage.  Disable this feature.
16912   alias -g '${1+"$@"}'='"$@"'
16913   setopt NO_GLOB_SUBST
16914 else
16915   case `(set -o) 2>/dev/null` in #(
16916   *posix*) :
16917     set -o posix ;; #(
16918   *) :
16919      ;;
16920 esac
16921 fi
16922
16923
16924 as_nl='
16925 '
16926 export as_nl
16927 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16928 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16931 # Prefer a ksh shell builtin over an external printf program on Solaris,
16932 # but without wasting forks for bash or zsh.
16933 if test -z "$BASH_VERSION$ZSH_VERSION" \
16934     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16935   as_echo='print -r --'
16936   as_echo_n='print -rn --'
16937 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16938   as_echo='printf %s\n'
16939   as_echo_n='printf %s'
16940 else
16941   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16942     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16943     as_echo_n='/usr/ucb/echo -n'
16944   else
16945     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16946     as_echo_n_body='eval
16947       arg=$1;
16948       case $arg in #(
16949       *"$as_nl"*)
16950         expr "X$arg" : "X\\(.*\\)$as_nl";
16951         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16952       esac;
16953       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16954     '
16955     export as_echo_n_body
16956     as_echo_n='sh -c $as_echo_n_body as_echo'
16957   fi
16958   export as_echo_body
16959   as_echo='sh -c $as_echo_body as_echo'
16960 fi
16961
16962 # The user is always right.
16963 if test "${PATH_SEPARATOR+set}" != set; then
16964   PATH_SEPARATOR=:
16965   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16966     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16967       PATH_SEPARATOR=';'
16968   }
16969 fi
16970
16971
16972 # IFS
16973 # We need space, tab and new line, in precisely that order.  Quoting is
16974 # there to prevent editors from complaining about space-tab.
16975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16976 # splitting by setting IFS to empty value.)
16977 IFS=" ""        $as_nl"
16978
16979 # Find who we are.  Look in the path if we contain no directory separator.
16980 as_myself=
16981 case $0 in #((
16982   *[\\/]* ) as_myself=$0 ;;
16983   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16985 do
16986   IFS=$as_save_IFS
16987   test -z "$as_dir" && as_dir=.
16988     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16989   done
16990 IFS=$as_save_IFS
16991
16992      ;;
16993 esac
16994 # We did not find ourselves, most probably we were run as `sh COMMAND'
16995 # in which case we are not to be found in the path.
16996 if test "x$as_myself" = x; then
16997   as_myself=$0
16998 fi
16999 if test ! -f "$as_myself"; then
17000   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17001   exit 1
17002 fi
17003
17004 # Unset variables that we do not need and which cause bugs (e.g. in
17005 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17006 # suppresses any "Segmentation fault" message there.  '((' could
17007 # trigger a bug in pdksh 5.2.14.
17008 for as_var in BASH_ENV ENV MAIL MAILPATH
17009 do eval test x\${$as_var+set} = xset \
17010   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17011 done
17012 PS1='$ '
17013 PS2='> '
17014 PS4='+ '
17015
17016 # NLS nuisances.
17017 LC_ALL=C
17018 export LC_ALL
17019 LANGUAGE=C
17020 export LANGUAGE
17021
17022 # CDPATH.
17023 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17024
17025
17026 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17027 # ----------------------------------------
17028 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17029 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17030 # script with STATUS, using 1 if that was 0.
17031 as_fn_error ()
17032 {
17033   as_status=$1; test $as_status -eq 0 && as_status=1
17034   if test "$4"; then
17035     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17036     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17037   fi
17038   $as_echo "$as_me: error: $2" >&2
17039   as_fn_exit $as_status
17040 } # as_fn_error
17041
17042
17043 # as_fn_set_status STATUS
17044 # -----------------------
17045 # Set $? to STATUS, without forking.
17046 as_fn_set_status ()
17047 {
17048   return $1
17049 } # as_fn_set_status
17050
17051 # as_fn_exit STATUS
17052 # -----------------
17053 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17054 as_fn_exit ()
17055 {
17056   set +e
17057   as_fn_set_status $1
17058   exit $1
17059 } # as_fn_exit
17060
17061 # as_fn_unset VAR
17062 # ---------------
17063 # Portably unset VAR.
17064 as_fn_unset ()
17065 {
17066   { eval $1=; unset $1;}
17067 }
17068 as_unset=as_fn_unset
17069 # as_fn_append VAR VALUE
17070 # ----------------------
17071 # Append the text in VALUE to the end of the definition contained in VAR. Take
17072 # advantage of any shell optimizations that allow amortized linear growth over
17073 # repeated appends, instead of the typical quadratic growth present in naive
17074 # implementations.
17075 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17076   eval 'as_fn_append ()
17077   {
17078     eval $1+=\$2
17079   }'
17080 else
17081   as_fn_append ()
17082   {
17083     eval $1=\$$1\$2
17084   }
17085 fi # as_fn_append
17086
17087 # as_fn_arith ARG...
17088 # ------------------
17089 # Perform arithmetic evaluation on the ARGs, and store the result in the
17090 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17091 # must be portable across $(()) and expr.
17092 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17093   eval 'as_fn_arith ()
17094   {
17095     as_val=$(( $* ))
17096   }'
17097 else
17098   as_fn_arith ()
17099   {
17100     as_val=`expr "$@" || test $? -eq 1`
17101   }
17102 fi # as_fn_arith
17103
17104
17105 if expr a : '\(a\)' >/dev/null 2>&1 &&
17106    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17107   as_expr=expr
17108 else
17109   as_expr=false
17110 fi
17111
17112 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17113   as_basename=basename
17114 else
17115   as_basename=false
17116 fi
17117
17118 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17119   as_dirname=dirname
17120 else
17121   as_dirname=false
17122 fi
17123
17124 as_me=`$as_basename -- "$0" ||
17125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17126          X"$0" : 'X\(//\)$' \| \
17127          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17128 $as_echo X/"$0" |
17129     sed '/^.*\/\([^/][^/]*\)\/*$/{
17130             s//\1/
17131             q
17132           }
17133           /^X\/\(\/\/\)$/{
17134             s//\1/
17135             q
17136           }
17137           /^X\/\(\/\).*/{
17138             s//\1/
17139             q
17140           }
17141           s/.*/./; q'`
17142
17143 # Avoid depending upon Character Ranges.
17144 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17145 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17146 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17147 as_cr_digits='0123456789'
17148 as_cr_alnum=$as_cr_Letters$as_cr_digits
17149
17150 ECHO_C= ECHO_N= ECHO_T=
17151 case `echo -n x` in #(((((
17152 -n*)
17153   case `echo 'xy\c'` in
17154   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17155   xy)  ECHO_C='\c';;
17156   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17157        ECHO_T=' ';;
17158   esac;;
17159 *)
17160   ECHO_N='-n';;
17161 esac
17162
17163 rm -f conf$$ conf$$.exe conf$$.file
17164 if test -d conf$$.dir; then
17165   rm -f conf$$.dir/conf$$.file
17166 else
17167   rm -f conf$$.dir
17168   mkdir conf$$.dir 2>/dev/null
17169 fi
17170 if (echo >conf$$.file) 2>/dev/null; then
17171   if ln -s conf$$.file conf$$ 2>/dev/null; then
17172     as_ln_s='ln -s'
17173     # ... but there are two gotchas:
17174     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17175     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17176     # In both cases, we have to default to `cp -p'.
17177     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17178       as_ln_s='cp -p'
17179   elif ln conf$$.file conf$$ 2>/dev/null; then
17180     as_ln_s=ln
17181   else
17182     as_ln_s='cp -p'
17183   fi
17184 else
17185   as_ln_s='cp -p'
17186 fi
17187 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17188 rmdir conf$$.dir 2>/dev/null
17189
17190
17191 # as_fn_mkdir_p
17192 # -------------
17193 # Create "$as_dir" as a directory, including parents if necessary.
17194 as_fn_mkdir_p ()
17195 {
17196
17197   case $as_dir in #(
17198   -*) as_dir=./$as_dir;;
17199   esac
17200   test -d "$as_dir" || eval $as_mkdir_p || {
17201     as_dirs=
17202     while :; do
17203       case $as_dir in #(
17204       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17205       *) as_qdir=$as_dir;;
17206       esac
17207       as_dirs="'$as_qdir' $as_dirs"
17208       as_dir=`$as_dirname -- "$as_dir" ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210          X"$as_dir" : 'X\(//\)[^/]' \| \
17211          X"$as_dir" : 'X\(//\)$' \| \
17212          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17213 $as_echo X"$as_dir" |
17214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17215             s//\1/
17216             q
17217           }
17218           /^X\(\/\/\)[^/].*/{
17219             s//\1/
17220             q
17221           }
17222           /^X\(\/\/\)$/{
17223             s//\1/
17224             q
17225           }
17226           /^X\(\/\).*/{
17227             s//\1/
17228             q
17229           }
17230           s/.*/./; q'`
17231       test -d "$as_dir" && break
17232     done
17233     test -z "$as_dirs" || eval "mkdir $as_dirs"
17234   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17235
17236
17237 } # as_fn_mkdir_p
17238 if mkdir -p . 2>/dev/null; then
17239   as_mkdir_p='mkdir -p "$as_dir"'
17240 else
17241   test -d ./-p && rmdir ./-p
17242   as_mkdir_p=false
17243 fi
17244
17245 if test -x / >/dev/null 2>&1; then
17246   as_test_x='test -x'
17247 else
17248   if ls -dL / >/dev/null 2>&1; then
17249     as_ls_L_option=L
17250   else
17251     as_ls_L_option=
17252   fi
17253   as_test_x='
17254     eval sh -c '\''
17255       if test -d "$1"; then
17256         test -d "$1/.";
17257       else
17258         case $1 in #(
17259         -*)set "./$1";;
17260         esac;
17261         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17262         ???[sx]*):;;*)false;;esac;fi
17263     '\'' sh
17264   '
17265 fi
17266 as_executable_p=$as_test_x
17267
17268 # Sed expression to map a string onto a valid CPP name.
17269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17270
17271 # Sed expression to map a string onto a valid variable name.
17272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17273
17274
17275 exec 6>&1
17276 ## ----------------------------------- ##
17277 ## Main body of $CONFIG_STATUS script. ##
17278 ## ----------------------------------- ##
17279 _ASEOF
17280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17281
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 # Save the log message, to keep $0 and so on meaningful, and to
17284 # report actual input values of CONFIG_FILES etc. instead of their
17285 # values after options handling.
17286 ac_log="
17287 This file was extended by xf86-video-fbdev $as_me 0.4.3, which was
17288 generated by GNU Autoconf 2.68.  Invocation command line was
17289
17290   CONFIG_FILES    = $CONFIG_FILES
17291   CONFIG_HEADERS  = $CONFIG_HEADERS
17292   CONFIG_LINKS    = $CONFIG_LINKS
17293   CONFIG_COMMANDS = $CONFIG_COMMANDS
17294   $ $0 $@
17295
17296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17297 "
17298
17299 _ACEOF
17300
17301 case $ac_config_files in *"
17302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17303 esac
17304
17305 case $ac_config_headers in *"
17306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17307 esac
17308
17309
17310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311 # Files that config.status was made for.
17312 config_files="$ac_config_files"
17313 config_headers="$ac_config_headers"
17314 config_commands="$ac_config_commands"
17315
17316 _ACEOF
17317
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319 ac_cs_usage="\
17320 \`$as_me' instantiates files and other configuration actions
17321 from templates according to the current configuration.  Unless the files
17322 and actions are specified as TAGs, all are instantiated by default.
17323
17324 Usage: $0 [OPTION]... [TAG]...
17325
17326   -h, --help       print this help, then exit
17327   -V, --version    print version number and configuration settings, then exit
17328       --config     print configuration, then exit
17329   -q, --quiet, --silent
17330                    do not print progress messages
17331   -d, --debug      don't remove temporary files
17332       --recheck    update $as_me by reconfiguring in the same conditions
17333       --file=FILE[:TEMPLATE]
17334                    instantiate the configuration file FILE
17335       --header=FILE[:TEMPLATE]
17336                    instantiate the configuration header FILE
17337
17338 Configuration files:
17339 $config_files
17340
17341 Configuration headers:
17342 $config_headers
17343
17344 Configuration commands:
17345 $config_commands
17346
17347 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
17348
17349 _ACEOF
17350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17351 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17352 ac_cs_version="\\
17353 xf86-video-fbdev config.status 0.4.3
17354 configured by $0, generated by GNU Autoconf 2.68,
17355   with options \\"\$ac_cs_config\\"
17356
17357 Copyright (C) 2010 Free Software Foundation, Inc.
17358 This config.status script is free software; the Free Software Foundation
17359 gives unlimited permission to copy, distribute and modify it."
17360
17361 ac_pwd='$ac_pwd'
17362 srcdir='$srcdir'
17363 INSTALL='$INSTALL'
17364 MKDIR_P='$MKDIR_P'
17365 AWK='$AWK'
17366 test -n "\$AWK" || AWK=awk
17367 _ACEOF
17368
17369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17370 # The default lists apply if the user does not specify any file.
17371 ac_need_defaults=:
17372 while test $# != 0
17373 do
17374   case $1 in
17375   --*=?*)
17376     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17377     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17378     ac_shift=:
17379     ;;
17380   --*=)
17381     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17382     ac_optarg=
17383     ac_shift=:
17384     ;;
17385   *)
17386     ac_option=$1
17387     ac_optarg=$2
17388     ac_shift=shift
17389     ;;
17390   esac
17391
17392   case $ac_option in
17393   # Handling of the options.
17394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17395     ac_cs_recheck=: ;;
17396   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17397     $as_echo "$ac_cs_version"; exit ;;
17398   --config | --confi | --conf | --con | --co | --c )
17399     $as_echo "$ac_cs_config"; exit ;;
17400   --debug | --debu | --deb | --de | --d | -d )
17401     debug=: ;;
17402   --file | --fil | --fi | --f )
17403     $ac_shift
17404     case $ac_optarg in
17405     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17406     '') as_fn_error $? "missing file argument" ;;
17407     esac
17408     as_fn_append CONFIG_FILES " '$ac_optarg'"
17409     ac_need_defaults=false;;
17410   --header | --heade | --head | --hea )
17411     $ac_shift
17412     case $ac_optarg in
17413     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17414     esac
17415     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17416     ac_need_defaults=false;;
17417   --he | --h)
17418     # Conflict between --help and --header
17419     as_fn_error $? "ambiguous option: \`$1'
17420 Try \`$0 --help' for more information.";;
17421   --help | --hel | -h )
17422     $as_echo "$ac_cs_usage"; exit ;;
17423   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17424   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17425     ac_cs_silent=: ;;
17426
17427   # This is an error.
17428   -*) as_fn_error $? "unrecognized option: \`$1'
17429 Try \`$0 --help' for more information." ;;
17430
17431   *) as_fn_append ac_config_targets " $1"
17432      ac_need_defaults=false ;;
17433
17434   esac
17435   shift
17436 done
17437
17438 ac_configure_extra_args=
17439
17440 if $ac_cs_silent; then
17441   exec 6>/dev/null
17442   ac_configure_extra_args="$ac_configure_extra_args --silent"
17443 fi
17444
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 if \$ac_cs_recheck; then
17448   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17449   shift
17450   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17451   CONFIG_SHELL='$SHELL'
17452   export CONFIG_SHELL
17453   exec "\$@"
17454 fi
17455
17456 _ACEOF
17457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458 exec 5>>config.log
17459 {
17460   echo
17461   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17462 ## Running $as_me. ##
17463 _ASBOX
17464   $as_echo "$ac_log"
17465 } >&5
17466
17467 _ACEOF
17468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17469 #
17470 # INIT-COMMANDS
17471 #
17472 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17473
17474
17475 # The HP-UX ksh and POSIX shell print the target directory to stdout
17476 # if CDPATH is set.
17477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17478
17479 sed_quote_subst='$sed_quote_subst'
17480 double_quote_subst='$double_quote_subst'
17481 delay_variable_subst='$delay_variable_subst'
17482 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17485 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17515 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17516 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17517 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17518 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17519 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17520 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17521 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17522 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17523 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17524 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17525 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17526 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17527 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17528 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17529 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17530 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17531 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17532 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17533 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17534 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17535 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17537 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17538 lt_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"`'
17539 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17540 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17541 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17542 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17543 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17544 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17545 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17546 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17547 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17548 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17549 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17550 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17551 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17552 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17553 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17554 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17555 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17556 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17557 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17558 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17559 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17560 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17561 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17562 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17563 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17564 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17565 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17566 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17567 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17568 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17569 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17570 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17571 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17572 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17573 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17574 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17575 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17576 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17577 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17578 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17579 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17580 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17581 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17582 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17583 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17584 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17585 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17586 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17587 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17588 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17589 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17590 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17591 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17592 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17593 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17594 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17595 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17596 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17597 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17598 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17599 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17600 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17601 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17602 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17603 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17604 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17605 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17606 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17607 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17608 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17609 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17610 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17611 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17612
17613 LTCC='$LTCC'
17614 LTCFLAGS='$LTCFLAGS'
17615 compiler='$compiler_DEFAULT'
17616
17617 # A function that is used when there is no print builtin or printf.
17618 func_fallback_echo ()
17619 {
17620   eval 'cat <<_LTECHO_EOF
17621 \$1
17622 _LTECHO_EOF'
17623 }
17624
17625 # Quote evaled strings.
17626 for var in SHELL \
17627 ECHO \
17628 PATH_SEPARATOR \
17629 SED \
17630 GREP \
17631 EGREP \
17632 FGREP \
17633 LD \
17634 NM \
17635 LN_S \
17636 lt_SP2NL \
17637 lt_NL2SP \
17638 reload_flag \
17639 OBJDUMP \
17640 deplibs_check_method \
17641 file_magic_cmd \
17642 file_magic_glob \
17643 want_nocaseglob \
17644 DLLTOOL \
17645 sharedlib_from_linklib_cmd \
17646 AR \
17647 AR_FLAGS \
17648 archiver_list_spec \
17649 STRIP \
17650 RANLIB \
17651 CC \
17652 CFLAGS \
17653 compiler \
17654 lt_cv_sys_global_symbol_pipe \
17655 lt_cv_sys_global_symbol_to_cdecl \
17656 lt_cv_sys_global_symbol_to_c_name_address \
17657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17658 nm_file_list_spec \
17659 lt_prog_compiler_no_builtin_flag \
17660 lt_prog_compiler_pic \
17661 lt_prog_compiler_wl \
17662 lt_prog_compiler_static \
17663 lt_cv_prog_compiler_c_o \
17664 need_locks \
17665 MANIFEST_TOOL \
17666 DSYMUTIL \
17667 NMEDIT \
17668 LIPO \
17669 OTOOL \
17670 OTOOL64 \
17671 shrext_cmds \
17672 export_dynamic_flag_spec \
17673 whole_archive_flag_spec \
17674 compiler_needs_object \
17675 with_gnu_ld \
17676 allow_undefined_flag \
17677 no_undefined_flag \
17678 hardcode_libdir_flag_spec \
17679 hardcode_libdir_separator \
17680 exclude_expsyms \
17681 include_expsyms \
17682 file_list_spec \
17683 variables_saved_for_relink \
17684 libname_spec \
17685 library_names_spec \
17686 soname_spec \
17687 install_override_mode \
17688 finish_eval \
17689 old_striplib \
17690 striplib; do
17691     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17692     *[\\\\\\\`\\"\\\$]*)
17693       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17694       ;;
17695     *)
17696       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17697       ;;
17698     esac
17699 done
17700
17701 # Double-quote double-evaled strings.
17702 for var in reload_cmds \
17703 old_postinstall_cmds \
17704 old_postuninstall_cmds \
17705 old_archive_cmds \
17706 extract_expsyms_cmds \
17707 old_archive_from_new_cmds \
17708 old_archive_from_expsyms_cmds \
17709 archive_cmds \
17710 archive_expsym_cmds \
17711 module_cmds \
17712 module_expsym_cmds \
17713 export_symbols_cmds \
17714 prelink_cmds \
17715 postlink_cmds \
17716 postinstall_cmds \
17717 postuninstall_cmds \
17718 finish_cmds \
17719 sys_lib_search_path_spec \
17720 sys_lib_dlsearch_path_spec; do
17721     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17722     *[\\\\\\\`\\"\\\$]*)
17723       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17724       ;;
17725     *)
17726       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17727       ;;
17728     esac
17729 done
17730
17731 ac_aux_dir='$ac_aux_dir'
17732 xsi_shell='$xsi_shell'
17733 lt_shell_append='$lt_shell_append'
17734
17735 # See if we are running on zsh, and set the options which allow our
17736 # commands through without removal of \ escapes INIT.
17737 if test -n "\${ZSH_VERSION+set}" ; then
17738    setopt NO_GLOB_SUBST
17739 fi
17740
17741
17742     PACKAGE='$PACKAGE'
17743     VERSION='$VERSION'
17744     TIMESTAMP='$TIMESTAMP'
17745     RM='$RM'
17746     ofile='$ofile'
17747
17748
17749
17750
17751 _ACEOF
17752
17753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17754
17755 # Handling of arguments.
17756 for ac_config_target in $ac_config_targets
17757 do
17758   case $ac_config_target in
17759     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17760     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17761     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17762     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17763     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17764     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17765
17766   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17767   esac
17768 done
17769
17770
17771 # If the user did not use the arguments to specify the items to instantiate,
17772 # then the envvar interface is used.  Set only those that are not.
17773 # We use the long form for the default assignment because of an extremely
17774 # bizarre bug on SunOS 4.1.3.
17775 if $ac_need_defaults; then
17776   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17777   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17778   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17779 fi
17780
17781 # Have a temporary directory for convenience.  Make it in the build tree
17782 # simply because there is no reason against having it here, and in addition,
17783 # creating and moving files from /tmp can sometimes cause problems.
17784 # Hook for its removal unless debugging.
17785 # Note that there is a small window in which the directory will not be cleaned:
17786 # after its creation but before its name has been assigned to `$tmp'.
17787 $debug ||
17788 {
17789   tmp= ac_tmp=
17790   trap 'exit_status=$?
17791   : "${ac_tmp:=$tmp}"
17792   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17793 ' 0
17794   trap 'as_fn_exit 1' 1 2 13 15
17795 }
17796 # Create a (secure) tmp directory for tmp files.
17797
17798 {
17799   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17800   test -d "$tmp"
17801 }  ||
17802 {
17803   tmp=./conf$$-$RANDOM
17804   (umask 077 && mkdir "$tmp")
17805 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17806 ac_tmp=$tmp
17807
17808 # Set up the scripts for CONFIG_FILES section.
17809 # No need to generate them if there are no CONFIG_FILES.
17810 # This happens for instance with `./config.status config.h'.
17811 if test -n "$CONFIG_FILES"; then
17812
17813
17814 ac_cr=`echo X | tr X '\015'`
17815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17816 # But we know of no other shell where ac_cr would be empty at this
17817 # point, so we can use a bashism as a fallback.
17818 if test "x$ac_cr" = x; then
17819   eval ac_cr=\$\'\\r\'
17820 fi
17821 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17823   ac_cs_awk_cr='\\r'
17824 else
17825   ac_cs_awk_cr=$ac_cr
17826 fi
17827
17828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17829 _ACEOF
17830
17831
17832 {
17833   echo "cat >conf$$subs.awk <<_ACEOF" &&
17834   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17835   echo "_ACEOF"
17836 } >conf$$subs.sh ||
17837   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17839 ac_delim='%!_!# '
17840 for ac_last_try in false false false false false :; do
17841   . ./conf$$subs.sh ||
17842     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17843
17844   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17845   if test $ac_delim_n = $ac_delim_num; then
17846     break
17847   elif $ac_last_try; then
17848     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17849   else
17850     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17851   fi
17852 done
17853 rm -f conf$$subs.sh
17854
17855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17856 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17857 _ACEOF
17858 sed -n '
17859 h
17860 s/^/S["/; s/!.*/"]=/
17861 p
17862 g
17863 s/^[^!]*!//
17864 :repl
17865 t repl
17866 s/'"$ac_delim"'$//
17867 t delim
17868 :nl
17869 h
17870 s/\(.\{148\}\)..*/\1/
17871 t more1
17872 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17873 p
17874 n
17875 b repl
17876 :more1
17877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17878 p
17879 g
17880 s/.\{148\}//
17881 t nl
17882 :delim
17883 h
17884 s/\(.\{148\}\)..*/\1/
17885 t more2
17886 s/["\\]/\\&/g; s/^/"/; s/$/"/
17887 p
17888 b
17889 :more2
17890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17891 p
17892 g
17893 s/.\{148\}//
17894 t delim
17895 ' <conf$$subs.awk | sed '
17896 /^[^""]/{
17897   N
17898   s/\n//
17899 }
17900 ' >>$CONFIG_STATUS || ac_write_fail=1
17901 rm -f conf$$subs.awk
17902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17903 _ACAWK
17904 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17905   for (key in S) S_is_set[key] = 1
17906   FS = "\a"
17907
17908 }
17909 {
17910   line = $ 0
17911   nfields = split(line, field, "@")
17912   substed = 0
17913   len = length(field[1])
17914   for (i = 2; i < nfields; i++) {
17915     key = field[i]
17916     keylen = length(key)
17917     if (S_is_set[key]) {
17918       value = S[key]
17919       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17920       len += length(value) + length(field[++i])
17921       substed = 1
17922     } else
17923       len += 1 + keylen
17924   }
17925
17926   print line
17927 }
17928
17929 _ACAWK
17930 _ACEOF
17931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17933   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17934 else
17935   cat
17936 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17937   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17938 _ACEOF
17939
17940 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17941 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17942 # trailing colons and then remove the whole line if VPATH becomes empty
17943 # (actually we leave an empty line to preserve line numbers).
17944 if test "x$srcdir" = x.; then
17945   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17946 h
17947 s///
17948 s/^/:/
17949 s/[      ]*$/:/
17950 s/:\$(srcdir):/:/g
17951 s/:\${srcdir}:/:/g
17952 s/:@srcdir@:/:/g
17953 s/^:*//
17954 s/:*$//
17955 x
17956 s/\(=[   ]*\).*/\1/
17957 G
17958 s/\n//
17959 s/^[^=]*=[       ]*$//
17960 }'
17961 fi
17962
17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17964 fi # test -n "$CONFIG_FILES"
17965
17966 # Set up the scripts for CONFIG_HEADERS section.
17967 # No need to generate them if there are no CONFIG_HEADERS.
17968 # This happens for instance with `./config.status Makefile'.
17969 if test -n "$CONFIG_HEADERS"; then
17970 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17971 BEGIN {
17972 _ACEOF
17973
17974 # Transform confdefs.h into an awk script `defines.awk', embedded as
17975 # here-document in config.status, that substitutes the proper values into
17976 # config.h.in to produce config.h.
17977
17978 # Create a delimiter string that does not exist in confdefs.h, to ease
17979 # handling of long lines.
17980 ac_delim='%!_!# '
17981 for ac_last_try in false false :; do
17982   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17983   if test -z "$ac_tt"; then
17984     break
17985   elif $ac_last_try; then
17986     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17987   else
17988     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17989   fi
17990 done
17991
17992 # For the awk script, D is an array of macro values keyed by name,
17993 # likewise P contains macro parameters if any.  Preserve backslash
17994 # newline sequences.
17995
17996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17997 sed -n '
17998 s/.\{148\}/&'"$ac_delim"'/g
17999 t rset
18000 :rset
18001 s/^[     ]*#[    ]*define[       ][      ]*/ /
18002 t def
18003 d
18004 :def
18005 s/\\$//
18006 t bsnl
18007 s/["\\]/\\&/g
18008 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18009 D["\1"]=" \3"/p
18010 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18011 d
18012 :bsnl
18013 s/["\\]/\\&/g
18014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18015 D["\1"]=" \3\\\\\\n"\\/p
18016 t cont
18017 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18018 t cont
18019 d
18020 :cont
18021 n
18022 s/.\{148\}/&'"$ac_delim"'/g
18023 t clear
18024 :clear
18025 s/\\$//
18026 t bsnlc
18027 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18028 d
18029 :bsnlc
18030 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18031 b cont
18032 ' <confdefs.h | sed '
18033 s/'"$ac_delim"'/"\\\
18034 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18035
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037   for (key in D) D_is_set[key] = 1
18038   FS = "\a"
18039 }
18040 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18041   line = \$ 0
18042   split(line, arg, " ")
18043   if (arg[1] == "#") {
18044     defundef = arg[2]
18045     mac1 = arg[3]
18046   } else {
18047     defundef = substr(arg[1], 2)
18048     mac1 = arg[2]
18049   }
18050   split(mac1, mac2, "(") #)
18051   macro = mac2[1]
18052   prefix = substr(line, 1, index(line, defundef) - 1)
18053   if (D_is_set[macro]) {
18054     # Preserve the white space surrounding the "#".
18055     print prefix "define", macro P[macro] D[macro]
18056     next
18057   } else {
18058     # Replace #undef with comments.  This is necessary, for example,
18059     # in the case of _POSIX_SOURCE, which is predefined and required
18060     # on some systems where configure will not decide to define it.
18061     if (defundef == "undef") {
18062       print "/*", prefix defundef, macro, "*/"
18063       next
18064     }
18065   }
18066 }
18067 { print }
18068 _ACAWK
18069 _ACEOF
18070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18071   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18072 fi # test -n "$CONFIG_HEADERS"
18073
18074
18075 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18076 shift
18077 for ac_tag
18078 do
18079   case $ac_tag in
18080   :[FHLC]) ac_mode=$ac_tag; continue;;
18081   esac
18082   case $ac_mode$ac_tag in
18083   :[FHL]*:*);;
18084   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18085   :[FH]-) ac_tag=-:-;;
18086   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18087   esac
18088   ac_save_IFS=$IFS
18089   IFS=:
18090   set x $ac_tag
18091   IFS=$ac_save_IFS
18092   shift
18093   ac_file=$1
18094   shift
18095
18096   case $ac_mode in
18097   :L) ac_source=$1;;
18098   :[FH])
18099     ac_file_inputs=
18100     for ac_f
18101     do
18102       case $ac_f in
18103       -) ac_f="$ac_tmp/stdin";;
18104       *) # Look for the file first in the build tree, then in the source tree
18105          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18106          # because $ac_f cannot contain `:'.
18107          test -f "$ac_f" ||
18108            case $ac_f in
18109            [\\/$]*) false;;
18110            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18111            esac ||
18112            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18113       esac
18114       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18115       as_fn_append ac_file_inputs " '$ac_f'"
18116     done
18117
18118     # Let's still pretend it is `configure' which instantiates (i.e., don't
18119     # use $as_me), people would be surprised to read:
18120     #    /* config.h.  Generated by config.status.  */
18121     configure_input='Generated from '`
18122           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18123         `' by configure.'
18124     if test x"$ac_file" != x-; then
18125       configure_input="$ac_file.  $configure_input"
18126       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18127 $as_echo "$as_me: creating $ac_file" >&6;}
18128     fi
18129     # Neutralize special characters interpreted by sed in replacement strings.
18130     case $configure_input in #(
18131     *\&* | *\|* | *\\* )
18132        ac_sed_conf_input=`$as_echo "$configure_input" |
18133        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18134     *) ac_sed_conf_input=$configure_input;;
18135     esac
18136
18137     case $ac_tag in
18138     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18139       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18140     esac
18141     ;;
18142   esac
18143
18144   ac_dir=`$as_dirname -- "$ac_file" ||
18145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18146          X"$ac_file" : 'X\(//\)[^/]' \| \
18147          X"$ac_file" : 'X\(//\)$' \| \
18148          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18149 $as_echo X"$ac_file" |
18150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18151             s//\1/
18152             q
18153           }
18154           /^X\(\/\/\)[^/].*/{
18155             s//\1/
18156             q
18157           }
18158           /^X\(\/\/\)$/{
18159             s//\1/
18160             q
18161           }
18162           /^X\(\/\).*/{
18163             s//\1/
18164             q
18165           }
18166           s/.*/./; q'`
18167   as_dir="$ac_dir"; as_fn_mkdir_p
18168   ac_builddir=.
18169
18170 case "$ac_dir" in
18171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18172 *)
18173   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18174   # A ".." for each directory in $ac_dir_suffix.
18175   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18176   case $ac_top_builddir_sub in
18177   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18178   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18179   esac ;;
18180 esac
18181 ac_abs_top_builddir=$ac_pwd
18182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18183 # for backward compatibility:
18184 ac_top_builddir=$ac_top_build_prefix
18185
18186 case $srcdir in
18187   .)  # We are building in place.
18188     ac_srcdir=.
18189     ac_top_srcdir=$ac_top_builddir_sub
18190     ac_abs_top_srcdir=$ac_pwd ;;
18191   [\\/]* | ?:[\\/]* )  # Absolute name.
18192     ac_srcdir=$srcdir$ac_dir_suffix;
18193     ac_top_srcdir=$srcdir
18194     ac_abs_top_srcdir=$srcdir ;;
18195   *) # Relative name.
18196     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18197     ac_top_srcdir=$ac_top_build_prefix$srcdir
18198     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18199 esac
18200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18201
18202
18203   case $ac_mode in
18204   :F)
18205   #
18206   # CONFIG_FILE
18207   #
18208
18209   case $INSTALL in
18210   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18211   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18212   esac
18213   ac_MKDIR_P=$MKDIR_P
18214   case $MKDIR_P in
18215   [\\/$]* | ?:[\\/]* ) ;;
18216   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18217   esac
18218 _ACEOF
18219
18220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18221 # If the template does not know about datarootdir, expand it.
18222 # FIXME: This hack should be removed a few years after 2.60.
18223 ac_datarootdir_hack=; ac_datarootdir_seen=
18224 ac_sed_dataroot='
18225 /datarootdir/ {
18226   p
18227   q
18228 }
18229 /@datadir@/p
18230 /@docdir@/p
18231 /@infodir@/p
18232 /@localedir@/p
18233 /@mandir@/p'
18234 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18235 *datarootdir*) ac_datarootdir_seen=yes;;
18236 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18237   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18238 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18239 _ACEOF
18240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18241   ac_datarootdir_hack='
18242   s&@datadir@&$datadir&g
18243   s&@docdir@&$docdir&g
18244   s&@infodir@&$infodir&g
18245   s&@localedir@&$localedir&g
18246   s&@mandir@&$mandir&g
18247   s&\\\${datarootdir}&$datarootdir&g' ;;
18248 esac
18249 _ACEOF
18250
18251 # Neutralize VPATH when `$srcdir' = `.'.
18252 # Shell code in configure.ac might set extrasub.
18253 # FIXME: do we really want to maintain this feature?
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 ac_sed_extra="$ac_vpsub
18256 $extrasub
18257 _ACEOF
18258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18259 :t
18260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18261 s|@configure_input@|$ac_sed_conf_input|;t t
18262 s&@top_builddir@&$ac_top_builddir_sub&;t t
18263 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18264 s&@srcdir@&$ac_srcdir&;t t
18265 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18266 s&@top_srcdir@&$ac_top_srcdir&;t t
18267 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18268 s&@builddir@&$ac_builddir&;t t
18269 s&@abs_builddir@&$ac_abs_builddir&;t t
18270 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18271 s&@INSTALL@&$ac_INSTALL&;t t
18272 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18273 $ac_datarootdir_hack
18274 "
18275 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18276   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18277
18278 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18279   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18280   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18281       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18282   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18283 which seems to be undefined.  Please make sure it is defined" >&5
18284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18285 which seems to be undefined.  Please make sure it is defined" >&2;}
18286
18287   rm -f "$ac_tmp/stdin"
18288   case $ac_file in
18289   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18290   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18291   esac \
18292   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18293  ;;
18294   :H)
18295   #
18296   # CONFIG_HEADER
18297   #
18298   if test x"$ac_file" != x-; then
18299     {
18300       $as_echo "/* $configure_input  */" \
18301       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18302     } >"$ac_tmp/config.h" \
18303       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18304     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18305       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18307     else
18308       rm -f "$ac_file"
18309       mv "$ac_tmp/config.h" "$ac_file" \
18310         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18311     fi
18312   else
18313     $as_echo "/* $configure_input  */" \
18314       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18315       || as_fn_error $? "could not create -" "$LINENO" 5
18316   fi
18317 # Compute "$ac_file"'s index in $config_headers.
18318 _am_arg="$ac_file"
18319 _am_stamp_count=1
18320 for _am_header in $config_headers :; do
18321   case $_am_header in
18322     $_am_arg | $_am_arg:* )
18323       break ;;
18324     * )
18325       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18326   esac
18327 done
18328 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18329 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330          X"$_am_arg" : 'X\(//\)[^/]' \| \
18331          X"$_am_arg" : 'X\(//\)$' \| \
18332          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18333 $as_echo X"$_am_arg" |
18334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18335             s//\1/
18336             q
18337           }
18338           /^X\(\/\/\)[^/].*/{
18339             s//\1/
18340             q
18341           }
18342           /^X\(\/\/\)$/{
18343             s//\1/
18344             q
18345           }
18346           /^X\(\/\).*/{
18347             s//\1/
18348             q
18349           }
18350           s/.*/./; q'`/stamp-h$_am_stamp_count
18351  ;;
18352
18353   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18354 $as_echo "$as_me: executing $ac_file commands" >&6;}
18355  ;;
18356   esac
18357
18358
18359   case $ac_file$ac_mode in
18360     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18361   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18362   # are listed without --file.  Let's play safe and only enable the eval
18363   # if we detect the quoting.
18364   case $CONFIG_FILES in
18365   *\'*) eval set x "$CONFIG_FILES" ;;
18366   *)   set x $CONFIG_FILES ;;
18367   esac
18368   shift
18369   for mf
18370   do
18371     # Strip MF so we end up with the name of the file.
18372     mf=`echo "$mf" | sed -e 's/:.*$//'`
18373     # Check whether this is an Automake generated Makefile or not.
18374     # We used to match only the files named `Makefile.in', but
18375     # some people rename them; so instead we look at the file content.
18376     # Grep'ing the first line is not enough: some people post-process
18377     # each Makefile.in and add a new line on top of each file to say so.
18378     # Grep'ing the whole file is not good either: AIX grep has a line
18379     # limit of 2048, but all sed's we know have understand at least 4000.
18380     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18381       dirpart=`$as_dirname -- "$mf" ||
18382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18383          X"$mf" : 'X\(//\)[^/]' \| \
18384          X"$mf" : 'X\(//\)$' \| \
18385          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18386 $as_echo X"$mf" |
18387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18388             s//\1/
18389             q
18390           }
18391           /^X\(\/\/\)[^/].*/{
18392             s//\1/
18393             q
18394           }
18395           /^X\(\/\/\)$/{
18396             s//\1/
18397             q
18398           }
18399           /^X\(\/\).*/{
18400             s//\1/
18401             q
18402           }
18403           s/.*/./; q'`
18404     else
18405       continue
18406     fi
18407     # Extract the definition of DEPDIR, am__include, and am__quote
18408     # from the Makefile without running `make'.
18409     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18410     test -z "$DEPDIR" && continue
18411     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18412     test -z "am__include" && continue
18413     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18414     # When using ansi2knr, U may be empty or an underscore; expand it
18415     U=`sed -n 's/^U = //p' < "$mf"`
18416     # Find all dependency output files, they are included files with
18417     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18418     # simplest approach to changing $(DEPDIR) to its actual value in the
18419     # expansion.
18420     for file in `sed -n "
18421       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18422          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18423       # Make sure the directory exists.
18424       test -f "$dirpart/$file" && continue
18425       fdir=`$as_dirname -- "$file" ||
18426 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18427          X"$file" : 'X\(//\)[^/]' \| \
18428          X"$file" : 'X\(//\)$' \| \
18429          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18430 $as_echo X"$file" |
18431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18432             s//\1/
18433             q
18434           }
18435           /^X\(\/\/\)[^/].*/{
18436             s//\1/
18437             q
18438           }
18439           /^X\(\/\/\)$/{
18440             s//\1/
18441             q
18442           }
18443           /^X\(\/\).*/{
18444             s//\1/
18445             q
18446           }
18447           s/.*/./; q'`
18448       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18449       # echo "creating $dirpart/$file"
18450       echo '# dummy' > "$dirpart/$file"
18451     done
18452   done
18453 }
18454  ;;
18455     "libtool":C)
18456
18457     # See if we are running on zsh, and set the options which allow our
18458     # commands through without removal of \ escapes.
18459     if test -n "${ZSH_VERSION+set}" ; then
18460       setopt NO_GLOB_SUBST
18461     fi
18462
18463     cfgfile="${ofile}T"
18464     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18465     $RM "$cfgfile"
18466
18467     cat <<_LT_EOF >> "$cfgfile"
18468 #! $SHELL
18469
18470 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18471 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18472 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18473 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18474 #
18475 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18476 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18477 #                 Foundation, Inc.
18478 #   Written by Gordon Matzigkeit, 1996
18479 #
18480 #   This file is part of GNU Libtool.
18481 #
18482 # GNU Libtool is free software; you can redistribute it and/or
18483 # modify it under the terms of the GNU General Public License as
18484 # published by the Free Software Foundation; either version 2 of
18485 # the License, or (at your option) any later version.
18486 #
18487 # As a special exception to the GNU General Public License,
18488 # if you distribute this file as part of a program or library that
18489 # is built using GNU Libtool, you may include this file under the
18490 # same distribution terms that you use for the rest of that program.
18491 #
18492 # GNU Libtool is distributed in the hope that it will be useful,
18493 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18495 # GNU General Public License for more details.
18496 #
18497 # You should have received a copy of the GNU General Public License
18498 # along with GNU Libtool; see the file COPYING.  If not, a copy
18499 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18500 # obtained by writing to the Free Software Foundation, Inc.,
18501 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18502
18503
18504 # The names of the tagged configurations supported by this script.
18505 available_tags=""
18506
18507 # ### BEGIN LIBTOOL CONFIG
18508
18509 # Whether or not to build static libraries.
18510 build_old_libs=$enable_static
18511
18512 # Which release of libtool.m4 was used?
18513 macro_version=$macro_version
18514 macro_revision=$macro_revision
18515
18516 # Whether or not to build shared libraries.
18517 build_libtool_libs=$enable_shared
18518
18519 # What type of objects to build.
18520 pic_mode=$pic_mode
18521
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18524
18525 # Shell to use when invoking shell scripts.
18526 SHELL=$lt_SHELL
18527
18528 # An echo program that protects backslashes.
18529 ECHO=$lt_ECHO
18530
18531 # The PATH separator for the build system.
18532 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18533
18534 # The host system.
18535 host_alias=$host_alias
18536 host=$host
18537 host_os=$host_os
18538
18539 # The build system.
18540 build_alias=$build_alias
18541 build=$build
18542 build_os=$build_os
18543
18544 # A sed program that does not truncate output.
18545 SED=$lt_SED
18546
18547 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18548 Xsed="\$SED -e 1s/^X//"
18549
18550 # A grep program that handles long lines.
18551 GREP=$lt_GREP
18552
18553 # An ERE matcher.
18554 EGREP=$lt_EGREP
18555
18556 # A literal string matcher.
18557 FGREP=$lt_FGREP
18558
18559 # A BSD- or MS-compatible name lister.
18560 NM=$lt_NM
18561
18562 # Whether we need soft or hard links.
18563 LN_S=$lt_LN_S
18564
18565 # What is the maximum length of a command?
18566 max_cmd_len=$max_cmd_len
18567
18568 # Object file suffix (normally "o").
18569 objext=$ac_objext
18570
18571 # Executable file suffix (normally "").
18572 exeext=$exeext
18573
18574 # whether the shell understands "unset".
18575 lt_unset=$lt_unset
18576
18577 # turn spaces into newlines.
18578 SP2NL=$lt_lt_SP2NL
18579
18580 # turn newlines into spaces.
18581 NL2SP=$lt_lt_NL2SP
18582
18583 # convert \$build file names to \$host format.
18584 to_host_file_cmd=$lt_cv_to_host_file_cmd
18585
18586 # convert \$build files to toolchain format.
18587 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18588
18589 # An object symbol dumper.
18590 OBJDUMP=$lt_OBJDUMP
18591
18592 # Method to check whether dependent libraries are shared objects.
18593 deplibs_check_method=$lt_deplibs_check_method
18594
18595 # Command to use when deplibs_check_method = "file_magic".
18596 file_magic_cmd=$lt_file_magic_cmd
18597
18598 # How to find potential files when deplibs_check_method = "file_magic".
18599 file_magic_glob=$lt_file_magic_glob
18600
18601 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18602 want_nocaseglob=$lt_want_nocaseglob
18603
18604 # DLL creation program.
18605 DLLTOOL=$lt_DLLTOOL
18606
18607 # Command to associate shared and link libraries.
18608 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18609
18610 # The archiver.
18611 AR=$lt_AR
18612
18613 # Flags to create an archive.
18614 AR_FLAGS=$lt_AR_FLAGS
18615
18616 # How to feed a file listing to the archiver.
18617 archiver_list_spec=$lt_archiver_list_spec
18618
18619 # A symbol stripping program.
18620 STRIP=$lt_STRIP
18621
18622 # Commands used to install an old-style archive.
18623 RANLIB=$lt_RANLIB
18624 old_postinstall_cmds=$lt_old_postinstall_cmds
18625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18626
18627 # Whether to use a lock for old archive extraction.
18628 lock_old_archive_extraction=$lock_old_archive_extraction
18629
18630 # A C compiler.
18631 LTCC=$lt_CC
18632
18633 # LTCC compiler flags.
18634 LTCFLAGS=$lt_CFLAGS
18635
18636 # Take the output of nm and produce a listing of raw symbols and C names.
18637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18638
18639 # Transform the output of nm in a proper C declaration.
18640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18641
18642 # Transform the output of nm in a C name address pair.
18643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18644
18645 # Transform the output of nm in a C name address pair when lib prefix is needed.
18646 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18647
18648 # Specify filename containing input files for \$NM.
18649 nm_file_list_spec=$lt_nm_file_list_spec
18650
18651 # The root where to search for dependent libraries,and in which our libraries should be installed.
18652 lt_sysroot=$lt_sysroot
18653
18654 # The name of the directory that contains temporary libtool files.
18655 objdir=$objdir
18656
18657 # Used to examine libraries when file_magic_cmd begins with "file".
18658 MAGIC_CMD=$MAGIC_CMD
18659
18660 # Must we lock files when doing compilation?
18661 need_locks=$lt_need_locks
18662
18663 # Manifest tool.
18664 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18665
18666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18667 DSYMUTIL=$lt_DSYMUTIL
18668
18669 # Tool to change global to local symbols on Mac OS X.
18670 NMEDIT=$lt_NMEDIT
18671
18672 # Tool to manipulate fat objects and archives on Mac OS X.
18673 LIPO=$lt_LIPO
18674
18675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18676 OTOOL=$lt_OTOOL
18677
18678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18679 OTOOL64=$lt_OTOOL64
18680
18681 # Old archive suffix (normally "a").
18682 libext=$libext
18683
18684 # Shared library suffix (normally ".so").
18685 shrext_cmds=$lt_shrext_cmds
18686
18687 # The commands to extract the exported symbol list from a shared archive.
18688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18689
18690 # Variables whose values should be saved in libtool wrapper scripts and
18691 # restored at link time.
18692 variables_saved_for_relink=$lt_variables_saved_for_relink
18693
18694 # Do we need the "lib" prefix for modules?
18695 need_lib_prefix=$need_lib_prefix
18696
18697 # Do we need a version for libraries?
18698 need_version=$need_version
18699
18700 # Library versioning type.
18701 version_type=$version_type
18702
18703 # Shared library runtime path variable.
18704 runpath_var=$runpath_var
18705
18706 # Shared library path variable.
18707 shlibpath_var=$shlibpath_var
18708
18709 # Is shlibpath searched before the hard-coded library search path?
18710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18711
18712 # Format of library name prefix.
18713 libname_spec=$lt_libname_spec
18714
18715 # List of archive names.  First name is the real one, the rest are links.
18716 # The last name is the one that the linker finds with -lNAME
18717 library_names_spec=$lt_library_names_spec
18718
18719 # The coded name of the library, if different from the real name.
18720 soname_spec=$lt_soname_spec
18721
18722 # Permission mode override for installation of shared libraries.
18723 install_override_mode=$lt_install_override_mode
18724
18725 # Command to use after installation of a shared archive.
18726 postinstall_cmds=$lt_postinstall_cmds
18727
18728 # Command to use after uninstallation of a shared archive.
18729 postuninstall_cmds=$lt_postuninstall_cmds
18730
18731 # Commands used to finish a libtool library installation in a directory.
18732 finish_cmds=$lt_finish_cmds
18733
18734 # As "finish_cmds", except a single script fragment to be evaled but
18735 # not shown.
18736 finish_eval=$lt_finish_eval
18737
18738 # Whether we should hardcode library paths into libraries.
18739 hardcode_into_libs=$hardcode_into_libs
18740
18741 # Compile-time system search path for libraries.
18742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18743
18744 # Run-time system search path for libraries.
18745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18746
18747 # Whether dlopen is supported.
18748 dlopen_support=$enable_dlopen
18749
18750 # Whether dlopen of programs is supported.
18751 dlopen_self=$enable_dlopen_self
18752
18753 # Whether dlopen of statically linked programs is supported.
18754 dlopen_self_static=$enable_dlopen_self_static
18755
18756 # Commands to strip libraries.
18757 old_striplib=$lt_old_striplib
18758 striplib=$lt_striplib
18759
18760
18761 # The linker used to build libraries.
18762 LD=$lt_LD
18763
18764 # How to create reloadable object files.
18765 reload_flag=$lt_reload_flag
18766 reload_cmds=$lt_reload_cmds
18767
18768 # Commands used to build an old-style archive.
18769 old_archive_cmds=$lt_old_archive_cmds
18770
18771 # A language specific compiler.
18772 CC=$lt_compiler
18773
18774 # Is the compiler the GNU compiler?
18775 with_gcc=$GCC
18776
18777 # Compiler flag to turn off builtin functions.
18778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18779
18780 # Additional compiler flags for building library objects.
18781 pic_flag=$lt_lt_prog_compiler_pic
18782
18783 # How to pass a linker flag through the compiler.
18784 wl=$lt_lt_prog_compiler_wl
18785
18786 # Compiler flag to prevent dynamic linking.
18787 link_static_flag=$lt_lt_prog_compiler_static
18788
18789 # Does compiler simultaneously support -c and -o options?
18790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18791
18792 # Whether or not to add -lc for building shared libraries.
18793 build_libtool_need_lc=$archive_cmds_need_lc
18794
18795 # Whether or not to disallow shared libs when runtime libs are static.
18796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18797
18798 # Compiler flag to allow reflexive dlopens.
18799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18800
18801 # Compiler flag to generate shared objects directly from archives.
18802 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18803
18804 # Whether the compiler copes with passing no objects directly.
18805 compiler_needs_object=$lt_compiler_needs_object
18806
18807 # Create an old-style archive from a shared archive.
18808 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18809
18810 # Create a temporary old-style archive to link instead of a shared archive.
18811 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18812
18813 # Commands used to build a shared archive.
18814 archive_cmds=$lt_archive_cmds
18815 archive_expsym_cmds=$lt_archive_expsym_cmds
18816
18817 # Commands used to build a loadable module if different from building
18818 # a shared archive.
18819 module_cmds=$lt_module_cmds
18820 module_expsym_cmds=$lt_module_expsym_cmds
18821
18822 # Whether we are building with GNU ld or not.
18823 with_gnu_ld=$lt_with_gnu_ld
18824
18825 # Flag that allows shared libraries with undefined symbols to be built.
18826 allow_undefined_flag=$lt_allow_undefined_flag
18827
18828 # Flag that enforces no undefined symbols.
18829 no_undefined_flag=$lt_no_undefined_flag
18830
18831 # Flag to hardcode \$libdir into a binary during linking.
18832 # This must work even if \$libdir does not exist
18833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18834
18835 # Whether we need a single "-rpath" flag with a separated argument.
18836 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18837
18838 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18839 # DIR into the resulting binary.
18840 hardcode_direct=$hardcode_direct
18841
18842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18843 # DIR into the resulting binary and the resulting library dependency is
18844 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18845 # library is relocated.
18846 hardcode_direct_absolute=$hardcode_direct_absolute
18847
18848 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18849 # into the resulting binary.
18850 hardcode_minus_L=$hardcode_minus_L
18851
18852 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18853 # into the resulting binary.
18854 hardcode_shlibpath_var=$hardcode_shlibpath_var
18855
18856 # Set to "yes" if building a shared library automatically hardcodes DIR
18857 # into the library and all subsequent libraries and executables linked
18858 # against it.
18859 hardcode_automatic=$hardcode_automatic
18860
18861 # Set to yes if linker adds runtime paths of dependent libraries
18862 # to runtime path list.
18863 inherit_rpath=$inherit_rpath
18864
18865 # Whether libtool must link a program against all its dependency libraries.
18866 link_all_deplibs=$link_all_deplibs
18867
18868 # Set to "yes" if exported symbols are required.
18869 always_export_symbols=$always_export_symbols
18870
18871 # The commands to list exported symbols.
18872 export_symbols_cmds=$lt_export_symbols_cmds
18873
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms
18876
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms
18879
18880 # Commands necessary for linking programs (against libraries) with templates.
18881 prelink_cmds=$lt_prelink_cmds
18882
18883 # Commands necessary for finishing linking programs.
18884 postlink_cmds=$lt_postlink_cmds
18885
18886 # Specify filename containing input files.
18887 file_list_spec=$lt_file_list_spec
18888
18889 # How to hardcode a shared library path into an executable.
18890 hardcode_action=$hardcode_action
18891
18892 # ### END LIBTOOL CONFIG
18893
18894 _LT_EOF
18895
18896   case $host_os in
18897   aix3*)
18898     cat <<\_LT_EOF >> "$cfgfile"
18899 # AIX sometimes has problems with the GCC collect2 program.  For some
18900 # reason, if we set the COLLECT_NAMES environment variable, the problems
18901 # vanish in a puff of smoke.
18902 if test "X${COLLECT_NAMES+set}" != Xset; then
18903   COLLECT_NAMES=
18904   export COLLECT_NAMES
18905 fi
18906 _LT_EOF
18907     ;;
18908   esac
18909
18910
18911 ltmain="$ac_aux_dir/ltmain.sh"
18912
18913
18914   # We use sed instead of cat because bash on DJGPP gets confused if
18915   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18916   # text mode, it properly converts lines to CR/LF.  This bash problem
18917   # is reportedly fixed, but why not run on old versions too?
18918   sed '$q' "$ltmain" >> "$cfgfile" \
18919      || (rm -f "$cfgfile"; exit 1)
18920
18921   if test x"$xsi_shell" = xyes; then
18922   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18923 func_dirname ()\
18924 {\
18925 \    case ${1} in\
18926 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18927 \      *  ) func_dirname_result="${3}" ;;\
18928 \    esac\
18929 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18930   && mv -f "$cfgfile.tmp" "$cfgfile" \
18931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18932 test 0 -eq $? || _lt_function_replace_fail=:
18933
18934
18935   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18936 func_basename ()\
18937 {\
18938 \    func_basename_result="${1##*/}"\
18939 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18940   && mv -f "$cfgfile.tmp" "$cfgfile" \
18941     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18942 test 0 -eq $? || _lt_function_replace_fail=:
18943
18944
18945   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18946 func_dirname_and_basename ()\
18947 {\
18948 \    case ${1} in\
18949 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18950 \      *  ) func_dirname_result="${3}" ;;\
18951 \    esac\
18952 \    func_basename_result="${1##*/}"\
18953 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18954   && mv -f "$cfgfile.tmp" "$cfgfile" \
18955     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18956 test 0 -eq $? || _lt_function_replace_fail=:
18957
18958
18959   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18960 func_stripname ()\
18961 {\
18962 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18963 \    # positional parameters, so assign one to ordinary parameter first.\
18964 \    func_stripname_result=${3}\
18965 \    func_stripname_result=${func_stripname_result#"${1}"}\
18966 \    func_stripname_result=${func_stripname_result%"${2}"}\
18967 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18968   && mv -f "$cfgfile.tmp" "$cfgfile" \
18969     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18970 test 0 -eq $? || _lt_function_replace_fail=:
18971
18972
18973   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18974 func_split_long_opt ()\
18975 {\
18976 \    func_split_long_opt_name=${1%%=*}\
18977 \    func_split_long_opt_arg=${1#*=}\
18978 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18979   && mv -f "$cfgfile.tmp" "$cfgfile" \
18980     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18981 test 0 -eq $? || _lt_function_replace_fail=:
18982
18983
18984   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18985 func_split_short_opt ()\
18986 {\
18987 \    func_split_short_opt_arg=${1#??}\
18988 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18989 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18990   && mv -f "$cfgfile.tmp" "$cfgfile" \
18991     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18992 test 0 -eq $? || _lt_function_replace_fail=:
18993
18994
18995   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18996 func_lo2o ()\
18997 {\
18998 \    case ${1} in\
18999 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19000 \      *)    func_lo2o_result=${1} ;;\
19001 \    esac\
19002 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19003   && mv -f "$cfgfile.tmp" "$cfgfile" \
19004     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19005 test 0 -eq $? || _lt_function_replace_fail=:
19006
19007
19008   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19009 func_xform ()\
19010 {\
19011     func_xform_result=${1%.*}.lo\
19012 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19013   && mv -f "$cfgfile.tmp" "$cfgfile" \
19014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19015 test 0 -eq $? || _lt_function_replace_fail=:
19016
19017
19018   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19019 func_arith ()\
19020 {\
19021     func_arith_result=$(( $* ))\
19022 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19023   && mv -f "$cfgfile.tmp" "$cfgfile" \
19024     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19025 test 0 -eq $? || _lt_function_replace_fail=:
19026
19027
19028   sed -e '/^func_len ()$/,/^} # func_len /c\
19029 func_len ()\
19030 {\
19031     func_len_result=${#1}\
19032 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19033   && mv -f "$cfgfile.tmp" "$cfgfile" \
19034     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19035 test 0 -eq $? || _lt_function_replace_fail=:
19036
19037 fi
19038
19039 if test x"$lt_shell_append" = xyes; then
19040   sed -e '/^func_append ()$/,/^} # func_append /c\
19041 func_append ()\
19042 {\
19043     eval "${1}+=\\${2}"\
19044 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19045   && mv -f "$cfgfile.tmp" "$cfgfile" \
19046     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19048
19049
19050   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19051 func_append_quoted ()\
19052 {\
19053 \    func_quote_for_eval "${2}"\
19054 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19055 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19056   && mv -f "$cfgfile.tmp" "$cfgfile" \
19057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058 test 0 -eq $? || _lt_function_replace_fail=:
19059
19060
19061   # Save a `func_append' function call where possible by direct use of '+='
19062   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19063     && mv -f "$cfgfile.tmp" "$cfgfile" \
19064       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19065   test 0 -eq $? || _lt_function_replace_fail=:
19066 else
19067   # Save a `func_append' function call even when '+=' is not available
19068   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19069     && mv -f "$cfgfile.tmp" "$cfgfile" \
19070       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19071   test 0 -eq $? || _lt_function_replace_fail=:
19072 fi
19073
19074 if test x"$_lt_function_replace_fail" = x":"; then
19075   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19076 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19077 fi
19078
19079
19080    mv -f "$cfgfile" "$ofile" ||
19081     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19082   chmod +x "$ofile"
19083
19084  ;;
19085
19086   esac
19087 done # for ac_tag
19088
19089
19090 as_fn_exit 0
19091 _ACEOF
19092 ac_clean_files=$ac_clean_files_save
19093
19094 test $ac_write_fail = 0 ||
19095   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19096
19097
19098 # configure is writing to config.log, and then calls config.status.
19099 # config.status does its own redirection, appending to config.log.
19100 # Unfortunately, on DOS this fails, as config.log is still kept open
19101 # by configure, so config.status won't be able to write to it; its
19102 # output is simply discarded.  So we exec the FD to /dev/null,
19103 # effectively closing config.log, so it can be properly (re)opened and
19104 # appended to by config.status.  When coming back to configure, we
19105 # need to make the FD available again.
19106 if test "$no_create" != yes; then
19107   ac_cs_success=:
19108   ac_config_status_args=
19109   test "$silent" = yes &&
19110     ac_config_status_args="$ac_config_status_args --quiet"
19111   exec 5>/dev/null
19112   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19113   exec 5>>config.log
19114   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19115   # would make configure fail if this is the last instruction.
19116   $ac_cs_success || as_fn_exit 1
19117 fi
19118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19121 fi
19122