Imported Upstream version 1.0.6
[platform/upstream/libXres.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXres 1.0.6.
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
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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='libXres'
573 PACKAGE_TARNAME='libXres'
574 PACKAGE_VERSION='1.0.6'
575 PACKAGE_STRING='libXres 1.0.6'
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 XRES_LIBS
621 XRES_CFLAGS
622 XTMALLOC_ZERO_CFLAGS
623 XMALLOC_ZERO_CFLAGS
624 MALLOC_ZERO_CFLAGS
625 AM_BACKSLASH
626 AM_DEFAULT_VERBOSITY
627 MAN_SUBSTS
628 XORG_MAN_PAGE
629 ADMIN_MAN_DIR
630 DRIVER_MAN_DIR
631 MISC_MAN_DIR
632 FILE_MAN_DIR
633 LIB_MAN_DIR
634 APP_MAN_DIR
635 ADMIN_MAN_SUFFIX
636 DRIVER_MAN_SUFFIX
637 MISC_MAN_SUFFIX
638 FILE_MAN_SUFFIX
639 LIB_MAN_SUFFIX
640 APP_MAN_SUFFIX
641 INSTALL_CMD
642 PKG_CONFIG
643 CHANGELOG_CMD
644 STRICT_CFLAGS
645 CWARNFLAGS
646 BASE_CFLAGS
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 LIBTOOL
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_maintainer_mode
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 enable_dependency_tracking
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 enable_selective_werror
770 enable_strict_compilation
771 enable_silent_rules
772 enable_malloc0returnsnull
773 '
774       ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 PKG_CONFIG
784 XRES_CFLAGS
785 XRES_LIBS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *=)   ac_optarg= ;;
850   *)    ac_optarg=yes ;;
851   esac
852
853   # Accept the important Cygnus configure options, so we can diagnose typos.
854
855   case $ac_dashdash$ac_option in
856   --)
857     ac_dashdash=yes ;;
858
859   -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863
864   -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868
869   -cache-file | --cache-file | --cache-fil | --cache-fi \
870   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875
876   --config-cache | -C)
877     cache_file=config.cache ;;
878
879   -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881   -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883
884   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885   | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890
891   -disable-* | --disable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906
907   -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911
912   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916
917   -enable-* | --enable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136
1137   -without-* | --without-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     case $ac_envvar in #(
1179       '' | [0-9]* | *[!_$as_cr_alnum]* )
1180       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202   case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206   esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   # Remove trailing slashes.
1217   case $ac_val in
1218     */ )
1219       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220       eval $ac_var=\$ac_val;;
1221   esac
1222   # Be sure to have absolute directory names.
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used" >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures libXres 1.0.6 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking ...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR            object code libraries [EPREFIX/lib]
1369   --includedir=DIR        C header files [PREFIX/include]
1370   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR           info documentation [DATAROOTDIR/info]
1374   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR            man documentation [DATAROOTDIR/man]
1376   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXres]
1377   --htmldir=DIR           html documentation [DOCDIR]
1378   --dvidir=DIR            dvi documentation [DOCDIR]
1379   --pdfdir=DIR            pdf documentation [DOCDIR]
1380   --psdir=DIR             ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384
1385 Program names:
1386   --program-prefix=PREFIX            prepend PREFIX to installed program names
1387   --program-suffix=SUFFIX            append SUFFIX to installed program names
1388   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of libXres 1.0.6:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-option-checking  ignore unrecognized --enable/--with options
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-maintainer-mode  enable make rules and dependencies not useful
1407                           (and sometimes confusing) to the casual installer
1408   --enable-shared[=PKGS]  build shared libraries [default=yes]
1409   --enable-static[=PKGS]  build static libraries [default=yes]
1410   --enable-fast-install[=PKGS]
1411                           optimize for fast installation [default=yes]
1412   --disable-dependency-tracking  speeds up one-time build
1413   --enable-dependency-tracking   do not reject slow dependency extractors
1414   --disable-libtool-lock  avoid locking (might break parallel builds)
1415   --disable-selective-werror
1416                           Turn off selective compiler errors. (default:
1417                           enabled)
1418   --enable-strict-compilation
1419                           Enable all warnings from compiler and make them
1420                           errors (default: disabled)
1421   --enable-silent-rules          less verbose build output (undo: `make V=1')
1422   --disable-silent-rules         verbose build output (undo: `make V=0')
1423   --enable-malloc0returnsnull
1424                           malloc(0) returns NULL (default: auto)
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-pic              try to use only PIC/non-PIC objects [default=use
1430                           both]
1431   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432   --with-sysroot=DIR Search for dependent libraries within DIR
1433                         (or the compiler's sysroot if not specified).
1434
1435 Some influential environment variables:
1436   CC          C compiler command
1437   CFLAGS      C compiler flags
1438   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439               nonstandard directory <lib dir>
1440   LIBS        libraries to pass to the linker, e.g. -l<library>
1441   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442               you have headers in a nonstandard directory <include dir>
1443   CPP         C preprocessor
1444   PKG_CONFIG  path to pkg-config utility
1445   XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1446   XRES_LIBS   linker flags for XRES, overriding pkg-config
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457   # If there are subdirs, report their specific --help.
1458   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459     test -d "$ac_dir" ||
1460       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461       continue
1462     ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468   # A ".." for each directory in $ac_dir_suffix.
1469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470   case $ac_top_builddir_sub in
1471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473   esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481   .)  # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485   [\\/]* | ?:[\\/]* )  # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489   *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506     fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508   done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513   cat <<\_ACEOF
1514 libXres configure 1.0.6
1515 generated by GNU Autoconf 2.68
1516
1517 Copyright (C) 2010 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534   rm -f conftest.$ac_objext
1535   if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_compile") 2>conftest.err
1543   ac_status=$?
1544   if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548   fi
1549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550   test $ac_status = 0; } && {
1551          test -z "$ac_c_werror_flag" ||
1552          test ! -s conftest.err
1553        } && test -s conftest.$ac_objext; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559         ac_retval=1
1560 fi
1561   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562   as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572   rm -f conftest.$ac_objext conftest$ac_exeext
1573   if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576   *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580   (eval "$ac_link") 2>conftest.err
1581   ac_status=$?
1582   if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586   fi
1587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588   test $ac_status = 0; } && {
1589          test -z "$ac_c_werror_flag" ||
1590          test ! -s conftest.err
1591        } && test -s conftest$ac_exeext && {
1592          test "$cross_compiling" = yes ||
1593          $as_test_x conftest$ac_exeext
1594        }; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604   # interfere with the next link command; also delete a directory that is
1605   # left behind by Apple's compiler.  We do this before executing the actions.
1606   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608   as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_link
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622   $as_echo_n "(cached) " >&6
1623 else
1624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h.  */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630   eval "$3=yes"
1631 else
1632   eval "$3=no"
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
1637                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } > conftest.i && {
1665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666          test ! -s conftest.err
1667        }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673     ac_retval=1
1674 fi
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>&5
1695   ac_status=$?
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698   { { case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_try") 2>&5
1705   ac_status=$?
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; }; }; then :
1708   ac_retval=0
1709 else
1710   $as_echo "$as_me: program exited with status $ac_status" >&5
1711        $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714        ac_retval=$ac_status
1715 fi
1716   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718   as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731   $as_echo_n "(cached) " >&6
1732 else
1733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h.  */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740     which can conflict with char $2 (); below.
1741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742     <limits.h> exists even on freestanding compilers.  */
1743
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1749
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753    Use char because int might match the return type of a GCC
1754    builtin and then its argument prototype would still apply.  */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760     to always fail with ENOSYS.  Some functions are actually named
1761     something starting with __ and the normal name is an alias.  */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main ()
1768 {
1769 return $2 ();
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775   eval "$3=yes"
1776 else
1777   eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext \
1780     conftest$ac_exeext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_func
1788
1789 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1790 # ---------------------------------------------
1791 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_decl ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   as_decl_name=`echo $2|sed 's/ *(.*//'`
1797   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1799 $as_echo_n "checking whether $as_decl_name is declared... " >&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 $4
1806 int
1807 main ()
1808 {
1809 #ifndef $as_decl_name
1810 #ifdef __cplusplus
1811   (void) $as_decl_use;
1812 #else
1813   (void) $as_decl_name;
1814 #endif
1815 #endif
1816
1817   ;
1818   return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_decl
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1837
1838 It was created by libXres $as_me 1.0.6, which was
1839 generated by GNU Autoconf 2.68.  Invocation command line was
1840
1841   $ $0 $@
1842
1843 _ACEOF
1844 exec 5>>config.log
1845 {
1846 cat <<_ASUNAME
1847 ## --------- ##
1848 ## Platform. ##
1849 ## --------- ##
1850
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1859
1860 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1861 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1864 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1865 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1866 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1867
1868 _ASUNAME
1869
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873   IFS=$as_save_IFS
1874   test -z "$as_dir" && as_dir=.
1875     $as_echo "PATH: $as_dir"
1876   done
1877 IFS=$as_save_IFS
1878
1879 } >&5
1880
1881 cat >&5 <<_ACEOF
1882
1883
1884 ## ----------- ##
1885 ## Core tests. ##
1886 ## ----------- ##
1887
1888 _ACEOF
1889
1890
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_configure_args=
1897 ac_configure_args0=
1898 ac_configure_args1=
1899 ac_must_keep_next=false
1900 for ac_pass in 1 2
1901 do
1902   for ac_arg
1903   do
1904     case $ac_arg in
1905     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907     | -silent | --silent | --silen | --sile | --sil)
1908       continue ;;
1909     *\'*)
1910       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1911     esac
1912     case $ac_pass in
1913     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914     2)
1915       as_fn_append ac_configure_args1 " '$ac_arg'"
1916       if test $ac_must_keep_next = true; then
1917         ac_must_keep_next=false # Got value, back to normal.
1918       else
1919         case $ac_arg in
1920           *=* | --config-cache | -C | -disable-* | --disable-* \
1921           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923           | -with-* | --with-* | -without-* | --without-* | --x)
1924             case "$ac_configure_args0 " in
1925               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1926             esac
1927             ;;
1928           -* ) ac_must_keep_next=true ;;
1929         esac
1930       fi
1931       as_fn_append ac_configure_args " '$ac_arg'"
1932       ;;
1933     esac
1934   done
1935 done
1936 { ac_configure_args0=; unset ac_configure_args0;}
1937 { ac_configure_args1=; unset ac_configure_args1;}
1938
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log.  We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945   # Save into config.log some information that might help in debugging.
1946   {
1947     echo
1948
1949     $as_echo "## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##"
1952     echo
1953     # The following way of writing the cache mishandles newlines in values,
1954 (
1955   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956     eval ac_val=\$$ac_var
1957     case $ac_val in #(
1958     *${as_nl}*)
1959       case $ac_var in #(
1960       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1962       esac
1963       case $ac_var in #(
1964       _ | IFS | as_nl) ;; #(
1965       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966       *) { eval $ac_var=; unset $ac_var;} ;;
1967       esac ;;
1968     esac
1969   done
1970   (set) 2>&1 |
1971     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972     *${as_nl}ac_space=\ *)
1973       sed -n \
1974         "s/'\''/'\''\\\\'\'''\''/g;
1975           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976       ;; #(
1977     *)
1978       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979       ;;
1980     esac |
1981     sort
1982 )
1983     echo
1984
1985     $as_echo "## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##"
1988     echo
1989     for ac_var in $ac_subst_vars
1990     do
1991       eval ac_val=\$$ac_var
1992       case $ac_val in
1993       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994       esac
1995       $as_echo "$ac_var='\''$ac_val'\''"
1996     done | sort
1997     echo
1998
1999     if test -n "$ac_subst_files"; then
2000       $as_echo "## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##"
2003       echo
2004       for ac_var in $ac_subst_files
2005       do
2006         eval ac_val=\$$ac_var
2007         case $ac_val in
2008         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009         esac
2010         $as_echo "$ac_var='\''$ac_val'\''"
2011       done | sort
2012       echo
2013     fi
2014
2015     if test -s confdefs.h; then
2016       $as_echo "## ----------- ##
2017 ## confdefs.h. ##
2018 ## ----------- ##"
2019       echo
2020       cat confdefs.h
2021       echo
2022     fi
2023     test "$ac_signal" != 0 &&
2024       $as_echo "$as_me: caught signal $ac_signal"
2025     $as_echo "$as_me: exit $exit_status"
2026   } >&5
2027   rm -f core *.core core.conftest.* &&
2028     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029     exit $exit_status
2030 ' 0
2031 for ac_signal in 1 2 13 15; do
2032   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033 done
2034 ac_signal=0
2035
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2038
2039 $as_echo "/* confdefs.h */" > confdefs.h
2040
2041 # Predefined preprocessor variables.
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_URL "$PACKAGE_URL"
2065 _ACEOF
2066
2067
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2070 ac_site_file1=NONE
2071 ac_site_file2=NONE
2072 if test -n "$CONFIG_SITE"; then
2073   # We do not want a PATH search for config.site.
2074   case $CONFIG_SITE in #((
2075     -*)  ac_site_file1=./$CONFIG_SITE;;
2076     */*) ac_site_file1=$CONFIG_SITE;;
2077     *)   ac_site_file1=./$CONFIG_SITE;;
2078   esac
2079 elif test "x$prefix" != xNONE; then
2080   ac_site_file1=$prefix/share/config.site
2081   ac_site_file2=$prefix/etc/config.site
2082 else
2083   ac_site_file1=$ac_default_prefix/share/config.site
2084   ac_site_file2=$ac_default_prefix/etc/config.site
2085 fi
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 do
2088   test "x$ac_site_file" = xNONE && continue
2089   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2090     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092     sed 's/^/| /' "$ac_site_file" >&5
2093     . "$ac_site_file" \
2094       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 as_fn_error $? "failed to load site script $ac_site_file
2097 See \`config.log' for more details" "$LINENO" 5; }
2098   fi
2099 done
2100
2101 if test -r "$cache_file"; then
2102   # Some versions of bash will fail to source /dev/null (special files
2103   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2104   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2105     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2106 $as_echo "$as_me: loading cache $cache_file" >&6;}
2107     case $cache_file in
2108       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2109       *)                      . "./$cache_file";;
2110     esac
2111   fi
2112 else
2113   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2114 $as_echo "$as_me: creating cache $cache_file" >&6;}
2115   >$cache_file
2116 fi
2117
2118 # Check that the precious variables saved in the cache have kept the same
2119 # value.
2120 ac_cache_corrupted=false
2121 for ac_var in $ac_precious_vars; do
2122   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123   eval ac_new_set=\$ac_env_${ac_var}_set
2124   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125   eval ac_new_val=\$ac_env_${ac_var}_value
2126   case $ac_old_set,$ac_new_set in
2127     set,)
2128       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130       ac_cache_corrupted=: ;;
2131     ,set)
2132       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134       ac_cache_corrupted=: ;;
2135     ,);;
2136     *)
2137       if test "x$ac_old_val" != "x$ac_new_val"; then
2138         # differences in whitespace do not lead to failure.
2139         ac_old_val_w=`echo x $ac_old_val`
2140         ac_new_val_w=`echo x $ac_new_val`
2141         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144           ac_cache_corrupted=:
2145         else
2146           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148           eval $ac_var=\$ac_old_val
2149         fi
2150         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2151 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2152         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2153 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2154       fi;;
2155   esac
2156   # Pass precious variables to config.status.
2157   if test "$ac_new_set" = set; then
2158     case $ac_new_val in
2159     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160     *) ac_arg=$ac_var=$ac_new_val ;;
2161     esac
2162     case " $ac_configure_args " in
2163       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2164       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2165     esac
2166   fi
2167 done
2168 if $ac_cache_corrupted; then
2169   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2174 fi
2175 ## -------------------- ##
2176 ## Main body of script. ##
2177 ## -------------------- ##
2178
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
2185
2186
2187 ac_config_headers="$ac_config_headers config.h"
2188
2189
2190 # Initialize Automake
2191 am__api_version='1.11'
2192
2193 ac_aux_dir=
2194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195   if test -f "$ac_dir/install-sh"; then
2196     ac_aux_dir=$ac_dir
2197     ac_install_sh="$ac_aux_dir/install-sh -c"
2198     break
2199   elif test -f "$ac_dir/install.sh"; then
2200     ac_aux_dir=$ac_dir
2201     ac_install_sh="$ac_aux_dir/install.sh -c"
2202     break
2203   elif test -f "$ac_dir/shtool"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/shtool install -c"
2206     break
2207   fi
2208 done
2209 if test -z "$ac_aux_dir"; then
2210   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211 fi
2212
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222 # Find a good install program.  We prefer a C program (faster),
2223 # so one script is as good as another.  But avoid the broken or
2224 # incompatible versions:
2225 # SysV /etc/install, /usr/sbin/install
2226 # SunOS /usr/etc/install
2227 # IRIX /sbin/install
2228 # AIX /bin/install
2229 # AmigaOS /C/install, which installs bootblocks on floppy discs
2230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233 # OS/2's system install, which has a completely different semantic
2234 # ./install, which can be erroneously created by make from ./install.sh.
2235 # Reject install programs that cannot install multiple files.
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2238 if test -z "$INSTALL"; then
2239 if ${ac_cv_path_install+:} false; then :
2240   $as_echo_n "(cached) " >&6
2241 else
2242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247     # Account for people who put trailing slashes in PATH elements.
2248 case $as_dir/ in #((
2249   ./ | .// | /[cC]/* | \
2250   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252   /usr/ucb/* ) ;;
2253   *)
2254     # OSF1 and SCO ODT 3.0 have their own names for install.
2255     # Don't use installbsd from OSF since it installs stuff as root
2256     # by default.
2257     for ac_prog in ginstall scoinst install; do
2258       for ac_exec_ext in '' $ac_executable_extensions; do
2259         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260           if test $ac_prog = install &&
2261             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262             # AIX install.  It has an incompatible calling convention.
2263             :
2264           elif test $ac_prog = install &&
2265             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266             # program-specific install script used by HP pwplus--don't use.
2267             :
2268           else
2269             rm -rf conftest.one conftest.two conftest.dir
2270             echo one > conftest.one
2271             echo two > conftest.two
2272             mkdir conftest.dir
2273             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274               test -s conftest.one && test -s conftest.two &&
2275               test -s conftest.dir/conftest.one &&
2276               test -s conftest.dir/conftest.two
2277             then
2278               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2279               break 3
2280             fi
2281           fi
2282         fi
2283       done
2284     done
2285     ;;
2286 esac
2287
2288   done
2289 IFS=$as_save_IFS
2290
2291 rm -rf conftest.one conftest.two conftest.dir
2292
2293 fi
2294   if test "${ac_cv_path_install+set}" = set; then
2295     INSTALL=$ac_cv_path_install
2296   else
2297     # As a last resort, use the slow shell script.  Don't cache a
2298     # value for INSTALL within a source directory, because that will
2299     # break other packages using the cache if that directory is
2300     # removed, or if the value is a relative name.
2301     INSTALL=$ac_install_sh
2302   fi
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305 $as_echo "$INSTALL" >&6; }
2306
2307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308 # It thinks the first close brace ends the variable substitution.
2309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316 $as_echo_n "checking whether build environment is sane... " >&6; }
2317 # Just in case
2318 sleep 1
2319 echo timestamp > conftest.file
2320 # Reject unsafe characters in $srcdir or the absolute working directory
2321 # name.  Accept space and tab only in the latter.
2322 am_lf='
2323 '
2324 case `pwd` in
2325   *[\\\"\#\$\&\'\`$am_lf]*)
2326     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2327 esac
2328 case $srcdir in
2329   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2330     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2331 esac
2332
2333 # Do `set' in a subshell so we don't clobber the current shell's
2334 # arguments.  Must try -L first in case configure is actually a
2335 # symlink; some systems play weird games with the mod time of symlinks
2336 # (eg FreeBSD returns the mod time of the symlink's containing
2337 # directory).
2338 if (
2339    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340    if test "$*" = "X"; then
2341       # -L didn't work.
2342       set X `ls -t "$srcdir/configure" conftest.file`
2343    fi
2344    rm -f conftest.file
2345    if test "$*" != "X $srcdir/configure conftest.file" \
2346       && test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348       # If neither matched, then we have a broken ls.  This can happen
2349       # if, for instance, CONFIG_SHELL is bash and it inherits a
2350       # broken ls alias from the environment.  This has actually
2351       # happened.  Such a system could not be considered "sane".
2352       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2353 alias in your environment" "$LINENO" 5
2354    fi
2355
2356    test "$2" = conftest.file
2357    )
2358 then
2359    # Ok.
2360    :
2361 else
2362    as_fn_error $? "newly created file is older than distributed files!
2363 Check your system clock" "$LINENO" 5
2364 fi
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366 $as_echo "yes" >&6; }
2367 test "$program_prefix" != NONE &&
2368   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369 # Use a double $ so make ignores it.
2370 test "$program_suffix" != NONE &&
2371   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372 # Double any \ or $.
2373 # By default was `s,x,x', remove it if useless.
2374 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377 # expand $ac_aux_dir to an absolute path
2378 am_aux_dir=`cd $ac_aux_dir && pwd`
2379
2380 if test x"${MISSING+set}" != xset; then
2381   case $am_aux_dir in
2382   *\ * | *\     *)
2383     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384   *)
2385     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386   esac
2387 fi
2388 # Use eval to expand $SHELL
2389 if eval "$MISSING --run true"; then
2390   am_missing_run="$MISSING --run "
2391 else
2392   am_missing_run=
2393   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2395 fi
2396
2397 if test x"${install_sh}" != xset; then
2398   case $am_aux_dir in
2399   *\ * | *\     *)
2400     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401   *)
2402     install_sh="\${SHELL} $am_aux_dir/install-sh"
2403   esac
2404 fi
2405
2406 # Installed binaries are usually stripped using `strip' when the user
2407 # run `make install-strip'.  However `strip' might not be the right
2408 # tool to use in cross-compilation environments, therefore Automake
2409 # will honor the `STRIP' environment variable to overrule this program.
2410 if test "$cross_compiling" != no; then
2411   if test -n "$ac_tool_prefix"; then
2412   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}strip; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_STRIP+:} false; then :
2417   $as_echo_n "(cached) " >&6
2418 else
2419   if test -n "$STRIP"; then
2420   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427     for ac_exec_ext in '' $ac_executable_extensions; do
2428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432   fi
2433 done
2434   done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 STRIP=$ac_cv_prog_STRIP
2440 if test -n "$STRIP"; then
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442 $as_echo "$STRIP" >&6; }
2443 else
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2447
2448
2449 fi
2450 if test -z "$ac_cv_prog_STRIP"; then
2451   ac_ct_STRIP=$STRIP
2452   # Extract the first word of "strip", so it can be a program name with args.
2453 set dummy strip; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   if test -n "$ac_ct_STRIP"; then
2460   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_ac_ct_STRIP="strip"
2470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474   done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480 if test -n "$ac_ct_STRIP"; then
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482 $as_echo "$ac_ct_STRIP" >&6; }
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488   if test "x$ac_ct_STRIP" = x; then
2489     STRIP=":"
2490   else
2491     case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2496 esac
2497     STRIP=$ac_ct_STRIP
2498   fi
2499 else
2500   STRIP="$ac_cv_prog_STRIP"
2501 fi
2502
2503 fi
2504 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508 if test -z "$MKDIR_P"; then
2509   if ${ac_cv_path_mkdir+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517     for ac_prog in mkdir gmkdir; do
2518          for ac_exec_ext in '' $ac_executable_extensions; do
2519            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521              'mkdir (GNU coreutils) '* | \
2522              'mkdir (coreutils) '* | \
2523              'mkdir (fileutils) '4.1*)
2524                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2525                break 3;;
2526            esac
2527          done
2528        done
2529   done
2530 IFS=$as_save_IFS
2531
2532 fi
2533
2534   test -d ./--version && rmdir ./--version
2535   if test "${ac_cv_path_mkdir+set}" = set; then
2536     MKDIR_P="$ac_cv_path_mkdir -p"
2537   else
2538     # As a last resort, use the slow shell script.  Don't cache a
2539     # value for MKDIR_P within a source directory, because that will
2540     # break other packages using the cache if that directory is
2541     # removed, or if the value is a relative name.
2542     MKDIR_P="$ac_install_sh -d"
2543   fi
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546 $as_echo "$MKDIR_P" >&6; }
2547
2548 mkdir_p="$MKDIR_P"
2549 case $mkdir_p in
2550   [\\/$]* | ?:[\\/]*) ;;
2551   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2552 esac
2553
2554 for ac_prog in gawk mawk nawk awk
2555 do
2556   # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_AWK+:} false; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test -n "$AWK"; then
2564   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571     for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_AWK="$ac_prog"
2574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578   done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 AWK=$ac_cv_prog_AWK
2584 if test -n "$AWK"; then
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2587 else
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592
2593   test -n "$AWK" && break
2594 done
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598 set x ${MAKE-make}
2599 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   cat >conftest.make <<\_ACEOF
2604 SHELL = /bin/sh
2605 all:
2606         @echo '@@@%%%=$(MAKE)=@@@%%%'
2607 _ACEOF
2608 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610   *@@@%%%=?*=@@@%%%*)
2611     eval ac_cv_prog_make_${ac_make}_set=yes;;
2612   *)
2613     eval ac_cv_prog_make_${ac_make}_set=no;;
2614 esac
2615 rm -f conftest.make
2616 fi
2617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620   SET_MAKE=
2621 else
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624   SET_MAKE="MAKE=${MAKE-make}"
2625 fi
2626
2627 rm -rf .tst 2>/dev/null
2628 mkdir .tst 2>/dev/null
2629 if test -d .tst; then
2630   am__leading_dot=.
2631 else
2632   am__leading_dot=_
2633 fi
2634 rmdir .tst 2>/dev/null
2635
2636 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638   # is not polluted with repeated "-I."
2639   am__isrc=' -I$(srcdir)'
2640   # test to see if srcdir already configured
2641   if test -f $srcdir/config.status; then
2642     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643   fi
2644 fi
2645
2646 # test whether we have cygpath
2647 if test -z "$CYGPATH_W"; then
2648   if (cygpath --version) >/dev/null 2>/dev/null; then
2649     CYGPATH_W='cygpath -w'
2650   else
2651     CYGPATH_W=echo
2652   fi
2653 fi
2654
2655
2656 # Define the identity of the package.
2657  PACKAGE='libXres'
2658  VERSION='1.0.6'
2659
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE "$PACKAGE"
2663 _ACEOF
2664
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define VERSION "$VERSION"
2668 _ACEOF
2669
2670 # Some tools Automake needs.
2671
2672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686 # We need awk for the "check" target.  The system "awk" is bad on
2687 # some platforms.
2688 # Always define AMTAR for backward compatibility.
2689
2690 AMTAR=${AMTAR-"${am_missing_run}tar"}
2691
2692 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693
2694
2695
2696
2697
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2701     # Check whether --enable-maintainer-mode was given.
2702 if test "${enable_maintainer_mode+set}" = set; then :
2703   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2704 else
2705   USE_MAINTAINER_MODE=no
2706 fi
2707
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2709 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2710    if test $USE_MAINTAINER_MODE = yes; then
2711   MAINTAINER_MODE_TRUE=
2712   MAINTAINER_MODE_FALSE='#'
2713 else
2714   MAINTAINER_MODE_TRUE='#'
2715   MAINTAINER_MODE_FALSE=
2716 fi
2717
2718   MAINT=$MAINTAINER_MODE_TRUE
2719
2720
2721
2722 # Initialize libtool
2723 case `pwd` in
2724   *\ * | *\     *)
2725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2726 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2727 esac
2728
2729
2730
2731 macro_version='2.4'
2732 macro_revision='1.3293'
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746 ltmain="$ac_aux_dir/ltmain.sh"
2747
2748 # Make sure we can run config.sub.
2749 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2750   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2753 $as_echo_n "checking build system type... " >&6; }
2754 if ${ac_cv_build+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   ac_build_alias=$build_alias
2758 test "x$ac_build_alias" = x &&
2759   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2760 test "x$ac_build_alias" = x &&
2761   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2762 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2763   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2764
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2767 $as_echo "$ac_cv_build" >&6; }
2768 case $ac_cv_build in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 esac
2772 build=$ac_cv_build
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_build
2775 shift
2776 build_cpu=$1
2777 build_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 build_os=$*
2782 IFS=$ac_save_IFS
2783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2784
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2787 $as_echo_n "checking host system type... " >&6; }
2788 if ${ac_cv_host+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if test "x$host_alias" = x; then
2792   ac_cv_host=$ac_cv_build
2793 else
2794   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2795     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2796 fi
2797
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2800 $as_echo "$ac_cv_host" >&6; }
2801 case $ac_cv_host in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 esac
2805 host=$ac_cv_host
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_host
2808 shift
2809 host_cpu=$1
2810 host_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 host_os=$*
2815 IFS=$ac_save_IFS
2816 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2817
2818
2819 # Backslashify metacharacters that are still active within
2820 # double-quoted strings.
2821 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2822
2823 # Same as above, but do not quote variable references.
2824 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2825
2826 # Sed substitution to delay expansion of an escaped shell variable in a
2827 # double_quote_subst'ed string.
2828 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2829
2830 # Sed substitution to delay expansion of an escaped single quote.
2831 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2832
2833 # Sed substitution to avoid accidental globbing in evaled expressions
2834 no_glob_subst='s/\*/\\\*/g'
2835
2836 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2838 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2841 $as_echo_n "checking how to print strings... " >&6; }
2842 # Test print first, because it will be a builtin if present.
2843 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2844    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2845   ECHO='print -r --'
2846 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2847   ECHO='printf %s\n'
2848 else
2849   # Use this function as a fallback that always works.
2850   func_fallback_echo ()
2851   {
2852     eval 'cat <<_LTECHO_EOF
2853 $1
2854 _LTECHO_EOF'
2855   }
2856   ECHO='func_fallback_echo'
2857 fi
2858
2859 # func_echo_all arg...
2860 # Invoke $ECHO with all args, space-separated.
2861 func_echo_all ()
2862 {
2863     $ECHO ""
2864 }
2865
2866 case "$ECHO" in
2867   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2868 $as_echo "printf" >&6; } ;;
2869   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2870 $as_echo "print -r" >&6; } ;;
2871   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2872 $as_echo "cat" >&6; } ;;
2873 esac
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888 DEPDIR="${am__leading_dot}deps"
2889
2890 ac_config_commands="$ac_config_commands depfiles"
2891
2892
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2895 am__doit:
2896         @echo this is the am__doit target
2897 .PHONY: am__doit
2898 END
2899 # If we don't find an include directive, just comment out the code.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2902 am__include="#"
2903 am__quote=
2904 _am_result=none
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # Ignore all kinds of additional output from `make'.
2908 case `$am_make -s -f confmf 2> /dev/null` in #(
2909 *the\ am__doit\ target*)
2910   am__include=include
2911   am__quote=
2912   _am_result=GNU
2913   ;;
2914 esac
2915 # Now try BSD make style include.
2916 if test "$am__include" = "#"; then
2917    echo '.include "confinc"' > confmf
2918    case `$am_make -s -f confmf 2> /dev/null` in #(
2919    *the\ am__doit\ target*)
2920      am__include=.include
2921      am__quote="\""
2922      _am_result=BSD
2923      ;;
2924    esac
2925 fi
2926
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2929 $as_echo "$_am_result" >&6; }
2930 rm -f confinc confmf
2931
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then :
2934   enableval=$enable_dependency_tracking;
2935 fi
2936
2937 if test "x$enable_dependency_tracking" != xno; then
2938   am_depcomp="$ac_aux_dir/depcomp"
2939   AMDEPBACKSLASH='\'
2940 fi
2941  if test "x$enable_dependency_tracking" != xno; then
2942   AMDEP_TRUE=
2943   AMDEP_FALSE='#'
2944 else
2945   AMDEP_TRUE='#'
2946   AMDEP_FALSE=
2947 fi
2948
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$CC"; then
2964   ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$ac_cv_prog_CC"; then
2995   ac_ct_CC=$CC
2996   # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$ac_ct_CC"; then
3004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_ac_ct_CC="gcc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032   if test "x$ac_ct_CC" = x; then
3033     CC=""
3034   else
3035     case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3040 esac
3041     CC=$ac_ct_CC
3042   fi
3043 else
3044   CC="$ac_cv_prog_CC"
3045 fi
3046
3047 if test -z "$CC"; then
3048           if test -n "$ac_tool_prefix"; then
3049     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$CC"; then
3057   ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_CC="${ac_tool_prefix}cc"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086   fi
3087 fi
3088 if test -z "$CC"; then
3089   # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099   ac_prog_rejected=no
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105     for ac_exec_ext in '' $ac_executable_extensions; do
3106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108        ac_prog_rejected=yes
3109        continue
3110      fi
3111     ac_cv_prog_CC="cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 if test $ac_prog_rejected = yes; then
3120   # We found a bogon in the path, so make sure we never use it.
3121   set dummy $ac_cv_prog_CC
3122   shift
3123   if test $# != 0; then
3124     # We chose a different compiler from the bogus one.
3125     # However, it has the same basename, so the bogon will be chosen
3126     # first if we set CC to just the basename; use the full file name.
3127     shift
3128     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3129   fi
3130 fi
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 fi
3144 if test -z "$CC"; then
3145   if test -n "$ac_tool_prefix"; then
3146   for ac_prog in cl.exe
3147   do
3148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185     test -n "$CC" && break
3186   done
3187 fi
3188 if test -z "$CC"; then
3189   ac_ct_CC=$CC
3190   for ac_prog in cl.exe
3191 do
3192   # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$ac_ct_CC"; then
3200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209     ac_cv_prog_ac_ct_CC="$ac_prog"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229   test -n "$ac_ct_CC" && break
3230 done
3231
3232   if test "x$ac_ct_CC" = x; then
3233     CC=""
3234   else
3235     case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241     CC=$ac_ct_CC
3242   fi
3243 fi
3244
3245 fi
3246
3247
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3252
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3255 set X $ac_compile
3256 ac_compiler=$2
3257 for ac_option in --version -v -V -qversion; do
3258   { { ac_try="$ac_compiler $ac_option >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266   ac_status=$?
3267   if test -s conftest.err; then
3268     sed '10a\
3269 ... rest of stderr output deleted ...
3270          10q' conftest.err >conftest.er1
3271     cat conftest.er1 >&5
3272   fi
3273   rm -f conftest.er1 conftest.err
3274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275   test $ac_status = 0; }
3276 done
3277
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307   esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { { ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_link_default") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }; then :
3322   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3326 # Autoconf.
3327 for ac_file in $ac_files ''
3328 do
3329   test -f "$ac_file" || continue
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332         ;;
3333     [ab].out )
3334         # We found the default executable, but exeext='' is most
3335         # certainly right.
3336         break;;
3337     *.* )
3338         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339         then :; else
3340            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341         fi
3342         # We set ac_cv_exeext here because the later test for it is not
3343         # safe: cross compilers may not add the suffix if given an `-o'
3344         # argument, so we may need to know it at that point already.
3345         # Even if this section looks crufty: it has the advantage of
3346         # actually working.
3347         break;;
3348     * )
3349         break;;
3350   esac
3351 done
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
3354 else
3355   ac_file=''
3356 fi
3357 if test -z "$ac_file"; then :
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3376
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_link") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391   test $ac_status = 0; }; then :
3392   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397   test -f "$ac_file" || continue
3398   case $ac_file in
3399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401           break;;
3402     * ) break;;
3403   esac
3404 done
3405 else
3406   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3414
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3417 ac_exeext=$EXEEXT
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420 #include <stdio.h>
3421 int
3422 main ()
3423 {
3424 FILE *f = fopen ("conftest.out", "w");
3425  return ferror (f) || fclose (f) != 0;
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run.  If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437   { { ac_try="$ac_link"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_link") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }
3448   if { ac_try='./conftest$ac_cv_exeext'
3449   { { case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_try") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; }; then
3459     cross_compiling=no
3460   else
3461     if test "$cross_compiling" = maybe; then
3462         cross_compiling=yes
3463     else
3464         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3469     fi
3470   fi
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3474
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if ${ac_cv_objext+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_compile") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504   test $ac_status = 0; }; then :
3505   for ac_file in conftest.o conftest.obj conftest.*; do
3506   test -f "$ac_file" || continue;
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510        break;;
3511   esac
3512 done
3513 else
3514   $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3527 ac_objext=$OBJEXT
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __GNUC__
3540        choke me
3541 #endif
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548   ac_compiler_gnu=yes
3549 else
3550   ac_compiler_gnu=no
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3559   GCC=yes
3560 else
3561   GCC=
3562 fi
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   ac_save_c_werror_flag=$ac_c_werror_flag
3571    ac_c_werror_flag=yes
3572    ac_cv_prog_cc_g=no
3573    CFLAGS="-g"
3574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_g=yes
3587 else
3588   CFLAGS=""
3589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601
3602 else
3603   ac_c_werror_flag=$ac_save_c_werror_flag
3604          CFLAGS="-g"
3605          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617   ac_cv_prog_cc_g=yes
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624    ac_c_werror_flag=$ac_save_c_werror_flag
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   ac_cv_prog_cc_c89=no
3649 ac_save_CC=$CC
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660      char **p;
3661      int i;
3662 {
3663   return p[i];
3664 }
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3666 {
3667   char *s;
3668   va_list v;
3669   va_start (v,p);
3670   s = g (p, va_arg (v,int));
3671   va_end (v);
3672   return s;
3673 }
3674
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3676    function prototypes and stuff, but not '\xHH' hex character constants.
3677    These don't provoke an error unfortunately, instead are silently treated
3678    as 'x'.  The following induces an error, until -std is added to get
3679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3680    array size at least.  It's necessary to write '\x00'==0 to get something
3681    that's true only with -std.  */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685    inside strings and character constants.  */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3695 int
3696 main ()
3697 {
3698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 do
3706   CC="$ac_save_CC $ac_arg"
3707   if ac_fn_c_try_compile "$LINENO"; then :
3708   ac_cv_prog_cc_c89=$ac_arg
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext
3711   test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 done
3713 rm -f conftest.$ac_ext
3714 CC=$ac_save_CC
3715
3716 fi
3717 # AC_CACHE_VAL
3718 case "x$ac_cv_prog_cc_c89" in
3719   x)
3720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3722   xno)
3723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3725   *)
3726     CC="$CC $ac_cv_prog_cc_c89"
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3729 esac
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3731
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740 depcc="$CC"   am_compiler_list=
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748   # We make a subdir and do the tests there.  Otherwise we can end up
3749   # making bogus files that we don't know about and never remove.  For
3750   # instance it was reported that on HP-UX the gcc test will end up
3751   # making a dummy file named `D' -- because `-MD' means `put the output
3752   # in D'.
3753   mkdir conftest.dir
3754   # Copy depcomp to subdir because otherwise we won't find it if we're
3755   # using a relative directory.
3756   cp "$am_depcomp" conftest.dir
3757   cd conftest.dir
3758   # We will build objects and dependencies in a subdirectory because
3759   # it helps to detect inapplicable dependency modes.  For instance
3760   # both Tru64's cc and ICC support -MD to output dependencies as a
3761   # side effect of compilation, but ICC will put the dependencies in
3762   # the current directory while Tru64 will put them in the object
3763   # directory.
3764   mkdir sub
3765
3766   am_cv_CC_dependencies_compiler_type=none
3767   if test "$am_compiler_list" = ""; then
3768      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3769   fi
3770   am__universal=false
3771   case " $depcc " in #(
3772      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3773      esac
3774
3775   for depmode in $am_compiler_list; do
3776     # Setup a source with many dependencies, because some compilers
3777     # like to wrap large dependency lists on column 80 (with \), and
3778     # we should not choose a depcomp mode which is confused by this.
3779     #
3780     # We need to recreate these files for each test, as the compiler may
3781     # overwrite some of them when testing with obscure command lines.
3782     # This happens at least with the AIX C compiler.
3783     : > sub/conftest.c
3784     for i in 1 2 3 4 5 6; do
3785       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787       # Solaris 8's {/usr,}/bin/sh.
3788       touch sub/conftst$i.h
3789     done
3790     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3791
3792     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793     # mode.  It turns out that the SunPro C++ compiler does not properly
3794     # handle `-M -o', and we need to detect this.  Also, some Intel
3795     # versions had trouble with output in subdirs
3796     am__obj=sub/conftest.${OBJEXT-o}
3797     am__minus_obj="-o $am__obj"
3798     case $depmode in
3799     gcc)
3800       # This depmode causes a compiler race in universal mode.
3801       test "$am__universal" = false || continue
3802       ;;
3803     nosideeffect)
3804       # after this tag, mechanisms are not by side-effect, so they'll
3805       # only be used when explicitly requested
3806       if test "x$enable_dependency_tracking" = xyes; then
3807         continue
3808       else
3809         break
3810       fi
3811       ;;
3812     msvisualcpp | msvcmsys)
3813       # This compiler won't grok `-c -o', but also, the minuso test has
3814       # not run yet.  These depmodes are late enough in the game, and
3815       # so weak that their functioning should not be impacted.
3816       am__obj=conftest.${OBJEXT-o}
3817       am__minus_obj=
3818       ;;
3819     none) break ;;
3820     esac
3821     if depmode=$depmode \
3822        source=sub/conftest.c object=$am__obj \
3823        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3825          >/dev/null 2>conftest.err &&
3826        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3829        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830       # icc doesn't choke on unknown options, it will just issue warnings
3831       # or remarks (even with -Werror).  So we grep stderr for any message
3832       # that says an option was ignored or not supported.
3833       # When given -MP, icc 7.0 and 7.1 complain thusly:
3834       #   icc: Command line warning: ignoring option '-M'; no argument required
3835       # The diagnosis changed in icc 8.0:
3836       #   icc: Command line remark: option '-MP' not supported
3837       if (grep 'ignoring option' conftest.err ||
3838           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839         am_cv_CC_dependencies_compiler_type=$depmode
3840         break
3841       fi
3842     fi
3843   done
3844
3845   cd ..
3846   rm -rf conftest.dir
3847 else
3848   am_cv_CC_dependencies_compiler_type=none
3849 fi
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3855
3856  if
3857   test "x$enable_dependency_tracking" != xno \
3858   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3859   am__fastdepCC_TRUE=
3860   am__fastdepCC_FALSE='#'
3861 else
3862   am__fastdepCC_TRUE='#'
3863   am__fastdepCC_FALSE=
3864 fi
3865
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869 if ${ac_cv_path_SED+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3873      for ac_i in 1 2 3 4 5 6 7; do
3874        ac_script="$ac_script$as_nl$ac_script"
3875      done
3876      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3877      { ac_script=; unset ac_script;}
3878      if test -z "$SED"; then
3879   ac_path_SED_found=false
3880   # Loop through the user's path and test for each of PROGNAME-LIST
3881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886     for ac_prog in sed gsed; do
3887     for ac_exec_ext in '' $ac_executable_extensions; do
3888       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3889       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3890 # Check for GNU ac_path_SED and select it if it is found.
3891   # Check for GNU $ac_path_SED
3892 case `"$ac_path_SED" --version 2>&1` in
3893 *GNU*)
3894   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3895 *)
3896   ac_count=0
3897   $as_echo_n 0123456789 >"conftest.in"
3898   while :
3899   do
3900     cat "conftest.in" "conftest.in" >"conftest.tmp"
3901     mv "conftest.tmp" "conftest.in"
3902     cp "conftest.in" "conftest.nl"
3903     $as_echo '' >> "conftest.nl"
3904     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906     as_fn_arith $ac_count + 1 && ac_count=$as_val
3907     if test $ac_count -gt ${ac_path_SED_max-0}; then
3908       # Best one so far, save it but keep looking for a better one
3909       ac_cv_path_SED="$ac_path_SED"
3910       ac_path_SED_max=$ac_count
3911     fi
3912     # 10*(2^10) chars as input seems more than enough
3913     test $ac_count -gt 10 && break
3914   done
3915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 esac
3917
3918       $ac_path_SED_found && break 3
3919     done
3920   done
3921   done
3922 IFS=$as_save_IFS
3923   if test -z "$ac_cv_path_SED"; then
3924     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3925   fi
3926 else
3927   ac_cv_path_SED=$SED
3928 fi
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3932 $as_echo "$ac_cv_path_SED" >&6; }
3933  SED="$ac_cv_path_SED"
3934   rm -f conftest.sed
3935
3936 test -z "$SED" && SED=sed
3937 Xsed="$SED -e 1s/^X//"
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951 if ${ac_cv_path_GREP+:} false; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   if test -z "$GREP"; then
3955   ac_path_GREP_found=false
3956   # Loop through the user's path and test for each of PROGNAME-LIST
3957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962     for ac_prog in grep ggrep; do
3963     for ac_exec_ext in '' $ac_executable_extensions; do
3964       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966 # Check for GNU ac_path_GREP and select it if it is found.
3967   # Check for GNU $ac_path_GREP
3968 case `"$ac_path_GREP" --version 2>&1` in
3969 *GNU*)
3970   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3971 *)
3972   ac_count=0
3973   $as_echo_n 0123456789 >"conftest.in"
3974   while :
3975   do
3976     cat "conftest.in" "conftest.in" >"conftest.tmp"
3977     mv "conftest.tmp" "conftest.in"
3978     cp "conftest.in" "conftest.nl"
3979     $as_echo 'GREP' >> "conftest.nl"
3980     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982     as_fn_arith $ac_count + 1 && ac_count=$as_val
3983     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984       # Best one so far, save it but keep looking for a better one
3985       ac_cv_path_GREP="$ac_path_GREP"
3986       ac_path_GREP_max=$ac_count
3987     fi
3988     # 10*(2^10) chars as input seems more than enough
3989     test $ac_count -gt 10 && break
3990   done
3991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3992 esac
3993
3994       $ac_path_GREP_found && break 3
3995     done
3996   done
3997   done
3998 IFS=$as_save_IFS
3999   if test -z "$ac_cv_path_GREP"; then
4000     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4001   fi
4002 else
4003   ac_cv_path_GREP=$GREP
4004 fi
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008 $as_echo "$ac_cv_path_GREP" >&6; }
4009  GREP="$ac_cv_path_GREP"
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013 $as_echo_n "checking for egrep... " >&6; }
4014 if ${ac_cv_path_EGREP+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018    then ac_cv_path_EGREP="$GREP -E"
4019    else
4020      if test -z "$EGREP"; then
4021   ac_path_EGREP_found=false
4022   # Loop through the user's path and test for each of PROGNAME-LIST
4023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028     for ac_prog in egrep; do
4029     for ac_exec_ext in '' $ac_executable_extensions; do
4030       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033   # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4035 *GNU*)
4036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4037 *)
4038   ac_count=0
4039   $as_echo_n 0123456789 >"conftest.in"
4040   while :
4041   do
4042     cat "conftest.in" "conftest.in" >"conftest.tmp"
4043     mv "conftest.tmp" "conftest.in"
4044     cp "conftest.in" "conftest.nl"
4045     $as_echo 'EGREP' >> "conftest.nl"
4046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048     as_fn_arith $ac_count + 1 && ac_count=$as_val
4049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050       # Best one so far, save it but keep looking for a better one
4051       ac_cv_path_EGREP="$ac_path_EGREP"
4052       ac_path_EGREP_max=$ac_count
4053     fi
4054     # 10*(2^10) chars as input seems more than enough
4055     test $ac_count -gt 10 && break
4056   done
4057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 esac
4059
4060       $ac_path_EGREP_found && break 3
4061     done
4062   done
4063   done
4064 IFS=$as_save_IFS
4065   if test -z "$ac_cv_path_EGREP"; then
4066     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4067   fi
4068 else
4069   ac_cv_path_EGREP=$EGREP
4070 fi
4071
4072    fi
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075 $as_echo "$ac_cv_path_EGREP" >&6; }
4076  EGREP="$ac_cv_path_EGREP"
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4080 $as_echo_n "checking for fgrep... " >&6; }
4081 if ${ac_cv_path_FGREP+:} false; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4085    then ac_cv_path_FGREP="$GREP -F"
4086    else
4087      if test -z "$FGREP"; then
4088   ac_path_FGREP_found=false
4089   # Loop through the user's path and test for each of PROGNAME-LIST
4090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095     for ac_prog in fgrep; do
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4098       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4099 # Check for GNU ac_path_FGREP and select it if it is found.
4100   # Check for GNU $ac_path_FGREP
4101 case `"$ac_path_FGREP" --version 2>&1` in
4102 *GNU*)
4103   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4104 *)
4105   ac_count=0
4106   $as_echo_n 0123456789 >"conftest.in"
4107   while :
4108   do
4109     cat "conftest.in" "conftest.in" >"conftest.tmp"
4110     mv "conftest.tmp" "conftest.in"
4111     cp "conftest.in" "conftest.nl"
4112     $as_echo 'FGREP' >> "conftest.nl"
4113     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115     as_fn_arith $ac_count + 1 && ac_count=$as_val
4116     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4117       # Best one so far, save it but keep looking for a better one
4118       ac_cv_path_FGREP="$ac_path_FGREP"
4119       ac_path_FGREP_max=$ac_count
4120     fi
4121     # 10*(2^10) chars as input seems more than enough
4122     test $ac_count -gt 10 && break
4123   done
4124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127       $ac_path_FGREP_found && break 3
4128     done
4129   done
4130   done
4131 IFS=$as_save_IFS
4132   if test -z "$ac_cv_path_FGREP"; then
4133     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134   fi
4135 else
4136   ac_cv_path_FGREP=$FGREP
4137 fi
4138
4139    fi
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4142 $as_echo "$ac_cv_path_FGREP" >&6; }
4143  FGREP="$ac_cv_path_FGREP"
4144
4145
4146 test -z "$GREP" && GREP=grep
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166 # Check whether --with-gnu-ld was given.
4167 if test "${with_gnu_ld+set}" = set; then :
4168   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4169 else
4170   with_gnu_ld=no
4171 fi
4172
4173 ac_prog=ld
4174 if test "$GCC" = yes; then
4175   # Check if gcc -print-prog-name=ld gives a path.
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4177 $as_echo_n "checking for ld used by $CC... " >&6; }
4178   case $host in
4179   *-*-mingw*)
4180     # gcc leaves a trailing carriage return which upsets mingw
4181     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4182   *)
4183     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4184   esac
4185   case $ac_prog in
4186     # Accept absolute paths.
4187     [\\/]* | ?:[\\/]*)
4188       re_direlt='/[^/][^/]*/\.\./'
4189       # Canonicalize the pathname of ld
4190       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4191       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4192         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4193       done
4194       test -z "$LD" && LD="$ac_prog"
4195       ;;
4196   "")
4197     # If it fails, then pretend we aren't using GCC.
4198     ac_prog=ld
4199     ;;
4200   *)
4201     # If it is relative, then search for the first ld in PATH.
4202     with_gnu_ld=unknown
4203     ;;
4204   esac
4205 elif test "$with_gnu_ld" = yes; then
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4207 $as_echo_n "checking for GNU ld... " >&6; }
4208 else
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4210 $as_echo_n "checking for non-GNU ld... " >&6; }
4211 fi
4212 if ${lt_cv_path_LD+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -z "$LD"; then
4216   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4217   for ac_dir in $PATH; do
4218     IFS="$lt_save_ifs"
4219     test -z "$ac_dir" && ac_dir=.
4220     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221       lt_cv_path_LD="$ac_dir/$ac_prog"
4222       # Check to see if the program is GNU ld.  I'd rather use --version,
4223       # but apparently some variants of GNU ld only accept -v.
4224       # Break only if it was the GNU/non-GNU ld that we prefer.
4225       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4226       *GNU* | *'with BFD'*)
4227         test "$with_gnu_ld" != no && break
4228         ;;
4229       *)
4230         test "$with_gnu_ld" != yes && break
4231         ;;
4232       esac
4233     fi
4234   done
4235   IFS="$lt_save_ifs"
4236 else
4237   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4238 fi
4239 fi
4240
4241 LD="$lt_cv_path_LD"
4242 if test -n "$LD"; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4244 $as_echo "$LD" >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4251 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4252 if ${lt_cv_prog_gnu_ld+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4256 case `$LD -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258   lt_cv_prog_gnu_ld=yes
4259   ;;
4260 *)
4261   lt_cv_prog_gnu_ld=no
4262   ;;
4263 esac
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4266 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4267 with_gnu_ld=$lt_cv_prog_gnu_ld
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4278 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4279 if ${lt_cv_path_NM+:} false; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if test -n "$NM"; then
4283   # Let the user override the test.
4284   lt_cv_path_NM="$NM"
4285 else
4286   lt_nm_to_check="${ac_tool_prefix}nm"
4287   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4288     lt_nm_to_check="$lt_nm_to_check nm"
4289   fi
4290   for lt_tmp_nm in $lt_nm_to_check; do
4291     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4292     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4293       IFS="$lt_save_ifs"
4294       test -z "$ac_dir" && ac_dir=.
4295       tmp_nm="$ac_dir/$lt_tmp_nm"
4296       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4297         # Check to see if the nm accepts a BSD-compat flag.
4298         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4299         #   nm: unknown option "B" ignored
4300         # Tru64's nm complains that /dev/null is an invalid object file
4301         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4302         */dev/null* | *'Invalid file or object type'*)
4303           lt_cv_path_NM="$tmp_nm -B"
4304           break
4305           ;;
4306         *)
4307           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4308           */dev/null*)
4309             lt_cv_path_NM="$tmp_nm -p"
4310             break
4311             ;;
4312           *)
4313             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4314             continue # so that we can try to find one that supports BSD flags
4315             ;;
4316           esac
4317           ;;
4318         esac
4319       fi
4320     done
4321     IFS="$lt_save_ifs"
4322   done
4323   : ${lt_cv_path_NM=no}
4324 fi
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4327 $as_echo "$lt_cv_path_NM" >&6; }
4328 if test "$lt_cv_path_NM" != "no"; then
4329   NM="$lt_cv_path_NM"
4330 else
4331   # Didn't find any BSD compatible name lister, look for dumpbin.
4332   if test -n "$DUMPBIN"; then :
4333     # Let the user override the test.
4334   else
4335     if test -n "$ac_tool_prefix"; then
4336   for ac_prog in dumpbin "link -dump"
4337   do
4338     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_DUMPBIN+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if test -n "$DUMPBIN"; then
4346   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353     for ac_exec_ext in '' $ac_executable_extensions; do
4354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357     break 2
4358   fi
4359 done
4360   done
4361 IFS=$as_save_IFS
4362
4363 fi
4364 fi
4365 DUMPBIN=$ac_cv_prog_DUMPBIN
4366 if test -n "$DUMPBIN"; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4368 $as_echo "$DUMPBIN" >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373
4374
4375     test -n "$DUMPBIN" && break
4376   done
4377 fi
4378 if test -z "$DUMPBIN"; then
4379   ac_ct_DUMPBIN=$DUMPBIN
4380   for ac_prog in dumpbin "link -dump"
4381 do
4382   # Extract the first word of "$ac_prog", so it can be a program name with args.
4383 set dummy $ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   if test -n "$ac_ct_DUMPBIN"; then
4390   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404   done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410 if test -n "$ac_ct_DUMPBIN"; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4412 $as_echo "$ac_ct_DUMPBIN" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419   test -n "$ac_ct_DUMPBIN" && break
4420 done
4421
4422   if test "x$ac_ct_DUMPBIN" = x; then
4423     DUMPBIN=":"
4424   else
4425     case $cross_compiling:$ac_tool_warned in
4426 yes:)
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429 ac_tool_warned=yes ;;
4430 esac
4431     DUMPBIN=$ac_ct_DUMPBIN
4432   fi
4433 fi
4434
4435     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4436     *COFF*)
4437       DUMPBIN="$DUMPBIN -symbols"
4438       ;;
4439     *)
4440       DUMPBIN=:
4441       ;;
4442     esac
4443   fi
4444
4445   if test "$DUMPBIN" != ":"; then
4446     NM="$DUMPBIN"
4447   fi
4448 fi
4449 test -z "$NM" && NM=nm
4450
4451
4452
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4457 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4458 if ${lt_cv_nm_interface+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   lt_cv_nm_interface="BSD nm"
4462   echo "int some_variable = 0;" > conftest.$ac_ext
4463   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4464   (eval "$ac_compile" 2>conftest.err)
4465   cat conftest.err >&5
4466   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468   cat conftest.err >&5
4469   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4470   cat conftest.out >&5
4471   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472     lt_cv_nm_interface="MS dumpbin"
4473   fi
4474   rm -f conftest*
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4477 $as_echo "$lt_cv_nm_interface" >&6; }
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4480 $as_echo_n "checking whether ln -s works... " >&6; }
4481 LN_S=$as_ln_s
4482 if test "$LN_S" = "ln -s"; then
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4485 else
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4487 $as_echo "no, using $LN_S" >&6; }
4488 fi
4489
4490 # find the maximum length of command line arguments
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4492 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4493 if ${lt_cv_sys_max_cmd_len+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496     i=0
4497   teststring="ABCD"
4498
4499   case $build_os in
4500   msdosdjgpp*)
4501     # On DJGPP, this test can blow up pretty badly due to problems in libc
4502     # (any single argument exceeding 2000 bytes causes a buffer overrun
4503     # during glob expansion).  Even if it were fixed, the result of this
4504     # check would be larger than it should be.
4505     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4506     ;;
4507
4508   gnu*)
4509     # Under GNU Hurd, this test is not required because there is
4510     # no limit to the length of command line arguments.
4511     # Libtool will interpret -1 as no limit whatsoever
4512     lt_cv_sys_max_cmd_len=-1;
4513     ;;
4514
4515   cygwin* | mingw* | cegcc*)
4516     # On Win9x/ME, this test blows up -- it succeeds, but takes
4517     # about 5 minutes as the teststring grows exponentially.
4518     # Worse, since 9x/ME are not pre-emptively multitasking,
4519     # you end up with a "frozen" computer, even though with patience
4520     # the test eventually succeeds (with a max line length of 256k).
4521     # Instead, let's just punt: use the minimum linelength reported by
4522     # all of the supported platforms: 8192 (on NT/2K/XP).
4523     lt_cv_sys_max_cmd_len=8192;
4524     ;;
4525
4526   mint*)
4527     # On MiNT this can take a long time and run out of memory.
4528     lt_cv_sys_max_cmd_len=8192;
4529     ;;
4530
4531   amigaos*)
4532     # On AmigaOS with pdksh, this test takes hours, literally.
4533     # So we just punt and use a minimum line length of 8192.
4534     lt_cv_sys_max_cmd_len=8192;
4535     ;;
4536
4537   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4538     # This has been around since 386BSD, at least.  Likely further.
4539     if test -x /sbin/sysctl; then
4540       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4541     elif test -x /usr/sbin/sysctl; then
4542       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4543     else
4544       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4545     fi
4546     # And add a safety zone
4547     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4549     ;;
4550
4551   interix*)
4552     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4553     lt_cv_sys_max_cmd_len=196608
4554     ;;
4555
4556   osf*)
4557     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4558     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4559     # nice to cause kernel panics so lets avoid the loop below.
4560     # First set a reasonable default.
4561     lt_cv_sys_max_cmd_len=16384
4562     #
4563     if test -x /sbin/sysconfig; then
4564       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4565         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4566       esac
4567     fi
4568     ;;
4569   sco3.2v5*)
4570     lt_cv_sys_max_cmd_len=102400
4571     ;;
4572   sysv5* | sco5v6* | sysv4.2uw2*)
4573     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4574     if test -n "$kargmax"; then
4575       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4576     else
4577       lt_cv_sys_max_cmd_len=32768
4578     fi
4579     ;;
4580   *)
4581     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4582     if test -n "$lt_cv_sys_max_cmd_len"; then
4583       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4584       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4585     else
4586       # Make teststring a little bigger before we do anything with it.
4587       # a 1K string should be a reasonable start.
4588       for i in 1 2 3 4 5 6 7 8 ; do
4589         teststring=$teststring$teststring
4590       done
4591       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4592       # If test is not a shell built-in, we'll probably end up computing a
4593       # maximum length that is only half of the actual maximum length, but
4594       # we can't tell.
4595       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4596                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4597               test $i != 17 # 1/2 MB should be enough
4598       do
4599         i=`expr $i + 1`
4600         teststring=$teststring$teststring
4601       done
4602       # Only check the string length outside the loop.
4603       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4604       teststring=
4605       # Add a significant safety factor because C++ compilers can tack on
4606       # massive amounts of additional arguments before passing them to the
4607       # linker.  It appears as though 1/2 is a usable value.
4608       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4609     fi
4610     ;;
4611   esac
4612
4613 fi
4614
4615 if test -n $lt_cv_sys_max_cmd_len ; then
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4618 else
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4620 $as_echo "none" >&6; }
4621 fi
4622 max_cmd_len=$lt_cv_sys_max_cmd_len
4623
4624
4625
4626
4627
4628
4629 : ${CP="cp -f"}
4630 : ${MV="mv -f"}
4631 : ${RM="rm -f"}
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4635 # Try some XSI features
4636 xsi_shell=no
4637 ( _lt_dummy="a/b/c"
4638   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4639       = c,a/b,b/c, \
4640     && eval 'test $(( 1 + 1 )) -eq 2 \
4641     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4642   && xsi_shell=yes
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4644 $as_echo "$xsi_shell" >&6; }
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4649 lt_shell_append=no
4650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4651     >/dev/null 2>&1 \
4652   && lt_shell_append=yes
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4654 $as_echo "$lt_shell_append" >&6; }
4655
4656
4657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4658   lt_unset=unset
4659 else
4660   lt_unset=false
4661 fi
4662
4663
4664
4665
4666
4667 # test EBCDIC or ASCII
4668 case `echo X|tr X '\101'` in
4669  A) # ASCII based system
4670     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4671   lt_SP2NL='tr \040 \012'
4672   lt_NL2SP='tr \015\012 \040\040'
4673   ;;
4674  *) # EBCDIC based system
4675   lt_SP2NL='tr \100 \n'
4676   lt_NL2SP='tr \r\n \100\100'
4677   ;;
4678 esac
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4690 if ${lt_cv_to_host_file_cmd+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   case $host in
4694   *-*-mingw* )
4695     case $build in
4696       *-*-mingw* ) # actually msys
4697         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4698         ;;
4699       *-*-cygwin* )
4700         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4701         ;;
4702       * ) # otherwise, assume *nix
4703         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4704         ;;
4705     esac
4706     ;;
4707   *-*-cygwin* )
4708     case $build in
4709       *-*-mingw* ) # actually msys
4710         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4711         ;;
4712       *-*-cygwin* )
4713         lt_cv_to_host_file_cmd=func_convert_file_noop
4714         ;;
4715       * ) # otherwise, assume *nix
4716         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4717         ;;
4718     esac
4719     ;;
4720   * ) # unhandled hosts (and "normal" native builds)
4721     lt_cv_to_host_file_cmd=func_convert_file_noop
4722     ;;
4723 esac
4724
4725 fi
4726
4727 to_host_file_cmd=$lt_cv_to_host_file_cmd
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4737 if ${lt_cv_to_tool_file_cmd+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   #assume ordinary cross tools, or native build.
4741 lt_cv_to_tool_file_cmd=func_convert_file_noop
4742 case $host in
4743   *-*-mingw* )
4744     case $build in
4745       *-*-mingw* ) # actually msys
4746         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4747         ;;
4748     esac
4749     ;;
4750 esac
4751
4752 fi
4753
4754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4757
4758
4759
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4764 if ${lt_cv_ld_reload_flag+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   lt_cv_ld_reload_flag='-r'
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4771 reload_flag=$lt_cv_ld_reload_flag
4772 case $reload_flag in
4773 "" | " "*) ;;
4774 *) reload_flag=" $reload_flag" ;;
4775 esac
4776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4777 case $host_os in
4778   cygwin* | mingw* | pw32* | cegcc*)
4779     if test "$GCC" != yes; then
4780       reload_cmds=false
4781     fi
4782     ;;
4783   darwin*)
4784     if test "$GCC" = yes; then
4785       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4786     else
4787       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4788     fi
4789     ;;
4790 esac
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800 if test -n "$ac_tool_prefix"; then
4801   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_OBJDUMP+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   if test -n "$OBJDUMP"; then
4809   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823   done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 OBJDUMP=$ac_cv_prog_OBJDUMP
4829 if test -n "$OBJDUMP"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4831 $as_echo "$OBJDUMP" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 fi
4839 if test -z "$ac_cv_prog_OBJDUMP"; then
4840   ac_ct_OBJDUMP=$OBJDUMP
4841   # Extract the first word of "objdump", so it can be a program name with args.
4842 set dummy objdump; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if test -n "$ac_ct_OBJDUMP"; then
4849   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856     for ac_exec_ext in '' $ac_executable_extensions; do
4857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863   done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4869 if test -n "$ac_ct_OBJDUMP"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4871 $as_echo "$ac_ct_OBJDUMP" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877   if test "x$ac_ct_OBJDUMP" = x; then
4878     OBJDUMP="false"
4879   else
4880     case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886     OBJDUMP=$ac_ct_OBJDUMP
4887   fi
4888 else
4889   OBJDUMP="$ac_cv_prog_OBJDUMP"
4890 fi
4891
4892 test -z "$OBJDUMP" && OBJDUMP=objdump
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4903 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4904 if ${lt_cv_deplibs_check_method+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   lt_cv_file_magic_cmd='$MAGIC_CMD'
4908 lt_cv_file_magic_test_file=
4909 lt_cv_deplibs_check_method='unknown'
4910 # Need to set the preceding variable on all platforms that support
4911 # interlibrary dependencies.
4912 # 'none' -- dependencies not supported.
4913 # `unknown' -- same as none, but documents that we really don't know.
4914 # 'pass_all' -- all dependencies passed with no checks.
4915 # 'test_compile' -- check by making test program.
4916 # 'file_magic [[regex]]' -- check by looking for files in library path
4917 # which responds to the $file_magic_cmd with a given extended regex.
4918 # If you have `file' or equivalent on your system and you're not sure
4919 # whether `pass_all' will *always* work, you probably want this one.
4920
4921 case $host_os in
4922 aix[4-9]*)
4923   lt_cv_deplibs_check_method=pass_all
4924   ;;
4925
4926 beos*)
4927   lt_cv_deplibs_check_method=pass_all
4928   ;;
4929
4930 bsdi[45]*)
4931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4932   lt_cv_file_magic_cmd='/usr/bin/file -L'
4933   lt_cv_file_magic_test_file=/shlib/libc.so
4934   ;;
4935
4936 cygwin*)
4937   # func_win32_libid is a shell function defined in ltmain.sh
4938   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4939   lt_cv_file_magic_cmd='func_win32_libid'
4940   ;;
4941
4942 mingw* | pw32*)
4943   # Base MSYS/MinGW do not provide the 'file' command needed by
4944   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4945   # unless we find 'file', for example because we are cross-compiling.
4946   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4947   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4948     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949     lt_cv_file_magic_cmd='func_win32_libid'
4950   else
4951     # Keep this pattern in sync with the one in func_win32_libid.
4952     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4953     lt_cv_file_magic_cmd='$OBJDUMP -f'
4954   fi
4955   ;;
4956
4957 cegcc*)
4958   # use the weaker test based on 'objdump'. See mingw*.
4959   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4960   lt_cv_file_magic_cmd='$OBJDUMP -f'
4961   ;;
4962
4963 darwin* | rhapsody*)
4964   lt_cv_deplibs_check_method=pass_all
4965   ;;
4966
4967 freebsd* | dragonfly*)
4968   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4969     case $host_cpu in
4970     i*86 )
4971       # Not sure whether the presence of OpenBSD here was a mistake.
4972       # Let's accept both of them until this is cleared up.
4973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4974       lt_cv_file_magic_cmd=/usr/bin/file
4975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4976       ;;
4977     esac
4978   else
4979     lt_cv_deplibs_check_method=pass_all
4980   fi
4981   ;;
4982
4983 gnu*)
4984   lt_cv_deplibs_check_method=pass_all
4985   ;;
4986
4987 haiku*)
4988   lt_cv_deplibs_check_method=pass_all
4989   ;;
4990
4991 hpux10.20* | hpux11*)
4992   lt_cv_file_magic_cmd=/usr/bin/file
4993   case $host_cpu in
4994   ia64*)
4995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4996     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4997     ;;
4998   hppa*64*)
4999     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]'
5000     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5001     ;;
5002   *)
5003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5004     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5005     ;;
5006   esac
5007   ;;
5008
5009 interix[3-9]*)
5010   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5011   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5012   ;;
5013
5014 irix5* | irix6* | nonstopux*)
5015   case $LD in
5016   *-32|*"-32 ") libmagic=32-bit;;
5017   *-n32|*"-n32 ") libmagic=N32;;
5018   *-64|*"-64 ") libmagic=64-bit;;
5019   *) libmagic=never-match;;
5020   esac
5021   lt_cv_deplibs_check_method=pass_all
5022   ;;
5023
5024 # This must be Linux ELF.
5025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5026   lt_cv_deplibs_check_method=pass_all
5027   ;;
5028
5029 netbsd*)
5030   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5032   else
5033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5034   fi
5035   ;;
5036
5037 newos6*)
5038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5039   lt_cv_file_magic_cmd=/usr/bin/file
5040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5041   ;;
5042
5043 *nto* | *qnx*)
5044   lt_cv_deplibs_check_method=pass_all
5045   ;;
5046
5047 openbsd*)
5048   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5050   else
5051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5052   fi
5053   ;;
5054
5055 osf3* | osf4* | osf5*)
5056   lt_cv_deplibs_check_method=pass_all
5057   ;;
5058
5059 rdos*)
5060   lt_cv_deplibs_check_method=pass_all
5061   ;;
5062
5063 solaris*)
5064   lt_cv_deplibs_check_method=pass_all
5065   ;;
5066
5067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5068   lt_cv_deplibs_check_method=pass_all
5069   ;;
5070
5071 sysv4 | sysv4.3*)
5072   case $host_vendor in
5073   motorola)
5074     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]'
5075     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5076     ;;
5077   ncr)
5078     lt_cv_deplibs_check_method=pass_all
5079     ;;
5080   sequent)
5081     lt_cv_file_magic_cmd='/bin/file'
5082     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5083     ;;
5084   sni)
5085     lt_cv_file_magic_cmd='/bin/file'
5086     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5087     lt_cv_file_magic_test_file=/lib/libc.so
5088     ;;
5089   siemens)
5090     lt_cv_deplibs_check_method=pass_all
5091     ;;
5092   pc)
5093     lt_cv_deplibs_check_method=pass_all
5094     ;;
5095   esac
5096   ;;
5097
5098 tpf*)
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101 esac
5102
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5106
5107 file_magic_glob=
5108 want_nocaseglob=no
5109 if test "$build" = "$host"; then
5110   case $host_os in
5111   mingw* | pw32*)
5112     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5113       want_nocaseglob=yes
5114     else
5115       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5116     fi
5117     ;;
5118   esac
5119 fi
5120
5121 file_magic_cmd=$lt_cv_file_magic_cmd
5122 deplibs_check_method=$lt_cv_deplibs_check_method
5123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 if test -n "$ac_tool_prefix"; then
5147   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_DLLTOOL+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -n "$DLLTOOL"; then
5155   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162     for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169   done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 DLLTOOL=$ac_cv_prog_DLLTOOL
5175 if test -n "$DLLTOOL"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5177 $as_echo "$DLLTOOL" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 fi
5185 if test -z "$ac_cv_prog_DLLTOOL"; then
5186   ac_ct_DLLTOOL=$DLLTOOL
5187   # Extract the first word of "dlltool", so it can be a program name with args.
5188 set dummy dlltool; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   if test -n "$ac_ct_DLLTOOL"; then
5195   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5215 if test -n "$ac_ct_DLLTOOL"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5217 $as_echo "$ac_ct_DLLTOOL" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223   if test "x$ac_ct_DLLTOOL" = x; then
5224     DLLTOOL="false"
5225   else
5226     case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232     DLLTOOL=$ac_ct_DLLTOOL
5233   fi
5234 else
5235   DLLTOOL="$ac_cv_prog_DLLTOOL"
5236 fi
5237
5238 test -z "$DLLTOOL" && DLLTOOL=dlltool
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5250 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5251 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5252   $as_echo_n "(cached) " >&6
5253 else
5254   lt_cv_sharedlib_from_linklib_cmd='unknown'
5255
5256 case $host_os in
5257 cygwin* | mingw* | pw32* | cegcc*)
5258   # two different shell functions defined in ltmain.sh
5259   # decide which to use based on capabilities of $DLLTOOL
5260   case `$DLLTOOL --help 2>&1` in
5261   *--identify-strict*)
5262     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5263     ;;
5264   *)
5265     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5266     ;;
5267   esac
5268   ;;
5269 *)
5270   # fallback: assume linklib IS sharedlib
5271   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5272   ;;
5273 esac
5274
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5277 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5278 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5279 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5280
5281
5282
5283
5284
5285
5286
5287
5288 if test -n "$ac_tool_prefix"; then
5289   for ac_prog in ar
5290   do
5291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_AR+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   if test -n "$AR"; then
5299   ac_cv_prog_AR="$AR" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 AR=$ac_cv_prog_AR
5319 if test -n "$AR"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5321 $as_echo "$AR" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328     test -n "$AR" && break
5329   done
5330 fi
5331 if test -z "$AR"; then
5332   ac_ct_AR=$AR
5333   for ac_prog in ar
5334 do
5335   # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   if test -n "$ac_ct_AR"; then
5343   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350     for ac_exec_ext in '' $ac_executable_extensions; do
5351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352     ac_cv_prog_ac_ct_AR="$ac_prog"
5353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357   done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363 if test -n "$ac_ct_AR"; then
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5365 $as_echo "$ac_ct_AR" >&6; }
5366 else
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372   test -n "$ac_ct_AR" && break
5373 done
5374
5375   if test "x$ac_ct_AR" = x; then
5376     AR="false"
5377   else
5378     case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384     AR=$ac_ct_AR
5385   fi
5386 fi
5387
5388 : ${AR=ar}
5389 : ${AR_FLAGS=cru}
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5402 $as_echo_n "checking for archiver @FILE support... " >&6; }
5403 if ${lt_cv_ar_at_file+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   lt_cv_ar_at_file=no
5407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409
5410 int
5411 main ()
5412 {
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419   echo conftest.$ac_objext > conftest.lst
5420       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5421       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5422   (eval $lt_ar_try) 2>&5
5423   ac_status=$?
5424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425   test $ac_status = 0; }
5426       if test "$ac_status" -eq 0; then
5427         # Ensure the archiver fails upon bogus file names.
5428         rm -f conftest.$ac_objext libconftest.a
5429         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5430   (eval $lt_ar_try) 2>&5
5431   ac_status=$?
5432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433   test $ac_status = 0; }
5434         if test "$ac_status" -ne 0; then
5435           lt_cv_ar_at_file=@
5436         fi
5437       fi
5438       rm -f conftest.* libconftest.a
5439
5440 fi
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5445 $as_echo "$lt_cv_ar_at_file" >&6; }
5446
5447 if test "x$lt_cv_ar_at_file" = xno; then
5448   archiver_list_spec=
5449 else
5450   archiver_list_spec=$lt_cv_ar_at_file
5451 fi
5452
5453
5454
5455
5456
5457
5458
5459 if test -n "$ac_tool_prefix"; then
5460   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_STRIP+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$STRIP"; then
5468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 fi
5498 if test -z "$ac_cv_prog_STRIP"; then
5499   ac_ct_STRIP=$STRIP
5500   # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if test -n "$ac_ct_STRIP"; then
5508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517     ac_cv_prog_ac_ct_STRIP="strip"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536   if test "x$ac_ct_STRIP" = x; then
5537     STRIP=":"
5538   else
5539     case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545     STRIP=$ac_ct_STRIP
5546   fi
5547 else
5548   STRIP="$ac_cv_prog_STRIP"
5549 fi
5550
5551 test -z "$STRIP" && STRIP=:
5552
5553
5554
5555
5556
5557
5558 if test -n "$ac_tool_prefix"; then
5559   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_RANLIB+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$RANLIB"; then
5567   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574     for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581   done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 RANLIB=$ac_cv_prog_RANLIB
5587 if test -n "$RANLIB"; then
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5589 $as_echo "$RANLIB" >&6; }
5590 else
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 fi
5597 if test -z "$ac_cv_prog_RANLIB"; then
5598   ac_ct_RANLIB=$RANLIB
5599   # Extract the first word of "ranlib", so it can be a program name with args.
5600 set dummy ranlib; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$ac_ct_RANLIB"; then
5607   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616     ac_cv_prog_ac_ct_RANLIB="ranlib"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627 if test -n "$ac_ct_RANLIB"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5629 $as_echo "$ac_ct_RANLIB" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635   if test "x$ac_ct_RANLIB" = x; then
5636     RANLIB=":"
5637   else
5638     case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644     RANLIB=$ac_ct_RANLIB
5645   fi
5646 else
5647   RANLIB="$ac_cv_prog_RANLIB"
5648 fi
5649
5650 test -z "$RANLIB" && RANLIB=:
5651
5652
5653
5654
5655
5656
5657 # Determine commands to create old-style static archives.
5658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659 old_postinstall_cmds='chmod 644 $oldlib'
5660 old_postuninstall_cmds=
5661
5662 if test -n "$RANLIB"; then
5663   case $host_os in
5664   openbsd*)
5665     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5666     ;;
5667   *)
5668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5669     ;;
5670   esac
5671   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5672 fi
5673
5674 case $host_os in
5675   darwin*)
5676     lock_old_archive_extraction=yes ;;
5677   *)
5678     lock_old_archive_extraction=no ;;
5679 esac
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 # If no C compiler was specified, use CC.
5720 LTCC=${LTCC-"$CC"}
5721
5722 # If no C compiler flags were specified, use CFLAGS.
5723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5724
5725 # Allow CC to be a program name with arguments.
5726 compiler=$CC
5727
5728
5729 # Check for command to grab the raw symbol name followed by C symbol from nm.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735
5736 # These are sane defaults that work on at least a few old systems.
5737 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5738
5739 # Character class describing NM global symbol codes.
5740 symcode='[BCDEGRST]'
5741
5742 # Regexp to match symbols that can be accessed directly from C.
5743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5744
5745 # Define system-specific variables.
5746 case $host_os in
5747 aix*)
5748   symcode='[BCDT]'
5749   ;;
5750 cygwin* | mingw* | pw32* | cegcc*)
5751   symcode='[ABCDGISTW]'
5752   ;;
5753 hpux*)
5754   if test "$host_cpu" = ia64; then
5755     symcode='[ABCDEGRST]'
5756   fi
5757   ;;
5758 irix* | nonstopux*)
5759   symcode='[BCDEGRST]'
5760   ;;
5761 osf*)
5762   symcode='[BCDEGQRST]'
5763   ;;
5764 solaris*)
5765   symcode='[BDRT]'
5766   ;;
5767 sco3.2v5*)
5768   symcode='[DT]'
5769   ;;
5770 sysv4.2uw2*)
5771   symcode='[DT]'
5772   ;;
5773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5774   symcode='[ABDT]'
5775   ;;
5776 sysv4)
5777   symcode='[DFNSTU]'
5778   ;;
5779 esac
5780
5781 # If we're using GNU nm, then use its standard symbol codes.
5782 case `$NM -V 2>&1` in
5783 *GNU* | *'with BFD'*)
5784   symcode='[ABCDGIRSTW]' ;;
5785 esac
5786
5787 # Transform an extracted symbol line into a proper C declaration.
5788 # Some systems (esp. on ia64) link data and code symbols differently,
5789 # so use this general approach.
5790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5791
5792 # Transform an extracted symbol line into symbol name and symbol address
5793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5794 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'"
5795
5796 # Handle CRLF in mingw tool chain
5797 opt_cr=
5798 case $build_os in
5799 mingw*)
5800   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5801   ;;
5802 esac
5803
5804 # Try without a prefix underscore, then with it.
5805 for ac_symprfx in "" "_"; do
5806
5807   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5808   symxfrm="\\1 $ac_symprfx\\2 \\2"
5809
5810   # Write the raw and C identifiers.
5811   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5812     # Fake it for dumpbin and say T for any non-static function
5813     # and D for any global variable.
5814     # Also find C++ and __fastcall symbols from MSVC++,
5815     # which start with @ or ?.
5816     lt_cv_sys_global_symbol_pipe="$AWK '"\
5817 "     {last_section=section; section=\$ 3};"\
5818 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5819 "     \$ 0!~/External *\|/{next};"\
5820 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5821 "     {if(hide[section]) next};"\
5822 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5823 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5824 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5825 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5826 "     ' prfx=^$ac_symprfx"
5827   else
5828     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5829   fi
5830   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5831
5832   # Check to see that the pipe works correctly.
5833   pipe_works=no
5834
5835   rm -f conftest*
5836   cat > conftest.$ac_ext <<_LT_EOF
5837 #ifdef __cplusplus
5838 extern "C" {
5839 #endif
5840 char nm_test_var;
5841 void nm_test_func(void);
5842 void nm_test_func(void){}
5843 #ifdef __cplusplus
5844 }
5845 #endif
5846 int main(){nm_test_var='a';nm_test_func();return(0);}
5847 _LT_EOF
5848
5849   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5850   (eval $ac_compile) 2>&5
5851   ac_status=$?
5852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853   test $ac_status = 0; }; then
5854     # Now try to grab the symbols.
5855     nlist=conftest.nm
5856     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5857   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5858   ac_status=$?
5859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860   test $ac_status = 0; } && test -s "$nlist"; then
5861       # Try sorting and uniquifying the output.
5862       if sort "$nlist" | uniq > "$nlist"T; then
5863         mv -f "$nlist"T "$nlist"
5864       else
5865         rm -f "$nlist"T
5866       fi
5867
5868       # Make sure that we snagged all the symbols we need.
5869       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5870         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5871           cat <<_LT_EOF > conftest.$ac_ext
5872 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5873 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5874 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5875    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5876 # define LT_DLSYM_CONST
5877 #elif defined(__osf__)
5878 /* This system does not cope well with relocations in const data.  */
5879 # define LT_DLSYM_CONST
5880 #else
5881 # define LT_DLSYM_CONST const
5882 #endif
5883
5884 #ifdef __cplusplus
5885 extern "C" {
5886 #endif
5887
5888 _LT_EOF
5889           # Now generate the symbol file.
5890           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5891
5892           cat <<_LT_EOF >> conftest.$ac_ext
5893
5894 /* The mapping between symbol names and symbols.  */
5895 LT_DLSYM_CONST struct {
5896   const char *name;
5897   void       *address;
5898 }
5899 lt__PROGRAM__LTX_preloaded_symbols[] =
5900 {
5901   { "@PROGRAM@", (void *) 0 },
5902 _LT_EOF
5903           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5904           cat <<\_LT_EOF >> conftest.$ac_ext
5905   {0, (void *) 0}
5906 };
5907
5908 /* This works around a problem in FreeBSD linker */
5909 #ifdef FREEBSD_WORKAROUND
5910 static const void *lt_preloaded_setup() {
5911   return lt__PROGRAM__LTX_preloaded_symbols;
5912 }
5913 #endif
5914
5915 #ifdef __cplusplus
5916 }
5917 #endif
5918 _LT_EOF
5919           # Now try linking the two files.
5920           mv conftest.$ac_objext conftstm.$ac_objext
5921           lt_globsym_save_LIBS=$LIBS
5922           lt_globsym_save_CFLAGS=$CFLAGS
5923           LIBS="conftstm.$ac_objext"
5924           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5925           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5926   (eval $ac_link) 2>&5
5927   ac_status=$?
5928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5930             pipe_works=yes
5931           fi
5932           LIBS=$lt_globsym_save_LIBS
5933           CFLAGS=$lt_globsym_save_CFLAGS
5934         else
5935           echo "cannot find nm_test_func in $nlist" >&5
5936         fi
5937       else
5938         echo "cannot find nm_test_var in $nlist" >&5
5939       fi
5940     else
5941       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5942     fi
5943   else
5944     echo "$progname: failed program was:" >&5
5945     cat conftest.$ac_ext >&5
5946   fi
5947   rm -rf conftest* conftst*
5948
5949   # Do not use the global_symbol_pipe unless it works.
5950   if test "$pipe_works" = yes; then
5951     break
5952   else
5953     lt_cv_sys_global_symbol_pipe=
5954   fi
5955 done
5956
5957 fi
5958
5959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5960   lt_cv_sys_global_symbol_to_cdecl=
5961 fi
5962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5964 $as_echo "failed" >&6; }
5965 else
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5967 $as_echo "ok" >&6; }
5968 fi
5969
5970 # Response file support.
5971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5972   nm_file_list_spec='@'
5973 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5974   nm_file_list_spec='@'
5975 fi
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6004 $as_echo_n "checking for sysroot... " >&6; }
6005
6006 # Check whether --with-sysroot was given.
6007 if test "${with_sysroot+set}" = set; then :
6008   withval=$with_sysroot;
6009 else
6010   with_sysroot=no
6011 fi
6012
6013
6014 lt_sysroot=
6015 case ${with_sysroot} in #(
6016  yes)
6017    if test "$GCC" = yes; then
6018      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6019    fi
6020    ;; #(
6021  /*)
6022    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6023    ;; #(
6024  no|'')
6025    ;; #(
6026  *)
6027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6028 $as_echo "${with_sysroot}" >&6; }
6029    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6030    ;;
6031 esac
6032
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6034 $as_echo "${lt_sysroot:-no}" >&6; }
6035
6036
6037
6038
6039
6040 # Check whether --enable-libtool-lock was given.
6041 if test "${enable_libtool_lock+set}" = set; then :
6042   enableval=$enable_libtool_lock;
6043 fi
6044
6045 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6046
6047 # Some flags need to be propagated to the compiler or linker for good
6048 # libtool support.
6049 case $host in
6050 ia64-*-hpux*)
6051   # Find out which ABI we are using.
6052   echo 'int i;' > conftest.$ac_ext
6053   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6054   (eval $ac_compile) 2>&5
6055   ac_status=$?
6056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057   test $ac_status = 0; }; then
6058     case `/usr/bin/file conftest.$ac_objext` in
6059       *ELF-32*)
6060         HPUX_IA64_MODE="32"
6061         ;;
6062       *ELF-64*)
6063         HPUX_IA64_MODE="64"
6064         ;;
6065     esac
6066   fi
6067   rm -rf conftest*
6068   ;;
6069 *-*-irix6*)
6070   # Find out which ABI we are using.
6071   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6072   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6073   (eval $ac_compile) 2>&5
6074   ac_status=$?
6075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076   test $ac_status = 0; }; then
6077     if test "$lt_cv_prog_gnu_ld" = yes; then
6078       case `/usr/bin/file conftest.$ac_objext` in
6079         *32-bit*)
6080           LD="${LD-ld} -melf32bsmip"
6081           ;;
6082         *N32*)
6083           LD="${LD-ld} -melf32bmipn32"
6084           ;;
6085         *64-bit*)
6086           LD="${LD-ld} -melf64bmip"
6087         ;;
6088       esac
6089     else
6090       case `/usr/bin/file conftest.$ac_objext` in
6091         *32-bit*)
6092           LD="${LD-ld} -32"
6093           ;;
6094         *N32*)
6095           LD="${LD-ld} -n32"
6096           ;;
6097         *64-bit*)
6098           LD="${LD-ld} -64"
6099           ;;
6100       esac
6101     fi
6102   fi
6103   rm -rf conftest*
6104   ;;
6105
6106 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6107 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6108   # Find out which ABI we are using.
6109   echo 'int i;' > conftest.$ac_ext
6110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6111   (eval $ac_compile) 2>&5
6112   ac_status=$?
6113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114   test $ac_status = 0; }; then
6115     case `/usr/bin/file conftest.o` in
6116       *32-bit*)
6117         case $host in
6118           x86_64-*kfreebsd*-gnu)
6119             LD="${LD-ld} -m elf_i386_fbsd"
6120             ;;
6121           x86_64-*linux*)
6122             LD="${LD-ld} -m elf_i386"
6123             ;;
6124           ppc64-*linux*|powerpc64-*linux*)
6125             LD="${LD-ld} -m elf32ppclinux"
6126             ;;
6127           s390x-*linux*)
6128             LD="${LD-ld} -m elf_s390"
6129             ;;
6130           sparc64-*linux*)
6131             LD="${LD-ld} -m elf32_sparc"
6132             ;;
6133         esac
6134         ;;
6135       *64-bit*)
6136         case $host in
6137           x86_64-*kfreebsd*-gnu)
6138             LD="${LD-ld} -m elf_x86_64_fbsd"
6139             ;;
6140           x86_64-*linux*)
6141             LD="${LD-ld} -m elf_x86_64"
6142             ;;
6143           ppc*-*linux*|powerpc*-*linux*)
6144             LD="${LD-ld} -m elf64ppc"
6145             ;;
6146           s390*-*linux*|s390*-*tpf*)
6147             LD="${LD-ld} -m elf64_s390"
6148             ;;
6149           sparc*-*linux*)
6150             LD="${LD-ld} -m elf64_sparc"
6151             ;;
6152         esac
6153         ;;
6154     esac
6155   fi
6156   rm -rf conftest*
6157   ;;
6158
6159 *-*-sco3.2v5*)
6160   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6161   SAVE_CFLAGS="$CFLAGS"
6162   CFLAGS="$CFLAGS -belf"
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6164 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6165 if ${lt_cv_cc_needs_belf+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   ac_ext=c
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173
6174      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h.  */
6176
6177 int
6178 main ()
6179 {
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"; then :
6186   lt_cv_cc_needs_belf=yes
6187 else
6188   lt_cv_cc_needs_belf=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext \
6191     conftest$ac_exeext conftest.$ac_ext
6192      ac_ext=c
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6200 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6201   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6202     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6203     CFLAGS="$SAVE_CFLAGS"
6204   fi
6205   ;;
6206 sparc*-*solaris*)
6207   # Find out which ABI we are using.
6208   echo 'int i;' > conftest.$ac_ext
6209   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210   (eval $ac_compile) 2>&5
6211   ac_status=$?
6212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213   test $ac_status = 0; }; then
6214     case `/usr/bin/file conftest.o` in
6215     *64-bit*)
6216       case $lt_cv_prog_gnu_ld in
6217       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6218       *)
6219         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6220           LD="${LD-ld} -64"
6221         fi
6222         ;;
6223       esac
6224       ;;
6225     esac
6226   fi
6227   rm -rf conftest*
6228   ;;
6229 esac
6230
6231 need_locks="$enable_libtool_lock"
6232
6233 if test -n "$ac_tool_prefix"; then
6234   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}mt; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6239   $as_echo_n "(cached) " >&6
6240 else
6241   if test -n "$MANIFEST_TOOL"; then
6242   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256   done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6262 if test -n "$MANIFEST_TOOL"; then
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6264 $as_echo "$MANIFEST_TOOL" >&6; }
6265 else
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270
6271 fi
6272 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6273   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6274   # Extract the first word of "mt", so it can be a program name with args.
6275 set dummy mt; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   if test -n "$ac_ct_MANIFEST_TOOL"; then
6282   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289     for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296   done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6302 if test -n "$ac_ct_MANIFEST_TOOL"; then
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6304 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6305 else
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6311     MANIFEST_TOOL=":"
6312   else
6313     case $cross_compiling:$ac_tool_warned in
6314 yes:)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6320   fi
6321 else
6322   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6323 fi
6324
6325 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6327 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6328 if ${lt_cv_path_mainfest_tool+:} false; then :
6329   $as_echo_n "(cached) " >&6
6330 else
6331   lt_cv_path_mainfest_tool=no
6332   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6333   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6334   cat conftest.err >&5
6335   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6336     lt_cv_path_mainfest_tool=yes
6337   fi
6338   rm -f conftest*
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6341 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6342 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6343   MANIFEST_TOOL=:
6344 fi
6345
6346
6347
6348
6349
6350
6351   case $host_os in
6352     rhapsody* | darwin*)
6353     if test -n "$ac_tool_prefix"; then
6354   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   if test -n "$DSYMUTIL"; then
6362   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6382 if test -n "$DSYMUTIL"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6384 $as_echo "$DSYMUTIL" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390
6391 fi
6392 if test -z "$ac_cv_prog_DSYMUTIL"; then
6393   ac_ct_DSYMUTIL=$DSYMUTIL
6394   # Extract the first word of "dsymutil", so it can be a program name with args.
6395 set dummy dsymutil; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$ac_ct_DSYMUTIL"; then
6402   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6422 if test -n "$ac_ct_DSYMUTIL"; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6424 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430   if test "x$ac_ct_DSYMUTIL" = x; then
6431     DSYMUTIL=":"
6432   else
6433     case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6438 esac
6439     DSYMUTIL=$ac_ct_DSYMUTIL
6440   fi
6441 else
6442   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6443 fi
6444
6445     if test -n "$ac_tool_prefix"; then
6446   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_NMEDIT+:} false; then :
6451   $as_echo_n "(cached) " >&6
6452 else
6453   if test -n "$NMEDIT"; then
6454   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468   done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 NMEDIT=$ac_cv_prog_NMEDIT
6474 if test -n "$NMEDIT"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6476 $as_echo "$NMEDIT" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_NMEDIT"; then
6485   ac_ct_NMEDIT=$NMEDIT
6486   # Extract the first word of "nmedit", so it can be a program name with args.
6487 set dummy nmedit; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$ac_ct_NMEDIT"; then
6494   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6514 if test -n "$ac_ct_NMEDIT"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6516 $as_echo "$ac_ct_NMEDIT" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522   if test "x$ac_ct_NMEDIT" = x; then
6523     NMEDIT=":"
6524   else
6525     case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531     NMEDIT=$ac_ct_NMEDIT
6532   fi
6533 else
6534   NMEDIT="$ac_cv_prog_NMEDIT"
6535 fi
6536
6537     if test -n "$ac_tool_prefix"; then
6538   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_prog_LIPO+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   if test -n "$LIPO"; then
6546   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   test -z "$as_dir" && as_dir=.
6553     for ac_exec_ext in '' $ac_executable_extensions; do
6554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557     break 2
6558   fi
6559 done
6560   done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 LIPO=$ac_cv_prog_LIPO
6566 if test -n "$LIPO"; then
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6568 $as_echo "$LIPO" >&6; }
6569 else
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575 fi
6576 if test -z "$ac_cv_prog_LIPO"; then
6577   ac_ct_LIPO=$LIPO
6578   # Extract the first word of "lipo", so it can be a program name with args.
6579 set dummy lipo; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   if test -n "$ac_ct_LIPO"; then
6586   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595     ac_cv_prog_ac_ct_LIPO="lipo"
6596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600   done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6606 if test -n "$ac_ct_LIPO"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6608 $as_echo "$ac_ct_LIPO" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614   if test "x$ac_ct_LIPO" = x; then
6615     LIPO=":"
6616   else
6617     case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623     LIPO=$ac_ct_LIPO
6624   fi
6625 else
6626   LIPO="$ac_cv_prog_LIPO"
6627 fi
6628
6629     if test -n "$ac_tool_prefix"; then
6630   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}otool; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_OTOOL+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   if test -n "$OTOOL"; then
6638   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_exec_ext in '' $ac_executable_extensions; do
6646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652   done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 OTOOL=$ac_cv_prog_OTOOL
6658 if test -n "$OTOOL"; then
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6660 $as_echo "$OTOOL" >&6; }
6661 else
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_OTOOL"; then
6669   ac_ct_OTOOL=$OTOOL
6670   # Extract the first word of "otool", so it can be a program name with args.
6671 set dummy otool; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$ac_ct_OTOOL"; then
6678   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_prog_ac_ct_OTOOL="otool"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6698 if test -n "$ac_ct_OTOOL"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6700 $as_echo "$ac_ct_OTOOL" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706   if test "x$ac_ct_OTOOL" = x; then
6707     OTOOL=":"
6708   else
6709     case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715     OTOOL=$ac_ct_OTOOL
6716   fi
6717 else
6718   OTOOL="$ac_cv_prog_OTOOL"
6719 fi
6720
6721     if test -n "$ac_tool_prefix"; then
6722   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_OTOOL64+:} false; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   if test -n "$OTOOL64"; then
6730   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735   IFS=$as_save_IFS
6736   test -z "$as_dir" && as_dir=.
6737     for ac_exec_ext in '' $ac_executable_extensions; do
6738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741     break 2
6742   fi
6743 done
6744   done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 OTOOL64=$ac_cv_prog_OTOOL64
6750 if test -n "$OTOOL64"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6752 $as_echo "$OTOOL64" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_OTOOL64"; then
6761   ac_ct_OTOOL64=$OTOOL64
6762   # Extract the first word of "otool64", so it can be a program name with args.
6763 set dummy otool64; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$ac_ct_OTOOL64"; then
6770   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_prog_ac_ct_OTOOL64="otool64"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6790 if test -n "$ac_ct_OTOOL64"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6792 $as_echo "$ac_ct_OTOOL64" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798   if test "x$ac_ct_OTOOL64" = x; then
6799     OTOOL64=":"
6800   else
6801     case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     OTOOL64=$ac_ct_OTOOL64
6808   fi
6809 else
6810   OTOOL64="$ac_cv_prog_OTOOL64"
6811 fi
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6840 $as_echo_n "checking for -single_module linker flag... " >&6; }
6841 if ${lt_cv_apple_cc_single_mod+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   lt_cv_apple_cc_single_mod=no
6845       if test -z "${LT_MULTI_MODULE}"; then
6846         # By default we will add the -single_module flag. You can override
6847         # by either setting the environment variable LT_MULTI_MODULE
6848         # non-empty at configure time, or by adding -multi_module to the
6849         # link flags.
6850         rm -rf libconftest.dylib*
6851         echo "int foo(void){return 1;}" > conftest.c
6852         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6853 -dynamiclib -Wl,-single_module conftest.c" >&5
6854         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6855           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6856         _lt_result=$?
6857         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6858           lt_cv_apple_cc_single_mod=yes
6859         else
6860           cat conftest.err >&5
6861         fi
6862         rm -rf libconftest.dylib*
6863         rm -f conftest.*
6864       fi
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6867 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6869 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6870 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   lt_cv_ld_exported_symbols_list=no
6874       save_LDFLAGS=$LDFLAGS
6875       echo "_main" > conftest.sym
6876       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6877       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879
6880 int
6881 main ()
6882 {
6883
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889   lt_cv_ld_exported_symbols_list=yes
6890 else
6891   lt_cv_ld_exported_symbols_list=no
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext \
6894     conftest$ac_exeext conftest.$ac_ext
6895         LDFLAGS="$save_LDFLAGS"
6896
6897 fi
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6899 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6901 $as_echo_n "checking for -force_load linker flag... " >&6; }
6902 if ${lt_cv_ld_force_load+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   lt_cv_ld_force_load=no
6906       cat > conftest.c << _LT_EOF
6907 int forced_loaded() { return 2;}
6908 _LT_EOF
6909       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6910       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6911       echo "$AR cru libconftest.a conftest.o" >&5
6912       $AR cru libconftest.a conftest.o 2>&5
6913       echo "$RANLIB libconftest.a" >&5
6914       $RANLIB libconftest.a 2>&5
6915       cat > conftest.c << _LT_EOF
6916 int main() { return 0;}
6917 _LT_EOF
6918       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6919       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6920       _lt_result=$?
6921       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6922         lt_cv_ld_force_load=yes
6923       else
6924         cat conftest.err >&5
6925       fi
6926         rm -f conftest.err libconftest.a conftest conftest.c
6927         rm -rf conftest.dSYM
6928
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6931 $as_echo "$lt_cv_ld_force_load" >&6; }
6932     case $host_os in
6933     rhapsody* | darwin1.[012])
6934       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6935     darwin1.*)
6936       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6937     darwin*) # darwin 5.x on
6938       # if running on 10.5 or later, the deployment target defaults
6939       # to the OS version, if on x86, and 10.4, the deployment
6940       # target defaults to 10.4. Don't you love it?
6941       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6942         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6943           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6944         10.[012]*)
6945           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6946         10.*)
6947           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6948       esac
6949     ;;
6950   esac
6951     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6952       _lt_dar_single_mod='$single_module'
6953     fi
6954     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6955       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6956     else
6957       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6958     fi
6959     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6960       _lt_dsymutil='~$DSYMUTIL $lib || :'
6961     else
6962       _lt_dsymutil=
6963     fi
6964     ;;
6965   esac
6966
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6976   CPP=
6977 fi
6978 if test -z "$CPP"; then
6979   if ${ac_cv_prog_CPP+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982       # Double quotes because CPP needs to be expanded
6983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6984     do
6985       ac_preproc_ok=false
6986 for ac_c_preproc_warn_flag in '' yes
6987 do
6988   # Use a header file that comes with gcc, so configuring glibc
6989   # with a fresh cross-compiler works.
6990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991   # <limits.h> exists even on freestanding compilers.
6992   # On the NeXT, cc -E runs the code through the compiler's parser,
6993   # not just through cpp. "Syntax error" is here to catch this case.
6994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h.  */
6996 #ifdef __STDC__
6997 # include <limits.h>
6998 #else
6999 # include <assert.h>
7000 #endif
7001                      Syntax error
7002 _ACEOF
7003 if ac_fn_c_try_cpp "$LINENO"; then :
7004
7005 else
7006   # Broken: fails on valid input.
7007 continue
7008 fi
7009 rm -f conftest.err conftest.i conftest.$ac_ext
7010
7011   # OK, works on sane cases.  Now check whether nonexistent headers
7012   # can be detected and how.
7013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h.  */
7015 #include <ac_nonexistent.h>
7016 _ACEOF
7017 if ac_fn_c_try_cpp "$LINENO"; then :
7018   # Broken: success on invalid input.
7019 continue
7020 else
7021   # Passes both tests.
7022 ac_preproc_ok=:
7023 break
7024 fi
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7026
7027 done
7028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7029 rm -f conftest.i conftest.err conftest.$ac_ext
7030 if $ac_preproc_ok; then :
7031   break
7032 fi
7033
7034     done
7035     ac_cv_prog_CPP=$CPP
7036
7037 fi
7038   CPP=$ac_cv_prog_CPP
7039 else
7040   ac_cv_prog_CPP=$CPP
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7043 $as_echo "$CPP" >&6; }
7044 ac_preproc_ok=false
7045 for ac_c_preproc_warn_flag in '' yes
7046 do
7047   # Use a header file that comes with gcc, so configuring glibc
7048   # with a fresh cross-compiler works.
7049   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050   # <limits.h> exists even on freestanding compilers.
7051   # On the NeXT, cc -E runs the code through the compiler's parser,
7052   # not just through cpp. "Syntax error" is here to catch this case.
7053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055 #ifdef __STDC__
7056 # include <limits.h>
7057 #else
7058 # include <assert.h>
7059 #endif
7060                      Syntax error
7061 _ACEOF
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7063
7064 else
7065   # Broken: fails on valid input.
7066 continue
7067 fi
7068 rm -f conftest.err conftest.i conftest.$ac_ext
7069
7070   # OK, works on sane cases.  Now check whether nonexistent headers
7071   # can be detected and how.
7072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h.  */
7074 #include <ac_nonexistent.h>
7075 _ACEOF
7076 if ac_fn_c_try_cpp "$LINENO"; then :
7077   # Broken: success on invalid input.
7078 continue
7079 else
7080   # Passes both tests.
7081 ac_preproc_ok=:
7082 break
7083 fi
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7085
7086 done
7087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7088 rm -f conftest.i conftest.err conftest.$ac_ext
7089 if $ac_preproc_ok; then :
7090
7091 else
7092   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7095 See \`config.log' for more details" "$LINENO" 5; }
7096 fi
7097
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7106 $as_echo_n "checking for ANSI C header files... " >&6; }
7107 if ${ac_cv_header_stdc+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h.  */
7112 #include <stdlib.h>
7113 #include <stdarg.h>
7114 #include <string.h>
7115 #include <float.h>
7116
7117 int
7118 main ()
7119 {
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126   ac_cv_header_stdc=yes
7127 else
7128   ac_cv_header_stdc=no
7129 fi
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131
7132 if test $ac_cv_header_stdc = yes; then
7133   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h.  */
7136 #include <string.h>
7137
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140   $EGREP "memchr" >/dev/null 2>&1; then :
7141
7142 else
7143   ac_cv_header_stdc=no
7144 fi
7145 rm -f conftest*
7146
7147 fi
7148
7149 if test $ac_cv_header_stdc = yes; then
7150   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 #include <stdlib.h>
7154
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157   $EGREP "free" >/dev/null 2>&1; then :
7158
7159 else
7160   ac_cv_header_stdc=no
7161 fi
7162 rm -f conftest*
7163
7164 fi
7165
7166 if test $ac_cv_header_stdc = yes; then
7167   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7168   if test "$cross_compiling" = yes; then :
7169   :
7170 else
7171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h.  */
7173 #include <ctype.h>
7174 #include <stdlib.h>
7175 #if ((' ' & 0x0FF) == 0x020)
7176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7178 #else
7179 # define ISLOWER(c) \
7180                    (('a' <= (c) && (c) <= 'i') \
7181                      || ('j' <= (c) && (c) <= 'r') \
7182                      || ('s' <= (c) && (c) <= 'z'))
7183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7184 #endif
7185
7186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7187 int
7188 main ()
7189 {
7190   int i;
7191   for (i = 0; i < 256; i++)
7192     if (XOR (islower (i), ISLOWER (i))
7193         || toupper (i) != TOUPPER (i))
7194       return 2;
7195   return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7199
7200 else
7201   ac_cv_header_stdc=no
7202 fi
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204   conftest.$ac_objext conftest.beam conftest.$ac_ext
7205 fi
7206
7207 fi
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7210 $as_echo "$ac_cv_header_stdc" >&6; }
7211 if test $ac_cv_header_stdc = yes; then
7212
7213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7214
7215 fi
7216
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219                   inttypes.h stdint.h unistd.h
7220 do :
7221   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7223 "
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225   cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233
7234 for ac_header in dlfcn.h
7235 do :
7236   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237 "
7238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7239   cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7241 _ACEOF
7242
7243 fi
7244
7245 done
7246
7247
7248
7249
7250
7251 # Set options
7252
7253
7254
7255         enable_dlopen=no
7256
7257
7258   enable_win32_dll=no
7259
7260
7261             # Check whether --enable-shared was given.
7262 if test "${enable_shared+set}" = set; then :
7263   enableval=$enable_shared; p=${PACKAGE-default}
7264     case $enableval in
7265     yes) enable_shared=yes ;;
7266     no) enable_shared=no ;;
7267     *)
7268       enable_shared=no
7269       # Look at the argument we got.  We use all the common list separators.
7270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271       for pkg in $enableval; do
7272         IFS="$lt_save_ifs"
7273         if test "X$pkg" = "X$p"; then
7274           enable_shared=yes
7275         fi
7276       done
7277       IFS="$lt_save_ifs"
7278       ;;
7279     esac
7280 else
7281   enable_shared=yes
7282 fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292   # Check whether --enable-static was given.
7293 if test "${enable_static+set}" = set; then :
7294   enableval=$enable_static; p=${PACKAGE-default}
7295     case $enableval in
7296     yes) enable_static=yes ;;
7297     no) enable_static=no ;;
7298     *)
7299      enable_static=no
7300       # Look at the argument we got.  We use all the common list separators.
7301       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302       for pkg in $enableval; do
7303         IFS="$lt_save_ifs"
7304         if test "X$pkg" = "X$p"; then
7305           enable_static=yes
7306         fi
7307       done
7308       IFS="$lt_save_ifs"
7309       ;;
7310     esac
7311 else
7312   enable_static=yes
7313 fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 # Check whether --with-pic was given.
7325 if test "${with_pic+set}" = set; then :
7326   withval=$with_pic; pic_mode="$withval"
7327 else
7328   pic_mode=default
7329 fi
7330
7331
7332 test -z "$pic_mode" && pic_mode=default
7333
7334
7335
7336
7337
7338
7339
7340   # Check whether --enable-fast-install was given.
7341 if test "${enable_fast_install+set}" = set; then :
7342   enableval=$enable_fast_install; p=${PACKAGE-default}
7343     case $enableval in
7344     yes) enable_fast_install=yes ;;
7345     no) enable_fast_install=no ;;
7346     *)
7347       enable_fast_install=no
7348       # Look at the argument we got.  We use all the common list separators.
7349       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350       for pkg in $enableval; do
7351         IFS="$lt_save_ifs"
7352         if test "X$pkg" = "X$p"; then
7353           enable_fast_install=yes
7354         fi
7355       done
7356       IFS="$lt_save_ifs"
7357       ;;
7358     esac
7359 else
7360   enable_fast_install=yes
7361 fi
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373 # This can be used to rebuild libtool when needed
7374 LIBTOOL_DEPS="$ltmain"
7375
7376 # Always use our own libtool.
7377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 test -z "$LN_S" && LN_S="ln -s"
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419 if test -n "${ZSH_VERSION+set}" ; then
7420    setopt NO_GLOB_SUBST
7421 fi
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7424 $as_echo_n "checking for objdir... " >&6; }
7425 if ${lt_cv_objdir+:} false; then :
7426   $as_echo_n "(cached) " >&6
7427 else
7428   rm -f .libs 2>/dev/null
7429 mkdir .libs 2>/dev/null
7430 if test -d .libs; then
7431   lt_cv_objdir=.libs
7432 else
7433   # MS-DOS does not allow filenames that begin with a dot.
7434   lt_cv_objdir=_libs
7435 fi
7436 rmdir .libs 2>/dev/null
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7439 $as_echo "$lt_cv_objdir" >&6; }
7440 objdir=$lt_cv_objdir
7441
7442
7443
7444
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define LT_OBJDIR "$lt_cv_objdir/"
7448 _ACEOF
7449
7450
7451
7452
7453 case $host_os in
7454 aix3*)
7455   # AIX sometimes has problems with the GCC collect2 program.  For some
7456   # reason, if we set the COLLECT_NAMES environment variable, the problems
7457   # vanish in a puff of smoke.
7458   if test "X${COLLECT_NAMES+set}" != Xset; then
7459     COLLECT_NAMES=
7460     export COLLECT_NAMES
7461   fi
7462   ;;
7463 esac
7464
7465 # Global variables:
7466 ofile=libtool
7467 can_build_shared=yes
7468
7469 # All known linkers require a `.a' archive for static linking (except MSVC,
7470 # which needs '.lib').
7471 libext=a
7472
7473 with_gnu_ld="$lt_cv_prog_gnu_ld"
7474
7475 old_CC="$CC"
7476 old_CFLAGS="$CFLAGS"
7477
7478 # Set sane defaults for various variables
7479 test -z "$CC" && CC=cc
7480 test -z "$LTCC" && LTCC=$CC
7481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7482 test -z "$LD" && LD=ld
7483 test -z "$ac_objext" && ac_objext=o
7484
7485 for cc_temp in $compiler""; do
7486   case $cc_temp in
7487     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7489     \-*) ;;
7490     *) break;;
7491   esac
7492 done
7493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7494
7495
7496 # Only perform the check for file, if the check method requires it
7497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7498 case $deplibs_check_method in
7499 file_magic*)
7500   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   case $MAGIC_CMD in
7507 [\\/*] |  ?:[\\/]*)
7508   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7509   ;;
7510 *)
7511   lt_save_MAGIC_CMD="$MAGIC_CMD"
7512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514   for ac_dir in $ac_dummy; do
7515     IFS="$lt_save_ifs"
7516     test -z "$ac_dir" && ac_dir=.
7517     if test -f $ac_dir/${ac_tool_prefix}file; then
7518       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7519       if test -n "$file_magic_test_file"; then
7520         case $deplibs_check_method in
7521         "file_magic "*)
7522           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525             $EGREP "$file_magic_regex" > /dev/null; then
7526             :
7527           else
7528             cat <<_LT_EOF 1>&2
7529
7530 *** Warning: the command libtool uses to detect shared libraries,
7531 *** $file_magic_cmd, produces output that libtool cannot recognize.
7532 *** The result is that libtool may fail to recognize shared libraries
7533 *** as such.  This will affect the creation of libtool libraries that
7534 *** depend on shared libraries, but programs linked with such libtool
7535 *** libraries will work regardless of this problem.  Nevertheless, you
7536 *** may want to report the problem to your system manager and/or to
7537 *** bug-libtool@gnu.org
7538
7539 _LT_EOF
7540           fi ;;
7541         esac
7542       fi
7543       break
7544     fi
7545   done
7546   IFS="$lt_save_ifs"
7547   MAGIC_CMD="$lt_save_MAGIC_CMD"
7548   ;;
7549 esac
7550 fi
7551
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if test -n "$MAGIC_CMD"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555 $as_echo "$MAGIC_CMD" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562
7563
7564
7565 if test -z "$lt_cv_path_MAGIC_CMD"; then
7566   if test -n "$ac_tool_prefix"; then
7567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7568 $as_echo_n "checking for file... " >&6; }
7569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   case $MAGIC_CMD in
7573 [\\/*] |  ?:[\\/]*)
7574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7575   ;;
7576 *)
7577   lt_save_MAGIC_CMD="$MAGIC_CMD"
7578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580   for ac_dir in $ac_dummy; do
7581     IFS="$lt_save_ifs"
7582     test -z "$ac_dir" && ac_dir=.
7583     if test -f $ac_dir/file; then
7584       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7585       if test -n "$file_magic_test_file"; then
7586         case $deplibs_check_method in
7587         "file_magic "*)
7588           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591             $EGREP "$file_magic_regex" > /dev/null; then
7592             :
7593           else
7594             cat <<_LT_EOF 1>&2
7595
7596 *** Warning: the command libtool uses to detect shared libraries,
7597 *** $file_magic_cmd, produces output that libtool cannot recognize.
7598 *** The result is that libtool may fail to recognize shared libraries
7599 *** as such.  This will affect the creation of libtool libraries that
7600 *** depend on shared libraries, but programs linked with such libtool
7601 *** libraries will work regardless of this problem.  Nevertheless, you
7602 *** may want to report the problem to your system manager and/or to
7603 *** bug-libtool@gnu.org
7604
7605 _LT_EOF
7606           fi ;;
7607         esac
7608       fi
7609       break
7610     fi
7611   done
7612   IFS="$lt_save_ifs"
7613   MAGIC_CMD="$lt_save_MAGIC_CMD"
7614   ;;
7615 esac
7616 fi
7617
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if test -n "$MAGIC_CMD"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621 $as_echo "$MAGIC_CMD" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628   else
7629     MAGIC_CMD=:
7630   fi
7631 fi
7632
7633   fi
7634   ;;
7635 esac
7636
7637 # Use C for the default configuration in the libtool script
7638
7639 lt_save_CC="$CC"
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646
7647 # Source file extension for C test sources.
7648 ac_ext=c
7649
7650 # Object file extension for compiled C test sources.
7651 objext=o
7652 objext=$objext
7653
7654 # Code to be used in simple compile tests
7655 lt_simple_compile_test_code="int some_variable = 0;"
7656
7657 # Code to be used in simple link tests
7658 lt_simple_link_test_code='int main(){return(0);}'
7659
7660
7661
7662
7663
7664
7665
7666 # If no C compiler was specified, use CC.
7667 LTCC=${LTCC-"$CC"}
7668
7669 # If no C compiler flags were specified, use CFLAGS.
7670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7671
7672 # Allow CC to be a program name with arguments.
7673 compiler=$CC
7674
7675 # Save the default compiler, since it gets overwritten when the other
7676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7677 compiler_DEFAULT=$CC
7678
7679 # save warnings/boilerplate of simple test code
7680 ac_outfile=conftest.$ac_objext
7681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683 _lt_compiler_boilerplate=`cat conftest.err`
7684 $RM conftest*
7685
7686 ac_outfile=conftest.$ac_objext
7687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7689 _lt_linker_boilerplate=`cat conftest.err`
7690 $RM -r conftest*
7691
7692
7693 if test -n "$compiler"; then
7694
7695 lt_prog_compiler_no_builtin_flag=
7696
7697 if test "$GCC" = yes; then
7698   case $cc_basename in
7699   nvcc*)
7700     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7701   *)
7702     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7703   esac
7704
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7707 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   lt_cv_prog_compiler_rtti_exceptions=no
7711    ac_outfile=conftest.$ac_objext
7712    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7713    lt_compiler_flag="-fno-rtti -fno-exceptions"
7714    # Insert the option either (1) after the last *FLAGS variable, or
7715    # (2) before a word containing "conftest.", or (3) at the end.
7716    # Note that $ac_compile itself does not contain backslashes and begins
7717    # with a dollar sign (not a hyphen), so the echo should work correctly.
7718    # The option is referenced via a variable to avoid confusing sed.
7719    lt_compile=`echo "$ac_compile" | $SED \
7720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722    -e 's:$: $lt_compiler_flag:'`
7723    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7724    (eval "$lt_compile" 2>conftest.err)
7725    ac_status=$?
7726    cat conftest.err >&5
7727    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728    if (exit $ac_status) && test -s "$ac_outfile"; then
7729      # The compiler can only warn and ignore the option if not recognized
7730      # So say no if there are warnings other than the usual output.
7731      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7732      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7734        lt_cv_prog_compiler_rtti_exceptions=yes
7735      fi
7736    fi
7737    $RM conftest*
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7742
7743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7744     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7745 else
7746     :
7747 fi
7748
7749 fi
7750
7751
7752
7753
7754
7755
7756   lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7759
7760
7761   if test "$GCC" = yes; then
7762     lt_prog_compiler_wl='-Wl,'
7763     lt_prog_compiler_static='-static'
7764
7765     case $host_os in
7766       aix*)
7767       # All AIX code is PIC.
7768       if test "$host_cpu" = ia64; then
7769         # AIX 5 now supports IA64 processor
7770         lt_prog_compiler_static='-Bstatic'
7771       fi
7772       ;;
7773
7774     amigaos*)
7775       case $host_cpu in
7776       powerpc)
7777             # see comment about AmigaOS4 .so support
7778             lt_prog_compiler_pic='-fPIC'
7779         ;;
7780       m68k)
7781             # FIXME: we need at least 68020 code to build shared libraries, but
7782             # adding the `-m68020' flag to GCC prevents building anything better,
7783             # like `-m68040'.
7784             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7785         ;;
7786       esac
7787       ;;
7788
7789     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7790       # PIC is the default for these OSes.
7791       ;;
7792
7793     mingw* | cygwin* | pw32* | os2* | cegcc*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7797       # (--disable-auto-import) libraries
7798       lt_prog_compiler_pic='-DDLL_EXPORT'
7799       ;;
7800
7801     darwin* | rhapsody*)
7802       # PIC is the default on this platform
7803       # Common symbols not allowed in MH_DYLIB files
7804       lt_prog_compiler_pic='-fno-common'
7805       ;;
7806
7807     haiku*)
7808       # PIC is the default for Haiku.
7809       # The "-static" flag exists, but is broken.
7810       lt_prog_compiler_static=
7811       ;;
7812
7813     hpux*)
7814       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7815       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7816       # sets the default TLS model and affects inlining.
7817       case $host_cpu in
7818       hppa*64*)
7819         # +Z the default
7820         ;;
7821       *)
7822         lt_prog_compiler_pic='-fPIC'
7823         ;;
7824       esac
7825       ;;
7826
7827     interix[3-9]*)
7828       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7829       # Instead, we relocate shared libraries at runtime.
7830       ;;
7831
7832     msdosdjgpp*)
7833       # Just because we use GCC doesn't mean we suddenly get shared libraries
7834       # on systems that don't support them.
7835       lt_prog_compiler_can_build_shared=no
7836       enable_shared=no
7837       ;;
7838
7839     *nto* | *qnx*)
7840       # QNX uses GNU C++, but need to define -shared option too, otherwise
7841       # it will coredump.
7842       lt_prog_compiler_pic='-fPIC -shared'
7843       ;;
7844
7845     sysv4*MP*)
7846       if test -d /usr/nec; then
7847         lt_prog_compiler_pic=-Kconform_pic
7848       fi
7849       ;;
7850
7851     *)
7852       lt_prog_compiler_pic='-fPIC'
7853       ;;
7854     esac
7855
7856     case $cc_basename in
7857     nvcc*) # Cuda Compiler Driver 2.2
7858       lt_prog_compiler_wl='-Xlinker '
7859       lt_prog_compiler_pic='-Xcompiler -fPIC'
7860       ;;
7861     esac
7862   else
7863     # PORTME Check for flag to pass linker flags through the system compiler.
7864     case $host_os in
7865     aix*)
7866       lt_prog_compiler_wl='-Wl,'
7867       if test "$host_cpu" = ia64; then
7868         # AIX 5 now supports IA64 processor
7869         lt_prog_compiler_static='-Bstatic'
7870       else
7871         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7872       fi
7873       ;;
7874
7875     mingw* | cygwin* | pw32* | os2* | cegcc*)
7876       # This hack is so that the source file can tell whether it is being
7877       # built for inclusion in a dll (and should export symbols for example).
7878       lt_prog_compiler_pic='-DDLL_EXPORT'
7879       ;;
7880
7881     hpux9* | hpux10* | hpux11*)
7882       lt_prog_compiler_wl='-Wl,'
7883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7884       # not for PA HP-UX.
7885       case $host_cpu in
7886       hppa*64*|ia64*)
7887         # +Z the default
7888         ;;
7889       *)
7890         lt_prog_compiler_pic='+Z'
7891         ;;
7892       esac
7893       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7894       lt_prog_compiler_static='${wl}-a ${wl}archive'
7895       ;;
7896
7897     irix5* | irix6* | nonstopux*)
7898       lt_prog_compiler_wl='-Wl,'
7899       # PIC (with -KPIC) is the default.
7900       lt_prog_compiler_static='-non_shared'
7901       ;;
7902
7903     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7904       case $cc_basename in
7905       # old Intel for x86_64 which still supported -KPIC.
7906       ecc*)
7907         lt_prog_compiler_wl='-Wl,'
7908         lt_prog_compiler_pic='-KPIC'
7909         lt_prog_compiler_static='-static'
7910         ;;
7911       # icc used to be incompatible with GCC.
7912       # ICC 10 doesn't accept -KPIC any more.
7913       icc* | ifort*)
7914         lt_prog_compiler_wl='-Wl,'
7915         lt_prog_compiler_pic='-fPIC'
7916         lt_prog_compiler_static='-static'
7917         ;;
7918       # Lahey Fortran 8.1.
7919       lf95*)
7920         lt_prog_compiler_wl='-Wl,'
7921         lt_prog_compiler_pic='--shared'
7922         lt_prog_compiler_static='--static'
7923         ;;
7924       nagfor*)
7925         # NAG Fortran compiler
7926         lt_prog_compiler_wl='-Wl,-Wl,,'
7927         lt_prog_compiler_pic='-PIC'
7928         lt_prog_compiler_static='-Bstatic'
7929         ;;
7930       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7931         # Portland Group compilers (*not* the Pentium gcc compiler,
7932         # which looks to be a dead project)
7933         lt_prog_compiler_wl='-Wl,'
7934         lt_prog_compiler_pic='-fpic'
7935         lt_prog_compiler_static='-Bstatic'
7936         ;;
7937       ccc*)
7938         lt_prog_compiler_wl='-Wl,'
7939         # All Alpha code is PIC.
7940         lt_prog_compiler_static='-non_shared'
7941         ;;
7942       xl* | bgxl* | bgf* | mpixl*)
7943         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7944         lt_prog_compiler_wl='-Wl,'
7945         lt_prog_compiler_pic='-qpic'
7946         lt_prog_compiler_static='-qstaticlink'
7947         ;;
7948       *)
7949         case `$CC -V 2>&1 | sed 5q` in
7950         *Sun\ F* | *Sun*Fortran*)
7951           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7952           lt_prog_compiler_pic='-KPIC'
7953           lt_prog_compiler_static='-Bstatic'
7954           lt_prog_compiler_wl=''
7955           ;;
7956         *Sun\ C*)
7957           # Sun C 5.9
7958           lt_prog_compiler_pic='-KPIC'
7959           lt_prog_compiler_static='-Bstatic'
7960           lt_prog_compiler_wl='-Wl,'
7961           ;;
7962         esac
7963         ;;
7964       esac
7965       ;;
7966
7967     newsos6)
7968       lt_prog_compiler_pic='-KPIC'
7969       lt_prog_compiler_static='-Bstatic'
7970       ;;
7971
7972     *nto* | *qnx*)
7973       # QNX uses GNU C++, but need to define -shared option too, otherwise
7974       # it will coredump.
7975       lt_prog_compiler_pic='-fPIC -shared'
7976       ;;
7977
7978     osf3* | osf4* | osf5*)
7979       lt_prog_compiler_wl='-Wl,'
7980       # All OSF/1 code is PIC.
7981       lt_prog_compiler_static='-non_shared'
7982       ;;
7983
7984     rdos*)
7985       lt_prog_compiler_static='-non_shared'
7986       ;;
7987
7988     solaris*)
7989       lt_prog_compiler_pic='-KPIC'
7990       lt_prog_compiler_static='-Bstatic'
7991       case $cc_basename in
7992       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7993         lt_prog_compiler_wl='-Qoption ld ';;
7994       *)
7995         lt_prog_compiler_wl='-Wl,';;
7996       esac
7997       ;;
7998
7999     sunos4*)
8000       lt_prog_compiler_wl='-Qoption ld '
8001       lt_prog_compiler_pic='-PIC'
8002       lt_prog_compiler_static='-Bstatic'
8003       ;;
8004
8005     sysv4 | sysv4.2uw2* | sysv4.3*)
8006       lt_prog_compiler_wl='-Wl,'
8007       lt_prog_compiler_pic='-KPIC'
8008       lt_prog_compiler_static='-Bstatic'
8009       ;;
8010
8011     sysv4*MP*)
8012       if test -d /usr/nec ;then
8013         lt_prog_compiler_pic='-Kconform_pic'
8014         lt_prog_compiler_static='-Bstatic'
8015       fi
8016       ;;
8017
8018     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8019       lt_prog_compiler_wl='-Wl,'
8020       lt_prog_compiler_pic='-KPIC'
8021       lt_prog_compiler_static='-Bstatic'
8022       ;;
8023
8024     unicos*)
8025       lt_prog_compiler_wl='-Wl,'
8026       lt_prog_compiler_can_build_shared=no
8027       ;;
8028
8029     uts4*)
8030       lt_prog_compiler_pic='-pic'
8031       lt_prog_compiler_static='-Bstatic'
8032       ;;
8033
8034     *)
8035       lt_prog_compiler_can_build_shared=no
8036       ;;
8037     esac
8038   fi
8039
8040 case $host_os in
8041   # For platforms which do not support PIC, -DPIC is meaningless:
8042   *djgpp*)
8043     lt_prog_compiler_pic=
8044     ;;
8045   *)
8046     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8047     ;;
8048 esac
8049
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8052 if ${lt_cv_prog_compiler_pic+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8058 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8059 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8060
8061 #
8062 # Check to make sure the PIC flag actually works.
8063 #
8064 if test -n "$lt_prog_compiler_pic"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8066 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8067 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   lt_cv_prog_compiler_pic_works=no
8071    ac_outfile=conftest.$ac_objext
8072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8073    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8074    # Insert the option either (1) after the last *FLAGS variable, or
8075    # (2) before a word containing "conftest.", or (3) at the end.
8076    # Note that $ac_compile itself does not contain backslashes and begins
8077    # with a dollar sign (not a hyphen), so the echo should work correctly.
8078    # The option is referenced via a variable to avoid confusing sed.
8079    lt_compile=`echo "$ac_compile" | $SED \
8080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082    -e 's:$: $lt_compiler_flag:'`
8083    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084    (eval "$lt_compile" 2>conftest.err)
8085    ac_status=$?
8086    cat conftest.err >&5
8087    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088    if (exit $ac_status) && test -s "$ac_outfile"; then
8089      # The compiler can only warn and ignore the option if not recognized
8090      # So say no if there are warnings other than the usual output.
8091      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8094        lt_cv_prog_compiler_pic_works=yes
8095      fi
8096    fi
8097    $RM conftest*
8098
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8101 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8102
8103 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8104     case $lt_prog_compiler_pic in
8105      "" | " "*) ;;
8106      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8107      esac
8108 else
8109     lt_prog_compiler_pic=
8110      lt_prog_compiler_can_build_shared=no
8111 fi
8112
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 #
8126 # Check to make sure the static flag actually works.
8127 #
8128 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8130 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8131 if ${lt_cv_prog_compiler_static_works+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   lt_cv_prog_compiler_static_works=no
8135    save_LDFLAGS="$LDFLAGS"
8136    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8137    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8139      # The linker can only warn and ignore the option if not recognized
8140      # So say no if there are warnings
8141      if test -s conftest.err; then
8142        # Append any errors to the config.log.
8143        cat conftest.err 1>&5
8144        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146        if diff conftest.exp conftest.er2 >/dev/null; then
8147          lt_cv_prog_compiler_static_works=yes
8148        fi
8149      else
8150        lt_cv_prog_compiler_static_works=yes
8151      fi
8152    fi
8153    $RM -r conftest*
8154    LDFLAGS="$save_LDFLAGS"
8155
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8159
8160 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8161     :
8162 else
8163     lt_prog_compiler_static=
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8174 if ${lt_cv_prog_compiler_c_o+:} false; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177   lt_cv_prog_compiler_c_o=no
8178    $RM -r conftest 2>/dev/null
8179    mkdir conftest
8180    cd conftest
8181    mkdir out
8182    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183
8184    lt_compiler_flag="-o out/conftest2.$ac_objext"
8185    # Insert the option either (1) after the last *FLAGS variable, or
8186    # (2) before a word containing "conftest.", or (3) at the end.
8187    # Note that $ac_compile itself does not contain backslashes and begins
8188    # with a dollar sign (not a hyphen), so the echo should work correctly.
8189    lt_compile=`echo "$ac_compile" | $SED \
8190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192    -e 's:$: $lt_compiler_flag:'`
8193    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194    (eval "$lt_compile" 2>out/conftest.err)
8195    ac_status=$?
8196    cat out/conftest.err >&5
8197    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8199    then
8200      # The compiler can only warn and ignore the option if not recognized
8201      # So say no if there are warnings
8202      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8203      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8204      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8205        lt_cv_prog_compiler_c_o=yes
8206      fi
8207    fi
8208    chmod u+w . 2>&5
8209    $RM conftest*
8210    # SGI C++ compiler will create directory out/ii_files/ for
8211    # template instantiation
8212    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8213    $RM out/* && rmdir out
8214    cd ..
8215    $RM -r conftest
8216    $RM conftest*
8217
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8220 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8221
8222
8223
8224
8225
8226
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8229 if ${lt_cv_prog_compiler_c_o+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   lt_cv_prog_compiler_c_o=no
8233    $RM -r conftest 2>/dev/null
8234    mkdir conftest
8235    cd conftest
8236    mkdir out
8237    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8238
8239    lt_compiler_flag="-o out/conftest2.$ac_objext"
8240    # Insert the option either (1) after the last *FLAGS variable, or
8241    # (2) before a word containing "conftest.", or (3) at the end.
8242    # Note that $ac_compile itself does not contain backslashes and begins
8243    # with a dollar sign (not a hyphen), so the echo should work correctly.
8244    lt_compile=`echo "$ac_compile" | $SED \
8245    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8246    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247    -e 's:$: $lt_compiler_flag:'`
8248    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8249    (eval "$lt_compile" 2>out/conftest.err)
8250    ac_status=$?
8251    cat out/conftest.err >&5
8252    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8254    then
8255      # The compiler can only warn and ignore the option if not recognized
8256      # So say no if there are warnings
8257      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8258      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8259      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8260        lt_cv_prog_compiler_c_o=yes
8261      fi
8262    fi
8263    chmod u+w . 2>&5
8264    $RM conftest*
8265    # SGI C++ compiler will create directory out/ii_files/ for
8266    # template instantiation
8267    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8268    $RM out/* && rmdir out
8269    cd ..
8270    $RM -r conftest
8271    $RM conftest*
8272
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8276
8277
8278
8279
8280 hard_links="nottested"
8281 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8282   # do not overwrite the value of need_locks provided by the user
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8284 $as_echo_n "checking if we can lock with hard links... " >&6; }
8285   hard_links=yes
8286   $RM conftest*
8287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288   touch conftest.a
8289   ln conftest.a conftest.b 2>&5 || hard_links=no
8290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8292 $as_echo "$hard_links" >&6; }
8293   if test "$hard_links" = no; then
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8295 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8296     need_locks=warn
8297   fi
8298 else
8299   need_locks=no
8300 fi
8301
8302
8303
8304
8305
8306
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8309
8310   runpath_var=
8311   allow_undefined_flag=
8312   always_export_symbols=no
8313   archive_cmds=
8314   archive_expsym_cmds=
8315   compiler_needs_object=no
8316   enable_shared_with_static_runtimes=no
8317   export_dynamic_flag_spec=
8318   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8319   hardcode_automatic=no
8320   hardcode_direct=no
8321   hardcode_direct_absolute=no
8322   hardcode_libdir_flag_spec=
8323   hardcode_libdir_flag_spec_ld=
8324   hardcode_libdir_separator=
8325   hardcode_minus_L=no
8326   hardcode_shlibpath_var=unsupported
8327   inherit_rpath=no
8328   link_all_deplibs=unknown
8329   module_cmds=
8330   module_expsym_cmds=
8331   old_archive_from_new_cmds=
8332   old_archive_from_expsyms_cmds=
8333   thread_safe_flag_spec=
8334   whole_archive_flag_spec=
8335   # include_expsyms should be a list of space-separated symbols to be *always*
8336   # included in the symbol list
8337   include_expsyms=
8338   # exclude_expsyms can be an extended regexp of symbols to exclude
8339   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8340   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8341   # as well as any symbol that contains `d'.
8342   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8343   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8344   # platforms (ab)use it in PIC code, but their linkers get confused if
8345   # the symbol is explicitly referenced.  Since portable code cannot
8346   # rely on this symbol name, it's probably fine to never include it in
8347   # preloaded symbol tables.
8348   # Exclude shared library initialization/finalization symbols.
8349   extract_expsyms_cmds=
8350
8351   case $host_os in
8352   cygwin* | mingw* | pw32* | cegcc*)
8353     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8354     # When not using gcc, we currently assume that we are using
8355     # Microsoft Visual C++.
8356     if test "$GCC" != yes; then
8357       with_gnu_ld=no
8358     fi
8359     ;;
8360   interix*)
8361     # we just hope/assume this is gcc and not c89 (= MSVC++)
8362     with_gnu_ld=yes
8363     ;;
8364   openbsd*)
8365     with_gnu_ld=no
8366     ;;
8367   esac
8368
8369   ld_shlibs=yes
8370
8371   # On some targets, GNU ld is compatible enough with the native linker
8372   # that we're better off using the native interface for both.
8373   lt_use_gnu_ld_interface=no
8374   if test "$with_gnu_ld" = yes; then
8375     case $host_os in
8376       aix*)
8377         # The AIX port of GNU ld has always aspired to compatibility
8378         # with the native linker.  However, as the warning in the GNU ld
8379         # block says, versions before 2.19.5* couldn't really create working
8380         # shared libraries, regardless of the interface used.
8381         case `$LD -v 2>&1` in
8382           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8383           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8384           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8385           *)
8386             lt_use_gnu_ld_interface=yes
8387             ;;
8388         esac
8389         ;;
8390       *)
8391         lt_use_gnu_ld_interface=yes
8392         ;;
8393     esac
8394   fi
8395
8396   if test "$lt_use_gnu_ld_interface" = yes; then
8397     # If archive_cmds runs LD, not CC, wlarc should be empty
8398     wlarc='${wl}'
8399
8400     # Set some defaults for GNU ld with shared library support. These
8401     # are reset later if shared libraries are not supported. Putting them
8402     # here allows them to be overridden if necessary.
8403     runpath_var=LD_RUN_PATH
8404     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8405     export_dynamic_flag_spec='${wl}--export-dynamic'
8406     # ancient GNU ld didn't support --whole-archive et. al.
8407     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8408       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8409     else
8410       whole_archive_flag_spec=
8411     fi
8412     supports_anon_versioning=no
8413     case `$LD -v 2>&1` in
8414       *GNU\ gold*) supports_anon_versioning=yes ;;
8415       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8416       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8417       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8418       *\ 2.11.*) ;; # other 2.11 versions
8419       *) supports_anon_versioning=yes ;;
8420     esac
8421
8422     # See if GNU ld supports shared libraries.
8423     case $host_os in
8424     aix[3-9]*)
8425       # On AIX/PPC, the GNU linker is very broken
8426       if test "$host_cpu" != ia64; then
8427         ld_shlibs=no
8428         cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the GNU linker, at least up to release 2.19, is reported
8431 *** to be unable to reliably create shared libraries on AIX.
8432 *** Therefore, libtool is disabling shared libraries support.  If you
8433 *** really care for shared libraries, you may want to install binutils
8434 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8435 *** You will then need to restart the configuration process.
8436
8437 _LT_EOF
8438       fi
8439       ;;
8440
8441     amigaos*)
8442       case $host_cpu in
8443       powerpc)
8444             # see comment about AmigaOS4 .so support
8445             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446             archive_expsym_cmds=''
8447         ;;
8448       m68k)
8449             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)'
8450             hardcode_libdir_flag_spec='-L$libdir'
8451             hardcode_minus_L=yes
8452         ;;
8453       esac
8454       ;;
8455
8456     beos*)
8457       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458         allow_undefined_flag=unsupported
8459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460         # support --undefined.  This deserves some investigation.  FIXME
8461         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462       else
8463         ld_shlibs=no
8464       fi
8465       ;;
8466
8467     cygwin* | mingw* | pw32* | cegcc*)
8468       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469       # as there is no search path for DLLs.
8470       hardcode_libdir_flag_spec='-L$libdir'
8471       export_dynamic_flag_spec='${wl}--export-all-symbols'
8472       allow_undefined_flag=unsupported
8473       always_export_symbols=no
8474       enable_shared_with_static_runtimes=yes
8475       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'
8476       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8477
8478       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8479         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8480         # If the export-symbols file already is a .def file (1st line
8481         # is EXPORTS), use it as is; otherwise, prepend...
8482         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8483           cp $export_symbols $output_objdir/$soname.def;
8484         else
8485           echo EXPORTS > $output_objdir/$soname.def;
8486           cat $export_symbols >> $output_objdir/$soname.def;
8487         fi~
8488         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8489       else
8490         ld_shlibs=no
8491       fi
8492       ;;
8493
8494     haiku*)
8495       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496       link_all_deplibs=yes
8497       ;;
8498
8499     interix[3-9]*)
8500       hardcode_direct=no
8501       hardcode_shlibpath_var=no
8502       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8503       export_dynamic_flag_spec='${wl}-E'
8504       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8505       # Instead, shared libraries are loaded at an image base (0x10000000 by
8506       # default) and relocated if they conflict, which is a slow very memory
8507       # consuming and fragmenting process.  To avoid this, we pick a random,
8508       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8509       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8510       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8511       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'
8512       ;;
8513
8514     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8515       tmp_diet=no
8516       if test "$host_os" = linux-dietlibc; then
8517         case $cc_basename in
8518           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8519         esac
8520       fi
8521       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8522          && test "$tmp_diet" = no
8523       then
8524         tmp_addflag=' $pic_flag'
8525         tmp_sharedflag='-shared'
8526         case $cc_basename,$host_cpu in
8527         pgcc*)                          # Portland Group C compiler
8528           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'
8529           tmp_addflag=' $pic_flag'
8530           ;;
8531         pgf77* | pgf90* | pgf95* | pgfortran*)
8532                                         # Portland Group f77 and f90 compilers
8533           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'
8534           tmp_addflag=' $pic_flag -Mnomain' ;;
8535         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8536           tmp_addflag=' -i_dynamic' ;;
8537         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8538           tmp_addflag=' -i_dynamic -nofor_main' ;;
8539         ifc* | ifort*)                  # Intel Fortran compiler
8540           tmp_addflag=' -nofor_main' ;;
8541         lf95*)                          # Lahey Fortran 8.1
8542           whole_archive_flag_spec=
8543           tmp_sharedflag='--shared' ;;
8544         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8545           tmp_sharedflag='-qmkshrobj'
8546           tmp_addflag= ;;
8547         nvcc*)  # Cuda Compiler Driver 2.2
8548           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'
8549           compiler_needs_object=yes
8550           ;;
8551         esac
8552         case `$CC -V 2>&1 | sed 5q` in
8553         *Sun\ C*)                       # Sun C 5.9
8554           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'
8555           compiler_needs_object=yes
8556           tmp_sharedflag='-G' ;;
8557         *Sun\ F*)                       # Sun Fortran 8.3
8558           tmp_sharedflag='-G' ;;
8559         esac
8560         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561
8562         if test "x$supports_anon_versioning" = xyes; then
8563           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8564             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8565             echo "local: *; };" >> $output_objdir/$libname.ver~
8566             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8567         fi
8568
8569         case $cc_basename in
8570         xlf* | bgf* | bgxlf* | mpixlf*)
8571           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8572           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8573           hardcode_libdir_flag_spec=
8574           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8575           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8576           if test "x$supports_anon_versioning" = xyes; then
8577             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8578               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8579               echo "local: *; };" >> $output_objdir/$libname.ver~
8580               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8581           fi
8582           ;;
8583         esac
8584       else
8585         ld_shlibs=no
8586       fi
8587       ;;
8588
8589     netbsd*)
8590       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8591         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8592         wlarc=
8593       else
8594         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8596       fi
8597       ;;
8598
8599     solaris*)
8600       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8601         ld_shlibs=no
8602         cat <<_LT_EOF 1>&2
8603
8604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8605 *** create shared libraries on Solaris systems.  Therefore, libtool
8606 *** is disabling shared libraries support.  We urge you to upgrade GNU
8607 *** binutils to release 2.9.1 or newer.  Another option is to modify
8608 *** your PATH or compiler configuration so that the native linker is
8609 *** used, and then restart.
8610
8611 _LT_EOF
8612       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8615       else
8616         ld_shlibs=no
8617       fi
8618       ;;
8619
8620     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8621       case `$LD -v 2>&1` in
8622         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8623         ld_shlibs=no
8624         cat <<_LT_EOF 1>&2
8625
8626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8627 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8628 *** is disabling shared libraries support.  We urge you to upgrade GNU
8629 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8630 *** your PATH or compiler configuration so that the native linker is
8631 *** used, and then restart.
8632
8633 _LT_EOF
8634         ;;
8635         *)
8636           # For security reasons, it is highly recommended that you always
8637           # use absolute paths for naming shared libraries, and exclude the
8638           # DT_RUNPATH tag from executables and libraries.  But doing so
8639           # requires that you compile everything twice, which is a pain.
8640           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8644           else
8645             ld_shlibs=no
8646           fi
8647         ;;
8648       esac
8649       ;;
8650
8651     sunos4*)
8652       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8653       wlarc=
8654       hardcode_direct=yes
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     *)
8659       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8660         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662       else
8663         ld_shlibs=no
8664       fi
8665       ;;
8666     esac
8667
8668     if test "$ld_shlibs" = no; then
8669       runpath_var=
8670       hardcode_libdir_flag_spec=
8671       export_dynamic_flag_spec=
8672       whole_archive_flag_spec=
8673     fi
8674   else
8675     # PORTME fill in a description of your system's linker (not GNU ld)
8676     case $host_os in
8677     aix3*)
8678       allow_undefined_flag=unsupported
8679       always_export_symbols=yes
8680       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'
8681       # Note: this linker hardcodes the directories in LIBPATH if there
8682       # are no directories specified by -L.
8683       hardcode_minus_L=yes
8684       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8685         # Neither direct hardcoding nor static linking is supported with a
8686         # broken collect2.
8687         hardcode_direct=unsupported
8688       fi
8689       ;;
8690
8691     aix[4-9]*)
8692       if test "$host_cpu" = ia64; then
8693         # On IA64, the linker does run time linking by default, so we don't
8694         # have to do anything special.
8695         aix_use_runtimelinking=no
8696         exp_sym_flag='-Bexport'
8697         no_entry_flag=""
8698       else
8699         # If we're using GNU nm, then we don't want the "-C" option.
8700         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8701         # Also, AIX nm treats weak defined symbols like other global
8702         # defined symbols, whereas GNU nm marks them as "W".
8703         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8704           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'
8705         else
8706           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'
8707         fi
8708         aix_use_runtimelinking=no
8709
8710         # Test if we are trying to use run time linking or normal
8711         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8712         # need to do runtime linking.
8713         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8714           for ld_flag in $LDFLAGS; do
8715           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8716             aix_use_runtimelinking=yes
8717             break
8718           fi
8719           done
8720           ;;
8721         esac
8722
8723         exp_sym_flag='-bexport'
8724         no_entry_flag='-bnoentry'
8725       fi
8726
8727       # When large executables or shared objects are built, AIX ld can
8728       # have problems creating the table of contents.  If linking a library
8729       # or program results in "error TOC overflow" add -mminimal-toc to
8730       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8731       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8732
8733       archive_cmds=''
8734       hardcode_direct=yes
8735       hardcode_direct_absolute=yes
8736       hardcode_libdir_separator=':'
8737       link_all_deplibs=yes
8738       file_list_spec='${wl}-f,'
8739
8740       if test "$GCC" = yes; then
8741         case $host_os in aix4.[012]|aix4.[012].*)
8742         # We only want to do this on AIX 4.2 and lower, the check
8743         # below for broken collect2 doesn't work under 4.3+
8744           collect2name=`${CC} -print-prog-name=collect2`
8745           if test -f "$collect2name" &&
8746            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8747           then
8748           # We have reworked collect2
8749           :
8750           else
8751           # We have old collect2
8752           hardcode_direct=unsupported
8753           # It fails to find uninstalled libraries when the uninstalled
8754           # path is not listed in the libpath.  Setting hardcode_minus_L
8755           # to unsupported forces relinking
8756           hardcode_minus_L=yes
8757           hardcode_libdir_flag_spec='-L$libdir'
8758           hardcode_libdir_separator=
8759           fi
8760           ;;
8761         esac
8762         shared_flag='-shared'
8763         if test "$aix_use_runtimelinking" = yes; then
8764           shared_flag="$shared_flag "'${wl}-G'
8765         fi
8766       else
8767         # not using gcc
8768         if test "$host_cpu" = ia64; then
8769         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8770         # chokes on -Wl,-G. The following line is correct:
8771           shared_flag='-G'
8772         else
8773           if test "$aix_use_runtimelinking" = yes; then
8774             shared_flag='${wl}-G'
8775           else
8776             shared_flag='${wl}-bM:SRE'
8777           fi
8778         fi
8779       fi
8780
8781       export_dynamic_flag_spec='${wl}-bexpall'
8782       # It seems that -bexpall does not export symbols beginning with
8783       # underscore (_), so it is better to generate a list of symbols to export.
8784       always_export_symbols=yes
8785       if test "$aix_use_runtimelinking" = yes; then
8786         # Warning - without using the other runtime loading flags (-brtl),
8787         # -berok will link without error, but may produce a broken library.
8788         allow_undefined_flag='-berok'
8789         # Determine the default libpath from the value encoded in an
8790         # empty executable.
8791         if test "${lt_cv_aix_libpath+set}" = set; then
8792   aix_libpath=$lt_cv_aix_libpath
8793 else
8794   if ${lt_cv_aix_libpath_+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h.  */
8799
8800 int
8801 main ()
8802 {
8803
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"; then :
8809
8810   lt_aix_libpath_sed='
8811       /Import File Strings/,/^$/ {
8812           /^0/ {
8813               s/^0  *\([^ ]*\) *$/\1/
8814               p
8815           }
8816       }'
8817   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818   # Check for a 64-bit object if we didn't find anything.
8819   if test -z "$lt_cv_aix_libpath_"; then
8820     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8821   fi
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext \
8824     conftest$ac_exeext conftest.$ac_ext
8825   if test -z "$lt_cv_aix_libpath_"; then
8826     lt_cv_aix_libpath_="/usr/lib:/lib"
8827   fi
8828
8829 fi
8830
8831   aix_libpath=$lt_cv_aix_libpath_
8832 fi
8833
8834         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835         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"
8836       else
8837         if test "$host_cpu" = ia64; then
8838           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839           allow_undefined_flag="-z nodefs"
8840           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"
8841         else
8842          # Determine the default libpath from the value encoded in an
8843          # empty executable.
8844          if test "${lt_cv_aix_libpath+set}" = set; then
8845   aix_libpath=$lt_cv_aix_libpath
8846 else
8847   if ${lt_cv_aix_libpath_+:} false; then :
8848   $as_echo_n "(cached) " >&6
8849 else
8850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h.  */
8852
8853 int
8854 main ()
8855 {
8856
8857   ;
8858   return 0;
8859 }
8860 _ACEOF
8861 if ac_fn_c_try_link "$LINENO"; then :
8862
8863   lt_aix_libpath_sed='
8864       /Import File Strings/,/^$/ {
8865           /^0/ {
8866               s/^0  *\([^ ]*\) *$/\1/
8867               p
8868           }
8869       }'
8870   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871   # Check for a 64-bit object if we didn't find anything.
8872   if test -z "$lt_cv_aix_libpath_"; then
8873     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8874   fi
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext \
8877     conftest$ac_exeext conftest.$ac_ext
8878   if test -z "$lt_cv_aix_libpath_"; then
8879     lt_cv_aix_libpath_="/usr/lib:/lib"
8880   fi
8881
8882 fi
8883
8884   aix_libpath=$lt_cv_aix_libpath_
8885 fi
8886
8887          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8888           # Warning - without using the other run time loading flags,
8889           # -berok will link without error, but may produce a broken library.
8890           no_undefined_flag=' ${wl}-bernotok'
8891           allow_undefined_flag=' ${wl}-berok'
8892           if test "$with_gnu_ld" = yes; then
8893             # We only use this code for GNU lds that support --whole-archive.
8894             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8895           else
8896             # Exported symbols can be pulled into shared objects from archives
8897             whole_archive_flag_spec='$convenience'
8898           fi
8899           archive_cmds_need_lc=yes
8900           # This is similar to how AIX traditionally builds its shared libraries.
8901           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'
8902         fi
8903       fi
8904       ;;
8905
8906     amigaos*)
8907       case $host_cpu in
8908       powerpc)
8909             # see comment about AmigaOS4 .so support
8910             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911             archive_expsym_cmds=''
8912         ;;
8913       m68k)
8914             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)'
8915             hardcode_libdir_flag_spec='-L$libdir'
8916             hardcode_minus_L=yes
8917         ;;
8918       esac
8919       ;;
8920
8921     bsdi[45]*)
8922       export_dynamic_flag_spec=-rdynamic
8923       ;;
8924
8925     cygwin* | mingw* | pw32* | cegcc*)
8926       # When not using gcc, we currently assume that we are using
8927       # Microsoft Visual C++.
8928       # hardcode_libdir_flag_spec is actually meaningless, as there is
8929       # no search path for DLLs.
8930       case $cc_basename in
8931       cl*)
8932         # Native MSVC
8933         hardcode_libdir_flag_spec=' '
8934         allow_undefined_flag=unsupported
8935         always_export_symbols=yes
8936         file_list_spec='@'
8937         # Tell ltmain to make .lib files, not .a files.
8938         libext=lib
8939         # Tell ltmain to make .dll files, not .so files.
8940         shrext_cmds=".dll"
8941         # FIXME: Setting linknames here is a bad hack.
8942         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8943         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8945           else
8946             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8947           fi~
8948           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8949           linknames='
8950         # The linker will not automatically build a static lib if we build a DLL.
8951         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8952         enable_shared_with_static_runtimes=yes
8953         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8954         # Don't use ranlib
8955         old_postinstall_cmds='chmod 644 $oldlib'
8956         postlink_cmds='lt_outputfile="@OUTPUT@"~
8957           lt_tool_outputfile="@TOOL_OUTPUT@"~
8958           case $lt_outputfile in
8959             *.exe|*.EXE) ;;
8960             *)
8961               lt_outputfile="$lt_outputfile.exe"
8962               lt_tool_outputfile="$lt_tool_outputfile.exe"
8963               ;;
8964           esac~
8965           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8966             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8967             $RM "$lt_outputfile.manifest";
8968           fi'
8969         ;;
8970       *)
8971         # Assume MSVC wrapper
8972         hardcode_libdir_flag_spec=' '
8973         allow_undefined_flag=unsupported
8974         # Tell ltmain to make .lib files, not .a files.
8975         libext=lib
8976         # Tell ltmain to make .dll files, not .so files.
8977         shrext_cmds=".dll"
8978         # FIXME: Setting linknames here is a bad hack.
8979         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8980         # The linker will automatically build a .lib file if we build a DLL.
8981         old_archive_from_new_cmds='true'
8982         # FIXME: Should let the user specify the lib program.
8983         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8984         enable_shared_with_static_runtimes=yes
8985         ;;
8986       esac
8987       ;;
8988
8989     darwin* | rhapsody*)
8990
8991
8992   archive_cmds_need_lc=no
8993   hardcode_direct=no
8994   hardcode_automatic=yes
8995   hardcode_shlibpath_var=unsupported
8996   if test "$lt_cv_ld_force_load" = "yes"; then
8997     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\"`'
8998   else
8999     whole_archive_flag_spec=''
9000   fi
9001   link_all_deplibs=yes
9002   allow_undefined_flag="$_lt_dar_allow_undefined"
9003   case $cc_basename in
9004      ifort*) _lt_dar_can_shared=yes ;;
9005      *) _lt_dar_can_shared=$GCC ;;
9006   esac
9007   if test "$_lt_dar_can_shared" = "yes"; then
9008     output_verbose_link_cmd=func_echo_all
9009     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9010     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9011     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}"
9012     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}"
9013
9014   else
9015   ld_shlibs=no
9016   fi
9017
9018       ;;
9019
9020     dgux*)
9021       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022       hardcode_libdir_flag_spec='-L$libdir'
9023       hardcode_shlibpath_var=no
9024       ;;
9025
9026     freebsd1*)
9027       ld_shlibs=no
9028       ;;
9029
9030     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9031     # support.  Future versions do this automatically, but an explicit c++rt0.o
9032     # does not break anything, and helps significantly (at the cost of a little
9033     # extra space).
9034     freebsd2.2*)
9035       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9036       hardcode_libdir_flag_spec='-R$libdir'
9037       hardcode_direct=yes
9038       hardcode_shlibpath_var=no
9039       ;;
9040
9041     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9042     freebsd2*)
9043       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044       hardcode_direct=yes
9045       hardcode_minus_L=yes
9046       hardcode_shlibpath_var=no
9047       ;;
9048
9049     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9050     freebsd* | dragonfly*)
9051       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9052       hardcode_libdir_flag_spec='-R$libdir'
9053       hardcode_direct=yes
9054       hardcode_shlibpath_var=no
9055       ;;
9056
9057     hpux9*)
9058       if test "$GCC" = yes; then
9059         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'
9060       else
9061         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'
9062       fi
9063       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064       hardcode_libdir_separator=:
9065       hardcode_direct=yes
9066
9067       # hardcode_minus_L: Not really in the search PATH,
9068       # but as the default location of the library.
9069       hardcode_minus_L=yes
9070       export_dynamic_flag_spec='${wl}-E'
9071       ;;
9072
9073     hpux10*)
9074       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9075         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9076       else
9077         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9078       fi
9079       if test "$with_gnu_ld" = no; then
9080         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9081         hardcode_libdir_flag_spec_ld='+b $libdir'
9082         hardcode_libdir_separator=:
9083         hardcode_direct=yes
9084         hardcode_direct_absolute=yes
9085         export_dynamic_flag_spec='${wl}-E'
9086         # hardcode_minus_L: Not really in the search PATH,
9087         # but as the default location of the library.
9088         hardcode_minus_L=yes
9089       fi
9090       ;;
9091
9092     hpux11*)
9093       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9094         case $host_cpu in
9095         hppa*64*)
9096           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097           ;;
9098         ia64*)
9099           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9100           ;;
9101         *)
9102           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9103           ;;
9104         esac
9105       else
9106         case $host_cpu in
9107         hppa*64*)
9108           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109           ;;
9110         ia64*)
9111           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112           ;;
9113         *)
9114
9115           # Older versions of the 11.00 compiler do not understand -b yet
9116           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9117           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9118 $as_echo_n "checking if $CC understands -b... " >&6; }
9119 if ${lt_cv_prog_compiler__b+:} false; then :
9120   $as_echo_n "(cached) " >&6
9121 else
9122   lt_cv_prog_compiler__b=no
9123    save_LDFLAGS="$LDFLAGS"
9124    LDFLAGS="$LDFLAGS -b"
9125    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9127      # The linker can only warn and ignore the option if not recognized
9128      # So say no if there are warnings
9129      if test -s conftest.err; then
9130        # Append any errors to the config.log.
9131        cat conftest.err 1>&5
9132        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134        if diff conftest.exp conftest.er2 >/dev/null; then
9135          lt_cv_prog_compiler__b=yes
9136        fi
9137      else
9138        lt_cv_prog_compiler__b=yes
9139      fi
9140    fi
9141    $RM -r conftest*
9142    LDFLAGS="$save_LDFLAGS"
9143
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9146 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9147
9148 if test x"$lt_cv_prog_compiler__b" = xyes; then
9149     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9150 else
9151     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9152 fi
9153
9154           ;;
9155         esac
9156       fi
9157       if test "$with_gnu_ld" = no; then
9158         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159         hardcode_libdir_separator=:
9160
9161         case $host_cpu in
9162         hppa*64*|ia64*)
9163           hardcode_direct=no
9164           hardcode_shlibpath_var=no
9165           ;;
9166         *)
9167           hardcode_direct=yes
9168           hardcode_direct_absolute=yes
9169           export_dynamic_flag_spec='${wl}-E'
9170
9171           # hardcode_minus_L: Not really in the search PATH,
9172           # but as the default location of the library.
9173           hardcode_minus_L=yes
9174           ;;
9175         esac
9176       fi
9177       ;;
9178
9179     irix5* | irix6* | nonstopux*)
9180       if test "$GCC" = yes; then
9181         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'
9182         # Try to use the -exported_symbol ld option, if it does not
9183         # work, assume that -exports_file does not work either and
9184         # implicitly export all symbols.
9185         # This should be the same for all languages, so no per-tag cache variable.
9186         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9187 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9188 if ${lt_cv_irix_exported_symbol+:} false; then :
9189   $as_echo_n "(cached) " >&6
9190 else
9191   save_LDFLAGS="$LDFLAGS"
9192            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9193            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h.  */
9195 int foo (void) { return 0; }
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"; then :
9198   lt_cv_irix_exported_symbol=yes
9199 else
9200   lt_cv_irix_exported_symbol=no
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext \
9203     conftest$ac_exeext conftest.$ac_ext
9204            LDFLAGS="$save_LDFLAGS"
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9207 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9208         if test "$lt_cv_irix_exported_symbol" = yes; then
9209           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'
9210         fi
9211       else
9212         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'
9213         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'
9214       fi
9215       archive_cmds_need_lc='no'
9216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9217       hardcode_libdir_separator=:
9218       inherit_rpath=yes
9219       link_all_deplibs=yes
9220       ;;
9221
9222     netbsd*)
9223       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9225       else
9226         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9227       fi
9228       hardcode_libdir_flag_spec='-R$libdir'
9229       hardcode_direct=yes
9230       hardcode_shlibpath_var=no
9231       ;;
9232
9233     newsos6)
9234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235       hardcode_direct=yes
9236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237       hardcode_libdir_separator=:
9238       hardcode_shlibpath_var=no
9239       ;;
9240
9241     *nto* | *qnx*)
9242       ;;
9243
9244     openbsd*)
9245       if test -f /usr/libexec/ld.so; then
9246         hardcode_direct=yes
9247         hardcode_shlibpath_var=no
9248         hardcode_direct_absolute=yes
9249         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9250           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9251           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9252           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9253           export_dynamic_flag_spec='${wl}-E'
9254         else
9255           case $host_os in
9256            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9257              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9258              hardcode_libdir_flag_spec='-R$libdir'
9259              ;;
9260            *)
9261              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9263              ;;
9264           esac
9265         fi
9266       else
9267         ld_shlibs=no
9268       fi
9269       ;;
9270
9271     os2*)
9272       hardcode_libdir_flag_spec='-L$libdir'
9273       hardcode_minus_L=yes
9274       allow_undefined_flag=unsupported
9275       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'
9276       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9277       ;;
9278
9279     osf3*)
9280       if test "$GCC" = yes; then
9281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282         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'
9283       else
9284         allow_undefined_flag=' -expect_unresolved \*'
9285         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'
9286       fi
9287       archive_cmds_need_lc='no'
9288       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289       hardcode_libdir_separator=:
9290       ;;
9291
9292     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9293       if test "$GCC" = yes; then
9294         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9295         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'
9296         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297       else
9298         allow_undefined_flag=' -expect_unresolved \*'
9299         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'
9300         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~
9301         $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'
9302
9303         # Both c and cxx compiler support -rpath directly
9304         hardcode_libdir_flag_spec='-rpath $libdir'
9305       fi
9306       archive_cmds_need_lc='no'
9307       hardcode_libdir_separator=:
9308       ;;
9309
9310     solaris*)
9311       no_undefined_flag=' -z defs'
9312       if test "$GCC" = yes; then
9313         wlarc='${wl}'
9314         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9316           $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'
9317       else
9318         case `$CC -V 2>&1` in
9319         *"Compilers 5.0"*)
9320           wlarc=''
9321           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9324           ;;
9325         *)
9326           wlarc='${wl}'
9327           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9328           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9329           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9330           ;;
9331         esac
9332       fi
9333       hardcode_libdir_flag_spec='-R$libdir'
9334       hardcode_shlibpath_var=no
9335       case $host_os in
9336       solaris2.[0-5] | solaris2.[0-5].*) ;;
9337       *)
9338         # The compiler driver will combine and reorder linker options,
9339         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9340         # but is careful enough not to reorder.
9341         # Supported since Solaris 2.6 (maybe 2.5.1?)
9342         if test "$GCC" = yes; then
9343           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9344         else
9345           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9346         fi
9347         ;;
9348       esac
9349       link_all_deplibs=yes
9350       ;;
9351
9352     sunos4*)
9353       if test "x$host_vendor" = xsequent; then
9354         # Use $CC to link under sequent, because it throws in some extra .o
9355         # files that make .init and .fini sections work.
9356         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9357       else
9358         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9359       fi
9360       hardcode_libdir_flag_spec='-L$libdir'
9361       hardcode_direct=yes
9362       hardcode_minus_L=yes
9363       hardcode_shlibpath_var=no
9364       ;;
9365
9366     sysv4)
9367       case $host_vendor in
9368         sni)
9369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370           hardcode_direct=yes # is this really true???
9371         ;;
9372         siemens)
9373           ## LD is ld it makes a PLAMLIB
9374           ## CC just makes a GrossModule.
9375           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9376           reload_cmds='$CC -r -o $output$reload_objs'
9377           hardcode_direct=no
9378         ;;
9379         motorola)
9380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9382         ;;
9383       esac
9384       runpath_var='LD_RUN_PATH'
9385       hardcode_shlibpath_var=no
9386       ;;
9387
9388     sysv4.3*)
9389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390       hardcode_shlibpath_var=no
9391       export_dynamic_flag_spec='-Bexport'
9392       ;;
9393
9394     sysv4*MP*)
9395       if test -d /usr/nec; then
9396         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397         hardcode_shlibpath_var=no
9398         runpath_var=LD_RUN_PATH
9399         hardcode_runpath_var=yes
9400         ld_shlibs=yes
9401       fi
9402       ;;
9403
9404     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9405       no_undefined_flag='${wl}-z,text'
9406       archive_cmds_need_lc=no
9407       hardcode_shlibpath_var=no
9408       runpath_var='LD_RUN_PATH'
9409
9410       if test "$GCC" = yes; then
9411         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413       else
9414         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416       fi
9417       ;;
9418
9419     sysv5* | sco3.2v5* | sco5v6*)
9420       # Note: We can NOT use -z defs as we might desire, because we do not
9421       # link with -lc, and that would cause any symbols used from libc to
9422       # always be unresolved, which means just about no library would
9423       # ever link correctly.  If we're not using GNU ld we use -z text
9424       # though, which does catch some bad symbols but isn't as heavy-handed
9425       # as -z defs.
9426       no_undefined_flag='${wl}-z,text'
9427       allow_undefined_flag='${wl}-z,nodefs'
9428       archive_cmds_need_lc=no
9429       hardcode_shlibpath_var=no
9430       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9431       hardcode_libdir_separator=':'
9432       link_all_deplibs=yes
9433       export_dynamic_flag_spec='${wl}-Bexport'
9434       runpath_var='LD_RUN_PATH'
9435
9436       if test "$GCC" = yes; then
9437         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439       else
9440         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442       fi
9443       ;;
9444
9445     uts4*)
9446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447       hardcode_libdir_flag_spec='-L$libdir'
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     *)
9452       ld_shlibs=no
9453       ;;
9454     esac
9455
9456     if test x$host_vendor = xsni; then
9457       case $host in
9458       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9459         export_dynamic_flag_spec='${wl}-Blargedynsym'
9460         ;;
9461       esac
9462     fi
9463   fi
9464
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9466 $as_echo "$ld_shlibs" >&6; }
9467 test "$ld_shlibs" = no && can_build_shared=no
9468
9469 with_gnu_ld=$with_gnu_ld
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485 #
9486 # Do we need to explicitly link libc?
9487 #
9488 case "x$archive_cmds_need_lc" in
9489 x|xyes)
9490   # Assume -lc should be added
9491   archive_cmds_need_lc=yes
9492
9493   if test "$enable_shared" = yes && test "$GCC" = yes; then
9494     case $archive_cmds in
9495     *'~'*)
9496       # FIXME: we may have to deal with multi-command sequences.
9497       ;;
9498     '$CC '*)
9499       # Test whether the compiler implicitly links with -lc since on some
9500       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9501       # to ld, don't add -lc before -lgcc.
9502       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9503 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9504 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   $RM conftest*
9508         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9509
9510         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511   (eval $ac_compile) 2>&5
9512   ac_status=$?
9513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514   test $ac_status = 0; } 2>conftest.err; then
9515           soname=conftest
9516           lib=conftest
9517           libobjs=conftest.$ac_objext
9518           deplibs=
9519           wl=$lt_prog_compiler_wl
9520           pic_flag=$lt_prog_compiler_pic
9521           compiler_flags=-v
9522           linker_flags=-v
9523           verstring=
9524           output_objdir=.
9525           libname=conftest
9526           lt_save_allow_undefined_flag=$allow_undefined_flag
9527           allow_undefined_flag=
9528           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9529   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9530   ac_status=$?
9531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532   test $ac_status = 0; }
9533           then
9534             lt_cv_archive_cmds_need_lc=no
9535           else
9536             lt_cv_archive_cmds_need_lc=yes
9537           fi
9538           allow_undefined_flag=$lt_save_allow_undefined_flag
9539         else
9540           cat conftest.err 1>&5
9541         fi
9542         $RM conftest*
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9546 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9547       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9548       ;;
9549     esac
9550   fi
9551   ;;
9552 esac
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9711 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9712
9713 if test "$GCC" = yes; then
9714   case $host_os in
9715     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9716     *) lt_awk_arg="/^libraries:/" ;;
9717   esac
9718   case $host_os in
9719     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9720     *) lt_sed_strip_eq="s,=/,/,g" ;;
9721   esac
9722   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9723   case $lt_search_path_spec in
9724   *\;*)
9725     # if the path contains ";" then we assume it to be the separator
9726     # otherwise default to the standard path separator (i.e. ":") - it is
9727     # assumed that no part of a normal pathname contains ";" but that should
9728     # okay in the real world where ";" in dirpaths is itself problematic.
9729     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9730     ;;
9731   *)
9732     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9733     ;;
9734   esac
9735   # Ok, now we have the path, separated by spaces, we can step through it
9736   # and add multilib dir if necessary.
9737   lt_tmp_lt_search_path_spec=
9738   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9739   for lt_sys_path in $lt_search_path_spec; do
9740     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9741       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9742     else
9743       test -d "$lt_sys_path" && \
9744         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9745     fi
9746   done
9747   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9748 BEGIN {RS=" "; FS="/|\n";} {
9749   lt_foo="";
9750   lt_count=0;
9751   for (lt_i = NF; lt_i > 0; lt_i--) {
9752     if ($lt_i != "" && $lt_i != ".") {
9753       if ($lt_i == "..") {
9754         lt_count++;
9755       } else {
9756         if (lt_count == 0) {
9757           lt_foo="/" $lt_i lt_foo;
9758         } else {
9759           lt_count--;
9760         }
9761       }
9762     }
9763   }
9764   if (lt_foo != "") { lt_freq[lt_foo]++; }
9765   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9766 }'`
9767   # AWK program above erroneously prepends '/' to C:/dos/paths
9768   # for these hosts.
9769   case $host_os in
9770     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9771       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9772   esac
9773   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9774 else
9775   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9776 fi
9777 library_names_spec=
9778 libname_spec='lib$name'
9779 soname_spec=
9780 shrext_cmds=".so"
9781 postinstall_cmds=
9782 postuninstall_cmds=
9783 finish_cmds=
9784 finish_eval=
9785 shlibpath_var=
9786 shlibpath_overrides_runpath=unknown
9787 version_type=none
9788 dynamic_linker="$host_os ld.so"
9789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9790 need_lib_prefix=unknown
9791 hardcode_into_libs=no
9792
9793 # when you set need_version to no, make sure it does not cause -set_version
9794 # flags to be left without arguments
9795 need_version=unknown
9796
9797 case $host_os in
9798 aix3*)
9799   version_type=linux
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9801   shlibpath_var=LIBPATH
9802
9803   # AIX 3 has no versioning support, so we append a major version to the name.
9804   soname_spec='${libname}${release}${shared_ext}$major'
9805   ;;
9806
9807 aix[4-9]*)
9808   version_type=linux
9809   need_lib_prefix=no
9810   need_version=no
9811   hardcode_into_libs=yes
9812   if test "$host_cpu" = ia64; then
9813     # AIX 5 supports IA64
9814     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9815     shlibpath_var=LD_LIBRARY_PATH
9816   else
9817     # With GCC up to 2.95.x, collect2 would create an import file
9818     # for dependence libraries.  The import file would start with
9819     # the line `#! .'.  This would cause the generated library to
9820     # depend on `.', always an invalid library.  This was fixed in
9821     # development snapshots of GCC prior to 3.0.
9822     case $host_os in
9823       aix4 | aix4.[01] | aix4.[01].*)
9824       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9825            echo ' yes '
9826            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9827         :
9828       else
9829         can_build_shared=no
9830       fi
9831       ;;
9832     esac
9833     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9834     # soname into executable. Probably we can add versioning support to
9835     # collect2, so additional links can be useful in future.
9836     if test "$aix_use_runtimelinking" = yes; then
9837       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9838       # instead of lib<name>.a to let people know that these are not
9839       # typical AIX shared libraries.
9840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841     else
9842       # We preserve .a as extension for shared libraries through AIX4.2
9843       # and later when we are not doing run time linking.
9844       library_names_spec='${libname}${release}.a $libname.a'
9845       soname_spec='${libname}${release}${shared_ext}$major'
9846     fi
9847     shlibpath_var=LIBPATH
9848   fi
9849   ;;
9850
9851 amigaos*)
9852   case $host_cpu in
9853   powerpc)
9854     # Since July 2007 AmigaOS4 officially supports .so libraries.
9855     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857     ;;
9858   m68k)
9859     library_names_spec='$libname.ixlibrary $libname.a'
9860     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9861     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'
9862     ;;
9863   esac
9864   ;;
9865
9866 beos*)
9867   library_names_spec='${libname}${shared_ext}'
9868   dynamic_linker="$host_os ld.so"
9869   shlibpath_var=LIBRARY_PATH
9870   ;;
9871
9872 bsdi[45]*)
9873   version_type=linux
9874   need_version=no
9875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9876   soname_spec='${libname}${release}${shared_ext}$major'
9877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9881   # the default ld.so.conf also contains /usr/contrib/lib and
9882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9883   # libtool to hard-code these into programs
9884   ;;
9885
9886 cygwin* | mingw* | pw32* | cegcc*)
9887   version_type=windows
9888   shrext_cmds=".dll"
9889   need_version=no
9890   need_lib_prefix=no
9891
9892   case $GCC,$cc_basename in
9893   yes,*)
9894     # gcc
9895     library_names_spec='$libname.dll.a'
9896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9897     postinstall_cmds='base_file=`basename \${file}`~
9898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9899       dldir=$destdir/`dirname \$dlpath`~
9900       test -d \$dldir || mkdir -p \$dldir~
9901       $install_prog $dir/$dlname \$dldir/$dlname~
9902       chmod a+x \$dldir/$dlname~
9903       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9904         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9905       fi'
9906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9907       dlpath=$dir/\$dldll~
9908        $RM \$dlpath'
9909     shlibpath_overrides_runpath=yes
9910
9911     case $host_os in
9912     cygwin*)
9913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915
9916       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9917       ;;
9918     mingw* | cegcc*)
9919       # MinGW DLLs use traditional 'lib' prefix
9920       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9921       ;;
9922     pw32*)
9923       # pw32 DLLs use 'pw' prefix rather than 'lib'
9924       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925       ;;
9926     esac
9927     dynamic_linker='Win32 ld.exe'
9928     ;;
9929
9930   *,cl*)
9931     # Native MSVC
9932     libname_spec='$name'
9933     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934     library_names_spec='${libname}.dll.lib'
9935
9936     case $build_os in
9937     mingw*)
9938       sys_lib_search_path_spec=
9939       lt_save_ifs=$IFS
9940       IFS=';'
9941       for lt_path in $LIB
9942       do
9943         IFS=$lt_save_ifs
9944         # Let DOS variable expansion print the short 8.3 style file name.
9945         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9946         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9947       done
9948       IFS=$lt_save_ifs
9949       # Convert to MSYS style.
9950       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9951       ;;
9952     cygwin*)
9953       # Convert to unix form, then to dos form, then back to unix form
9954       # but this time dos style (no spaces!) so that the unix form looks
9955       # like /cygdrive/c/PROGRA~1:/cygdr...
9956       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9957       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9958       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9959       ;;
9960     *)
9961       sys_lib_search_path_spec="$LIB"
9962       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9963         # It is most probably a Windows format PATH.
9964         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965       else
9966         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9967       fi
9968       # FIXME: find the short name or the path components, as spaces are
9969       # common. (e.g. "Program Files" -> "PROGRA~1")
9970       ;;
9971     esac
9972
9973     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9974     postinstall_cmds='base_file=`basename \${file}`~
9975       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9976       dldir=$destdir/`dirname \$dlpath`~
9977       test -d \$dldir || mkdir -p \$dldir~
9978       $install_prog $dir/$dlname \$dldir/$dlname'
9979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980       dlpath=$dir/\$dldll~
9981        $RM \$dlpath'
9982     shlibpath_overrides_runpath=yes
9983     dynamic_linker='Win32 link.exe'
9984     ;;
9985
9986   *)
9987     # Assume MSVC wrapper
9988     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9989     dynamic_linker='Win32 ld.exe'
9990     ;;
9991   esac
9992   # FIXME: first we should search . and the directory the executable is in
9993   shlibpath_var=PATH
9994   ;;
9995
9996 darwin* | rhapsody*)
9997   dynamic_linker="$host_os dyld"
9998   version_type=darwin
9999   need_lib_prefix=no
10000   need_version=no
10001   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10002   soname_spec='${libname}${release}${major}$shared_ext'
10003   shlibpath_overrides_runpath=yes
10004   shlibpath_var=DYLD_LIBRARY_PATH
10005   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10006
10007   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10009   ;;
10010
10011 dgux*)
10012   version_type=linux
10013   need_lib_prefix=no
10014   need_version=no
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10016   soname_spec='${libname}${release}${shared_ext}$major'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   ;;
10019
10020 freebsd1*)
10021   dynamic_linker=no
10022   ;;
10023
10024 freebsd* | dragonfly*)
10025   # DragonFly does not have aout.  When/if they implement a new
10026   # versioning mechanism, adjust this.
10027   if test -x /usr/bin/objformat; then
10028     objformat=`/usr/bin/objformat`
10029   else
10030     case $host_os in
10031     freebsd[123]*) objformat=aout ;;
10032     *) objformat=elf ;;
10033     esac
10034   fi
10035   version_type=freebsd-$objformat
10036   case $version_type in
10037     freebsd-elf*)
10038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10039       need_version=no
10040       need_lib_prefix=no
10041       ;;
10042     freebsd-*)
10043       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10044       need_version=yes
10045       ;;
10046   esac
10047   shlibpath_var=LD_LIBRARY_PATH
10048   case $host_os in
10049   freebsd2*)
10050     shlibpath_overrides_runpath=yes
10051     ;;
10052   freebsd3.[01]* | freebsdelf3.[01]*)
10053     shlibpath_overrides_runpath=yes
10054     hardcode_into_libs=yes
10055     ;;
10056   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10057   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10058     shlibpath_overrides_runpath=no
10059     hardcode_into_libs=yes
10060     ;;
10061   *) # from 4.6 on, and DragonFly
10062     shlibpath_overrides_runpath=yes
10063     hardcode_into_libs=yes
10064     ;;
10065   esac
10066   ;;
10067
10068 gnu*)
10069   version_type=linux
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   hardcode_into_libs=yes
10076   ;;
10077
10078 haiku*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   dynamic_linker="$host_os runtime_loader"
10083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084   soname_spec='${libname}${release}${shared_ext}$major'
10085   shlibpath_var=LIBRARY_PATH
10086   shlibpath_overrides_runpath=yes
10087   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10088   hardcode_into_libs=yes
10089   ;;
10090
10091 hpux9* | hpux10* | hpux11*)
10092   # Give a soname corresponding to the major version so that dld.sl refuses to
10093   # link against other versions.
10094   version_type=sunos
10095   need_lib_prefix=no
10096   need_version=no
10097   case $host_cpu in
10098   ia64*)
10099     shrext_cmds='.so'
10100     hardcode_into_libs=yes
10101     dynamic_linker="$host_os dld.so"
10102     shlibpath_var=LD_LIBRARY_PATH
10103     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105     soname_spec='${libname}${release}${shared_ext}$major'
10106     if test "X$HPUX_IA64_MODE" = X32; then
10107       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10108     else
10109       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10110     fi
10111     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10112     ;;
10113   hppa*64*)
10114     shrext_cmds='.sl'
10115     hardcode_into_libs=yes
10116     dynamic_linker="$host_os dld.sl"
10117     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120     soname_spec='${libname}${release}${shared_ext}$major'
10121     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123     ;;
10124   *)
10125     shrext_cmds='.sl'
10126     dynamic_linker="$host_os dld.sl"
10127     shlibpath_var=SHLIB_PATH
10128     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130     soname_spec='${libname}${release}${shared_ext}$major'
10131     ;;
10132   esac
10133   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10134   postinstall_cmds='chmod 555 $lib'
10135   # or fails outright, so override atomically:
10136   install_override_mode=555
10137   ;;
10138
10139 interix[3-9]*)
10140   version_type=linux
10141   need_lib_prefix=no
10142   need_version=no
10143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10144   soname_spec='${libname}${release}${shared_ext}$major'
10145   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10146   shlibpath_var=LD_LIBRARY_PATH
10147   shlibpath_overrides_runpath=no
10148   hardcode_into_libs=yes
10149   ;;
10150
10151 irix5* | irix6* | nonstopux*)
10152   case $host_os in
10153     nonstopux*) version_type=nonstopux ;;
10154     *)
10155         if test "$lt_cv_prog_gnu_ld" = yes; then
10156                 version_type=linux
10157         else
10158                 version_type=irix
10159         fi ;;
10160   esac
10161   need_lib_prefix=no
10162   need_version=no
10163   soname_spec='${libname}${release}${shared_ext}$major'
10164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10165   case $host_os in
10166   irix5* | nonstopux*)
10167     libsuff= shlibsuff=
10168     ;;
10169   *)
10170     case $LD in # libtool.m4 will add one of these switches to LD
10171     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10172       libsuff= shlibsuff= libmagic=32-bit;;
10173     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10174       libsuff=32 shlibsuff=N32 libmagic=N32;;
10175     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10176       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10177     *) libsuff= shlibsuff= libmagic=never-match;;
10178     esac
10179     ;;
10180   esac
10181   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10182   shlibpath_overrides_runpath=no
10183   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10184   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10185   hardcode_into_libs=yes
10186   ;;
10187
10188 # No shared lib support for Linux oldld, aout, or coff.
10189 linux*oldld* | linux*aout* | linux*coff*)
10190   dynamic_linker=no
10191   ;;
10192
10193 # This must be Linux ELF.
10194 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10195   version_type=linux
10196   need_lib_prefix=no
10197   need_version=no
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   shlibpath_overrides_runpath=no
10203
10204   # Some binutils ld are patched to set DT_RUNPATH
10205   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10206   $as_echo_n "(cached) " >&6
10207 else
10208   lt_cv_shlibpath_overrides_runpath=no
10209     save_LDFLAGS=$LDFLAGS
10210     save_libdir=$libdir
10211     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10212          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h.  */
10215
10216 int
10217 main ()
10218 {
10219
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 if ac_fn_c_try_link "$LINENO"; then :
10225   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10226   lt_cv_shlibpath_overrides_runpath=yes
10227 fi
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext \
10230     conftest$ac_exeext conftest.$ac_ext
10231     LDFLAGS=$save_LDFLAGS
10232     libdir=$save_libdir
10233
10234 fi
10235
10236   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10237
10238   # This implies no fast_install, which is unacceptable.
10239   # Some rework will be needed to allow for fast_install
10240   # before this can be enabled.
10241   hardcode_into_libs=yes
10242
10243   # Append ld.so.conf contents to the search path
10244   if test -f /etc/ld.so.conf; then
10245     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' ' '`
10246     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10247   fi
10248
10249   # We used to test for /lib/ld.so.1 and disable shared libraries on
10250   # powerpc, because MkLinux only supported shared libraries with the
10251   # GNU dynamic linker.  Since this was broken with cross compilers,
10252   # most powerpc-linux boxes support dynamic linking these days and
10253   # people can always --disable-shared, the test was removed, and we
10254   # assume the GNU/Linux dynamic linker is in use.
10255   dynamic_linker='GNU/Linux ld.so'
10256   ;;
10257
10258 netbsd*)
10259   version_type=sunos
10260   need_lib_prefix=no
10261   need_version=no
10262   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265     dynamic_linker='NetBSD (a.out) ld.so'
10266   else
10267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268     soname_spec='${libname}${release}${shared_ext}$major'
10269     dynamic_linker='NetBSD ld.elf_so'
10270   fi
10271   shlibpath_var=LD_LIBRARY_PATH
10272   shlibpath_overrides_runpath=yes
10273   hardcode_into_libs=yes
10274   ;;
10275
10276 newsos6)
10277   version_type=linux
10278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279   shlibpath_var=LD_LIBRARY_PATH
10280   shlibpath_overrides_runpath=yes
10281   ;;
10282
10283 *nto* | *qnx*)
10284   version_type=qnx
10285   need_lib_prefix=no
10286   need_version=no
10287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288   soname_spec='${libname}${release}${shared_ext}$major'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   shlibpath_overrides_runpath=no
10291   hardcode_into_libs=yes
10292   dynamic_linker='ldqnx.so'
10293   ;;
10294
10295 openbsd*)
10296   version_type=sunos
10297   sys_lib_dlsearch_path_spec="/usr/lib"
10298   need_lib_prefix=no
10299   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10300   case $host_os in
10301     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10302     *)                          need_version=no  ;;
10303   esac
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308     case $host_os in
10309       openbsd2.[89] | openbsd2.[89].*)
10310         shlibpath_overrides_runpath=no
10311         ;;
10312       *)
10313         shlibpath_overrides_runpath=yes
10314         ;;
10315       esac
10316   else
10317     shlibpath_overrides_runpath=yes
10318   fi
10319   ;;
10320
10321 os2*)
10322   libname_spec='$name'
10323   shrext_cmds=".dll"
10324   need_lib_prefix=no
10325   library_names_spec='$libname${shared_ext} $libname.a'
10326   dynamic_linker='OS/2 ld.exe'
10327   shlibpath_var=LIBPATH
10328   ;;
10329
10330 osf3* | osf4* | osf5*)
10331   version_type=osf
10332   need_lib_prefix=no
10333   need_version=no
10334   soname_spec='${libname}${release}${shared_ext}$major'
10335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336   shlibpath_var=LD_LIBRARY_PATH
10337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10339   ;;
10340
10341 rdos*)
10342   dynamic_linker=no
10343   ;;
10344
10345 solaris*)
10346   version_type=linux
10347   need_lib_prefix=no
10348   need_version=no
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350   soname_spec='${libname}${release}${shared_ext}$major'
10351   shlibpath_var=LD_LIBRARY_PATH
10352   shlibpath_overrides_runpath=yes
10353   hardcode_into_libs=yes
10354   # ldd complains unless libraries are executable
10355   postinstall_cmds='chmod +x $lib'
10356   ;;
10357
10358 sunos4*)
10359   version_type=sunos
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10361   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10362   shlibpath_var=LD_LIBRARY_PATH
10363   shlibpath_overrides_runpath=yes
10364   if test "$with_gnu_ld" = yes; then
10365     need_lib_prefix=no
10366   fi
10367   need_version=yes
10368   ;;
10369
10370 sysv4 | sysv4.3*)
10371   version_type=linux
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   case $host_vendor in
10376     sni)
10377       shlibpath_overrides_runpath=no
10378       need_lib_prefix=no
10379       runpath_var=LD_RUN_PATH
10380       ;;
10381     siemens)
10382       need_lib_prefix=no
10383       ;;
10384     motorola)
10385       need_lib_prefix=no
10386       need_version=no
10387       shlibpath_overrides_runpath=no
10388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10389       ;;
10390   esac
10391   ;;
10392
10393 sysv4*MP*)
10394   if test -d /usr/nec ;then
10395     version_type=linux
10396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10397     soname_spec='$libname${shared_ext}.$major'
10398     shlibpath_var=LD_LIBRARY_PATH
10399   fi
10400   ;;
10401
10402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10403   version_type=freebsd-elf
10404   need_lib_prefix=no
10405   need_version=no
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   shlibpath_overrides_runpath=yes
10410   hardcode_into_libs=yes
10411   if test "$with_gnu_ld" = yes; then
10412     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10413   else
10414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10415     case $host_os in
10416       sco3.2v5*)
10417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10418         ;;
10419     esac
10420   fi
10421   sys_lib_dlsearch_path_spec='/usr/lib'
10422   ;;
10423
10424 tpf*)
10425   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10426   version_type=linux
10427   need_lib_prefix=no
10428   need_version=no
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430   shlibpath_var=LD_LIBRARY_PATH
10431   shlibpath_overrides_runpath=no
10432   hardcode_into_libs=yes
10433   ;;
10434
10435 uts4*)
10436   version_type=linux
10437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438   soname_spec='${libname}${release}${shared_ext}$major'
10439   shlibpath_var=LD_LIBRARY_PATH
10440   ;;
10441
10442 *)
10443   dynamic_linker=no
10444   ;;
10445 esac
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10447 $as_echo "$dynamic_linker" >&6; }
10448 test "$dynamic_linker" = no && can_build_shared=no
10449
10450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451 if test "$GCC" = yes; then
10452   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453 fi
10454
10455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10457 fi
10458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460 fi
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10554 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10555 hardcode_action=
10556 if test -n "$hardcode_libdir_flag_spec" ||
10557    test -n "$runpath_var" ||
10558    test "X$hardcode_automatic" = "Xyes" ; then
10559
10560   # We can hardcode non-existent directories.
10561   if test "$hardcode_direct" != no &&
10562      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10563      # have to relink, otherwise we might link with an installed library
10564      # when we should be linking with a yet-to-be-installed one
10565      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10566      test "$hardcode_minus_L" != no; then
10567     # Linking always hardcodes the temporary library directory.
10568     hardcode_action=relink
10569   else
10570     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10571     hardcode_action=immediate
10572   fi
10573 else
10574   # We cannot hardcode anything, or else we can only hardcode existing
10575   # directories.
10576   hardcode_action=unsupported
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10579 $as_echo "$hardcode_action" >&6; }
10580
10581 if test "$hardcode_action" = relink ||
10582    test "$inherit_rpath" = yes; then
10583   # Fast installation is not supported
10584   enable_fast_install=no
10585 elif test "$shlibpath_overrides_runpath" = yes ||
10586      test "$enable_shared" = no; then
10587   # Fast installation is not necessary
10588   enable_fast_install=needless
10589 fi
10590
10591
10592
10593
10594
10595
10596   if test "x$enable_dlopen" != xyes; then
10597   enable_dlopen=unknown
10598   enable_dlopen_self=unknown
10599   enable_dlopen_self_static=unknown
10600 else
10601   lt_cv_dlopen=no
10602   lt_cv_dlopen_libs=
10603
10604   case $host_os in
10605   beos*)
10606     lt_cv_dlopen="load_add_on"
10607     lt_cv_dlopen_libs=
10608     lt_cv_dlopen_self=yes
10609     ;;
10610
10611   mingw* | pw32* | cegcc*)
10612     lt_cv_dlopen="LoadLibrary"
10613     lt_cv_dlopen_libs=
10614     ;;
10615
10616   cygwin*)
10617     lt_cv_dlopen="dlopen"
10618     lt_cv_dlopen_libs=
10619     ;;
10620
10621   darwin*)
10622   # if libdl is installed we need to link against it
10623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10625 if ${ac_cv_lib_dl_dlopen+:} false; then :
10626   $as_echo_n "(cached) " >&6
10627 else
10628   ac_check_lib_save_LIBS=$LIBS
10629 LIBS="-ldl  $LIBS"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h.  */
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634    Use char because int might match the return type of a GCC
10635    builtin and then its argument prototype would still apply.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char dlopen ();
10640 int
10641 main ()
10642 {
10643 return dlopen ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_c_try_link "$LINENO"; then :
10649   ac_cv_lib_dl_dlopen=yes
10650 else
10651   ac_cv_lib_dl_dlopen=no
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext \
10654     conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10660   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10661 else
10662
10663     lt_cv_dlopen="dyld"
10664     lt_cv_dlopen_libs=
10665     lt_cv_dlopen_self=yes
10666
10667 fi
10668
10669     ;;
10670
10671   *)
10672     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10673 if test "x$ac_cv_func_shl_load" = xyes; then :
10674   lt_cv_dlopen="shl_load"
10675 else
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10677 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10678 if ${ac_cv_lib_dld_shl_load+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-ldld  $LIBS"
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h.  */
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687    Use char because int might match the return type of a GCC
10688    builtin and then its argument prototype would still apply.  */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char shl_load ();
10693 int
10694 main ()
10695 {
10696 return shl_load ();
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702   ac_cv_lib_dld_shl_load=yes
10703 else
10704   ac_cv_lib_dld_shl_load=no
10705 fi
10706 rm -f core conftest.err conftest.$ac_objext \
10707     conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10709 fi
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10711 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10712 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10713   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10714 else
10715   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10716 if test "x$ac_cv_func_dlopen" = xyes; then :
10717   lt_cv_dlopen="dlopen"
10718 else
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10720 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10721 if ${ac_cv_lib_dl_dlopen+:} false; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-ldl  $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h.  */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730    Use char because int might match the return type of a GCC
10731    builtin and then its argument prototype would still apply.  */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char dlopen ();
10736 int
10737 main ()
10738 {
10739 return dlopen ();
10740   ;
10741   return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745   ac_cv_lib_dl_dlopen=yes
10746 else
10747   ac_cv_lib_dl_dlopen=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750     conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10754 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10755 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10757 else
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10759 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10760 if ${ac_cv_lib_svld_dlopen+:} false; then :
10761   $as_echo_n "(cached) " >&6
10762 else
10763   ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-lsvld  $LIBS"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h.  */
10767
10768 /* Override any GCC internal prototype to avoid an error.
10769    Use char because int might match the return type of a GCC
10770    builtin and then its argument prototype would still apply.  */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char dlopen ();
10775 int
10776 main ()
10777 {
10778 return dlopen ();
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10784   ac_cv_lib_svld_dlopen=yes
10785 else
10786   ac_cv_lib_svld_dlopen=no
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext \
10789     conftest$ac_exeext conftest.$ac_ext
10790 LIBS=$ac_check_lib_save_LIBS
10791 fi
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10793 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10794 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10795   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10796 else
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10798 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10799 if ${ac_cv_lib_dld_dld_link+:} false; then :
10800   $as_echo_n "(cached) " >&6
10801 else
10802   ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-ldld  $LIBS"
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h.  */
10806
10807 /* Override any GCC internal prototype to avoid an error.
10808    Use char because int might match the return type of a GCC
10809    builtin and then its argument prototype would still apply.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 char dld_link ();
10814 int
10815 main ()
10816 {
10817 return dld_link ();
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823   ac_cv_lib_dld_dld_link=yes
10824 else
10825   ac_cv_lib_dld_dld_link=no
10826 fi
10827 rm -f core conftest.err conftest.$ac_objext \
10828     conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10832 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10833 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10834   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10835 fi
10836
10837
10838 fi
10839
10840
10841 fi
10842
10843
10844 fi
10845
10846
10847 fi
10848
10849
10850 fi
10851
10852     ;;
10853   esac
10854
10855   if test "x$lt_cv_dlopen" != xno; then
10856     enable_dlopen=yes
10857   else
10858     enable_dlopen=no
10859   fi
10860
10861   case $lt_cv_dlopen in
10862   dlopen)
10863     save_CPPFLAGS="$CPPFLAGS"
10864     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10865
10866     save_LDFLAGS="$LDFLAGS"
10867     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10868
10869     save_LIBS="$LIBS"
10870     LIBS="$lt_cv_dlopen_libs $LIBS"
10871
10872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10873 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10874 if ${lt_cv_dlopen_self+:} false; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877           if test "$cross_compiling" = yes; then :
10878   lt_cv_dlopen_self=cross
10879 else
10880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881   lt_status=$lt_dlunknown
10882   cat > conftest.$ac_ext <<_LT_EOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10885
10886 #if HAVE_DLFCN_H
10887 #include <dlfcn.h>
10888 #endif
10889
10890 #include <stdio.h>
10891
10892 #ifdef RTLD_GLOBAL
10893 #  define LT_DLGLOBAL           RTLD_GLOBAL
10894 #else
10895 #  ifdef DL_GLOBAL
10896 #    define LT_DLGLOBAL         DL_GLOBAL
10897 #  else
10898 #    define LT_DLGLOBAL         0
10899 #  endif
10900 #endif
10901
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903    find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10905 #  ifdef RTLD_LAZY
10906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10907 #  else
10908 #    ifdef DL_LAZY
10909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10910 #    else
10911 #      ifdef RTLD_NOW
10912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10913 #      else
10914 #        ifdef DL_NOW
10915 #          define LT_DLLAZY_OR_NOW      DL_NOW
10916 #        else
10917 #          define LT_DLLAZY_OR_NOW      0
10918 #        endif
10919 #      endif
10920 #    endif
10921 #  endif
10922 #endif
10923
10924 /* When -fvisbility=hidden is used, assume the code has been annotated
10925    correspondingly for the symbols needed.  */
10926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927 int fnord () __attribute__((visibility("default")));
10928 #endif
10929
10930 int fnord () { return 42; }
10931 int main ()
10932 {
10933   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934   int status = $lt_dlunknown;
10935
10936   if (self)
10937     {
10938       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10939       else
10940         {
10941           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10942           else puts (dlerror ());
10943         }
10944       /* dlclose (self); */
10945     }
10946   else
10947     puts (dlerror ());
10948
10949   return status;
10950 }
10951 _LT_EOF
10952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953   (eval $ac_link) 2>&5
10954   ac_status=$?
10955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957     (./conftest; exit; ) >&5 2>/dev/null
10958     lt_status=$?
10959     case x$lt_status in
10960       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10961       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10962       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10963     esac
10964   else :
10965     # compilation failed
10966     lt_cv_dlopen_self=no
10967   fi
10968 fi
10969 rm -fr conftest*
10970
10971
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10974 $as_echo "$lt_cv_dlopen_self" >&6; }
10975
10976     if test "x$lt_cv_dlopen_self" = xyes; then
10977       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10978       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10979 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10980 if ${lt_cv_dlopen_self_static+:} false; then :
10981   $as_echo_n "(cached) " >&6
10982 else
10983           if test "$cross_compiling" = yes; then :
10984   lt_cv_dlopen_self_static=cross
10985 else
10986   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10987   lt_status=$lt_dlunknown
10988   cat > conftest.$ac_ext <<_LT_EOF
10989 #line $LINENO "configure"
10990 #include "confdefs.h"
10991
10992 #if HAVE_DLFCN_H
10993 #include <dlfcn.h>
10994 #endif
10995
10996 #include <stdio.h>
10997
10998 #ifdef RTLD_GLOBAL
10999 #  define LT_DLGLOBAL           RTLD_GLOBAL
11000 #else
11001 #  ifdef DL_GLOBAL
11002 #    define LT_DLGLOBAL         DL_GLOBAL
11003 #  else
11004 #    define LT_DLGLOBAL         0
11005 #  endif
11006 #endif
11007
11008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11009    find out it does not work in some platform. */
11010 #ifndef LT_DLLAZY_OR_NOW
11011 #  ifdef RTLD_LAZY
11012 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11013 #  else
11014 #    ifdef DL_LAZY
11015 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11016 #    else
11017 #      ifdef RTLD_NOW
11018 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11019 #      else
11020 #        ifdef DL_NOW
11021 #          define LT_DLLAZY_OR_NOW      DL_NOW
11022 #        else
11023 #          define LT_DLLAZY_OR_NOW      0
11024 #        endif
11025 #      endif
11026 #    endif
11027 #  endif
11028 #endif
11029
11030 /* When -fvisbility=hidden is used, assume the code has been annotated
11031    correspondingly for the symbols needed.  */
11032 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11033 int fnord () __attribute__((visibility("default")));
11034 #endif
11035
11036 int fnord () { return 42; }
11037 int main ()
11038 {
11039   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040   int status = $lt_dlunknown;
11041
11042   if (self)
11043     {
11044       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11045       else
11046         {
11047           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11048           else puts (dlerror ());
11049         }
11050       /* dlclose (self); */
11051     }
11052   else
11053     puts (dlerror ());
11054
11055   return status;
11056 }
11057 _LT_EOF
11058   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11059   (eval $ac_link) 2>&5
11060   ac_status=$?
11061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11062   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11063     (./conftest; exit; ) >&5 2>/dev/null
11064     lt_status=$?
11065     case x$lt_status in
11066       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11067       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11068       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11069     esac
11070   else :
11071     # compilation failed
11072     lt_cv_dlopen_self_static=no
11073   fi
11074 fi
11075 rm -fr conftest*
11076
11077
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11080 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11081     fi
11082
11083     CPPFLAGS="$save_CPPFLAGS"
11084     LDFLAGS="$save_LDFLAGS"
11085     LIBS="$save_LIBS"
11086     ;;
11087   esac
11088
11089   case $lt_cv_dlopen_self in
11090   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11091   *) enable_dlopen_self=unknown ;;
11092   esac
11093
11094   case $lt_cv_dlopen_self_static in
11095   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11096   *) enable_dlopen_self_static=unknown ;;
11097   esac
11098 fi
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116 striplib=
11117 old_striplib=
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11119 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11120 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11121   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11122   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11124 $as_echo "yes" >&6; }
11125 else
11126 # FIXME - insert some real tests, host_os isn't really good enough
11127   case $host_os in
11128   darwin*)
11129     if test -n "$STRIP" ; then
11130       striplib="$STRIP -x"
11131       old_striplib="$STRIP -S"
11132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; }
11134     else
11135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11137     fi
11138     ;;
11139   *)
11140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142     ;;
11143   esac
11144 fi
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157   # Report which library types will actually be built
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11159 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11161 $as_echo "$can_build_shared" >&6; }
11162
11163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11164 $as_echo_n "checking whether to build shared libraries... " >&6; }
11165   test "$can_build_shared" = "no" && enable_shared=no
11166
11167   # On AIX, shared libraries and static libraries use the same namespace, and
11168   # are all built from PIC.
11169   case $host_os in
11170   aix3*)
11171     test "$enable_shared" = yes && enable_static=no
11172     if test -n "$RANLIB"; then
11173       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11174       postinstall_cmds='$RANLIB $lib'
11175     fi
11176     ;;
11177
11178   aix[4-9]*)
11179     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11180       test "$enable_shared" = yes && enable_static=no
11181     fi
11182     ;;
11183   esac
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11185 $as_echo "$enable_shared" >&6; }
11186
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11188 $as_echo_n "checking whether to build static libraries... " >&6; }
11189   # Make sure either enable_shared or enable_static is yes.
11190   test "$enable_shared" = yes || enable_static=yes
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11192 $as_echo "$enable_static" >&6; }
11193
11194
11195
11196
11197 fi
11198 ac_ext=c
11199 ac_cpp='$CPP $CPPFLAGS'
11200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11203
11204 CC="$lt_save_CC"
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218         ac_config_commands="$ac_config_commands libtool"
11219
11220
11221
11222
11223 # Only expand once:
11224
11225
11226
11227 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11240 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11241 if ${ac_cv_prog_cc_c99+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   ac_cv_prog_cc_c99=no
11245 ac_save_CC=$CC
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h.  */
11248 #include <stdarg.h>
11249 #include <stdbool.h>
11250 #include <stdlib.h>
11251 #include <wchar.h>
11252 #include <stdio.h>
11253
11254 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11255 #define debug(...) fprintf (stderr, __VA_ARGS__)
11256 #define showlist(...) puts (#__VA_ARGS__)
11257 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11258 static void
11259 test_varargs_macros (void)
11260 {
11261   int x = 1234;
11262   int y = 5678;
11263   debug ("Flag");
11264   debug ("X = %d\n", x);
11265   showlist (The first, second, and third items.);
11266   report (x>y, "x is %d but y is %d", x, y);
11267 }
11268
11269 // Check long long types.
11270 #define BIG64 18446744073709551615ull
11271 #define BIG32 4294967295ul
11272 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11273 #if !BIG_OK
11274   your preprocessor is broken;
11275 #endif
11276 #if BIG_OK
11277 #else
11278   your preprocessor is broken;
11279 #endif
11280 static long long int bignum = -9223372036854775807LL;
11281 static unsigned long long int ubignum = BIG64;
11282
11283 struct incomplete_array
11284 {
11285   int datasize;
11286   double data[];
11287 };
11288
11289 struct named_init {
11290   int number;
11291   const wchar_t *name;
11292   double average;
11293 };
11294
11295 typedef const char *ccp;
11296
11297 static inline int
11298 test_restrict (ccp restrict text)
11299 {
11300   // See if C++-style comments work.
11301   // Iterate through items via the restricted pointer.
11302   // Also check for declarations in for loops.
11303   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11304     continue;
11305   return 0;
11306 }
11307
11308 // Check varargs and va_copy.
11309 static void
11310 test_varargs (const char *format, ...)
11311 {
11312   va_list args;
11313   va_start (args, format);
11314   va_list args_copy;
11315   va_copy (args_copy, args);
11316
11317   const char *str;
11318   int number;
11319   float fnumber;
11320
11321   while (*format)
11322     {
11323       switch (*format++)
11324         {
11325         case 's': // string
11326           str = va_arg (args_copy, const char *);
11327           break;
11328         case 'd': // int
11329           number = va_arg (args_copy, int);
11330           break;
11331         case 'f': // float
11332           fnumber = va_arg (args_copy, double);
11333           break;
11334         default:
11335           break;
11336         }
11337     }
11338   va_end (args_copy);
11339   va_end (args);
11340 }
11341
11342 int
11343 main ()
11344 {
11345
11346   // Check bool.
11347   _Bool success = false;
11348
11349   // Check restrict.
11350   if (test_restrict ("String literal") == 0)
11351     success = true;
11352   char *restrict newvar = "Another string";
11353
11354   // Check varargs.
11355   test_varargs ("s, d' f .", "string", 65, 34.234);
11356   test_varargs_macros ();
11357
11358   // Check flexible array members.
11359   struct incomplete_array *ia =
11360     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11361   ia->datasize = 10;
11362   for (int i = 0; i < ia->datasize; ++i)
11363     ia->data[i] = i * 1.234;
11364
11365   // Check named initializers.
11366   struct named_init ni = {
11367     .number = 34,
11368     .name = L"Test wide string",
11369     .average = 543.34343,
11370   };
11371
11372   ni.number = 58;
11373
11374   int dynamic_array[ni.number];
11375   dynamic_array[ni.number - 1] = 543;
11376
11377   // work around unused variable warnings
11378   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11379           || dynamic_array[ni.number - 1] != 543);
11380
11381   ;
11382   return 0;
11383 }
11384 _ACEOF
11385 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11386 do
11387   CC="$ac_save_CC $ac_arg"
11388   if ac_fn_c_try_compile "$LINENO"; then :
11389   ac_cv_prog_cc_c99=$ac_arg
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext
11392   test "x$ac_cv_prog_cc_c99" != "xno" && break
11393 done
11394 rm -f conftest.$ac_ext
11395 CC=$ac_save_CC
11396
11397 fi
11398 # AC_CACHE_VAL
11399 case "x$ac_cv_prog_cc_c99" in
11400   x)
11401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11402 $as_echo "none needed" >&6; } ;;
11403   xno)
11404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11405 $as_echo "unsupported" >&6; } ;;
11406   *)
11407     CC="$CC $ac_cv_prog_cc_c99"
11408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11409 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11410 esac
11411 if test "x$ac_cv_prog_cc_c99" != xno; then :
11412
11413 fi
11414
11415
11416
11417
11418
11419
11420 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11421 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11422   CLANGCC="yes"
11423 else
11424   CLANGCC="no"
11425 fi
11426
11427 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11428 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11429   INTELCC="yes"
11430 else
11431   INTELCC="no"
11432 fi
11433
11434 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11435 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11436   SUNCC="yes"
11437 else
11438   SUNCC="no"
11439 fi
11440
11441
11442
11443
11444 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11445         if test -n "$ac_tool_prefix"; then
11446   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11447 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449 $as_echo_n "checking for $ac_word... " >&6; }
11450 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453   case $PKG_CONFIG in
11454   [\\/]* | ?:[\\/]*)
11455   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11456   ;;
11457   *)
11458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11460 do
11461   IFS=$as_save_IFS
11462   test -z "$as_dir" && as_dir=.
11463     for ac_exec_ext in '' $ac_executable_extensions; do
11464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11465     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11467     break 2
11468   fi
11469 done
11470   done
11471 IFS=$as_save_IFS
11472
11473   ;;
11474 esac
11475 fi
11476 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11477 if test -n "$PKG_CONFIG"; then
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11479 $as_echo "$PKG_CONFIG" >&6; }
11480 else
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484
11485
11486 fi
11487 if test -z "$ac_cv_path_PKG_CONFIG"; then
11488   ac_pt_PKG_CONFIG=$PKG_CONFIG
11489   # Extract the first word of "pkg-config", so it can be a program name with args.
11490 set dummy pkg-config; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   case $ac_pt_PKG_CONFIG in
11497   [\\/]* | ?:[\\/]*)
11498   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11499   ;;
11500   *)
11501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515
11516   ;;
11517 esac
11518 fi
11519 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11520 if test -n "$ac_pt_PKG_CONFIG"; then
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11522 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11523 else
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527
11528   if test "x$ac_pt_PKG_CONFIG" = x; then
11529     PKG_CONFIG=""
11530   else
11531     case $cross_compiling:$ac_tool_warned in
11532 yes:)
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11535 ac_tool_warned=yes ;;
11536 esac
11537     PKG_CONFIG=$ac_pt_PKG_CONFIG
11538   fi
11539 else
11540   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11541 fi
11542
11543 fi
11544 if test -n "$PKG_CONFIG"; then
11545         _pkg_min_version=0.9.0
11546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11547 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11548         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11549                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551         else
11552                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554                 PKG_CONFIG=""
11555         fi
11556
11557 fi
11558
11559
11560
11561
11562
11563 # Check whether --enable-selective-werror was given.
11564 if test "${enable_selective_werror+set}" = set; then :
11565   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11566 else
11567   SELECTIVE_WERROR=yes
11568 fi
11569
11570
11571
11572
11573
11574 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11575 if test "x$SUNCC" = "xyes"; then
11576     BASE_CFLAGS="-v"
11577 else
11578     BASE_CFLAGS=""
11579 fi
11580
11581 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593 xorg_testset_save_CFLAGS="$CFLAGS"
11594
11595 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11596         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11598 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11599 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604 int i;
11605 _ACEOF
11606 if ac_fn_c_try_compile "$LINENO"; then :
11607   xorg_cv_compiler_flag_unknown_warning_option=yes
11608 else
11609   xorg_cv_compiler_flag_unknown_warning_option=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11614 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11615         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11616         CFLAGS="$xorg_testset_save_CFLAGS"
11617 fi
11618
11619 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11620         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11621                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11622         fi
11623         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11625 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11626 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11627   $as_echo_n "(cached) " >&6
11628 else
11629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h.  */
11631 int i;
11632 _ACEOF
11633 if ac_fn_c_try_compile "$LINENO"; then :
11634   xorg_cv_compiler_flag_unused_command_line_argument=yes
11635 else
11636   xorg_cv_compiler_flag_unused_command_line_argument=no
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11641 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11642         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11643         CFLAGS="$xorg_testset_save_CFLAGS"
11644 fi
11645
11646 found="no"
11647
11648         if test $found = "no" ; then
11649                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11650                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11651                 fi
11652
11653                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11654                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11655                 fi
11656
11657                 CFLAGS="$CFLAGS -Wall"
11658
11659                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11660 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11661                 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11662                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11663   $as_echo_n "(cached) " >&6
11664 else
11665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h.  */
11667 int i;
11668 int
11669 main ()
11670 {
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_link "$LINENO"; then :
11677   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11678 else
11679   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext \
11682     conftest$ac_exeext conftest.$ac_ext
11683 fi
11684
11685
11686                 CFLAGS="$xorg_testset_save_CFLAGS"
11687
11688                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11689                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11690 $as_echo "$supported" >&6; }
11691                 if test "$supported" = "yes" ; then
11692                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11693                         found="yes"
11694                 fi
11695         fi
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 xorg_testset_save_CFLAGS="$CFLAGS"
11710
11711 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11712         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11714 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11715 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h.  */
11720 int i;
11721 _ACEOF
11722 if ac_fn_c_try_compile "$LINENO"; then :
11723   xorg_cv_compiler_flag_unknown_warning_option=yes
11724 else
11725   xorg_cv_compiler_flag_unknown_warning_option=no
11726 fi
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11730 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11731         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11732         CFLAGS="$xorg_testset_save_CFLAGS"
11733 fi
11734
11735 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11736         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11737                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11738         fi
11739         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11741 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11742 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747 int i;
11748 _ACEOF
11749 if ac_fn_c_try_compile "$LINENO"; then :
11750   xorg_cv_compiler_flag_unused_command_line_argument=yes
11751 else
11752   xorg_cv_compiler_flag_unused_command_line_argument=no
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11757 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11758         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11759         CFLAGS="$xorg_testset_save_CFLAGS"
11760 fi
11761
11762 found="no"
11763
11764         if test $found = "no" ; then
11765                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11766                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11767                 fi
11768
11769                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11770                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11771                 fi
11772
11773                 CFLAGS="$CFLAGS -Wpointer-arith"
11774
11775                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11776 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11777                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11778                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11779   $as_echo_n "(cached) " >&6
11780 else
11781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h.  */
11783 int i;
11784 int
11785 main ()
11786 {
11787
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 if ac_fn_c_try_link "$LINENO"; then :
11793   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11794 else
11795   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11796 fi
11797 rm -f core conftest.err conftest.$ac_objext \
11798     conftest$ac_exeext conftest.$ac_ext
11799 fi
11800
11801
11802                 CFLAGS="$xorg_testset_save_CFLAGS"
11803
11804                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11805                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11806 $as_echo "$supported" >&6; }
11807                 if test "$supported" = "yes" ; then
11808                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11809                         found="yes"
11810                 fi
11811         fi
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 xorg_testset_save_CFLAGS="$CFLAGS"
11826
11827 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11828         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11830 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11831 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11832   $as_echo_n "(cached) " >&6
11833 else
11834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h.  */
11836 int i;
11837 _ACEOF
11838 if ac_fn_c_try_compile "$LINENO"; then :
11839   xorg_cv_compiler_flag_unknown_warning_option=yes
11840 else
11841   xorg_cv_compiler_flag_unknown_warning_option=no
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11846 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11847         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11848         CFLAGS="$xorg_testset_save_CFLAGS"
11849 fi
11850
11851 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11852         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11853                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11854         fi
11855         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11857 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11858 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h.  */
11863 int i;
11864 _ACEOF
11865 if ac_fn_c_try_compile "$LINENO"; then :
11866   xorg_cv_compiler_flag_unused_command_line_argument=yes
11867 else
11868   xorg_cv_compiler_flag_unused_command_line_argument=no
11869 fi
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11873 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11874         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11875         CFLAGS="$xorg_testset_save_CFLAGS"
11876 fi
11877
11878 found="no"
11879
11880         if test $found = "no" ; then
11881                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11882                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11883                 fi
11884
11885                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11886                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11887                 fi
11888
11889                 CFLAGS="$CFLAGS -Wmissing-declarations"
11890
11891                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11892 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11893                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11894                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h.  */
11899 int i;
11900 int
11901 main ()
11902 {
11903
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11910 else
11911   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914     conftest$ac_exeext conftest.$ac_ext
11915 fi
11916
11917
11918                 CFLAGS="$xorg_testset_save_CFLAGS"
11919
11920                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11921                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11922 $as_echo "$supported" >&6; }
11923                 if test "$supported" = "yes" ; then
11924                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11925                         found="yes"
11926                 fi
11927         fi
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 xorg_testset_save_CFLAGS="$CFLAGS"
11942
11943 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11944         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11946 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11947 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h.  */
11952 int i;
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955   xorg_cv_compiler_flag_unknown_warning_option=yes
11956 else
11957   xorg_cv_compiler_flag_unknown_warning_option=no
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11962 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11963         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11964         CFLAGS="$xorg_testset_save_CFLAGS"
11965 fi
11966
11967 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11968         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11969                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11970         fi
11971         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11973 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11974 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h.  */
11979 int i;
11980 _ACEOF
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982   xorg_cv_compiler_flag_unused_command_line_argument=yes
11983 else
11984   xorg_cv_compiler_flag_unused_command_line_argument=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11989 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11990         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11991         CFLAGS="$xorg_testset_save_CFLAGS"
11992 fi
11993
11994 found="no"
11995
11996         if test $found = "no" ; then
11997                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11998                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11999                 fi
12000
12001                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12002                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12003                 fi
12004
12005                 CFLAGS="$CFLAGS -Wformat=2"
12006
12007                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12008 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12009                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12010                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h.  */
12015 int i;
12016 int
12017 main ()
12018 {
12019
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12026 else
12027   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext \
12030     conftest$ac_exeext conftest.$ac_ext
12031 fi
12032
12033
12034                 CFLAGS="$xorg_testset_save_CFLAGS"
12035
12036                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12037                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12038 $as_echo "$supported" >&6; }
12039                 if test "$supported" = "yes" ; then
12040                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12041                         found="yes"
12042                 fi
12043         fi
12044
12045         if test $found = "no" ; then
12046                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12047                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12048                 fi
12049
12050                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12051                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12052                 fi
12053
12054                 CFLAGS="$CFLAGS -Wformat"
12055
12056                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12057 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12058                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12059                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12060   $as_echo_n "(cached) " >&6
12061 else
12062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h.  */
12064 int i;
12065 int
12066 main ()
12067 {
12068
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_link "$LINENO"; then :
12074   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12075 else
12076   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12077 fi
12078 rm -f core conftest.err conftest.$ac_objext \
12079     conftest$ac_exeext conftest.$ac_ext
12080 fi
12081
12082
12083                 CFLAGS="$xorg_testset_save_CFLAGS"
12084
12085                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12086                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12087 $as_echo "$supported" >&6; }
12088                 if test "$supported" = "yes" ; then
12089                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12090                         found="yes"
12091                 fi
12092         fi
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108 xorg_testset_save_CFLAGS="$CFLAGS"
12109
12110 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12111         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12113 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12114 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 int i;
12120 _ACEOF
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122   xorg_cv_compiler_flag_unknown_warning_option=yes
12123 else
12124   xorg_cv_compiler_flag_unknown_warning_option=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12129 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12130         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12131         CFLAGS="$xorg_testset_save_CFLAGS"
12132 fi
12133
12134 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12135         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12136                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12137         fi
12138         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12140 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12141 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146 int i;
12147 _ACEOF
12148 if ac_fn_c_try_compile "$LINENO"; then :
12149   xorg_cv_compiler_flag_unused_command_line_argument=yes
12150 else
12151   xorg_cv_compiler_flag_unused_command_line_argument=no
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12156 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12157         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12158         CFLAGS="$xorg_testset_save_CFLAGS"
12159 fi
12160
12161 found="no"
12162
12163         if test $found = "no" ; then
12164                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12165                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12166                 fi
12167
12168                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12169                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12170                 fi
12171
12172                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12173
12174                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12175 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12176                 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12177                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h.  */
12182 int i;
12183 int
12184 main ()
12185 {
12186
12187   ;
12188   return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12193 else
12194   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197     conftest$ac_exeext conftest.$ac_ext
12198 fi
12199
12200
12201                 CFLAGS="$xorg_testset_save_CFLAGS"
12202
12203                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12204                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12205 $as_echo "$supported" >&6; }
12206                 if test "$supported" = "yes" ; then
12207                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12208                         found="yes"
12209                 fi
12210         fi
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224 xorg_testset_save_CFLAGS="$CFLAGS"
12225
12226 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12227         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12229 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12230 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h.  */
12235 int i;
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238   xorg_cv_compiler_flag_unknown_warning_option=yes
12239 else
12240   xorg_cv_compiler_flag_unknown_warning_option=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12245 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12246         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12247         CFLAGS="$xorg_testset_save_CFLAGS"
12248 fi
12249
12250 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12251         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12252                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12253         fi
12254         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12256 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12257 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262 int i;
12263 _ACEOF
12264 if ac_fn_c_try_compile "$LINENO"; then :
12265   xorg_cv_compiler_flag_unused_command_line_argument=yes
12266 else
12267   xorg_cv_compiler_flag_unused_command_line_argument=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12272 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12273         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12274         CFLAGS="$xorg_testset_save_CFLAGS"
12275 fi
12276
12277 found="no"
12278
12279         if test $found = "no" ; then
12280                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12281                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12282                 fi
12283
12284                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12285                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12286                 fi
12287
12288                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12289
12290                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12291 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12292                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12293                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12294   $as_echo_n "(cached) " >&6
12295 else
12296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h.  */
12298 int i;
12299 int
12300 main ()
12301 {
12302
12303   ;
12304   return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12309 else
12310   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext \
12313     conftest$ac_exeext conftest.$ac_ext
12314 fi
12315
12316
12317                 CFLAGS="$xorg_testset_save_CFLAGS"
12318
12319                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12320                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12321 $as_echo "$supported" >&6; }
12322                 if test "$supported" = "yes" ; then
12323                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12324                         found="yes"
12325                 fi
12326         fi
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 xorg_testset_save_CFLAGS="$CFLAGS"
12341
12342 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12343         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12345 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12346 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h.  */
12351 int i;
12352 _ACEOF
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354   xorg_cv_compiler_flag_unknown_warning_option=yes
12355 else
12356   xorg_cv_compiler_flag_unknown_warning_option=no
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12361 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12362         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12363         CFLAGS="$xorg_testset_save_CFLAGS"
12364 fi
12365
12366 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12367         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12368                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12369         fi
12370         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12372 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12373 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h.  */
12378 int i;
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381   xorg_cv_compiler_flag_unused_command_line_argument=yes
12382 else
12383   xorg_cv_compiler_flag_unused_command_line_argument=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12388 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12389         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12390         CFLAGS="$xorg_testset_save_CFLAGS"
12391 fi
12392
12393 found="no"
12394
12395         if test $found = "no" ; then
12396                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12397                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12398                 fi
12399
12400                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12401                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12402                 fi
12403
12404                 CFLAGS="$CFLAGS -Wnested-externs"
12405
12406                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12407 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12408                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12409                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h.  */
12414 int i;
12415 int
12416 main ()
12417 {
12418
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12425 else
12426   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext \
12429     conftest$ac_exeext conftest.$ac_ext
12430 fi
12431
12432
12433                 CFLAGS="$xorg_testset_save_CFLAGS"
12434
12435                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12436                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12437 $as_echo "$supported" >&6; }
12438                 if test "$supported" = "yes" ; then
12439                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12440                         found="yes"
12441                 fi
12442         fi
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456 xorg_testset_save_CFLAGS="$CFLAGS"
12457
12458 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12459         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12461 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12462 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467 int i;
12468 _ACEOF
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470   xorg_cv_compiler_flag_unknown_warning_option=yes
12471 else
12472   xorg_cv_compiler_flag_unknown_warning_option=no
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12477 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12478         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12479         CFLAGS="$xorg_testset_save_CFLAGS"
12480 fi
12481
12482 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12483         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12484                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12485         fi
12486         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12488 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12489 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h.  */
12494 int i;
12495 _ACEOF
12496 if ac_fn_c_try_compile "$LINENO"; then :
12497   xorg_cv_compiler_flag_unused_command_line_argument=yes
12498 else
12499   xorg_cv_compiler_flag_unused_command_line_argument=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12504 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12505         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12506         CFLAGS="$xorg_testset_save_CFLAGS"
12507 fi
12508
12509 found="no"
12510
12511         if test $found = "no" ; then
12512                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12513                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12514                 fi
12515
12516                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12517                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12518                 fi
12519
12520                 CFLAGS="$CFLAGS -Wbad-function-cast"
12521
12522                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12523 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12524                 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12525                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12526   $as_echo_n "(cached) " >&6
12527 else
12528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h.  */
12530 int i;
12531 int
12532 main ()
12533 {
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12541 else
12542   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545     conftest$ac_exeext conftest.$ac_ext
12546 fi
12547
12548
12549                 CFLAGS="$xorg_testset_save_CFLAGS"
12550
12551                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12552                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12553 $as_echo "$supported" >&6; }
12554                 if test "$supported" = "yes" ; then
12555                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12556                         found="yes"
12557                 fi
12558         fi
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 xorg_testset_save_CFLAGS="$CFLAGS"
12573
12574 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12575         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12577 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12578 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h.  */
12583 int i;
12584 _ACEOF
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586   xorg_cv_compiler_flag_unknown_warning_option=yes
12587 else
12588   xorg_cv_compiler_flag_unknown_warning_option=no
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12593 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12594         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12595         CFLAGS="$xorg_testset_save_CFLAGS"
12596 fi
12597
12598 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12599         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12600                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12601         fi
12602         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12604 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12605 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610 int i;
12611 _ACEOF
12612 if ac_fn_c_try_compile "$LINENO"; then :
12613   xorg_cv_compiler_flag_unused_command_line_argument=yes
12614 else
12615   xorg_cv_compiler_flag_unused_command_line_argument=no
12616 fi
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12620 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12621         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12622         CFLAGS="$xorg_testset_save_CFLAGS"
12623 fi
12624
12625 found="no"
12626
12627         if test $found = "no" ; then
12628                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12629                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12630                 fi
12631
12632                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12633                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12634                 fi
12635
12636                 CFLAGS="$CFLAGS -Wold-style-definition"
12637
12638                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12639 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12640                 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12641                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h.  */
12646 int i;
12647 int
12648 main ()
12649 {
12650
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"; then :
12656   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12657 else
12658   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext \
12661     conftest$ac_exeext conftest.$ac_ext
12662 fi
12663
12664
12665                 CFLAGS="$xorg_testset_save_CFLAGS"
12666
12667                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12668                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12669 $as_echo "$supported" >&6; }
12670                 if test "$supported" = "yes" ; then
12671                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12672                         found="yes"
12673                 fi
12674         fi
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688 xorg_testset_save_CFLAGS="$CFLAGS"
12689
12690 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12691         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12693 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12694 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12695   $as_echo_n "(cached) " >&6
12696 else
12697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h.  */
12699 int i;
12700 _ACEOF
12701 if ac_fn_c_try_compile "$LINENO"; then :
12702   xorg_cv_compiler_flag_unknown_warning_option=yes
12703 else
12704   xorg_cv_compiler_flag_unknown_warning_option=no
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12709 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12710         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12711         CFLAGS="$xorg_testset_save_CFLAGS"
12712 fi
12713
12714 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12715         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12716                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12717         fi
12718         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12720 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12721 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h.  */
12726 int i;
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729   xorg_cv_compiler_flag_unused_command_line_argument=yes
12730 else
12731   xorg_cv_compiler_flag_unused_command_line_argument=no
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12736 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12737         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12738         CFLAGS="$xorg_testset_save_CFLAGS"
12739 fi
12740
12741 found="no"
12742
12743         if test $found = "no" ; then
12744                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12745                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12746                 fi
12747
12748                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12749                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12750                 fi
12751
12752                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12753
12754                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12755 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12756                 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12757                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12758   $as_echo_n "(cached) " >&6
12759 else
12760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h.  */
12762 int i;
12763 int
12764 main ()
12765 {
12766
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12773 else
12774   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext \
12777     conftest$ac_exeext conftest.$ac_ext
12778 fi
12779
12780
12781                 CFLAGS="$xorg_testset_save_CFLAGS"
12782
12783                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12784                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12785 $as_echo "$supported" >&6; }
12786                 if test "$supported" = "yes" ; then
12787                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12788                         found="yes"
12789                 fi
12790         fi
12791
12792
12793
12794
12795
12796 # This chunk adds additional warnings that could catch undesired effects.
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808 xorg_testset_save_CFLAGS="$CFLAGS"
12809
12810 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12811         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12813 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12814 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819 int i;
12820 _ACEOF
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822   xorg_cv_compiler_flag_unknown_warning_option=yes
12823 else
12824   xorg_cv_compiler_flag_unknown_warning_option=no
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12829 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12830         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12831         CFLAGS="$xorg_testset_save_CFLAGS"
12832 fi
12833
12834 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12835         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12836                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12837         fi
12838         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12840 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12841 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 int i;
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849   xorg_cv_compiler_flag_unused_command_line_argument=yes
12850 else
12851   xorg_cv_compiler_flag_unused_command_line_argument=no
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12856 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12857         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12858         CFLAGS="$xorg_testset_save_CFLAGS"
12859 fi
12860
12861 found="no"
12862
12863         if test $found = "no" ; then
12864                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12865                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12866                 fi
12867
12868                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12869                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12870                 fi
12871
12872                 CFLAGS="$CFLAGS -Wunused"
12873
12874                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12875 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12876                 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12877                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882 int i;
12883 int
12884 main ()
12885 {
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12893 else
12894   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext \
12897     conftest$ac_exeext conftest.$ac_ext
12898 fi
12899
12900
12901                 CFLAGS="$xorg_testset_save_CFLAGS"
12902
12903                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12904                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12905 $as_echo "$supported" >&6; }
12906                 if test "$supported" = "yes" ; then
12907                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12908                         found="yes"
12909                 fi
12910         fi
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924 xorg_testset_save_CFLAGS="$CFLAGS"
12925
12926 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12927         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12929 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12930 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h.  */
12935 int i;
12936 _ACEOF
12937 if ac_fn_c_try_compile "$LINENO"; then :
12938   xorg_cv_compiler_flag_unknown_warning_option=yes
12939 else
12940   xorg_cv_compiler_flag_unknown_warning_option=no
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12945 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12946         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12947         CFLAGS="$xorg_testset_save_CFLAGS"
12948 fi
12949
12950 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12951         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12952                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12953         fi
12954         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12955         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12956 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12957 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12958   $as_echo_n "(cached) " >&6
12959 else
12960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h.  */
12962 int i;
12963 _ACEOF
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965   xorg_cv_compiler_flag_unused_command_line_argument=yes
12966 else
12967   xorg_cv_compiler_flag_unused_command_line_argument=no
12968 fi
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12972 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12973         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12974         CFLAGS="$xorg_testset_save_CFLAGS"
12975 fi
12976
12977 found="no"
12978
12979         if test $found = "no" ; then
12980                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12981                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12982                 fi
12983
12984                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12985                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12986                 fi
12987
12988                 CFLAGS="$CFLAGS -Wuninitialized"
12989
12990                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
12991 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
12992                 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
12993                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h.  */
12998 int i;
12999 int
13000 main ()
13001 {
13002
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_link "$LINENO"; then :
13008   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13009 else
13010   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext \
13013     conftest$ac_exeext conftest.$ac_ext
13014 fi
13015
13016
13017                 CFLAGS="$xorg_testset_save_CFLAGS"
13018
13019                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13020                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13021 $as_echo "$supported" >&6; }
13022                 if test "$supported" = "yes" ; then
13023                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13024                         found="yes"
13025                 fi
13026         fi
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040 xorg_testset_save_CFLAGS="$CFLAGS"
13041
13042 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13043         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13045 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13046 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13047   $as_echo_n "(cached) " >&6
13048 else
13049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h.  */
13051 int i;
13052 _ACEOF
13053 if ac_fn_c_try_compile "$LINENO"; then :
13054   xorg_cv_compiler_flag_unknown_warning_option=yes
13055 else
13056   xorg_cv_compiler_flag_unknown_warning_option=no
13057 fi
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13061 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13062         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13063         CFLAGS="$xorg_testset_save_CFLAGS"
13064 fi
13065
13066 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13067         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13068                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13069         fi
13070         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13072 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13073 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13074   $as_echo_n "(cached) " >&6
13075 else
13076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h.  */
13078 int i;
13079 _ACEOF
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081   xorg_cv_compiler_flag_unused_command_line_argument=yes
13082 else
13083   xorg_cv_compiler_flag_unused_command_line_argument=no
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13088 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13089         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13090         CFLAGS="$xorg_testset_save_CFLAGS"
13091 fi
13092
13093 found="no"
13094
13095         if test $found = "no" ; then
13096                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13097                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13098                 fi
13099
13100                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13101                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13102                 fi
13103
13104                 CFLAGS="$CFLAGS -Wshadow"
13105
13106                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13107 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13108                 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13109                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13110   $as_echo_n "(cached) " >&6
13111 else
13112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114 int i;
13115 int
13116 main ()
13117 {
13118
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13125 else
13126   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext \
13129     conftest$ac_exeext conftest.$ac_ext
13130 fi
13131
13132
13133                 CFLAGS="$xorg_testset_save_CFLAGS"
13134
13135                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13137 $as_echo "$supported" >&6; }
13138                 if test "$supported" = "yes" ; then
13139                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13140                         found="yes"
13141                 fi
13142         fi
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156 xorg_testset_save_CFLAGS="$CFLAGS"
13157
13158 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13159         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13161 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13162 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167 int i;
13168 _ACEOF
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170   xorg_cv_compiler_flag_unknown_warning_option=yes
13171 else
13172   xorg_cv_compiler_flag_unknown_warning_option=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13177 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13178         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13179         CFLAGS="$xorg_testset_save_CFLAGS"
13180 fi
13181
13182 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13183         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13184                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13185         fi
13186         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13188 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13189 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h.  */
13194 int i;
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197   xorg_cv_compiler_flag_unused_command_line_argument=yes
13198 else
13199   xorg_cv_compiler_flag_unused_command_line_argument=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 fi
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13204 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13205         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13206         CFLAGS="$xorg_testset_save_CFLAGS"
13207 fi
13208
13209 found="no"
13210
13211         if test $found = "no" ; then
13212                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13213                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13214                 fi
13215
13216                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13217                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13218                 fi
13219
13220                 CFLAGS="$CFLAGS -Wcast-qual"
13221
13222                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13223 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13224                 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13225                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h.  */
13230 int i;
13231 int
13232 main ()
13233 {
13234
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"; then :
13240   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13241 else
13242   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext \
13245     conftest$ac_exeext conftest.$ac_ext
13246 fi
13247
13248
13249                 CFLAGS="$xorg_testset_save_CFLAGS"
13250
13251                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13252                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13253 $as_echo "$supported" >&6; }
13254                 if test "$supported" = "yes" ; then
13255                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13256                         found="yes"
13257                 fi
13258         fi
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272 xorg_testset_save_CFLAGS="$CFLAGS"
13273
13274 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13275         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13277 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13278 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13279   $as_echo_n "(cached) " >&6
13280 else
13281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h.  */
13283 int i;
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286   xorg_cv_compiler_flag_unknown_warning_option=yes
13287 else
13288   xorg_cv_compiler_flag_unknown_warning_option=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13293 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13294         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13295         CFLAGS="$xorg_testset_save_CFLAGS"
13296 fi
13297
13298 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13299         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13300                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301         fi
13302         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13304 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13305 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310 int i;
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313   xorg_cv_compiler_flag_unused_command_line_argument=yes
13314 else
13315   xorg_cv_compiler_flag_unused_command_line_argument=no
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13320 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13321         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13322         CFLAGS="$xorg_testset_save_CFLAGS"
13323 fi
13324
13325 found="no"
13326
13327         if test $found = "no" ; then
13328                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13329                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13330                 fi
13331
13332                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13333                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13334                 fi
13335
13336                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13337
13338                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13339 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13340                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13341                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13342   $as_echo_n "(cached) " >&6
13343 else
13344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h.  */
13346 int i;
13347 int
13348 main ()
13349 {
13350
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 if ac_fn_c_try_link "$LINENO"; then :
13356   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13357 else
13358   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext \
13361     conftest$ac_exeext conftest.$ac_ext
13362 fi
13363
13364
13365                 CFLAGS="$xorg_testset_save_CFLAGS"
13366
13367                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13368                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13369 $as_echo "$supported" >&6; }
13370                 if test "$supported" = "yes" ; then
13371                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13372                         found="yes"
13373                 fi
13374         fi
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388 xorg_testset_save_CFLAGS="$CFLAGS"
13389
13390 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13391         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13392         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13393 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13394 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h.  */
13399 int i;
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402   xorg_cv_compiler_flag_unknown_warning_option=yes
13403 else
13404   xorg_cv_compiler_flag_unknown_warning_option=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13409 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13410         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13411         CFLAGS="$xorg_testset_save_CFLAGS"
13412 fi
13413
13414 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13415         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13416                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417         fi
13418         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13420 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13421 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h.  */
13426 int i;
13427 _ACEOF
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429   xorg_cv_compiler_flag_unused_command_line_argument=yes
13430 else
13431   xorg_cv_compiler_flag_unused_command_line_argument=no
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13436 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13437         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13438         CFLAGS="$xorg_testset_save_CFLAGS"
13439 fi
13440
13441 found="no"
13442
13443         if test $found = "no" ; then
13444                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13445                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13446                 fi
13447
13448                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13449                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13450                 fi
13451
13452                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13453
13454                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13455 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13456                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13457                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h.  */
13462 int i;
13463 int
13464 main ()
13465 {
13466
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13473 else
13474   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext \
13477     conftest$ac_exeext conftest.$ac_ext
13478 fi
13479
13480
13481                 CFLAGS="$xorg_testset_save_CFLAGS"
13482
13483                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13484                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13485 $as_echo "$supported" >&6; }
13486                 if test "$supported" = "yes" ; then
13487                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13488                         found="yes"
13489                 fi
13490         fi
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504 xorg_testset_save_CFLAGS="$CFLAGS"
13505
13506 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13507         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13509 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13510 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13511   $as_echo_n "(cached) " >&6
13512 else
13513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515 int i;
13516 _ACEOF
13517 if ac_fn_c_try_compile "$LINENO"; then :
13518   xorg_cv_compiler_flag_unknown_warning_option=yes
13519 else
13520   xorg_cv_compiler_flag_unknown_warning_option=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13525 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13526         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13527         CFLAGS="$xorg_testset_save_CFLAGS"
13528 fi
13529
13530 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13531         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13532                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533         fi
13534         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13536 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13537 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542 int i;
13543 _ACEOF
13544 if ac_fn_c_try_compile "$LINENO"; then :
13545   xorg_cv_compiler_flag_unused_command_line_argument=yes
13546 else
13547   xorg_cv_compiler_flag_unused_command_line_argument=no
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13552 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13553         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13554         CFLAGS="$xorg_testset_save_CFLAGS"
13555 fi
13556
13557 found="no"
13558
13559         if test $found = "no" ; then
13560                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13561                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562                 fi
13563
13564                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13565                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13566                 fi
13567
13568                 CFLAGS="$CFLAGS -Wredundant-decls"
13569
13570                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13571 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13572                 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13573                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h.  */
13578 int i;
13579 int
13580 main ()
13581 {
13582
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 if ac_fn_c_try_link "$LINENO"; then :
13588   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13589 else
13590   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13591 fi
13592 rm -f core conftest.err conftest.$ac_objext \
13593     conftest$ac_exeext conftest.$ac_ext
13594 fi
13595
13596
13597                 CFLAGS="$xorg_testset_save_CFLAGS"
13598
13599                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13600                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13601 $as_echo "$supported" >&6; }
13602                 if test "$supported" = "yes" ; then
13603                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13604                         found="yes"
13605                 fi
13606         fi
13607
13608
13609
13610 # These are currently disabled because they are noisy.  They will be enabled
13611 # in the future once the codebase is sufficiently modernized to silence
13612 # them.  For now, I don't want them to drown out the other warnings.
13613 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13614 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13615 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13616
13617 # Turn some warnings into errors, so we don't accidently get successful builds
13618 # when there are problems that should be fixed.
13619
13620 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632 xorg_testset_save_CFLAGS="$CFLAGS"
13633
13634 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13635         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13637 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13638 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h.  */
13643 int i;
13644 _ACEOF
13645 if ac_fn_c_try_compile "$LINENO"; then :
13646   xorg_cv_compiler_flag_unknown_warning_option=yes
13647 else
13648   xorg_cv_compiler_flag_unknown_warning_option=no
13649 fi
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 fi
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13653 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13654         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13655         CFLAGS="$xorg_testset_save_CFLAGS"
13656 fi
13657
13658 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13659         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13660                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13661         fi
13662         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13664 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13665 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h.  */
13670 int i;
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673   xorg_cv_compiler_flag_unused_command_line_argument=yes
13674 else
13675   xorg_cv_compiler_flag_unused_command_line_argument=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13680 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13681         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13682         CFLAGS="$xorg_testset_save_CFLAGS"
13683 fi
13684
13685 found="no"
13686
13687         if test $found = "no" ; then
13688                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13689                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13690                 fi
13691
13692                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13693                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13694                 fi
13695
13696                 CFLAGS="$CFLAGS -Werror=implicit"
13697
13698                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13699 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13700                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13701                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h.  */
13706 int i;
13707 int
13708 main ()
13709 {
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13717 else
13718   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext \
13721     conftest$ac_exeext conftest.$ac_ext
13722 fi
13723
13724
13725                 CFLAGS="$xorg_testset_save_CFLAGS"
13726
13727                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13728                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13729 $as_echo "$supported" >&6; }
13730                 if test "$supported" = "yes" ; then
13731                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13732                         found="yes"
13733                 fi
13734         fi
13735
13736         if test $found = "no" ; then
13737                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13738                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13739                 fi
13740
13741                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13742                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13743                 fi
13744
13745                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13746
13747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13748 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13749                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13750                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13751   $as_echo_n "(cached) " >&6
13752 else
13753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h.  */
13755 int i;
13756 int
13757 main ()
13758 {
13759
13760   ;
13761   return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13766 else
13767   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext \
13770     conftest$ac_exeext conftest.$ac_ext
13771 fi
13772
13773
13774                 CFLAGS="$xorg_testset_save_CFLAGS"
13775
13776                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13777                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13778 $as_echo "$supported" >&6; }
13779                 if test "$supported" = "yes" ; then
13780                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13781                         found="yes"
13782                 fi
13783         fi
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797 xorg_testset_save_CFLAGS="$CFLAGS"
13798
13799 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13800         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13802 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13803 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13804   $as_echo_n "(cached) " >&6
13805 else
13806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h.  */
13808 int i;
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811   xorg_cv_compiler_flag_unknown_warning_option=yes
13812 else
13813   xorg_cv_compiler_flag_unknown_warning_option=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13818 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13819         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13820         CFLAGS="$xorg_testset_save_CFLAGS"
13821 fi
13822
13823 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13824         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13825                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826         fi
13827         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13829 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13830 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h.  */
13835 int i;
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838   xorg_cv_compiler_flag_unused_command_line_argument=yes
13839 else
13840   xorg_cv_compiler_flag_unused_command_line_argument=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13845 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13846         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13847         CFLAGS="$xorg_testset_save_CFLAGS"
13848 fi
13849
13850 found="no"
13851
13852         if test $found = "no" ; then
13853                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13854                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855                 fi
13856
13857                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13858                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13859                 fi
13860
13861                 CFLAGS="$CFLAGS -Werror=nonnull"
13862
13863                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13864 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13865                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13866                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13867   $as_echo_n "(cached) " >&6
13868 else
13869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h.  */
13871 int i;
13872 int
13873 main ()
13874 {
13875
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"; then :
13881   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13882 else
13883   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext \
13886     conftest$ac_exeext conftest.$ac_ext
13887 fi
13888
13889
13890                 CFLAGS="$xorg_testset_save_CFLAGS"
13891
13892                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13894 $as_echo "$supported" >&6; }
13895                 if test "$supported" = "yes" ; then
13896                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13897                         found="yes"
13898                 fi
13899         fi
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913 xorg_testset_save_CFLAGS="$CFLAGS"
13914
13915 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13916         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13918 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13919 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h.  */
13924 int i;
13925 _ACEOF
13926 if ac_fn_c_try_compile "$LINENO"; then :
13927   xorg_cv_compiler_flag_unknown_warning_option=yes
13928 else
13929   xorg_cv_compiler_flag_unknown_warning_option=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13934 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13935         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13936         CFLAGS="$xorg_testset_save_CFLAGS"
13937 fi
13938
13939 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13940         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13941                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13942         fi
13943         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13945 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13946 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13947   $as_echo_n "(cached) " >&6
13948 else
13949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951 int i;
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954   xorg_cv_compiler_flag_unused_command_line_argument=yes
13955 else
13956   xorg_cv_compiler_flag_unused_command_line_argument=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13961 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13962         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13963         CFLAGS="$xorg_testset_save_CFLAGS"
13964 fi
13965
13966 found="no"
13967
13968         if test $found = "no" ; then
13969                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13970                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971                 fi
13972
13973                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13974                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13975                 fi
13976
13977                 CFLAGS="$CFLAGS -Werror=init-self"
13978
13979                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13980 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13981                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13982                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13983   $as_echo_n "(cached) " >&6
13984 else
13985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h.  */
13987 int i;
13988 int
13989 main ()
13990 {
13991
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 if ac_fn_c_try_link "$LINENO"; then :
13997   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13998 else
13999   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14000 fi
14001 rm -f core conftest.err conftest.$ac_objext \
14002     conftest$ac_exeext conftest.$ac_ext
14003 fi
14004
14005
14006                 CFLAGS="$xorg_testset_save_CFLAGS"
14007
14008                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14009                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14010 $as_echo "$supported" >&6; }
14011                 if test "$supported" = "yes" ; then
14012                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14013                         found="yes"
14014                 fi
14015         fi
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029 xorg_testset_save_CFLAGS="$CFLAGS"
14030
14031 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14032         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14034 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14035 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14036   $as_echo_n "(cached) " >&6
14037 else
14038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h.  */
14040 int i;
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043   xorg_cv_compiler_flag_unknown_warning_option=yes
14044 else
14045   xorg_cv_compiler_flag_unknown_warning_option=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14050 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14051         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14052         CFLAGS="$xorg_testset_save_CFLAGS"
14053 fi
14054
14055 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14056         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14057                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058         fi
14059         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14061 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14062 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h.  */
14067 int i;
14068 _ACEOF
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070   xorg_cv_compiler_flag_unused_command_line_argument=yes
14071 else
14072   xorg_cv_compiler_flag_unused_command_line_argument=no
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14077 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14078         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14079         CFLAGS="$xorg_testset_save_CFLAGS"
14080 fi
14081
14082 found="no"
14083
14084         if test $found = "no" ; then
14085                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14086                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087                 fi
14088
14089                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14090                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091                 fi
14092
14093                 CFLAGS="$CFLAGS -Werror=main"
14094
14095                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14096 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14097                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14098                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h.  */
14103 int i;
14104 int
14105 main ()
14106 {
14107
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14114 else
14115   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118     conftest$ac_exeext conftest.$ac_ext
14119 fi
14120
14121
14122                 CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14125                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126 $as_echo "$supported" >&6; }
14127                 if test "$supported" = "yes" ; then
14128                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14129                         found="yes"
14130                 fi
14131         fi
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145 xorg_testset_save_CFLAGS="$CFLAGS"
14146
14147 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14148         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14150 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14151 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14152   $as_echo_n "(cached) " >&6
14153 else
14154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h.  */
14156 int i;
14157 _ACEOF
14158 if ac_fn_c_try_compile "$LINENO"; then :
14159   xorg_cv_compiler_flag_unknown_warning_option=yes
14160 else
14161   xorg_cv_compiler_flag_unknown_warning_option=no
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 fi
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14166 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14167         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14168         CFLAGS="$xorg_testset_save_CFLAGS"
14169 fi
14170
14171 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14172         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14173                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174         fi
14175         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14177 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14178 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14179   $as_echo_n "(cached) " >&6
14180 else
14181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h.  */
14183 int i;
14184 _ACEOF
14185 if ac_fn_c_try_compile "$LINENO"; then :
14186   xorg_cv_compiler_flag_unused_command_line_argument=yes
14187 else
14188   xorg_cv_compiler_flag_unused_command_line_argument=no
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 fi
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14193 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14194         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14195         CFLAGS="$xorg_testset_save_CFLAGS"
14196 fi
14197
14198 found="no"
14199
14200         if test $found = "no" ; then
14201                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14202                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14203                 fi
14204
14205                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14206                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14207                 fi
14208
14209                 CFLAGS="$CFLAGS -Werror=missing-braces"
14210
14211                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14212 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14213                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14214                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h.  */
14219 int i;
14220 int
14221 main ()
14222 {
14223
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 if ac_fn_c_try_link "$LINENO"; then :
14229   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14230 else
14231   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext \
14234     conftest$ac_exeext conftest.$ac_ext
14235 fi
14236
14237
14238                 CFLAGS="$xorg_testset_save_CFLAGS"
14239
14240                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14241                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14242 $as_echo "$supported" >&6; }
14243                 if test "$supported" = "yes" ; then
14244                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14245                         found="yes"
14246                 fi
14247         fi
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261 xorg_testset_save_CFLAGS="$CFLAGS"
14262
14263 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14264         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14266 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14267 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h.  */
14272 int i;
14273 _ACEOF
14274 if ac_fn_c_try_compile "$LINENO"; then :
14275   xorg_cv_compiler_flag_unknown_warning_option=yes
14276 else
14277   xorg_cv_compiler_flag_unknown_warning_option=no
14278 fi
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 fi
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14282 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14283         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14284         CFLAGS="$xorg_testset_save_CFLAGS"
14285 fi
14286
14287 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14288         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14289                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14290         fi
14291         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14293 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14294 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299 int i;
14300 _ACEOF
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302   xorg_cv_compiler_flag_unused_command_line_argument=yes
14303 else
14304   xorg_cv_compiler_flag_unused_command_line_argument=no
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14309 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14310         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14311         CFLAGS="$xorg_testset_save_CFLAGS"
14312 fi
14313
14314 found="no"
14315
14316         if test $found = "no" ; then
14317                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14318                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319                 fi
14320
14321                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14322                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14323                 fi
14324
14325                 CFLAGS="$CFLAGS -Werror=sequence-point"
14326
14327                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14328 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14329                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14330                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h.  */
14335 int i;
14336 int
14337 main ()
14338 {
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_link "$LINENO"; then :
14345   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14346 else
14347   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext \
14350     conftest$ac_exeext conftest.$ac_ext
14351 fi
14352
14353
14354                 CFLAGS="$xorg_testset_save_CFLAGS"
14355
14356                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14357                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14358 $as_echo "$supported" >&6; }
14359                 if test "$supported" = "yes" ; then
14360                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14361                         found="yes"
14362                 fi
14363         fi
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377 xorg_testset_save_CFLAGS="$CFLAGS"
14378
14379 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14380         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14382 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14383 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h.  */
14388 int i;
14389 _ACEOF
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391   xorg_cv_compiler_flag_unknown_warning_option=yes
14392 else
14393   xorg_cv_compiler_flag_unknown_warning_option=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14398 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14399         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14400         CFLAGS="$xorg_testset_save_CFLAGS"
14401 fi
14402
14403 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14404         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14405                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14406         fi
14407         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14409 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14410 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14411   $as_echo_n "(cached) " >&6
14412 else
14413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h.  */
14415 int i;
14416 _ACEOF
14417 if ac_fn_c_try_compile "$LINENO"; then :
14418   xorg_cv_compiler_flag_unused_command_line_argument=yes
14419 else
14420   xorg_cv_compiler_flag_unused_command_line_argument=no
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14425 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14426         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14427         CFLAGS="$xorg_testset_save_CFLAGS"
14428 fi
14429
14430 found="no"
14431
14432         if test $found = "no" ; then
14433                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14434                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14435                 fi
14436
14437                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14438                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14439                 fi
14440
14441                 CFLAGS="$CFLAGS -Werror=return-type"
14442
14443                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14444 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14445                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14446                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14447   $as_echo_n "(cached) " >&6
14448 else
14449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h.  */
14451 int i;
14452 int
14453 main ()
14454 {
14455
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 if ac_fn_c_try_link "$LINENO"; then :
14461   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14462 else
14463   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14464 fi
14465 rm -f core conftest.err conftest.$ac_objext \
14466     conftest$ac_exeext conftest.$ac_ext
14467 fi
14468
14469
14470                 CFLAGS="$xorg_testset_save_CFLAGS"
14471
14472                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14474 $as_echo "$supported" >&6; }
14475                 if test "$supported" = "yes" ; then
14476                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14477                         found="yes"
14478                 fi
14479         fi
14480
14481         if test $found = "no" ; then
14482                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14483                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14484                 fi
14485
14486                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14487                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14488                 fi
14489
14490                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14491
14492                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14493 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14494                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14495                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h.  */
14500 int i;
14501 int
14502 main ()
14503 {
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_link "$LINENO"; then :
14510   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14511 else
14512   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14513 fi
14514 rm -f core conftest.err conftest.$ac_objext \
14515     conftest$ac_exeext conftest.$ac_ext
14516 fi
14517
14518
14519                 CFLAGS="$xorg_testset_save_CFLAGS"
14520
14521                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14522                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14523 $as_echo "$supported" >&6; }
14524                 if test "$supported" = "yes" ; then
14525                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14526                         found="yes"
14527                 fi
14528         fi
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542 xorg_testset_save_CFLAGS="$CFLAGS"
14543
14544 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14545         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14547 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14548 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14549   $as_echo_n "(cached) " >&6
14550 else
14551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h.  */
14553 int i;
14554 _ACEOF
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556   xorg_cv_compiler_flag_unknown_warning_option=yes
14557 else
14558   xorg_cv_compiler_flag_unknown_warning_option=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14563 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14564         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14565         CFLAGS="$xorg_testset_save_CFLAGS"
14566 fi
14567
14568 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14569         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14570                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14571         fi
14572         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14574 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14575 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14576   $as_echo_n "(cached) " >&6
14577 else
14578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h.  */
14580 int i;
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583   xorg_cv_compiler_flag_unused_command_line_argument=yes
14584 else
14585   xorg_cv_compiler_flag_unused_command_line_argument=no
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14590 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14591         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14592         CFLAGS="$xorg_testset_save_CFLAGS"
14593 fi
14594
14595 found="no"
14596
14597         if test $found = "no" ; then
14598                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14599                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14600                 fi
14601
14602                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14603                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14604                 fi
14605
14606                 CFLAGS="$CFLAGS -Werror=trigraphs"
14607
14608                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14609 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14610                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14611                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14612   $as_echo_n "(cached) " >&6
14613 else
14614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h.  */
14616 int i;
14617 int
14618 main ()
14619 {
14620
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 if ac_fn_c_try_link "$LINENO"; then :
14626   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14627 else
14628   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext \
14631     conftest$ac_exeext conftest.$ac_ext
14632 fi
14633
14634
14635                 CFLAGS="$xorg_testset_save_CFLAGS"
14636
14637                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14638                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14639 $as_echo "$supported" >&6; }
14640                 if test "$supported" = "yes" ; then
14641                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14642                         found="yes"
14643                 fi
14644         fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 xorg_testset_save_CFLAGS="$CFLAGS"
14659
14660 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14661         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14663 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14664 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14665   $as_echo_n "(cached) " >&6
14666 else
14667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669 int i;
14670 _ACEOF
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672   xorg_cv_compiler_flag_unknown_warning_option=yes
14673 else
14674   xorg_cv_compiler_flag_unknown_warning_option=no
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14679 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14680         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14681         CFLAGS="$xorg_testset_save_CFLAGS"
14682 fi
14683
14684 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14685         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14686                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687         fi
14688         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14690 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14691 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14692   $as_echo_n "(cached) " >&6
14693 else
14694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h.  */
14696 int i;
14697 _ACEOF
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699   xorg_cv_compiler_flag_unused_command_line_argument=yes
14700 else
14701   xorg_cv_compiler_flag_unused_command_line_argument=no
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14706 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14707         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14708         CFLAGS="$xorg_testset_save_CFLAGS"
14709 fi
14710
14711 found="no"
14712
14713         if test $found = "no" ; then
14714                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14715                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716                 fi
14717
14718                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14719                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720                 fi
14721
14722                 CFLAGS="$CFLAGS -Werror=array-bounds"
14723
14724                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14725 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14726                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14727                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h.  */
14732 int i;
14733 int
14734 main ()
14735 {
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 if ac_fn_c_try_link "$LINENO"; then :
14742   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14743 else
14744   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext \
14747     conftest$ac_exeext conftest.$ac_ext
14748 fi
14749
14750
14751                 CFLAGS="$xorg_testset_save_CFLAGS"
14752
14753                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14754                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14755 $as_echo "$supported" >&6; }
14756                 if test "$supported" = "yes" ; then
14757                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14758                         found="yes"
14759                 fi
14760         fi
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774 xorg_testset_save_CFLAGS="$CFLAGS"
14775
14776 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14777         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14779 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14780 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h.  */
14785 int i;
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788   xorg_cv_compiler_flag_unknown_warning_option=yes
14789 else
14790   xorg_cv_compiler_flag_unknown_warning_option=no
14791 fi
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14795 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14796         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14797         CFLAGS="$xorg_testset_save_CFLAGS"
14798 fi
14799
14800 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14801         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14802                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14803         fi
14804         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14806 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14807 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14808   $as_echo_n "(cached) " >&6
14809 else
14810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h.  */
14812 int i;
14813 _ACEOF
14814 if ac_fn_c_try_compile "$LINENO"; then :
14815   xorg_cv_compiler_flag_unused_command_line_argument=yes
14816 else
14817   xorg_cv_compiler_flag_unused_command_line_argument=no
14818 fi
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 fi
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14822 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14823         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14824         CFLAGS="$xorg_testset_save_CFLAGS"
14825 fi
14826
14827 found="no"
14828
14829         if test $found = "no" ; then
14830                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14831                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14832                 fi
14833
14834                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14835                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14836                 fi
14837
14838                 CFLAGS="$CFLAGS -Werror=write-strings"
14839
14840                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14841 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14842                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14843                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14844   $as_echo_n "(cached) " >&6
14845 else
14846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848 int i;
14849 int
14850 main ()
14851 {
14852
14853   ;
14854   return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14859 else
14860   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext \
14863     conftest$ac_exeext conftest.$ac_ext
14864 fi
14865
14866
14867                 CFLAGS="$xorg_testset_save_CFLAGS"
14868
14869                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14870                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14871 $as_echo "$supported" >&6; }
14872                 if test "$supported" = "yes" ; then
14873                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14874                         found="yes"
14875                 fi
14876         fi
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890 xorg_testset_save_CFLAGS="$CFLAGS"
14891
14892 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14893         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14895 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14896 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14897   $as_echo_n "(cached) " >&6
14898 else
14899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h.  */
14901 int i;
14902 _ACEOF
14903 if ac_fn_c_try_compile "$LINENO"; then :
14904   xorg_cv_compiler_flag_unknown_warning_option=yes
14905 else
14906   xorg_cv_compiler_flag_unknown_warning_option=no
14907 fi
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 fi
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14911 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14912         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14913         CFLAGS="$xorg_testset_save_CFLAGS"
14914 fi
14915
14916 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14917         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14918                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14919         fi
14920         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14922 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14923 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h.  */
14928 int i;
14929 _ACEOF
14930 if ac_fn_c_try_compile "$LINENO"; then :
14931   xorg_cv_compiler_flag_unused_command_line_argument=yes
14932 else
14933   xorg_cv_compiler_flag_unused_command_line_argument=no
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 fi
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14938 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14939         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14940         CFLAGS="$xorg_testset_save_CFLAGS"
14941 fi
14942
14943 found="no"
14944
14945         if test $found = "no" ; then
14946                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14947                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948                 fi
14949
14950                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14951                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952                 fi
14953
14954                 CFLAGS="$CFLAGS -Werror=address"
14955
14956                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14957 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14958                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14959                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14960   $as_echo_n "(cached) " >&6
14961 else
14962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h.  */
14964 int i;
14965 int
14966 main ()
14967 {
14968
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 if ac_fn_c_try_link "$LINENO"; then :
14974   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14975 else
14976   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext \
14979     conftest$ac_exeext conftest.$ac_ext
14980 fi
14981
14982
14983                 CFLAGS="$xorg_testset_save_CFLAGS"
14984
14985                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14987 $as_echo "$supported" >&6; }
14988                 if test "$supported" = "yes" ; then
14989                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
14990                         found="yes"
14991                 fi
14992         fi
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006 xorg_testset_save_CFLAGS="$CFLAGS"
15007
15008 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15009         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15011 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15012 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15013   $as_echo_n "(cached) " >&6
15014 else
15015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h.  */
15017 int i;
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020   xorg_cv_compiler_flag_unknown_warning_option=yes
15021 else
15022   xorg_cv_compiler_flag_unknown_warning_option=no
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025 fi
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15027 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15028         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15029         CFLAGS="$xorg_testset_save_CFLAGS"
15030 fi
15031
15032 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15033         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15034                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035         fi
15036         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15038 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15039 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15040   $as_echo_n "(cached) " >&6
15041 else
15042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044 int i;
15045 _ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047   xorg_cv_compiler_flag_unused_command_line_argument=yes
15048 else
15049   xorg_cv_compiler_flag_unused_command_line_argument=no
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15054 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15055         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15056         CFLAGS="$xorg_testset_save_CFLAGS"
15057 fi
15058
15059 found="no"
15060
15061         if test $found = "no" ; then
15062                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15063                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064                 fi
15065
15066                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15067                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068                 fi
15069
15070                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15071
15072                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15073 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15074                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15075                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h.  */
15080 int i;
15081 int
15082 main ()
15083 {
15084
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 if ac_fn_c_try_link "$LINENO"; then :
15090   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15091 else
15092   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext \
15095     conftest$ac_exeext conftest.$ac_ext
15096 fi
15097
15098
15099                 CFLAGS="$xorg_testset_save_CFLAGS"
15100
15101                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103 $as_echo "$supported" >&6; }
15104                 if test "$supported" = "yes" ; then
15105                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15106                         found="yes"
15107                 fi
15108         fi
15109
15110         if test $found = "no" ; then
15111                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15112                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113                 fi
15114
15115                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15116                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15117                 fi
15118
15119                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15120
15121                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15122 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15123                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15124                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15125   $as_echo_n "(cached) " >&6
15126 else
15127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h.  */
15129 int i;
15130 int
15131 main ()
15132 {
15133
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 if ac_fn_c_try_link "$LINENO"; then :
15139   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15140 else
15141   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15142 fi
15143 rm -f core conftest.err conftest.$ac_objext \
15144     conftest$ac_exeext conftest.$ac_ext
15145 fi
15146
15147
15148                 CFLAGS="$xorg_testset_save_CFLAGS"
15149
15150                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15151                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15152 $as_echo "$supported" >&6; }
15153                 if test "$supported" = "yes" ; then
15154                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15155                         found="yes"
15156                 fi
15157         fi
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171 xorg_testset_save_CFLAGS="$CFLAGS"
15172
15173 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15174         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15176 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15177 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15178   $as_echo_n "(cached) " >&6
15179 else
15180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h.  */
15182 int i;
15183 _ACEOF
15184 if ac_fn_c_try_compile "$LINENO"; then :
15185   xorg_cv_compiler_flag_unknown_warning_option=yes
15186 else
15187   xorg_cv_compiler_flag_unknown_warning_option=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15192 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15193         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15194         CFLAGS="$xorg_testset_save_CFLAGS"
15195 fi
15196
15197 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15198         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15199                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200         fi
15201         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15203 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15204 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15205   $as_echo_n "(cached) " >&6
15206 else
15207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h.  */
15209 int i;
15210 _ACEOF
15211 if ac_fn_c_try_compile "$LINENO"; then :
15212   xorg_cv_compiler_flag_unused_command_line_argument=yes
15213 else
15214   xorg_cv_compiler_flag_unused_command_line_argument=no
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15219 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15220         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15221         CFLAGS="$xorg_testset_save_CFLAGS"
15222 fi
15223
15224 found="no"
15225
15226         if test $found = "no" ; then
15227                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15228                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229                 fi
15230
15231                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15232                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233                 fi
15234
15235                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15236
15237                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15238 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15239                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15240                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15241   $as_echo_n "(cached) " >&6
15242 else
15243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h.  */
15245 int i;
15246 int
15247 main ()
15248 {
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 if ac_fn_c_try_link "$LINENO"; then :
15255   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15256 else
15257   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext \
15260     conftest$ac_exeext conftest.$ac_ext
15261 fi
15262
15263
15264                 CFLAGS="$xorg_testset_save_CFLAGS"
15265
15266                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15267                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15268 $as_echo "$supported" >&6; }
15269                 if test "$supported" = "yes" ; then
15270                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15271                         found="yes"
15272                 fi
15273         fi
15274
15275  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15276 else
15277 { $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
15278 $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;}
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290 xorg_testset_save_CFLAGS="$CFLAGS"
15291
15292 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15293         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15295 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15296 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15297   $as_echo_n "(cached) " >&6
15298 else
15299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h.  */
15301 int i;
15302 _ACEOF
15303 if ac_fn_c_try_compile "$LINENO"; then :
15304   xorg_cv_compiler_flag_unknown_warning_option=yes
15305 else
15306   xorg_cv_compiler_flag_unknown_warning_option=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309 fi
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15311 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15312         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15313         CFLAGS="$xorg_testset_save_CFLAGS"
15314 fi
15315
15316 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15317         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15318                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15319         fi
15320         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15322 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15323 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h.  */
15328 int i;
15329 _ACEOF
15330 if ac_fn_c_try_compile "$LINENO"; then :
15331   xorg_cv_compiler_flag_unused_command_line_argument=yes
15332 else
15333   xorg_cv_compiler_flag_unused_command_line_argument=no
15334 fi
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 fi
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15338 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15339         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15340         CFLAGS="$xorg_testset_save_CFLAGS"
15341 fi
15342
15343 found="no"
15344
15345         if test $found = "no" ; then
15346                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15347                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15348                 fi
15349
15350                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15351                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15352                 fi
15353
15354                 CFLAGS="$CFLAGS -Wimplicit"
15355
15356                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15357 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15358                 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15359                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h.  */
15364 int i;
15365 int
15366 main ()
15367 {
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_link "$LINENO"; then :
15374   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15375 else
15376   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext \
15379     conftest$ac_exeext conftest.$ac_ext
15380 fi
15381
15382
15383                 CFLAGS="$xorg_testset_save_CFLAGS"
15384
15385                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15386                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15387 $as_echo "$supported" >&6; }
15388                 if test "$supported" = "yes" ; then
15389                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15390                         found="yes"
15391                 fi
15392         fi
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406 xorg_testset_save_CFLAGS="$CFLAGS"
15407
15408 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15409         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15411 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15412 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15413   $as_echo_n "(cached) " >&6
15414 else
15415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h.  */
15417 int i;
15418 _ACEOF
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420   xorg_cv_compiler_flag_unknown_warning_option=yes
15421 else
15422   xorg_cv_compiler_flag_unknown_warning_option=no
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425 fi
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15427 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15428         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15429         CFLAGS="$xorg_testset_save_CFLAGS"
15430 fi
15431
15432 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15433         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15434                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435         fi
15436         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15438 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15439 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15440   $as_echo_n "(cached) " >&6
15441 else
15442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h.  */
15444 int i;
15445 _ACEOF
15446 if ac_fn_c_try_compile "$LINENO"; then :
15447   xorg_cv_compiler_flag_unused_command_line_argument=yes
15448 else
15449   xorg_cv_compiler_flag_unused_command_line_argument=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15454 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15455         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15456         CFLAGS="$xorg_testset_save_CFLAGS"
15457 fi
15458
15459 found="no"
15460
15461         if test $found = "no" ; then
15462                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15463                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15464                 fi
15465
15466                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15467                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15468                 fi
15469
15470                 CFLAGS="$CFLAGS -Wnonnull"
15471
15472                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15473 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15474                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15475                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15476   $as_echo_n "(cached) " >&6
15477 else
15478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h.  */
15480 int i;
15481 int
15482 main ()
15483 {
15484
15485   ;
15486   return 0;
15487 }
15488 _ACEOF
15489 if ac_fn_c_try_link "$LINENO"; then :
15490   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15491 else
15492   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext \
15495     conftest$ac_exeext conftest.$ac_ext
15496 fi
15497
15498
15499                 CFLAGS="$xorg_testset_save_CFLAGS"
15500
15501                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15502                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503 $as_echo "$supported" >&6; }
15504                 if test "$supported" = "yes" ; then
15505                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15506                         found="yes"
15507                 fi
15508         fi
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522 xorg_testset_save_CFLAGS="$CFLAGS"
15523
15524 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15525         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15527 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15528 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15529   $as_echo_n "(cached) " >&6
15530 else
15531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h.  */
15533 int i;
15534 _ACEOF
15535 if ac_fn_c_try_compile "$LINENO"; then :
15536   xorg_cv_compiler_flag_unknown_warning_option=yes
15537 else
15538   xorg_cv_compiler_flag_unknown_warning_option=no
15539 fi
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 fi
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15543 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15544         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15545         CFLAGS="$xorg_testset_save_CFLAGS"
15546 fi
15547
15548 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15549         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15550                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15551         fi
15552         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15553         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15554 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15555 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h.  */
15560 int i;
15561 _ACEOF
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563   xorg_cv_compiler_flag_unused_command_line_argument=yes
15564 else
15565   xorg_cv_compiler_flag_unused_command_line_argument=no
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15570 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15571         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15572         CFLAGS="$xorg_testset_save_CFLAGS"
15573 fi
15574
15575 found="no"
15576
15577         if test $found = "no" ; then
15578                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15579                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15580                 fi
15581
15582                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15583                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15584                 fi
15585
15586                 CFLAGS="$CFLAGS -Winit-self"
15587
15588                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15589 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15590                 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15591                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15592   $as_echo_n "(cached) " >&6
15593 else
15594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h.  */
15596 int i;
15597 int
15598 main ()
15599 {
15600
15601   ;
15602   return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15607 else
15608   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext \
15611     conftest$ac_exeext conftest.$ac_ext
15612 fi
15613
15614
15615                 CFLAGS="$xorg_testset_save_CFLAGS"
15616
15617                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15618                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619 $as_echo "$supported" >&6; }
15620                 if test "$supported" = "yes" ; then
15621                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15622                         found="yes"
15623                 fi
15624         fi
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638 xorg_testset_save_CFLAGS="$CFLAGS"
15639
15640 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15641         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15643 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15644 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15645   $as_echo_n "(cached) " >&6
15646 else
15647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h.  */
15649 int i;
15650 _ACEOF
15651 if ac_fn_c_try_compile "$LINENO"; then :
15652   xorg_cv_compiler_flag_unknown_warning_option=yes
15653 else
15654   xorg_cv_compiler_flag_unknown_warning_option=no
15655 fi
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15659 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15660         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15661         CFLAGS="$xorg_testset_save_CFLAGS"
15662 fi
15663
15664 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15665         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15666                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15667         fi
15668         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15670 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15671 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15672   $as_echo_n "(cached) " >&6
15673 else
15674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h.  */
15676 int i;
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"; then :
15679   xorg_cv_compiler_flag_unused_command_line_argument=yes
15680 else
15681   xorg_cv_compiler_flag_unused_command_line_argument=no
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15686 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15687         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15688         CFLAGS="$xorg_testset_save_CFLAGS"
15689 fi
15690
15691 found="no"
15692
15693         if test $found = "no" ; then
15694                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15695                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15696                 fi
15697
15698                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15699                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15700                 fi
15701
15702                 CFLAGS="$CFLAGS -Wmain"
15703
15704                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15705 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15706                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15707                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15708   $as_echo_n "(cached) " >&6
15709 else
15710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h.  */
15712 int i;
15713 int
15714 main ()
15715 {
15716
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 if ac_fn_c_try_link "$LINENO"; then :
15722   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15723 else
15724   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext \
15727     conftest$ac_exeext conftest.$ac_ext
15728 fi
15729
15730
15731                 CFLAGS="$xorg_testset_save_CFLAGS"
15732
15733                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15734                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735 $as_echo "$supported" >&6; }
15736                 if test "$supported" = "yes" ; then
15737                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15738                         found="yes"
15739                 fi
15740         fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754 xorg_testset_save_CFLAGS="$CFLAGS"
15755
15756 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15757         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15759 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15760 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h.  */
15765 int i;
15766 _ACEOF
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768   xorg_cv_compiler_flag_unknown_warning_option=yes
15769 else
15770   xorg_cv_compiler_flag_unknown_warning_option=no
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15775 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15776         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15777         CFLAGS="$xorg_testset_save_CFLAGS"
15778 fi
15779
15780 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15781         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15782                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783         fi
15784         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15786 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15787 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15788   $as_echo_n "(cached) " >&6
15789 else
15790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h.  */
15792 int i;
15793 _ACEOF
15794 if ac_fn_c_try_compile "$LINENO"; then :
15795   xorg_cv_compiler_flag_unused_command_line_argument=yes
15796 else
15797   xorg_cv_compiler_flag_unused_command_line_argument=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15802 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15803         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15804         CFLAGS="$xorg_testset_save_CFLAGS"
15805 fi
15806
15807 found="no"
15808
15809         if test $found = "no" ; then
15810                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15811                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15812                 fi
15813
15814                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15815                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15816                 fi
15817
15818                 CFLAGS="$CFLAGS -Wmissing-braces"
15819
15820                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15821 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15822                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15823                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15824   $as_echo_n "(cached) " >&6
15825 else
15826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h.  */
15828 int i;
15829 int
15830 main ()
15831 {
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"; then :
15838   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15839 else
15840   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext \
15843     conftest$ac_exeext conftest.$ac_ext
15844 fi
15845
15846
15847                 CFLAGS="$xorg_testset_save_CFLAGS"
15848
15849                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15850                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15851 $as_echo "$supported" >&6; }
15852                 if test "$supported" = "yes" ; then
15853                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15854                         found="yes"
15855                 fi
15856         fi
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870 xorg_testset_save_CFLAGS="$CFLAGS"
15871
15872 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15873         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15875 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15876 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15877   $as_echo_n "(cached) " >&6
15878 else
15879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h.  */
15881 int i;
15882 _ACEOF
15883 if ac_fn_c_try_compile "$LINENO"; then :
15884   xorg_cv_compiler_flag_unknown_warning_option=yes
15885 else
15886   xorg_cv_compiler_flag_unknown_warning_option=no
15887 fi
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15891 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15892         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15893         CFLAGS="$xorg_testset_save_CFLAGS"
15894 fi
15895
15896 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15897         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15898                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899         fi
15900         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15902 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15903 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15904   $as_echo_n "(cached) " >&6
15905 else
15906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h.  */
15908 int i;
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911   xorg_cv_compiler_flag_unused_command_line_argument=yes
15912 else
15913   xorg_cv_compiler_flag_unused_command_line_argument=no
15914 fi
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15918 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15919         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15920         CFLAGS="$xorg_testset_save_CFLAGS"
15921 fi
15922
15923 found="no"
15924
15925         if test $found = "no" ; then
15926                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15927                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928                 fi
15929
15930                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15931                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15932                 fi
15933
15934                 CFLAGS="$CFLAGS -Wsequence-point"
15935
15936                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15937 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15938                 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15939                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h.  */
15944 int i;
15945 int
15946 main ()
15947 {
15948
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 if ac_fn_c_try_link "$LINENO"; then :
15954   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15955 else
15956   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959     conftest$ac_exeext conftest.$ac_ext
15960 fi
15961
15962
15963                 CFLAGS="$xorg_testset_save_CFLAGS"
15964
15965                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15966                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15967 $as_echo "$supported" >&6; }
15968                 if test "$supported" = "yes" ; then
15969                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15970                         found="yes"
15971                 fi
15972         fi
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986 xorg_testset_save_CFLAGS="$CFLAGS"
15987
15988 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15989         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15991 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15992 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15993   $as_echo_n "(cached) " >&6
15994 else
15995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h.  */
15997 int i;
15998 _ACEOF
15999 if ac_fn_c_try_compile "$LINENO"; then :
16000   xorg_cv_compiler_flag_unknown_warning_option=yes
16001 else
16002   xorg_cv_compiler_flag_unknown_warning_option=no
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16007 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16008         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16009         CFLAGS="$xorg_testset_save_CFLAGS"
16010 fi
16011
16012 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16013         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16014                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015         fi
16016         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16018 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16019 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16020   $as_echo_n "(cached) " >&6
16021 else
16022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h.  */
16024 int i;
16025 _ACEOF
16026 if ac_fn_c_try_compile "$LINENO"; then :
16027   xorg_cv_compiler_flag_unused_command_line_argument=yes
16028 else
16029   xorg_cv_compiler_flag_unused_command_line_argument=no
16030 fi
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16034 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16035         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16036         CFLAGS="$xorg_testset_save_CFLAGS"
16037 fi
16038
16039 found="no"
16040
16041         if test $found = "no" ; then
16042                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16043                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044                 fi
16045
16046                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16047                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16048                 fi
16049
16050                 CFLAGS="$CFLAGS -Wreturn-type"
16051
16052                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16053 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16054                 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16055                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16056   $as_echo_n "(cached) " >&6
16057 else
16058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h.  */
16060 int i;
16061 int
16062 main ()
16063 {
16064
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 if ac_fn_c_try_link "$LINENO"; then :
16070   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16071 else
16072   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext \
16075     conftest$ac_exeext conftest.$ac_ext
16076 fi
16077
16078
16079                 CFLAGS="$xorg_testset_save_CFLAGS"
16080
16081                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16082                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16083 $as_echo "$supported" >&6; }
16084                 if test "$supported" = "yes" ; then
16085                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16086                         found="yes"
16087                 fi
16088         fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102 xorg_testset_save_CFLAGS="$CFLAGS"
16103
16104 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16105         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16107 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16108 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16109   $as_echo_n "(cached) " >&6
16110 else
16111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h.  */
16113 int i;
16114 _ACEOF
16115 if ac_fn_c_try_compile "$LINENO"; then :
16116   xorg_cv_compiler_flag_unknown_warning_option=yes
16117 else
16118   xorg_cv_compiler_flag_unknown_warning_option=no
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 fi
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16123 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16124         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16125         CFLAGS="$xorg_testset_save_CFLAGS"
16126 fi
16127
16128 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16129         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16130                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16131         fi
16132         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16134 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16135 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16136   $as_echo_n "(cached) " >&6
16137 else
16138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h.  */
16140 int i;
16141 _ACEOF
16142 if ac_fn_c_try_compile "$LINENO"; then :
16143   xorg_cv_compiler_flag_unused_command_line_argument=yes
16144 else
16145   xorg_cv_compiler_flag_unused_command_line_argument=no
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 fi
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16150 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16151         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16152         CFLAGS="$xorg_testset_save_CFLAGS"
16153 fi
16154
16155 found="no"
16156
16157         if test $found = "no" ; then
16158                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16159                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16160                 fi
16161
16162                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16163                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16164                 fi
16165
16166                 CFLAGS="$CFLAGS -Wtrigraphs"
16167
16168                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16169 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16170                 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16171                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16172   $as_echo_n "(cached) " >&6
16173 else
16174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176 int i;
16177 int
16178 main ()
16179 {
16180
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 if ac_fn_c_try_link "$LINENO"; then :
16186   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16187 else
16188   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16189 fi
16190 rm -f core conftest.err conftest.$ac_objext \
16191     conftest$ac_exeext conftest.$ac_ext
16192 fi
16193
16194
16195                 CFLAGS="$xorg_testset_save_CFLAGS"
16196
16197                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16198                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16199 $as_echo "$supported" >&6; }
16200                 if test "$supported" = "yes" ; then
16201                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16202                         found="yes"
16203                 fi
16204         fi
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218 xorg_testset_save_CFLAGS="$CFLAGS"
16219
16220 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16221         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16223 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16224 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16225   $as_echo_n "(cached) " >&6
16226 else
16227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h.  */
16229 int i;
16230 _ACEOF
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232   xorg_cv_compiler_flag_unknown_warning_option=yes
16233 else
16234   xorg_cv_compiler_flag_unknown_warning_option=no
16235 fi
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 fi
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16239 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16240         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16241         CFLAGS="$xorg_testset_save_CFLAGS"
16242 fi
16243
16244 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16245         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16246                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16247         fi
16248         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16250 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16251 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16252   $as_echo_n "(cached) " >&6
16253 else
16254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h.  */
16256 int i;
16257 _ACEOF
16258 if ac_fn_c_try_compile "$LINENO"; then :
16259   xorg_cv_compiler_flag_unused_command_line_argument=yes
16260 else
16261   xorg_cv_compiler_flag_unused_command_line_argument=no
16262 fi
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 fi
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16266 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16267         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16268         CFLAGS="$xorg_testset_save_CFLAGS"
16269 fi
16270
16271 found="no"
16272
16273         if test $found = "no" ; then
16274                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16275                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276                 fi
16277
16278                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16279                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16280                 fi
16281
16282                 CFLAGS="$CFLAGS -Warray-bounds"
16283
16284                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16285 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16286                 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16287                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16288   $as_echo_n "(cached) " >&6
16289 else
16290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h.  */
16292 int i;
16293 int
16294 main ()
16295 {
16296
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 if ac_fn_c_try_link "$LINENO"; then :
16302   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16303 else
16304   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16305 fi
16306 rm -f core conftest.err conftest.$ac_objext \
16307     conftest$ac_exeext conftest.$ac_ext
16308 fi
16309
16310
16311                 CFLAGS="$xorg_testset_save_CFLAGS"
16312
16313                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16314                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16315 $as_echo "$supported" >&6; }
16316                 if test "$supported" = "yes" ; then
16317                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16318                         found="yes"
16319                 fi
16320         fi
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334 xorg_testset_save_CFLAGS="$CFLAGS"
16335
16336 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16337         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16339 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16340 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16341   $as_echo_n "(cached) " >&6
16342 else
16343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h.  */
16345 int i;
16346 _ACEOF
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348   xorg_cv_compiler_flag_unknown_warning_option=yes
16349 else
16350   xorg_cv_compiler_flag_unknown_warning_option=no
16351 fi
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16355 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16356         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16357         CFLAGS="$xorg_testset_save_CFLAGS"
16358 fi
16359
16360 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16361         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16362                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363         fi
16364         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16366 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16367 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16368   $as_echo_n "(cached) " >&6
16369 else
16370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h.  */
16372 int i;
16373 _ACEOF
16374 if ac_fn_c_try_compile "$LINENO"; then :
16375   xorg_cv_compiler_flag_unused_command_line_argument=yes
16376 else
16377   xorg_cv_compiler_flag_unused_command_line_argument=no
16378 fi
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380 fi
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16382 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16383         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16384         CFLAGS="$xorg_testset_save_CFLAGS"
16385 fi
16386
16387 found="no"
16388
16389         if test $found = "no" ; then
16390                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16391                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16392                 fi
16393
16394                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16395                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396                 fi
16397
16398                 CFLAGS="$CFLAGS -Wwrite-strings"
16399
16400                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16401 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16402                 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16403                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16404   $as_echo_n "(cached) " >&6
16405 else
16406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h.  */
16408 int i;
16409 int
16410 main ()
16411 {
16412
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 if ac_fn_c_try_link "$LINENO"; then :
16418   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16419 else
16420   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16421 fi
16422 rm -f core conftest.err conftest.$ac_objext \
16423     conftest$ac_exeext conftest.$ac_ext
16424 fi
16425
16426
16427                 CFLAGS="$xorg_testset_save_CFLAGS"
16428
16429                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16430                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16431 $as_echo "$supported" >&6; }
16432                 if test "$supported" = "yes" ; then
16433                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16434                         found="yes"
16435                 fi
16436         fi
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450 xorg_testset_save_CFLAGS="$CFLAGS"
16451
16452 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16453         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16455 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16456 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16457   $as_echo_n "(cached) " >&6
16458 else
16459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h.  */
16461 int i;
16462 _ACEOF
16463 if ac_fn_c_try_compile "$LINENO"; then :
16464   xorg_cv_compiler_flag_unknown_warning_option=yes
16465 else
16466   xorg_cv_compiler_flag_unknown_warning_option=no
16467 fi
16468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16471 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16472         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16473         CFLAGS="$xorg_testset_save_CFLAGS"
16474 fi
16475
16476 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16477         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16478                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479         fi
16480         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16482 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16483 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16484   $as_echo_n "(cached) " >&6
16485 else
16486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h.  */
16488 int i;
16489 _ACEOF
16490 if ac_fn_c_try_compile "$LINENO"; then :
16491   xorg_cv_compiler_flag_unused_command_line_argument=yes
16492 else
16493   xorg_cv_compiler_flag_unused_command_line_argument=no
16494 fi
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16498 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16499         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16500         CFLAGS="$xorg_testset_save_CFLAGS"
16501 fi
16502
16503 found="no"
16504
16505         if test $found = "no" ; then
16506                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16507                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16508                 fi
16509
16510                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16511                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16512                 fi
16513
16514                 CFLAGS="$CFLAGS -Waddress"
16515
16516                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16517 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16518                 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16519                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16520   $as_echo_n "(cached) " >&6
16521 else
16522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h.  */
16524 int i;
16525 int
16526 main ()
16527 {
16528
16529   ;
16530   return 0;
16531 }
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16534   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16535 else
16536   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext \
16539     conftest$ac_exeext conftest.$ac_ext
16540 fi
16541
16542
16543                 CFLAGS="$xorg_testset_save_CFLAGS"
16544
16545                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16546                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16547 $as_echo "$supported" >&6; }
16548                 if test "$supported" = "yes" ; then
16549                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16550                         found="yes"
16551                 fi
16552         fi
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566 xorg_testset_save_CFLAGS="$CFLAGS"
16567
16568 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16569         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16571 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16572 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16573   $as_echo_n "(cached) " >&6
16574 else
16575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577 int i;
16578 _ACEOF
16579 if ac_fn_c_try_compile "$LINENO"; then :
16580   xorg_cv_compiler_flag_unknown_warning_option=yes
16581 else
16582   xorg_cv_compiler_flag_unknown_warning_option=no
16583 fi
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16587 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16588         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16589         CFLAGS="$xorg_testset_save_CFLAGS"
16590 fi
16591
16592 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16593         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16594                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595         fi
16596         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16597         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16598 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16599 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16600   $as_echo_n "(cached) " >&6
16601 else
16602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604 int i;
16605 _ACEOF
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607   xorg_cv_compiler_flag_unused_command_line_argument=yes
16608 else
16609   xorg_cv_compiler_flag_unused_command_line_argument=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16614 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16615         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16616         CFLAGS="$xorg_testset_save_CFLAGS"
16617 fi
16618
16619 found="no"
16620
16621         if test $found = "no" ; then
16622                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16623                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16624                 fi
16625
16626                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16627                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16628                 fi
16629
16630                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16631
16632                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16633 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16634                 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16635                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h.  */
16640 int i;
16641 int
16642 main ()
16643 {
16644
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 if ac_fn_c_try_link "$LINENO"; then :
16650   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16651 else
16652   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16653 fi
16654 rm -f core conftest.err conftest.$ac_objext \
16655     conftest$ac_exeext conftest.$ac_ext
16656 fi
16657
16658
16659                 CFLAGS="$xorg_testset_save_CFLAGS"
16660
16661                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16662                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16663 $as_echo "$supported" >&6; }
16664                 if test "$supported" = "yes" ; then
16665                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16666                         found="yes"
16667                 fi
16668         fi
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682 xorg_testset_save_CFLAGS="$CFLAGS"
16683
16684 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16685         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16687 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16688 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16689   $as_echo_n "(cached) " >&6
16690 else
16691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h.  */
16693 int i;
16694 _ACEOF
16695 if ac_fn_c_try_compile "$LINENO"; then :
16696   xorg_cv_compiler_flag_unknown_warning_option=yes
16697 else
16698   xorg_cv_compiler_flag_unknown_warning_option=no
16699 fi
16700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 fi
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16703 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16704         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16705         CFLAGS="$xorg_testset_save_CFLAGS"
16706 fi
16707
16708 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16709         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16710                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711         fi
16712         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16714 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16715 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16716   $as_echo_n "(cached) " >&6
16717 else
16718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h.  */
16720 int i;
16721 _ACEOF
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723   xorg_cv_compiler_flag_unused_command_line_argument=yes
16724 else
16725   xorg_cv_compiler_flag_unused_command_line_argument=no
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16730 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16731         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16732         CFLAGS="$xorg_testset_save_CFLAGS"
16733 fi
16734
16735 found="no"
16736
16737         if test $found = "no" ; then
16738                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16739                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740                 fi
16741
16742                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16743                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16744                 fi
16745
16746                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16747
16748                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16749 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16750                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16751                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16752   $as_echo_n "(cached) " >&6
16753 else
16754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h.  */
16756 int i;
16757 int
16758 main ()
16759 {
16760
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 if ac_fn_c_try_link "$LINENO"; then :
16766   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16767 else
16768   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16769 fi
16770 rm -f core conftest.err conftest.$ac_objext \
16771     conftest$ac_exeext conftest.$ac_ext
16772 fi
16773
16774
16775                 CFLAGS="$xorg_testset_save_CFLAGS"
16776
16777                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16778                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16779 $as_echo "$supported" >&6; }
16780                 if test "$supported" = "yes" ; then
16781                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16782                         found="yes"
16783                 fi
16784         fi
16785
16786
16787 fi
16788
16789
16790
16791
16792
16793
16794
16795                 CWARNFLAGS="$BASE_CFLAGS"
16796                 if  test "x$GCC" = xyes ; then
16797                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16798                 fi
16799
16800
16801
16802
16803
16804
16805
16806
16807 # Check whether --enable-strict-compilation was given.
16808 if test "${enable_strict_compilation+set}" = set; then :
16809   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16810 else
16811   STRICT_COMPILE=no
16812 fi
16813
16814
16815
16816
16817
16818
16819 STRICT_CFLAGS=""
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831 xorg_testset_save_CFLAGS="$CFLAGS"
16832
16833 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16834         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16836 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16837 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16838   $as_echo_n "(cached) " >&6
16839 else
16840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h.  */
16842 int i;
16843 _ACEOF
16844 if ac_fn_c_try_compile "$LINENO"; then :
16845   xorg_cv_compiler_flag_unknown_warning_option=yes
16846 else
16847   xorg_cv_compiler_flag_unknown_warning_option=no
16848 fi
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16852 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16853         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16854         CFLAGS="$xorg_testset_save_CFLAGS"
16855 fi
16856
16857 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16858         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16859                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16860         fi
16861         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16863 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16864 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16865   $as_echo_n "(cached) " >&6
16866 else
16867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h.  */
16869 int i;
16870 _ACEOF
16871 if ac_fn_c_try_compile "$LINENO"; then :
16872   xorg_cv_compiler_flag_unused_command_line_argument=yes
16873 else
16874   xorg_cv_compiler_flag_unused_command_line_argument=no
16875 fi
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16879 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16880         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16881         CFLAGS="$xorg_testset_save_CFLAGS"
16882 fi
16883
16884 found="no"
16885
16886         if test $found = "no" ; then
16887                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16888                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889                 fi
16890
16891                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16892                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16893                 fi
16894
16895                 CFLAGS="$CFLAGS -pedantic"
16896
16897                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16898 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16899                 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16900                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16901   $as_echo_n "(cached) " >&6
16902 else
16903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905 int i;
16906 int
16907 main ()
16908 {
16909
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 if ac_fn_c_try_link "$LINENO"; then :
16915   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16916 else
16917   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16918 fi
16919 rm -f core conftest.err conftest.$ac_objext \
16920     conftest$ac_exeext conftest.$ac_ext
16921 fi
16922
16923
16924                 CFLAGS="$xorg_testset_save_CFLAGS"
16925
16926                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16927                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16928 $as_echo "$supported" >&6; }
16929                 if test "$supported" = "yes" ; then
16930                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16931                         found="yes"
16932                 fi
16933         fi
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947 xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16950         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16952 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16953 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16954   $as_echo_n "(cached) " >&6
16955 else
16956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h.  */
16958 int i;
16959 _ACEOF
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961   xorg_cv_compiler_flag_unknown_warning_option=yes
16962 else
16963   xorg_cv_compiler_flag_unknown_warning_option=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16968 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16969         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16970         CFLAGS="$xorg_testset_save_CFLAGS"
16971 fi
16972
16973 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16974         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16975                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976         fi
16977         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16979 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16980 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16981   $as_echo_n "(cached) " >&6
16982 else
16983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h.  */
16985 int i;
16986 _ACEOF
16987 if ac_fn_c_try_compile "$LINENO"; then :
16988   xorg_cv_compiler_flag_unused_command_line_argument=yes
16989 else
16990   xorg_cv_compiler_flag_unused_command_line_argument=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16995 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16996         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16997         CFLAGS="$xorg_testset_save_CFLAGS"
16998 fi
16999
17000 found="no"
17001
17002         if test $found = "no" ; then
17003                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17004                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005                 fi
17006
17007                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17008                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009                 fi
17010
17011                 CFLAGS="$CFLAGS -Werror"
17012
17013                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17014 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17015                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17016                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17017   $as_echo_n "(cached) " >&6
17018 else
17019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021 int i;
17022 int
17023 main ()
17024 {
17025
17026   ;
17027   return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_link "$LINENO"; then :
17031   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17032 else
17033   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext \
17036     conftest$ac_exeext conftest.$ac_ext
17037 fi
17038
17039
17040                 CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17043                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044 $as_echo "$supported" >&6; }
17045                 if test "$supported" = "yes" ; then
17046                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17047                         found="yes"
17048                 fi
17049         fi
17050
17051         if test $found = "no" ; then
17052                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17053                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17054                 fi
17055
17056                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17057                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17058                 fi
17059
17060                 CFLAGS="$CFLAGS -errwarn"
17061
17062                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17063 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17064                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17065                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17066   $as_echo_n "(cached) " >&6
17067 else
17068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h.  */
17070 int i;
17071 int
17072 main ()
17073 {
17074
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 if ac_fn_c_try_link "$LINENO"; then :
17080   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17081 else
17082   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext \
17085     conftest$ac_exeext conftest.$ac_ext
17086 fi
17087
17088
17089                 CFLAGS="$xorg_testset_save_CFLAGS"
17090
17091                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17092                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17093 $as_echo "$supported" >&6; }
17094                 if test "$supported" = "yes" ; then
17095                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17096                         found="yes"
17097                 fi
17098         fi
17099
17100
17101
17102 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17103 # activate it with -Werror, so we add it here explicitly.
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115 xorg_testset_save_CFLAGS="$CFLAGS"
17116
17117 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17118         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17120 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17121 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17122   $as_echo_n "(cached) " >&6
17123 else
17124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h.  */
17126 int i;
17127 _ACEOF
17128 if ac_fn_c_try_compile "$LINENO"; then :
17129   xorg_cv_compiler_flag_unknown_warning_option=yes
17130 else
17131   xorg_cv_compiler_flag_unknown_warning_option=no
17132 fi
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 fi
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17136 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17137         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17138         CFLAGS="$xorg_testset_save_CFLAGS"
17139 fi
17140
17141 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17142         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17143                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17144         fi
17145         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17146         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17147 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17148 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17149   $as_echo_n "(cached) " >&6
17150 else
17151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h.  */
17153 int i;
17154 _ACEOF
17155 if ac_fn_c_try_compile "$LINENO"; then :
17156   xorg_cv_compiler_flag_unused_command_line_argument=yes
17157 else
17158   xorg_cv_compiler_flag_unused_command_line_argument=no
17159 fi
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 fi
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17163 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17164         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17165         CFLAGS="$xorg_testset_save_CFLAGS"
17166 fi
17167
17168 found="no"
17169
17170         if test $found = "no" ; then
17171                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17172                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173                 fi
17174
17175                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17176                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17177                 fi
17178
17179                 CFLAGS="$CFLAGS -Werror=attributes"
17180
17181                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17182 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17183                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17184                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17185   $as_echo_n "(cached) " >&6
17186 else
17187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h.  */
17189 int i;
17190 int
17191 main ()
17192 {
17193
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 if ac_fn_c_try_link "$LINENO"; then :
17199   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17200 else
17201   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17202 fi
17203 rm -f core conftest.err conftest.$ac_objext \
17204     conftest$ac_exeext conftest.$ac_ext
17205 fi
17206
17207
17208                 CFLAGS="$xorg_testset_save_CFLAGS"
17209
17210                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17211                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17212 $as_echo "$supported" >&6; }
17213                 if test "$supported" = "yes" ; then
17214                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17215                         found="yes"
17216                 fi
17217         fi
17218
17219
17220
17221 if test "x$STRICT_COMPILE" = "xyes"; then
17222     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17223     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17224 fi
17225
17226
17227
17228
17229
17230
17231 cat >>confdefs.h <<_ACEOF
17232 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17233 _ACEOF
17234
17235         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17236         if test "x$PVM" = "x"; then
17237                 PVM="0"
17238         fi
17239
17240 cat >>confdefs.h <<_ACEOF
17241 #define PACKAGE_VERSION_MINOR $PVM
17242 _ACEOF
17243
17244         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17245         if test "x$PVP" = "x"; then
17246                 PVP="0"
17247         fi
17248
17249 cat >>confdefs.h <<_ACEOF
17250 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17251 _ACEOF
17252
17253
17254
17255 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17256 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17257 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17258 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17259
17260
17261
17262
17263 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17264 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17265 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17266 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17267 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17268
17269
17270
17271
17272
17273
17274 if test x$APP_MAN_SUFFIX = x    ; then
17275     APP_MAN_SUFFIX=1
17276 fi
17277 if test x$APP_MAN_DIR = x    ; then
17278     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17279 fi
17280
17281 if test x$LIB_MAN_SUFFIX = x    ; then
17282     LIB_MAN_SUFFIX=3
17283 fi
17284 if test x$LIB_MAN_DIR = x    ; then
17285     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17286 fi
17287
17288 if test x$FILE_MAN_SUFFIX = x    ; then
17289     case $host_os in
17290         solaris*)       FILE_MAN_SUFFIX=4  ;;
17291         *)              FILE_MAN_SUFFIX=5  ;;
17292     esac
17293 fi
17294 if test x$FILE_MAN_DIR = x    ; then
17295     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17296 fi
17297
17298 if test x$MISC_MAN_SUFFIX = x    ; then
17299     case $host_os in
17300         solaris*)       MISC_MAN_SUFFIX=5  ;;
17301         *)              MISC_MAN_SUFFIX=7  ;;
17302     esac
17303 fi
17304 if test x$MISC_MAN_DIR = x    ; then
17305     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17306 fi
17307
17308 if test x$DRIVER_MAN_SUFFIX = x    ; then
17309     case $host_os in
17310         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17311         *)              DRIVER_MAN_SUFFIX=4  ;;
17312     esac
17313 fi
17314 if test x$DRIVER_MAN_DIR = x    ; then
17315     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17316 fi
17317
17318 if test x$ADMIN_MAN_SUFFIX = x    ; then
17319     case $host_os in
17320         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17321         *)              ADMIN_MAN_SUFFIX=8  ;;
17322     esac
17323 fi
17324 if test x$ADMIN_MAN_DIR = x    ; then
17325     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17326 fi
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342 XORG_MAN_PAGE="X Version 11"
17343
17344 MAN_SUBSTS="\
17345         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17346         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17347         -e 's|__xservername__|Xorg|g' \
17348         -e 's|__xconfigfile__|xorg.conf|g' \
17349         -e 's|__projectroot__|\$(prefix)|g' \
17350         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17351         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17352         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17353         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17354         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17355         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17356         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17357
17358
17359
17360 # Check whether --enable-silent-rules was given.
17361 if test "${enable_silent_rules+set}" = set; then :
17362   enableval=$enable_silent_rules;
17363 fi
17364
17365 case $enable_silent_rules in
17366 yes) AM_DEFAULT_VERBOSITY=0;;
17367 no)  AM_DEFAULT_VERBOSITY=1;;
17368 *)   AM_DEFAULT_VERBOSITY=0;;
17369 esac
17370 AM_BACKSLASH='\'
17371
17372
17373
17374 # Check whether --enable-malloc0returnsnull was given.
17375 if test "${enable_malloc0returnsnull+set}" = set; then :
17376   enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17377 else
17378   MALLOC_ZERO_RETURNS_NULL=auto
17379 fi
17380
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17383 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17384 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17385         if test "$cross_compiling" = yes; then :
17386   MALLOC_ZERO_RETURNS_NULL=yes
17387 else
17388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h.  */
17390
17391 #include <stdlib.h>
17392
17393 int
17394 main ()
17395 {
17396
17397     char *m0, *r0, *c0, *p;
17398     m0 = malloc(0);
17399     p = malloc(10);
17400     r0 = realloc(p,0);
17401     c0 = calloc(0,10);
17402     exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17403
17404   ;
17405   return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_c_try_run "$LINENO"; then :
17409   MALLOC_ZERO_RETURNS_NULL=yes
17410 else
17411   MALLOC_ZERO_RETURNS_NULL=no
17412 fi
17413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17414   conftest.$ac_objext conftest.beam conftest.$ac_ext
17415 fi
17416
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17419 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17420
17421 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17422         MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17423         XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17424         XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17425 else
17426         MALLOC_ZERO_CFLAGS=""
17427         XMALLOC_ZERO_CFLAGS=""
17428         XTMALLOC_ZERO_CFLAGS=""
17429 fi
17430
17431
17432
17433
17434
17435
17436 # Check xres configuration, strip extra digits from package version to
17437 # find the required protocol version
17438 RES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17439
17440 # Obtain compiler/linker options for depedencies
17441
17442 pkg_failed=no
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
17444 $as_echo_n "checking for XRES... " >&6; }
17445
17446 if test -n "$XRES_CFLAGS"; then
17447     pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
17448  elif test -n "$PKG_CONFIG"; then
17449     if test -n "$PKG_CONFIG" && \
17450     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
17451   ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
17452   ac_status=$?
17453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17454   test $ac_status = 0; }; then
17455   pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
17456 else
17457   pkg_failed=yes
17458 fi
17459  else
17460     pkg_failed=untried
17461 fi
17462 if test -n "$XRES_LIBS"; then
17463     pkg_cv_XRES_LIBS="$XRES_LIBS"
17464  elif test -n "$PKG_CONFIG"; then
17465     if test -n "$PKG_CONFIG" && \
17466     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
17467   ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
17468   ac_status=$?
17469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470   test $ac_status = 0; }; then
17471   pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
17472 else
17473   pkg_failed=yes
17474 fi
17475  else
17476     pkg_failed=untried
17477 fi
17478
17479
17480
17481 if test $pkg_failed = yes; then
17482
17483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17484         _pkg_short_errors_supported=yes
17485 else
17486         _pkg_short_errors_supported=no
17487 fi
17488         if test $_pkg_short_errors_supported = yes; then
17489                 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
17490         else
17491                 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
17492         fi
17493         # Put the nasty error message in config.log where it belongs
17494         echo "$XRES_PKG_ERRORS" >&5
17495
17496         as_fn_error $? "Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met:
17497
17498 $XRES_PKG_ERRORS
17499
17500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17501 installed software in a non-standard prefix.
17502
17503 Alternatively, you may set the environment variables XRES_CFLAGS
17504 and XRES_LIBS to avoid the need to call pkg-config.
17505 See the pkg-config man page for more details.
17506 " "$LINENO" 5
17507 elif test $pkg_failed = untried; then
17508         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17510 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17511 is in your PATH or set the PKG_CONFIG environment variable to the full
17512 path to pkg-config.
17513
17514 Alternatively, you may set the environment variables XRES_CFLAGS
17515 and XRES_LIBS to avoid the need to call pkg-config.
17516 See the pkg-config man page for more details.
17517
17518 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17519 See \`config.log' for more details" "$LINENO" 5; }
17520 else
17521         XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
17522         XRES_LIBS=$pkg_cv_XRES_LIBS
17523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17524 $as_echo "yes" >&6; }
17525         :
17526 fi
17527
17528 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
17529
17530 cat >confcache <<\_ACEOF
17531 # This file is a shell script that caches the results of configure
17532 # tests run on this system so they can be shared between configure
17533 # scripts and configure runs, see configure's option --config-cache.
17534 # It is not useful on other systems.  If it contains results you don't
17535 # want to keep, you may remove or edit it.
17536 #
17537 # config.status only pays attention to the cache file if you give it
17538 # the --recheck option to rerun configure.
17539 #
17540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17542 # following values.
17543
17544 _ACEOF
17545
17546 # The following way of writing the cache mishandles newlines in values,
17547 # but we know of no workaround that is simple, portable, and efficient.
17548 # So, we kill variables containing newlines.
17549 # Ultrix sh set writes to stderr and can't be redirected directly,
17550 # and sets the high bit in the cache file unless we assign to the vars.
17551 (
17552   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17553     eval ac_val=\$$ac_var
17554     case $ac_val in #(
17555     *${as_nl}*)
17556       case $ac_var in #(
17557       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17559       esac
17560       case $ac_var in #(
17561       _ | IFS | as_nl) ;; #(
17562       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17563       *) { eval $ac_var=; unset $ac_var;} ;;
17564       esac ;;
17565     esac
17566   done
17567
17568   (set) 2>&1 |
17569     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17570     *${as_nl}ac_space=\ *)
17571       # `set' does not quote correctly, so add quotes: double-quote
17572       # substitution turns \\\\ into \\, and sed turns \\ into \.
17573       sed -n \
17574         "s/'/'\\\\''/g;
17575           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17576       ;; #(
17577     *)
17578       # `set' quotes correctly as required by POSIX, so do not add quotes.
17579       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17580       ;;
17581     esac |
17582     sort
17583 ) |
17584   sed '
17585      /^ac_cv_env_/b end
17586      t clear
17587      :clear
17588      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17589      t end
17590      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17591      :end' >>confcache
17592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17593   if test -w "$cache_file"; then
17594     if test "x$cache_file" != "x/dev/null"; then
17595       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17596 $as_echo "$as_me: updating cache $cache_file" >&6;}
17597       if test ! -f "$cache_file" || test -h "$cache_file"; then
17598         cat confcache >"$cache_file"
17599       else
17600         case $cache_file in #(
17601         */* | ?:*)
17602           mv -f confcache "$cache_file"$$ &&
17603           mv -f "$cache_file"$$ "$cache_file" ;; #(
17604         *)
17605           mv -f confcache "$cache_file" ;;
17606         esac
17607       fi
17608     fi
17609   else
17610     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17612   fi
17613 fi
17614 rm -f confcache
17615
17616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17617 # Let make expand exec_prefix.
17618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17619
17620 DEFS=-DHAVE_CONFIG_H
17621
17622 ac_libobjs=
17623 ac_ltlibobjs=
17624 U=
17625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17626   # 1. Remove the extension, and $U if already installed.
17627   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17628   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17629   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17630   #    will be set to the directory where LIBOBJS objects are built.
17631   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17632   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17633 done
17634 LIBOBJS=$ac_libobjs
17635
17636 LTLIBOBJS=$ac_ltlibobjs
17637
17638
17639  if test -n "$EXEEXT"; then
17640   am__EXEEXT_TRUE=
17641   am__EXEEXT_FALSE='#'
17642 else
17643   am__EXEEXT_TRUE='#'
17644   am__EXEEXT_FALSE=
17645 fi
17646
17647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17648   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17650 fi
17651 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17652   as_fn_error $? "conditional \"AMDEP\" was never defined.
17653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17654 fi
17655 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17656   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 fi
17659
17660 : "${CONFIG_STATUS=./config.status}"
17661 ac_write_fail=0
17662 ac_clean_files_save=$ac_clean_files
17663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17665 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17666 as_write_fail=0
17667 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17668 #! $SHELL
17669 # Generated by $as_me.
17670 # Run this file to recreate the current configuration.
17671 # Compiler output produced by configure, useful for debugging
17672 # configure, is in config.log if it exists.
17673
17674 debug=false
17675 ac_cs_recheck=false
17676 ac_cs_silent=false
17677
17678 SHELL=\${CONFIG_SHELL-$SHELL}
17679 export SHELL
17680 _ASEOF
17681 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17682 ## -------------------- ##
17683 ## M4sh Initialization. ##
17684 ## -------------------- ##
17685
17686 # Be more Bourne compatible
17687 DUALCASE=1; export DUALCASE # for MKS sh
17688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17689   emulate sh
17690   NULLCMD=:
17691   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17692   # is contrary to our usage.  Disable this feature.
17693   alias -g '${1+"$@"}'='"$@"'
17694   setopt NO_GLOB_SUBST
17695 else
17696   case `(set -o) 2>/dev/null` in #(
17697   *posix*) :
17698     set -o posix ;; #(
17699   *) :
17700      ;;
17701 esac
17702 fi
17703
17704
17705 as_nl='
17706 '
17707 export as_nl
17708 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17709 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17712 # Prefer a ksh shell builtin over an external printf program on Solaris,
17713 # but without wasting forks for bash or zsh.
17714 if test -z "$BASH_VERSION$ZSH_VERSION" \
17715     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17716   as_echo='print -r --'
17717   as_echo_n='print -rn --'
17718 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17719   as_echo='printf %s\n'
17720   as_echo_n='printf %s'
17721 else
17722   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17723     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17724     as_echo_n='/usr/ucb/echo -n'
17725   else
17726     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17727     as_echo_n_body='eval
17728       arg=$1;
17729       case $arg in #(
17730       *"$as_nl"*)
17731         expr "X$arg" : "X\\(.*\\)$as_nl";
17732         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17733       esac;
17734       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17735     '
17736     export as_echo_n_body
17737     as_echo_n='sh -c $as_echo_n_body as_echo'
17738   fi
17739   export as_echo_body
17740   as_echo='sh -c $as_echo_body as_echo'
17741 fi
17742
17743 # The user is always right.
17744 if test "${PATH_SEPARATOR+set}" != set; then
17745   PATH_SEPARATOR=:
17746   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17747     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17748       PATH_SEPARATOR=';'
17749   }
17750 fi
17751
17752
17753 # IFS
17754 # We need space, tab and new line, in precisely that order.  Quoting is
17755 # there to prevent editors from complaining about space-tab.
17756 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17757 # splitting by setting IFS to empty value.)
17758 IFS=" ""        $as_nl"
17759
17760 # Find who we are.  Look in the path if we contain no directory separator.
17761 as_myself=
17762 case $0 in #((
17763   *[\\/]* ) as_myself=$0 ;;
17764   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17765 for as_dir in $PATH
17766 do
17767   IFS=$as_save_IFS
17768   test -z "$as_dir" && as_dir=.
17769     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17770   done
17771 IFS=$as_save_IFS
17772
17773      ;;
17774 esac
17775 # We did not find ourselves, most probably we were run as `sh COMMAND'
17776 # in which case we are not to be found in the path.
17777 if test "x$as_myself" = x; then
17778   as_myself=$0
17779 fi
17780 if test ! -f "$as_myself"; then
17781   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17782   exit 1
17783 fi
17784
17785 # Unset variables that we do not need and which cause bugs (e.g. in
17786 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17787 # suppresses any "Segmentation fault" message there.  '((' could
17788 # trigger a bug in pdksh 5.2.14.
17789 for as_var in BASH_ENV ENV MAIL MAILPATH
17790 do eval test x\${$as_var+set} = xset \
17791   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17792 done
17793 PS1='$ '
17794 PS2='> '
17795 PS4='+ '
17796
17797 # NLS nuisances.
17798 LC_ALL=C
17799 export LC_ALL
17800 LANGUAGE=C
17801 export LANGUAGE
17802
17803 # CDPATH.
17804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17805
17806
17807 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17808 # ----------------------------------------
17809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17811 # script with STATUS, using 1 if that was 0.
17812 as_fn_error ()
17813 {
17814   as_status=$1; test $as_status -eq 0 && as_status=1
17815   if test "$4"; then
17816     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17817     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17818   fi
17819   $as_echo "$as_me: error: $2" >&2
17820   as_fn_exit $as_status
17821 } # as_fn_error
17822
17823
17824 # as_fn_set_status STATUS
17825 # -----------------------
17826 # Set $? to STATUS, without forking.
17827 as_fn_set_status ()
17828 {
17829   return $1
17830 } # as_fn_set_status
17831
17832 # as_fn_exit STATUS
17833 # -----------------
17834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17835 as_fn_exit ()
17836 {
17837   set +e
17838   as_fn_set_status $1
17839   exit $1
17840 } # as_fn_exit
17841
17842 # as_fn_unset VAR
17843 # ---------------
17844 # Portably unset VAR.
17845 as_fn_unset ()
17846 {
17847   { eval $1=; unset $1;}
17848 }
17849 as_unset=as_fn_unset
17850 # as_fn_append VAR VALUE
17851 # ----------------------
17852 # Append the text in VALUE to the end of the definition contained in VAR. Take
17853 # advantage of any shell optimizations that allow amortized linear growth over
17854 # repeated appends, instead of the typical quadratic growth present in naive
17855 # implementations.
17856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17857   eval 'as_fn_append ()
17858   {
17859     eval $1+=\$2
17860   }'
17861 else
17862   as_fn_append ()
17863   {
17864     eval $1=\$$1\$2
17865   }
17866 fi # as_fn_append
17867
17868 # as_fn_arith ARG...
17869 # ------------------
17870 # Perform arithmetic evaluation on the ARGs, and store the result in the
17871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17872 # must be portable across $(()) and expr.
17873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17874   eval 'as_fn_arith ()
17875   {
17876     as_val=$(( $* ))
17877   }'
17878 else
17879   as_fn_arith ()
17880   {
17881     as_val=`expr "$@" || test $? -eq 1`
17882   }
17883 fi # as_fn_arith
17884
17885
17886 if expr a : '\(a\)' >/dev/null 2>&1 &&
17887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17888   as_expr=expr
17889 else
17890   as_expr=false
17891 fi
17892
17893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17894   as_basename=basename
17895 else
17896   as_basename=false
17897 fi
17898
17899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17900   as_dirname=dirname
17901 else
17902   as_dirname=false
17903 fi
17904
17905 as_me=`$as_basename -- "$0" ||
17906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17907          X"$0" : 'X\(//\)$' \| \
17908          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17909 $as_echo X/"$0" |
17910     sed '/^.*\/\([^/][^/]*\)\/*$/{
17911             s//\1/
17912             q
17913           }
17914           /^X\/\(\/\/\)$/{
17915             s//\1/
17916             q
17917           }
17918           /^X\/\(\/\).*/{
17919             s//\1/
17920             q
17921           }
17922           s/.*/./; q'`
17923
17924 # Avoid depending upon Character Ranges.
17925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17928 as_cr_digits='0123456789'
17929 as_cr_alnum=$as_cr_Letters$as_cr_digits
17930
17931 ECHO_C= ECHO_N= ECHO_T=
17932 case `echo -n x` in #(((((
17933 -n*)
17934   case `echo 'xy\c'` in
17935   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17936   xy)  ECHO_C='\c';;
17937   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17938        ECHO_T=' ';;
17939   esac;;
17940 *)
17941   ECHO_N='-n';;
17942 esac
17943
17944 rm -f conf$$ conf$$.exe conf$$.file
17945 if test -d conf$$.dir; then
17946   rm -f conf$$.dir/conf$$.file
17947 else
17948   rm -f conf$$.dir
17949   mkdir conf$$.dir 2>/dev/null
17950 fi
17951 if (echo >conf$$.file) 2>/dev/null; then
17952   if ln -s conf$$.file conf$$ 2>/dev/null; then
17953     as_ln_s='ln -s'
17954     # ... but there are two gotchas:
17955     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17956     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17957     # In both cases, we have to default to `cp -p'.
17958     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17959       as_ln_s='cp -p'
17960   elif ln conf$$.file conf$$ 2>/dev/null; then
17961     as_ln_s=ln
17962   else
17963     as_ln_s='cp -p'
17964   fi
17965 else
17966   as_ln_s='cp -p'
17967 fi
17968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17969 rmdir conf$$.dir 2>/dev/null
17970
17971
17972 # as_fn_mkdir_p
17973 # -------------
17974 # Create "$as_dir" as a directory, including parents if necessary.
17975 as_fn_mkdir_p ()
17976 {
17977
17978   case $as_dir in #(
17979   -*) as_dir=./$as_dir;;
17980   esac
17981   test -d "$as_dir" || eval $as_mkdir_p || {
17982     as_dirs=
17983     while :; do
17984       case $as_dir in #(
17985       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17986       *) as_qdir=$as_dir;;
17987       esac
17988       as_dirs="'$as_qdir' $as_dirs"
17989       as_dir=`$as_dirname -- "$as_dir" ||
17990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17991          X"$as_dir" : 'X\(//\)[^/]' \| \
17992          X"$as_dir" : 'X\(//\)$' \| \
17993          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17994 $as_echo X"$as_dir" |
17995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17996             s//\1/
17997             q
17998           }
17999           /^X\(\/\/\)[^/].*/{
18000             s//\1/
18001             q
18002           }
18003           /^X\(\/\/\)$/{
18004             s//\1/
18005             q
18006           }
18007           /^X\(\/\).*/{
18008             s//\1/
18009             q
18010           }
18011           s/.*/./; q'`
18012       test -d "$as_dir" && break
18013     done
18014     test -z "$as_dirs" || eval "mkdir $as_dirs"
18015   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18016
18017
18018 } # as_fn_mkdir_p
18019 if mkdir -p . 2>/dev/null; then
18020   as_mkdir_p='mkdir -p "$as_dir"'
18021 else
18022   test -d ./-p && rmdir ./-p
18023   as_mkdir_p=false
18024 fi
18025
18026 if test -x / >/dev/null 2>&1; then
18027   as_test_x='test -x'
18028 else
18029   if ls -dL / >/dev/null 2>&1; then
18030     as_ls_L_option=L
18031   else
18032     as_ls_L_option=
18033   fi
18034   as_test_x='
18035     eval sh -c '\''
18036       if test -d "$1"; then
18037         test -d "$1/.";
18038       else
18039         case $1 in #(
18040         -*)set "./$1";;
18041         esac;
18042         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18043         ???[sx]*):;;*)false;;esac;fi
18044     '\'' sh
18045   '
18046 fi
18047 as_executable_p=$as_test_x
18048
18049 # Sed expression to map a string onto a valid CPP name.
18050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18051
18052 # Sed expression to map a string onto a valid variable name.
18053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18054
18055
18056 exec 6>&1
18057 ## ----------------------------------- ##
18058 ## Main body of $CONFIG_STATUS script. ##
18059 ## ----------------------------------- ##
18060 _ASEOF
18061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18062
18063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 # Save the log message, to keep $0 and so on meaningful, and to
18065 # report actual input values of CONFIG_FILES etc. instead of their
18066 # values after options handling.
18067 ac_log="
18068 This file was extended by libXres $as_me 1.0.6, which was
18069 generated by GNU Autoconf 2.68.  Invocation command line was
18070
18071   CONFIG_FILES    = $CONFIG_FILES
18072   CONFIG_HEADERS  = $CONFIG_HEADERS
18073   CONFIG_LINKS    = $CONFIG_LINKS
18074   CONFIG_COMMANDS = $CONFIG_COMMANDS
18075   $ $0 $@
18076
18077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18078 "
18079
18080 _ACEOF
18081
18082 case $ac_config_files in *"
18083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18084 esac
18085
18086 case $ac_config_headers in *"
18087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18088 esac
18089
18090
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 # Files that config.status was made for.
18093 config_files="$ac_config_files"
18094 config_headers="$ac_config_headers"
18095 config_commands="$ac_config_commands"
18096
18097 _ACEOF
18098
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18100 ac_cs_usage="\
18101 \`$as_me' instantiates files and other configuration actions
18102 from templates according to the current configuration.  Unless the files
18103 and actions are specified as TAGs, all are instantiated by default.
18104
18105 Usage: $0 [OPTION]... [TAG]...
18106
18107   -h, --help       print this help, then exit
18108   -V, --version    print version number and configuration settings, then exit
18109       --config     print configuration, then exit
18110   -q, --quiet, --silent
18111                    do not print progress messages
18112   -d, --debug      don't remove temporary files
18113       --recheck    update $as_me by reconfiguring in the same conditions
18114       --file=FILE[:TEMPLATE]
18115                    instantiate the configuration file FILE
18116       --header=FILE[:TEMPLATE]
18117                    instantiate the configuration header FILE
18118
18119 Configuration files:
18120 $config_files
18121
18122 Configuration headers:
18123 $config_headers
18124
18125 Configuration commands:
18126 $config_commands
18127
18128 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18129
18130 _ACEOF
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18133 ac_cs_version="\\
18134 libXres config.status 1.0.6
18135 configured by $0, generated by GNU Autoconf 2.68,
18136   with options \\"\$ac_cs_config\\"
18137
18138 Copyright (C) 2010 Free Software Foundation, Inc.
18139 This config.status script is free software; the Free Software Foundation
18140 gives unlimited permission to copy, distribute and modify it."
18141
18142 ac_pwd='$ac_pwd'
18143 srcdir='$srcdir'
18144 INSTALL='$INSTALL'
18145 MKDIR_P='$MKDIR_P'
18146 AWK='$AWK'
18147 test -n "\$AWK" || AWK=awk
18148 _ACEOF
18149
18150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151 # The default lists apply if the user does not specify any file.
18152 ac_need_defaults=:
18153 while test $# != 0
18154 do
18155   case $1 in
18156   --*=?*)
18157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18159     ac_shift=:
18160     ;;
18161   --*=)
18162     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18163     ac_optarg=
18164     ac_shift=:
18165     ;;
18166   *)
18167     ac_option=$1
18168     ac_optarg=$2
18169     ac_shift=shift
18170     ;;
18171   esac
18172
18173   case $ac_option in
18174   # Handling of the options.
18175   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18176     ac_cs_recheck=: ;;
18177   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18178     $as_echo "$ac_cs_version"; exit ;;
18179   --config | --confi | --conf | --con | --co | --c )
18180     $as_echo "$ac_cs_config"; exit ;;
18181   --debug | --debu | --deb | --de | --d | -d )
18182     debug=: ;;
18183   --file | --fil | --fi | --f )
18184     $ac_shift
18185     case $ac_optarg in
18186     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18187     '') as_fn_error $? "missing file argument" ;;
18188     esac
18189     as_fn_append CONFIG_FILES " '$ac_optarg'"
18190     ac_need_defaults=false;;
18191   --header | --heade | --head | --hea )
18192     $ac_shift
18193     case $ac_optarg in
18194     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18195     esac
18196     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18197     ac_need_defaults=false;;
18198   --he | --h)
18199     # Conflict between --help and --header
18200     as_fn_error $? "ambiguous option: \`$1'
18201 Try \`$0 --help' for more information.";;
18202   --help | --hel | -h )
18203     $as_echo "$ac_cs_usage"; exit ;;
18204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18206     ac_cs_silent=: ;;
18207
18208   # This is an error.
18209   -*) as_fn_error $? "unrecognized option: \`$1'
18210 Try \`$0 --help' for more information." ;;
18211
18212   *) as_fn_append ac_config_targets " $1"
18213      ac_need_defaults=false ;;
18214
18215   esac
18216   shift
18217 done
18218
18219 ac_configure_extra_args=
18220
18221 if $ac_cs_silent; then
18222   exec 6>/dev/null
18223   ac_configure_extra_args="$ac_configure_extra_args --silent"
18224 fi
18225
18226 _ACEOF
18227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18228 if \$ac_cs_recheck; then
18229   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18230   shift
18231   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18232   CONFIG_SHELL='$SHELL'
18233   export CONFIG_SHELL
18234   exec "\$@"
18235 fi
18236
18237 _ACEOF
18238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18239 exec 5>>config.log
18240 {
18241   echo
18242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18243 ## Running $as_me. ##
18244 _ASBOX
18245   $as_echo "$ac_log"
18246 } >&5
18247
18248 _ACEOF
18249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18250 #
18251 # INIT-COMMANDS
18252 #
18253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18254
18255
18256 # The HP-UX ksh and POSIX shell print the target directory to stdout
18257 # if CDPATH is set.
18258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18259
18260 sed_quote_subst='$sed_quote_subst'
18261 double_quote_subst='$double_quote_subst'
18262 delay_variable_subst='$delay_variable_subst'
18263 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18264 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18265 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18266 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18267 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18268 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18271 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18272 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18273 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18274 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18275 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18276 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18282 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18283 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18284 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18285 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18286 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18287 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18288 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18289 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18290 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18291 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18292 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18293 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18294 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18295 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18296 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18297 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18298 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18299 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18300 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18301 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18303 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18304 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18305 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18306 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18307 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18308 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18309 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18310 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18311 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18312 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18313 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18314 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18315 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18318 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"`'
18319 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18320 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18321 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18322 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18323 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18324 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18325 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18326 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18327 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18328 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18329 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18330 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18331 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18332 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18333 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18334 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18335 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18336 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18337 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18338 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18339 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18340 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18341 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18342 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18343 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18344 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18345 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18346 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18347 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18348 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18349 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18350 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18351 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18352 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18353 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18354 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18355 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18356 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18357 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18358 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18359 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18360 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18361 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18362 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18363 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18364 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18365 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18366 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18367 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18368 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18369 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18370 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18371 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18372 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18373 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18374 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18375 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18376 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18377 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18378 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18379 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18380 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18381 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18382 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18383 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18384 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18385 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18386 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18387 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18388 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18389 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18390 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18391 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18392 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18393
18394 LTCC='$LTCC'
18395 LTCFLAGS='$LTCFLAGS'
18396 compiler='$compiler_DEFAULT'
18397
18398 # A function that is used when there is no print builtin or printf.
18399 func_fallback_echo ()
18400 {
18401   eval 'cat <<_LTECHO_EOF
18402 \$1
18403 _LTECHO_EOF'
18404 }
18405
18406 # Quote evaled strings.
18407 for var in SHELL \
18408 ECHO \
18409 SED \
18410 GREP \
18411 EGREP \
18412 FGREP \
18413 LD \
18414 NM \
18415 LN_S \
18416 lt_SP2NL \
18417 lt_NL2SP \
18418 reload_flag \
18419 OBJDUMP \
18420 deplibs_check_method \
18421 file_magic_cmd \
18422 file_magic_glob \
18423 want_nocaseglob \
18424 DLLTOOL \
18425 sharedlib_from_linklib_cmd \
18426 AR \
18427 AR_FLAGS \
18428 archiver_list_spec \
18429 STRIP \
18430 RANLIB \
18431 CC \
18432 CFLAGS \
18433 compiler \
18434 lt_cv_sys_global_symbol_pipe \
18435 lt_cv_sys_global_symbol_to_cdecl \
18436 lt_cv_sys_global_symbol_to_c_name_address \
18437 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18438 nm_file_list_spec \
18439 lt_prog_compiler_no_builtin_flag \
18440 lt_prog_compiler_pic \
18441 lt_prog_compiler_wl \
18442 lt_prog_compiler_static \
18443 lt_cv_prog_compiler_c_o \
18444 need_locks \
18445 MANIFEST_TOOL \
18446 DSYMUTIL \
18447 NMEDIT \
18448 LIPO \
18449 OTOOL \
18450 OTOOL64 \
18451 shrext_cmds \
18452 export_dynamic_flag_spec \
18453 whole_archive_flag_spec \
18454 compiler_needs_object \
18455 with_gnu_ld \
18456 allow_undefined_flag \
18457 no_undefined_flag \
18458 hardcode_libdir_flag_spec \
18459 hardcode_libdir_flag_spec_ld \
18460 hardcode_libdir_separator \
18461 exclude_expsyms \
18462 include_expsyms \
18463 file_list_spec \
18464 variables_saved_for_relink \
18465 libname_spec \
18466 library_names_spec \
18467 soname_spec \
18468 install_override_mode \
18469 finish_eval \
18470 old_striplib \
18471 striplib; do
18472     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18473     *[\\\\\\\`\\"\\\$]*)
18474       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18475       ;;
18476     *)
18477       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18478       ;;
18479     esac
18480 done
18481
18482 # Double-quote double-evaled strings.
18483 for var in reload_cmds \
18484 old_postinstall_cmds \
18485 old_postuninstall_cmds \
18486 old_archive_cmds \
18487 extract_expsyms_cmds \
18488 old_archive_from_new_cmds \
18489 old_archive_from_expsyms_cmds \
18490 archive_cmds \
18491 archive_expsym_cmds \
18492 module_cmds \
18493 module_expsym_cmds \
18494 export_symbols_cmds \
18495 prelink_cmds \
18496 postlink_cmds \
18497 postinstall_cmds \
18498 postuninstall_cmds \
18499 finish_cmds \
18500 sys_lib_search_path_spec \
18501 sys_lib_dlsearch_path_spec; do
18502     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18503     *[\\\\\\\`\\"\\\$]*)
18504       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18505       ;;
18506     *)
18507       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18508       ;;
18509     esac
18510 done
18511
18512 ac_aux_dir='$ac_aux_dir'
18513 xsi_shell='$xsi_shell'
18514 lt_shell_append='$lt_shell_append'
18515
18516 # See if we are running on zsh, and set the options which allow our
18517 # commands through without removal of \ escapes INIT.
18518 if test -n "\${ZSH_VERSION+set}" ; then
18519    setopt NO_GLOB_SUBST
18520 fi
18521
18522
18523     PACKAGE='$PACKAGE'
18524     VERSION='$VERSION'
18525     TIMESTAMP='$TIMESTAMP'
18526     RM='$RM'
18527     ofile='$ofile'
18528
18529
18530
18531
18532 _ACEOF
18533
18534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18535
18536 # Handling of arguments.
18537 for ac_config_target in $ac_config_targets
18538 do
18539   case $ac_config_target in
18540     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18541     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18542     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18543     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18544     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18545     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18546     "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
18547
18548   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18549   esac
18550 done
18551
18552
18553 # If the user did not use the arguments to specify the items to instantiate,
18554 # then the envvar interface is used.  Set only those that are not.
18555 # We use the long form for the default assignment because of an extremely
18556 # bizarre bug on SunOS 4.1.3.
18557 if $ac_need_defaults; then
18558   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18559   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18560   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18561 fi
18562
18563 # Have a temporary directory for convenience.  Make it in the build tree
18564 # simply because there is no reason against having it here, and in addition,
18565 # creating and moving files from /tmp can sometimes cause problems.
18566 # Hook for its removal unless debugging.
18567 # Note that there is a small window in which the directory will not be cleaned:
18568 # after its creation but before its name has been assigned to `$tmp'.
18569 $debug ||
18570 {
18571   tmp= ac_tmp=
18572   trap 'exit_status=$?
18573   : "${ac_tmp:=$tmp}"
18574   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18575 ' 0
18576   trap 'as_fn_exit 1' 1 2 13 15
18577 }
18578 # Create a (secure) tmp directory for tmp files.
18579
18580 {
18581   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18582   test -d "$tmp"
18583 }  ||
18584 {
18585   tmp=./conf$$-$RANDOM
18586   (umask 077 && mkdir "$tmp")
18587 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18588 ac_tmp=$tmp
18589
18590 # Set up the scripts for CONFIG_FILES section.
18591 # No need to generate them if there are no CONFIG_FILES.
18592 # This happens for instance with `./config.status config.h'.
18593 if test -n "$CONFIG_FILES"; then
18594
18595
18596 ac_cr=`echo X | tr X '\015'`
18597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18598 # But we know of no other shell where ac_cr would be empty at this
18599 # point, so we can use a bashism as a fallback.
18600 if test "x$ac_cr" = x; then
18601   eval ac_cr=\$\'\\r\'
18602 fi
18603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18605   ac_cs_awk_cr='\\r'
18606 else
18607   ac_cs_awk_cr=$ac_cr
18608 fi
18609
18610 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18611 _ACEOF
18612
18613
18614 {
18615   echo "cat >conf$$subs.awk <<_ACEOF" &&
18616   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18617   echo "_ACEOF"
18618 } >conf$$subs.sh ||
18619   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18621 ac_delim='%!_!# '
18622 for ac_last_try in false false false false false :; do
18623   . ./conf$$subs.sh ||
18624     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18625
18626   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18627   if test $ac_delim_n = $ac_delim_num; then
18628     break
18629   elif $ac_last_try; then
18630     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18631   else
18632     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18633   fi
18634 done
18635 rm -f conf$$subs.sh
18636
18637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18638 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18639 _ACEOF
18640 sed -n '
18641 h
18642 s/^/S["/; s/!.*/"]=/
18643 p
18644 g
18645 s/^[^!]*!//
18646 :repl
18647 t repl
18648 s/'"$ac_delim"'$//
18649 t delim
18650 :nl
18651 h
18652 s/\(.\{148\}\)..*/\1/
18653 t more1
18654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18655 p
18656 n
18657 b repl
18658 :more1
18659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18660 p
18661 g
18662 s/.\{148\}//
18663 t nl
18664 :delim
18665 h
18666 s/\(.\{148\}\)..*/\1/
18667 t more2
18668 s/["\\]/\\&/g; s/^/"/; s/$/"/
18669 p
18670 b
18671 :more2
18672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18673 p
18674 g
18675 s/.\{148\}//
18676 t delim
18677 ' <conf$$subs.awk | sed '
18678 /^[^""]/{
18679   N
18680   s/\n//
18681 }
18682 ' >>$CONFIG_STATUS || ac_write_fail=1
18683 rm -f conf$$subs.awk
18684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685 _ACAWK
18686 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18687   for (key in S) S_is_set[key] = 1
18688   FS = "\a"
18689
18690 }
18691 {
18692   line = $ 0
18693   nfields = split(line, field, "@")
18694   substed = 0
18695   len = length(field[1])
18696   for (i = 2; i < nfields; i++) {
18697     key = field[i]
18698     keylen = length(key)
18699     if (S_is_set[key]) {
18700       value = S[key]
18701       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18702       len += length(value) + length(field[++i])
18703       substed = 1
18704     } else
18705       len += 1 + keylen
18706   }
18707
18708   print line
18709 }
18710
18711 _ACAWK
18712 _ACEOF
18713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18715   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18716 else
18717   cat
18718 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18719   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18720 _ACEOF
18721
18722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18724 # trailing colons and then remove the whole line if VPATH becomes empty
18725 # (actually we leave an empty line to preserve line numbers).
18726 if test "x$srcdir" = x.; then
18727   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18728 h
18729 s///
18730 s/^/:/
18731 s/[      ]*$/:/
18732 s/:\$(srcdir):/:/g
18733 s/:\${srcdir}:/:/g
18734 s/:@srcdir@:/:/g
18735 s/^:*//
18736 s/:*$//
18737 x
18738 s/\(=[   ]*\).*/\1/
18739 G
18740 s/\n//
18741 s/^[^=]*=[       ]*$//
18742 }'
18743 fi
18744
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18746 fi # test -n "$CONFIG_FILES"
18747
18748 # Set up the scripts for CONFIG_HEADERS section.
18749 # No need to generate them if there are no CONFIG_HEADERS.
18750 # This happens for instance with `./config.status Makefile'.
18751 if test -n "$CONFIG_HEADERS"; then
18752 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18753 BEGIN {
18754 _ACEOF
18755
18756 # Transform confdefs.h into an awk script `defines.awk', embedded as
18757 # here-document in config.status, that substitutes the proper values into
18758 # config.h.in to produce config.h.
18759
18760 # Create a delimiter string that does not exist in confdefs.h, to ease
18761 # handling of long lines.
18762 ac_delim='%!_!# '
18763 for ac_last_try in false false :; do
18764   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18765   if test -z "$ac_tt"; then
18766     break
18767   elif $ac_last_try; then
18768     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18769   else
18770     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18771   fi
18772 done
18773
18774 # For the awk script, D is an array of macro values keyed by name,
18775 # likewise P contains macro parameters if any.  Preserve backslash
18776 # newline sequences.
18777
18778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18779 sed -n '
18780 s/.\{148\}/&'"$ac_delim"'/g
18781 t rset
18782 :rset
18783 s/^[     ]*#[    ]*define[       ][      ]*/ /
18784 t def
18785 d
18786 :def
18787 s/\\$//
18788 t bsnl
18789 s/["\\]/\\&/g
18790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18791 D["\1"]=" \3"/p
18792 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18793 d
18794 :bsnl
18795 s/["\\]/\\&/g
18796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18797 D["\1"]=" \3\\\\\\n"\\/p
18798 t cont
18799 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18800 t cont
18801 d
18802 :cont
18803 n
18804 s/.\{148\}/&'"$ac_delim"'/g
18805 t clear
18806 :clear
18807 s/\\$//
18808 t bsnlc
18809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18810 d
18811 :bsnlc
18812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18813 b cont
18814 ' <confdefs.h | sed '
18815 s/'"$ac_delim"'/"\\\
18816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18817
18818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18819   for (key in D) D_is_set[key] = 1
18820   FS = "\a"
18821 }
18822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18823   line = \$ 0
18824   split(line, arg, " ")
18825   if (arg[1] == "#") {
18826     defundef = arg[2]
18827     mac1 = arg[3]
18828   } else {
18829     defundef = substr(arg[1], 2)
18830     mac1 = arg[2]
18831   }
18832   split(mac1, mac2, "(") #)
18833   macro = mac2[1]
18834   prefix = substr(line, 1, index(line, defundef) - 1)
18835   if (D_is_set[macro]) {
18836     # Preserve the white space surrounding the "#".
18837     print prefix "define", macro P[macro] D[macro]
18838     next
18839   } else {
18840     # Replace #undef with comments.  This is necessary, for example,
18841     # in the case of _POSIX_SOURCE, which is predefined and required
18842     # on some systems where configure will not decide to define it.
18843     if (defundef == "undef") {
18844       print "/*", prefix defundef, macro, "*/"
18845       next
18846     }
18847   }
18848 }
18849 { print }
18850 _ACAWK
18851 _ACEOF
18852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18853   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18854 fi # test -n "$CONFIG_HEADERS"
18855
18856
18857 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18858 shift
18859 for ac_tag
18860 do
18861   case $ac_tag in
18862   :[FHLC]) ac_mode=$ac_tag; continue;;
18863   esac
18864   case $ac_mode$ac_tag in
18865   :[FHL]*:*);;
18866   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18867   :[FH]-) ac_tag=-:-;;
18868   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18869   esac
18870   ac_save_IFS=$IFS
18871   IFS=:
18872   set x $ac_tag
18873   IFS=$ac_save_IFS
18874   shift
18875   ac_file=$1
18876   shift
18877
18878   case $ac_mode in
18879   :L) ac_source=$1;;
18880   :[FH])
18881     ac_file_inputs=
18882     for ac_f
18883     do
18884       case $ac_f in
18885       -) ac_f="$ac_tmp/stdin";;
18886       *) # Look for the file first in the build tree, then in the source tree
18887          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18888          # because $ac_f cannot contain `:'.
18889          test -f "$ac_f" ||
18890            case $ac_f in
18891            [\\/$]*) false;;
18892            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18893            esac ||
18894            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18895       esac
18896       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18897       as_fn_append ac_file_inputs " '$ac_f'"
18898     done
18899
18900     # Let's still pretend it is `configure' which instantiates (i.e., don't
18901     # use $as_me), people would be surprised to read:
18902     #    /* config.h.  Generated by config.status.  */
18903     configure_input='Generated from '`
18904           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18905         `' by configure.'
18906     if test x"$ac_file" != x-; then
18907       configure_input="$ac_file.  $configure_input"
18908       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18909 $as_echo "$as_me: creating $ac_file" >&6;}
18910     fi
18911     # Neutralize special characters interpreted by sed in replacement strings.
18912     case $configure_input in #(
18913     *\&* | *\|* | *\\* )
18914        ac_sed_conf_input=`$as_echo "$configure_input" |
18915        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18916     *) ac_sed_conf_input=$configure_input;;
18917     esac
18918
18919     case $ac_tag in
18920     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18921       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18922     esac
18923     ;;
18924   esac
18925
18926   ac_dir=`$as_dirname -- "$ac_file" ||
18927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18928          X"$ac_file" : 'X\(//\)[^/]' \| \
18929          X"$ac_file" : 'X\(//\)$' \| \
18930          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18931 $as_echo X"$ac_file" |
18932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18933             s//\1/
18934             q
18935           }
18936           /^X\(\/\/\)[^/].*/{
18937             s//\1/
18938             q
18939           }
18940           /^X\(\/\/\)$/{
18941             s//\1/
18942             q
18943           }
18944           /^X\(\/\).*/{
18945             s//\1/
18946             q
18947           }
18948           s/.*/./; q'`
18949   as_dir="$ac_dir"; as_fn_mkdir_p
18950   ac_builddir=.
18951
18952 case "$ac_dir" in
18953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18954 *)
18955   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18956   # A ".." for each directory in $ac_dir_suffix.
18957   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18958   case $ac_top_builddir_sub in
18959   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18960   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18961   esac ;;
18962 esac
18963 ac_abs_top_builddir=$ac_pwd
18964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18965 # for backward compatibility:
18966 ac_top_builddir=$ac_top_build_prefix
18967
18968 case $srcdir in
18969   .)  # We are building in place.
18970     ac_srcdir=.
18971     ac_top_srcdir=$ac_top_builddir_sub
18972     ac_abs_top_srcdir=$ac_pwd ;;
18973   [\\/]* | ?:[\\/]* )  # Absolute name.
18974     ac_srcdir=$srcdir$ac_dir_suffix;
18975     ac_top_srcdir=$srcdir
18976     ac_abs_top_srcdir=$srcdir ;;
18977   *) # Relative name.
18978     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18979     ac_top_srcdir=$ac_top_build_prefix$srcdir
18980     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18981 esac
18982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18983
18984
18985   case $ac_mode in
18986   :F)
18987   #
18988   # CONFIG_FILE
18989   #
18990
18991   case $INSTALL in
18992   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18993   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18994   esac
18995   ac_MKDIR_P=$MKDIR_P
18996   case $MKDIR_P in
18997   [\\/$]* | ?:[\\/]* ) ;;
18998   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18999   esac
19000 _ACEOF
19001
19002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19003 # If the template does not know about datarootdir, expand it.
19004 # FIXME: This hack should be removed a few years after 2.60.
19005 ac_datarootdir_hack=; ac_datarootdir_seen=
19006 ac_sed_dataroot='
19007 /datarootdir/ {
19008   p
19009   q
19010 }
19011 /@datadir@/p
19012 /@docdir@/p
19013 /@infodir@/p
19014 /@localedir@/p
19015 /@mandir@/p'
19016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19017 *datarootdir*) ac_datarootdir_seen=yes;;
19018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19021 _ACEOF
19022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19023   ac_datarootdir_hack='
19024   s&@datadir@&$datadir&g
19025   s&@docdir@&$docdir&g
19026   s&@infodir@&$infodir&g
19027   s&@localedir@&$localedir&g
19028   s&@mandir@&$mandir&g
19029   s&\\\${datarootdir}&$datarootdir&g' ;;
19030 esac
19031 _ACEOF
19032
19033 # Neutralize VPATH when `$srcdir' = `.'.
19034 # Shell code in configure.ac might set extrasub.
19035 # FIXME: do we really want to maintain this feature?
19036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037 ac_sed_extra="$ac_vpsub
19038 $extrasub
19039 _ACEOF
19040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19041 :t
19042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19043 s|@configure_input@|$ac_sed_conf_input|;t t
19044 s&@top_builddir@&$ac_top_builddir_sub&;t t
19045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19046 s&@srcdir@&$ac_srcdir&;t t
19047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19048 s&@top_srcdir@&$ac_top_srcdir&;t t
19049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19050 s&@builddir@&$ac_builddir&;t t
19051 s&@abs_builddir@&$ac_abs_builddir&;t t
19052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19053 s&@INSTALL@&$ac_INSTALL&;t t
19054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19055 $ac_datarootdir_hack
19056 "
19057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19058   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19059
19060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19061   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19062   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19063       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19064   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19065 which seems to be undefined.  Please make sure it is defined" >&5
19066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19067 which seems to be undefined.  Please make sure it is defined" >&2;}
19068
19069   rm -f "$ac_tmp/stdin"
19070   case $ac_file in
19071   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19072   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19073   esac \
19074   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19075  ;;
19076   :H)
19077   #
19078   # CONFIG_HEADER
19079   #
19080   if test x"$ac_file" != x-; then
19081     {
19082       $as_echo "/* $configure_input  */" \
19083       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19084     } >"$ac_tmp/config.h" \
19085       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19086     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19087       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19089     else
19090       rm -f "$ac_file"
19091       mv "$ac_tmp/config.h" "$ac_file" \
19092         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19093     fi
19094   else
19095     $as_echo "/* $configure_input  */" \
19096       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19097       || as_fn_error $? "could not create -" "$LINENO" 5
19098   fi
19099 # Compute "$ac_file"'s index in $config_headers.
19100 _am_arg="$ac_file"
19101 _am_stamp_count=1
19102 for _am_header in $config_headers :; do
19103   case $_am_header in
19104     $_am_arg | $_am_arg:* )
19105       break ;;
19106     * )
19107       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19108   esac
19109 done
19110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19112          X"$_am_arg" : 'X\(//\)[^/]' \| \
19113          X"$_am_arg" : 'X\(//\)$' \| \
19114          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19115 $as_echo X"$_am_arg" |
19116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19117             s//\1/
19118             q
19119           }
19120           /^X\(\/\/\)[^/].*/{
19121             s//\1/
19122             q
19123           }
19124           /^X\(\/\/\)$/{
19125             s//\1/
19126             q
19127           }
19128           /^X\(\/\).*/{
19129             s//\1/
19130             q
19131           }
19132           s/.*/./; q'`/stamp-h$_am_stamp_count
19133  ;;
19134
19135   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19136 $as_echo "$as_me: executing $ac_file commands" >&6;}
19137  ;;
19138   esac
19139
19140
19141   case $ac_file$ac_mode in
19142     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19143   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19144   # are listed without --file.  Let's play safe and only enable the eval
19145   # if we detect the quoting.
19146   case $CONFIG_FILES in
19147   *\'*) eval set x "$CONFIG_FILES" ;;
19148   *)   set x $CONFIG_FILES ;;
19149   esac
19150   shift
19151   for mf
19152   do
19153     # Strip MF so we end up with the name of the file.
19154     mf=`echo "$mf" | sed -e 's/:.*$//'`
19155     # Check whether this is an Automake generated Makefile or not.
19156     # We used to match only the files named `Makefile.in', but
19157     # some people rename them; so instead we look at the file content.
19158     # Grep'ing the first line is not enough: some people post-process
19159     # each Makefile.in and add a new line on top of each file to say so.
19160     # Grep'ing the whole file is not good either: AIX grep has a line
19161     # limit of 2048, but all sed's we know have understand at least 4000.
19162     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19163       dirpart=`$as_dirname -- "$mf" ||
19164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19165          X"$mf" : 'X\(//\)[^/]' \| \
19166          X"$mf" : 'X\(//\)$' \| \
19167          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19168 $as_echo X"$mf" |
19169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19170             s//\1/
19171             q
19172           }
19173           /^X\(\/\/\)[^/].*/{
19174             s//\1/
19175             q
19176           }
19177           /^X\(\/\/\)$/{
19178             s//\1/
19179             q
19180           }
19181           /^X\(\/\).*/{
19182             s//\1/
19183             q
19184           }
19185           s/.*/./; q'`
19186     else
19187       continue
19188     fi
19189     # Extract the definition of DEPDIR, am__include, and am__quote
19190     # from the Makefile without running `make'.
19191     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19192     test -z "$DEPDIR" && continue
19193     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19194     test -z "am__include" && continue
19195     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19196     # When using ansi2knr, U may be empty or an underscore; expand it
19197     U=`sed -n 's/^U = //p' < "$mf"`
19198     # Find all dependency output files, they are included files with
19199     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19200     # simplest approach to changing $(DEPDIR) to its actual value in the
19201     # expansion.
19202     for file in `sed -n "
19203       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19204          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19205       # Make sure the directory exists.
19206       test -f "$dirpart/$file" && continue
19207       fdir=`$as_dirname -- "$file" ||
19208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209          X"$file" : 'X\(//\)[^/]' \| \
19210          X"$file" : 'X\(//\)$' \| \
19211          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$file" |
19213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19214             s//\1/
19215             q
19216           }
19217           /^X\(\/\/\)[^/].*/{
19218             s//\1/
19219             q
19220           }
19221           /^X\(\/\/\)$/{
19222             s//\1/
19223             q
19224           }
19225           /^X\(\/\).*/{
19226             s//\1/
19227             q
19228           }
19229           s/.*/./; q'`
19230       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19231       # echo "creating $dirpart/$file"
19232       echo '# dummy' > "$dirpart/$file"
19233     done
19234   done
19235 }
19236  ;;
19237     "libtool":C)
19238
19239     # See if we are running on zsh, and set the options which allow our
19240     # commands through without removal of \ escapes.
19241     if test -n "${ZSH_VERSION+set}" ; then
19242       setopt NO_GLOB_SUBST
19243     fi
19244
19245     cfgfile="${ofile}T"
19246     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19247     $RM "$cfgfile"
19248
19249     cat <<_LT_EOF >> "$cfgfile"
19250 #! $SHELL
19251
19252 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19253 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19255 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19256 #
19257 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19258 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19259 #                 Inc.
19260 #   Written by Gordon Matzigkeit, 1996
19261 #
19262 #   This file is part of GNU Libtool.
19263 #
19264 # GNU Libtool is free software; you can redistribute it and/or
19265 # modify it under the terms of the GNU General Public License as
19266 # published by the Free Software Foundation; either version 2 of
19267 # the License, or (at your option) any later version.
19268 #
19269 # As a special exception to the GNU General Public License,
19270 # if you distribute this file as part of a program or library that
19271 # is built using GNU Libtool, you may include this file under the
19272 # same distribution terms that you use for the rest of that program.
19273 #
19274 # GNU Libtool is distributed in the hope that it will be useful,
19275 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19277 # GNU General Public License for more details.
19278 #
19279 # You should have received a copy of the GNU General Public License
19280 # along with GNU Libtool; see the file COPYING.  If not, a copy
19281 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19282 # obtained by writing to the Free Software Foundation, Inc.,
19283 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19284
19285
19286 # The names of the tagged configurations supported by this script.
19287 available_tags=""
19288
19289 # ### BEGIN LIBTOOL CONFIG
19290
19291 # Which release of libtool.m4 was used?
19292 macro_version=$macro_version
19293 macro_revision=$macro_revision
19294
19295 # Whether or not to build shared libraries.
19296 build_libtool_libs=$enable_shared
19297
19298 # Whether or not to build static libraries.
19299 build_old_libs=$enable_static
19300
19301 # What type of objects to build.
19302 pic_mode=$pic_mode
19303
19304 # Whether or not to optimize for fast installation.
19305 fast_install=$enable_fast_install
19306
19307 # Shell to use when invoking shell scripts.
19308 SHELL=$lt_SHELL
19309
19310 # An echo program that protects backslashes.
19311 ECHO=$lt_ECHO
19312
19313 # The host system.
19314 host_alias=$host_alias
19315 host=$host
19316 host_os=$host_os
19317
19318 # The build system.
19319 build_alias=$build_alias
19320 build=$build
19321 build_os=$build_os
19322
19323 # A sed program that does not truncate output.
19324 SED=$lt_SED
19325
19326 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19327 Xsed="\$SED -e 1s/^X//"
19328
19329 # A grep program that handles long lines.
19330 GREP=$lt_GREP
19331
19332 # An ERE matcher.
19333 EGREP=$lt_EGREP
19334
19335 # A literal string matcher.
19336 FGREP=$lt_FGREP
19337
19338 # A BSD- or MS-compatible name lister.
19339 NM=$lt_NM
19340
19341 # Whether we need soft or hard links.
19342 LN_S=$lt_LN_S
19343
19344 # What is the maximum length of a command?
19345 max_cmd_len=$max_cmd_len
19346
19347 # Object file suffix (normally "o").
19348 objext=$ac_objext
19349
19350 # Executable file suffix (normally "").
19351 exeext=$exeext
19352
19353 # whether the shell understands "unset".
19354 lt_unset=$lt_unset
19355
19356 # turn spaces into newlines.
19357 SP2NL=$lt_lt_SP2NL
19358
19359 # turn newlines into spaces.
19360 NL2SP=$lt_lt_NL2SP
19361
19362 # convert \$build file names to \$host format.
19363 to_host_file_cmd=$lt_cv_to_host_file_cmd
19364
19365 # convert \$build files to toolchain format.
19366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19367
19368 # An object symbol dumper.
19369 OBJDUMP=$lt_OBJDUMP
19370
19371 # Method to check whether dependent libraries are shared objects.
19372 deplibs_check_method=$lt_deplibs_check_method
19373
19374 # Command to use when deplibs_check_method = "file_magic".
19375 file_magic_cmd=$lt_file_magic_cmd
19376
19377 # How to find potential files when deplibs_check_method = "file_magic".
19378 file_magic_glob=$lt_file_magic_glob
19379
19380 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19381 want_nocaseglob=$lt_want_nocaseglob
19382
19383 # DLL creation program.
19384 DLLTOOL=$lt_DLLTOOL
19385
19386 # Command to associate shared and link libraries.
19387 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19388
19389 # The archiver.
19390 AR=$lt_AR
19391
19392 # Flags to create an archive.
19393 AR_FLAGS=$lt_AR_FLAGS
19394
19395 # How to feed a file listing to the archiver.
19396 archiver_list_spec=$lt_archiver_list_spec
19397
19398 # A symbol stripping program.
19399 STRIP=$lt_STRIP
19400
19401 # Commands used to install an old-style archive.
19402 RANLIB=$lt_RANLIB
19403 old_postinstall_cmds=$lt_old_postinstall_cmds
19404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19405
19406 # Whether to use a lock for old archive extraction.
19407 lock_old_archive_extraction=$lock_old_archive_extraction
19408
19409 # A C compiler.
19410 LTCC=$lt_CC
19411
19412 # LTCC compiler flags.
19413 LTCFLAGS=$lt_CFLAGS
19414
19415 # Take the output of nm and produce a listing of raw symbols and C names.
19416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19417
19418 # Transform the output of nm in a proper C declaration.
19419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19420
19421 # Transform the output of nm in a C name address pair.
19422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19423
19424 # Transform the output of nm in a C name address pair when lib prefix is needed.
19425 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19426
19427 # Specify filename containing input files for \$NM.
19428 nm_file_list_spec=$lt_nm_file_list_spec
19429
19430 # The root where to search for dependent libraries,and in which our libraries should be installed.
19431 lt_sysroot=$lt_sysroot
19432
19433 # The name of the directory that contains temporary libtool files.
19434 objdir=$objdir
19435
19436 # Used to examine libraries when file_magic_cmd begins with "file".
19437 MAGIC_CMD=$MAGIC_CMD
19438
19439 # Must we lock files when doing compilation?
19440 need_locks=$lt_need_locks
19441
19442 # Manifest tool.
19443 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19444
19445 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19446 DSYMUTIL=$lt_DSYMUTIL
19447
19448 # Tool to change global to local symbols on Mac OS X.
19449 NMEDIT=$lt_NMEDIT
19450
19451 # Tool to manipulate fat objects and archives on Mac OS X.
19452 LIPO=$lt_LIPO
19453
19454 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19455 OTOOL=$lt_OTOOL
19456
19457 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19458 OTOOL64=$lt_OTOOL64
19459
19460 # Old archive suffix (normally "a").
19461 libext=$libext
19462
19463 # Shared library suffix (normally ".so").
19464 shrext_cmds=$lt_shrext_cmds
19465
19466 # The commands to extract the exported symbol list from a shared archive.
19467 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19468
19469 # Variables whose values should be saved in libtool wrapper scripts and
19470 # restored at link time.
19471 variables_saved_for_relink=$lt_variables_saved_for_relink
19472
19473 # Do we need the "lib" prefix for modules?
19474 need_lib_prefix=$need_lib_prefix
19475
19476 # Do we need a version for libraries?
19477 need_version=$need_version
19478
19479 # Library versioning type.
19480 version_type=$version_type
19481
19482 # Shared library runtime path variable.
19483 runpath_var=$runpath_var
19484
19485 # Shared library path variable.
19486 shlibpath_var=$shlibpath_var
19487
19488 # Is shlibpath searched before the hard-coded library search path?
19489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19490
19491 # Format of library name prefix.
19492 libname_spec=$lt_libname_spec
19493
19494 # List of archive names.  First name is the real one, the rest are links.
19495 # The last name is the one that the linker finds with -lNAME
19496 library_names_spec=$lt_library_names_spec
19497
19498 # The coded name of the library, if different from the real name.
19499 soname_spec=$lt_soname_spec
19500
19501 # Permission mode override for installation of shared libraries.
19502 install_override_mode=$lt_install_override_mode
19503
19504 # Command to use after installation of a shared archive.
19505 postinstall_cmds=$lt_postinstall_cmds
19506
19507 # Command to use after uninstallation of a shared archive.
19508 postuninstall_cmds=$lt_postuninstall_cmds
19509
19510 # Commands used to finish a libtool library installation in a directory.
19511 finish_cmds=$lt_finish_cmds
19512
19513 # As "finish_cmds", except a single script fragment to be evaled but
19514 # not shown.
19515 finish_eval=$lt_finish_eval
19516
19517 # Whether we should hardcode library paths into libraries.
19518 hardcode_into_libs=$hardcode_into_libs
19519
19520 # Compile-time system search path for libraries.
19521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19522
19523 # Run-time system search path for libraries.
19524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19525
19526 # Whether dlopen is supported.
19527 dlopen_support=$enable_dlopen
19528
19529 # Whether dlopen of programs is supported.
19530 dlopen_self=$enable_dlopen_self
19531
19532 # Whether dlopen of statically linked programs is supported.
19533 dlopen_self_static=$enable_dlopen_self_static
19534
19535 # Commands to strip libraries.
19536 old_striplib=$lt_old_striplib
19537 striplib=$lt_striplib
19538
19539
19540 # The linker used to build libraries.
19541 LD=$lt_LD
19542
19543 # How to create reloadable object files.
19544 reload_flag=$lt_reload_flag
19545 reload_cmds=$lt_reload_cmds
19546
19547 # Commands used to build an old-style archive.
19548 old_archive_cmds=$lt_old_archive_cmds
19549
19550 # A language specific compiler.
19551 CC=$lt_compiler
19552
19553 # Is the compiler the GNU compiler?
19554 with_gcc=$GCC
19555
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19558
19559 # Additional compiler flags for building library objects.
19560 pic_flag=$lt_lt_prog_compiler_pic
19561
19562 # How to pass a linker flag through the compiler.
19563 wl=$lt_lt_prog_compiler_wl
19564
19565 # Compiler flag to prevent dynamic linking.
19566 link_static_flag=$lt_lt_prog_compiler_static
19567
19568 # Does compiler simultaneously support -c and -o options?
19569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19570
19571 # Whether or not to add -lc for building shared libraries.
19572 build_libtool_need_lc=$archive_cmds_need_lc
19573
19574 # Whether or not to disallow shared libs when runtime libs are static.
19575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19576
19577 # Compiler flag to allow reflexive dlopens.
19578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19579
19580 # Compiler flag to generate shared objects directly from archives.
19581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19582
19583 # Whether the compiler copes with passing no objects directly.
19584 compiler_needs_object=$lt_compiler_needs_object
19585
19586 # Create an old-style archive from a shared archive.
19587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19588
19589 # Create a temporary old-style archive to link instead of a shared archive.
19590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19591
19592 # Commands used to build a shared archive.
19593 archive_cmds=$lt_archive_cmds
19594 archive_expsym_cmds=$lt_archive_expsym_cmds
19595
19596 # Commands used to build a loadable module if different from building
19597 # a shared archive.
19598 module_cmds=$lt_module_cmds
19599 module_expsym_cmds=$lt_module_expsym_cmds
19600
19601 # Whether we are building with GNU ld or not.
19602 with_gnu_ld=$lt_with_gnu_ld
19603
19604 # Flag that allows shared libraries with undefined symbols to be built.
19605 allow_undefined_flag=$lt_allow_undefined_flag
19606
19607 # Flag that enforces no undefined symbols.
19608 no_undefined_flag=$lt_no_undefined_flag
19609
19610 # Flag to hardcode \$libdir into a binary during linking.
19611 # This must work even if \$libdir does not exist
19612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19613
19614 # If ld is used when linking, flag to hardcode \$libdir into a binary
19615 # during linking.  This must work even if \$libdir does not exist.
19616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19617
19618 # Whether we need a single "-rpath" flag with a separated argument.
19619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19620
19621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19622 # DIR into the resulting binary.
19623 hardcode_direct=$hardcode_direct
19624
19625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19626 # DIR into the resulting binary and the resulting library dependency is
19627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19628 # library is relocated.
19629 hardcode_direct_absolute=$hardcode_direct_absolute
19630
19631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19632 # into the resulting binary.
19633 hardcode_minus_L=$hardcode_minus_L
19634
19635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19636 # into the resulting binary.
19637 hardcode_shlibpath_var=$hardcode_shlibpath_var
19638
19639 # Set to "yes" if building a shared library automatically hardcodes DIR
19640 # into the library and all subsequent libraries and executables linked
19641 # against it.
19642 hardcode_automatic=$hardcode_automatic
19643
19644 # Set to yes if linker adds runtime paths of dependent libraries
19645 # to runtime path list.
19646 inherit_rpath=$inherit_rpath
19647
19648 # Whether libtool must link a program against all its dependency libraries.
19649 link_all_deplibs=$link_all_deplibs
19650
19651 # Set to "yes" if exported symbols are required.
19652 always_export_symbols=$always_export_symbols
19653
19654 # The commands to list exported symbols.
19655 export_symbols_cmds=$lt_export_symbols_cmds
19656
19657 # Symbols that should not be listed in the preloaded symbols.
19658 exclude_expsyms=$lt_exclude_expsyms
19659
19660 # Symbols that must always be exported.
19661 include_expsyms=$lt_include_expsyms
19662
19663 # Commands necessary for linking programs (against libraries) with templates.
19664 prelink_cmds=$lt_prelink_cmds
19665
19666 # Commands necessary for finishing linking programs.
19667 postlink_cmds=$lt_postlink_cmds
19668
19669 # Specify filename containing input files.
19670 file_list_spec=$lt_file_list_spec
19671
19672 # How to hardcode a shared library path into an executable.
19673 hardcode_action=$hardcode_action
19674
19675 # ### END LIBTOOL CONFIG
19676
19677 _LT_EOF
19678
19679   case $host_os in
19680   aix3*)
19681     cat <<\_LT_EOF >> "$cfgfile"
19682 # AIX sometimes has problems with the GCC collect2 program.  For some
19683 # reason, if we set the COLLECT_NAMES environment variable, the problems
19684 # vanish in a puff of smoke.
19685 if test "X${COLLECT_NAMES+set}" != Xset; then
19686   COLLECT_NAMES=
19687   export COLLECT_NAMES
19688 fi
19689 _LT_EOF
19690     ;;
19691   esac
19692
19693
19694 ltmain="$ac_aux_dir/ltmain.sh"
19695
19696
19697   # We use sed instead of cat because bash on DJGPP gets confused if
19698   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19699   # text mode, it properly converts lines to CR/LF.  This bash problem
19700   # is reportedly fixed, but why not run on old versions too?
19701   sed '$q' "$ltmain" >> "$cfgfile" \
19702      || (rm -f "$cfgfile"; exit 1)
19703
19704   if test x"$xsi_shell" = xyes; then
19705   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19706 func_dirname ()\
19707 {\
19708 \    case ${1} in\
19709 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19710 \      *  ) func_dirname_result="${3}" ;;\
19711 \    esac\
19712 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19713   && mv -f "$cfgfile.tmp" "$cfgfile" \
19714     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19715 test 0 -eq $? || _lt_function_replace_fail=:
19716
19717
19718   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19719 func_basename ()\
19720 {\
19721 \    func_basename_result="${1##*/}"\
19722 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19723   && mv -f "$cfgfile.tmp" "$cfgfile" \
19724     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19725 test 0 -eq $? || _lt_function_replace_fail=:
19726
19727
19728   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19729 func_dirname_and_basename ()\
19730 {\
19731 \    case ${1} in\
19732 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19733 \      *  ) func_dirname_result="${3}" ;;\
19734 \    esac\
19735 \    func_basename_result="${1##*/}"\
19736 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19737   && mv -f "$cfgfile.tmp" "$cfgfile" \
19738     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19739 test 0 -eq $? || _lt_function_replace_fail=:
19740
19741
19742   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19743 func_stripname ()\
19744 {\
19745 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19746 \    # positional parameters, so assign one to ordinary parameter first.\
19747 \    func_stripname_result=${3}\
19748 \    func_stripname_result=${func_stripname_result#"${1}"}\
19749 \    func_stripname_result=${func_stripname_result%"${2}"}\
19750 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19751   && mv -f "$cfgfile.tmp" "$cfgfile" \
19752     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753 test 0 -eq $? || _lt_function_replace_fail=:
19754
19755
19756   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19757 func_split_long_opt ()\
19758 {\
19759 \    func_split_long_opt_name=${1%%=*}\
19760 \    func_split_long_opt_arg=${1#*=}\
19761 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19762   && mv -f "$cfgfile.tmp" "$cfgfile" \
19763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19764 test 0 -eq $? || _lt_function_replace_fail=:
19765
19766
19767   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19768 func_split_short_opt ()\
19769 {\
19770 \    func_split_short_opt_arg=${1#??}\
19771 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19772 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19773   && mv -f "$cfgfile.tmp" "$cfgfile" \
19774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19775 test 0 -eq $? || _lt_function_replace_fail=:
19776
19777
19778   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19779 func_lo2o ()\
19780 {\
19781 \    case ${1} in\
19782 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19783 \      *)    func_lo2o_result=${1} ;;\
19784 \    esac\
19785 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19786   && mv -f "$cfgfile.tmp" "$cfgfile" \
19787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19788 test 0 -eq $? || _lt_function_replace_fail=:
19789
19790
19791   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19792 func_xform ()\
19793 {\
19794     func_xform_result=${1%.*}.lo\
19795 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19796   && mv -f "$cfgfile.tmp" "$cfgfile" \
19797     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19798 test 0 -eq $? || _lt_function_replace_fail=:
19799
19800
19801   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19802 func_arith ()\
19803 {\
19804     func_arith_result=$(( $* ))\
19805 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19806   && mv -f "$cfgfile.tmp" "$cfgfile" \
19807     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808 test 0 -eq $? || _lt_function_replace_fail=:
19809
19810
19811   sed -e '/^func_len ()$/,/^} # func_len /c\
19812 func_len ()\
19813 {\
19814     func_len_result=${#1}\
19815 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19816   && mv -f "$cfgfile.tmp" "$cfgfile" \
19817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19818 test 0 -eq $? || _lt_function_replace_fail=:
19819
19820 fi
19821
19822 if test x"$lt_shell_append" = xyes; then
19823   sed -e '/^func_append ()$/,/^} # func_append /c\
19824 func_append ()\
19825 {\
19826     eval "${1}+=\\${2}"\
19827 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19828   && mv -f "$cfgfile.tmp" "$cfgfile" \
19829     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19830 test 0 -eq $? || _lt_function_replace_fail=:
19831
19832
19833   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19834 func_append_quoted ()\
19835 {\
19836 \    func_quote_for_eval "${2}"\
19837 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19838 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19839   && mv -f "$cfgfile.tmp" "$cfgfile" \
19840     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19841 test 0 -eq $? || _lt_function_replace_fail=:
19842
19843
19844   # Save a `func_append' function call where possible by direct use of '+='
19845   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19846     && mv -f "$cfgfile.tmp" "$cfgfile" \
19847       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19848   test 0 -eq $? || _lt_function_replace_fail=:
19849 else
19850   # Save a `func_append' function call even when '+=' is not available
19851   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19852     && mv -f "$cfgfile.tmp" "$cfgfile" \
19853       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19854   test 0 -eq $? || _lt_function_replace_fail=:
19855 fi
19856
19857 if test x"$_lt_function_replace_fail" = x":"; then
19858   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19859 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19860 fi
19861
19862
19863    mv -f "$cfgfile" "$ofile" ||
19864     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19865   chmod +x "$ofile"
19866
19867  ;;
19868
19869   esac
19870 done # for ac_tag
19871
19872
19873 as_fn_exit 0
19874 _ACEOF
19875 ac_clean_files=$ac_clean_files_save
19876
19877 test $ac_write_fail = 0 ||
19878   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19879
19880
19881 # configure is writing to config.log, and then calls config.status.
19882 # config.status does its own redirection, appending to config.log.
19883 # Unfortunately, on DOS this fails, as config.log is still kept open
19884 # by configure, so config.status won't be able to write to it; its
19885 # output is simply discarded.  So we exec the FD to /dev/null,
19886 # effectively closing config.log, so it can be properly (re)opened and
19887 # appended to by config.status.  When coming back to configure, we
19888 # need to make the FD available again.
19889 if test "$no_create" != yes; then
19890   ac_cs_success=:
19891   ac_config_status_args=
19892   test "$silent" = yes &&
19893     ac_config_status_args="$ac_config_status_args --quiet"
19894   exec 5>/dev/null
19895   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19896   exec 5>>config.log
19897   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19898   # would make configure fail if this is the last instruction.
19899   $ac_cs_success || as_fn_exit 1
19900 fi
19901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19903 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19904 fi
19905